It had much more to do with an already unstable country dominated by a twisted view of it's own religion getting their knickers in a bunch over a cartoon or some such and believing that Allah will reward them for the destruction of the infidel masses that spawned its author...
CBC News Indepth: Islam
So much wrong with your post.
The timeline shows pretty much that Pakistan - unstable country with nukes and supplied by the west was one of the key countries where protests occured, Saudi another tolerant state (not) with the nukes of Pakistan at its disposal is another country where the protests happening
As for Iran well the lack of protests from them is noticeable but why not just stereotype them as being involved