Flashtool has this feature, but since I've never done it that way I don't know if the unlocking code is still required for that procedure. If yes, you'll have no choice because the code provided by Sony seems depending on the IMEI so it may be IMEI specific... this is a supposition that needs to be confirmed.
XDA Developers was founded by developers, for developers. It is now a valuable resource for people who want to make the most of their mobile devices, from customizing the look and feel to adding new functionality. Are you a developer?