1.Sync your device until it backs it up and then you can cancel if you wish
2.Shift+Restore and select your ipsw because it is more clean than shift+update
3.After its done press your backup and select restore from backup.
4.press done and wait!
5.if you have not pirated it should work perfectly!