I solved it, it seems.
Here's the steps:
Turn off the phone
Download the previous version of the firmware (5.2.13)
Remove the SIM card from the phone
Turn on the phone
Without the SIM it will not have any problems
Transfer the downloaded firmware into the phone
Install it via the updater
Once...