sub0x67a934 turned into almost proper C code