See c_MaxImVer = CSng(Util.FormatVar(MaxIm.Version, "0.00")) and its use. Rip all of this out. It has problems on comma as decimal systems anyway.
Also remove the 45 degree adjustments for the weird phasing in MaxIm 5.06 and earlier. That's the only reason for the version check anyway.