In director Joss Whedon's commentary for "Avengers: Age of Ultron," he breaks down the scene the Avengers share after their first encounter with Ultron:

"This was the scene, as I mentioned, where I really struggled because, without a central object to build around—it's an empty space where we were going to place Jarvis later on—and without a strong light source, I really wasn't sure where to position the characters or how to get them to where they needed to be emotionally, especially because Robert has a very difficult job in this scene of breaking down in the middle of the worst thing he's ever done, and it was very important to me, and to Robert as well. When I pitched it to him, he latched onto the idea. He said, 'I do that every time I get caught, I can't help it, it's so bad it makes me nervous, I laugh nervously.' But I also think there's a bit of Asperger's in him; being on the spectrum where he's just... he's not entirely good at dealing with..." The people. And for me again, that was something to lean on. And ultimately, my thesis that Tony is the villain is well supported.

And again, villain doesn't necessarily mean evil, because here we see his pain and the epic nature of his heroism, which contrasts, as always, with Steve's straightforward nature. Tony is a guy who likes to do math. And Steve is a guy who understands the situation he's in and cares about the people around him.
Tony Stark had Asperger.