"HOW DARE YOU!"
The hat ignored the way Dumbledore's voice had risen to ridiculous levels, and the bottle of scotch that shattered on the wall right next to what would have been its ear.
"How DARE you! Potter should have gone to Gryffindor. It's where he belonged! For the past ten years, all of my plans have hinged on Potter being placed in Gryffindor... that was the only reason that I arranged for those Death eaters to attack Gryffindor Manor, and slipped Cornelius instructions on how to silence and paralyze the 'dangerously insane' girl that survived, and even arranged to have the entire line of questioning written out for him. Tell me, hat, why I went through all of that trouble if Potter is in another house entirely, Slytherin of all things!"
He paused, and a contemplative look settled in his eyes.
"You're malfunctioning... that's what it is. Of course, I can't believe I didn't see it before. After all, you were created over a thousand years ago... small wonder that you've begun to..."
"IF you please, Albus... I was the masterwork of all four of Hogwart's founders. I've sorted every student perfectly for the last thousand years, and I'll continue for the next."
"How can you say 'perfect' when Harry is in Slytherin? That is the least perfect outcome I could have envisioned."
"It is where he belonged."
"He belonged in Gryffindor!"
"After living in a house where people would beat him at the slightest sign of 'freakishness'? A house that you yourself placed him in, might I add? The boy is cunning. He learned to be. He is also ambitious. Both are traits that Salazar prized. If I may be so bold... he is what you have made of him. Just as Tom was."
Dumbledore very nearly launched one of the many incendiary charms he knew at the blasted scrap of leather, but swiftly reigned control of himself and didn't dignify the hat with a reply as he slumped down in his chair, eyes going distant as he thought that over. And plotted.
Honor among Thieves, Chapter 6