It verifies the system is un-modified, and after that, it patches the modem, removes a few files, and then patches the rest of the system. It just looks fairly complicated because they ship it with just the diff files for patching to make the size of the OTA smaller than downloading a full version of every changed file.