I've got an iphone (firmware 1.0.2) with anysim installed that's crashed.

Can I reflash the phone with 1.0.2 without any trouble? Will I need to unlock the phone again? I obviously can't revirginize the phone first.