Decoding the Mass Loss of Massive Stars