try flashing it with FAR i made a tutorial on how to do it, you can also download the full far version there: FAR + JDflasher - Top Sony Forums (it says it's for CID53 but it's the same method for all cid's)
download these 3 files: (i am asuming you still want it to be w580)
MAIN: Downloads - R8BE001_RED52 - W580_R8BE001_MAIN_GENERIC_LA_RED52 - Top Sony Forums
FS: Downloads - R8BE001_RED52 - W580_R8BE001_FS_APAC_RED52 - Top Sony Forums
custom pack: Downloads - w580custpack - HB1-06_Gen_CDA102568_202_R2A_GENERIC_APAC - Top Sony Forums
i don't know if this gonna help but you have nothing to lose right?