Starting from halfway down!
If your phone is new, the bootloader is locked.
How to safely flash? Read the threads on unlocking the bootloader. There is very little risk provided you have learned how to do it (and not much risk even if you don't).
Warranty. I don't know. But you can always...