Sony did fuck up Spider-Man 3, although some of that blame can be directed at Avi Arad who is obsessed with Venom for reasons that were never clear to me.
SM3 made 890 million dollars in 2007. Shazam would love to have been fucked so badly. Almost all of the DC films would love to have been fucked like that.
Edited to add: 12 years later, adjusted for inflation, SM3 is a billion dollar movie.
It made enough they planned to make 2 more, until creative differences and a opening date Raimi didn’t think he could make caused him to walk. That’s when they decided to reboot.