MGS reverse engineering