As Iron Man and Megatron face off outside the base, the Autobots track down Spider-Man, subsequently freeing him with the aid of Doctor Doom (who has turned on the Decepticons after they betrayed him).
Outside the base, as Iron Man and Megatron engage in combat, the Autobots find Spider-Man and free him with help from Doctor Doom (who had turned against the Decepticons due to their treachery).