Creating UV map from garbage topology

Also you can use this addon: