client/vendor/ace/source/lifted-0050.c (426411B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_4706F815(void) { 5 int _fpu_cmp = 0; 6 uint32_t _cf = 0; 7 int _df = 1; 8 uint32_t _flag_k = FK_NONE; 9 uint32_t _flag_a = 0, _flag_b = 0; 10 uint32_t _itail_tgt = 0; 11 RECOMP_REGS_LOCALS 12 RECOMP_ENTER(0x4706F815u); 13 14 L_4706F815: 15 ecx = MEM32(esp + 0xCC0); /* 0x4706F815: mov ecx, dword ptr [esp + 0xcc0] */ 16 edi = POP32_VAL(esp); /* 0x4706F81C: pop edi */ 17 esi = POP32_VAL(esp); /* 0x4706F81D: pop esi */ 18 ebp = POP32_VAL(esp); /* 0x4706F81E: pop ebp */ 19 ebx = POP32_VAL(esp); /* 0x4706F81F: pop ebx */ 20 MEM32(FS_BASE + (0)) = ecx; /* 0x4706F820: mov dword ptr fs:[0], ecx */ 21 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCBCu); 22 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 23 esp = esp + 0xCBCu; /* 0x4706F827: add esp, 0xcbc */ 24 _flag_k = FK_ADD; 25 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706F82D: ret 8 */ 26 RECOMP_REGS_OUT(); 27 } 28 29 void sub_4706F830(void) { 30 int _fpu_cmp = 0; 31 uint32_t _cf = 0; 32 int _df = 1; 33 uint32_t _flag_k = FK_NONE; 34 uint32_t _flag_a = 0, _flag_b = 0; 35 uint32_t _itail_tgt = 0; 36 RECOMP_REGS_LOCALS 37 RECOMP_ENTER(0x4706F830u); 38 39 L_4706F830: 40 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706F830: push -1 */ 41 PUSH32(esp, 0x470A8E52u); /* 0x4706F832: push 0x470a8e52 */ 42 eax = MEM32(FS_BASE + (0)); /* 0x4706F837: mov eax, dword ptr fs:[0] */ 43 PUSH32(esp, eax); /* 0x4706F83D: push eax */ 44 MEM32(FS_BASE + (0)) = esp; /* 0x4706F83E: mov dword ptr fs:[0], esp */ 45 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCB0u); 46 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 47 esp = esp - 0xCB0u; /* 0x4706F845: sub esp, 0xcb0 */ 48 _flag_k = FK_CMP; 49 eax = MEM32(esp + 0xCC4); /* 0x4706F84B: mov eax, dword ptr [esp + 0xcc4] */ 50 PUSH32(esp, ebx); /* 0x4706F852: push ebx */ 51 PUSH32(esp, ebp); /* 0x4706F853: push ebp */ 52 PUSH32(esp, esi); /* 0x4706F854: push esi */ 53 PUSH32(esp, edi); /* 0x4706F855: push edi */ 54 PUSH32(esp, 0); /* 0x4706F856: push 0 */ 55 PUSH32(esp, 0); /* 0x4706F858: push 0 */ 56 PUSH32(esp, 0); /* 0x4706F85A: push 0 */ 57 esi = ecx; /* 0x4706F85C: mov esi, ecx */ 58 ecx = MEM32(eax + 0x4); /* 0x4706F85E: mov ecx, dword ptr [eax + 4] */ 59 eax = MEM32(eax + 0x8); /* 0x4706F861: mov eax, dword ptr [eax + 8] */ 60 PUSH32(esp, 0); /* 0x4706F864: push 0 */ 61 PUSH32(esp, 0); /* 0x4706F866: push 0 */ 62 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 63 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 64 ecx = ecx + ecx; /* 0x4706F868: add ecx, ecx */ 65 _flag_k = FK_ADD; 66 PUSH32(esp, ecx); /* 0x4706F86A: push ecx */ 67 PUSH32(esp, eax); /* 0x4706F86B: push eax */ 68 PUSH32(esp, 0xDu); /* 0x4706F86C: push 0xd */ 69 ecx = esp + 0x694; /* 0x4706F86E: lea ecx, [esp + 0x694] */ 70 RECOMP_ICALL(0x470467B0u); /* 0x4706F875: call 0x470467b0 */ /* not lifted */ 71 RECOMP_FLAGS_IN(); 72 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 73 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 74 esi = esi + 4; /* 0x4706F87A: add esi, 4 */ 75 _flag_k = FK_ADD; 76 edx = esp + 0x674; /* 0x4706F87D: lea edx, [esp + 0x674] */ 77 PUSH32(esp, edx); /* 0x4706F884: push edx */ 78 ecx = esi; /* 0x4706F885: mov ecx, esi */ 79 MEM32(esp + 0x20) = esi; /* 0x4706F887: mov dword ptr [esp + 0x20], esi */ 80 RECOMP_ICALL(0x47046380u); /* 0x4706F88B: call 0x47046380 */ /* not lifted */ 81 RECOMP_FLAGS_IN(); 82 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706F890: cmp eax, -1 */ 83 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 84 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 85 _flag_k = FK_CMP; 86 if (CMP_NE(_flag_a, _flag_b)) goto L_4706F89C; /* 0x4706F893: jne 0x4706f89c */ 87 L_4706F895: 88 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 89 eax = eax | eax; /* 0x4706F895: or eax, eax */ 90 _cf = 0; 91 _flag_k = FK_TEST; 92 goto L_4706FA45; /* 0x4706F897: jmp 0x4706fa45 */ 93 L_4706F89C: 94 PUSH32(esp, 0); /* 0x4706F89C: push 0 */ 95 PUSH32(esp, 0); /* 0x4706F89E: push 0 */ 96 PUSH32(esp, 0); /* 0x4706F8A0: push 0 */ 97 PUSH32(esp, 0); /* 0x4706F8A2: push 0 */ 98 PUSH32(esp, 0); /* 0x4706F8A4: push 0 */ 99 PUSH32(esp, 0); /* 0x4706F8A6: push 0 */ 100 PUSH32(esp, 0); /* 0x4706F8A8: push 0 */ 101 PUSH32(esp, 0); /* 0x4706F8AA: push 0 */ 102 ecx = esp + 0x48; /* 0x4706F8AC: lea ecx, [esp + 0x48] */ 103 RECOMP_ICALL(0x470467B0u); /* 0x4706F8B0: call 0x470467b0 */ /* not lifted */ 104 RECOMP_FLAGS_IN(); 105 ecx = esp + 0x28; /* 0x4706F8B5: lea ecx, [esp + 0x28] */ 106 RECOMP_ICALL(0x4708EA70u); /* 0x4706F8B9: call 0x4708ea70 */ /* not lifted */ 107 RECOMP_FLAGS_IN(); 108 /* cmp eax, 0xBu */ /* 0x4706F8BE: cmp eax, 0xb */ 109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 111 _flag_k = FK_CMP; 112 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FA43; /* 0x4706F8C1: je 0x4706fa43 */ 113 L_4706F8C7: 114 ebp = MEM32(esp + 0xCD0); /* 0x4706F8C7: mov ebp, dword ptr [esp + 0xcd0] */ 115 L_4706F8CE: 116 eax = esp + 0x28; /* 0x4706F8CE: lea eax, [esp + 0x28] */ 117 PUSH32(esp, eax); /* 0x4706F8D2: push eax */ 118 ecx = esi; /* 0x4706F8D3: mov ecx, esi */ 119 RECOMP_ICALL(0x47046470u); /* 0x4706F8D5: call 0x47046470 */ /* not lifted */ 120 RECOMP_FLAGS_IN(); 121 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706F8DA: cmp eax, -1 */ 122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 124 _flag_k = FK_CMP; 125 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706F9DD; /* 0x4706F8DD: je 0x4706f9dd */ 126 L_4706F8E3: 127 ecx = esp + 0x28; /* 0x4706F8E3: lea ecx, [esp + 0x28] */ 128 RECOMP_ICALL(0x4708EA70u); /* 0x4706F8E7: call 0x4708ea70 */ /* not lifted */ 129 RECOMP_FLAGS_IN(); 130 /* cmp eax, 0xBu */ /* 0x4706F8EC: cmp eax, 0xb */ 131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 133 _flag_k = FK_CMP; 134 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706F9BB; /* 0x4706F8EF: je 0x4706f9bb */ 135 L_4706F8F5: 136 PUSH32(esp, 0); /* 0x4706F8F5: push 0 */ 137 ecx = esp + 0x2C; /* 0x4706F8F7: lea ecx, [esp + 0x2c] */ 138 RECOMP_ICALL(0x47015330u); /* 0x4706F8FB: call 0x47015330 */ /* not lifted */ 139 RECOMP_FLAGS_IN(); 140 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4706F900: shr eax, 1 */ 141 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 142 eax = eax >> 1u; /* 0x4706F900: shr eax, 1 */ 143 PUSH32(esp, eax); /* 0x4706F902: push eax */ 144 ecx = esp + 0x30; /* 0x4706F903: lea ecx, [esp + 0x30] */ 145 RECOMP_ICALL(0x47046950u); /* 0x4706F907: call 0x47046950 */ /* not lifted */ 146 RECOMP_FLAGS_IN(); 147 PUSH32(esp, eax); /* 0x4706F90C: push eax */ 148 ecx = esp + 0x1C; /* 0x4706F90D: lea ecx, [esp + 0x1c] */ 149 RECOMP_ICALL(0x47080BF0u); /* 0x4706F911: call 0x47080bf0 */ /* not lifted */ 150 RECOMP_FLAGS_IN(); 151 ecx = esp + 0x10; /* 0x4706F916: lea ecx, [esp + 0x10] */ 152 PUSH32(esp, ecx); /* 0x4706F91A: push ecx */ 153 ecx = MEM32(ebp); /* 0x4706F91B: mov ecx, dword ptr [ebp] */ 154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 156 ecx = ecx + 4; /* 0x4706F91E: add ecx, 4 */ 157 _flag_k = FK_ADD; 158 MEM32(esp + 0xCCC) = 0; /* 0x4706F921: mov dword ptr [esp + 0xccc], 0 */ 159 RECOMP_ICALL(0x47080D30u); /* 0x4706F92C: call 0x47080d30 */ /* not lifted */ 160 RECOMP_FLAGS_IN(); 161 edx = MEM32(ebp); /* 0x4706F931: mov edx, dword ptr [ebp] */ 162 eax = MEM32(edx); /* 0x4706F934: mov eax, dword ptr [edx] */ 163 L_4706F936: 164 ecx = MEM32(eax + 0x8); /* 0x4706F936: mov ecx, dword ptr [eax + 8] */ 165 /* cmp ecx, MEM32(esp + 0x14) */ /* 0x4706F939: cmp ecx, dword ptr [esp + 0x14] */ 166 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esp + 0x14)); 167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 168 _flag_k = FK_CMP; 169 if (CMP_NE(_flag_a, _flag_b)) goto L_4706F94E; /* 0x4706F93D: jne 0x4706f94e */ 170 L_4706F93F: 171 esi = MEM32(eax + 0xC); /* 0x4706F93F: mov esi, dword ptr [eax + 0xc] */ 172 edi = MEM32(esp + 0x18); /* 0x4706F942: mov edi, dword ptr [esp + 0x18] */ 173 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 175 ecx = ecx + ecx; /* 0x4706F946: add ecx, ecx */ 176 _flag_k = FK_ADD; 177 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 178 ebx = 0; /* 0x4706F948: xor ebx, ebx */ 179 _cf = 0; 180 _flag_k = FK_TEST; 181 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4706F94A: repe cmpsb byte ptr [esi], byte ptr es:[edi] */ 182 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4706F952; /* 0x4706F94C: je 0x4706f952 */ 183 L_4706F94E: 184 eax = MEM32(eax); /* 0x4706F94E: mov eax, dword ptr [eax] */ 185 RECOMP_BACKEDGE(); 186 goto L_4706F936; /* 0x4706F950: jmp 0x4706f936 */ 187 L_4706F952: 188 /* cmp eax, edx */ /* 0x4706F952: cmp eax, edx */ 189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 191 _flag_k = FK_CMP; 192 if (CMP_NE(_flag_a, _flag_b)) goto L_4706F9A3; /* 0x4706F954: jne 0x4706f9a3 */ 193 L_4706F956: 194 eax = esp + 0x10; /* 0x4706F956: lea eax, [esp + 0x10] */ 195 PUSH32(esp, eax); /* 0x4706F95A: push eax */ 196 ecx = edx + 0x4; /* 0x4706F95B: lea ecx, [edx + 4] */ 197 RECOMP_ICALL(0x47080D30u); /* 0x4706F95E: call 0x47080d30 */ /* not lifted */ 198 RECOMP_FLAGS_IN(); 199 ecx = MEM32(ebp + 0x8); /* 0x4706F963: mov ecx, dword ptr [ebp + 8] */ 200 edx = MEM32(ecx); /* 0x4706F966: mov edx, dword ptr [ecx] */ 201 PUSH32(esp, 0x10u); /* 0x4706F968: push 0x10 */ 202 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706F96A: call dword ptr [edx + 4] */ 203 RECOMP_FLAGS_IN(); 204 esi = eax; /* 0x4706F96D: mov esi, eax */ 205 /* test esi, esi */ /* 0x4706F96F: test esi, esi */ 206 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 207 _cf = 0; 208 _flag_k = FK_TEST; 209 MEM32(esp + 0x24) = esi; /* 0x4706F971: mov dword ptr [esp + 0x24], esi */ 210 if (TEST_Z(_flag_a, _flag_b)) goto L_4706F9CF; /* 0x4706F975: je 0x4706f9cf */ 211 L_4706F977: 212 MEM32(esp + 0x20) = esi; /* 0x4706F977: mov dword ptr [esp + 0x20], esi */ 213 eax = MEM32(ebp); /* 0x4706F97B: mov eax, dword ptr [ebp] */ 214 eax = MEM32(eax); /* 0x4706F97E: mov eax, dword ptr [eax] */ 215 PUSH32(esp, 0); /* 0x4706F980: push 0 */ 216 ecx = esi + 0x4; /* 0x4706F982: lea ecx, [esi + 4] */ 217 MEM8(esp + 0xCCC) = (uint8_t)(1); /* 0x4706F985: mov byte ptr [esp + 0xccc], 1 */ 218 MEM32(esi) = eax; /* 0x4706F98D: mov dword ptr [esi], eax */ 219 RECOMP_ICALL(0x470809E0u); /* 0x4706F98F: call 0x470809e0 */ /* not lifted */ 220 RECOMP_FLAGS_IN(); 221 ecx = MEM32(ebp); /* 0x4706F994: mov ecx, dword ptr [ebp] */ 222 MEM32(ecx) = esi; /* 0x4706F997: mov dword ptr [ecx], esi */ 223 eax = MEM32(ebp + 0x4); /* 0x4706F999: mov eax, dword ptr [ebp + 4] */ 224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 225 eax = eax + 1; /* 0x4706F99C: inc eax */ 226 _flag_k = FK_INC; 227 MEM32(ebp) = esi; /* 0x4706F99D: mov dword ptr [ebp], esi */ 228 MEM32(ebp + 0x4) = eax; /* 0x4706F9A0: mov dword ptr [ebp + 4], eax */ 229 L_4706F9A3: 230 ecx = esp + 0x10; /* 0x4706F9A3: lea ecx, [esp + 0x10] */ 231 MEM32(esp + 0xCC8) = 0xFFFFFFFFu; /* 0x4706F9A7: mov dword ptr [esp + 0xcc8], 0xffffffff */ 232 RECOMP_ICALL(0x470810C0u); /* 0x4706F9B2: call 0x470810c0 */ /* not lifted */ 233 RECOMP_FLAGS_IN(); 234 esi = MEM32(esp + 0x1C); /* 0x4706F9B7: mov esi, dword ptr [esp + 0x1c] */ 235 L_4706F9BB: 236 ecx = esp + 0x28; /* 0x4706F9BB: lea ecx, [esp + 0x28] */ 237 RECOMP_ICALL(0x4708EA70u); /* 0x4706F9BF: call 0x4708ea70 */ /* not lifted */ 238 RECOMP_FLAGS_IN(); 239 /* cmp eax, 0xBu */ /* 0x4706F9C4: cmp eax, 0xb */ 240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 242 _flag_k = FK_CMP; 243 RECOMP_BACKEDGE(); 244 if (CMP_NE(_flag_a, _flag_b)) goto L_4706F8CE; /* 0x4706F9C7: jne 0x4706f8ce */ 245 L_4706F9CD: 246 goto L_4706FA43; /* 0x4706F9CD: jmp 0x4706fa43 */ 247 L_4706F9CF: 248 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706F9CF: call dword ptr [0x470ac3c8] */ 249 RECOMP_FLAGS_IN(); 250 MEM32(eax) = 0xCu; /* 0x4706F9D5: mov dword ptr [eax], 0xc */ 251 RECOMP_BACKEDGE(); 252 goto L_4706F9A3; /* 0x4706F9DB: jmp 0x4706f9a3 */ 253 L_4706F9DD: 254 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706F9DD: call dword ptr [0x470ac150] */ 255 RECOMP_FLAGS_IN(); 256 edi = eax; /* 0x4706F9E3: mov edi, eax */ 257 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706F9E5: call dword ptr [0x470ac3c8] */ 258 RECOMP_FLAGS_IN(); 259 eax = MEM32(eax); /* 0x4706F9EB: mov eax, dword ptr [eax] */ 260 /* test eax, eax */ /* 0x4706F9ED: test eax, eax */ 261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 262 _cf = 0; 263 _flag_k = FK_TEST; 264 if (TEST_Z(_flag_a, _flag_b)) goto L_4706F9F3; /* 0x4706F9EF: je 0x4706f9f3 */ 265 L_4706F9F1: 266 edi = eax; /* 0x4706F9F1: mov edi, eax */ 267 L_4706F9F3: 268 RECOMP_ICALL(0x47039020u); /* 0x4706F9F3: call 0x47039020 */ /* not lifted */ 269 RECOMP_FLAGS_IN(); 270 esi = eax; /* 0x4706F9F8: mov esi, eax */ 271 ecx = esi; /* 0x4706F9FA: mov ecx, esi */ 272 RECOMP_ICALL(0x4703B210u); /* 0x4706F9FC: call 0x4703b210 */ /* not lifted */ 273 RECOMP_FLAGS_IN(); 274 PUSH32(esp, eax); /* 0x4706FA01: push eax */ 275 ecx = esi; /* 0x4706FA02: mov ecx, esi */ 276 RECOMP_ICALL(0x4703B240u); /* 0x4706FA04: call 0x4703b240 */ /* not lifted */ 277 RECOMP_FLAGS_IN(); 278 PUSH32(esp, eax); /* 0x4706FA09: push eax */ 279 ecx = esi; /* 0x4706FA0A: mov ecx, esi */ 280 RECOMP_ICALL(0x4703B080u); /* 0x4706FA0C: call 0x4703b080 */ /* not lifted */ 281 RECOMP_FLAGS_IN(); 282 PUSH32(esp, eax); /* 0x4706FA11: push eax */ 283 PUSH32(esp, edi); /* 0x4706FA12: push edi */ 284 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706FA13: push -1 */ 285 PUSH32(esp, 0xA1u); /* 0x4706FA15: push 0xa1 */ 286 PUSH32(esp, 0x4710A224u); /* 0x4706FA1A: push 0x4710a224 */ 287 ecx = esi; /* 0x4706FA1F: mov ecx, esi */ 288 RECOMP_ICALL(0x4703A340u); /* 0x4706FA21: call 0x4703a340 */ /* not lifted */ 289 RECOMP_FLAGS_IN(); 290 PUSH32(esp, 0x4710A288u); /* 0x4706FA26: push 0x4710a288 */ 291 PUSH32(esp, 0x471055F0u); /* 0x4706FA2B: push 0x471055f0 */ 292 PUSH32(esp, 0x80u); /* 0x4706FA30: push 0x80 */ 293 PUSH32(esp, esi); /* 0x4706FA35: push esi */ 294 RECOMP_ICALL(0x47039830u); /* 0x4706FA36: call 0x47039830 */ /* not lifted */ 295 RECOMP_FLAGS_IN(); 296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 298 esp = esp + 0x10u; /* 0x4706FA3B: add esp, 0x10 */ 299 _flag_k = FK_ADD; 300 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 301 eax = eax | 0xFFFFFFFFu; /* 0x4706FA3E: or eax, 0xffffffff */ 302 _cf = 0; 303 _flag_k = FK_TEST; 304 goto L_4706FA45; /* 0x4706FA41: jmp 0x4706fa45 */ 305 L_4706FA43: 306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 307 eax = 0; /* 0x4706FA43: xor eax, eax */ 308 _cf = 0; 309 _flag_k = FK_TEST; 310 L_4706FA45: 311 ecx = MEM32(esp + 0xCC0); /* 0x4706FA45: mov ecx, dword ptr [esp + 0xcc0] */ 312 edi = POP32_VAL(esp); /* 0x4706FA4C: pop edi */ 313 esi = POP32_VAL(esp); /* 0x4706FA4D: pop esi */ 314 ebp = POP32_VAL(esp); /* 0x4706FA4E: pop ebp */ 315 ebx = POP32_VAL(esp); /* 0x4706FA4F: pop ebx */ 316 MEM32(FS_BASE + (0)) = ecx; /* 0x4706FA50: mov dword ptr fs:[0], ecx */ 317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCBCu); 318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 319 esp = esp + 0xCBCu; /* 0x4706FA57: add esp, 0xcbc */ 320 _flag_k = FK_ADD; 321 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706FA5D: ret 8 */ 322 RECOMP_REGS_OUT(); 323 } 324 325 void sub_4706FA45(void) { 326 int _fpu_cmp = 0; 327 uint32_t _cf = 0; 328 int _df = 1; 329 uint32_t _flag_k = FK_NONE; 330 uint32_t _flag_a = 0, _flag_b = 0; 331 uint32_t _itail_tgt = 0; 332 RECOMP_REGS_LOCALS 333 RECOMP_ENTER(0x4706FA45u); 334 335 L_4706FA45: 336 ecx = MEM32(esp + 0xCC0); /* 0x4706FA45: mov ecx, dword ptr [esp + 0xcc0] */ 337 edi = POP32_VAL(esp); /* 0x4706FA4C: pop edi */ 338 esi = POP32_VAL(esp); /* 0x4706FA4D: pop esi */ 339 ebp = POP32_VAL(esp); /* 0x4706FA4E: pop ebp */ 340 ebx = POP32_VAL(esp); /* 0x4706FA4F: pop ebx */ 341 MEM32(FS_BASE + (0)) = ecx; /* 0x4706FA50: mov dword ptr fs:[0], ecx */ 342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCBCu); 343 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 344 esp = esp + 0xCBCu; /* 0x4706FA57: add esp, 0xcbc */ 345 _flag_k = FK_ADD; 346 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706FA5D: ret 8 */ 347 RECOMP_REGS_OUT(); 348 } 349 350 void sub_4706FA60(void) { 351 int _fpu_cmp = 0; 352 uint32_t _cf = 0; 353 int _df = 1; 354 uint32_t _flag_k = FK_NONE; 355 uint32_t _flag_a = 0, _flag_b = 0; 356 uint32_t _itail_tgt = 0; 357 RECOMP_REGS_LOCALS 358 RECOMP_ENTER(0x4706FA60u); 359 360 L_4706FA60: 361 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706FA60: push -1 */ 362 PUSH32(esp, 0x470A8E82u); /* 0x4706FA62: push 0x470a8e82 */ 363 eax = MEM32(FS_BASE + (0)); /* 0x4706FA67: mov eax, dword ptr fs:[0] */ 364 PUSH32(esp, eax); /* 0x4706FA6D: push eax */ 365 MEM32(FS_BASE + (0)) = esp; /* 0x4706FA6E: mov dword ptr fs:[0], esp */ 366 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCB0u); 367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 368 esp = esp - 0xCB0u; /* 0x4706FA75: sub esp, 0xcb0 */ 369 _flag_k = FK_CMP; 370 eax = MEM32(esp + 0xCC4); /* 0x4706FA7B: mov eax, dword ptr [esp + 0xcc4] */ 371 PUSH32(esp, ebx); /* 0x4706FA82: push ebx */ 372 PUSH32(esp, ebp); /* 0x4706FA83: push ebp */ 373 PUSH32(esp, esi); /* 0x4706FA84: push esi */ 374 PUSH32(esp, edi); /* 0x4706FA85: push edi */ 375 PUSH32(esp, 0); /* 0x4706FA86: push 0 */ 376 PUSH32(esp, 0); /* 0x4706FA88: push 0 */ 377 PUSH32(esp, 0); /* 0x4706FA8A: push 0 */ 378 esi = ecx; /* 0x4706FA8C: mov esi, ecx */ 379 ecx = MEM32(eax + 0x4); /* 0x4706FA8E: mov ecx, dword ptr [eax + 4] */ 380 eax = MEM32(eax + 0x8); /* 0x4706FA91: mov eax, dword ptr [eax + 8] */ 381 PUSH32(esp, 0); /* 0x4706FA94: push 0 */ 382 PUSH32(esp, 0); /* 0x4706FA96: push 0 */ 383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 385 ecx = ecx + ecx; /* 0x4706FA98: add ecx, ecx */ 386 _flag_k = FK_ADD; 387 PUSH32(esp, ecx); /* 0x4706FA9A: push ecx */ 388 PUSH32(esp, eax); /* 0x4706FA9B: push eax */ 389 PUSH32(esp, 0x15u); /* 0x4706FA9C: push 0x15 */ 390 ecx = esp + 0x694; /* 0x4706FA9E: lea ecx, [esp + 0x694] */ 391 RECOMP_ICALL(0x470467B0u); /* 0x4706FAA5: call 0x470467b0 */ /* not lifted */ 392 RECOMP_FLAGS_IN(); 393 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 395 esi = esi + 4; /* 0x4706FAAA: add esi, 4 */ 396 _flag_k = FK_ADD; 397 edx = esp + 0x674; /* 0x4706FAAD: lea edx, [esp + 0x674] */ 398 PUSH32(esp, edx); /* 0x4706FAB4: push edx */ 399 ecx = esi; /* 0x4706FAB5: mov ecx, esi */ 400 MEM32(esp + 0x20) = esi; /* 0x4706FAB7: mov dword ptr [esp + 0x20], esi */ 401 RECOMP_ICALL(0x47046380u); /* 0x4706FABB: call 0x47046380 */ /* not lifted */ 402 RECOMP_FLAGS_IN(); 403 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FAC0: cmp eax, -1 */ 404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 406 _flag_k = FK_CMP; 407 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FACC; /* 0x4706FAC3: jne 0x4706facc */ 408 L_4706FAC5: 409 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 410 eax = eax | eax; /* 0x4706FAC5: or eax, eax */ 411 _cf = 0; 412 _flag_k = FK_TEST; 413 goto L_4706FC69; /* 0x4706FAC7: jmp 0x4706fc69 */ 414 L_4706FACC: 415 PUSH32(esp, 0); /* 0x4706FACC: push 0 */ 416 PUSH32(esp, 0); /* 0x4706FACE: push 0 */ 417 PUSH32(esp, 0); /* 0x4706FAD0: push 0 */ 418 PUSH32(esp, 0); /* 0x4706FAD2: push 0 */ 419 PUSH32(esp, 0); /* 0x4706FAD4: push 0 */ 420 PUSH32(esp, 0); /* 0x4706FAD6: push 0 */ 421 PUSH32(esp, 0); /* 0x4706FAD8: push 0 */ 422 PUSH32(esp, 0); /* 0x4706FADA: push 0 */ 423 ecx = esp + 0x48; /* 0x4706FADC: lea ecx, [esp + 0x48] */ 424 RECOMP_ICALL(0x470467B0u); /* 0x4706FAE0: call 0x470467b0 */ /* not lifted */ 425 RECOMP_FLAGS_IN(); 426 ecx = esp + 0x28; /* 0x4706FAE5: lea ecx, [esp + 0x28] */ 427 RECOMP_ICALL(0x4708EA70u); /* 0x4706FAE9: call 0x4708ea70 */ /* not lifted */ 428 RECOMP_FLAGS_IN(); 429 /* cmp eax, 0xBu */ /* 0x4706FAEE: cmp eax, 0xb */ 430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 432 _flag_k = FK_CMP; 433 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FC67; /* 0x4706FAF1: je 0x4706fc67 */ 434 L_4706FAF7: 435 ebp = MEM32(esp + 0xCD0); /* 0x4706FAF7: mov ebp, dword ptr [esp + 0xcd0] */ 436 L_4706FAFE: 437 eax = esp + 0x28; /* 0x4706FAFE: lea eax, [esp + 0x28] */ 438 PUSH32(esp, eax); /* 0x4706FB02: push eax */ 439 ecx = esi; /* 0x4706FB03: mov ecx, esi */ 440 RECOMP_ICALL(0x47046470u); /* 0x4706FB05: call 0x47046470 */ /* not lifted */ 441 RECOMP_FLAGS_IN(); 442 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FB0A: cmp eax, -1 */ 443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 445 _flag_k = FK_CMP; 446 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FC01; /* 0x4706FB0D: je 0x4706fc01 */ 447 L_4706FB13: 448 ecx = esp + 0x28; /* 0x4706FB13: lea ecx, [esp + 0x28] */ 449 RECOMP_ICALL(0x4708EA70u); /* 0x4706FB17: call 0x4708ea70 */ /* not lifted */ 450 RECOMP_FLAGS_IN(); 451 /* cmp eax, 0xBu */ /* 0x4706FB1C: cmp eax, 0xb */ 452 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 454 _flag_k = FK_CMP; 455 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FBDF; /* 0x4706FB1F: je 0x4706fbdf */ 456 L_4706FB25: 457 PUSH32(esp, 0); /* 0x4706FB25: push 0 */ 458 ecx = esp + 0x2C; /* 0x4706FB27: lea ecx, [esp + 0x2c] */ 459 RECOMP_ICALL(0x47046990u); /* 0x4706FB2B: call 0x47046990 */ /* not lifted */ 460 RECOMP_FLAGS_IN(); 461 PUSH32(esp, eax); /* 0x4706FB30: push eax */ 462 ecx = esp + 0x18; /* 0x4706FB31: lea ecx, [esp + 0x18] */ 463 RECOMP_ICALL(0x47080A90u); /* 0x4706FB35: call 0x47080a90 */ /* not lifted */ 464 RECOMP_FLAGS_IN(); 465 ecx = esp + 0x10; /* 0x4706FB3A: lea ecx, [esp + 0x10] */ 466 PUSH32(esp, ecx); /* 0x4706FB3E: push ecx */ 467 ecx = MEM32(ebp); /* 0x4706FB3F: mov ecx, dword ptr [ebp] */ 468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 469 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 470 ecx = ecx + 4; /* 0x4706FB42: add ecx, 4 */ 471 _flag_k = FK_ADD; 472 MEM32(esp + 0xCCC) = 0; /* 0x4706FB45: mov dword ptr [esp + 0xccc], 0 */ 473 RECOMP_ICALL(0x47080D30u); /* 0x4706FB50: call 0x47080d30 */ /* not lifted */ 474 RECOMP_FLAGS_IN(); 475 edx = MEM32(ebp); /* 0x4706FB55: mov edx, dword ptr [ebp] */ 476 eax = MEM32(edx); /* 0x4706FB58: mov eax, dword ptr [edx] */ 477 L_4706FB5A: 478 ecx = MEM32(eax + 0x8); /* 0x4706FB5A: mov ecx, dword ptr [eax + 8] */ 479 /* cmp ecx, MEM32(esp + 0x14) */ /* 0x4706FB5D: cmp ecx, dword ptr [esp + 0x14] */ 480 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esp + 0x14)); 481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 482 _flag_k = FK_CMP; 483 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FB72; /* 0x4706FB61: jne 0x4706fb72 */ 484 L_4706FB63: 485 esi = MEM32(eax + 0xC); /* 0x4706FB63: mov esi, dword ptr [eax + 0xc] */ 486 edi = MEM32(esp + 0x18); /* 0x4706FB66: mov edi, dword ptr [esp + 0x18] */ 487 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 489 ecx = ecx + ecx; /* 0x4706FB6A: add ecx, ecx */ 490 _flag_k = FK_ADD; 491 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 492 ebx = 0; /* 0x4706FB6C: xor ebx, ebx */ 493 _cf = 0; 494 _flag_k = FK_TEST; 495 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = MEM8(esi); _b = MEM8(edi); esi += _df; edi += _df; ecx--; if (_a != _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x4706FB6E: repe cmpsb byte ptr [esi], byte ptr es:[edi] */ 496 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_4706FB76; /* 0x4706FB70: je 0x4706fb76 */ 497 L_4706FB72: 498 eax = MEM32(eax); /* 0x4706FB72: mov eax, dword ptr [eax] */ 499 RECOMP_BACKEDGE(); 500 goto L_4706FB5A; /* 0x4706FB74: jmp 0x4706fb5a */ 501 L_4706FB76: 502 /* cmp eax, edx */ /* 0x4706FB76: cmp eax, edx */ 503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 505 _flag_k = FK_CMP; 506 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FBC7; /* 0x4706FB78: jne 0x4706fbc7 */ 507 L_4706FB7A: 508 eax = esp + 0x10; /* 0x4706FB7A: lea eax, [esp + 0x10] */ 509 PUSH32(esp, eax); /* 0x4706FB7E: push eax */ 510 ecx = edx + 0x4; /* 0x4706FB7F: lea ecx, [edx + 4] */ 511 RECOMP_ICALL(0x47080D30u); /* 0x4706FB82: call 0x47080d30 */ /* not lifted */ 512 RECOMP_FLAGS_IN(); 513 ecx = MEM32(ebp + 0x8); /* 0x4706FB87: mov ecx, dword ptr [ebp + 8] */ 514 edx = MEM32(ecx); /* 0x4706FB8A: mov edx, dword ptr [ecx] */ 515 PUSH32(esp, 0x10u); /* 0x4706FB8C: push 0x10 */ 516 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706FB8E: call dword ptr [edx + 4] */ 517 RECOMP_FLAGS_IN(); 518 esi = eax; /* 0x4706FB91: mov esi, eax */ 519 /* test esi, esi */ /* 0x4706FB93: test esi, esi */ 520 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 521 _cf = 0; 522 _flag_k = FK_TEST; 523 MEM32(esp + 0x24) = esi; /* 0x4706FB95: mov dword ptr [esp + 0x24], esi */ 524 if (TEST_Z(_flag_a, _flag_b)) goto L_4706FBF3; /* 0x4706FB99: je 0x4706fbf3 */ 525 L_4706FB9B: 526 MEM32(esp + 0x20) = esi; /* 0x4706FB9B: mov dword ptr [esp + 0x20], esi */ 527 eax = MEM32(ebp); /* 0x4706FB9F: mov eax, dword ptr [ebp] */ 528 eax = MEM32(eax); /* 0x4706FBA2: mov eax, dword ptr [eax] */ 529 PUSH32(esp, 0); /* 0x4706FBA4: push 0 */ 530 ecx = esi + 0x4; /* 0x4706FBA6: lea ecx, [esi + 4] */ 531 MEM8(esp + 0xCCC) = (uint8_t)(1); /* 0x4706FBA9: mov byte ptr [esp + 0xccc], 1 */ 532 MEM32(esi) = eax; /* 0x4706FBB1: mov dword ptr [esi], eax */ 533 RECOMP_ICALL(0x470809E0u); /* 0x4706FBB3: call 0x470809e0 */ /* not lifted */ 534 RECOMP_FLAGS_IN(); 535 ecx = MEM32(ebp); /* 0x4706FBB8: mov ecx, dword ptr [ebp] */ 536 MEM32(ecx) = esi; /* 0x4706FBBB: mov dword ptr [ecx], esi */ 537 eax = MEM32(ebp + 0x4); /* 0x4706FBBD: mov eax, dword ptr [ebp + 4] */ 538 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 539 eax = eax + 1; /* 0x4706FBC0: inc eax */ 540 _flag_k = FK_INC; 541 MEM32(ebp) = esi; /* 0x4706FBC1: mov dword ptr [ebp], esi */ 542 MEM32(ebp + 0x4) = eax; /* 0x4706FBC4: mov dword ptr [ebp + 4], eax */ 543 L_4706FBC7: 544 ecx = esp + 0x10; /* 0x4706FBC7: lea ecx, [esp + 0x10] */ 545 MEM32(esp + 0xCC8) = 0xFFFFFFFFu; /* 0x4706FBCB: mov dword ptr [esp + 0xcc8], 0xffffffff */ 546 RECOMP_ICALL(0x470810C0u); /* 0x4706FBD6: call 0x470810c0 */ /* not lifted */ 547 RECOMP_FLAGS_IN(); 548 esi = MEM32(esp + 0x1C); /* 0x4706FBDB: mov esi, dword ptr [esp + 0x1c] */ 549 L_4706FBDF: 550 ecx = esp + 0x28; /* 0x4706FBDF: lea ecx, [esp + 0x28] */ 551 RECOMP_ICALL(0x4708EA70u); /* 0x4706FBE3: call 0x4708ea70 */ /* not lifted */ 552 RECOMP_FLAGS_IN(); 553 /* cmp eax, 0xBu */ /* 0x4706FBE8: cmp eax, 0xb */ 554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 556 _flag_k = FK_CMP; 557 RECOMP_BACKEDGE(); 558 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FAFE; /* 0x4706FBEB: jne 0x4706fafe */ 559 L_4706FBF1: 560 goto L_4706FC67; /* 0x4706FBF1: jmp 0x4706fc67 */ 561 L_4706FBF3: 562 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706FBF3: call dword ptr [0x470ac3c8] */ 563 RECOMP_FLAGS_IN(); 564 MEM32(eax) = 0xCu; /* 0x4706FBF9: mov dword ptr [eax], 0xc */ 565 RECOMP_BACKEDGE(); 566 goto L_4706FBC7; /* 0x4706FBFF: jmp 0x4706fbc7 */ 567 L_4706FC01: 568 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706FC01: call dword ptr [0x470ac150] */ 569 RECOMP_FLAGS_IN(); 570 edi = eax; /* 0x4706FC07: mov edi, eax */ 571 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706FC09: call dword ptr [0x470ac3c8] */ 572 RECOMP_FLAGS_IN(); 573 eax = MEM32(eax); /* 0x4706FC0F: mov eax, dword ptr [eax] */ 574 /* test eax, eax */ /* 0x4706FC11: test eax, eax */ 575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 576 _cf = 0; 577 _flag_k = FK_TEST; 578 if (TEST_Z(_flag_a, _flag_b)) goto L_4706FC17; /* 0x4706FC13: je 0x4706fc17 */ 579 L_4706FC15: 580 edi = eax; /* 0x4706FC15: mov edi, eax */ 581 L_4706FC17: 582 RECOMP_ICALL(0x47039020u); /* 0x4706FC17: call 0x47039020 */ /* not lifted */ 583 RECOMP_FLAGS_IN(); 584 esi = eax; /* 0x4706FC1C: mov esi, eax */ 585 ecx = esi; /* 0x4706FC1E: mov ecx, esi */ 586 RECOMP_ICALL(0x4703B210u); /* 0x4706FC20: call 0x4703b210 */ /* not lifted */ 587 RECOMP_FLAGS_IN(); 588 PUSH32(esp, eax); /* 0x4706FC25: push eax */ 589 ecx = esi; /* 0x4706FC26: mov ecx, esi */ 590 RECOMP_ICALL(0x4703B240u); /* 0x4706FC28: call 0x4703b240 */ /* not lifted */ 591 RECOMP_FLAGS_IN(); 592 PUSH32(esp, eax); /* 0x4706FC2D: push eax */ 593 ecx = esi; /* 0x4706FC2E: mov ecx, esi */ 594 RECOMP_ICALL(0x4703B080u); /* 0x4706FC30: call 0x4703b080 */ /* not lifted */ 595 RECOMP_FLAGS_IN(); 596 PUSH32(esp, eax); /* 0x4706FC35: push eax */ 597 PUSH32(esp, edi); /* 0x4706FC36: push edi */ 598 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706FC37: push -1 */ 599 PUSH32(esp, 0xC2u); /* 0x4706FC39: push 0xc2 */ 600 PUSH32(esp, 0x4710A224u); /* 0x4706FC3E: push 0x4710a224 */ 601 ecx = esi; /* 0x4706FC43: mov ecx, esi */ 602 RECOMP_ICALL(0x4703A340u); /* 0x4706FC45: call 0x4703a340 */ /* not lifted */ 603 RECOMP_FLAGS_IN(); 604 PUSH32(esp, 0x4710A288u); /* 0x4706FC4A: push 0x4710a288 */ 605 PUSH32(esp, 0x471055F0u); /* 0x4706FC4F: push 0x471055f0 */ 606 PUSH32(esp, 0x80u); /* 0x4706FC54: push 0x80 */ 607 PUSH32(esp, esi); /* 0x4706FC59: push esi */ 608 RECOMP_ICALL(0x47039830u); /* 0x4706FC5A: call 0x47039830 */ /* not lifted */ 609 RECOMP_FLAGS_IN(); 610 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 611 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 612 esp = esp + 0x10u; /* 0x4706FC5F: add esp, 0x10 */ 613 _flag_k = FK_ADD; 614 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 615 eax = eax | 0xFFFFFFFFu; /* 0x4706FC62: or eax, 0xffffffff */ 616 _cf = 0; 617 _flag_k = FK_TEST; 618 goto L_4706FC69; /* 0x4706FC65: jmp 0x4706fc69 */ 619 L_4706FC67: 620 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 621 eax = 0; /* 0x4706FC67: xor eax, eax */ 622 _cf = 0; 623 _flag_k = FK_TEST; 624 L_4706FC69: 625 ecx = MEM32(esp + 0xCC0); /* 0x4706FC69: mov ecx, dword ptr [esp + 0xcc0] */ 626 edi = POP32_VAL(esp); /* 0x4706FC70: pop edi */ 627 esi = POP32_VAL(esp); /* 0x4706FC71: pop esi */ 628 ebp = POP32_VAL(esp); /* 0x4706FC72: pop ebp */ 629 ebx = POP32_VAL(esp); /* 0x4706FC73: pop ebx */ 630 MEM32(FS_BASE + (0)) = ecx; /* 0x4706FC74: mov dword ptr fs:[0], ecx */ 631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCBCu); 632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 633 esp = esp + 0xCBCu; /* 0x4706FC7B: add esp, 0xcbc */ 634 _flag_k = FK_ADD; 635 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706FC81: ret 8 */ 636 RECOMP_REGS_OUT(); 637 } 638 639 void sub_4706FC69(void) { 640 int _fpu_cmp = 0; 641 uint32_t _cf = 0; 642 int _df = 1; 643 uint32_t _flag_k = FK_NONE; 644 uint32_t _flag_a = 0, _flag_b = 0; 645 uint32_t _itail_tgt = 0; 646 RECOMP_REGS_LOCALS 647 RECOMP_ENTER(0x4706FC69u); 648 649 L_4706FC69: 650 ecx = MEM32(esp + 0xCC0); /* 0x4706FC69: mov ecx, dword ptr [esp + 0xcc0] */ 651 edi = POP32_VAL(esp); /* 0x4706FC70: pop edi */ 652 esi = POP32_VAL(esp); /* 0x4706FC71: pop esi */ 653 ebp = POP32_VAL(esp); /* 0x4706FC72: pop ebp */ 654 ebx = POP32_VAL(esp); /* 0x4706FC73: pop ebx */ 655 MEM32(FS_BASE + (0)) = ecx; /* 0x4706FC74: mov dword ptr fs:[0], ecx */ 656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCBCu); 657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 658 esp = esp + 0xCBCu; /* 0x4706FC7B: add esp, 0xcbc */ 659 _flag_k = FK_ADD; 660 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706FC81: ret 8 */ 661 RECOMP_REGS_OUT(); 662 } 663 664 void sub_4706FC90(void) { 665 int _fpu_cmp = 0; 666 uint32_t _cf = 0; 667 int _df = 1; 668 uint32_t _flag_k = FK_NONE; 669 uint32_t _flag_a = 0, _flag_b = 0; 670 uint32_t _itail_tgt = 0; 671 RECOMP_REGS_LOCALS 672 RECOMP_ENTER(0x4706FC90u); 673 674 L_4706FC90: 675 eax = MEM32(FS_BASE + (0)); /* 0x4706FC90: mov eax, dword ptr fs:[0] */ 676 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706FC96: push -1 */ 677 PUSH32(esp, 0x470A8EC8u); /* 0x4706FC98: push 0x470a8ec8 */ 678 PUSH32(esp, eax); /* 0x4706FC9D: push eax */ 679 eax = MEM32(esp + 0x14); /* 0x4706FC9E: mov eax, dword ptr [esp + 0x14] */ 680 MEM32(FS_BASE + (0)) = esp; /* 0x4706FCA2: mov dword ptr fs:[0], esp */ 681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCD4u); 682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 683 esp = esp - 0xCD4u; /* 0x4706FCA9: sub esp, 0xcd4 */ 684 _flag_k = FK_CMP; 685 PUSH32(esp, ebx); /* 0x4706FCAF: push ebx */ 686 PUSH32(esp, ebp); /* 0x4706FCB0: push ebp */ 687 PUSH32(esp, esi); /* 0x4706FCB1: push esi */ 688 PUSH32(esp, edi); /* 0x4706FCB2: push edi */ 689 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 690 ebx = 0; /* 0x4706FCB3: xor ebx, ebx */ 691 _cf = 0; 692 _flag_k = FK_TEST; 693 PUSH32(esp, ebx); /* 0x4706FCB5: push ebx */ 694 PUSH32(esp, ebx); /* 0x4706FCB6: push ebx */ 695 PUSH32(esp, ebx); /* 0x4706FCB7: push ebx */ 696 esi = ecx; /* 0x4706FCB8: mov esi, ecx */ 697 ecx = MEM32(eax + 0x4); /* 0x4706FCBA: mov ecx, dword ptr [eax + 4] */ 698 eax = MEM32(eax + 0x8); /* 0x4706FCBD: mov eax, dword ptr [eax + 8] */ 699 PUSH32(esp, ebx); /* 0x4706FCC0: push ebx */ 700 PUSH32(esp, ebx); /* 0x4706FCC1: push ebx */ 701 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 702 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 703 ecx = ecx + ecx; /* 0x4706FCC2: add ecx, ecx */ 704 _flag_k = FK_ADD; 705 PUSH32(esp, ecx); /* 0x4706FCC4: push ecx */ 706 PUSH32(esp, eax); /* 0x4706FCC5: push eax */ 707 PUSH32(esp, 6); /* 0x4706FCC6: push 6 */ 708 ecx = esp + 0x6B8; /* 0x4706FCC8: lea ecx, [esp + 0x6b8] */ 709 RECOMP_ICALL(0x470467B0u); /* 0x4706FCCF: call 0x470467b0 */ /* not lifted */ 710 RECOMP_FLAGS_IN(); 711 edx = esp + 0x698; /* 0x4706FCD4: lea edx, [esp + 0x698] */ 712 ebp = esi + 0x4; /* 0x4706FCDB: lea ebp, [esi + 4] */ 713 PUSH32(esp, edx); /* 0x4706FCDE: push edx */ 714 ecx = ebp; /* 0x4706FCDF: mov ecx, ebp */ 715 RECOMP_ICALL(0x47046380u); /* 0x4706FCE1: call 0x47046380 */ /* not lifted */ 716 RECOMP_FLAGS_IN(); 717 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FCE6: cmp eax, -1 */ 718 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 720 _flag_k = FK_CMP; 721 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FCF2; /* 0x4706FCE9: jne 0x4706fcf2 */ 722 L_4706FCEB: 723 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 724 eax = eax | eax; /* 0x4706FCEB: or eax, eax */ 725 _cf = 0; 726 _flag_k = FK_TEST; 727 goto L_4706FF36; /* 0x4706FCED: jmp 0x4706ff36 */ 728 L_4706FCF2: 729 PUSH32(esp, ebx); /* 0x4706FCF2: push ebx */ 730 PUSH32(esp, ebx); /* 0x4706FCF3: push ebx */ 731 PUSH32(esp, ebx); /* 0x4706FCF4: push ebx */ 732 PUSH32(esp, ebx); /* 0x4706FCF5: push ebx */ 733 PUSH32(esp, ebx); /* 0x4706FCF6: push ebx */ 734 PUSH32(esp, ebx); /* 0x4706FCF7: push ebx */ 735 PUSH32(esp, ebx); /* 0x4706FCF8: push ebx */ 736 PUSH32(esp, ebx); /* 0x4706FCF9: push ebx */ 737 ecx = esp + 0x6C; /* 0x4706FCFA: lea ecx, [esp + 0x6c] */ 738 RECOMP_ICALL(0x470467B0u); /* 0x4706FCFE: call 0x470467b0 */ /* not lifted */ 739 RECOMP_FLAGS_IN(); 740 ecx = esp + 0x4C; /* 0x4706FD03: lea ecx, [esp + 0x4c] */ 741 RECOMP_ICALL(0x4708EA70u); /* 0x4706FD07: call 0x4708ea70 */ /* not lifted */ 742 RECOMP_FLAGS_IN(); 743 /* cmp eax, 0xBu */ /* 0x4706FD0C: cmp eax, 0xb */ 744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 746 _flag_k = FK_CMP; 747 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FF34; /* 0x4706FD0F: je 0x4706ff34 */ 748 L_4706FD15: 749 esi = MEM32(esp + 0xCF4); /* 0x4706FD15: mov esi, dword ptr [esp + 0xcf4] */ 750 L_4706FD1C: 751 eax = esp + 0x4C; /* 0x4706FD1C: lea eax, [esp + 0x4c] */ 752 PUSH32(esp, eax); /* 0x4706FD20: push eax */ 753 ecx = ebp; /* 0x4706FD21: mov ecx, ebp */ 754 RECOMP_ICALL(0x47046470u); /* 0x4706FD23: call 0x47046470 */ /* not lifted */ 755 RECOMP_FLAGS_IN(); 756 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FD28: cmp eax, -1 */ 757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 759 _flag_k = FK_CMP; 760 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FECE; /* 0x4706FD2B: je 0x4706fece */ 761 L_4706FD31: 762 ecx = esp + 0x4C; /* 0x4706FD31: lea ecx, [esp + 0x4c] */ 763 RECOMP_ICALL(0x4708EA70u); /* 0x4706FD35: call 0x4708ea70 */ /* not lifted */ 764 RECOMP_FLAGS_IN(); 765 /* cmp eax, 0xBu */ /* 0x4706FD3A: cmp eax, 0xb */ 766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 768 _flag_k = FK_CMP; 769 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FE71; /* 0x4706FD3D: je 0x4706fe71 */ 770 L_4706FD43: 771 PUSH32(esp, ebx); /* 0x4706FD43: push ebx */ 772 ecx = esp + 0x50; /* 0x4706FD44: lea ecx, [esp + 0x50] */ 773 RECOMP_ICALL(0x4708EAF0u); /* 0x4706FD48: call 0x4708eaf0 */ /* not lifted */ 774 RECOMP_FLAGS_IN(); 775 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4706FD4D: shr eax, 1 */ 776 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 777 eax = eax >> 1u; /* 0x4706FD4D: shr eax, 1 */ 778 PUSH32(esp, eax); /* 0x4706FD4F: push eax */ 779 ecx = esp + 0x54; /* 0x4706FD50: lea ecx, [esp + 0x54] */ 780 RECOMP_ICALL(0x47046910u); /* 0x4706FD54: call 0x47046910 */ /* not lifted */ 781 RECOMP_FLAGS_IN(); 782 PUSH32(esp, eax); /* 0x4706FD59: push eax */ 783 ecx = esp + 0x1C; /* 0x4706FD5A: lea ecx, [esp + 0x1c] */ 784 RECOMP_ICALL(0x47080BF0u); /* 0x4706FD5E: call 0x47080bf0 */ /* not lifted */ 785 RECOMP_FLAGS_IN(); 786 PUSH32(esp, ebx); /* 0x4706FD63: push ebx */ 787 ecx = esp + 0x50; /* 0x4706FD64: lea ecx, [esp + 0x50] */ 788 MEM32(esp + 0xCF0) = ebx; /* 0x4706FD68: mov dword ptr [esp + 0xcf0], ebx */ 789 RECOMP_ICALL(0x47015330u); /* 0x4706FD6F: call 0x47015330 */ /* not lifted */ 790 RECOMP_FLAGS_IN(); 791 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4706FD74: shr eax, 1 */ 792 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 793 eax = eax >> 1u; /* 0x4706FD74: shr eax, 1 */ 794 PUSH32(esp, eax); /* 0x4706FD76: push eax */ 795 ecx = esp + 0x54; /* 0x4706FD77: lea ecx, [esp + 0x54] */ 796 RECOMP_ICALL(0x47046950u); /* 0x4706FD7B: call 0x47046950 */ /* not lifted */ 797 RECOMP_FLAGS_IN(); 798 PUSH32(esp, eax); /* 0x4706FD80: push eax */ 799 ecx = esp + 0x28; /* 0x4706FD81: lea ecx, [esp + 0x28] */ 800 RECOMP_ICALL(0x47080BF0u); /* 0x4706FD85: call 0x47080bf0 */ /* not lifted */ 801 RECOMP_FLAGS_IN(); 802 ecx = esp + 0x4C; /* 0x4706FD8A: lea ecx, [esp + 0x4c] */ 803 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4706FD8E: mov byte ptr [esp + 0xcec], 1 */ 804 RECOMP_ICALL(0x47046990u); /* 0x4706FD96: call 0x47046990 */ /* not lifted */ 805 RECOMP_FLAGS_IN(); 806 PUSH32(esp, eax); /* 0x4706FD9B: push eax */ 807 ecx = esp + 0x20; /* 0x4706FD9C: lea ecx, [esp + 0x20] */ 808 PUSH32(esp, ecx); /* 0x4706FDA0: push ecx */ 809 edx = esp + 0x18; /* 0x4706FDA1: lea edx, [esp + 0x18] */ 810 PUSH32(esp, edx); /* 0x4706FDA5: push edx */ 811 ecx = esp + 0x38; /* 0x4706FDA6: lea ecx, [esp + 0x38] */ 812 RECOMP_ICALL(0x47047640u); /* 0x4706FDAA: call 0x47047640 */ /* not lifted */ 813 RECOMP_FLAGS_IN(); 814 ecx = MEM32(esi); /* 0x4706FDAF: mov ecx, dword ptr [esi] */ 815 eax = esp + 0x2C; /* 0x4706FDB1: lea eax, [esp + 0x2c] */ 816 PUSH32(esp, eax); /* 0x4706FDB5: push eax */ 817 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 819 ecx = ecx + 4; /* 0x4706FDB6: add ecx, 4 */ 820 _flag_k = FK_ADD; 821 MEM8(esp + 0xCF0) = (uint8_t)(2); /* 0x4706FDB9: mov byte ptr [esp + 0xcf0], 2 */ 822 RECOMP_ICALL(0x47047720u); /* 0x4706FDC1: call 0x47047720 */ /* not lifted */ 823 RECOMP_FLAGS_IN(); 824 ecx = MEM32(esi); /* 0x4706FDC6: mov ecx, dword ptr [esi] */ 825 edi = MEM32(ecx); /* 0x4706FDC8: mov edi, dword ptr [ecx] */ 826 edx = esp + 0x2C; /* 0x4706FDCA: lea edx, [esp + 0x2c] */ 827 PUSH32(esp, edx); /* 0x4706FDCE: push edx */ 828 ecx = edi + 0x4; /* 0x4706FDCF: lea ecx, [edi + 4] */ 829 RECOMP_ICALL(0x47047750u); /* 0x4706FDD2: call 0x47047750 */ /* not lifted */ 830 RECOMP_FLAGS_IN(); 831 /* test eax, eax */ /* 0x4706FDD7: test eax, eax */ 832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 833 _cf = 0; 834 _flag_k = FK_TEST; 835 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706FDEE; /* 0x4706FDD9: jne 0x4706fdee */ 836 L_4706FDDB: 837 edi = MEM32(edi); /* 0x4706FDDB: mov edi, dword ptr [edi] */ 838 eax = esp + 0x2C; /* 0x4706FDDD: lea eax, [esp + 0x2c] */ 839 PUSH32(esp, eax); /* 0x4706FDE1: push eax */ 840 ecx = edi + 0x4; /* 0x4706FDE2: lea ecx, [edi + 4] */ 841 RECOMP_ICALL(0x47047750u); /* 0x4706FDE5: call 0x47047750 */ /* not lifted */ 842 RECOMP_FLAGS_IN(); 843 /* test eax, eax */ /* 0x4706FDEA: test eax, eax */ 844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 845 _cf = 0; 846 _flag_k = FK_TEST; 847 RECOMP_BACKEDGE(); 848 if (TEST_Z(_flag_a, _flag_b)) goto L_4706FDDB; /* 0x4706FDEC: je 0x4706fddb */ 849 L_4706FDEE: 850 eax = MEM32(esi); /* 0x4706FDEE: mov eax, dword ptr [esi] */ 851 /* cmp edi, eax */ /* 0x4706FDF0: cmp edi, eax */ 852 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 854 _flag_k = FK_CMP; 855 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FE3C; /* 0x4706FDF2: jne 0x4706fe3c */ 856 L_4706FDF4: 857 ecx = esp + 0x2C; /* 0x4706FDF4: lea ecx, [esp + 0x2c] */ 858 PUSH32(esp, ecx); /* 0x4706FDF8: push ecx */ 859 ecx = eax + 0x4; /* 0x4706FDF9: lea ecx, [eax + 4] */ 860 RECOMP_ICALL(0x47047720u); /* 0x4706FDFC: call 0x47047720 */ /* not lifted */ 861 RECOMP_FLAGS_IN(); 862 ecx = MEM32(esi + 0x8); /* 0x4706FE01: mov ecx, dword ptr [esi + 8] */ 863 edx = MEM32(ecx); /* 0x4706FE04: mov edx, dword ptr [ecx] */ 864 PUSH32(esp, 0x20u); /* 0x4706FE06: push 0x20 */ 865 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706FE08: call dword ptr [edx + 4] */ 866 RECOMP_FLAGS_IN(); 867 edi = eax; /* 0x4706FE0B: mov edi, eax */ 868 /* cmp edi, ebx */ /* 0x4706FE0D: cmp edi, ebx */ 869 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 870 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 871 _flag_k = FK_CMP; 872 MEM32(esp + 0x28) = edi; /* 0x4706FE0F: mov dword ptr [esp + 0x28], edi */ 873 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FE88; /* 0x4706FE13: je 0x4706fe88 */ 874 L_4706FE15: 875 MEM32(esp + 0x48) = edi; /* 0x4706FE15: mov dword ptr [esp + 0x48], edi */ 876 eax = MEM32(esi); /* 0x4706FE19: mov eax, dword ptr [esi] */ 877 eax = MEM32(eax); /* 0x4706FE1B: mov eax, dword ptr [eax] */ 878 ecx = edi + 0x4; /* 0x4706FE1D: lea ecx, [edi + 4] */ 879 MEM8(esp + 0xCEC) = (uint8_t)(3); /* 0x4706FE20: mov byte ptr [esp + 0xcec], 3 */ 880 MEM32(edi) = eax; /* 0x4706FE28: mov dword ptr [edi], eax */ 881 RECOMP_ICALL(0x47047580u); /* 0x4706FE2A: call 0x47047580 */ /* not lifted */ 882 RECOMP_FLAGS_IN(); 883 ecx = MEM32(esi); /* 0x4706FE2F: mov ecx, dword ptr [esi] */ 884 MEM32(ecx) = edi; /* 0x4706FE31: mov dword ptr [ecx], edi */ 885 eax = MEM32(esi + 0x4); /* 0x4706FE33: mov eax, dword ptr [esi + 4] */ 886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 887 eax = eax + 1; /* 0x4706FE36: inc eax */ 888 _flag_k = FK_INC; 889 MEM32(esi) = edi; /* 0x4706FE37: mov dword ptr [esi], edi */ 890 MEM32(esi + 0x4) = eax; /* 0x4706FE39: mov dword ptr [esi + 4], eax */ 891 L_4706FE3C: 892 ecx = esp + 0x2C; /* 0x4706FE3C: lea ecx, [esp + 0x2c] */ 893 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4706FE40: mov byte ptr [esp + 0xcec], 1 */ 894 RECOMP_ICALL(0x470475E0u); /* 0x4706FE48: call 0x470475e0 */ /* not lifted */ 895 RECOMP_FLAGS_IN(); 896 ecx = esp + 0x1C; /* 0x4706FE4D: lea ecx, [esp + 0x1c] */ 897 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x4706FE51: mov byte ptr [esp + 0xcec], bl */ 898 RECOMP_ICALL(0x470810C0u); /* 0x4706FE58: call 0x470810c0 */ /* not lifted */ 899 RECOMP_FLAGS_IN(); 900 ecx = esp + 0x10; /* 0x4706FE5D: lea ecx, [esp + 0x10] */ 901 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x4706FE61: mov dword ptr [esp + 0xcec], 0xffffffff */ 902 RECOMP_ICALL(0x470810C0u); /* 0x4706FE6C: call 0x470810c0 */ /* not lifted */ 903 RECOMP_FLAGS_IN(); 904 L_4706FE71: 905 ecx = esp + 0x4C; /* 0x4706FE71: lea ecx, [esp + 0x4c] */ 906 RECOMP_ICALL(0x4708EA70u); /* 0x4706FE75: call 0x4708ea70 */ /* not lifted */ 907 RECOMP_FLAGS_IN(); 908 /* cmp eax, 0xBu */ /* 0x4706FE7A: cmp eax, 0xb */ 909 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 911 _flag_k = FK_CMP; 912 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FF34; /* 0x4706FE7D: je 0x4706ff34 */ 913 L_4706FE83: 914 RECOMP_BACKEDGE(); 915 goto L_4706FD1C; /* 0x4706FE83: jmp 0x4706fd1c */ 916 L_4706FE88: 917 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706FE88: call dword ptr [0x470ac3c8] */ 918 RECOMP_FLAGS_IN(); 919 ecx = esp + 0x2C; /* 0x4706FE8E: lea ecx, [esp + 0x2c] */ 920 MEM32(eax) = 0xCu; /* 0x4706FE92: mov dword ptr [eax], 0xc */ 921 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4706FE98: mov byte ptr [esp + 0xcec], 1 */ 922 RECOMP_ICALL(0x470475E0u); /* 0x4706FEA0: call 0x470475e0 */ /* not lifted */ 923 RECOMP_FLAGS_IN(); 924 ecx = esp + 0x1C; /* 0x4706FEA5: lea ecx, [esp + 0x1c] */ 925 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x4706FEA9: mov byte ptr [esp + 0xcec], bl */ 926 RECOMP_ICALL(0x470810C0u); /* 0x4706FEB0: call 0x470810c0 */ /* not lifted */ 927 RECOMP_FLAGS_IN(); 928 ecx = esp + 0x10; /* 0x4706FEB5: lea ecx, [esp + 0x10] */ 929 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x4706FEB9: mov dword ptr [esp + 0xcec], 0xffffffff */ 930 RECOMP_ICALL(0x470810C0u); /* 0x4706FEC4: call 0x470810c0 */ /* not lifted */ 931 RECOMP_FLAGS_IN(); 932 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 933 eax = eax | 0xFFFFFFFFu; /* 0x4706FEC9: or eax, 0xffffffff */ 934 _cf = 0; 935 _flag_k = FK_TEST; 936 goto L_4706FF36; /* 0x4706FECC: jmp 0x4706ff36 */ 937 L_4706FECE: 938 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706FECE: call dword ptr [0x470ac150] */ 939 RECOMP_FLAGS_IN(); 940 edi = eax; /* 0x4706FED4: mov edi, eax */ 941 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706FED6: call dword ptr [0x470ac3c8] */ 942 RECOMP_FLAGS_IN(); 943 eax = MEM32(eax); /* 0x4706FEDC: mov eax, dword ptr [eax] */ 944 /* cmp eax, ebx */ /* 0x4706FEDE: cmp eax, ebx */ 945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 947 _flag_k = FK_CMP; 948 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FEE4; /* 0x4706FEE0: je 0x4706fee4 */ 949 L_4706FEE2: 950 edi = eax; /* 0x4706FEE2: mov edi, eax */ 951 L_4706FEE4: 952 RECOMP_ICALL(0x47039020u); /* 0x4706FEE4: call 0x47039020 */ /* not lifted */ 953 RECOMP_FLAGS_IN(); 954 esi = eax; /* 0x4706FEE9: mov esi, eax */ 955 ecx = esi; /* 0x4706FEEB: mov ecx, esi */ 956 RECOMP_ICALL(0x4703B210u); /* 0x4706FEED: call 0x4703b210 */ /* not lifted */ 957 RECOMP_FLAGS_IN(); 958 PUSH32(esp, eax); /* 0x4706FEF2: push eax */ 959 ecx = esi; /* 0x4706FEF3: mov ecx, esi */ 960 RECOMP_ICALL(0x4703B240u); /* 0x4706FEF5: call 0x4703b240 */ /* not lifted */ 961 RECOMP_FLAGS_IN(); 962 PUSH32(esp, eax); /* 0x4706FEFA: push eax */ 963 ecx = esi; /* 0x4706FEFB: mov ecx, esi */ 964 RECOMP_ICALL(0x4703B080u); /* 0x4706FEFD: call 0x4703b080 */ /* not lifted */ 965 RECOMP_FLAGS_IN(); 966 PUSH32(esp, eax); /* 0x4706FF02: push eax */ 967 PUSH32(esp, edi); /* 0x4706FF03: push edi */ 968 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706FF04: push -1 */ 969 PUSH32(esp, 0xE2u); /* 0x4706FF06: push 0xe2 */ 970 PUSH32(esp, 0x4710A224u); /* 0x4706FF0B: push 0x4710a224 */ 971 ecx = esi; /* 0x4706FF10: mov ecx, esi */ 972 RECOMP_ICALL(0x4703A340u); /* 0x4706FF12: call 0x4703a340 */ /* not lifted */ 973 RECOMP_FLAGS_IN(); 974 PUSH32(esp, 0x4710A264u); /* 0x4706FF17: push 0x4710a264 */ 975 PUSH32(esp, 0x471055F0u); /* 0x4706FF1C: push 0x471055f0 */ 976 PUSH32(esp, 0x80u); /* 0x4706FF21: push 0x80 */ 977 PUSH32(esp, esi); /* 0x4706FF26: push esi */ 978 RECOMP_ICALL(0x47039830u); /* 0x4706FF27: call 0x47039830 */ /* not lifted */ 979 RECOMP_FLAGS_IN(); 980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 982 esp = esp + 0x10u; /* 0x4706FF2C: add esp, 0x10 */ 983 _flag_k = FK_ADD; 984 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 985 eax = eax | 0xFFFFFFFFu; /* 0x4706FF2F: or eax, 0xffffffff */ 986 _cf = 0; 987 _flag_k = FK_TEST; 988 goto L_4706FF36; /* 0x4706FF32: jmp 0x4706ff36 */ 989 L_4706FF34: 990 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 991 eax = 0; /* 0x4706FF34: xor eax, eax */ 992 _cf = 0; 993 _flag_k = FK_TEST; 994 L_4706FF36: 995 ecx = MEM32(esp + 0xCE4); /* 0x4706FF36: mov ecx, dword ptr [esp + 0xce4] */ 996 edi = POP32_VAL(esp); /* 0x4706FF3D: pop edi */ 997 esi = POP32_VAL(esp); /* 0x4706FF3E: pop esi */ 998 ebp = POP32_VAL(esp); /* 0x4706FF3F: pop ebp */ 999 ebx = POP32_VAL(esp); /* 0x4706FF40: pop ebx */ 1000 MEM32(FS_BASE + (0)) = ecx; /* 0x4706FF41: mov dword ptr fs:[0], ecx */ 1001 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 1002 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1003 esp = esp + 0xCE0u; /* 0x4706FF48: add esp, 0xce0 */ 1004 _flag_k = FK_ADD; 1005 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706FF4E: ret 8 */ 1006 RECOMP_REGS_OUT(); 1007 } 1008 1009 void sub_4706FD1C(void) { 1010 int _fpu_cmp = 0; 1011 uint32_t _cf = 0; 1012 int _df = 1; 1013 uint32_t _flag_k = FK_NONE; 1014 uint32_t _flag_a = 0, _flag_b = 0; 1015 uint32_t _itail_tgt = 0; 1016 RECOMP_REGS_LOCALS 1017 RECOMP_ENTER(0x4706FD1Cu); 1018 1019 L_4706FD1C: 1020 eax = esp + 0x4C; /* 0x4706FD1C: lea eax, [esp + 0x4c] */ 1021 PUSH32(esp, eax); /* 0x4706FD20: push eax */ 1022 ecx = ebp; /* 0x4706FD21: mov ecx, ebp */ 1023 RECOMP_ICALL(0x47046470u); /* 0x4706FD23: call 0x47046470 */ /* not lifted */ 1024 RECOMP_FLAGS_IN(); 1025 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FD28: cmp eax, -1 */ 1026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1028 _flag_k = FK_CMP; 1029 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FECE; /* 0x4706FD2B: je 0x4706fece */ 1030 L_4706FD31: 1031 ecx = esp + 0x4C; /* 0x4706FD31: lea ecx, [esp + 0x4c] */ 1032 RECOMP_ICALL(0x4708EA70u); /* 0x4706FD35: call 0x4708ea70 */ /* not lifted */ 1033 RECOMP_FLAGS_IN(); 1034 /* cmp eax, 0xBu */ /* 0x4706FD3A: cmp eax, 0xb */ 1035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 1036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1037 _flag_k = FK_CMP; 1038 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FE71; /* 0x4706FD3D: je 0x4706fe71 */ 1039 L_4706FD43: 1040 PUSH32(esp, ebx); /* 0x4706FD43: push ebx */ 1041 ecx = esp + 0x50; /* 0x4706FD44: lea ecx, [esp + 0x50] */ 1042 RECOMP_ICALL(0x4708EAF0u); /* 0x4706FD48: call 0x4708eaf0 */ /* not lifted */ 1043 RECOMP_FLAGS_IN(); 1044 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4706FD4D: shr eax, 1 */ 1045 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1046 eax = eax >> 1u; /* 0x4706FD4D: shr eax, 1 */ 1047 PUSH32(esp, eax); /* 0x4706FD4F: push eax */ 1048 ecx = esp + 0x54; /* 0x4706FD50: lea ecx, [esp + 0x54] */ 1049 RECOMP_ICALL(0x47046910u); /* 0x4706FD54: call 0x47046910 */ /* not lifted */ 1050 RECOMP_FLAGS_IN(); 1051 PUSH32(esp, eax); /* 0x4706FD59: push eax */ 1052 ecx = esp + 0x1C; /* 0x4706FD5A: lea ecx, [esp + 0x1c] */ 1053 RECOMP_ICALL(0x47080BF0u); /* 0x4706FD5E: call 0x47080bf0 */ /* not lifted */ 1054 RECOMP_FLAGS_IN(); 1055 PUSH32(esp, ebx); /* 0x4706FD63: push ebx */ 1056 ecx = esp + 0x50; /* 0x4706FD64: lea ecx, [esp + 0x50] */ 1057 MEM32(esp + 0xCF0) = ebx; /* 0x4706FD68: mov dword ptr [esp + 0xcf0], ebx */ 1058 RECOMP_ICALL(0x47015330u); /* 0x4706FD6F: call 0x47015330 */ /* not lifted */ 1059 RECOMP_FLAGS_IN(); 1060 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4706FD74: shr eax, 1 */ 1061 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1062 eax = eax >> 1u; /* 0x4706FD74: shr eax, 1 */ 1063 PUSH32(esp, eax); /* 0x4706FD76: push eax */ 1064 ecx = esp + 0x54; /* 0x4706FD77: lea ecx, [esp + 0x54] */ 1065 RECOMP_ICALL(0x47046950u); /* 0x4706FD7B: call 0x47046950 */ /* not lifted */ 1066 RECOMP_FLAGS_IN(); 1067 PUSH32(esp, eax); /* 0x4706FD80: push eax */ 1068 ecx = esp + 0x28; /* 0x4706FD81: lea ecx, [esp + 0x28] */ 1069 RECOMP_ICALL(0x47080BF0u); /* 0x4706FD85: call 0x47080bf0 */ /* not lifted */ 1070 RECOMP_FLAGS_IN(); 1071 ecx = esp + 0x4C; /* 0x4706FD8A: lea ecx, [esp + 0x4c] */ 1072 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4706FD8E: mov byte ptr [esp + 0xcec], 1 */ 1073 RECOMP_ICALL(0x47046990u); /* 0x4706FD96: call 0x47046990 */ /* not lifted */ 1074 RECOMP_FLAGS_IN(); 1075 PUSH32(esp, eax); /* 0x4706FD9B: push eax */ 1076 ecx = esp + 0x20; /* 0x4706FD9C: lea ecx, [esp + 0x20] */ 1077 PUSH32(esp, ecx); /* 0x4706FDA0: push ecx */ 1078 edx = esp + 0x18; /* 0x4706FDA1: lea edx, [esp + 0x18] */ 1079 PUSH32(esp, edx); /* 0x4706FDA5: push edx */ 1080 ecx = esp + 0x38; /* 0x4706FDA6: lea ecx, [esp + 0x38] */ 1081 RECOMP_ICALL(0x47047640u); /* 0x4706FDAA: call 0x47047640 */ /* not lifted */ 1082 RECOMP_FLAGS_IN(); 1083 ecx = MEM32(esi); /* 0x4706FDAF: mov ecx, dword ptr [esi] */ 1084 eax = esp + 0x2C; /* 0x4706FDB1: lea eax, [esp + 0x2c] */ 1085 PUSH32(esp, eax); /* 0x4706FDB5: push eax */ 1086 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1087 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1088 ecx = ecx + 4; /* 0x4706FDB6: add ecx, 4 */ 1089 _flag_k = FK_ADD; 1090 MEM8(esp + 0xCF0) = (uint8_t)(2); /* 0x4706FDB9: mov byte ptr [esp + 0xcf0], 2 */ 1091 RECOMP_ICALL(0x47047720u); /* 0x4706FDC1: call 0x47047720 */ /* not lifted */ 1092 RECOMP_FLAGS_IN(); 1093 ecx = MEM32(esi); /* 0x4706FDC6: mov ecx, dword ptr [esi] */ 1094 edi = MEM32(ecx); /* 0x4706FDC8: mov edi, dword ptr [ecx] */ 1095 edx = esp + 0x2C; /* 0x4706FDCA: lea edx, [esp + 0x2c] */ 1096 PUSH32(esp, edx); /* 0x4706FDCE: push edx */ 1097 ecx = edi + 0x4; /* 0x4706FDCF: lea ecx, [edi + 4] */ 1098 RECOMP_ICALL(0x47047750u); /* 0x4706FDD2: call 0x47047750 */ /* not lifted */ 1099 RECOMP_FLAGS_IN(); 1100 /* test eax, eax */ /* 0x4706FDD7: test eax, eax */ 1101 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1102 _cf = 0; 1103 _flag_k = FK_TEST; 1104 if (TEST_NZ(_flag_a, _flag_b)) goto L_4706FDEE; /* 0x4706FDD9: jne 0x4706fdee */ 1105 L_4706FDDB: 1106 edi = MEM32(edi); /* 0x4706FDDB: mov edi, dword ptr [edi] */ 1107 eax = esp + 0x2C; /* 0x4706FDDD: lea eax, [esp + 0x2c] */ 1108 PUSH32(esp, eax); /* 0x4706FDE1: push eax */ 1109 ecx = edi + 0x4; /* 0x4706FDE2: lea ecx, [edi + 4] */ 1110 RECOMP_ICALL(0x47047750u); /* 0x4706FDE5: call 0x47047750 */ /* not lifted */ 1111 RECOMP_FLAGS_IN(); 1112 /* test eax, eax */ /* 0x4706FDEA: test eax, eax */ 1113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1114 _cf = 0; 1115 _flag_k = FK_TEST; 1116 RECOMP_BACKEDGE(); 1117 if (TEST_Z(_flag_a, _flag_b)) goto L_4706FDDB; /* 0x4706FDEC: je 0x4706fddb */ 1118 L_4706FDEE: 1119 eax = MEM32(esi); /* 0x4706FDEE: mov eax, dword ptr [esi] */ 1120 /* cmp edi, eax */ /* 0x4706FDF0: cmp edi, eax */ 1121 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1123 _flag_k = FK_CMP; 1124 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FE3C; /* 0x4706FDF2: jne 0x4706fe3c */ 1125 L_4706FDF4: 1126 ecx = esp + 0x2C; /* 0x4706FDF4: lea ecx, [esp + 0x2c] */ 1127 PUSH32(esp, ecx); /* 0x4706FDF8: push ecx */ 1128 ecx = eax + 0x4; /* 0x4706FDF9: lea ecx, [eax + 4] */ 1129 RECOMP_ICALL(0x47047720u); /* 0x4706FDFC: call 0x47047720 */ /* not lifted */ 1130 RECOMP_FLAGS_IN(); 1131 ecx = MEM32(esi + 0x8); /* 0x4706FE01: mov ecx, dword ptr [esi + 8] */ 1132 edx = MEM32(ecx); /* 0x4706FE04: mov edx, dword ptr [ecx] */ 1133 PUSH32(esp, 0x20u); /* 0x4706FE06: push 0x20 */ 1134 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4706FE08: call dword ptr [edx + 4] */ 1135 RECOMP_FLAGS_IN(); 1136 edi = eax; /* 0x4706FE0B: mov edi, eax */ 1137 /* cmp edi, ebx */ /* 0x4706FE0D: cmp edi, ebx */ 1138 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1140 _flag_k = FK_CMP; 1141 MEM32(esp + 0x28) = edi; /* 0x4706FE0F: mov dword ptr [esp + 0x28], edi */ 1142 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FE88; /* 0x4706FE13: je 0x4706fe88 */ 1143 L_4706FE15: 1144 MEM32(esp + 0x48) = edi; /* 0x4706FE15: mov dword ptr [esp + 0x48], edi */ 1145 eax = MEM32(esi); /* 0x4706FE19: mov eax, dword ptr [esi] */ 1146 eax = MEM32(eax); /* 0x4706FE1B: mov eax, dword ptr [eax] */ 1147 ecx = edi + 0x4; /* 0x4706FE1D: lea ecx, [edi + 4] */ 1148 MEM8(esp + 0xCEC) = (uint8_t)(3); /* 0x4706FE20: mov byte ptr [esp + 0xcec], 3 */ 1149 MEM32(edi) = eax; /* 0x4706FE28: mov dword ptr [edi], eax */ 1150 RECOMP_ICALL(0x47047580u); /* 0x4706FE2A: call 0x47047580 */ /* not lifted */ 1151 RECOMP_FLAGS_IN(); 1152 ecx = MEM32(esi); /* 0x4706FE2F: mov ecx, dword ptr [esi] */ 1153 MEM32(ecx) = edi; /* 0x4706FE31: mov dword ptr [ecx], edi */ 1154 eax = MEM32(esi + 0x4); /* 0x4706FE33: mov eax, dword ptr [esi + 4] */ 1155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1156 eax = eax + 1; /* 0x4706FE36: inc eax */ 1157 _flag_k = FK_INC; 1158 MEM32(esi) = edi; /* 0x4706FE37: mov dword ptr [esi], edi */ 1159 MEM32(esi + 0x4) = eax; /* 0x4706FE39: mov dword ptr [esi + 4], eax */ 1160 L_4706FE3C: 1161 ecx = esp + 0x2C; /* 0x4706FE3C: lea ecx, [esp + 0x2c] */ 1162 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4706FE40: mov byte ptr [esp + 0xcec], 1 */ 1163 RECOMP_ICALL(0x470475E0u); /* 0x4706FE48: call 0x470475e0 */ /* not lifted */ 1164 RECOMP_FLAGS_IN(); 1165 ecx = esp + 0x1C; /* 0x4706FE4D: lea ecx, [esp + 0x1c] */ 1166 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x4706FE51: mov byte ptr [esp + 0xcec], bl */ 1167 RECOMP_ICALL(0x470810C0u); /* 0x4706FE58: call 0x470810c0 */ /* not lifted */ 1168 RECOMP_FLAGS_IN(); 1169 ecx = esp + 0x10; /* 0x4706FE5D: lea ecx, [esp + 0x10] */ 1170 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x4706FE61: mov dword ptr [esp + 0xcec], 0xffffffff */ 1171 RECOMP_ICALL(0x470810C0u); /* 0x4706FE6C: call 0x470810c0 */ /* not lifted */ 1172 RECOMP_FLAGS_IN(); 1173 L_4706FE71: 1174 ecx = esp + 0x4C; /* 0x4706FE71: lea ecx, [esp + 0x4c] */ 1175 RECOMP_ICALL(0x4708EA70u); /* 0x4706FE75: call 0x4708ea70 */ /* not lifted */ 1176 RECOMP_FLAGS_IN(); 1177 /* cmp eax, 0xBu */ /* 0x4706FE7A: cmp eax, 0xb */ 1178 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 1179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1180 _flag_k = FK_CMP; 1181 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FF34; /* 0x4706FE7D: je 0x4706ff34 */ 1182 L_4706FE83: 1183 RECOMP_BACKEDGE(); 1184 goto L_4706FD1C; /* 0x4706FE83: jmp 0x4706fd1c */ 1185 L_4706FE88: 1186 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706FE88: call dword ptr [0x470ac3c8] */ 1187 RECOMP_FLAGS_IN(); 1188 ecx = esp + 0x2C; /* 0x4706FE8E: lea ecx, [esp + 0x2c] */ 1189 MEM32(eax) = 0xCu; /* 0x4706FE92: mov dword ptr [eax], 0xc */ 1190 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4706FE98: mov byte ptr [esp + 0xcec], 1 */ 1191 RECOMP_ICALL(0x470475E0u); /* 0x4706FEA0: call 0x470475e0 */ /* not lifted */ 1192 RECOMP_FLAGS_IN(); 1193 ecx = esp + 0x1C; /* 0x4706FEA5: lea ecx, [esp + 0x1c] */ 1194 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x4706FEA9: mov byte ptr [esp + 0xcec], bl */ 1195 RECOMP_ICALL(0x470810C0u); /* 0x4706FEB0: call 0x470810c0 */ /* not lifted */ 1196 RECOMP_FLAGS_IN(); 1197 ecx = esp + 0x10; /* 0x4706FEB5: lea ecx, [esp + 0x10] */ 1198 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x4706FEB9: mov dword ptr [esp + 0xcec], 0xffffffff */ 1199 RECOMP_ICALL(0x470810C0u); /* 0x4706FEC4: call 0x470810c0 */ /* not lifted */ 1200 RECOMP_FLAGS_IN(); 1201 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1202 eax = eax | 0xFFFFFFFFu; /* 0x4706FEC9: or eax, 0xffffffff */ 1203 _cf = 0; 1204 _flag_k = FK_TEST; 1205 goto L_4706FF36; /* 0x4706FECC: jmp 0x4706ff36 */ 1206 L_4706FECE: 1207 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706FECE: call dword ptr [0x470ac150] */ 1208 RECOMP_FLAGS_IN(); 1209 edi = eax; /* 0x4706FED4: mov edi, eax */ 1210 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4706FED6: call dword ptr [0x470ac3c8] */ 1211 RECOMP_FLAGS_IN(); 1212 eax = MEM32(eax); /* 0x4706FEDC: mov eax, dword ptr [eax] */ 1213 /* cmp eax, ebx */ /* 0x4706FEDE: cmp eax, ebx */ 1214 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1216 _flag_k = FK_CMP; 1217 if (CMP_EQ(_flag_a, _flag_b)) goto L_4706FEE4; /* 0x4706FEE0: je 0x4706fee4 */ 1218 L_4706FEE2: 1219 edi = eax; /* 0x4706FEE2: mov edi, eax */ 1220 L_4706FEE4: 1221 RECOMP_ICALL(0x47039020u); /* 0x4706FEE4: call 0x47039020 */ /* not lifted */ 1222 RECOMP_FLAGS_IN(); 1223 esi = eax; /* 0x4706FEE9: mov esi, eax */ 1224 ecx = esi; /* 0x4706FEEB: mov ecx, esi */ 1225 RECOMP_ICALL(0x4703B210u); /* 0x4706FEED: call 0x4703b210 */ /* not lifted */ 1226 RECOMP_FLAGS_IN(); 1227 PUSH32(esp, eax); /* 0x4706FEF2: push eax */ 1228 ecx = esi; /* 0x4706FEF3: mov ecx, esi */ 1229 RECOMP_ICALL(0x4703B240u); /* 0x4706FEF5: call 0x4703b240 */ /* not lifted */ 1230 RECOMP_FLAGS_IN(); 1231 PUSH32(esp, eax); /* 0x4706FEFA: push eax */ 1232 ecx = esi; /* 0x4706FEFB: mov ecx, esi */ 1233 RECOMP_ICALL(0x4703B080u); /* 0x4706FEFD: call 0x4703b080 */ /* not lifted */ 1234 RECOMP_FLAGS_IN(); 1235 PUSH32(esp, eax); /* 0x4706FF02: push eax */ 1236 PUSH32(esp, edi); /* 0x4706FF03: push edi */ 1237 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706FF04: push -1 */ 1238 PUSH32(esp, 0xE2u); /* 0x4706FF06: push 0xe2 */ 1239 PUSH32(esp, 0x4710A224u); /* 0x4706FF0B: push 0x4710a224 */ 1240 ecx = esi; /* 0x4706FF10: mov ecx, esi */ 1241 RECOMP_ICALL(0x4703A340u); /* 0x4706FF12: call 0x4703a340 */ /* not lifted */ 1242 RECOMP_FLAGS_IN(); 1243 PUSH32(esp, 0x4710A264u); /* 0x4706FF17: push 0x4710a264 */ 1244 PUSH32(esp, 0x471055F0u); /* 0x4706FF1C: push 0x471055f0 */ 1245 PUSH32(esp, 0x80u); /* 0x4706FF21: push 0x80 */ 1246 PUSH32(esp, esi); /* 0x4706FF26: push esi */ 1247 RECOMP_ICALL(0x47039830u); /* 0x4706FF27: call 0x47039830 */ /* not lifted */ 1248 RECOMP_FLAGS_IN(); 1249 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1251 esp = esp + 0x10u; /* 0x4706FF2C: add esp, 0x10 */ 1252 _flag_k = FK_ADD; 1253 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1254 eax = eax | 0xFFFFFFFFu; /* 0x4706FF2F: or eax, 0xffffffff */ 1255 _cf = 0; 1256 _flag_k = FK_TEST; 1257 goto L_4706FF36; /* 0x4706FF32: jmp 0x4706ff36 */ 1258 L_4706FF34: 1259 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1260 eax = 0; /* 0x4706FF34: xor eax, eax */ 1261 _cf = 0; 1262 _flag_k = FK_TEST; 1263 L_4706FF36: 1264 ecx = MEM32(esp + 0xCE4); /* 0x4706FF36: mov ecx, dword ptr [esp + 0xce4] */ 1265 edi = POP32_VAL(esp); /* 0x4706FF3D: pop edi */ 1266 esi = POP32_VAL(esp); /* 0x4706FF3E: pop esi */ 1267 ebp = POP32_VAL(esp); /* 0x4706FF3F: pop ebp */ 1268 ebx = POP32_VAL(esp); /* 0x4706FF40: pop ebx */ 1269 MEM32(FS_BASE + (0)) = ecx; /* 0x4706FF41: mov dword ptr fs:[0], ecx */ 1270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 1271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1272 esp = esp + 0xCE0u; /* 0x4706FF48: add esp, 0xce0 */ 1273 _flag_k = FK_ADD; 1274 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706FF4E: ret 8 */ 1275 RECOMP_REGS_OUT(); 1276 } 1277 1278 void sub_4706FF36(void) { 1279 int _fpu_cmp = 0; 1280 uint32_t _cf = 0; 1281 int _df = 1; 1282 uint32_t _flag_k = FK_NONE; 1283 uint32_t _flag_a = 0, _flag_b = 0; 1284 uint32_t _itail_tgt = 0; 1285 RECOMP_REGS_LOCALS 1286 RECOMP_ENTER(0x4706FF36u); 1287 1288 L_4706FF36: 1289 ecx = MEM32(esp + 0xCE4); /* 0x4706FF36: mov ecx, dword ptr [esp + 0xce4] */ 1290 edi = POP32_VAL(esp); /* 0x4706FF3D: pop edi */ 1291 esi = POP32_VAL(esp); /* 0x4706FF3E: pop esi */ 1292 ebp = POP32_VAL(esp); /* 0x4706FF3F: pop ebp */ 1293 ebx = POP32_VAL(esp); /* 0x4706FF40: pop ebx */ 1294 MEM32(FS_BASE + (0)) = ecx; /* 0x4706FF41: mov dword ptr fs:[0], ecx */ 1295 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 1296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1297 esp = esp + 0xCE0u; /* 0x4706FF48: add esp, 0xce0 */ 1298 _flag_k = FK_ADD; 1299 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706FF4E: ret 8 */ 1300 RECOMP_REGS_OUT(); 1301 } 1302 1303 void sub_4706FF60(void) { 1304 int _fpu_cmp = 0; 1305 uint32_t _cf = 0; 1306 int _df = 1; 1307 uint32_t _flag_k = FK_NONE; 1308 uint32_t _flag_a = 0, _flag_b = 0; 1309 uint32_t _itail_tgt = 0; 1310 RECOMP_REGS_LOCALS 1311 RECOMP_ENTER(0x4706FF60u); 1312 1313 L_4706FF60: 1314 eax = MEM32(FS_BASE + (0)); /* 0x4706FF60: mov eax, dword ptr fs:[0] */ 1315 PUSH32(esp, 0xFFFFFFFFu); /* 0x4706FF66: push -1 */ 1316 PUSH32(esp, 0x470A8F18u); /* 0x4706FF68: push 0x470a8f18 */ 1317 PUSH32(esp, eax); /* 0x4706FF6D: push eax */ 1318 eax = MEM32(esp + 0x14); /* 0x4706FF6E: mov eax, dword ptr [esp + 0x14] */ 1319 MEM32(FS_BASE + (0)) = esp; /* 0x4706FF72: mov dword ptr fs:[0], esp */ 1320 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCD4u); 1321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1322 esp = esp - 0xCD4u; /* 0x4706FF79: sub esp, 0xcd4 */ 1323 _flag_k = FK_CMP; 1324 PUSH32(esp, ebx); /* 0x4706FF7F: push ebx */ 1325 PUSH32(esp, ebp); /* 0x4706FF80: push ebp */ 1326 PUSH32(esp, esi); /* 0x4706FF81: push esi */ 1327 PUSH32(esp, edi); /* 0x4706FF82: push edi */ 1328 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1329 ebx = 0; /* 0x4706FF83: xor ebx, ebx */ 1330 _cf = 0; 1331 _flag_k = FK_TEST; 1332 PUSH32(esp, ebx); /* 0x4706FF85: push ebx */ 1333 PUSH32(esp, ebx); /* 0x4706FF86: push ebx */ 1334 PUSH32(esp, ebx); /* 0x4706FF87: push ebx */ 1335 esi = ecx; /* 0x4706FF88: mov esi, ecx */ 1336 ecx = MEM32(eax + 0x4); /* 0x4706FF8A: mov ecx, dword ptr [eax + 4] */ 1337 eax = MEM32(eax + 0x8); /* 0x4706FF8D: mov eax, dword ptr [eax + 8] */ 1338 PUSH32(esp, ebx); /* 0x4706FF90: push ebx */ 1339 PUSH32(esp, ebx); /* 0x4706FF91: push ebx */ 1340 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1341 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1342 ecx = ecx + ecx; /* 0x4706FF92: add ecx, ecx */ 1343 _flag_k = FK_ADD; 1344 PUSH32(esp, ecx); /* 0x4706FF94: push ecx */ 1345 PUSH32(esp, eax); /* 0x4706FF95: push eax */ 1346 PUSH32(esp, 0xEu); /* 0x4706FF96: push 0xe */ 1347 ecx = esp + 0x6B8; /* 0x4706FF98: lea ecx, [esp + 0x6b8] */ 1348 RECOMP_ICALL(0x470467B0u); /* 0x4706FF9F: call 0x470467b0 */ /* not lifted */ 1349 RECOMP_FLAGS_IN(); 1350 edx = esp + 0x698; /* 0x4706FFA4: lea edx, [esp + 0x698] */ 1351 ebp = esi + 0x4; /* 0x4706FFAB: lea ebp, [esi + 4] */ 1352 PUSH32(esp, edx); /* 0x4706FFAE: push edx */ 1353 ecx = ebp; /* 0x4706FFAF: mov ecx, ebp */ 1354 RECOMP_ICALL(0x47046380u); /* 0x4706FFB1: call 0x47046380 */ /* not lifted */ 1355 RECOMP_FLAGS_IN(); 1356 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FFB6: cmp eax, -1 */ 1357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1358 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1359 _flag_k = FK_CMP; 1360 if (CMP_NE(_flag_a, _flag_b)) goto L_4706FFC2; /* 0x4706FFB9: jne 0x4706ffc2 */ 1361 L_4706FFBB: 1362 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 1363 eax = eax | eax; /* 0x4706FFBB: or eax, eax */ 1364 _cf = 0; 1365 _flag_k = FK_TEST; 1366 goto L_47070206; /* 0x4706FFBD: jmp 0x47070206 */ 1367 L_4706FFC2: 1368 PUSH32(esp, ebx); /* 0x4706FFC2: push ebx */ 1369 PUSH32(esp, ebx); /* 0x4706FFC3: push ebx */ 1370 PUSH32(esp, ebx); /* 0x4706FFC4: push ebx */ 1371 PUSH32(esp, ebx); /* 0x4706FFC5: push ebx */ 1372 PUSH32(esp, ebx); /* 0x4706FFC6: push ebx */ 1373 PUSH32(esp, ebx); /* 0x4706FFC7: push ebx */ 1374 PUSH32(esp, ebx); /* 0x4706FFC8: push ebx */ 1375 PUSH32(esp, ebx); /* 0x4706FFC9: push ebx */ 1376 ecx = esp + 0x6C; /* 0x4706FFCA: lea ecx, [esp + 0x6c] */ 1377 RECOMP_ICALL(0x470467B0u); /* 0x4706FFCE: call 0x470467b0 */ /* not lifted */ 1378 RECOMP_FLAGS_IN(); 1379 ecx = esp + 0x4C; /* 0x4706FFD3: lea ecx, [esp + 0x4c] */ 1380 RECOMP_ICALL(0x4708EA70u); /* 0x4706FFD7: call 0x4708ea70 */ /* not lifted */ 1381 RECOMP_FLAGS_IN(); 1382 /* cmp eax, 0xBu */ /* 0x4706FFDC: cmp eax, 0xb */ 1383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 1384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1385 _flag_k = FK_CMP; 1386 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070204; /* 0x4706FFDF: je 0x47070204 */ 1387 L_4706FFE5: 1388 esi = MEM32(esp + 0xCF4); /* 0x4706FFE5: mov esi, dword ptr [esp + 0xcf4] */ 1389 L_4706FFEC: 1390 eax = esp + 0x4C; /* 0x4706FFEC: lea eax, [esp + 0x4c] */ 1391 PUSH32(esp, eax); /* 0x4706FFF0: push eax */ 1392 ecx = ebp; /* 0x4706FFF1: mov ecx, ebp */ 1393 RECOMP_ICALL(0x47046470u); /* 0x4706FFF3: call 0x47046470 */ /* not lifted */ 1394 RECOMP_FLAGS_IN(); 1395 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FFF8: cmp eax, -1 */ 1396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1398 _flag_k = FK_CMP; 1399 if (CMP_EQ(_flag_a, _flag_b)) goto L_4707019E; /* 0x4706FFFB: je 0x4707019e */ 1400 L_47070001: 1401 ecx = esp + 0x4C; /* 0x47070001: lea ecx, [esp + 0x4c] */ 1402 RECOMP_ICALL(0x4708EA70u); /* 0x47070005: call 0x4708ea70 */ /* not lifted */ 1403 RECOMP_FLAGS_IN(); 1404 /* cmp eax, 0xBu */ /* 0x4707000A: cmp eax, 0xb */ 1405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 1406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1407 _flag_k = FK_CMP; 1408 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070141; /* 0x4707000D: je 0x47070141 */ 1409 L_47070013: 1410 PUSH32(esp, ebx); /* 0x47070013: push ebx */ 1411 ecx = esp + 0x50; /* 0x47070014: lea ecx, [esp + 0x50] */ 1412 RECOMP_ICALL(0x4708EAF0u); /* 0x47070018: call 0x4708eaf0 */ /* not lifted */ 1413 RECOMP_FLAGS_IN(); 1414 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4707001D: shr eax, 1 */ 1415 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1416 eax = eax >> 1u; /* 0x4707001D: shr eax, 1 */ 1417 PUSH32(esp, eax); /* 0x4707001F: push eax */ 1418 ecx = esp + 0x54; /* 0x47070020: lea ecx, [esp + 0x54] */ 1419 RECOMP_ICALL(0x47046910u); /* 0x47070024: call 0x47046910 */ /* not lifted */ 1420 RECOMP_FLAGS_IN(); 1421 PUSH32(esp, eax); /* 0x47070029: push eax */ 1422 ecx = esp + 0x1C; /* 0x4707002A: lea ecx, [esp + 0x1c] */ 1423 RECOMP_ICALL(0x47080BF0u); /* 0x4707002E: call 0x47080bf0 */ /* not lifted */ 1424 RECOMP_FLAGS_IN(); 1425 PUSH32(esp, ebx); /* 0x47070033: push ebx */ 1426 ecx = esp + 0x50; /* 0x47070034: lea ecx, [esp + 0x50] */ 1427 MEM32(esp + 0xCF0) = ebx; /* 0x47070038: mov dword ptr [esp + 0xcf0], ebx */ 1428 RECOMP_ICALL(0x47015330u); /* 0x4707003F: call 0x47015330 */ /* not lifted */ 1429 RECOMP_FLAGS_IN(); 1430 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x47070044: shr eax, 1 */ 1431 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1432 eax = eax >> 1u; /* 0x47070044: shr eax, 1 */ 1433 PUSH32(esp, eax); /* 0x47070046: push eax */ 1434 ecx = esp + 0x54; /* 0x47070047: lea ecx, [esp + 0x54] */ 1435 RECOMP_ICALL(0x47046950u); /* 0x4707004B: call 0x47046950 */ /* not lifted */ 1436 RECOMP_FLAGS_IN(); 1437 PUSH32(esp, eax); /* 0x47070050: push eax */ 1438 ecx = esp + 0x28; /* 0x47070051: lea ecx, [esp + 0x28] */ 1439 RECOMP_ICALL(0x47080BF0u); /* 0x47070055: call 0x47080bf0 */ /* not lifted */ 1440 RECOMP_FLAGS_IN(); 1441 ecx = esp + 0x4C; /* 0x4707005A: lea ecx, [esp + 0x4c] */ 1442 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4707005E: mov byte ptr [esp + 0xcec], 1 */ 1443 RECOMP_ICALL(0x47046990u); /* 0x47070066: call 0x47046990 */ /* not lifted */ 1444 RECOMP_FLAGS_IN(); 1445 PUSH32(esp, eax); /* 0x4707006B: push eax */ 1446 ecx = esp + 0x20; /* 0x4707006C: lea ecx, [esp + 0x20] */ 1447 PUSH32(esp, ecx); /* 0x47070070: push ecx */ 1448 edx = esp + 0x18; /* 0x47070071: lea edx, [esp + 0x18] */ 1449 PUSH32(esp, edx); /* 0x47070075: push edx */ 1450 ecx = esp + 0x38; /* 0x47070076: lea ecx, [esp + 0x38] */ 1451 RECOMP_ICALL(0x47047640u); /* 0x4707007A: call 0x47047640 */ /* not lifted */ 1452 RECOMP_FLAGS_IN(); 1453 ecx = MEM32(esi); /* 0x4707007F: mov ecx, dword ptr [esi] */ 1454 eax = esp + 0x2C; /* 0x47070081: lea eax, [esp + 0x2c] */ 1455 PUSH32(esp, eax); /* 0x47070085: push eax */ 1456 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1457 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1458 ecx = ecx + 4; /* 0x47070086: add ecx, 4 */ 1459 _flag_k = FK_ADD; 1460 MEM8(esp + 0xCF0) = (uint8_t)(2); /* 0x47070089: mov byte ptr [esp + 0xcf0], 2 */ 1461 RECOMP_ICALL(0x47047720u); /* 0x47070091: call 0x47047720 */ /* not lifted */ 1462 RECOMP_FLAGS_IN(); 1463 ecx = MEM32(esi); /* 0x47070096: mov ecx, dword ptr [esi] */ 1464 edi = MEM32(ecx); /* 0x47070098: mov edi, dword ptr [ecx] */ 1465 edx = esp + 0x2C; /* 0x4707009A: lea edx, [esp + 0x2c] */ 1466 PUSH32(esp, edx); /* 0x4707009E: push edx */ 1467 ecx = edi + 0x4; /* 0x4707009F: lea ecx, [edi + 4] */ 1468 RECOMP_ICALL(0x47047750u); /* 0x470700A2: call 0x47047750 */ /* not lifted */ 1469 RECOMP_FLAGS_IN(); 1470 /* test eax, eax */ /* 0x470700A7: test eax, eax */ 1471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1472 _cf = 0; 1473 _flag_k = FK_TEST; 1474 if (TEST_NZ(_flag_a, _flag_b)) goto L_470700BE; /* 0x470700A9: jne 0x470700be */ 1475 L_470700AB: 1476 edi = MEM32(edi); /* 0x470700AB: mov edi, dword ptr [edi] */ 1477 eax = esp + 0x2C; /* 0x470700AD: lea eax, [esp + 0x2c] */ 1478 PUSH32(esp, eax); /* 0x470700B1: push eax */ 1479 ecx = edi + 0x4; /* 0x470700B2: lea ecx, [edi + 4] */ 1480 RECOMP_ICALL(0x47047750u); /* 0x470700B5: call 0x47047750 */ /* not lifted */ 1481 RECOMP_FLAGS_IN(); 1482 /* test eax, eax */ /* 0x470700BA: test eax, eax */ 1483 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1484 _cf = 0; 1485 _flag_k = FK_TEST; 1486 RECOMP_BACKEDGE(); 1487 if (TEST_Z(_flag_a, _flag_b)) goto L_470700AB; /* 0x470700BC: je 0x470700ab */ 1488 L_470700BE: 1489 eax = MEM32(esi); /* 0x470700BE: mov eax, dword ptr [esi] */ 1490 /* cmp edi, eax */ /* 0x470700C0: cmp edi, eax */ 1491 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1493 _flag_k = FK_CMP; 1494 if (CMP_NE(_flag_a, _flag_b)) goto L_4707010C; /* 0x470700C2: jne 0x4707010c */ 1495 L_470700C4: 1496 ecx = esp + 0x2C; /* 0x470700C4: lea ecx, [esp + 0x2c] */ 1497 PUSH32(esp, ecx); /* 0x470700C8: push ecx */ 1498 ecx = eax + 0x4; /* 0x470700C9: lea ecx, [eax + 4] */ 1499 RECOMP_ICALL(0x47047720u); /* 0x470700CC: call 0x47047720 */ /* not lifted */ 1500 RECOMP_FLAGS_IN(); 1501 ecx = MEM32(esi + 0x8); /* 0x470700D1: mov ecx, dword ptr [esi + 8] */ 1502 edx = MEM32(ecx); /* 0x470700D4: mov edx, dword ptr [ecx] */ 1503 PUSH32(esp, 0x20u); /* 0x470700D6: push 0x20 */ 1504 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470700D8: call dword ptr [edx + 4] */ 1505 RECOMP_FLAGS_IN(); 1506 edi = eax; /* 0x470700DB: mov edi, eax */ 1507 /* cmp edi, ebx */ /* 0x470700DD: cmp edi, ebx */ 1508 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1510 _flag_k = FK_CMP; 1511 MEM32(esp + 0x28) = edi; /* 0x470700DF: mov dword ptr [esp + 0x28], edi */ 1512 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070158; /* 0x470700E3: je 0x47070158 */ 1513 L_470700E5: 1514 MEM32(esp + 0x48) = edi; /* 0x470700E5: mov dword ptr [esp + 0x48], edi */ 1515 eax = MEM32(esi); /* 0x470700E9: mov eax, dword ptr [esi] */ 1516 eax = MEM32(eax); /* 0x470700EB: mov eax, dword ptr [eax] */ 1517 ecx = edi + 0x4; /* 0x470700ED: lea ecx, [edi + 4] */ 1518 MEM8(esp + 0xCEC) = (uint8_t)(3); /* 0x470700F0: mov byte ptr [esp + 0xcec], 3 */ 1519 MEM32(edi) = eax; /* 0x470700F8: mov dword ptr [edi], eax */ 1520 RECOMP_ICALL(0x47047580u); /* 0x470700FA: call 0x47047580 */ /* not lifted */ 1521 RECOMP_FLAGS_IN(); 1522 ecx = MEM32(esi); /* 0x470700FF: mov ecx, dword ptr [esi] */ 1523 MEM32(ecx) = edi; /* 0x47070101: mov dword ptr [ecx], edi */ 1524 eax = MEM32(esi + 0x4); /* 0x47070103: mov eax, dword ptr [esi + 4] */ 1525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1526 eax = eax + 1; /* 0x47070106: inc eax */ 1527 _flag_k = FK_INC; 1528 MEM32(esi) = edi; /* 0x47070107: mov dword ptr [esi], edi */ 1529 MEM32(esi + 0x4) = eax; /* 0x47070109: mov dword ptr [esi + 4], eax */ 1530 L_4707010C: 1531 ecx = esp + 0x2C; /* 0x4707010C: lea ecx, [esp + 0x2c] */ 1532 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x47070110: mov byte ptr [esp + 0xcec], 1 */ 1533 RECOMP_ICALL(0x470475E0u); /* 0x47070118: call 0x470475e0 */ /* not lifted */ 1534 RECOMP_FLAGS_IN(); 1535 ecx = esp + 0x1C; /* 0x4707011D: lea ecx, [esp + 0x1c] */ 1536 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x47070121: mov byte ptr [esp + 0xcec], bl */ 1537 RECOMP_ICALL(0x470810C0u); /* 0x47070128: call 0x470810c0 */ /* not lifted */ 1538 RECOMP_FLAGS_IN(); 1539 ecx = esp + 0x10; /* 0x4707012D: lea ecx, [esp + 0x10] */ 1540 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070131: mov dword ptr [esp + 0xcec], 0xffffffff */ 1541 RECOMP_ICALL(0x470810C0u); /* 0x4707013C: call 0x470810c0 */ /* not lifted */ 1542 RECOMP_FLAGS_IN(); 1543 L_47070141: 1544 ecx = esp + 0x4C; /* 0x47070141: lea ecx, [esp + 0x4c] */ 1545 RECOMP_ICALL(0x4708EA70u); /* 0x47070145: call 0x4708ea70 */ /* not lifted */ 1546 RECOMP_FLAGS_IN(); 1547 /* cmp eax, 0xBu */ /* 0x4707014A: cmp eax, 0xb */ 1548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 1549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1550 _flag_k = FK_CMP; 1551 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070204; /* 0x4707014D: je 0x47070204 */ 1552 L_47070153: 1553 RECOMP_BACKEDGE(); 1554 goto L_4706FFEC; /* 0x47070153: jmp 0x4706ffec */ 1555 L_47070158: 1556 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47070158: call dword ptr [0x470ac3c8] */ 1557 RECOMP_FLAGS_IN(); 1558 ecx = esp + 0x2C; /* 0x4707015E: lea ecx, [esp + 0x2c] */ 1559 MEM32(eax) = 0xCu; /* 0x47070162: mov dword ptr [eax], 0xc */ 1560 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x47070168: mov byte ptr [esp + 0xcec], 1 */ 1561 RECOMP_ICALL(0x470475E0u); /* 0x47070170: call 0x470475e0 */ /* not lifted */ 1562 RECOMP_FLAGS_IN(); 1563 ecx = esp + 0x1C; /* 0x47070175: lea ecx, [esp + 0x1c] */ 1564 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x47070179: mov byte ptr [esp + 0xcec], bl */ 1565 RECOMP_ICALL(0x470810C0u); /* 0x47070180: call 0x470810c0 */ /* not lifted */ 1566 RECOMP_FLAGS_IN(); 1567 ecx = esp + 0x10; /* 0x47070185: lea ecx, [esp + 0x10] */ 1568 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070189: mov dword ptr [esp + 0xcec], 0xffffffff */ 1569 RECOMP_ICALL(0x470810C0u); /* 0x47070194: call 0x470810c0 */ /* not lifted */ 1570 RECOMP_FLAGS_IN(); 1571 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1572 eax = eax | 0xFFFFFFFFu; /* 0x47070199: or eax, 0xffffffff */ 1573 _cf = 0; 1574 _flag_k = FK_TEST; 1575 goto L_47070206; /* 0x4707019C: jmp 0x47070206 */ 1576 L_4707019E: 1577 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4707019E: call dword ptr [0x470ac150] */ 1578 RECOMP_FLAGS_IN(); 1579 edi = eax; /* 0x470701A4: mov edi, eax */ 1580 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470701A6: call dword ptr [0x470ac3c8] */ 1581 RECOMP_FLAGS_IN(); 1582 eax = MEM32(eax); /* 0x470701AC: mov eax, dword ptr [eax] */ 1583 /* cmp eax, ebx */ /* 0x470701AE: cmp eax, ebx */ 1584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1586 _flag_k = FK_CMP; 1587 if (CMP_EQ(_flag_a, _flag_b)) goto L_470701B4; /* 0x470701B0: je 0x470701b4 */ 1588 L_470701B2: 1589 edi = eax; /* 0x470701B2: mov edi, eax */ 1590 L_470701B4: 1591 RECOMP_ICALL(0x47039020u); /* 0x470701B4: call 0x47039020 */ /* not lifted */ 1592 RECOMP_FLAGS_IN(); 1593 esi = eax; /* 0x470701B9: mov esi, eax */ 1594 ecx = esi; /* 0x470701BB: mov ecx, esi */ 1595 RECOMP_ICALL(0x4703B210u); /* 0x470701BD: call 0x4703b210 */ /* not lifted */ 1596 RECOMP_FLAGS_IN(); 1597 PUSH32(esp, eax); /* 0x470701C2: push eax */ 1598 ecx = esi; /* 0x470701C3: mov ecx, esi */ 1599 RECOMP_ICALL(0x4703B240u); /* 0x470701C5: call 0x4703b240 */ /* not lifted */ 1600 RECOMP_FLAGS_IN(); 1601 PUSH32(esp, eax); /* 0x470701CA: push eax */ 1602 ecx = esi; /* 0x470701CB: mov ecx, esi */ 1603 RECOMP_ICALL(0x4703B080u); /* 0x470701CD: call 0x4703b080 */ /* not lifted */ 1604 RECOMP_FLAGS_IN(); 1605 PUSH32(esp, eax); /* 0x470701D2: push eax */ 1606 PUSH32(esp, edi); /* 0x470701D3: push edi */ 1607 PUSH32(esp, 0xFFFFFFFFu); /* 0x470701D4: push -1 */ 1608 PUSH32(esp, 0x108u); /* 0x470701D6: push 0x108 */ 1609 PUSH32(esp, 0x4710A224u); /* 0x470701DB: push 0x4710a224 */ 1610 ecx = esi; /* 0x470701E0: mov ecx, esi */ 1611 RECOMP_ICALL(0x4703A340u); /* 0x470701E2: call 0x4703a340 */ /* not lifted */ 1612 RECOMP_FLAGS_IN(); 1613 PUSH32(esp, 0x4710A288u); /* 0x470701E7: push 0x4710a288 */ 1614 PUSH32(esp, 0x471055F0u); /* 0x470701EC: push 0x471055f0 */ 1615 PUSH32(esp, 0x80u); /* 0x470701F1: push 0x80 */ 1616 PUSH32(esp, esi); /* 0x470701F6: push esi */ 1617 RECOMP_ICALL(0x47039830u); /* 0x470701F7: call 0x47039830 */ /* not lifted */ 1618 RECOMP_FLAGS_IN(); 1619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1621 esp = esp + 0x10u; /* 0x470701FC: add esp, 0x10 */ 1622 _flag_k = FK_ADD; 1623 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1624 eax = eax | 0xFFFFFFFFu; /* 0x470701FF: or eax, 0xffffffff */ 1625 _cf = 0; 1626 _flag_k = FK_TEST; 1627 goto L_47070206; /* 0x47070202: jmp 0x47070206 */ 1628 L_47070204: 1629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1630 eax = 0; /* 0x47070204: xor eax, eax */ 1631 _cf = 0; 1632 _flag_k = FK_TEST; 1633 L_47070206: 1634 ecx = MEM32(esp + 0xCE4); /* 0x47070206: mov ecx, dword ptr [esp + 0xce4] */ 1635 edi = POP32_VAL(esp); /* 0x4707020D: pop edi */ 1636 esi = POP32_VAL(esp); /* 0x4707020E: pop esi */ 1637 ebp = POP32_VAL(esp); /* 0x4707020F: pop ebp */ 1638 ebx = POP32_VAL(esp); /* 0x47070210: pop ebx */ 1639 MEM32(FS_BASE + (0)) = ecx; /* 0x47070211: mov dword ptr fs:[0], ecx */ 1640 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 1641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1642 esp = esp + 0xCE0u; /* 0x47070218: add esp, 0xce0 */ 1643 _flag_k = FK_ADD; 1644 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4707021E: ret 8 */ 1645 RECOMP_REGS_OUT(); 1646 } 1647 1648 void sub_4706FFEC(void) { 1649 int _fpu_cmp = 0; 1650 uint32_t _cf = 0; 1651 int _df = 1; 1652 uint32_t _flag_k = FK_NONE; 1653 uint32_t _flag_a = 0, _flag_b = 0; 1654 uint32_t _itail_tgt = 0; 1655 RECOMP_REGS_LOCALS 1656 RECOMP_ENTER(0x4706FFECu); 1657 1658 L_4706FFEC: 1659 eax = esp + 0x4C; /* 0x4706FFEC: lea eax, [esp + 0x4c] */ 1660 PUSH32(esp, eax); /* 0x4706FFF0: push eax */ 1661 ecx = ebp; /* 0x4706FFF1: mov ecx, ebp */ 1662 RECOMP_ICALL(0x47046470u); /* 0x4706FFF3: call 0x47046470 */ /* not lifted */ 1663 RECOMP_FLAGS_IN(); 1664 /* cmp eax, 0xFFFFFFFFu */ /* 0x4706FFF8: cmp eax, -1 */ 1665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1667 _flag_k = FK_CMP; 1668 if (CMP_EQ(_flag_a, _flag_b)) goto L_4707019E; /* 0x4706FFFB: je 0x4707019e */ 1669 L_47070001: 1670 ecx = esp + 0x4C; /* 0x47070001: lea ecx, [esp + 0x4c] */ 1671 RECOMP_ICALL(0x4708EA70u); /* 0x47070005: call 0x4708ea70 */ /* not lifted */ 1672 RECOMP_FLAGS_IN(); 1673 /* cmp eax, 0xBu */ /* 0x4707000A: cmp eax, 0xb */ 1674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 1675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1676 _flag_k = FK_CMP; 1677 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070141; /* 0x4707000D: je 0x47070141 */ 1678 L_47070013: 1679 PUSH32(esp, ebx); /* 0x47070013: push ebx */ 1680 ecx = esp + 0x50; /* 0x47070014: lea ecx, [esp + 0x50] */ 1681 RECOMP_ICALL(0x4708EAF0u); /* 0x47070018: call 0x4708eaf0 */ /* not lifted */ 1682 RECOMP_FLAGS_IN(); 1683 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x4707001D: shr eax, 1 */ 1684 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1685 eax = eax >> 1u; /* 0x4707001D: shr eax, 1 */ 1686 PUSH32(esp, eax); /* 0x4707001F: push eax */ 1687 ecx = esp + 0x54; /* 0x47070020: lea ecx, [esp + 0x54] */ 1688 RECOMP_ICALL(0x47046910u); /* 0x47070024: call 0x47046910 */ /* not lifted */ 1689 RECOMP_FLAGS_IN(); 1690 PUSH32(esp, eax); /* 0x47070029: push eax */ 1691 ecx = esp + 0x1C; /* 0x4707002A: lea ecx, [esp + 0x1c] */ 1692 RECOMP_ICALL(0x47080BF0u); /* 0x4707002E: call 0x47080bf0 */ /* not lifted */ 1693 RECOMP_FLAGS_IN(); 1694 PUSH32(esp, ebx); /* 0x47070033: push ebx */ 1695 ecx = esp + 0x50; /* 0x47070034: lea ecx, [esp + 0x50] */ 1696 MEM32(esp + 0xCF0) = ebx; /* 0x47070038: mov dword ptr [esp + 0xcf0], ebx */ 1697 RECOMP_ICALL(0x47015330u); /* 0x4707003F: call 0x47015330 */ /* not lifted */ 1698 RECOMP_FLAGS_IN(); 1699 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x47070044: shr eax, 1 */ 1700 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1701 eax = eax >> 1u; /* 0x47070044: shr eax, 1 */ 1702 PUSH32(esp, eax); /* 0x47070046: push eax */ 1703 ecx = esp + 0x54; /* 0x47070047: lea ecx, [esp + 0x54] */ 1704 RECOMP_ICALL(0x47046950u); /* 0x4707004B: call 0x47046950 */ /* not lifted */ 1705 RECOMP_FLAGS_IN(); 1706 PUSH32(esp, eax); /* 0x47070050: push eax */ 1707 ecx = esp + 0x28; /* 0x47070051: lea ecx, [esp + 0x28] */ 1708 RECOMP_ICALL(0x47080BF0u); /* 0x47070055: call 0x47080bf0 */ /* not lifted */ 1709 RECOMP_FLAGS_IN(); 1710 ecx = esp + 0x4C; /* 0x4707005A: lea ecx, [esp + 0x4c] */ 1711 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4707005E: mov byte ptr [esp + 0xcec], 1 */ 1712 RECOMP_ICALL(0x47046990u); /* 0x47070066: call 0x47046990 */ /* not lifted */ 1713 RECOMP_FLAGS_IN(); 1714 PUSH32(esp, eax); /* 0x4707006B: push eax */ 1715 ecx = esp + 0x20; /* 0x4707006C: lea ecx, [esp + 0x20] */ 1716 PUSH32(esp, ecx); /* 0x47070070: push ecx */ 1717 edx = esp + 0x18; /* 0x47070071: lea edx, [esp + 0x18] */ 1718 PUSH32(esp, edx); /* 0x47070075: push edx */ 1719 ecx = esp + 0x38; /* 0x47070076: lea ecx, [esp + 0x38] */ 1720 RECOMP_ICALL(0x47047640u); /* 0x4707007A: call 0x47047640 */ /* not lifted */ 1721 RECOMP_FLAGS_IN(); 1722 ecx = MEM32(esi); /* 0x4707007F: mov ecx, dword ptr [esi] */ 1723 eax = esp + 0x2C; /* 0x47070081: lea eax, [esp + 0x2c] */ 1724 PUSH32(esp, eax); /* 0x47070085: push eax */ 1725 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1726 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1727 ecx = ecx + 4; /* 0x47070086: add ecx, 4 */ 1728 _flag_k = FK_ADD; 1729 MEM8(esp + 0xCF0) = (uint8_t)(2); /* 0x47070089: mov byte ptr [esp + 0xcf0], 2 */ 1730 RECOMP_ICALL(0x47047720u); /* 0x47070091: call 0x47047720 */ /* not lifted */ 1731 RECOMP_FLAGS_IN(); 1732 ecx = MEM32(esi); /* 0x47070096: mov ecx, dword ptr [esi] */ 1733 edi = MEM32(ecx); /* 0x47070098: mov edi, dword ptr [ecx] */ 1734 edx = esp + 0x2C; /* 0x4707009A: lea edx, [esp + 0x2c] */ 1735 PUSH32(esp, edx); /* 0x4707009E: push edx */ 1736 ecx = edi + 0x4; /* 0x4707009F: lea ecx, [edi + 4] */ 1737 RECOMP_ICALL(0x47047750u); /* 0x470700A2: call 0x47047750 */ /* not lifted */ 1738 RECOMP_FLAGS_IN(); 1739 /* test eax, eax */ /* 0x470700A7: test eax, eax */ 1740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1741 _cf = 0; 1742 _flag_k = FK_TEST; 1743 if (TEST_NZ(_flag_a, _flag_b)) goto L_470700BE; /* 0x470700A9: jne 0x470700be */ 1744 L_470700AB: 1745 edi = MEM32(edi); /* 0x470700AB: mov edi, dword ptr [edi] */ 1746 eax = esp + 0x2C; /* 0x470700AD: lea eax, [esp + 0x2c] */ 1747 PUSH32(esp, eax); /* 0x470700B1: push eax */ 1748 ecx = edi + 0x4; /* 0x470700B2: lea ecx, [edi + 4] */ 1749 RECOMP_ICALL(0x47047750u); /* 0x470700B5: call 0x47047750 */ /* not lifted */ 1750 RECOMP_FLAGS_IN(); 1751 /* test eax, eax */ /* 0x470700BA: test eax, eax */ 1752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1753 _cf = 0; 1754 _flag_k = FK_TEST; 1755 RECOMP_BACKEDGE(); 1756 if (TEST_Z(_flag_a, _flag_b)) goto L_470700AB; /* 0x470700BC: je 0x470700ab */ 1757 L_470700BE: 1758 eax = MEM32(esi); /* 0x470700BE: mov eax, dword ptr [esi] */ 1759 /* cmp edi, eax */ /* 0x470700C0: cmp edi, eax */ 1760 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1762 _flag_k = FK_CMP; 1763 if (CMP_NE(_flag_a, _flag_b)) goto L_4707010C; /* 0x470700C2: jne 0x4707010c */ 1764 L_470700C4: 1765 ecx = esp + 0x2C; /* 0x470700C4: lea ecx, [esp + 0x2c] */ 1766 PUSH32(esp, ecx); /* 0x470700C8: push ecx */ 1767 ecx = eax + 0x4; /* 0x470700C9: lea ecx, [eax + 4] */ 1768 RECOMP_ICALL(0x47047720u); /* 0x470700CC: call 0x47047720 */ /* not lifted */ 1769 RECOMP_FLAGS_IN(); 1770 ecx = MEM32(esi + 0x8); /* 0x470700D1: mov ecx, dword ptr [esi + 8] */ 1771 edx = MEM32(ecx); /* 0x470700D4: mov edx, dword ptr [ecx] */ 1772 PUSH32(esp, 0x20u); /* 0x470700D6: push 0x20 */ 1773 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470700D8: call dword ptr [edx + 4] */ 1774 RECOMP_FLAGS_IN(); 1775 edi = eax; /* 0x470700DB: mov edi, eax */ 1776 /* cmp edi, ebx */ /* 0x470700DD: cmp edi, ebx */ 1777 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1779 _flag_k = FK_CMP; 1780 MEM32(esp + 0x28) = edi; /* 0x470700DF: mov dword ptr [esp + 0x28], edi */ 1781 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070158; /* 0x470700E3: je 0x47070158 */ 1782 L_470700E5: 1783 MEM32(esp + 0x48) = edi; /* 0x470700E5: mov dword ptr [esp + 0x48], edi */ 1784 eax = MEM32(esi); /* 0x470700E9: mov eax, dword ptr [esi] */ 1785 eax = MEM32(eax); /* 0x470700EB: mov eax, dword ptr [eax] */ 1786 ecx = edi + 0x4; /* 0x470700ED: lea ecx, [edi + 4] */ 1787 MEM8(esp + 0xCEC) = (uint8_t)(3); /* 0x470700F0: mov byte ptr [esp + 0xcec], 3 */ 1788 MEM32(edi) = eax; /* 0x470700F8: mov dword ptr [edi], eax */ 1789 RECOMP_ICALL(0x47047580u); /* 0x470700FA: call 0x47047580 */ /* not lifted */ 1790 RECOMP_FLAGS_IN(); 1791 ecx = MEM32(esi); /* 0x470700FF: mov ecx, dword ptr [esi] */ 1792 MEM32(ecx) = edi; /* 0x47070101: mov dword ptr [ecx], edi */ 1793 eax = MEM32(esi + 0x4); /* 0x47070103: mov eax, dword ptr [esi + 4] */ 1794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1795 eax = eax + 1; /* 0x47070106: inc eax */ 1796 _flag_k = FK_INC; 1797 MEM32(esi) = edi; /* 0x47070107: mov dword ptr [esi], edi */ 1798 MEM32(esi + 0x4) = eax; /* 0x47070109: mov dword ptr [esi + 4], eax */ 1799 L_4707010C: 1800 ecx = esp + 0x2C; /* 0x4707010C: lea ecx, [esp + 0x2c] */ 1801 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x47070110: mov byte ptr [esp + 0xcec], 1 */ 1802 RECOMP_ICALL(0x470475E0u); /* 0x47070118: call 0x470475e0 */ /* not lifted */ 1803 RECOMP_FLAGS_IN(); 1804 ecx = esp + 0x1C; /* 0x4707011D: lea ecx, [esp + 0x1c] */ 1805 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x47070121: mov byte ptr [esp + 0xcec], bl */ 1806 RECOMP_ICALL(0x470810C0u); /* 0x47070128: call 0x470810c0 */ /* not lifted */ 1807 RECOMP_FLAGS_IN(); 1808 ecx = esp + 0x10; /* 0x4707012D: lea ecx, [esp + 0x10] */ 1809 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070131: mov dword ptr [esp + 0xcec], 0xffffffff */ 1810 RECOMP_ICALL(0x470810C0u); /* 0x4707013C: call 0x470810c0 */ /* not lifted */ 1811 RECOMP_FLAGS_IN(); 1812 L_47070141: 1813 ecx = esp + 0x4C; /* 0x47070141: lea ecx, [esp + 0x4c] */ 1814 RECOMP_ICALL(0x4708EA70u); /* 0x47070145: call 0x4708ea70 */ /* not lifted */ 1815 RECOMP_FLAGS_IN(); 1816 /* cmp eax, 0xBu */ /* 0x4707014A: cmp eax, 0xb */ 1817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 1818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1819 _flag_k = FK_CMP; 1820 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070204; /* 0x4707014D: je 0x47070204 */ 1821 L_47070153: 1822 RECOMP_BACKEDGE(); 1823 goto L_4706FFEC; /* 0x47070153: jmp 0x4706ffec */ 1824 L_47070158: 1825 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47070158: call dword ptr [0x470ac3c8] */ 1826 RECOMP_FLAGS_IN(); 1827 ecx = esp + 0x2C; /* 0x4707015E: lea ecx, [esp + 0x2c] */ 1828 MEM32(eax) = 0xCu; /* 0x47070162: mov dword ptr [eax], 0xc */ 1829 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x47070168: mov byte ptr [esp + 0xcec], 1 */ 1830 RECOMP_ICALL(0x470475E0u); /* 0x47070170: call 0x470475e0 */ /* not lifted */ 1831 RECOMP_FLAGS_IN(); 1832 ecx = esp + 0x1C; /* 0x47070175: lea ecx, [esp + 0x1c] */ 1833 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x47070179: mov byte ptr [esp + 0xcec], bl */ 1834 RECOMP_ICALL(0x470810C0u); /* 0x47070180: call 0x470810c0 */ /* not lifted */ 1835 RECOMP_FLAGS_IN(); 1836 ecx = esp + 0x10; /* 0x47070185: lea ecx, [esp + 0x10] */ 1837 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070189: mov dword ptr [esp + 0xcec], 0xffffffff */ 1838 RECOMP_ICALL(0x470810C0u); /* 0x47070194: call 0x470810c0 */ /* not lifted */ 1839 RECOMP_FLAGS_IN(); 1840 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1841 eax = eax | 0xFFFFFFFFu; /* 0x47070199: or eax, 0xffffffff */ 1842 _cf = 0; 1843 _flag_k = FK_TEST; 1844 goto L_47070206; /* 0x4707019C: jmp 0x47070206 */ 1845 L_4707019E: 1846 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4707019E: call dword ptr [0x470ac150] */ 1847 RECOMP_FLAGS_IN(); 1848 edi = eax; /* 0x470701A4: mov edi, eax */ 1849 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470701A6: call dword ptr [0x470ac3c8] */ 1850 RECOMP_FLAGS_IN(); 1851 eax = MEM32(eax); /* 0x470701AC: mov eax, dword ptr [eax] */ 1852 /* cmp eax, ebx */ /* 0x470701AE: cmp eax, ebx */ 1853 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1855 _flag_k = FK_CMP; 1856 if (CMP_EQ(_flag_a, _flag_b)) goto L_470701B4; /* 0x470701B0: je 0x470701b4 */ 1857 L_470701B2: 1858 edi = eax; /* 0x470701B2: mov edi, eax */ 1859 L_470701B4: 1860 RECOMP_ICALL(0x47039020u); /* 0x470701B4: call 0x47039020 */ /* not lifted */ 1861 RECOMP_FLAGS_IN(); 1862 esi = eax; /* 0x470701B9: mov esi, eax */ 1863 ecx = esi; /* 0x470701BB: mov ecx, esi */ 1864 RECOMP_ICALL(0x4703B210u); /* 0x470701BD: call 0x4703b210 */ /* not lifted */ 1865 RECOMP_FLAGS_IN(); 1866 PUSH32(esp, eax); /* 0x470701C2: push eax */ 1867 ecx = esi; /* 0x470701C3: mov ecx, esi */ 1868 RECOMP_ICALL(0x4703B240u); /* 0x470701C5: call 0x4703b240 */ /* not lifted */ 1869 RECOMP_FLAGS_IN(); 1870 PUSH32(esp, eax); /* 0x470701CA: push eax */ 1871 ecx = esi; /* 0x470701CB: mov ecx, esi */ 1872 RECOMP_ICALL(0x4703B080u); /* 0x470701CD: call 0x4703b080 */ /* not lifted */ 1873 RECOMP_FLAGS_IN(); 1874 PUSH32(esp, eax); /* 0x470701D2: push eax */ 1875 PUSH32(esp, edi); /* 0x470701D3: push edi */ 1876 PUSH32(esp, 0xFFFFFFFFu); /* 0x470701D4: push -1 */ 1877 PUSH32(esp, 0x108u); /* 0x470701D6: push 0x108 */ 1878 PUSH32(esp, 0x4710A224u); /* 0x470701DB: push 0x4710a224 */ 1879 ecx = esi; /* 0x470701E0: mov ecx, esi */ 1880 RECOMP_ICALL(0x4703A340u); /* 0x470701E2: call 0x4703a340 */ /* not lifted */ 1881 RECOMP_FLAGS_IN(); 1882 PUSH32(esp, 0x4710A288u); /* 0x470701E7: push 0x4710a288 */ 1883 PUSH32(esp, 0x471055F0u); /* 0x470701EC: push 0x471055f0 */ 1884 PUSH32(esp, 0x80u); /* 0x470701F1: push 0x80 */ 1885 PUSH32(esp, esi); /* 0x470701F6: push esi */ 1886 RECOMP_ICALL(0x47039830u); /* 0x470701F7: call 0x47039830 */ /* not lifted */ 1887 RECOMP_FLAGS_IN(); 1888 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1889 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1890 esp = esp + 0x10u; /* 0x470701FC: add esp, 0x10 */ 1891 _flag_k = FK_ADD; 1892 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1893 eax = eax | 0xFFFFFFFFu; /* 0x470701FF: or eax, 0xffffffff */ 1894 _cf = 0; 1895 _flag_k = FK_TEST; 1896 goto L_47070206; /* 0x47070202: jmp 0x47070206 */ 1897 L_47070204: 1898 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1899 eax = 0; /* 0x47070204: xor eax, eax */ 1900 _cf = 0; 1901 _flag_k = FK_TEST; 1902 L_47070206: 1903 ecx = MEM32(esp + 0xCE4); /* 0x47070206: mov ecx, dword ptr [esp + 0xce4] */ 1904 edi = POP32_VAL(esp); /* 0x4707020D: pop edi */ 1905 esi = POP32_VAL(esp); /* 0x4707020E: pop esi */ 1906 ebp = POP32_VAL(esp); /* 0x4707020F: pop ebp */ 1907 ebx = POP32_VAL(esp); /* 0x47070210: pop ebx */ 1908 MEM32(FS_BASE + (0)) = ecx; /* 0x47070211: mov dword ptr fs:[0], ecx */ 1909 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 1910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1911 esp = esp + 0xCE0u; /* 0x47070218: add esp, 0xce0 */ 1912 _flag_k = FK_ADD; 1913 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4707021E: ret 8 */ 1914 RECOMP_REGS_OUT(); 1915 } 1916 1917 void sub_47070206(void) { 1918 int _fpu_cmp = 0; 1919 uint32_t _cf = 0; 1920 int _df = 1; 1921 uint32_t _flag_k = FK_NONE; 1922 uint32_t _flag_a = 0, _flag_b = 0; 1923 uint32_t _itail_tgt = 0; 1924 RECOMP_REGS_LOCALS 1925 RECOMP_ENTER(0x47070206u); 1926 1927 L_47070206: 1928 ecx = MEM32(esp + 0xCE4); /* 0x47070206: mov ecx, dword ptr [esp + 0xce4] */ 1929 edi = POP32_VAL(esp); /* 0x4707020D: pop edi */ 1930 esi = POP32_VAL(esp); /* 0x4707020E: pop esi */ 1931 ebp = POP32_VAL(esp); /* 0x4707020F: pop ebp */ 1932 ebx = POP32_VAL(esp); /* 0x47070210: pop ebx */ 1933 MEM32(FS_BASE + (0)) = ecx; /* 0x47070211: mov dword ptr fs:[0], ecx */ 1934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 1935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1936 esp = esp + 0xCE0u; /* 0x47070218: add esp, 0xce0 */ 1937 _flag_k = FK_ADD; 1938 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4707021E: ret 8 */ 1939 RECOMP_REGS_OUT(); 1940 } 1941 1942 void sub_47070230(void) { 1943 int _fpu_cmp = 0; 1944 uint32_t _cf = 0; 1945 int _df = 1; 1946 uint32_t _flag_k = FK_NONE; 1947 uint32_t _flag_a = 0, _flag_b = 0; 1948 uint32_t _itail_tgt = 0; 1949 RECOMP_REGS_LOCALS 1950 RECOMP_ENTER(0x47070230u); 1951 1952 L_47070230: 1953 eax = MEM32(FS_BASE + (0)); /* 0x47070230: mov eax, dword ptr fs:[0] */ 1954 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070236: push -1 */ 1955 PUSH32(esp, 0x470A8F68u); /* 0x47070238: push 0x470a8f68 */ 1956 PUSH32(esp, eax); /* 0x4707023D: push eax */ 1957 eax = MEM32(esp + 0x14); /* 0x4707023E: mov eax, dword ptr [esp + 0x14] */ 1958 MEM32(FS_BASE + (0)) = esp; /* 0x47070242: mov dword ptr fs:[0], esp */ 1959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCD4u); 1960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1961 esp = esp - 0xCD4u; /* 0x47070249: sub esp, 0xcd4 */ 1962 _flag_k = FK_CMP; 1963 PUSH32(esp, ebx); /* 0x4707024F: push ebx */ 1964 PUSH32(esp, ebp); /* 0x47070250: push ebp */ 1965 PUSH32(esp, esi); /* 0x47070251: push esi */ 1966 PUSH32(esp, edi); /* 0x47070252: push edi */ 1967 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1968 ebx = 0; /* 0x47070253: xor ebx, ebx */ 1969 _cf = 0; 1970 _flag_k = FK_TEST; 1971 PUSH32(esp, ebx); /* 0x47070255: push ebx */ 1972 PUSH32(esp, ebx); /* 0x47070256: push ebx */ 1973 PUSH32(esp, ebx); /* 0x47070257: push ebx */ 1974 esi = ecx; /* 0x47070258: mov esi, ecx */ 1975 ecx = MEM32(eax + 0x4); /* 0x4707025A: mov ecx, dword ptr [eax + 4] */ 1976 eax = MEM32(eax + 0x8); /* 0x4707025D: mov eax, dword ptr [eax + 8] */ 1977 PUSH32(esp, ebx); /* 0x47070260: push ebx */ 1978 PUSH32(esp, ebx); /* 0x47070261: push ebx */ 1979 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1980 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1981 ecx = ecx + ecx; /* 0x47070262: add ecx, ecx */ 1982 _flag_k = FK_ADD; 1983 PUSH32(esp, ecx); /* 0x47070264: push ecx */ 1984 PUSH32(esp, eax); /* 0x47070265: push eax */ 1985 PUSH32(esp, 0x16u); /* 0x47070266: push 0x16 */ 1986 ecx = esp + 0x6B8; /* 0x47070268: lea ecx, [esp + 0x6b8] */ 1987 RECOMP_ICALL(0x470467B0u); /* 0x4707026F: call 0x470467b0 */ /* not lifted */ 1988 RECOMP_FLAGS_IN(); 1989 edx = esp + 0x698; /* 0x47070274: lea edx, [esp + 0x698] */ 1990 ebp = esi + 0x4; /* 0x4707027B: lea ebp, [esi + 4] */ 1991 PUSH32(esp, edx); /* 0x4707027E: push edx */ 1992 ecx = ebp; /* 0x4707027F: mov ecx, ebp */ 1993 RECOMP_ICALL(0x47046380u); /* 0x47070281: call 0x47046380 */ /* not lifted */ 1994 RECOMP_FLAGS_IN(); 1995 /* cmp eax, 0xFFFFFFFFu */ /* 0x47070286: cmp eax, -1 */ 1996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 1997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1998 _flag_k = FK_CMP; 1999 if (CMP_NE(_flag_a, _flag_b)) goto L_47070292; /* 0x47070289: jne 0x47070292 */ 2000 L_4707028B: 2001 _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax)); 2002 eax = eax | eax; /* 0x4707028B: or eax, eax */ 2003 _cf = 0; 2004 _flag_k = FK_TEST; 2005 goto L_470704D6; /* 0x4707028D: jmp 0x470704d6 */ 2006 L_47070292: 2007 PUSH32(esp, ebx); /* 0x47070292: push ebx */ 2008 PUSH32(esp, ebx); /* 0x47070293: push ebx */ 2009 PUSH32(esp, ebx); /* 0x47070294: push ebx */ 2010 PUSH32(esp, ebx); /* 0x47070295: push ebx */ 2011 PUSH32(esp, ebx); /* 0x47070296: push ebx */ 2012 PUSH32(esp, ebx); /* 0x47070297: push ebx */ 2013 PUSH32(esp, ebx); /* 0x47070298: push ebx */ 2014 PUSH32(esp, ebx); /* 0x47070299: push ebx */ 2015 ecx = esp + 0x6C; /* 0x4707029A: lea ecx, [esp + 0x6c] */ 2016 RECOMP_ICALL(0x470467B0u); /* 0x4707029E: call 0x470467b0 */ /* not lifted */ 2017 RECOMP_FLAGS_IN(); 2018 ecx = esp + 0x4C; /* 0x470702A3: lea ecx, [esp + 0x4c] */ 2019 RECOMP_ICALL(0x4708EA70u); /* 0x470702A7: call 0x4708ea70 */ /* not lifted */ 2020 RECOMP_FLAGS_IN(); 2021 /* cmp eax, 0xBu */ /* 0x470702AC: cmp eax, 0xb */ 2022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 2023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2024 _flag_k = FK_CMP; 2025 if (CMP_EQ(_flag_a, _flag_b)) goto L_470704D4; /* 0x470702AF: je 0x470704d4 */ 2026 L_470702B5: 2027 esi = MEM32(esp + 0xCF4); /* 0x470702B5: mov esi, dword ptr [esp + 0xcf4] */ 2028 L_470702BC: 2029 eax = esp + 0x4C; /* 0x470702BC: lea eax, [esp + 0x4c] */ 2030 PUSH32(esp, eax); /* 0x470702C0: push eax */ 2031 ecx = ebp; /* 0x470702C1: mov ecx, ebp */ 2032 RECOMP_ICALL(0x47046470u); /* 0x470702C3: call 0x47046470 */ /* not lifted */ 2033 RECOMP_FLAGS_IN(); 2034 /* cmp eax, 0xFFFFFFFFu */ /* 0x470702C8: cmp eax, -1 */ 2035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2037 _flag_k = FK_CMP; 2038 if (CMP_EQ(_flag_a, _flag_b)) goto L_4707046E; /* 0x470702CB: je 0x4707046e */ 2039 L_470702D1: 2040 ecx = esp + 0x4C; /* 0x470702D1: lea ecx, [esp + 0x4c] */ 2041 RECOMP_ICALL(0x4708EA70u); /* 0x470702D5: call 0x4708ea70 */ /* not lifted */ 2042 RECOMP_FLAGS_IN(); 2043 /* cmp eax, 0xBu */ /* 0x470702DA: cmp eax, 0xb */ 2044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 2045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2046 _flag_k = FK_CMP; 2047 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070411; /* 0x470702DD: je 0x47070411 */ 2048 L_470702E3: 2049 PUSH32(esp, ebx); /* 0x470702E3: push ebx */ 2050 ecx = esp + 0x50; /* 0x470702E4: lea ecx, [esp + 0x50] */ 2051 RECOMP_ICALL(0x4708EAF0u); /* 0x470702E8: call 0x4708eaf0 */ /* not lifted */ 2052 RECOMP_FLAGS_IN(); 2053 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x470702ED: shr eax, 1 */ 2054 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2055 eax = eax >> 1u; /* 0x470702ED: shr eax, 1 */ 2056 PUSH32(esp, eax); /* 0x470702EF: push eax */ 2057 ecx = esp + 0x54; /* 0x470702F0: lea ecx, [esp + 0x54] */ 2058 RECOMP_ICALL(0x47046910u); /* 0x470702F4: call 0x47046910 */ /* not lifted */ 2059 RECOMP_FLAGS_IN(); 2060 PUSH32(esp, eax); /* 0x470702F9: push eax */ 2061 ecx = esp + 0x1C; /* 0x470702FA: lea ecx, [esp + 0x1c] */ 2062 RECOMP_ICALL(0x47080BF0u); /* 0x470702FE: call 0x47080bf0 */ /* not lifted */ 2063 RECOMP_FLAGS_IN(); 2064 PUSH32(esp, ebx); /* 0x47070303: push ebx */ 2065 ecx = esp + 0x50; /* 0x47070304: lea ecx, [esp + 0x50] */ 2066 MEM32(esp + 0xCF0) = ebx; /* 0x47070308: mov dword ptr [esp + 0xcf0], ebx */ 2067 RECOMP_ICALL(0x47015330u); /* 0x4707030F: call 0x47015330 */ /* not lifted */ 2068 RECOMP_FLAGS_IN(); 2069 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x47070314: shr eax, 1 */ 2070 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2071 eax = eax >> 1u; /* 0x47070314: shr eax, 1 */ 2072 PUSH32(esp, eax); /* 0x47070316: push eax */ 2073 ecx = esp + 0x54; /* 0x47070317: lea ecx, [esp + 0x54] */ 2074 RECOMP_ICALL(0x47046950u); /* 0x4707031B: call 0x47046950 */ /* not lifted */ 2075 RECOMP_FLAGS_IN(); 2076 PUSH32(esp, eax); /* 0x47070320: push eax */ 2077 ecx = esp + 0x28; /* 0x47070321: lea ecx, [esp + 0x28] */ 2078 RECOMP_ICALL(0x47080BF0u); /* 0x47070325: call 0x47080bf0 */ /* not lifted */ 2079 RECOMP_FLAGS_IN(); 2080 ecx = esp + 0x4C; /* 0x4707032A: lea ecx, [esp + 0x4c] */ 2081 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4707032E: mov byte ptr [esp + 0xcec], 1 */ 2082 RECOMP_ICALL(0x47046990u); /* 0x47070336: call 0x47046990 */ /* not lifted */ 2083 RECOMP_FLAGS_IN(); 2084 PUSH32(esp, eax); /* 0x4707033B: push eax */ 2085 ecx = esp + 0x20; /* 0x4707033C: lea ecx, [esp + 0x20] */ 2086 PUSH32(esp, ecx); /* 0x47070340: push ecx */ 2087 edx = esp + 0x18; /* 0x47070341: lea edx, [esp + 0x18] */ 2088 PUSH32(esp, edx); /* 0x47070345: push edx */ 2089 ecx = esp + 0x38; /* 0x47070346: lea ecx, [esp + 0x38] */ 2090 RECOMP_ICALL(0x47047640u); /* 0x4707034A: call 0x47047640 */ /* not lifted */ 2091 RECOMP_FLAGS_IN(); 2092 ecx = MEM32(esi); /* 0x4707034F: mov ecx, dword ptr [esi] */ 2093 eax = esp + 0x2C; /* 0x47070351: lea eax, [esp + 0x2c] */ 2094 PUSH32(esp, eax); /* 0x47070355: push eax */ 2095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2096 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2097 ecx = ecx + 4; /* 0x47070356: add ecx, 4 */ 2098 _flag_k = FK_ADD; 2099 MEM8(esp + 0xCF0) = (uint8_t)(2); /* 0x47070359: mov byte ptr [esp + 0xcf0], 2 */ 2100 RECOMP_ICALL(0x47047720u); /* 0x47070361: call 0x47047720 */ /* not lifted */ 2101 RECOMP_FLAGS_IN(); 2102 ecx = MEM32(esi); /* 0x47070366: mov ecx, dword ptr [esi] */ 2103 edi = MEM32(ecx); /* 0x47070368: mov edi, dword ptr [ecx] */ 2104 edx = esp + 0x2C; /* 0x4707036A: lea edx, [esp + 0x2c] */ 2105 PUSH32(esp, edx); /* 0x4707036E: push edx */ 2106 ecx = edi + 0x4; /* 0x4707036F: lea ecx, [edi + 4] */ 2107 RECOMP_ICALL(0x47047750u); /* 0x47070372: call 0x47047750 */ /* not lifted */ 2108 RECOMP_FLAGS_IN(); 2109 /* test eax, eax */ /* 0x47070377: test eax, eax */ 2110 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2111 _cf = 0; 2112 _flag_k = FK_TEST; 2113 if (TEST_NZ(_flag_a, _flag_b)) goto L_4707038E; /* 0x47070379: jne 0x4707038e */ 2114 L_4707037B: 2115 edi = MEM32(edi); /* 0x4707037B: mov edi, dword ptr [edi] */ 2116 eax = esp + 0x2C; /* 0x4707037D: lea eax, [esp + 0x2c] */ 2117 PUSH32(esp, eax); /* 0x47070381: push eax */ 2118 ecx = edi + 0x4; /* 0x47070382: lea ecx, [edi + 4] */ 2119 RECOMP_ICALL(0x47047750u); /* 0x47070385: call 0x47047750 */ /* not lifted */ 2120 RECOMP_FLAGS_IN(); 2121 /* test eax, eax */ /* 0x4707038A: test eax, eax */ 2122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2123 _cf = 0; 2124 _flag_k = FK_TEST; 2125 RECOMP_BACKEDGE(); 2126 if (TEST_Z(_flag_a, _flag_b)) goto L_4707037B; /* 0x4707038C: je 0x4707037b */ 2127 L_4707038E: 2128 eax = MEM32(esi); /* 0x4707038E: mov eax, dword ptr [esi] */ 2129 /* cmp edi, eax */ /* 0x47070390: cmp edi, eax */ 2130 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2132 _flag_k = FK_CMP; 2133 if (CMP_NE(_flag_a, _flag_b)) goto L_470703DC; /* 0x47070392: jne 0x470703dc */ 2134 L_47070394: 2135 ecx = esp + 0x2C; /* 0x47070394: lea ecx, [esp + 0x2c] */ 2136 PUSH32(esp, ecx); /* 0x47070398: push ecx */ 2137 ecx = eax + 0x4; /* 0x47070399: lea ecx, [eax + 4] */ 2138 RECOMP_ICALL(0x47047720u); /* 0x4707039C: call 0x47047720 */ /* not lifted */ 2139 RECOMP_FLAGS_IN(); 2140 ecx = MEM32(esi + 0x8); /* 0x470703A1: mov ecx, dword ptr [esi + 8] */ 2141 edx = MEM32(ecx); /* 0x470703A4: mov edx, dword ptr [ecx] */ 2142 PUSH32(esp, 0x20u); /* 0x470703A6: push 0x20 */ 2143 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470703A8: call dword ptr [edx + 4] */ 2144 RECOMP_FLAGS_IN(); 2145 edi = eax; /* 0x470703AB: mov edi, eax */ 2146 /* cmp edi, ebx */ /* 0x470703AD: cmp edi, ebx */ 2147 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2149 _flag_k = FK_CMP; 2150 MEM32(esp + 0x28) = edi; /* 0x470703AF: mov dword ptr [esp + 0x28], edi */ 2151 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070428; /* 0x470703B3: je 0x47070428 */ 2152 L_470703B5: 2153 MEM32(esp + 0x48) = edi; /* 0x470703B5: mov dword ptr [esp + 0x48], edi */ 2154 eax = MEM32(esi); /* 0x470703B9: mov eax, dword ptr [esi] */ 2155 eax = MEM32(eax); /* 0x470703BB: mov eax, dword ptr [eax] */ 2156 ecx = edi + 0x4; /* 0x470703BD: lea ecx, [edi + 4] */ 2157 MEM8(esp + 0xCEC) = (uint8_t)(3); /* 0x470703C0: mov byte ptr [esp + 0xcec], 3 */ 2158 MEM32(edi) = eax; /* 0x470703C8: mov dword ptr [edi], eax */ 2159 RECOMP_ICALL(0x47047580u); /* 0x470703CA: call 0x47047580 */ /* not lifted */ 2160 RECOMP_FLAGS_IN(); 2161 ecx = MEM32(esi); /* 0x470703CF: mov ecx, dword ptr [esi] */ 2162 MEM32(ecx) = edi; /* 0x470703D1: mov dword ptr [ecx], edi */ 2163 eax = MEM32(esi + 0x4); /* 0x470703D3: mov eax, dword ptr [esi + 4] */ 2164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2165 eax = eax + 1; /* 0x470703D6: inc eax */ 2166 _flag_k = FK_INC; 2167 MEM32(esi) = edi; /* 0x470703D7: mov dword ptr [esi], edi */ 2168 MEM32(esi + 0x4) = eax; /* 0x470703D9: mov dword ptr [esi + 4], eax */ 2169 L_470703DC: 2170 ecx = esp + 0x2C; /* 0x470703DC: lea ecx, [esp + 0x2c] */ 2171 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x470703E0: mov byte ptr [esp + 0xcec], 1 */ 2172 RECOMP_ICALL(0x470475E0u); /* 0x470703E8: call 0x470475e0 */ /* not lifted */ 2173 RECOMP_FLAGS_IN(); 2174 ecx = esp + 0x1C; /* 0x470703ED: lea ecx, [esp + 0x1c] */ 2175 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x470703F1: mov byte ptr [esp + 0xcec], bl */ 2176 RECOMP_ICALL(0x470810C0u); /* 0x470703F8: call 0x470810c0 */ /* not lifted */ 2177 RECOMP_FLAGS_IN(); 2178 ecx = esp + 0x10; /* 0x470703FD: lea ecx, [esp + 0x10] */ 2179 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070401: mov dword ptr [esp + 0xcec], 0xffffffff */ 2180 RECOMP_ICALL(0x470810C0u); /* 0x4707040C: call 0x470810c0 */ /* not lifted */ 2181 RECOMP_FLAGS_IN(); 2182 L_47070411: 2183 ecx = esp + 0x4C; /* 0x47070411: lea ecx, [esp + 0x4c] */ 2184 RECOMP_ICALL(0x4708EA70u); /* 0x47070415: call 0x4708ea70 */ /* not lifted */ 2185 RECOMP_FLAGS_IN(); 2186 /* cmp eax, 0xBu */ /* 0x4707041A: cmp eax, 0xb */ 2187 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 2188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2189 _flag_k = FK_CMP; 2190 if (CMP_EQ(_flag_a, _flag_b)) goto L_470704D4; /* 0x4707041D: je 0x470704d4 */ 2191 L_47070423: 2192 RECOMP_BACKEDGE(); 2193 goto L_470702BC; /* 0x47070423: jmp 0x470702bc */ 2194 L_47070428: 2195 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47070428: call dword ptr [0x470ac3c8] */ 2196 RECOMP_FLAGS_IN(); 2197 ecx = esp + 0x2C; /* 0x4707042E: lea ecx, [esp + 0x2c] */ 2198 MEM32(eax) = 0xCu; /* 0x47070432: mov dword ptr [eax], 0xc */ 2199 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x47070438: mov byte ptr [esp + 0xcec], 1 */ 2200 RECOMP_ICALL(0x470475E0u); /* 0x47070440: call 0x470475e0 */ /* not lifted */ 2201 RECOMP_FLAGS_IN(); 2202 ecx = esp + 0x1C; /* 0x47070445: lea ecx, [esp + 0x1c] */ 2203 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x47070449: mov byte ptr [esp + 0xcec], bl */ 2204 RECOMP_ICALL(0x470810C0u); /* 0x47070450: call 0x470810c0 */ /* not lifted */ 2205 RECOMP_FLAGS_IN(); 2206 ecx = esp + 0x10; /* 0x47070455: lea ecx, [esp + 0x10] */ 2207 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070459: mov dword ptr [esp + 0xcec], 0xffffffff */ 2208 RECOMP_ICALL(0x470810C0u); /* 0x47070464: call 0x470810c0 */ /* not lifted */ 2209 RECOMP_FLAGS_IN(); 2210 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2211 eax = eax | 0xFFFFFFFFu; /* 0x47070469: or eax, 0xffffffff */ 2212 _cf = 0; 2213 _flag_k = FK_TEST; 2214 goto L_470704D6; /* 0x4707046C: jmp 0x470704d6 */ 2215 L_4707046E: 2216 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4707046E: call dword ptr [0x470ac150] */ 2217 RECOMP_FLAGS_IN(); 2218 edi = eax; /* 0x47070474: mov edi, eax */ 2219 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47070476: call dword ptr [0x470ac3c8] */ 2220 RECOMP_FLAGS_IN(); 2221 eax = MEM32(eax); /* 0x4707047C: mov eax, dword ptr [eax] */ 2222 /* cmp eax, ebx */ /* 0x4707047E: cmp eax, ebx */ 2223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2225 _flag_k = FK_CMP; 2226 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070484; /* 0x47070480: je 0x47070484 */ 2227 L_47070482: 2228 edi = eax; /* 0x47070482: mov edi, eax */ 2229 L_47070484: 2230 RECOMP_ICALL(0x47039020u); /* 0x47070484: call 0x47039020 */ /* not lifted */ 2231 RECOMP_FLAGS_IN(); 2232 esi = eax; /* 0x47070489: mov esi, eax */ 2233 ecx = esi; /* 0x4707048B: mov ecx, esi */ 2234 RECOMP_ICALL(0x4703B210u); /* 0x4707048D: call 0x4703b210 */ /* not lifted */ 2235 RECOMP_FLAGS_IN(); 2236 PUSH32(esp, eax); /* 0x47070492: push eax */ 2237 ecx = esi; /* 0x47070493: mov ecx, esi */ 2238 RECOMP_ICALL(0x4703B240u); /* 0x47070495: call 0x4703b240 */ /* not lifted */ 2239 RECOMP_FLAGS_IN(); 2240 PUSH32(esp, eax); /* 0x4707049A: push eax */ 2241 ecx = esi; /* 0x4707049B: mov ecx, esi */ 2242 RECOMP_ICALL(0x4703B080u); /* 0x4707049D: call 0x4703b080 */ /* not lifted */ 2243 RECOMP_FLAGS_IN(); 2244 PUSH32(esp, eax); /* 0x470704A2: push eax */ 2245 PUSH32(esp, edi); /* 0x470704A3: push edi */ 2246 PUSH32(esp, 0xFFFFFFFFu); /* 0x470704A4: push -1 */ 2247 PUSH32(esp, 0x12Eu); /* 0x470704A6: push 0x12e */ 2248 PUSH32(esp, 0x4710A224u); /* 0x470704AB: push 0x4710a224 */ 2249 ecx = esi; /* 0x470704B0: mov ecx, esi */ 2250 RECOMP_ICALL(0x4703A340u); /* 0x470704B2: call 0x4703a340 */ /* not lifted */ 2251 RECOMP_FLAGS_IN(); 2252 PUSH32(esp, 0x4710A288u); /* 0x470704B7: push 0x4710a288 */ 2253 PUSH32(esp, 0x471055F0u); /* 0x470704BC: push 0x471055f0 */ 2254 PUSH32(esp, 0x80u); /* 0x470704C1: push 0x80 */ 2255 PUSH32(esp, esi); /* 0x470704C6: push esi */ 2256 RECOMP_ICALL(0x47039830u); /* 0x470704C7: call 0x47039830 */ /* not lifted */ 2257 RECOMP_FLAGS_IN(); 2258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2260 esp = esp + 0x10u; /* 0x470704CC: add esp, 0x10 */ 2261 _flag_k = FK_ADD; 2262 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2263 eax = eax | 0xFFFFFFFFu; /* 0x470704CF: or eax, 0xffffffff */ 2264 _cf = 0; 2265 _flag_k = FK_TEST; 2266 goto L_470704D6; /* 0x470704D2: jmp 0x470704d6 */ 2267 L_470704D4: 2268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2269 eax = 0; /* 0x470704D4: xor eax, eax */ 2270 _cf = 0; 2271 _flag_k = FK_TEST; 2272 L_470704D6: 2273 ecx = MEM32(esp + 0xCE4); /* 0x470704D6: mov ecx, dword ptr [esp + 0xce4] */ 2274 edi = POP32_VAL(esp); /* 0x470704DD: pop edi */ 2275 esi = POP32_VAL(esp); /* 0x470704DE: pop esi */ 2276 ebp = POP32_VAL(esp); /* 0x470704DF: pop ebp */ 2277 ebx = POP32_VAL(esp); /* 0x470704E0: pop ebx */ 2278 MEM32(FS_BASE + (0)) = ecx; /* 0x470704E1: mov dword ptr fs:[0], ecx */ 2279 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 2280 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2281 esp = esp + 0xCE0u; /* 0x470704E8: add esp, 0xce0 */ 2282 _flag_k = FK_ADD; 2283 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470704EE: ret 8 */ 2284 RECOMP_REGS_OUT(); 2285 } 2286 2287 void sub_470702BC(void) { 2288 int _fpu_cmp = 0; 2289 uint32_t _cf = 0; 2290 int _df = 1; 2291 uint32_t _flag_k = FK_NONE; 2292 uint32_t _flag_a = 0, _flag_b = 0; 2293 uint32_t _itail_tgt = 0; 2294 RECOMP_REGS_LOCALS 2295 RECOMP_ENTER(0x470702BCu); 2296 2297 L_470702BC: 2298 eax = esp + 0x4C; /* 0x470702BC: lea eax, [esp + 0x4c] */ 2299 PUSH32(esp, eax); /* 0x470702C0: push eax */ 2300 ecx = ebp; /* 0x470702C1: mov ecx, ebp */ 2301 RECOMP_ICALL(0x47046470u); /* 0x470702C3: call 0x47046470 */ /* not lifted */ 2302 RECOMP_FLAGS_IN(); 2303 /* cmp eax, 0xFFFFFFFFu */ /* 0x470702C8: cmp eax, -1 */ 2304 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 2305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2306 _flag_k = FK_CMP; 2307 if (CMP_EQ(_flag_a, _flag_b)) goto L_4707046E; /* 0x470702CB: je 0x4707046e */ 2308 L_470702D1: 2309 ecx = esp + 0x4C; /* 0x470702D1: lea ecx, [esp + 0x4c] */ 2310 RECOMP_ICALL(0x4708EA70u); /* 0x470702D5: call 0x4708ea70 */ /* not lifted */ 2311 RECOMP_FLAGS_IN(); 2312 /* cmp eax, 0xBu */ /* 0x470702DA: cmp eax, 0xb */ 2313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 2314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2315 _flag_k = FK_CMP; 2316 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070411; /* 0x470702DD: je 0x47070411 */ 2317 L_470702E3: 2318 PUSH32(esp, ebx); /* 0x470702E3: push ebx */ 2319 ecx = esp + 0x50; /* 0x470702E4: lea ecx, [esp + 0x50] */ 2320 RECOMP_ICALL(0x4708EAF0u); /* 0x470702E8: call 0x4708eaf0 */ /* not lifted */ 2321 RECOMP_FLAGS_IN(); 2322 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x470702ED: shr eax, 1 */ 2323 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2324 eax = eax >> 1u; /* 0x470702ED: shr eax, 1 */ 2325 PUSH32(esp, eax); /* 0x470702EF: push eax */ 2326 ecx = esp + 0x54; /* 0x470702F0: lea ecx, [esp + 0x54] */ 2327 RECOMP_ICALL(0x47046910u); /* 0x470702F4: call 0x47046910 */ /* not lifted */ 2328 RECOMP_FLAGS_IN(); 2329 PUSH32(esp, eax); /* 0x470702F9: push eax */ 2330 ecx = esp + 0x1C; /* 0x470702FA: lea ecx, [esp + 0x1c] */ 2331 RECOMP_ICALL(0x47080BF0u); /* 0x470702FE: call 0x47080bf0 */ /* not lifted */ 2332 RECOMP_FLAGS_IN(); 2333 PUSH32(esp, ebx); /* 0x47070303: push ebx */ 2334 ecx = esp + 0x50; /* 0x47070304: lea ecx, [esp + 0x50] */ 2335 MEM32(esp + 0xCF0) = ebx; /* 0x47070308: mov dword ptr [esp + 0xcf0], ebx */ 2336 RECOMP_ICALL(0x47015330u); /* 0x4707030F: call 0x47015330 */ /* not lifted */ 2337 RECOMP_FLAGS_IN(); 2338 if (1u) _cf = (((eax) >> 0) & 1u); /* 0x47070314: shr eax, 1 */ 2339 if (1u) { _flag_a = recomp_flags_pack((eax >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2340 eax = eax >> 1u; /* 0x47070314: shr eax, 1 */ 2341 PUSH32(esp, eax); /* 0x47070316: push eax */ 2342 ecx = esp + 0x54; /* 0x47070317: lea ecx, [esp + 0x54] */ 2343 RECOMP_ICALL(0x47046950u); /* 0x4707031B: call 0x47046950 */ /* not lifted */ 2344 RECOMP_FLAGS_IN(); 2345 PUSH32(esp, eax); /* 0x47070320: push eax */ 2346 ecx = esp + 0x28; /* 0x47070321: lea ecx, [esp + 0x28] */ 2347 RECOMP_ICALL(0x47080BF0u); /* 0x47070325: call 0x47080bf0 */ /* not lifted */ 2348 RECOMP_FLAGS_IN(); 2349 ecx = esp + 0x4C; /* 0x4707032A: lea ecx, [esp + 0x4c] */ 2350 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x4707032E: mov byte ptr [esp + 0xcec], 1 */ 2351 RECOMP_ICALL(0x47046990u); /* 0x47070336: call 0x47046990 */ /* not lifted */ 2352 RECOMP_FLAGS_IN(); 2353 PUSH32(esp, eax); /* 0x4707033B: push eax */ 2354 ecx = esp + 0x20; /* 0x4707033C: lea ecx, [esp + 0x20] */ 2355 PUSH32(esp, ecx); /* 0x47070340: push ecx */ 2356 edx = esp + 0x18; /* 0x47070341: lea edx, [esp + 0x18] */ 2357 PUSH32(esp, edx); /* 0x47070345: push edx */ 2358 ecx = esp + 0x38; /* 0x47070346: lea ecx, [esp + 0x38] */ 2359 RECOMP_ICALL(0x47047640u); /* 0x4707034A: call 0x47047640 */ /* not lifted */ 2360 RECOMP_FLAGS_IN(); 2361 ecx = MEM32(esi); /* 0x4707034F: mov ecx, dword ptr [esi] */ 2362 eax = esp + 0x2C; /* 0x47070351: lea eax, [esp + 0x2c] */ 2363 PUSH32(esp, eax); /* 0x47070355: push eax */ 2364 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2366 ecx = ecx + 4; /* 0x47070356: add ecx, 4 */ 2367 _flag_k = FK_ADD; 2368 MEM8(esp + 0xCF0) = (uint8_t)(2); /* 0x47070359: mov byte ptr [esp + 0xcf0], 2 */ 2369 RECOMP_ICALL(0x47047720u); /* 0x47070361: call 0x47047720 */ /* not lifted */ 2370 RECOMP_FLAGS_IN(); 2371 ecx = MEM32(esi); /* 0x47070366: mov ecx, dword ptr [esi] */ 2372 edi = MEM32(ecx); /* 0x47070368: mov edi, dword ptr [ecx] */ 2373 edx = esp + 0x2C; /* 0x4707036A: lea edx, [esp + 0x2c] */ 2374 PUSH32(esp, edx); /* 0x4707036E: push edx */ 2375 ecx = edi + 0x4; /* 0x4707036F: lea ecx, [edi + 4] */ 2376 RECOMP_ICALL(0x47047750u); /* 0x47070372: call 0x47047750 */ /* not lifted */ 2377 RECOMP_FLAGS_IN(); 2378 /* test eax, eax */ /* 0x47070377: test eax, eax */ 2379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2380 _cf = 0; 2381 _flag_k = FK_TEST; 2382 if (TEST_NZ(_flag_a, _flag_b)) goto L_4707038E; /* 0x47070379: jne 0x4707038e */ 2383 L_4707037B: 2384 edi = MEM32(edi); /* 0x4707037B: mov edi, dword ptr [edi] */ 2385 eax = esp + 0x2C; /* 0x4707037D: lea eax, [esp + 0x2c] */ 2386 PUSH32(esp, eax); /* 0x47070381: push eax */ 2387 ecx = edi + 0x4; /* 0x47070382: lea ecx, [edi + 4] */ 2388 RECOMP_ICALL(0x47047750u); /* 0x47070385: call 0x47047750 */ /* not lifted */ 2389 RECOMP_FLAGS_IN(); 2390 /* test eax, eax */ /* 0x4707038A: test eax, eax */ 2391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2392 _cf = 0; 2393 _flag_k = FK_TEST; 2394 RECOMP_BACKEDGE(); 2395 if (TEST_Z(_flag_a, _flag_b)) goto L_4707037B; /* 0x4707038C: je 0x4707037b */ 2396 L_4707038E: 2397 eax = MEM32(esi); /* 0x4707038E: mov eax, dword ptr [esi] */ 2398 /* cmp edi, eax */ /* 0x47070390: cmp edi, eax */ 2399 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2401 _flag_k = FK_CMP; 2402 if (CMP_NE(_flag_a, _flag_b)) goto L_470703DC; /* 0x47070392: jne 0x470703dc */ 2403 L_47070394: 2404 ecx = esp + 0x2C; /* 0x47070394: lea ecx, [esp + 0x2c] */ 2405 PUSH32(esp, ecx); /* 0x47070398: push ecx */ 2406 ecx = eax + 0x4; /* 0x47070399: lea ecx, [eax + 4] */ 2407 RECOMP_ICALL(0x47047720u); /* 0x4707039C: call 0x47047720 */ /* not lifted */ 2408 RECOMP_FLAGS_IN(); 2409 ecx = MEM32(esi + 0x8); /* 0x470703A1: mov ecx, dword ptr [esi + 8] */ 2410 edx = MEM32(ecx); /* 0x470703A4: mov edx, dword ptr [ecx] */ 2411 PUSH32(esp, 0x20u); /* 0x470703A6: push 0x20 */ 2412 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470703A8: call dword ptr [edx + 4] */ 2413 RECOMP_FLAGS_IN(); 2414 edi = eax; /* 0x470703AB: mov edi, eax */ 2415 /* cmp edi, ebx */ /* 0x470703AD: cmp edi, ebx */ 2416 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2418 _flag_k = FK_CMP; 2419 MEM32(esp + 0x28) = edi; /* 0x470703AF: mov dword ptr [esp + 0x28], edi */ 2420 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070428; /* 0x470703B3: je 0x47070428 */ 2421 L_470703B5: 2422 MEM32(esp + 0x48) = edi; /* 0x470703B5: mov dword ptr [esp + 0x48], edi */ 2423 eax = MEM32(esi); /* 0x470703B9: mov eax, dword ptr [esi] */ 2424 eax = MEM32(eax); /* 0x470703BB: mov eax, dword ptr [eax] */ 2425 ecx = edi + 0x4; /* 0x470703BD: lea ecx, [edi + 4] */ 2426 MEM8(esp + 0xCEC) = (uint8_t)(3); /* 0x470703C0: mov byte ptr [esp + 0xcec], 3 */ 2427 MEM32(edi) = eax; /* 0x470703C8: mov dword ptr [edi], eax */ 2428 RECOMP_ICALL(0x47047580u); /* 0x470703CA: call 0x47047580 */ /* not lifted */ 2429 RECOMP_FLAGS_IN(); 2430 ecx = MEM32(esi); /* 0x470703CF: mov ecx, dword ptr [esi] */ 2431 MEM32(ecx) = edi; /* 0x470703D1: mov dword ptr [ecx], edi */ 2432 eax = MEM32(esi + 0x4); /* 0x470703D3: mov eax, dword ptr [esi + 4] */ 2433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2434 eax = eax + 1; /* 0x470703D6: inc eax */ 2435 _flag_k = FK_INC; 2436 MEM32(esi) = edi; /* 0x470703D7: mov dword ptr [esi], edi */ 2437 MEM32(esi + 0x4) = eax; /* 0x470703D9: mov dword ptr [esi + 4], eax */ 2438 L_470703DC: 2439 ecx = esp + 0x2C; /* 0x470703DC: lea ecx, [esp + 0x2c] */ 2440 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x470703E0: mov byte ptr [esp + 0xcec], 1 */ 2441 RECOMP_ICALL(0x470475E0u); /* 0x470703E8: call 0x470475e0 */ /* not lifted */ 2442 RECOMP_FLAGS_IN(); 2443 ecx = esp + 0x1C; /* 0x470703ED: lea ecx, [esp + 0x1c] */ 2444 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x470703F1: mov byte ptr [esp + 0xcec], bl */ 2445 RECOMP_ICALL(0x470810C0u); /* 0x470703F8: call 0x470810c0 */ /* not lifted */ 2446 RECOMP_FLAGS_IN(); 2447 ecx = esp + 0x10; /* 0x470703FD: lea ecx, [esp + 0x10] */ 2448 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070401: mov dword ptr [esp + 0xcec], 0xffffffff */ 2449 RECOMP_ICALL(0x470810C0u); /* 0x4707040C: call 0x470810c0 */ /* not lifted */ 2450 RECOMP_FLAGS_IN(); 2451 L_47070411: 2452 ecx = esp + 0x4C; /* 0x47070411: lea ecx, [esp + 0x4c] */ 2453 RECOMP_ICALL(0x4708EA70u); /* 0x47070415: call 0x4708ea70 */ /* not lifted */ 2454 RECOMP_FLAGS_IN(); 2455 /* cmp eax, 0xBu */ /* 0x4707041A: cmp eax, 0xb */ 2456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 2457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2458 _flag_k = FK_CMP; 2459 if (CMP_EQ(_flag_a, _flag_b)) goto L_470704D4; /* 0x4707041D: je 0x470704d4 */ 2460 L_47070423: 2461 RECOMP_BACKEDGE(); 2462 goto L_470702BC; /* 0x47070423: jmp 0x470702bc */ 2463 L_47070428: 2464 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47070428: call dword ptr [0x470ac3c8] */ 2465 RECOMP_FLAGS_IN(); 2466 ecx = esp + 0x2C; /* 0x4707042E: lea ecx, [esp + 0x2c] */ 2467 MEM32(eax) = 0xCu; /* 0x47070432: mov dword ptr [eax], 0xc */ 2468 MEM8(esp + 0xCEC) = (uint8_t)(1); /* 0x47070438: mov byte ptr [esp + 0xcec], 1 */ 2469 RECOMP_ICALL(0x470475E0u); /* 0x47070440: call 0x470475e0 */ /* not lifted */ 2470 RECOMP_FLAGS_IN(); 2471 ecx = esp + 0x1C; /* 0x47070445: lea ecx, [esp + 0x1c] */ 2472 MEM8(esp + 0xCEC) = (uint8_t)(LO8(ebx)); /* 0x47070449: mov byte ptr [esp + 0xcec], bl */ 2473 RECOMP_ICALL(0x470810C0u); /* 0x47070450: call 0x470810c0 */ /* not lifted */ 2474 RECOMP_FLAGS_IN(); 2475 ecx = esp + 0x10; /* 0x47070455: lea ecx, [esp + 0x10] */ 2476 MEM32(esp + 0xCEC) = 0xFFFFFFFFu; /* 0x47070459: mov dword ptr [esp + 0xcec], 0xffffffff */ 2477 RECOMP_ICALL(0x470810C0u); /* 0x47070464: call 0x470810c0 */ /* not lifted */ 2478 RECOMP_FLAGS_IN(); 2479 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2480 eax = eax | 0xFFFFFFFFu; /* 0x47070469: or eax, 0xffffffff */ 2481 _cf = 0; 2482 _flag_k = FK_TEST; 2483 goto L_470704D6; /* 0x4707046C: jmp 0x470704d6 */ 2484 L_4707046E: 2485 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4707046E: call dword ptr [0x470ac150] */ 2486 RECOMP_FLAGS_IN(); 2487 edi = eax; /* 0x47070474: mov edi, eax */ 2488 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47070476: call dword ptr [0x470ac3c8] */ 2489 RECOMP_FLAGS_IN(); 2490 eax = MEM32(eax); /* 0x4707047C: mov eax, dword ptr [eax] */ 2491 /* cmp eax, ebx */ /* 0x4707047E: cmp eax, ebx */ 2492 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2494 _flag_k = FK_CMP; 2495 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070484; /* 0x47070480: je 0x47070484 */ 2496 L_47070482: 2497 edi = eax; /* 0x47070482: mov edi, eax */ 2498 L_47070484: 2499 RECOMP_ICALL(0x47039020u); /* 0x47070484: call 0x47039020 */ /* not lifted */ 2500 RECOMP_FLAGS_IN(); 2501 esi = eax; /* 0x47070489: mov esi, eax */ 2502 ecx = esi; /* 0x4707048B: mov ecx, esi */ 2503 RECOMP_ICALL(0x4703B210u); /* 0x4707048D: call 0x4703b210 */ /* not lifted */ 2504 RECOMP_FLAGS_IN(); 2505 PUSH32(esp, eax); /* 0x47070492: push eax */ 2506 ecx = esi; /* 0x47070493: mov ecx, esi */ 2507 RECOMP_ICALL(0x4703B240u); /* 0x47070495: call 0x4703b240 */ /* not lifted */ 2508 RECOMP_FLAGS_IN(); 2509 PUSH32(esp, eax); /* 0x4707049A: push eax */ 2510 ecx = esi; /* 0x4707049B: mov ecx, esi */ 2511 RECOMP_ICALL(0x4703B080u); /* 0x4707049D: call 0x4703b080 */ /* not lifted */ 2512 RECOMP_FLAGS_IN(); 2513 PUSH32(esp, eax); /* 0x470704A2: push eax */ 2514 PUSH32(esp, edi); /* 0x470704A3: push edi */ 2515 PUSH32(esp, 0xFFFFFFFFu); /* 0x470704A4: push -1 */ 2516 PUSH32(esp, 0x12Eu); /* 0x470704A6: push 0x12e */ 2517 PUSH32(esp, 0x4710A224u); /* 0x470704AB: push 0x4710a224 */ 2518 ecx = esi; /* 0x470704B0: mov ecx, esi */ 2519 RECOMP_ICALL(0x4703A340u); /* 0x470704B2: call 0x4703a340 */ /* not lifted */ 2520 RECOMP_FLAGS_IN(); 2521 PUSH32(esp, 0x4710A288u); /* 0x470704B7: push 0x4710a288 */ 2522 PUSH32(esp, 0x471055F0u); /* 0x470704BC: push 0x471055f0 */ 2523 PUSH32(esp, 0x80u); /* 0x470704C1: push 0x80 */ 2524 PUSH32(esp, esi); /* 0x470704C6: push esi */ 2525 RECOMP_ICALL(0x47039830u); /* 0x470704C7: call 0x47039830 */ /* not lifted */ 2526 RECOMP_FLAGS_IN(); 2527 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2529 esp = esp + 0x10u; /* 0x470704CC: add esp, 0x10 */ 2530 _flag_k = FK_ADD; 2531 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 2532 eax = eax | 0xFFFFFFFFu; /* 0x470704CF: or eax, 0xffffffff */ 2533 _cf = 0; 2534 _flag_k = FK_TEST; 2535 goto L_470704D6; /* 0x470704D2: jmp 0x470704d6 */ 2536 L_470704D4: 2537 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2538 eax = 0; /* 0x470704D4: xor eax, eax */ 2539 _cf = 0; 2540 _flag_k = FK_TEST; 2541 L_470704D6: 2542 ecx = MEM32(esp + 0xCE4); /* 0x470704D6: mov ecx, dword ptr [esp + 0xce4] */ 2543 edi = POP32_VAL(esp); /* 0x470704DD: pop edi */ 2544 esi = POP32_VAL(esp); /* 0x470704DE: pop esi */ 2545 ebp = POP32_VAL(esp); /* 0x470704DF: pop ebp */ 2546 ebx = POP32_VAL(esp); /* 0x470704E0: pop ebx */ 2547 MEM32(FS_BASE + (0)) = ecx; /* 0x470704E1: mov dword ptr fs:[0], ecx */ 2548 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 2549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2550 esp = esp + 0xCE0u; /* 0x470704E8: add esp, 0xce0 */ 2551 _flag_k = FK_ADD; 2552 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470704EE: ret 8 */ 2553 RECOMP_REGS_OUT(); 2554 } 2555 2556 void sub_470704D6(void) { 2557 int _fpu_cmp = 0; 2558 uint32_t _cf = 0; 2559 int _df = 1; 2560 uint32_t _flag_k = FK_NONE; 2561 uint32_t _flag_a = 0, _flag_b = 0; 2562 uint32_t _itail_tgt = 0; 2563 RECOMP_REGS_LOCALS 2564 RECOMP_ENTER(0x470704D6u); 2565 2566 L_470704D6: 2567 ecx = MEM32(esp + 0xCE4); /* 0x470704D6: mov ecx, dword ptr [esp + 0xce4] */ 2568 edi = POP32_VAL(esp); /* 0x470704DD: pop edi */ 2569 esi = POP32_VAL(esp); /* 0x470704DE: pop esi */ 2570 ebp = POP32_VAL(esp); /* 0x470704DF: pop ebp */ 2571 ebx = POP32_VAL(esp); /* 0x470704E0: pop ebx */ 2572 MEM32(FS_BASE + (0)) = ecx; /* 0x470704E1: mov dword ptr fs:[0], ecx */ 2573 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCE0u); 2574 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2575 esp = esp + 0xCE0u; /* 0x470704E8: add esp, 0xce0 */ 2576 _flag_k = FK_ADD; 2577 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470704EE: ret 8 */ 2578 RECOMP_REGS_OUT(); 2579 } 2580 2581 void sub_47070500(void) { 2582 int _fpu_cmp = 0; 2583 uint32_t _cf = 0; 2584 int _df = 1; 2585 uint32_t _flag_k = FK_NONE; 2586 uint32_t _flag_a = 0, _flag_b = 0; 2587 uint32_t _itail_tgt = 0; 2588 RECOMP_REGS_LOCALS 2589 RECOMP_ENTER(0x47070500u); 2590 2591 L_47070500: 2592 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070500: push -1 */ 2593 PUSH32(esp, 0x470A8F88u); /* 0x47070502: push 0x470a8f88 */ 2594 eax = MEM32(FS_BASE + (0)); /* 0x47070507: mov eax, dword ptr fs:[0] */ 2595 PUSH32(esp, eax); /* 0x4707050D: push eax */ 2596 MEM32(FS_BASE + (0)) = esp; /* 0x4707050E: mov dword ptr fs:[0], esp */ 2597 PUSH32(esp, ecx); /* 0x47070515: push ecx */ 2598 PUSH32(esp, esi); /* 0x47070516: push esi */ 2599 esi = ecx; /* 0x47070517: mov esi, ecx */ 2600 MEM32(esp + 0x4) = esi; /* 0x47070519: mov dword ptr [esp + 4], esi */ 2601 MEM32(esi) = 0x470AD7D8u; /* 0x4707051D: mov dword ptr [esi], 0x470ad7d8 */ 2602 ecx = esi + 0x4; /* 0x47070523: lea ecx, [esi + 4] */ 2603 MEM32(esp + 0x10) = 0; /* 0x47070526: mov dword ptr [esp + 0x10], 0 */ 2604 RECOMP_ICALL(0x47046680u); /* 0x4707052E: call 0x47046680 */ /* not lifted */ 2605 RECOMP_FLAGS_IN(); 2606 ecx = esi; /* 0x47070533: mov ecx, esi */ 2607 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47070535: mov dword ptr [esp + 0x10], 0xffffffff */ 2608 RECOMP_ICALL(0x470477E0u); /* 0x4707053D: call 0x470477e0 */ /* not lifted */ 2609 RECOMP_FLAGS_IN(); 2610 ecx = MEM32(esp + 0x8); /* 0x47070542: mov ecx, dword ptr [esp + 8] */ 2611 esi = POP32_VAL(esp); /* 0x47070546: pop esi */ 2612 MEM32(FS_BASE + (0)) = ecx; /* 0x47070547: mov dword ptr fs:[0], ecx */ 2613 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2615 esp = esp + 0x10u; /* 0x4707054E: add esp, 0x10 */ 2616 _flag_k = FK_ADD; 2617 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070551: ret */ 2618 RECOMP_REGS_OUT(); 2619 } 2620 2621 void sub_47070560(void) { 2622 int _fpu_cmp = 0; 2623 uint32_t _cf = 0; 2624 int _df = 1; 2625 uint32_t _flag_k = FK_NONE; 2626 uint32_t _flag_a = 0, _flag_b = 0; 2627 uint32_t _itail_tgt = 0; 2628 RECOMP_REGS_LOCALS 2629 RECOMP_ENTER(0x47070560u); 2630 2631 L_47070560: 2632 PUSH32(esp, ebx); /* 0x47070560: push ebx */ 2633 PUSH32(esp, ebp); /* 0x47070561: push ebp */ 2634 ebp = MEM32(0x470AC150); /* 0x47070562: mov ebp, dword ptr [0x470ac150] */ 2635 PUSH32(esp, esi); /* 0x47070568: push esi */ 2636 PUSH32(esp, edi); /* 0x47070569: push edi */ 2637 edi = ecx; /* 0x4707056A: mov edi, ecx */ 2638 RECOMP_ICALL(ebp); /* 0x4707056C: call ebp */ 2639 RECOMP_FLAGS_IN(); 2640 ebx = eax; /* 0x4707056E: mov ebx, eax */ 2641 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47070570: call dword ptr [0x470ac3c8] */ 2642 RECOMP_FLAGS_IN(); 2643 eax = MEM32(eax); /* 0x47070576: mov eax, dword ptr [eax] */ 2644 /* test eax, eax */ /* 0x47070578: test eax, eax */ 2645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2646 _cf = 0; 2647 _flag_k = FK_TEST; 2648 if (TEST_Z(_flag_a, _flag_b)) goto L_4707057E; /* 0x4707057A: je 0x4707057e */ 2649 L_4707057C: 2650 ebx = eax; /* 0x4707057C: mov ebx, eax */ 2651 L_4707057E: 2652 RECOMP_ICALL(0x47039020u); /* 0x4707057E: call 0x47039020 */ /* not lifted */ 2653 RECOMP_FLAGS_IN(); 2654 esi = eax; /* 0x47070583: mov esi, eax */ 2655 ecx = esi; /* 0x47070585: mov ecx, esi */ 2656 RECOMP_ICALL(0x4703B210u); /* 0x47070587: call 0x4703b210 */ /* not lifted */ 2657 RECOMP_FLAGS_IN(); 2658 PUSH32(esp, eax); /* 0x4707058C: push eax */ 2659 ecx = esi; /* 0x4707058D: mov ecx, esi */ 2660 RECOMP_ICALL(0x4703B240u); /* 0x4707058F: call 0x4703b240 */ /* not lifted */ 2661 RECOMP_FLAGS_IN(); 2662 PUSH32(esp, eax); /* 0x47070594: push eax */ 2663 ecx = esi; /* 0x47070595: mov ecx, esi */ 2664 RECOMP_ICALL(0x4703B080u); /* 0x47070597: call 0x4703b080 */ /* not lifted */ 2665 RECOMP_FLAGS_IN(); 2666 PUSH32(esp, eax); /* 0x4707059C: push eax */ 2667 PUSH32(esp, ebx); /* 0x4707059D: push ebx */ 2668 PUSH32(esp, 0); /* 0x4707059E: push 0 */ 2669 PUSH32(esp, 0x149u); /* 0x470705A0: push 0x149 */ 2670 PUSH32(esp, 0x4710A224u); /* 0x470705A5: push 0x4710a224 */ 2671 ecx = esi; /* 0x470705AA: mov ecx, esi */ 2672 RECOMP_ICALL(0x4703A340u); /* 0x470705AC: call 0x4703a340 */ /* not lifted */ 2673 RECOMP_FLAGS_IN(); 2674 PUSH32(esp, edi); /* 0x470705B1: push edi */ 2675 PUSH32(esp, 0x471052CCu); /* 0x470705B2: push 0x471052cc */ 2676 PUSH32(esp, 4); /* 0x470705B7: push 4 */ 2677 PUSH32(esp, esi); /* 0x470705B9: push esi */ 2678 RECOMP_ICALL(0x47039830u); /* 0x470705BA: call 0x47039830 */ /* not lifted */ 2679 RECOMP_FLAGS_IN(); 2680 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2681 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2682 esp = esp + 0x10u; /* 0x470705BF: add esp, 0x10 */ 2683 _flag_k = FK_ADD; 2684 ecx = edi + 0x4; /* 0x470705C2: lea ecx, [edi + 4] */ 2685 RECOMP_ICALL(0x47045E90u); /* 0x470705C5: call 0x47045e90 */ /* not lifted */ 2686 RECOMP_FLAGS_IN(); 2687 RECOMP_ICALL(ebp); /* 0x470705CA: call ebp */ 2688 RECOMP_FLAGS_IN(); 2689 esi = eax; /* 0x470705CC: mov esi, eax */ 2690 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470705CE: call dword ptr [0x470ac3c8] */ 2691 RECOMP_FLAGS_IN(); 2692 eax = MEM32(eax); /* 0x470705D4: mov eax, dword ptr [eax] */ 2693 /* test eax, eax */ /* 0x470705D6: test eax, eax */ 2694 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2695 _cf = 0; 2696 _flag_k = FK_TEST; 2697 edi = esi; /* 0x470705D8: mov edi, esi */ 2698 if (TEST_Z(_flag_a, _flag_b)) goto L_470705DE; /* 0x470705DA: je 0x470705de */ 2699 L_470705DC: 2700 edi = eax; /* 0x470705DC: mov edi, eax */ 2701 L_470705DE: 2702 RECOMP_ICALL(0x47039020u); /* 0x470705DE: call 0x47039020 */ /* not lifted */ 2703 RECOMP_FLAGS_IN(); 2704 esi = eax; /* 0x470705E3: mov esi, eax */ 2705 ecx = esi; /* 0x470705E5: mov ecx, esi */ 2706 RECOMP_ICALL(0x4703B210u); /* 0x470705E7: call 0x4703b210 */ /* not lifted */ 2707 RECOMP_FLAGS_IN(); 2708 PUSH32(esp, eax); /* 0x470705EC: push eax */ 2709 ecx = esi; /* 0x470705ED: mov ecx, esi */ 2710 RECOMP_ICALL(0x4703B240u); /* 0x470705EF: call 0x4703b240 */ /* not lifted */ 2711 RECOMP_FLAGS_IN(); 2712 PUSH32(esp, eax); /* 0x470705F4: push eax */ 2713 ecx = esi; /* 0x470705F5: mov ecx, esi */ 2714 RECOMP_ICALL(0x4703B080u); /* 0x470705F7: call 0x4703b080 */ /* not lifted */ 2715 RECOMP_FLAGS_IN(); 2716 PUSH32(esp, eax); /* 0x470705FC: push eax */ 2717 PUSH32(esp, edi); /* 0x470705FD: push edi */ 2718 PUSH32(esp, 0); /* 0x470705FE: push 0 */ 2719 PUSH32(esp, 0x14Bu); /* 0x47070600: push 0x14b */ 2720 PUSH32(esp, 0x4710A224u); /* 0x47070605: push 0x4710a224 */ 2721 ecx = esi; /* 0x4707060A: mov ecx, esi */ 2722 RECOMP_ICALL(0x4703A340u); /* 0x4707060C: call 0x4703a340 */ /* not lifted */ 2723 RECOMP_FLAGS_IN(); 2724 PUSH32(esp, 0x4710529Cu); /* 0x47070611: push 0x4710529c */ 2725 PUSH32(esp, 4); /* 0x47070616: push 4 */ 2726 PUSH32(esp, esi); /* 0x47070618: push esi */ 2727 RECOMP_ICALL(0x47039830u); /* 0x47070619: call 0x47039830 */ /* not lifted */ 2728 RECOMP_FLAGS_IN(); 2729 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2731 esp = esp + 0xCu; /* 0x4707061E: add esp, 0xc */ 2732 _flag_k = FK_ADD; 2733 edi = POP32_VAL(esp); /* 0x47070621: pop edi */ 2734 esi = POP32_VAL(esp); /* 0x47070622: pop esi */ 2735 ebp = POP32_VAL(esp); /* 0x47070623: pop ebp */ 2736 ebx = POP32_VAL(esp); /* 0x47070624: pop ebx */ 2737 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070625: ret */ 2738 RECOMP_REGS_OUT(); 2739 } 2740 2741 void sub_47070630(void) { 2742 int _fpu_cmp = 0; 2743 uint32_t _cf = 0; 2744 int _df = 1; 2745 uint32_t _flag_k = FK_NONE; 2746 uint32_t _flag_a = 0, _flag_b = 0; 2747 uint32_t _itail_tgt = 0; 2748 RECOMP_REGS_LOCALS 2749 RECOMP_ENTER(0x47070630u); 2750 2751 L_47070630: 2752 ecx = 0x4710EC85u; /* 0x47070630: mov ecx, 0x4710ec85 */ 2753 RECOMP_ICALL(MEM32(0x470AC1C8)); /* 0x47070635: call dword ptr [0x470ac1c8] */ 2754 RECOMP_FLAGS_IN(); 2755 PUSH32(esp, 0x47070650u); /* 0x4707063B: push 0x47070650 */ 2756 RECOMP_ICALL(0x470A32D9u); /* 0x47070640: call 0x470a32d9 */ /* not lifted */ 2757 RECOMP_FLAGS_IN(); 2758 ecx = POP32_VAL(esp); /* 0x47070645: pop ecx */ 2759 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070646: ret */ 2760 RECOMP_REGS_OUT(); 2761 } 2762 2763 void sub_47070650(void) { 2764 int _fpu_cmp = 0; 2765 uint32_t _cf = 0; 2766 int _df = 1; 2767 uint32_t _flag_k = FK_NONE; 2768 uint32_t _flag_a = 0, _flag_b = 0; 2769 uint32_t _itail_tgt = 0; 2770 RECOMP_REGS_LOCALS 2771 RECOMP_ENTER(0x47070650u); 2772 2773 L_47070650: 2774 ecx = 0x4710EC85u; /* 0x47070650: mov ecx, 0x4710ec85 */ 2775 L_47070655: 2776 { _itail_tgt = (uint32_t)(MEM32(0x470AC1BC)); goto _ljump; } 2777 { RECOMP_REGS_OUT(); return; } /* end of function */ 2778 _ljump: 2779 switch (_itail_tgt) { 2780 case 0x47070650u: goto L_47070650; 2781 case 0x47070655u: goto L_47070655; 2782 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2783 } 2784 RECOMP_REGS_OUT(); 2785 } 2786 2787 void sub_47070660(void) { 2788 int _fpu_cmp = 0; 2789 uint32_t _cf = 0; 2790 int _df = 1; 2791 uint32_t _flag_k = FK_NONE; 2792 uint32_t _flag_a = 0, _flag_b = 0; 2793 uint32_t _itail_tgt = 0; 2794 RECOMP_REGS_LOCALS 2795 RECOMP_ENTER(0x47070660u); 2796 2797 L_47070660: 2798 ecx = 0x4710EC84u; /* 0x47070660: mov ecx, 0x4710ec84 */ 2799 RECOMP_ICALL(MEM32(0x470AC1C4)); /* 0x47070665: call dword ptr [0x470ac1c4] */ 2800 RECOMP_FLAGS_IN(); 2801 PUSH32(esp, 0x47070680u); /* 0x4707066B: push 0x47070680 */ 2802 RECOMP_ICALL(0x470A32D9u); /* 0x47070670: call 0x470a32d9 */ /* not lifted */ 2803 RECOMP_FLAGS_IN(); 2804 ecx = POP32_VAL(esp); /* 0x47070675: pop ecx */ 2805 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070676: ret */ 2806 RECOMP_REGS_OUT(); 2807 } 2808 2809 void sub_47070680(void) { 2810 int _fpu_cmp = 0; 2811 uint32_t _cf = 0; 2812 int _df = 1; 2813 uint32_t _flag_k = FK_NONE; 2814 uint32_t _flag_a = 0, _flag_b = 0; 2815 uint32_t _itail_tgt = 0; 2816 RECOMP_REGS_LOCALS 2817 RECOMP_ENTER(0x47070680u); 2818 2819 L_47070680: 2820 ecx = 0x4710EC84u; /* 0x47070680: mov ecx, 0x4710ec84 */ 2821 L_47070685: 2822 { _itail_tgt = (uint32_t)(MEM32(0x470AC1C0)); goto _ljump; } 2823 { RECOMP_REGS_OUT(); return; } /* end of function */ 2824 _ljump: 2825 switch (_itail_tgt) { 2826 case 0x47070680u: goto L_47070680; 2827 case 0x47070685u: goto L_47070685; 2828 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2829 } 2830 RECOMP_REGS_OUT(); 2831 } 2832 2833 void sub_47070690(void) { 2834 int _fpu_cmp = 0; 2835 uint32_t _cf = 0; 2836 int _df = 1; 2837 uint32_t _flag_k = FK_NONE; 2838 uint32_t _flag_a = 0, _flag_b = 0; 2839 uint32_t _itail_tgt = 0; 2840 RECOMP_REGS_LOCALS 2841 RECOMP_ENTER(0x47070690u); 2842 2843 L_47070690: 2844 MEM32(0x4710EC58) = 0x47104A3Cu; /* 0x47070690: mov dword ptr [0x4710ec58], 0x47104a3c */ 2845 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4707069A: ret */ 2846 RECOMP_REGS_OUT(); 2847 } 2848 2849 void sub_470706A0(void) { 2850 int _fpu_cmp = 0; 2851 uint32_t _cf = 0; 2852 int _df = 1; 2853 uint32_t _flag_k = FK_NONE; 2854 uint32_t _flag_a = 0, _flag_b = 0; 2855 uint32_t _itail_tgt = 0; 2856 RECOMP_REGS_LOCALS 2857 RECOMP_ENTER(0x470706A0u); 2858 2859 L_470706A0: 2860 MEM32(0x4710EC8C) = 0x47104A00u; /* 0x470706A0: mov dword ptr [0x4710ec8c], 0x47104a00 */ 2861 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470706AA: ret */ 2862 RECOMP_REGS_OUT(); 2863 } 2864 2865 void sub_470706B0(void) { 2866 int _fpu_cmp = 0; 2867 uint32_t _cf = 0; 2868 int _df = 1; 2869 uint32_t _flag_k = FK_NONE; 2870 uint32_t _flag_a = 0, _flag_b = 0; 2871 uint32_t _itail_tgt = 0; 2872 RECOMP_REGS_LOCALS 2873 RECOMP_ENTER(0x470706B0u); 2874 2875 L_470706B0: 2876 MEM32(0x4710EC88) = 0x47104A70u; /* 0x470706B0: mov dword ptr [0x4710ec88], 0x47104a70 */ 2877 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470706BA: ret */ 2878 RECOMP_REGS_OUT(); 2879 } 2880 2881 void sub_470706C0(void) { 2882 int _fpu_cmp = 0; 2883 uint32_t _cf = 0; 2884 int _df = 1; 2885 uint32_t _flag_k = FK_NONE; 2886 uint32_t _flag_a = 0, _flag_b = 0; 2887 uint32_t _itail_tgt = 0; 2888 RECOMP_REGS_LOCALS 2889 RECOMP_ENTER(0x470706C0u); 2890 2891 L_470706C0: 2892 MEM32(0x4710ECA0) = 0x47104B6Cu; /* 0x470706C0: mov dword ptr [0x4710eca0], 0x47104b6c */ 2893 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470706CA: ret */ 2894 RECOMP_REGS_OUT(); 2895 } 2896 2897 void sub_470706D0(void) { 2898 int _fpu_cmp = 0; 2899 uint32_t _cf = 0; 2900 int _df = 1; 2901 uint32_t _flag_k = FK_NONE; 2902 uint32_t _flag_a = 0, _flag_b = 0; 2903 uint32_t _itail_tgt = 0; 2904 RECOMP_REGS_LOCALS 2905 RECOMP_ENTER(0x470706D0u); 2906 2907 L_470706D0: 2908 MEM32(0x4710EC60) = 0x47104BA0u; /* 0x470706D0: mov dword ptr [0x4710ec60], 0x47104ba0 */ 2909 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470706DA: ret */ 2910 RECOMP_REGS_OUT(); 2911 } 2912 2913 void sub_470706E0(void) { 2914 int _fpu_cmp = 0; 2915 uint32_t _cf = 0; 2916 int _df = 1; 2917 uint32_t _flag_k = FK_NONE; 2918 uint32_t _flag_a = 0, _flag_b = 0; 2919 uint32_t _itail_tgt = 0; 2920 RECOMP_REGS_LOCALS 2921 RECOMP_ENTER(0x470706E0u); 2922 2923 L_470706E0: 2924 MEM32(0x4710EC98) = 0x47104BD4u; /* 0x470706E0: mov dword ptr [0x4710ec98], 0x47104bd4 */ 2925 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470706EA: ret */ 2926 RECOMP_REGS_OUT(); 2927 } 2928 2929 void sub_470706F0(void) { 2930 int _fpu_cmp = 0; 2931 uint32_t _cf = 0; 2932 int _df = 1; 2933 uint32_t _flag_k = FK_NONE; 2934 uint32_t _flag_a = 0, _flag_b = 0; 2935 uint32_t _itail_tgt = 0; 2936 RECOMP_REGS_LOCALS 2937 RECOMP_ENTER(0x470706F0u); 2938 2939 L_470706F0: 2940 MEM32(0x4710EC90) = 0x471050FCu; /* 0x470706F0: mov dword ptr [0x4710ec90], 0x471050fc */ 2941 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470706FA: ret */ 2942 RECOMP_REGS_OUT(); 2943 } 2944 2945 void sub_47070700(void) { 2946 int _fpu_cmp = 0; 2947 uint32_t _cf = 0; 2948 int _df = 1; 2949 uint32_t _flag_k = FK_NONE; 2950 uint32_t _flag_a = 0, _flag_b = 0; 2951 uint32_t _itail_tgt = 0; 2952 RECOMP_REGS_LOCALS 2953 RECOMP_ENTER(0x47070700u); 2954 2955 L_47070700: 2956 MEM32(0x4710EC94) = 0x471053F0u; /* 0x47070700: mov dword ptr [0x4710ec94], 0x471053f0 */ 2957 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4707070A: ret */ 2958 RECOMP_REGS_OUT(); 2959 } 2960 2961 void sub_47070710(void) { 2962 int _fpu_cmp = 0; 2963 uint32_t _cf = 0; 2964 int _df = 1; 2965 uint32_t _flag_k = FK_NONE; 2966 uint32_t _flag_a = 0, _flag_b = 0; 2967 uint32_t _itail_tgt = 0; 2968 RECOMP_REGS_LOCALS 2969 RECOMP_ENTER(0x47070710u); 2970 2971 L_47070710: 2972 edx = MEM32(esp + 0x4); /* 0x47070710: mov edx, dword ptr [esp + 4] */ 2973 eax = ecx; /* 0x47070714: mov eax, ecx */ 2974 PUSH32(esp, esi); /* 0x47070716: push esi */ 2975 PUSH32(esp, edi); /* 0x47070717: push edi */ 2976 esi = edx; /* 0x47070718: mov esi, edx */ 2977 ecx = 0x5Au; /* 0x4707071A: mov ecx, 0x5a */ 2978 edi = eax; /* 0x4707071F: mov edi, eax */ 2979 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47070721: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 2980 ecx = MEM32(edx + 0x168); /* 0x47070723: mov ecx, dword ptr [edx + 0x168] */ 2981 MEM32(eax + 0x168) = ecx; /* 0x47070729: mov dword ptr [eax + 0x168], ecx */ 2982 ecx = MEM32(edx + 0x16C); /* 0x4707072F: mov ecx, dword ptr [edx + 0x16c] */ 2983 MEM32(eax + 0x16C) = ecx; /* 0x47070735: mov dword ptr [eax + 0x16c], ecx */ 2984 ecx = MEM32(edx + 0x170); /* 0x4707073B: mov ecx, dword ptr [edx + 0x170] */ 2985 MEM32(eax + 0x170) = ecx; /* 0x47070741: mov dword ptr [eax + 0x170], ecx */ 2986 ecx = MEM32(edx + 0x174); /* 0x47070747: mov ecx, dword ptr [edx + 0x174] */ 2987 MEM32(eax + 0x174) = ecx; /* 0x4707074D: mov dword ptr [eax + 0x174], ecx */ 2988 ecx = MEM32(edx + 0x178); /* 0x47070753: mov ecx, dword ptr [edx + 0x178] */ 2989 MEM32(eax + 0x178) = ecx; /* 0x47070759: mov dword ptr [eax + 0x178], ecx */ 2990 edx = MEM32(edx + 0x17C); /* 0x4707075F: mov edx, dword ptr [edx + 0x17c] */ 2991 edi = POP32_VAL(esp); /* 0x47070765: pop edi */ 2992 MEM32(eax + 0x17C) = edx; /* 0x47070766: mov dword ptr [eax + 0x17c], edx */ 2993 esi = POP32_VAL(esp); /* 0x4707076C: pop esi */ 2994 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4707076D: ret 4 */ 2995 RECOMP_REGS_OUT(); 2996 } 2997 2998 void sub_47070770(void) { 2999 int _fpu_cmp = 0; 3000 uint32_t _cf = 0; 3001 int _df = 1; 3002 uint32_t _flag_k = FK_NONE; 3003 uint32_t _flag_a = 0, _flag_b = 0; 3004 uint32_t _itail_tgt = 0; 3005 RECOMP_REGS_LOCALS 3006 RECOMP_ENTER(0x47070770u); 3007 3008 L_47070770: 3009 PUSH32(esp, esi); /* 0x47070770: push esi */ 3010 esi = MEM32(esp + 0x8); /* 0x47070771: mov esi, dword ptr [esp + 8] */ 3011 PUSH32(esp, edi); /* 0x47070775: push edi */ 3012 eax = ecx; /* 0x47070776: mov eax, ecx */ 3013 ecx = 0x60u; /* 0x47070778: mov ecx, 0x60 */ 3014 edi = eax; /* 0x4707077D: mov edi, eax */ 3015 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4707077F: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3016 edi = POP32_VAL(esp); /* 0x47070781: pop edi */ 3017 esi = POP32_VAL(esp); /* 0x47070782: pop esi */ 3018 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070783: ret 4 */ 3019 RECOMP_REGS_OUT(); 3020 } 3021 3022 void sub_47070790(void) { 3023 int _fpu_cmp = 0; 3024 uint32_t _cf = 0; 3025 int _df = 1; 3026 uint32_t _flag_k = FK_NONE; 3027 uint32_t _flag_a = 0, _flag_b = 0; 3028 uint32_t _itail_tgt = 0; 3029 RECOMP_REGS_LOCALS 3030 RECOMP_ENTER(0x47070790u); 3031 3032 L_47070790: 3033 eax = MEM32(ecx); /* 0x47070790: mov eax, dword ptr [ecx] */ 3034 PUSH32(esp, eax); /* 0x47070792: push eax */ 3035 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47070793: call dword ptr [0x470ac4b0] */ 3036 RECOMP_FLAGS_IN(); 3037 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070799: ret */ 3038 RECOMP_REGS_OUT(); 3039 } 3040 3041 void sub_470707A0(void) { 3042 int _fpu_cmp = 0; 3043 uint32_t _cf = 0; 3044 int _df = 1; 3045 uint32_t _flag_k = FK_NONE; 3046 uint32_t _flag_a = 0, _flag_b = 0; 3047 uint32_t _itail_tgt = 0; 3048 RECOMP_REGS_LOCALS 3049 RECOMP_ENTER(0x470707A0u); 3050 3051 L_470707A0: 3052 eax = MEM32(ecx + 0x4); /* 0x470707A0: mov eax, dword ptr [ecx + 4] */ 3053 PUSH32(esp, eax); /* 0x470707A3: push eax */ 3054 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x470707A4: call dword ptr [0x470ac4b0] */ 3055 RECOMP_FLAGS_IN(); 3056 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470707AA: ret */ 3057 RECOMP_REGS_OUT(); 3058 } 3059 3060 void sub_470707B0(void) { 3061 int _fpu_cmp = 0; 3062 uint32_t _cf = 0; 3063 int _df = 1; 3064 uint32_t _flag_k = FK_NONE; 3065 uint32_t _flag_a = 0, _flag_b = 0; 3066 uint32_t _itail_tgt = 0; 3067 RECOMP_REGS_LOCALS 3068 RECOMP_ENTER(0x470707B0u); 3069 3070 L_470707B0: 3071 eax = MEM32(ecx + 0x8); /* 0x470707B0: mov eax, dword ptr [ecx + 8] */ 3072 PUSH32(esp, eax); /* 0x470707B3: push eax */ 3073 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x470707B4: call dword ptr [0x470ac4b0] */ 3074 RECOMP_FLAGS_IN(); 3075 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470707BA: ret */ 3076 RECOMP_REGS_OUT(); 3077 } 3078 3079 void sub_470707C0(void) { 3080 int _fpu_cmp = 0; 3081 uint32_t _cf = 0; 3082 int _df = 1; 3083 uint32_t _flag_k = FK_NONE; 3084 uint32_t _flag_a = 0, _flag_b = 0; 3085 uint32_t _itail_tgt = 0; 3086 RECOMP_REGS_LOCALS 3087 RECOMP_ENTER(0x470707C0u); 3088 3089 L_470707C0: 3090 eax = MEM32(ecx + 0xC); /* 0x470707C0: mov eax, dword ptr [ecx + 0xc] */ 3091 PUSH32(esp, eax); /* 0x470707C3: push eax */ 3092 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x470707C4: call dword ptr [0x470ac4b0] */ 3093 RECOMP_FLAGS_IN(); 3094 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470707CA: ret */ 3095 RECOMP_REGS_OUT(); 3096 } 3097 3098 void sub_470707D0(void) { 3099 int _fpu_cmp = 0; 3100 uint32_t _cf = 0; 3101 int _df = 1; 3102 uint32_t _flag_k = FK_NONE; 3103 uint32_t _flag_a = 0, _flag_b = 0; 3104 uint32_t _itail_tgt = 0; 3105 RECOMP_REGS_LOCALS 3106 RECOMP_ENTER(0x470707D0u); 3107 3108 L_470707D0: 3109 eax = MEM32(esp + 0x4); /* 0x470707D0: mov eax, dword ptr [esp + 4] */ 3110 PUSH32(esp, esi); /* 0x470707D4: push esi */ 3111 PUSH32(esp, eax); /* 0x470707D5: push eax */ 3112 esi = ecx; /* 0x470707D6: mov esi, ecx */ 3113 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x470707D8: call dword ptr [0x470ac4ac] */ 3114 RECOMP_FLAGS_IN(); 3115 MEM32(esi + 0xC) = eax; /* 0x470707DE: mov dword ptr [esi + 0xc], eax */ 3116 esi = POP32_VAL(esp); /* 0x470707E1: pop esi */ 3117 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470707E2: ret 4 */ 3118 RECOMP_REGS_OUT(); 3119 } 3120 3121 void sub_470707F0(void) { 3122 int _fpu_cmp = 0; 3123 uint32_t _cf = 0; 3124 int _df = 1; 3125 uint32_t _flag_k = FK_NONE; 3126 uint32_t _flag_a = 0, _flag_b = 0; 3127 uint32_t _itail_tgt = 0; 3128 RECOMP_REGS_LOCALS 3129 RECOMP_ENTER(0x470707F0u); 3130 3131 L_470707F0: 3132 eax = MEM32(esp + 0x4); /* 0x470707F0: mov eax, dword ptr [esp + 4] */ 3133 PUSH32(esp, esi); /* 0x470707F4: push esi */ 3134 PUSH32(esp, eax); /* 0x470707F5: push eax */ 3135 esi = ecx; /* 0x470707F6: mov esi, ecx */ 3136 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x470707F8: call dword ptr [0x470ac4ac] */ 3137 RECOMP_FLAGS_IN(); 3138 MEM32(esi + 0x10) = eax; /* 0x470707FE: mov dword ptr [esi + 0x10], eax */ 3139 esi = POP32_VAL(esp); /* 0x47070801: pop esi */ 3140 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070802: ret 4 */ 3141 RECOMP_REGS_OUT(); 3142 } 3143 3144 void sub_47070810(void) { 3145 int _fpu_cmp = 0; 3146 uint32_t _cf = 0; 3147 int _df = 1; 3148 uint32_t _flag_k = FK_NONE; 3149 uint32_t _flag_a = 0, _flag_b = 0; 3150 uint32_t _itail_tgt = 0; 3151 RECOMP_REGS_LOCALS 3152 RECOMP_ENTER(0x47070810u); 3153 3154 L_47070810: 3155 eax = MEM32(ecx + 0x14); /* 0x47070810: mov eax, dword ptr [ecx + 0x14] */ 3156 PUSH32(esp, eax); /* 0x47070813: push eax */ 3157 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x47070814: call dword ptr [0x470ac4b0] */ 3158 RECOMP_FLAGS_IN(); 3159 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4707081A: ret */ 3160 RECOMP_REGS_OUT(); 3161 } 3162 3163 void sub_47070820(void) { 3164 int _fpu_cmp = 0; 3165 uint32_t _cf = 0; 3166 int _df = 1; 3167 uint32_t _flag_k = FK_NONE; 3168 uint32_t _flag_a = 0, _flag_b = 0; 3169 uint32_t _itail_tgt = 0; 3170 RECOMP_REGS_LOCALS 3171 RECOMP_ENTER(0x47070820u); 3172 3173 L_47070820: 3174 eax = MEM32(esp + 0x4); /* 0x47070820: mov eax, dword ptr [esp + 4] */ 3175 PUSH32(esp, esi); /* 0x47070824: push esi */ 3176 PUSH32(esp, eax); /* 0x47070825: push eax */ 3177 esi = ecx; /* 0x47070826: mov esi, ecx */ 3178 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47070828: call dword ptr [0x470ac4ac] */ 3179 RECOMP_FLAGS_IN(); 3180 MEM32(esi + 0x14) = eax; /* 0x4707082E: mov dword ptr [esi + 0x14], eax */ 3181 esi = POP32_VAL(esp); /* 0x47070831: pop esi */ 3182 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070832: ret 4 */ 3183 RECOMP_REGS_OUT(); 3184 } 3185 3186 void sub_47070840(void) { 3187 int _fpu_cmp = 0; 3188 uint32_t _cf = 0; 3189 int _df = 1; 3190 uint32_t _flag_k = FK_NONE; 3191 uint32_t _flag_a = 0, _flag_b = 0; 3192 uint32_t _itail_tgt = 0; 3193 RECOMP_REGS_LOCALS 3194 RECOMP_ENTER(0x47070840u); 3195 3196 L_47070840: 3197 eax = ecx + 0x170; /* 0x47070840: lea eax, [ecx + 0x170] */ 3198 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070846: ret */ 3199 RECOMP_REGS_OUT(); 3200 } 3201 3202 void sub_47070850(void) { 3203 int _fpu_cmp = 0; 3204 uint32_t _cf = 0; 3205 int _df = 1; 3206 uint32_t _flag_k = FK_NONE; 3207 uint32_t _flag_a = 0, _flag_b = 0; 3208 uint32_t _itail_tgt = 0; 3209 RECOMP_REGS_LOCALS 3210 RECOMP_ENTER(0x47070850u); 3211 3212 L_47070850: 3213 PUSH32(esp, esi); /* 0x47070850: push esi */ 3214 PUSH32(esp, edi); /* 0x47070851: push edi */ 3215 edi = MEM32(esp + 0xC); /* 0x47070852: mov edi, dword ptr [esp + 0xc] */ 3216 esi = ecx; /* 0x47070856: mov esi, ecx */ 3217 PUSH32(esp, 2); /* 0x47070858: push 2 */ 3218 ecx = edi; /* 0x4707085A: mov ecx, edi */ 3219 RECOMP_ICALL(0x47088190u); /* 0x4707085C: call 0x47088190 */ /* not lifted */ 3220 RECOMP_FLAGS_IN(); 3221 /* cmp eax, 1 */ /* 0x47070861: cmp eax, 1 */ 3222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3224 _flag_k = FK_CMP; 3225 MEM32(esi + 0x18) = eax; /* 0x47070864: mov dword ptr [esi + 0x18], eax */ 3226 if (CMP_NE(_flag_a, _flag_b)) goto L_47070887; /* 0x47070867: jne 0x47070887 */ 3227 L_47070869: 3228 ecx = edi; /* 0x47070869: mov ecx, edi */ 3229 RECOMP_ICALL(0x470881B0u); /* 0x4707086B: call 0x470881b0 */ /* not lifted */ 3230 RECOMP_FLAGS_IN(); 3231 eax = MEM32(eax + 0x4); /* 0x47070870: mov eax, dword ptr [eax + 4] */ 3232 ecx = edi; /* 0x47070873: mov ecx, edi */ 3233 MEM32(esi + 0x20) = eax; /* 0x47070875: mov dword ptr [esi + 0x20], eax */ 3234 RECOMP_ICALL(0x470881B0u); /* 0x47070878: call 0x470881b0 */ /* not lifted */ 3235 RECOMP_FLAGS_IN(); 3236 ecx = MEM32(eax); /* 0x4707087D: mov ecx, dword ptr [eax] */ 3237 edi = POP32_VAL(esp); /* 0x4707087F: pop edi */ 3238 MEM32(esi + 0x1C) = ecx; /* 0x47070880: mov dword ptr [esi + 0x1c], ecx */ 3239 esi = POP32_VAL(esp); /* 0x47070883: pop esi */ 3240 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070884: ret 4 */ 3241 L_47070887: 3242 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3243 eax = 0; /* 0x47070887: xor eax, eax */ 3244 _cf = 0; 3245 _flag_k = FK_TEST; 3246 edi = POP32_VAL(esp); /* 0x47070889: pop edi */ 3247 MEM32(esi + 0x20) = eax; /* 0x4707088A: mov dword ptr [esi + 0x20], eax */ 3248 MEM32(esi + 0x1C) = eax; /* 0x4707088D: mov dword ptr [esi + 0x1c], eax */ 3249 esi = POP32_VAL(esp); /* 0x47070890: pop esi */ 3250 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070891: ret 4 */ 3251 RECOMP_REGS_OUT(); 3252 } 3253 3254 void sub_470708A0(void) { 3255 int _fpu_cmp = 0; 3256 uint32_t _cf = 0; 3257 int _df = 1; 3258 uint32_t _flag_k = FK_NONE; 3259 uint32_t _flag_a = 0, _flag_b = 0; 3260 uint32_t _itail_tgt = 0; 3261 RECOMP_REGS_LOCALS 3262 RECOMP_ENTER(0x470708A0u); 3263 3264 L_470708A0: 3265 eax = MEM32(ecx + 0x168); /* 0x470708A0: mov eax, dword ptr [ecx + 0x168] */ 3266 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470708A6: ret */ 3267 RECOMP_REGS_OUT(); 3268 } 3269 3270 void sub_470708B0(void) { 3271 int _fpu_cmp = 0; 3272 uint32_t _cf = 0; 3273 int _df = 1; 3274 uint32_t _flag_k = FK_NONE; 3275 uint32_t _flag_a = 0, _flag_b = 0; 3276 uint32_t _itail_tgt = 0; 3277 RECOMP_REGS_LOCALS 3278 RECOMP_ENTER(0x470708B0u); 3279 3280 L_470708B0: 3281 PUSH32(esp, ebx); /* 0x470708B0: push ebx */ 3282 ebx = ecx; /* 0x470708B1: mov ebx, ecx */ 3283 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3284 ecx = ecx | 0xFFFFFFFFu; /* 0x470708B3: or ecx, 0xffffffff */ 3285 _cf = 0; 3286 _flag_k = FK_TEST; 3287 PUSH32(esp, ebp); /* 0x470708B6: push ebp */ 3288 PUSH32(esp, esi); /* 0x470708B7: push esi */ 3289 esi = MEM32(esp + 0x10); /* 0x470708B8: mov esi, dword ptr [esp + 0x10] */ 3290 PUSH32(esp, edi); /* 0x470708BC: push edi */ 3291 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3292 eax = 0; /* 0x470708BD: xor eax, eax */ 3293 _cf = 0; 3294 _flag_k = FK_TEST; 3295 edi = esi; /* 0x470708BF: mov edi, esi */ 3296 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470708C1: repne scasb al, byte ptr es:[edi] */ 3297 edi = MEM32(esp + 0x18); /* 0x470708C3: mov edi, dword ptr [esp + 0x18] */ 3298 ecx = ~ecx; /* 0x470708C7: not ecx */ 3299 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3300 ecx = ecx - 1; /* 0x470708C9: dec ecx */ 3301 _flag_k = FK_DEC; 3302 edx = ecx; /* 0x470708CA: mov edx, ecx */ 3303 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3304 ecx = ecx | 0xFFFFFFFFu; /* 0x470708CC: or ecx, 0xffffffff */ 3305 _cf = 0; 3306 _flag_k = FK_TEST; 3307 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3308 edx = edx + 1; /* 0x470708CF: inc edx */ 3309 _flag_k = FK_INC; 3310 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x470708D0: repne scasb al, byte ptr es:[edi] */ 3311 ecx = ~ecx; /* 0x470708D2: not ecx */ 3312 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3313 ecx = ecx - 1; /* 0x470708D4: dec ecx */ 3314 _flag_k = FK_DEC; 3315 eax = ecx; /* 0x470708D5: mov eax, ecx */ 3316 ecx = ebx + 0x28; /* 0x470708D7: lea ecx, [ebx + 0x28] */ 3317 MEM32(ebx + 0x168) = ecx; /* 0x470708DA: mov dword ptr [ebx + 0x168], ecx */ 3318 ecx = ecx + edx + 0x1; /* 0x470708E0: lea ecx, [ecx + edx + 1] */ 3319 MEM32(ebx + 0x16C) = ecx; /* 0x470708E4: mov dword ptr [ebx + 0x16c], ecx */ 3320 MEM8(ecx + (-0x1)) = (uint8_t)(0x3Au); /* 0x470708EA: mov byte ptr [ecx - 1], 0x3a */ 3321 edi = MEM32(ebx + 0x168); /* 0x470708EE: mov edi, dword ptr [ebx + 0x168] */ 3322 ecx = edx; /* 0x470708F4: mov ecx, edx */ 3323 ebp = ecx; /* 0x470708F6: mov ebp, ecx */ 3324 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470708F8: shr ecx, 2 */ 3325 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3326 ecx = ecx >> 2u; /* 0x470708F8: shr ecx, 2 */ 3327 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470708FB: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3328 ecx = ebp; /* 0x470708FD: mov ecx, ebp */ 3329 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3330 ecx = ecx & 3; /* 0x470708FF: and ecx, 3 */ 3331 _cf = 0; 3332 _flag_k = FK_TEST; 3333 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47070902: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3334 edi = MEM32(ebx + 0x16C); /* 0x47070904: mov edi, dword ptr [ebx + 0x16c] */ 3335 esi = MEM32(esp + 0x18); /* 0x4707090A: mov esi, dword ptr [esp + 0x18] */ 3336 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3337 eax = eax + 1; /* 0x4707090E: inc eax */ 3338 _flag_k = FK_INC; 3339 ecx = eax; /* 0x4707090F: mov ecx, eax */ 3340 ebp = ecx; /* 0x47070911: mov ebp, ecx */ 3341 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47070913: shr ecx, 2 */ 3342 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3343 ecx = ecx >> 2u; /* 0x47070913: shr ecx, 2 */ 3344 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47070916: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3345 ecx = ebp; /* 0x47070918: mov ecx, ebp */ 3346 eax = eax + edx + 0x29; /* 0x4707091A: lea eax, [eax + edx + 0x29] */ 3347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3348 ecx = ecx & 3; /* 0x4707091E: and ecx, 3 */ 3349 _cf = 0; 3350 _flag_k = FK_TEST; 3351 PUSH32(esp, eax); /* 0x47070921: push eax */ 3352 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47070922: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 3353 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47070924: call dword ptr [0x470ac4ac] */ 3354 RECOMP_FLAGS_IN(); 3355 edi = POP32_VAL(esp); /* 0x4707092A: pop edi */ 3356 esi = POP32_VAL(esp); /* 0x4707092B: pop esi */ 3357 ebp = POP32_VAL(esp); /* 0x4707092C: pop ebp */ 3358 MEM32(ebx) = eax; /* 0x4707092D: mov dword ptr [ebx], eax */ 3359 ebx = POP32_VAL(esp); /* 0x4707092F: pop ebx */ 3360 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47070930: ret 8 */ 3361 RECOMP_REGS_OUT(); 3362 } 3363 3364 void sub_47070940(void) { 3365 int _fpu_cmp = 0; 3366 uint32_t _cf = 0; 3367 int _df = 1; 3368 uint32_t _flag_k = FK_NONE; 3369 uint32_t _flag_a = 0, _flag_b = 0; 3370 uint32_t _itail_tgt = 0; 3371 RECOMP_REGS_LOCALS 3372 RECOMP_ENTER(0x47070940u); 3373 3374 L_47070940: 3375 eax = MEM32(ecx + 0x16C); /* 0x47070940: mov eax, dword ptr [ecx + 0x16c] */ 3376 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070946: ret */ 3377 RECOMP_REGS_OUT(); 3378 } 3379 3380 void sub_47070950(void) { 3381 int _fpu_cmp = 0; 3382 uint32_t _cf = 0; 3383 int _df = 1; 3384 uint32_t _flag_k = FK_NONE; 3385 uint32_t _flag_a = 0, _flag_b = 0; 3386 uint32_t _itail_tgt = 0; 3387 RECOMP_REGS_LOCALS 3388 RECOMP_ENTER(0x47070950u); 3389 3390 L_47070950: 3391 eax = MEM32(esp + 0x4); /* 0x47070950: mov eax, dword ptr [esp + 4] */ 3392 PUSH32(esp, esi); /* 0x47070954: push esi */ 3393 PUSH32(esp, eax); /* 0x47070955: push eax */ 3394 esi = ecx; /* 0x47070956: mov esi, ecx */ 3395 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47070958: call dword ptr [0x470ac4ac] */ 3396 RECOMP_FLAGS_IN(); 3397 MEM32(esi) = eax; /* 0x4707095E: mov dword ptr [esi], eax */ 3398 esi = POP32_VAL(esp); /* 0x47070960: pop esi */ 3399 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070961: ret 4 */ 3400 RECOMP_REGS_OUT(); 3401 } 3402 3403 void sub_47070970(void) { 3404 int _fpu_cmp = 0; 3405 uint32_t _cf = 0; 3406 int _df = 1; 3407 uint32_t _flag_k = FK_NONE; 3408 uint32_t _flag_a = 0, _flag_b = 0; 3409 uint32_t _itail_tgt = 0; 3410 RECOMP_REGS_LOCALS 3411 RECOMP_ENTER(0x47070970u); 3412 3413 L_47070970: 3414 eax = MEM32(esp + 0x4); /* 0x47070970: mov eax, dword ptr [esp + 4] */ 3415 PUSH32(esp, esi); /* 0x47070974: push esi */ 3416 PUSH32(esp, eax); /* 0x47070975: push eax */ 3417 esi = ecx; /* 0x47070976: mov esi, ecx */ 3418 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47070978: call dword ptr [0x470ac4ac] */ 3419 RECOMP_FLAGS_IN(); 3420 MEM32(esi + 0x4) = eax; /* 0x4707097E: mov dword ptr [esi + 4], eax */ 3421 esi = POP32_VAL(esp); /* 0x47070981: pop esi */ 3422 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070982: ret 4 */ 3423 RECOMP_REGS_OUT(); 3424 } 3425 3426 void sub_47070990(void) { 3427 int _fpu_cmp = 0; 3428 uint32_t _cf = 0; 3429 int _df = 1; 3430 uint32_t _flag_k = FK_NONE; 3431 uint32_t _flag_a = 0, _flag_b = 0; 3432 uint32_t _itail_tgt = 0; 3433 RECOMP_REGS_LOCALS 3434 RECOMP_ENTER(0x47070990u); 3435 3436 L_47070990: 3437 eax = MEM32(esp + 0x4); /* 0x47070990: mov eax, dword ptr [esp + 4] */ 3438 PUSH32(esp, esi); /* 0x47070994: push esi */ 3439 PUSH32(esp, eax); /* 0x47070995: push eax */ 3440 esi = ecx; /* 0x47070996: mov esi, ecx */ 3441 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47070998: call dword ptr [0x470ac4ac] */ 3442 RECOMP_FLAGS_IN(); 3443 MEM32(esi + 0x8) = eax; /* 0x4707099E: mov dword ptr [esi + 8], eax */ 3444 esi = POP32_VAL(esp); /* 0x470709A1: pop esi */ 3445 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470709A2: ret 4 */ 3446 RECOMP_REGS_OUT(); 3447 } 3448 3449 void sub_470709B0(void) { 3450 int _fpu_cmp = 0; 3451 uint32_t _cf = 0; 3452 int _df = 1; 3453 uint32_t _flag_k = FK_NONE; 3454 uint32_t _flag_a = 0, _flag_b = 0; 3455 uint32_t _itail_tgt = 0; 3456 RECOMP_REGS_LOCALS 3457 RECOMP_ENTER(0x470709B0u); 3458 3459 L_470709B0: 3460 PUSH32(esp, esi); /* 0x470709B0: push esi */ 3461 PUSH32(esp, edi); /* 0x470709B1: push edi */ 3462 edi = MEM32(esp + 0xC); /* 0x470709B2: mov edi, dword ptr [esp + 0xc] */ 3463 esi = ecx; /* 0x470709B6: mov esi, ecx */ 3464 PUSH32(esp, edi); /* 0x470709B8: push edi */ 3465 RECOMP_ICALL(0x470378F0u); /* 0x470709B9: call 0x470378f0 */ /* not lifted */ 3466 RECOMP_FLAGS_IN(); 3467 eax = MEM32(edi + 0x40); /* 0x470709BE: mov eax, dword ptr [edi + 0x40] */ 3468 MEM32(esi + 0x40) = eax; /* 0x470709C1: mov dword ptr [esi + 0x40], eax */ 3469 edi = POP32_VAL(esp); /* 0x470709C4: pop edi */ 3470 MEM32(esi) = 0x470AEBE8u; /* 0x470709C5: mov dword ptr [esi], 0x470aebe8 */ 3471 eax = esi; /* 0x470709CB: mov eax, esi */ 3472 esi = POP32_VAL(esp); /* 0x470709CD: pop esi */ 3473 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470709CE: ret 4 */ 3474 RECOMP_REGS_OUT(); 3475 } 3476 3477 void sub_470709E0(void) { 3478 int _fpu_cmp = 0; 3479 uint32_t _cf = 0; 3480 int _df = 1; 3481 uint32_t _flag_k = FK_NONE; 3482 uint32_t _flag_a = 0, _flag_b = 0; 3483 uint32_t _itail_tgt = 0; 3484 RECOMP_REGS_LOCALS 3485 RECOMP_ENTER(0x470709E0u); 3486 3487 L_470709E0: 3488 PUSH32(esp, ebx); /* 0x470709E0: push ebx */ 3489 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470709E1: mov bl, byte ptr [esp + 8] */ 3490 /* test LO8(ebx), 2 */ /* 0x470709E5: test bl, 2 */ 3491 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3492 _cf = 0; 3493 _flag_k = FK_NARROW(FK_TEST, 24); 3494 PUSH32(esp, esi); /* 0x470709E8: push esi */ 3495 esi = ecx; /* 0x470709E9: mov esi, ecx */ 3496 if (TEST_Z(_flag_a, _flag_b)) goto L_47070A18; /* 0x470709EB: je 0x47070a18 */ 3497 L_470709ED: 3498 eax = MEM32(esi + (-0x4)); /* 0x470709ED: mov eax, dword ptr [esi - 4] */ 3499 PUSH32(esp, edi); /* 0x470709F0: push edi */ 3500 PUSH32(esp, 0x47071620u); /* 0x470709F1: push 0x47071620 */ 3501 edi = esi + (-0x4); /* 0x470709F6: lea edi, [esi - 4] */ 3502 PUSH32(esp, eax); /* 0x470709F9: push eax */ 3503 PUSH32(esp, 0x44u); /* 0x470709FA: push 0x44 */ 3504 PUSH32(esp, esi); /* 0x470709FC: push esi */ 3505 RECOMP_ICALL(0x470A32EBu); /* 0x470709FD: call 0x470a32eb */ /* not lifted */ 3506 RECOMP_FLAGS_IN(); 3507 /* test LO8(ebx), 1 */ /* 0x47070A02: test bl, 1 */ 3508 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3509 _cf = 0; 3510 _flag_k = FK_NARROW(FK_TEST, 24); 3511 if (TEST_Z(_flag_a, _flag_b)) goto L_47070A10; /* 0x47070A05: je 0x47070a10 */ 3512 L_47070A07: 3513 PUSH32(esp, edi); /* 0x47070A07: push edi */ 3514 RECOMP_ICALL(0x470A32A2u); /* 0x47070A08: call 0x470a32a2 */ /* not lifted */ 3515 RECOMP_FLAGS_IN(); 3516 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3517 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3518 esp = esp + 4; /* 0x47070A0D: add esp, 4 */ 3519 _flag_k = FK_ADD; 3520 L_47070A10: 3521 eax = edi; /* 0x47070A10: mov eax, edi */ 3522 edi = POP32_VAL(esp); /* 0x47070A12: pop edi */ 3523 esi = POP32_VAL(esp); /* 0x47070A13: pop esi */ 3524 ebx = POP32_VAL(esp); /* 0x47070A14: pop ebx */ 3525 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070A15: ret 4 */ 3526 L_47070A18: 3527 ecx = esi; /* 0x47070A18: mov ecx, esi */ 3528 RECOMP_ICALL(0x47071620u); /* 0x47070A1A: call 0x47071620 */ /* not lifted */ 3529 RECOMP_FLAGS_IN(); 3530 /* test LO8(ebx), 1 */ /* 0x47070A1F: test bl, 1 */ 3531 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3532 _cf = 0; 3533 _flag_k = FK_NARROW(FK_TEST, 24); 3534 if (TEST_Z(_flag_a, _flag_b)) goto L_47070A2D; /* 0x47070A22: je 0x47070a2d */ 3535 L_47070A24: 3536 PUSH32(esp, esi); /* 0x47070A24: push esi */ 3537 RECOMP_ICALL(0x470A32A2u); /* 0x47070A25: call 0x470a32a2 */ /* not lifted */ 3538 RECOMP_FLAGS_IN(); 3539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3541 esp = esp + 4; /* 0x47070A2A: add esp, 4 */ 3542 _flag_k = FK_ADD; 3543 L_47070A2D: 3544 eax = esi; /* 0x47070A2D: mov eax, esi */ 3545 esi = POP32_VAL(esp); /* 0x47070A2F: pop esi */ 3546 ebx = POP32_VAL(esp); /* 0x47070A30: pop ebx */ 3547 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070A31: ret 4 */ 3548 RECOMP_REGS_OUT(); 3549 } 3550 3551 void sub_47070A40(void) { 3552 int _fpu_cmp = 0; 3553 uint32_t _cf = 0; 3554 int _df = 1; 3555 uint32_t _flag_k = FK_NONE; 3556 uint32_t _flag_a = 0, _flag_b = 0; 3557 uint32_t _itail_tgt = 0; 3558 RECOMP_REGS_LOCALS 3559 RECOMP_ENTER(0x47070A40u); 3560 3561 L_47070A40: 3562 PUSH32(esp, esi); /* 0x47070A40: push esi */ 3563 PUSH32(esp, edi); /* 0x47070A41: push edi */ 3564 edi = MEM32(esp + 0xC); /* 0x47070A42: mov edi, dword ptr [esp + 0xc] */ 3565 esi = ecx; /* 0x47070A46: mov esi, ecx */ 3566 PUSH32(esp, edi); /* 0x47070A48: push edi */ 3567 RECOMP_ICALL(0x470378F0u); /* 0x47070A49: call 0x470378f0 */ /* not lifted */ 3568 RECOMP_FLAGS_IN(); 3569 eax = MEM32(edi + 0x40); /* 0x47070A4E: mov eax, dword ptr [edi + 0x40] */ 3570 MEM32(esi + 0x40) = eax; /* 0x47070A51: mov dword ptr [esi + 0x40], eax */ 3571 edi = POP32_VAL(esp); /* 0x47070A54: pop edi */ 3572 MEM32(esi) = 0x470AEC38u; /* 0x47070A55: mov dword ptr [esi], 0x470aec38 */ 3573 eax = esi; /* 0x47070A5B: mov eax, esi */ 3574 esi = POP32_VAL(esp); /* 0x47070A5D: pop esi */ 3575 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070A5E: ret 4 */ 3576 RECOMP_REGS_OUT(); 3577 } 3578 3579 void sub_47070A70(void) { 3580 int _fpu_cmp = 0; 3581 uint32_t _cf = 0; 3582 int _df = 1; 3583 uint32_t _flag_k = FK_NONE; 3584 uint32_t _flag_a = 0, _flag_b = 0; 3585 uint32_t _itail_tgt = 0; 3586 RECOMP_REGS_LOCALS 3587 RECOMP_ENTER(0x47070A70u); 3588 3589 goto L_47070A70; 3590 L_47037960: 3591 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */ 3592 PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */ 3593 eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */ 3594 PUSH32(esp, eax); /* 0x4703796D: push eax */ 3595 MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */ 3596 PUSH32(esp, ecx); /* 0x47037975: push ecx */ 3597 PUSH32(esp, esi); /* 0x47037976: push esi */ 3598 esi = ecx; /* 0x47037977: mov esi, ecx */ 3599 MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */ 3600 MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */ 3601 ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */ 3602 /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */ 3603 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3604 _cf = 0; 3605 _flag_k = FK_TEST; 3606 eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */ 3607 MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */ 3608 if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */ 3609 L_47037995: 3610 PUSH32(esp, eax); /* 0x47037995: push eax */ 3611 RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */ 3612 RECOMP_FLAGS_IN(); 3613 ecx = eax; /* 0x4703799B: mov ecx, eax */ 3614 RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */ 3615 RECOMP_FLAGS_IN(); 3616 L_470379A2: 3617 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 3618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3619 esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */ 3620 _flag_k = FK_ADD; 3621 MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */ 3622 MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */ 3623 PUSH32(esp, esi); /* 0x470379AF: push esi */ 3624 MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */ 3625 RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */ 3626 RECOMP_FLAGS_IN(); 3627 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3628 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3629 esp = esp + 4; /* 0x470379BD: add esp, 4 */ 3630 _flag_k = FK_ADD; 3631 ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */ 3632 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */ 3633 RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */ 3634 RECOMP_FLAGS_IN(); 3635 ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */ 3636 esi = POP32_VAL(esp); /* 0x470379D4: pop esi */ 3637 MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */ 3638 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3639 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3640 esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */ 3641 _flag_k = FK_ADD; 3642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret */ 3643 L_47070A70: 3644 MEM32(ecx) = 0x470AEBE8u; /* 0x47070A70: mov dword ptr [ecx], 0x470aebe8 */ 3645 RECOMP_BACKEDGE(); 3646 goto L_47037960; /* 0x47070A76: jmp 0x47037960 */ 3647 { RECOMP_REGS_OUT(); return; } /* end of function */ 3648 RECOMP_REGS_OUT(); 3649 } 3650 3651 void sub_47070A80(void) { 3652 int _fpu_cmp = 0; 3653 uint32_t _cf = 0; 3654 int _df = 1; 3655 uint32_t _flag_k = FK_NONE; 3656 uint32_t _flag_a = 0, _flag_b = 0; 3657 uint32_t _itail_tgt = 0; 3658 RECOMP_REGS_LOCALS 3659 RECOMP_ENTER(0x47070A80u); 3660 3661 L_47070A80: 3662 PUSH32(esp, ebx); /* 0x47070A80: push ebx */ 3663 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47070A81: mov bl, byte ptr [esp + 8] */ 3664 /* test LO8(ebx), 2 */ /* 0x47070A85: test bl, 2 */ 3665 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3666 _cf = 0; 3667 _flag_k = FK_NARROW(FK_TEST, 24); 3668 PUSH32(esp, esi); /* 0x47070A88: push esi */ 3669 esi = ecx; /* 0x47070A89: mov esi, ecx */ 3670 if (TEST_Z(_flag_a, _flag_b)) goto L_47070AB8; /* 0x47070A8B: je 0x47070ab8 */ 3671 L_47070A8D: 3672 eax = MEM32(esi + (-0x4)); /* 0x47070A8D: mov eax, dword ptr [esi - 4] */ 3673 PUSH32(esp, edi); /* 0x47070A90: push edi */ 3674 PUSH32(esp, 0x47070A70u); /* 0x47070A91: push 0x47070a70 */ 3675 edi = esi + (-0x4); /* 0x47070A96: lea edi, [esi - 4] */ 3676 PUSH32(esp, eax); /* 0x47070A99: push eax */ 3677 PUSH32(esp, 0x44u); /* 0x47070A9A: push 0x44 */ 3678 PUSH32(esp, esi); /* 0x47070A9C: push esi */ 3679 RECOMP_ICALL(0x470A32EBu); /* 0x47070A9D: call 0x470a32eb */ /* not lifted */ 3680 RECOMP_FLAGS_IN(); 3681 /* test LO8(ebx), 1 */ /* 0x47070AA2: test bl, 1 */ 3682 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3683 _cf = 0; 3684 _flag_k = FK_NARROW(FK_TEST, 24); 3685 if (TEST_Z(_flag_a, _flag_b)) goto L_47070AB0; /* 0x47070AA5: je 0x47070ab0 */ 3686 L_47070AA7: 3687 PUSH32(esp, edi); /* 0x47070AA7: push edi */ 3688 RECOMP_ICALL(0x470A32A2u); /* 0x47070AA8: call 0x470a32a2 */ /* not lifted */ 3689 RECOMP_FLAGS_IN(); 3690 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3692 esp = esp + 4; /* 0x47070AAD: add esp, 4 */ 3693 _flag_k = FK_ADD; 3694 L_47070AB0: 3695 eax = edi; /* 0x47070AB0: mov eax, edi */ 3696 edi = POP32_VAL(esp); /* 0x47070AB2: pop edi */ 3697 esi = POP32_VAL(esp); /* 0x47070AB3: pop esi */ 3698 ebx = POP32_VAL(esp); /* 0x47070AB4: pop ebx */ 3699 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070AB5: ret 4 */ 3700 L_47070AB8: 3701 ecx = esi; /* 0x47070AB8: mov ecx, esi */ 3702 RECOMP_ICALL(0x47070A70u); /* 0x47070ABA: call 0x47070a70 */ /* not lifted */ 3703 RECOMP_FLAGS_IN(); 3704 /* test LO8(ebx), 1 */ /* 0x47070ABF: test bl, 1 */ 3705 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3706 _cf = 0; 3707 _flag_k = FK_NARROW(FK_TEST, 24); 3708 if (TEST_Z(_flag_a, _flag_b)) goto L_47070ACD; /* 0x47070AC2: je 0x47070acd */ 3709 L_47070AC4: 3710 PUSH32(esp, esi); /* 0x47070AC4: push esi */ 3711 RECOMP_ICALL(0x470A32A2u); /* 0x47070AC5: call 0x470a32a2 */ /* not lifted */ 3712 RECOMP_FLAGS_IN(); 3713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3715 esp = esp + 4; /* 0x47070ACA: add esp, 4 */ 3716 _flag_k = FK_ADD; 3717 L_47070ACD: 3718 eax = esi; /* 0x47070ACD: mov eax, esi */ 3719 esi = POP32_VAL(esp); /* 0x47070ACF: pop esi */ 3720 ebx = POP32_VAL(esp); /* 0x47070AD0: pop ebx */ 3721 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070AD1: ret 4 */ 3722 RECOMP_REGS_OUT(); 3723 } 3724 3725 void sub_47070AE0(void) { 3726 int _fpu_cmp = 0; 3727 uint32_t _cf = 0; 3728 int _df = 1; 3729 uint32_t _flag_k = FK_NONE; 3730 uint32_t _flag_a = 0, _flag_b = 0; 3731 uint32_t _itail_tgt = 0; 3732 RECOMP_REGS_LOCALS 3733 RECOMP_ENTER(0x47070AE0u); 3734 3735 L_47070AE0: 3736 PUSH32(esp, esi); /* 0x47070AE0: push esi */ 3737 esi = ecx; /* 0x47070AE1: mov esi, ecx */ 3738 RECOMP_ICALL(0x47037820u); /* 0x47070AE3: call 0x47037820 */ /* not lifted */ 3739 RECOMP_FLAGS_IN(); 3740 MEM32(esi) = 0x470AEC38u; /* 0x47070AE8: mov dword ptr [esi], 0x470aec38 */ 3741 eax = esi; /* 0x47070AEE: mov eax, esi */ 3742 esi = POP32_VAL(esp); /* 0x47070AF0: pop esi */ 3743 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070AF1: ret */ 3744 RECOMP_REGS_OUT(); 3745 } 3746 3747 void sub_47070B00(void) { 3748 int _fpu_cmp = 0; 3749 uint32_t _cf = 0; 3750 int _df = 1; 3751 uint32_t _flag_k = FK_NONE; 3752 uint32_t _flag_a = 0, _flag_b = 0; 3753 uint32_t _itail_tgt = 0; 3754 RECOMP_REGS_LOCALS 3755 RECOMP_ENTER(0x47070B00u); 3756 3757 L_47070B00: 3758 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070B00: push -1 */ 3759 PUSH32(esp, 0x470A8FA8u); /* 0x47070B02: push 0x470a8fa8 */ 3760 eax = MEM32(FS_BASE + (0)); /* 0x47070B07: mov eax, dword ptr fs:[0] */ 3761 PUSH32(esp, eax); /* 0x47070B0D: push eax */ 3762 MEM32(FS_BASE + (0)) = esp; /* 0x47070B0E: mov dword ptr fs:[0], esp */ 3763 PUSH32(esp, ecx); /* 0x47070B15: push ecx */ 3764 PUSH32(esp, esi); /* 0x47070B16: push esi */ 3765 esi = ecx; /* 0x47070B17: mov esi, ecx */ 3766 MEM32(esp + 0x4) = esi; /* 0x47070B19: mov dword ptr [esp + 4], esi */ 3767 RECOMP_ICALL(0x47037820u); /* 0x47070B1D: call 0x47037820 */ /* not lifted */ 3768 RECOMP_FLAGS_IN(); 3769 ecx = MEM32(esp + 0x20); /* 0x47070B22: mov ecx, dword ptr [esp + 0x20] */ 3770 edx = MEM32(esp + 0x18); /* 0x47070B26: mov edx, dword ptr [esp + 0x18] */ 3771 eax = MEM32(esp + 0x1C); /* 0x47070B2A: mov eax, dword ptr [esp + 0x1c] */ 3772 PUSH32(esp, ecx); /* 0x47070B2E: push ecx */ 3773 PUSH32(esp, 0); /* 0x47070B2F: push 0 */ 3774 PUSH32(esp, edx); /* 0x47070B31: push edx */ 3775 ecx = esi; /* 0x47070B32: mov ecx, esi */ 3776 MEM32(esp + 0x1C) = 0; /* 0x47070B34: mov dword ptr [esp + 0x1c], 0 */ 3777 MEM32(esi) = 0x470AEC38u; /* 0x47070B3C: mov dword ptr [esi], 0x470aec38 */ 3778 MEM32(esi + 0x40) = eax; /* 0x47070B42: mov dword ptr [esi + 0x40], eax */ 3779 RECOMP_ICALL(0x470379E0u); /* 0x47070B45: call 0x470379e0 */ /* not lifted */ 3780 RECOMP_FLAGS_IN(); 3781 ecx = MEM32(esp + 0x8); /* 0x47070B4A: mov ecx, dword ptr [esp + 8] */ 3782 eax = esi; /* 0x47070B4E: mov eax, esi */ 3783 esi = POP32_VAL(esp); /* 0x47070B50: pop esi */ 3784 MEM32(FS_BASE + (0)) = ecx; /* 0x47070B51: mov dword ptr fs:[0], ecx */ 3785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3787 esp = esp + 0x10u; /* 0x47070B58: add esp, 0x10 */ 3788 _flag_k = FK_ADD; 3789 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47070B5B: ret 0xc */ 3790 RECOMP_REGS_OUT(); 3791 } 3792 3793 void sub_47070B60(void) { 3794 int _fpu_cmp = 0; 3795 uint32_t _cf = 0; 3796 int _df = 1; 3797 uint32_t _flag_k = FK_NONE; 3798 uint32_t _flag_a = 0, _flag_b = 0; 3799 uint32_t _itail_tgt = 0; 3800 RECOMP_REGS_LOCALS 3801 RECOMP_ENTER(0x47070B60u); 3802 3803 L_47070B60: 3804 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070B60: push -1 */ 3805 PUSH32(esp, 0x470A8FD3u); /* 0x47070B62: push 0x470a8fd3 */ 3806 eax = MEM32(FS_BASE + (0)); /* 0x47070B67: mov eax, dword ptr fs:[0] */ 3807 PUSH32(esp, eax); /* 0x47070B6D: push eax */ 3808 MEM32(FS_BASE + (0)) = esp; /* 0x47070B6E: mov dword ptr fs:[0], esp */ 3809 PUSH32(esp, ecx); /* 0x47070B75: push ecx */ 3810 PUSH32(esp, esi); /* 0x47070B76: push esi */ 3811 PUSH32(esp, edi); /* 0x47070B77: push edi */ 3812 PUSH32(esp, 0x44u); /* 0x47070B78: push 0x44 */ 3813 edi = ecx; /* 0x47070B7A: mov edi, ecx */ 3814 RECOMP_ICALL(0x470A33F2u); /* 0x47070B7C: call 0x470a33f2 */ /* not lifted */ 3815 RECOMP_FLAGS_IN(); 3816 esi = eax; /* 0x47070B81: mov esi, eax */ 3817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3819 esp = esp + 4; /* 0x47070B83: add esp, 4 */ 3820 _flag_k = FK_ADD; 3821 MEM32(esp + 0x8) = esi; /* 0x47070B86: mov dword ptr [esp + 8], esi */ 3822 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3823 eax = 0; /* 0x47070B8A: xor eax, eax */ 3824 _cf = 0; 3825 _flag_k = FK_TEST; 3826 /* cmp esi, eax */ /* 0x47070B8C: cmp esi, eax */ 3827 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3829 _flag_k = FK_CMP; 3830 MEM32(esp + 0x14) = eax; /* 0x47070B8E: mov dword ptr [esp + 0x14], eax */ 3831 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070BC9; /* 0x47070B92: je 0x47070bc9 */ 3832 L_47070B94: 3833 eax = MEM32(edi); /* 0x47070B94: mov eax, dword ptr [edi] */ 3834 PUSH32(esp, ebx); /* 0x47070B96: push ebx */ 3835 ebx = MEM32(edi + 0x8); /* 0x47070B97: mov ebx, dword ptr [edi + 8] */ 3836 PUSH32(esp, ebp); /* 0x47070B9A: push ebp */ 3837 ebp = MEM32(edi + 0x4); /* 0x47070B9B: mov ebp, dword ptr [edi + 4] */ 3838 ecx = edi; /* 0x47070B9E: mov ecx, edi */ 3839 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47070BA0: call dword ptr [eax + 0x34] */ 3840 RECOMP_FLAGS_IN(); 3841 ecx = esi; /* 0x47070BA3: mov ecx, esi */ 3842 edi = eax; /* 0x47070BA5: mov edi, eax */ 3843 RECOMP_ICALL(0x47037820u); /* 0x47070BA7: call 0x47037820 */ /* not lifted */ 3844 RECOMP_FLAGS_IN(); 3845 PUSH32(esp, ebx); /* 0x47070BAC: push ebx */ 3846 PUSH32(esp, 0); /* 0x47070BAD: push 0 */ 3847 PUSH32(esp, edi); /* 0x47070BAF: push edi */ 3848 ecx = esi; /* 0x47070BB0: mov ecx, esi */ 3849 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47070BB2: mov byte ptr [esp + 0x28], 1 */ 3850 MEM32(esi) = 0x470AEC38u; /* 0x47070BB7: mov dword ptr [esi], 0x470aec38 */ 3851 MEM32(esi + 0x40) = ebp; /* 0x47070BBD: mov dword ptr [esi + 0x40], ebp */ 3852 RECOMP_ICALL(0x470379E0u); /* 0x47070BC0: call 0x470379e0 */ /* not lifted */ 3853 RECOMP_FLAGS_IN(); 3854 ebp = POP32_VAL(esp); /* 0x47070BC5: pop ebp */ 3855 eax = esi; /* 0x47070BC6: mov eax, esi */ 3856 ebx = POP32_VAL(esp); /* 0x47070BC8: pop ebx */ 3857 L_47070BC9: 3858 ecx = MEM32(esp + 0xC); /* 0x47070BC9: mov ecx, dword ptr [esp + 0xc] */ 3859 edi = POP32_VAL(esp); /* 0x47070BCD: pop edi */ 3860 esi = POP32_VAL(esp); /* 0x47070BCE: pop esi */ 3861 MEM32(FS_BASE + (0)) = ecx; /* 0x47070BCF: mov dword ptr fs:[0], ecx */ 3862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3864 esp = esp + 0x10u; /* 0x47070BD6: add esp, 0x10 */ 3865 _flag_k = FK_ADD; 3866 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070BD9: ret */ 3867 RECOMP_REGS_OUT(); 3868 } 3869 3870 void sub_47070BE0(void) { 3871 int _fpu_cmp = 0; 3872 uint32_t _cf = 0; 3873 int _df = 1; 3874 uint32_t _flag_k = FK_NONE; 3875 uint32_t _flag_a = 0, _flag_b = 0; 3876 uint32_t _itail_tgt = 0; 3877 RECOMP_REGS_LOCALS 3878 RECOMP_ENTER(0x47070BE0u); 3879 3880 L_47070BE0: 3881 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070BE0: push -1 */ 3882 PUSH32(esp, 0x470A8FEBu); /* 0x47070BE2: push 0x470a8feb */ 3883 eax = MEM32(FS_BASE + (0)); /* 0x47070BE7: mov eax, dword ptr fs:[0] */ 3884 PUSH32(esp, eax); /* 0x47070BED: push eax */ 3885 MEM32(FS_BASE + (0)) = esp; /* 0x47070BEE: mov dword ptr fs:[0], esp */ 3886 PUSH32(esp, ecx); /* 0x47070BF5: push ecx */ 3887 PUSH32(esp, 0x5Cu); /* 0x47070BF6: push 0x5c */ 3888 RECOMP_ICALL(0x470A33F2u); /* 0x47070BF8: call 0x470a33f2 */ /* not lifted */ 3889 RECOMP_FLAGS_IN(); 3890 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3892 esp = esp + 4; /* 0x47070BFD: add esp, 4 */ 3893 _flag_k = FK_ADD; 3894 MEM32(esp) = eax; /* 0x47070C00: mov dword ptr [esp], eax */ 3895 /* test eax, eax */ /* 0x47070C04: test eax, eax */ 3896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3897 _cf = 0; 3898 _flag_k = FK_TEST; 3899 MEM32(esp + 0xC) = 0; /* 0x47070C06: mov dword ptr [esp + 0xc], 0 */ 3900 if (TEST_Z(_flag_a, _flag_b)) goto L_47070C2D; /* 0x47070C0E: je 0x47070c2d */ 3901 L_47070C10: 3902 ecx = MEM32(esp + 0x14); /* 0x47070C10: mov ecx, dword ptr [esp + 0x14] */ 3903 PUSH32(esp, ecx); /* 0x47070C14: push ecx */ 3904 ecx = eax; /* 0x47070C15: mov ecx, eax */ 3905 RECOMP_ICALL(0x47035DA0u); /* 0x47070C17: call 0x47035da0 */ /* not lifted */ 3906 RECOMP_FLAGS_IN(); 3907 ecx = MEM32(esp + 0x4); /* 0x47070C1C: mov ecx, dword ptr [esp + 4] */ 3908 MEM32(FS_BASE + (0)) = ecx; /* 0x47070C20: mov dword ptr fs:[0], ecx */ 3909 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3910 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3911 esp = esp + 0x10u; /* 0x47070C27: add esp, 0x10 */ 3912 _flag_k = FK_ADD; 3913 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070C2A: ret 4 */ 3914 L_47070C2D: 3915 ecx = MEM32(esp + 0x4); /* 0x47070C2D: mov ecx, dword ptr [esp + 4] */ 3916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3917 eax = 0; /* 0x47070C31: xor eax, eax */ 3918 _cf = 0; 3919 _flag_k = FK_TEST; 3920 MEM32(FS_BASE + (0)) = ecx; /* 0x47070C33: mov dword ptr fs:[0], ecx */ 3921 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3923 esp = esp + 0x10u; /* 0x47070C3A: add esp, 0x10 */ 3924 _flag_k = FK_ADD; 3925 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070C3D: ret 4 */ 3926 RECOMP_REGS_OUT(); 3927 } 3928 3929 void sub_47070C40(void) { 3930 int _fpu_cmp = 0; 3931 uint32_t _cf = 0; 3932 int _df = 1; 3933 uint32_t _flag_k = FK_NONE; 3934 uint32_t _flag_a = 0, _flag_b = 0; 3935 uint32_t _itail_tgt = 0; 3936 RECOMP_REGS_LOCALS 3937 RECOMP_ENTER(0x47070C40u); 3938 3939 L_47070C40: 3940 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070C40: push -1 */ 3941 PUSH32(esp, 0x470A9008u); /* 0x47070C42: push 0x470a9008 */ 3942 eax = MEM32(FS_BASE + (0)); /* 0x47070C47: mov eax, dword ptr fs:[0] */ 3943 PUSH32(esp, eax); /* 0x47070C4D: push eax */ 3944 MEM32(FS_BASE + (0)) = esp; /* 0x47070C4E: mov dword ptr fs:[0], esp */ 3945 PUSH32(esp, ecx); /* 0x47070C55: push ecx */ 3946 PUSH32(esp, esi); /* 0x47070C56: push esi */ 3947 esi = ecx; /* 0x47070C57: mov esi, ecx */ 3948 MEM32(esp + 0x4) = esi; /* 0x47070C59: mov dword ptr [esp + 4], esi */ 3949 RECOMP_ICALL(0x47037820u); /* 0x47070C5D: call 0x47037820 */ /* not lifted */ 3950 RECOMP_FLAGS_IN(); 3951 ecx = MEM32(esp + 0x20); /* 0x47070C62: mov ecx, dword ptr [esp + 0x20] */ 3952 edx = MEM32(esp + 0x18); /* 0x47070C66: mov edx, dword ptr [esp + 0x18] */ 3953 eax = MEM32(esp + 0x1C); /* 0x47070C6A: mov eax, dword ptr [esp + 0x1c] */ 3954 PUSH32(esp, ecx); /* 0x47070C6E: push ecx */ 3955 PUSH32(esp, 0); /* 0x47070C6F: push 0 */ 3956 PUSH32(esp, edx); /* 0x47070C71: push edx */ 3957 ecx = esi; /* 0x47070C72: mov ecx, esi */ 3958 MEM32(esp + 0x1C) = 0; /* 0x47070C74: mov dword ptr [esp + 0x1c], 0 */ 3959 MEM32(esi) = 0x470AEC88u; /* 0x47070C7C: mov dword ptr [esi], 0x470aec88 */ 3960 MEM32(esi + 0x40) = eax; /* 0x47070C82: mov dword ptr [esi + 0x40], eax */ 3961 RECOMP_ICALL(0x470379E0u); /* 0x47070C85: call 0x470379e0 */ /* not lifted */ 3962 RECOMP_FLAGS_IN(); 3963 ecx = MEM32(esp + 0x8); /* 0x47070C8A: mov ecx, dword ptr [esp + 8] */ 3964 eax = esi; /* 0x47070C8E: mov eax, esi */ 3965 esi = POP32_VAL(esp); /* 0x47070C90: pop esi */ 3966 MEM32(FS_BASE + (0)) = ecx; /* 0x47070C91: mov dword ptr fs:[0], ecx */ 3967 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3969 esp = esp + 0x10u; /* 0x47070C98: add esp, 0x10 */ 3970 _flag_k = FK_ADD; 3971 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47070C9B: ret 0xc */ 3972 RECOMP_REGS_OUT(); 3973 } 3974 3975 void sub_47070CA0(void) { 3976 int _fpu_cmp = 0; 3977 uint32_t _cf = 0; 3978 int _df = 1; 3979 uint32_t _flag_k = FK_NONE; 3980 uint32_t _flag_a = 0, _flag_b = 0; 3981 uint32_t _itail_tgt = 0; 3982 RECOMP_REGS_LOCALS 3983 RECOMP_ENTER(0x47070CA0u); 3984 3985 L_47070CA0: 3986 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070CA0: push -1 */ 3987 PUSH32(esp, 0x470A902Bu); /* 0x47070CA2: push 0x470a902b */ 3988 eax = MEM32(FS_BASE + (0)); /* 0x47070CA7: mov eax, dword ptr fs:[0] */ 3989 PUSH32(esp, eax); /* 0x47070CAD: push eax */ 3990 MEM32(FS_BASE + (0)) = esp; /* 0x47070CAE: mov dword ptr fs:[0], esp */ 3991 PUSH32(esp, ecx); /* 0x47070CB5: push ecx */ 3992 PUSH32(esp, 0x60u); /* 0x47070CB6: push 0x60 */ 3993 RECOMP_ICALL(0x470A33F2u); /* 0x47070CB8: call 0x470a33f2 */ /* not lifted */ 3994 RECOMP_FLAGS_IN(); 3995 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3997 esp = esp + 4; /* 0x47070CBD: add esp, 4 */ 3998 _flag_k = FK_ADD; 3999 MEM32(esp) = eax; /* 0x47070CC0: mov dword ptr [esp], eax */ 4000 /* test eax, eax */ /* 0x47070CC4: test eax, eax */ 4001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4002 _cf = 0; 4003 _flag_k = FK_TEST; 4004 MEM32(esp + 0xC) = 0; /* 0x47070CC6: mov dword ptr [esp + 0xc], 0 */ 4005 if (TEST_Z(_flag_a, _flag_b)) goto L_47070CED; /* 0x47070CCE: je 0x47070ced */ 4006 L_47070CD0: 4007 ecx = MEM32(esp + 0x14); /* 0x47070CD0: mov ecx, dword ptr [esp + 0x14] */ 4008 PUSH32(esp, ecx); /* 0x47070CD4: push ecx */ 4009 ecx = eax; /* 0x47070CD5: mov ecx, eax */ 4010 RECOMP_ICALL(0x47036920u); /* 0x47070CD7: call 0x47036920 */ /* not lifted */ 4011 RECOMP_FLAGS_IN(); 4012 ecx = MEM32(esp + 0x4); /* 0x47070CDC: mov ecx, dword ptr [esp + 4] */ 4013 MEM32(FS_BASE + (0)) = ecx; /* 0x47070CE0: mov dword ptr fs:[0], ecx */ 4014 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4016 esp = esp + 0x10u; /* 0x47070CE7: add esp, 0x10 */ 4017 _flag_k = FK_ADD; 4018 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070CEA: ret 4 */ 4019 L_47070CED: 4020 ecx = MEM32(esp + 0x4); /* 0x47070CED: mov ecx, dword ptr [esp + 4] */ 4021 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4022 eax = 0; /* 0x47070CF1: xor eax, eax */ 4023 _cf = 0; 4024 _flag_k = FK_TEST; 4025 MEM32(FS_BASE + (0)) = ecx; /* 0x47070CF3: mov dword ptr fs:[0], ecx */ 4026 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4028 esp = esp + 0x10u; /* 0x47070CFA: add esp, 0x10 */ 4029 _flag_k = FK_ADD; 4030 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070CFD: ret 4 */ 4031 RECOMP_REGS_OUT(); 4032 } 4033 4034 void sub_47070D00(void) { 4035 int _fpu_cmp = 0; 4036 uint32_t _cf = 0; 4037 int _df = 1; 4038 uint32_t _flag_k = FK_NONE; 4039 uint32_t _flag_a = 0, _flag_b = 0; 4040 uint32_t _itail_tgt = 0; 4041 RECOMP_REGS_LOCALS 4042 RECOMP_ENTER(0x47070D00u); 4043 4044 L_47070D00: 4045 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070D00: push -1 */ 4046 PUSH32(esp, 0x470A9053u); /* 0x47070D02: push 0x470a9053 */ 4047 eax = MEM32(FS_BASE + (0)); /* 0x47070D07: mov eax, dword ptr fs:[0] */ 4048 PUSH32(esp, eax); /* 0x47070D0D: push eax */ 4049 MEM32(FS_BASE + (0)) = esp; /* 0x47070D0E: mov dword ptr fs:[0], esp */ 4050 PUSH32(esp, ecx); /* 0x47070D15: push ecx */ 4051 PUSH32(esp, esi); /* 0x47070D16: push esi */ 4052 PUSH32(esp, edi); /* 0x47070D17: push edi */ 4053 PUSH32(esp, 0x44u); /* 0x47070D18: push 0x44 */ 4054 edi = ecx; /* 0x47070D1A: mov edi, ecx */ 4055 RECOMP_ICALL(0x470A33F2u); /* 0x47070D1C: call 0x470a33f2 */ /* not lifted */ 4056 RECOMP_FLAGS_IN(); 4057 esi = eax; /* 0x47070D21: mov esi, eax */ 4058 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4060 esp = esp + 4; /* 0x47070D23: add esp, 4 */ 4061 _flag_k = FK_ADD; 4062 MEM32(esp + 0x8) = esi; /* 0x47070D26: mov dword ptr [esp + 8], esi */ 4063 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4064 eax = 0; /* 0x47070D2A: xor eax, eax */ 4065 _cf = 0; 4066 _flag_k = FK_TEST; 4067 /* cmp esi, eax */ /* 0x47070D2C: cmp esi, eax */ 4068 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4070 _flag_k = FK_CMP; 4071 MEM32(esp + 0x14) = eax; /* 0x47070D2E: mov dword ptr [esp + 0x14], eax */ 4072 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070D69; /* 0x47070D32: je 0x47070d69 */ 4073 L_47070D34: 4074 eax = MEM32(edi); /* 0x47070D34: mov eax, dword ptr [edi] */ 4075 PUSH32(esp, ebx); /* 0x47070D36: push ebx */ 4076 ebx = MEM32(edi + 0x8); /* 0x47070D37: mov ebx, dword ptr [edi + 8] */ 4077 PUSH32(esp, ebp); /* 0x47070D3A: push ebp */ 4078 ebp = MEM32(edi + 0x4); /* 0x47070D3B: mov ebp, dword ptr [edi + 4] */ 4079 ecx = edi; /* 0x47070D3E: mov ecx, edi */ 4080 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47070D40: call dword ptr [eax + 0x34] */ 4081 RECOMP_FLAGS_IN(); 4082 ecx = esi; /* 0x47070D43: mov ecx, esi */ 4083 edi = eax; /* 0x47070D45: mov edi, eax */ 4084 RECOMP_ICALL(0x47037820u); /* 0x47070D47: call 0x47037820 */ /* not lifted */ 4085 RECOMP_FLAGS_IN(); 4086 PUSH32(esp, ebx); /* 0x47070D4C: push ebx */ 4087 PUSH32(esp, 0); /* 0x47070D4D: push 0 */ 4088 PUSH32(esp, edi); /* 0x47070D4F: push edi */ 4089 ecx = esi; /* 0x47070D50: mov ecx, esi */ 4090 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47070D52: mov byte ptr [esp + 0x28], 1 */ 4091 MEM32(esi) = 0x470AEC88u; /* 0x47070D57: mov dword ptr [esi], 0x470aec88 */ 4092 MEM32(esi + 0x40) = ebp; /* 0x47070D5D: mov dword ptr [esi + 0x40], ebp */ 4093 RECOMP_ICALL(0x470379E0u); /* 0x47070D60: call 0x470379e0 */ /* not lifted */ 4094 RECOMP_FLAGS_IN(); 4095 ebp = POP32_VAL(esp); /* 0x47070D65: pop ebp */ 4096 eax = esi; /* 0x47070D66: mov eax, esi */ 4097 ebx = POP32_VAL(esp); /* 0x47070D68: pop ebx */ 4098 L_47070D69: 4099 ecx = MEM32(esp + 0xC); /* 0x47070D69: mov ecx, dword ptr [esp + 0xc] */ 4100 edi = POP32_VAL(esp); /* 0x47070D6D: pop edi */ 4101 esi = POP32_VAL(esp); /* 0x47070D6E: pop esi */ 4102 MEM32(FS_BASE + (0)) = ecx; /* 0x47070D6F: mov dword ptr fs:[0], ecx */ 4103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4105 esp = esp + 0x10u; /* 0x47070D76: add esp, 0x10 */ 4106 _flag_k = FK_ADD; 4107 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070D79: ret */ 4108 RECOMP_REGS_OUT(); 4109 } 4110 4111 void sub_47070D80(void) { 4112 int _fpu_cmp = 0; 4113 uint32_t _cf = 0; 4114 int _df = 1; 4115 uint32_t _flag_k = FK_NONE; 4116 uint32_t _flag_a = 0, _flag_b = 0; 4117 uint32_t _itail_tgt = 0; 4118 RECOMP_REGS_LOCALS 4119 RECOMP_ENTER(0x47070D80u); 4120 4121 L_47070D80: 4122 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070D80: push -1 */ 4123 PUSH32(esp, 0x470A9068u); /* 0x47070D82: push 0x470a9068 */ 4124 eax = MEM32(FS_BASE + (0)); /* 0x47070D87: mov eax, dword ptr fs:[0] */ 4125 PUSH32(esp, eax); /* 0x47070D8D: push eax */ 4126 MEM32(FS_BASE + (0)) = esp; /* 0x47070D8E: mov dword ptr fs:[0], esp */ 4127 PUSH32(esp, ecx); /* 0x47070D95: push ecx */ 4128 PUSH32(esp, esi); /* 0x47070D96: push esi */ 4129 esi = ecx; /* 0x47070D97: mov esi, ecx */ 4130 MEM32(esp + 0x4) = esi; /* 0x47070D99: mov dword ptr [esp + 4], esi */ 4131 RECOMP_ICALL(0x47037820u); /* 0x47070D9D: call 0x47037820 */ /* not lifted */ 4132 RECOMP_FLAGS_IN(); 4133 ecx = MEM32(esp + 0x20); /* 0x47070DA2: mov ecx, dword ptr [esp + 0x20] */ 4134 edx = MEM32(esp + 0x18); /* 0x47070DA6: mov edx, dword ptr [esp + 0x18] */ 4135 eax = MEM32(esp + 0x1C); /* 0x47070DAA: mov eax, dword ptr [esp + 0x1c] */ 4136 PUSH32(esp, ecx); /* 0x47070DAE: push ecx */ 4137 PUSH32(esp, 0); /* 0x47070DAF: push 0 */ 4138 PUSH32(esp, edx); /* 0x47070DB1: push edx */ 4139 ecx = esi; /* 0x47070DB2: mov ecx, esi */ 4140 MEM32(esp + 0x1C) = 0; /* 0x47070DB4: mov dword ptr [esp + 0x1c], 0 */ 4141 MEM32(esi) = 0x470AECD8u; /* 0x47070DBC: mov dword ptr [esi], 0x470aecd8 */ 4142 MEM32(esi + 0x40) = eax; /* 0x47070DC2: mov dword ptr [esi + 0x40], eax */ 4143 RECOMP_ICALL(0x470379E0u); /* 0x47070DC5: call 0x470379e0 */ /* not lifted */ 4144 RECOMP_FLAGS_IN(); 4145 ecx = MEM32(esp + 0x8); /* 0x47070DCA: mov ecx, dword ptr [esp + 8] */ 4146 eax = esi; /* 0x47070DCE: mov eax, esi */ 4147 esi = POP32_VAL(esp); /* 0x47070DD0: pop esi */ 4148 MEM32(FS_BASE + (0)) = ecx; /* 0x47070DD1: mov dword ptr fs:[0], ecx */ 4149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4151 esp = esp + 0x10u; /* 0x47070DD8: add esp, 0x10 */ 4152 _flag_k = FK_ADD; 4153 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47070DDB: ret 0xc */ 4154 RECOMP_REGS_OUT(); 4155 } 4156 4157 void sub_47070DE0(void) { 4158 int _fpu_cmp = 0; 4159 uint32_t _cf = 0; 4160 int _df = 1; 4161 uint32_t _flag_k = FK_NONE; 4162 uint32_t _flag_a = 0, _flag_b = 0; 4163 uint32_t _itail_tgt = 0; 4164 RECOMP_REGS_LOCALS 4165 RECOMP_ENTER(0x47070DE0u); 4166 4167 L_47070DE0: 4168 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070DE0: push -1 */ 4169 PUSH32(esp, 0x470A908Bu); /* 0x47070DE2: push 0x470a908b */ 4170 eax = MEM32(FS_BASE + (0)); /* 0x47070DE7: mov eax, dword ptr fs:[0] */ 4171 PUSH32(esp, eax); /* 0x47070DED: push eax */ 4172 MEM32(FS_BASE + (0)) = esp; /* 0x47070DEE: mov dword ptr fs:[0], esp */ 4173 PUSH32(esp, ecx); /* 0x47070DF5: push ecx */ 4174 PUSH32(esp, 0x60u); /* 0x47070DF6: push 0x60 */ 4175 RECOMP_ICALL(0x470A33F2u); /* 0x47070DF8: call 0x470a33f2 */ /* not lifted */ 4176 RECOMP_FLAGS_IN(); 4177 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4179 esp = esp + 4; /* 0x47070DFD: add esp, 4 */ 4180 _flag_k = FK_ADD; 4181 MEM32(esp) = eax; /* 0x47070E00: mov dword ptr [esp], eax */ 4182 /* test eax, eax */ /* 0x47070E04: test eax, eax */ 4183 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4184 _cf = 0; 4185 _flag_k = FK_TEST; 4186 MEM32(esp + 0xC) = 0; /* 0x47070E06: mov dword ptr [esp + 0xc], 0 */ 4187 if (TEST_Z(_flag_a, _flag_b)) goto L_47070E2D; /* 0x47070E0E: je 0x47070e2d */ 4188 L_47070E10: 4189 ecx = MEM32(esp + 0x14); /* 0x47070E10: mov ecx, dword ptr [esp + 0x14] */ 4190 PUSH32(esp, ecx); /* 0x47070E14: push ecx */ 4191 ecx = eax; /* 0x47070E15: mov ecx, eax */ 4192 RECOMP_ICALL(0x47036920u); /* 0x47070E17: call 0x47036920 */ /* not lifted */ 4193 RECOMP_FLAGS_IN(); 4194 ecx = MEM32(esp + 0x4); /* 0x47070E1C: mov ecx, dword ptr [esp + 4] */ 4195 MEM32(FS_BASE + (0)) = ecx; /* 0x47070E20: mov dword ptr fs:[0], ecx */ 4196 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4197 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4198 esp = esp + 0x10u; /* 0x47070E27: add esp, 0x10 */ 4199 _flag_k = FK_ADD; 4200 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070E2A: ret 4 */ 4201 L_47070E2D: 4202 ecx = MEM32(esp + 0x4); /* 0x47070E2D: mov ecx, dword ptr [esp + 4] */ 4203 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4204 eax = 0; /* 0x47070E31: xor eax, eax */ 4205 _cf = 0; 4206 _flag_k = FK_TEST; 4207 MEM32(FS_BASE + (0)) = ecx; /* 0x47070E33: mov dword ptr fs:[0], ecx */ 4208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4210 esp = esp + 0x10u; /* 0x47070E3A: add esp, 0x10 */ 4211 _flag_k = FK_ADD; 4212 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070E3D: ret 4 */ 4213 RECOMP_REGS_OUT(); 4214 } 4215 4216 void sub_47070E40(void) { 4217 int _fpu_cmp = 0; 4218 uint32_t _cf = 0; 4219 int _df = 1; 4220 uint32_t _flag_k = FK_NONE; 4221 uint32_t _flag_a = 0, _flag_b = 0; 4222 uint32_t _itail_tgt = 0; 4223 RECOMP_REGS_LOCALS 4224 RECOMP_ENTER(0x47070E40u); 4225 4226 L_47070E40: 4227 eax = 1; /* 0x47070E40: mov eax, 1 */ 4228 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070E45: ret */ 4229 RECOMP_REGS_OUT(); 4230 } 4231 4232 void sub_47070E50(void) { 4233 int _fpu_cmp = 0; 4234 uint32_t _cf = 0; 4235 int _df = 1; 4236 uint32_t _flag_k = FK_NONE; 4237 uint32_t _flag_a = 0, _flag_b = 0; 4238 uint32_t _itail_tgt = 0; 4239 RECOMP_REGS_LOCALS 4240 RECOMP_ENTER(0x47070E50u); 4241 4242 L_47070E50: 4243 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070E50: push -1 */ 4244 PUSH32(esp, 0x470A90B3u); /* 0x47070E52: push 0x470a90b3 */ 4245 eax = MEM32(FS_BASE + (0)); /* 0x47070E57: mov eax, dword ptr fs:[0] */ 4246 PUSH32(esp, eax); /* 0x47070E5D: push eax */ 4247 MEM32(FS_BASE + (0)) = esp; /* 0x47070E5E: mov dword ptr fs:[0], esp */ 4248 PUSH32(esp, ecx); /* 0x47070E65: push ecx */ 4249 PUSH32(esp, esi); /* 0x47070E66: push esi */ 4250 PUSH32(esp, edi); /* 0x47070E67: push edi */ 4251 PUSH32(esp, 0x44u); /* 0x47070E68: push 0x44 */ 4252 edi = ecx; /* 0x47070E6A: mov edi, ecx */ 4253 RECOMP_ICALL(0x470A33F2u); /* 0x47070E6C: call 0x470a33f2 */ /* not lifted */ 4254 RECOMP_FLAGS_IN(); 4255 esi = eax; /* 0x47070E71: mov esi, eax */ 4256 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4258 esp = esp + 4; /* 0x47070E73: add esp, 4 */ 4259 _flag_k = FK_ADD; 4260 MEM32(esp + 0x8) = esi; /* 0x47070E76: mov dword ptr [esp + 8], esi */ 4261 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4262 eax = 0; /* 0x47070E7A: xor eax, eax */ 4263 _cf = 0; 4264 _flag_k = FK_TEST; 4265 /* cmp esi, eax */ /* 0x47070E7C: cmp esi, eax */ 4266 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4268 _flag_k = FK_CMP; 4269 MEM32(esp + 0x14) = eax; /* 0x47070E7E: mov dword ptr [esp + 0x14], eax */ 4270 if (CMP_EQ(_flag_a, _flag_b)) goto L_47070EB9; /* 0x47070E82: je 0x47070eb9 */ 4271 L_47070E84: 4272 eax = MEM32(edi); /* 0x47070E84: mov eax, dword ptr [edi] */ 4273 PUSH32(esp, ebx); /* 0x47070E86: push ebx */ 4274 ebx = MEM32(edi + 0x8); /* 0x47070E87: mov ebx, dword ptr [edi + 8] */ 4275 PUSH32(esp, ebp); /* 0x47070E8A: push ebp */ 4276 ebp = MEM32(edi + 0x4); /* 0x47070E8B: mov ebp, dword ptr [edi + 4] */ 4277 ecx = edi; /* 0x47070E8E: mov ecx, edi */ 4278 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47070E90: call dword ptr [eax + 0x34] */ 4279 RECOMP_FLAGS_IN(); 4280 ecx = esi; /* 0x47070E93: mov ecx, esi */ 4281 edi = eax; /* 0x47070E95: mov edi, eax */ 4282 RECOMP_ICALL(0x47037820u); /* 0x47070E97: call 0x47037820 */ /* not lifted */ 4283 RECOMP_FLAGS_IN(); 4284 PUSH32(esp, ebx); /* 0x47070E9C: push ebx */ 4285 PUSH32(esp, 0); /* 0x47070E9D: push 0 */ 4286 PUSH32(esp, edi); /* 0x47070E9F: push edi */ 4287 ecx = esi; /* 0x47070EA0: mov ecx, esi */ 4288 MEM8(esp + 0x28) = (uint8_t)(1); /* 0x47070EA2: mov byte ptr [esp + 0x28], 1 */ 4289 MEM32(esi) = 0x470AECD8u; /* 0x47070EA7: mov dword ptr [esi], 0x470aecd8 */ 4290 MEM32(esi + 0x40) = ebp; /* 0x47070EAD: mov dword ptr [esi + 0x40], ebp */ 4291 RECOMP_ICALL(0x470379E0u); /* 0x47070EB0: call 0x470379e0 */ /* not lifted */ 4292 RECOMP_FLAGS_IN(); 4293 ebp = POP32_VAL(esp); /* 0x47070EB5: pop ebp */ 4294 eax = esi; /* 0x47070EB6: mov eax, esi */ 4295 ebx = POP32_VAL(esp); /* 0x47070EB8: pop ebx */ 4296 L_47070EB9: 4297 ecx = MEM32(esp + 0xC); /* 0x47070EB9: mov ecx, dword ptr [esp + 0xc] */ 4298 edi = POP32_VAL(esp); /* 0x47070EBD: pop edi */ 4299 esi = POP32_VAL(esp); /* 0x47070EBE: pop esi */ 4300 MEM32(FS_BASE + (0)) = ecx; /* 0x47070EBF: mov dword ptr fs:[0], ecx */ 4301 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4302 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4303 esp = esp + 0x10u; /* 0x47070EC6: add esp, 0x10 */ 4304 _flag_k = FK_ADD; 4305 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070EC9: ret */ 4306 RECOMP_REGS_OUT(); 4307 } 4308 4309 void sub_47070ED0(void) { 4310 int _fpu_cmp = 0; 4311 uint32_t _cf = 0; 4312 int _df = 1; 4313 uint32_t _flag_k = FK_NONE; 4314 uint32_t _flag_a = 0, _flag_b = 0; 4315 uint32_t _itail_tgt = 0; 4316 RECOMP_REGS_LOCALS 4317 RECOMP_ENTER(0x47070ED0u); 4318 4319 L_47070ED0: 4320 MEM32(0x4710EC9C) = 0x4710A2ACu; /* 0x47070ED0: mov dword ptr [0x4710ec9c], 0x4710a2ac */ 4321 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070EDA: ret */ 4322 RECOMP_REGS_OUT(); 4323 } 4324 4325 void sub_47070EE0(void) { 4326 int _fpu_cmp = 0; 4327 uint32_t _cf = 0; 4328 int _df = 1; 4329 uint32_t _flag_k = FK_NONE; 4330 uint32_t _flag_a = 0, _flag_b = 0; 4331 uint32_t _itail_tgt = 0; 4332 RECOMP_REGS_LOCALS 4333 RECOMP_ENTER(0x47070EE0u); 4334 4335 L_47070EE0: 4336 ecx = 0x4710EC68u; /* 0x47070EE0: mov ecx, 0x4710ec68 */ 4337 RECOMP_ICALL(0x470317B0u); /* 0x47070EE5: call 0x470317b0 */ /* not lifted */ 4338 RECOMP_FLAGS_IN(); 4339 PUSH32(esp, 0x47070F00u); /* 0x47070EEA: push 0x47070f00 */ 4340 RECOMP_ICALL(0x470A32D9u); /* 0x47070EEF: call 0x470a32d9 */ /* not lifted */ 4341 RECOMP_FLAGS_IN(); 4342 ecx = POP32_VAL(esp); /* 0x47070EF4: pop ecx */ 4343 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070EF5: ret */ 4344 RECOMP_REGS_OUT(); 4345 } 4346 4347 void sub_47070F00(void) { 4348 int _fpu_cmp = 0; 4349 uint32_t _cf = 0; 4350 int _df = 1; 4351 uint32_t _flag_k = FK_NONE; 4352 uint32_t _flag_a = 0, _flag_b = 0; 4353 uint32_t _itail_tgt = 0; 4354 RECOMP_REGS_LOCALS 4355 RECOMP_ENTER(0x47070F00u); 4356 4357 goto L_47070F00; 4358 L_47014F70: 4359 MEM32(ecx) = 0x470AC510u; /* 0x47014F70: mov dword ptr [ecx], 0x470ac510 */ 4360 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47014F76: ret */ 4361 L_47070F00: 4362 SET_LO8(ecx, MEM8(0x4710EC5C)); /* 0x47070F00: mov cl, byte ptr [0x4710ec5c] */ 4363 SET_LO8(eax, 1); /* 0x47070F06: mov al, 1 */ 4364 /* test LO8(eax), LO8(ecx) */ /* 0x47070F08: test al, cl */ 4365 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 4366 _cf = 0; 4367 _flag_k = FK_NARROW(FK_TEST, 24); 4368 if (TEST_NZ(_flag_a, _flag_b)) goto L_47070F1E; /* 0x47070F0A: jne 0x47070f1e */ 4369 L_47070F0C: 4370 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 4371 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x47070F0C: or cl, al */ 4372 _cf = 0; 4373 _flag_k = FK_NARROW(FK_TEST, 24); 4374 MEM8(0x4710EC5C) = (uint8_t)(LO8(ecx)); /* 0x47070F0E: mov byte ptr [0x4710ec5c], cl */ 4375 ecx = 0x4710EC68u; /* 0x47070F14: mov ecx, 0x4710ec68 */ 4376 goto L_4707CCD0; /* 0x47070F19: jmp 0x4707ccd0 */ 4377 L_47070F1E: 4378 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070F1E: ret */ 4379 L_4707CCD0: 4380 MEM32(ecx) = 0x470AC520u; /* 0x4707CCD0: mov dword ptr [ecx], 0x470ac520 */ 4381 RECOMP_BACKEDGE(); 4382 goto L_47014F70; /* 0x4707CCD6: jmp 0x47014f70 */ 4383 { RECOMP_REGS_OUT(); return; } /* end of function */ 4384 RECOMP_REGS_OUT(); 4385 } 4386 4387 void sub_47070F20(void) { 4388 int _fpu_cmp = 0; 4389 uint32_t _cf = 0; 4390 int _df = 1; 4391 uint32_t _flag_k = FK_NONE; 4392 uint32_t _flag_a = 0, _flag_b = 0; 4393 uint32_t _itail_tgt = 0; 4394 RECOMP_REGS_LOCALS 4395 RECOMP_ENTER(0x47070F20u); 4396 4397 L_47070F20: 4398 eax = MEM32(esp + 0x4); /* 0x47070F20: mov eax, dword ptr [esp + 4] */ 4399 ecx = MEM32(eax + 0x4); /* 0x47070F24: mov ecx, dword ptr [eax + 4] */ 4400 MEM32(0x4710EC6C) = ecx; /* 0x47070F27: mov dword ptr [0x4710ec6c], ecx */ 4401 edx = MEM32(eax + 0x8); /* 0x47070F2D: mov edx, dword ptr [eax + 8] */ 4402 MEM32(0x4710EC70) = edx; /* 0x47070F30: mov dword ptr [0x4710ec70], edx */ 4403 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 4404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4405 eax = eax + 0xCu; /* 0x47070F36: add eax, 0xc */ 4406 _flag_k = FK_ADD; 4407 ecx = MEM32(eax); /* 0x47070F39: mov ecx, dword ptr [eax] */ 4408 MEM32(0x4710EC74) = ecx; /* 0x47070F3B: mov dword ptr [0x4710ec74], ecx */ 4409 edx = MEM32(eax + 0x4); /* 0x47070F41: mov edx, dword ptr [eax + 4] */ 4410 MEM32(0x4710EC78) = edx; /* 0x47070F44: mov dword ptr [0x4710ec78], edx */ 4411 ecx = MEM32(eax + 0x8); /* 0x47070F4A: mov ecx, dword ptr [eax + 8] */ 4412 MEM32(0x4710EC7C) = ecx; /* 0x47070F4D: mov dword ptr [0x4710ec7c], ecx */ 4413 edx = MEM32(eax + 0xC); /* 0x47070F53: mov edx, dword ptr [eax + 0xc] */ 4414 MEM32(0x4710EC80) = edx; /* 0x47070F56: mov dword ptr [0x4710ec80], edx */ 4415 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070F5C: ret */ 4416 RECOMP_REGS_OUT(); 4417 } 4418 4419 void sub_47070F60(void) { 4420 int _fpu_cmp = 0; 4421 uint32_t _cf = 0; 4422 int _df = 1; 4423 uint32_t _flag_k = FK_NONE; 4424 uint32_t _flag_a = 0, _flag_b = 0; 4425 uint32_t _itail_tgt = 0; 4426 RECOMP_REGS_LOCALS 4427 RECOMP_ENTER(0x47070F60u); 4428 4429 L_47070F60: 4430 eax = MEM32(FS_BASE + (0)); /* 0x47070F60: mov eax, dword ptr fs:[0] */ 4431 PUSH32(esp, 0xFFFFFFFFu); /* 0x47070F66: push -1 */ 4432 PUSH32(esp, 0x470A90CBu); /* 0x47070F68: push 0x470a90cb */ 4433 PUSH32(esp, eax); /* 0x47070F6D: push eax */ 4434 MEM32(FS_BASE + (0)) = esp; /* 0x47070F6E: mov dword ptr fs:[0], esp */ 4435 PUSH32(esp, esi); /* 0x47070F75: push esi */ 4436 esi = ecx; /* 0x47070F76: mov esi, ecx */ 4437 PUSH32(esp, 0); /* 0x47070F78: push 0 */ 4438 PUSH32(esp, 0); /* 0x47070F7A: push 0 */ 4439 ecx = esi + 0x4; /* 0x47070F7C: lea ecx, [esi + 4] */ 4440 RECOMP_ICALL(0x47087E50u); /* 0x47070F7F: call 0x47087e50 */ /* not lifted */ 4441 RECOMP_FLAGS_IN(); 4442 ecx = MEM32(esp + 0x4); /* 0x47070F84: mov ecx, dword ptr [esp + 4] */ 4443 MEM32(esi + 0x20) = 0; /* 0x47070F88: mov dword ptr [esi + 0x20], 0 */ 4444 eax = MEM32(0x4710E904); /* 0x47070F8F: mov eax, dword ptr [0x4710e904] */ 4445 MEM32(esi + 0x24) = eax; /* 0x47070F94: mov dword ptr [esi + 0x24], eax */ 4446 MEM32(esi) = 0x470AED28u; /* 0x47070F97: mov dword ptr [esi], 0x470aed28 */ 4447 eax = esi; /* 0x47070F9D: mov eax, esi */ 4448 MEM32(FS_BASE + (0)) = ecx; /* 0x47070F9F: mov dword ptr fs:[0], ecx */ 4449 esi = POP32_VAL(esp); /* 0x47070FA6: pop esi */ 4450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4452 esp = esp + 0xCu; /* 0x47070FA7: add esp, 0xc */ 4453 _flag_k = FK_ADD; 4454 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47070FAA: ret */ 4455 RECOMP_REGS_OUT(); 4456 } 4457 4458 void sub_47070FB0(void) { 4459 int _fpu_cmp = 0; 4460 uint32_t _cf = 0; 4461 int _df = 1; 4462 uint32_t _flag_k = FK_NONE; 4463 uint32_t _flag_a = 0, _flag_b = 0; 4464 uint32_t _itail_tgt = 0; 4465 RECOMP_REGS_LOCALS 4466 RECOMP_ENTER(0x47070FB0u); 4467 4468 L_47070FB0: 4469 PUSH32(esp, ebx); /* 0x47070FB0: push ebx */ 4470 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47070FB1: mov bl, byte ptr [esp + 8] */ 4471 /* test LO8(ebx), 2 */ /* 0x47070FB5: test bl, 2 */ 4472 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 4473 _cf = 0; 4474 _flag_k = FK_NARROW(FK_TEST, 24); 4475 PUSH32(esp, esi); /* 0x47070FB8: push esi */ 4476 esi = ecx; /* 0x47070FB9: mov esi, ecx */ 4477 if (TEST_Z(_flag_a, _flag_b)) goto L_47070FE8; /* 0x47070FBB: je 0x47070fe8 */ 4478 L_47070FBD: 4479 eax = MEM32(esi + (-0x4)); /* 0x47070FBD: mov eax, dword ptr [esi - 4] */ 4480 PUSH32(esp, edi); /* 0x47070FC0: push edi */ 4481 PUSH32(esp, 0x47071010u); /* 0x47070FC1: push 0x47071010 */ 4482 edi = esi + (-0x4); /* 0x47070FC6: lea edi, [esi - 4] */ 4483 PUSH32(esp, eax); /* 0x47070FC9: push eax */ 4484 PUSH32(esp, 0x28u); /* 0x47070FCA: push 0x28 */ 4485 PUSH32(esp, esi); /* 0x47070FCC: push esi */ 4486 RECOMP_ICALL(0x470A32EBu); /* 0x47070FCD: call 0x470a32eb */ /* not lifted */ 4487 RECOMP_FLAGS_IN(); 4488 /* test LO8(ebx), 1 */ /* 0x47070FD2: test bl, 1 */ 4489 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4490 _cf = 0; 4491 _flag_k = FK_NARROW(FK_TEST, 24); 4492 if (TEST_Z(_flag_a, _flag_b)) goto L_47070FE0; /* 0x47070FD5: je 0x47070fe0 */ 4493 L_47070FD7: 4494 PUSH32(esp, edi); /* 0x47070FD7: push edi */ 4495 RECOMP_ICALL(0x470A32A2u); /* 0x47070FD8: call 0x470a32a2 */ /* not lifted */ 4496 RECOMP_FLAGS_IN(); 4497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4499 esp = esp + 4; /* 0x47070FDD: add esp, 4 */ 4500 _flag_k = FK_ADD; 4501 L_47070FE0: 4502 eax = edi; /* 0x47070FE0: mov eax, edi */ 4503 edi = POP32_VAL(esp); /* 0x47070FE2: pop edi */ 4504 esi = POP32_VAL(esp); /* 0x47070FE3: pop esi */ 4505 ebx = POP32_VAL(esp); /* 0x47070FE4: pop ebx */ 4506 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47070FE5: ret 4 */ 4507 L_47070FE8: 4508 ecx = esi; /* 0x47070FE8: mov ecx, esi */ 4509 RECOMP_ICALL(0x47071010u); /* 0x47070FEA: call 0x47071010 */ /* not lifted */ 4510 RECOMP_FLAGS_IN(); 4511 /* test LO8(ebx), 1 */ /* 0x47070FEF: test bl, 1 */ 4512 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 4513 _cf = 0; 4514 _flag_k = FK_NARROW(FK_TEST, 24); 4515 if (TEST_Z(_flag_a, _flag_b)) goto L_47070FFD; /* 0x47070FF2: je 0x47070ffd */ 4516 L_47070FF4: 4517 PUSH32(esp, esi); /* 0x47070FF4: push esi */ 4518 RECOMP_ICALL(0x470A32A2u); /* 0x47070FF5: call 0x470a32a2 */ /* not lifted */ 4519 RECOMP_FLAGS_IN(); 4520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4521 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4522 esp = esp + 4; /* 0x47070FFA: add esp, 4 */ 4523 _flag_k = FK_ADD; 4524 L_47070FFD: 4525 eax = esi; /* 0x47070FFD: mov eax, esi */ 4526 esi = POP32_VAL(esp); /* 0x47070FFF: pop esi */ 4527 ebx = POP32_VAL(esp); /* 0x47071000: pop ebx */ 4528 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47071001: ret 4 */ 4529 RECOMP_REGS_OUT(); 4530 } 4531 4532 void sub_47071010(void) { 4533 int _fpu_cmp = 0; 4534 uint32_t _cf = 0; 4535 int _df = 1; 4536 uint32_t _flag_k = FK_NONE; 4537 uint32_t _flag_a = 0, _flag_b = 0; 4538 uint32_t _itail_tgt = 0; 4539 RECOMP_REGS_LOCALS 4540 RECOMP_ENTER(0x47071010u); 4541 4542 L_47071010: 4543 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071010: push -1 */ 4544 PUSH32(esp, 0x470A90EBu); /* 0x47071012: push 0x470a90eb */ 4545 eax = MEM32(FS_BASE + (0)); /* 0x47071017: mov eax, dword ptr fs:[0] */ 4546 PUSH32(esp, eax); /* 0x4707101D: push eax */ 4547 MEM32(FS_BASE + (0)) = esp; /* 0x4707101E: mov dword ptr fs:[0], esp */ 4548 PUSH32(esp, ecx); /* 0x47071025: push ecx */ 4549 PUSH32(esp, esi); /* 0x47071026: push esi */ 4550 esi = ecx; /* 0x47071027: mov esi, ecx */ 4551 MEM32(esp + 0x4) = esi; /* 0x47071029: mov dword ptr [esp + 4], esi */ 4552 MEM32(esi) = 0x470AED30u; /* 0x4707102D: mov dword ptr [esi], 0x470aed30 */ 4553 PUSH32(esp, esi); /* 0x47071033: push esi */ 4554 MEM32(esp + 0x14) = 0; /* 0x47071034: mov dword ptr [esp + 0x14], 0 */ 4555 RECOMP_ICALL(0x470562A0u); /* 0x4707103C: call 0x470562a0 */ /* not lifted */ 4556 RECOMP_FLAGS_IN(); 4557 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4558 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4559 esp = esp + 4; /* 0x47071041: add esp, 4 */ 4560 _flag_k = FK_ADD; 4561 ecx = esi + 0x4; /* 0x47071044: lea ecx, [esi + 4] */ 4562 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47071047: mov dword ptr [esp + 0x10], 0xffffffff */ 4563 RECOMP_ICALL(0x47087E30u); /* 0x4707104F: call 0x47087e30 */ /* not lifted */ 4564 RECOMP_FLAGS_IN(); 4565 ecx = MEM32(esp + 0x8); /* 0x47071054: mov ecx, dword ptr [esp + 8] */ 4566 esi = POP32_VAL(esp); /* 0x47071058: pop esi */ 4567 MEM32(FS_BASE + (0)) = ecx; /* 0x47071059: mov dword ptr fs:[0], ecx */ 4568 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4570 esp = esp + 0x10u; /* 0x47071060: add esp, 0x10 */ 4571 _flag_k = FK_ADD; 4572 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47071063: ret */ 4573 RECOMP_REGS_OUT(); 4574 } 4575 4576 void sub_47071070(void) { 4577 int _fpu_cmp = 0; 4578 uint32_t _cf = 0; 4579 int _df = 1; 4580 uint32_t _flag_k = FK_NONE; 4581 uint32_t _flag_a = 0, _flag_b = 0; 4582 uint32_t _itail_tgt = 0; 4583 RECOMP_REGS_LOCALS 4584 RECOMP_ENTER(0x47071070u); 4585 4586 L_47071070: 4587 PUSH32(esp, ecx); /* 0x47071070: push ecx */ 4588 PUSH32(esp, esi); /* 0x47071071: push esi */ 4589 esi = ecx; /* 0x47071072: mov esi, ecx */ 4590 eax = MEM32(esi + 0x20); /* 0x47071074: mov eax, dword ptr [esi + 0x20] */ 4591 /* test eax, eax */ /* 0x47071077: test eax, eax */ 4592 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4593 _cf = 0; 4594 _flag_k = FK_TEST; 4595 if (TEST_NZ(_flag_a, _flag_b)) goto L_47071080; /* 0x47071079: jne 0x47071080 */ 4596 L_4707107B: 4597 RECOMP_ICALL(0x47072E10u); /* 0x4707107B: call 0x47072e10 */ /* not lifted */ 4598 RECOMP_FLAGS_IN(); 4599 L_47071080: 4600 eax = MEM32(esi + 0x24); /* 0x47071080: mov eax, dword ptr [esi + 0x24] */ 4601 ecx = esp + 0x4; /* 0x47071083: lea ecx, [esp + 4] */ 4602 PUSH32(esp, ecx); /* 0x47071087: push ecx */ 4603 PUSH32(esp, eax); /* 0x47071088: push eax */ 4604 MEM32(esp + 0xC) = 0; /* 0x47071089: mov dword ptr [esp + 0xc], 0 */ 4605 RECOMP_ICALL(0x47004600u); /* 0x47071091: call 0x47004600 */ /* not lifted */ 4606 RECOMP_FLAGS_IN(); 4607 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4608 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4609 esp = esp + 8; /* 0x47071096: add esp, 8 */ 4610 _flag_k = FK_ADD; 4611 /* cmp eax, 0xFFFFFFFFu */ /* 0x47071099: cmp eax, -1 */ 4612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4614 _flag_k = FK_CMP; 4615 if (CMP_NE(_flag_a, _flag_b)) goto L_470710A3; /* 0x4707109C: jne 0x470710a3 */ 4616 L_4707109E: 4617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4618 eax = 0; /* 0x4707109E: xor eax, eax */ 4619 _cf = 0; 4620 _flag_k = FK_TEST; 4621 esi = POP32_VAL(esp); /* 0x470710A0: pop esi */ 4622 ecx = POP32_VAL(esp); /* 0x470710A1: pop ecx */ 4623 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470710A2: ret */ 4624 L_470710A3: 4625 eax = MEM32(esp + 0x4); /* 0x470710A3: mov eax, dword ptr [esp + 4] */ 4626 /* test eax, eax */ /* 0x470710A7: test eax, eax */ 4627 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4628 _cf = 0; 4629 _flag_k = FK_TEST; 4630 if (TEST_NZ(_flag_a, _flag_b)) goto L_470710EB; /* 0x470710A9: jne 0x470710eb */ 4631 L_470710AB: 4632 edx = MEM32(esi); /* 0x470710AB: mov edx, dword ptr [esi] */ 4633 ecx = esi; /* 0x470710AD: mov ecx, esi */ 4634 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x470710AF: call dword ptr [edx + 4] */ 4635 RECOMP_FLAGS_IN(); 4636 /* test eax, eax */ /* 0x470710B2: test eax, eax */ 4637 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4638 _cf = 0; 4639 _flag_k = FK_TEST; 4640 MEM32(esp + 0x4) = eax; /* 0x470710B4: mov dword ptr [esp + 4], eax */ 4641 if (TEST_NZ(_flag_a, _flag_b)) goto L_470710BD; /* 0x470710B8: jne 0x470710bd */ 4642 L_470710BA: 4643 esi = POP32_VAL(esp); /* 0x470710BA: pop esi */ 4644 ecx = POP32_VAL(esp); /* 0x470710BB: pop ecx */ 4645 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470710BC: ret */ 4646 L_470710BD: 4647 esi = MEM32(esi + 0x24); /* 0x470710BD: mov esi, dword ptr [esi + 0x24] */ 4648 PUSH32(esp, eax); /* 0x470710C0: push eax */ 4649 PUSH32(esp, esi); /* 0x470710C1: push esi */ 4650 RECOMP_ICALL(0x47056110u); /* 0x470710C2: call 0x47056110 */ /* not lifted */ 4651 RECOMP_FLAGS_IN(); 4652 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4654 esp = esp + 8; /* 0x470710C7: add esp, 8 */ 4655 _flag_k = FK_ADD; 4656 /* test eax, eax */ /* 0x470710CA: test eax, eax */ 4657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4658 _cf = 0; 4659 _flag_k = FK_TEST; 4660 if (TEST_Z(_flag_a, _flag_b)) goto L_470710EB; /* 0x470710CC: je 0x470710eb */ 4661 L_470710CE: 4662 ecx = MEM32(esp + 0x4); /* 0x470710CE: mov ecx, dword ptr [esp + 4] */ 4663 /* test ecx, ecx */ /* 0x470710D2: test ecx, ecx */ 4664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4665 _cf = 0; 4666 _flag_k = FK_TEST; 4667 esi = ecx; /* 0x470710D4: mov esi, ecx */ 4668 if (TEST_Z(_flag_a, _flag_b)) goto L_470710E6; /* 0x470710D6: je 0x470710e6 */ 4669 L_470710D8: 4670 RECOMP_ICALL(0x47033030u); /* 0x470710D8: call 0x47033030 */ /* not lifted */ 4671 RECOMP_FLAGS_IN(); 4672 PUSH32(esp, esi); /* 0x470710DD: push esi */ 4673 RECOMP_ICALL(0x470A32A2u); /* 0x470710DE: call 0x470a32a2 */ /* not lifted */ 4674 RECOMP_FLAGS_IN(); 4675 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4676 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4677 esp = esp + 4; /* 0x470710E3: add esp, 4 */ 4678 _flag_k = FK_ADD; 4679 L_470710E6: 4680 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4681 eax = 0; /* 0x470710E6: xor eax, eax */ 4682 _cf = 0; 4683 _flag_k = FK_TEST; 4684 esi = POP32_VAL(esp); /* 0x470710E8: pop esi */ 4685 ecx = POP32_VAL(esp); /* 0x470710E9: pop ecx */ 4686 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470710EA: ret */ 4687 L_470710EB: 4688 eax = MEM32(esp + 0x4); /* 0x470710EB: mov eax, dword ptr [esp + 4] */ 4689 esi = POP32_VAL(esp); /* 0x470710EF: pop esi */ 4690 ecx = POP32_VAL(esp); /* 0x470710F0: pop ecx */ 4691 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470710F1: ret */ 4692 RECOMP_REGS_OUT(); 4693 } 4694 4695 void sub_47071100(void) { 4696 int _fpu_cmp = 0; 4697 uint32_t _cf = 0; 4698 int _df = 1; 4699 uint32_t _flag_k = FK_NONE; 4700 uint32_t _flag_a = 0, _flag_b = 0; 4701 uint32_t _itail_tgt = 0; 4702 RECOMP_REGS_LOCALS 4703 RECOMP_ENTER(0x47071100u); 4704 4705 L_47071100: 4706 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071100: push -1 */ 4707 PUSH32(esp, 0x470A911Bu); /* 0x47071102: push 0x470a911b */ 4708 eax = MEM32(FS_BASE + (0)); /* 0x47071107: mov eax, dword ptr fs:[0] */ 4709 PUSH32(esp, eax); /* 0x4707110D: push eax */ 4710 MEM32(FS_BASE + (0)) = esp; /* 0x4707110E: mov dword ptr fs:[0], esp */ 4711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4713 esp = esp - 8; /* 0x47071115: sub esp, 8 */ 4714 _flag_k = FK_CMP; 4715 PUSH32(esp, esi); /* 0x47071118: push esi */ 4716 PUSH32(esp, edi); /* 0x47071119: push edi */ 4717 PUSH32(esp, 0x10u); /* 0x4707111A: push 0x10 */ 4718 MEM32(esp + 0x1C) = 0; /* 0x4707111C: mov dword ptr [esp + 0x1c], 0 */ 4719 RECOMP_ICALL(0x470A33F2u); /* 0x47071124: call 0x470a33f2 */ /* not lifted */ 4720 RECOMP_FLAGS_IN(); 4721 edi = eax; /* 0x47071129: mov edi, eax */ 4722 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4724 esp = esp + 4; /* 0x4707112B: add esp, 4 */ 4725 _flag_k = FK_ADD; 4726 MEM32(esp + 0x8) = edi; /* 0x4707112E: mov dword ptr [esp + 8], edi */ 4727 /* test edi, edi */ /* 0x47071132: test edi, edi */ 4728 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4729 _cf = 0; 4730 _flag_k = FK_TEST; 4731 MEM8(esp + 0x18) = (uint8_t)(1); /* 0x47071134: mov byte ptr [esp + 0x18], 1 */ 4732 if (TEST_Z(_flag_a, _flag_b)) goto L_47071144; /* 0x47071139: je 0x47071144 */ 4733 L_4707113B: 4734 ecx = edi; /* 0x4707113B: mov ecx, edi */ 4735 RECOMP_ICALL(0x4707A510u); /* 0x4707113D: call 0x4707a510 */ /* not lifted */ 4736 RECOMP_FLAGS_IN(); 4737 goto L_47071146; /* 0x47071142: jmp 0x47071146 */ 4738 L_47071144: 4739 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4740 edi = 0; /* 0x47071144: xor edi, edi */ 4741 _cf = 0; 4742 _flag_k = FK_TEST; 4743 L_47071146: 4744 /* test edi, edi */ /* 0x47071146: test edi, edi */ 4745 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4746 _cf = 0; 4747 _flag_k = FK_TEST; 4748 MEM8(esp + 0x18) = (uint8_t)(0); /* 0x47071148: mov byte ptr [esp + 0x18], 0 */ 4749 if (TEST_NZ(_flag_a, _flag_b)) goto L_4707116E; /* 0x4707114D: jne 0x4707116e */ 4750 L_4707114F: 4751 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4707114F: call dword ptr [0x470ac3c8] */ 4752 RECOMP_FLAGS_IN(); 4753 edi = POP32_VAL(esp); /* 0x47071155: pop edi */ 4754 MEM32(eax) = 0xCu; /* 0x47071156: mov dword ptr [eax], 0xc */ 4755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4756 eax = 0; /* 0x4707115C: xor eax, eax */ 4757 _cf = 0; 4758 _flag_k = FK_TEST; 4759 esi = POP32_VAL(esp); /* 0x4707115E: pop esi */ 4760 ecx = MEM32(esp + 0x8); /* 0x4707115F: mov ecx, dword ptr [esp + 8] */ 4761 MEM32(FS_BASE + (0)) = ecx; /* 0x47071163: mov dword ptr fs:[0], ecx */ 4762 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4763 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4764 esp = esp + 0x14u; /* 0x4707116A: add esp, 0x14 */ 4765 _flag_k = FK_ADD; 4766 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4707116D: ret */ 4767 L_4707116E: 4768 PUSH32(esp, 0); /* 0x4707116E: push 0 */ 4769 PUSH32(esp, 2); /* 0x47071170: push 2 */ 4770 PUSH32(esp, 0); /* 0x47071172: push 0 */ 4771 PUSH32(esp, 0); /* 0x47071174: push 0 */ 4772 PUSH32(esp, 0); /* 0x47071176: push 0 */ 4773 PUSH32(esp, 0x4710DF08u); /* 0x47071178: push 0x4710df08 */ 4774 PUSH32(esp, 0); /* 0x4707117D: push 0 */ 4775 PUSH32(esp, 0x4710EC68u); /* 0x4707117F: push 0x4710ec68 */ 4776 PUSH32(esp, edi); /* 0x47071184: push edi */ 4777 ecx = esp + 0x30; /* 0x47071185: lea ecx, [esp + 0x30] */ 4778 RECOMP_ICALL(0x4707BAD0u); /* 0x47071189: call 0x4707bad0 */ /* not lifted */ 4779 RECOMP_FLAGS_IN(); 4780 /* cmp eax, 0xFFFFFFFFu */ /* 0x4707118E: cmp eax, -1 */ 4781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4783 _flag_k = FK_CMP; 4784 if (CMP_NE(_flag_a, _flag_b)) goto L_470711EC; /* 0x47071191: jne 0x470711ec */ 4785 L_47071193: 4786 MEM32(esp + 0x8) = edi; /* 0x47071193: mov dword ptr [esp + 8], edi */ 4787 esi = edi + 0x4; /* 0x47071197: lea esi, [edi + 4] */ 4788 ecx = esi; /* 0x4707119A: mov ecx, esi */ 4789 MEM8(esp + 0x18) = (uint8_t)(2); /* 0x4707119C: mov byte ptr [esp + 0x18], 2 */ 4790 RECOMP_ICALL(0x4703B380u); /* 0x470711A1: call 0x4703b380 */ /* not lifted */ 4791 RECOMP_FLAGS_IN(); 4792 ecx = MEM32(esi); /* 0x470711A6: mov ecx, dword ptr [esi] */ 4793 /* test ecx, ecx */ /* 0x470711A8: test ecx, ecx */ 4794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4795 _cf = 0; 4796 _flag_k = FK_TEST; 4797 if (TEST_Z(_flag_a, _flag_b)) goto L_470711BE; /* 0x470711AA: je 0x470711be */ 4798 L_470711AC: 4799 PUSH32(esp, 0); /* 0x470711AC: push 0 */ 4800 RECOMP_ICALL(0x4708CFB0u); /* 0x470711AE: call 0x4708cfb0 */ /* not lifted */ 4801 RECOMP_FLAGS_IN(); 4802 ecx = MEM32(esi + 0x8); /* 0x470711B3: mov ecx, dword ptr [esi + 8] */ 4803 edx = MEM32(esi); /* 0x470711B6: mov edx, dword ptr [esi] */ 4804 eax = MEM32(ecx); /* 0x470711B8: mov eax, dword ptr [ecx] */ 4805 PUSH32(esp, edx); /* 0x470711BA: push edx */ 4806 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470711BB: call dword ptr [eax + 0xc] */ 4807 RECOMP_FLAGS_IN(); 4808 L_470711BE: 4809 PUSH32(esp, edi); /* 0x470711BE: push edi */ 4810 MEM32(esi) = 0; /* 0x470711BF: mov dword ptr [esi], 0 */ 4811 RECOMP_ICALL(0x470A32A2u); /* 0x470711C5: call 0x470a32a2 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4815 esp = esp + 4; /* 0x470711CA: add esp, 4 */ 4816 _flag_k = FK_ADD; 4817 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470711CD: call dword ptr [0x470ac3c8] */ 4818 RECOMP_FLAGS_IN(); 4819 edi = POP32_VAL(esp); /* 0x470711D3: pop edi */ 4820 MEM32(eax) = 0x274Du; /* 0x470711D4: mov dword ptr [eax], 0x274d */ 4821 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4822 eax = 0; /* 0x470711DA: xor eax, eax */ 4823 _cf = 0; 4824 _flag_k = FK_TEST; 4825 esi = POP32_VAL(esp); /* 0x470711DC: pop esi */ 4826 ecx = MEM32(esp + 0x8); /* 0x470711DD: mov ecx, dword ptr [esp + 8] */ 4827 MEM32(FS_BASE + (0)) = ecx; /* 0x470711E1: mov dword ptr fs:[0], ecx */ 4828 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4830 esp = esp + 0x14u; /* 0x470711E8: add esp, 0x14 */ 4831 _flag_k = FK_ADD; 4832 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470711EB: ret */ 4833 L_470711EC: 4834 PUSH32(esp, ebp); /* 0x470711EC: push ebp */ 4835 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470711ED: call dword ptr [0x470ac150] */ 4836 RECOMP_FLAGS_IN(); 4837 ebp = eax; /* 0x470711F3: mov ebp, eax */ 4838 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470711F5: call dword ptr [0x470ac3c8] */ 4839 RECOMP_FLAGS_IN(); 4840 eax = MEM32(eax); /* 0x470711FB: mov eax, dword ptr [eax] */ 4841 /* test eax, eax */ /* 0x470711FD: test eax, eax */ 4842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4843 _cf = 0; 4844 _flag_k = FK_TEST; 4845 if (TEST_Z(_flag_a, _flag_b)) goto L_47071203; /* 0x470711FF: je 0x47071203 */ 4846 L_47071201: 4847 ebp = eax; /* 0x47071201: mov ebp, eax */ 4848 L_47071203: 4849 RECOMP_ICALL(0x47039020u); /* 0x47071203: call 0x47039020 */ /* not lifted */ 4850 RECOMP_FLAGS_IN(); 4851 esi = eax; /* 0x47071208: mov esi, eax */ 4852 ecx = esi; /* 0x4707120A: mov ecx, esi */ 4853 RECOMP_ICALL(0x4703B210u); /* 0x4707120C: call 0x4703b210 */ /* not lifted */ 4854 RECOMP_FLAGS_IN(); 4855 PUSH32(esp, eax); /* 0x47071211: push eax */ 4856 ecx = esi; /* 0x47071212: mov ecx, esi */ 4857 RECOMP_ICALL(0x4703B240u); /* 0x47071214: call 0x4703b240 */ /* not lifted */ 4858 RECOMP_FLAGS_IN(); 4859 PUSH32(esp, eax); /* 0x47071219: push eax */ 4860 ecx = esi; /* 0x4707121A: mov ecx, esi */ 4861 RECOMP_ICALL(0x4703B080u); /* 0x4707121C: call 0x4703b080 */ /* not lifted */ 4862 RECOMP_FLAGS_IN(); 4863 PUSH32(esp, eax); /* 0x47071221: push eax */ 4864 PUSH32(esp, ebp); /* 0x47071222: push ebp */ 4865 PUSH32(esp, 0); /* 0x47071223: push 0 */ 4866 PUSH32(esp, 0x48u); /* 0x47071225: push 0x48 */ 4867 PUSH32(esp, 0x4710A308u); /* 0x47071227: push 0x4710a308 */ 4868 ecx = esi; /* 0x4707122C: mov ecx, esi */ 4869 RECOMP_ICALL(0x4703A340u); /* 0x4707122E: call 0x4703a340 */ /* not lifted */ 4870 RECOMP_FLAGS_IN(); 4871 PUSH32(esp, 0x4710A2E4u); /* 0x47071233: push 0x4710a2e4 */ 4872 PUSH32(esp, 4); /* 0x47071238: push 4 */ 4873 PUSH32(esp, esi); /* 0x4707123A: push esi */ 4874 RECOMP_ICALL(0x47039830u); /* 0x4707123B: call 0x47039830 */ /* not lifted */ 4875 RECOMP_FLAGS_IN(); 4876 ecx = MEM32(esp + 0x20); /* 0x47071240: mov ecx, dword ptr [esp + 0x20] */ 4877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4879 esp = esp + 0xCu; /* 0x47071244: add esp, 0xc */ 4880 _flag_k = FK_ADD; 4881 ebp = POP32_VAL(esp); /* 0x47071247: pop ebp */ 4882 eax = edi; /* 0x47071248: mov eax, edi */ 4883 edi = POP32_VAL(esp); /* 0x4707124A: pop edi */ 4884 esi = POP32_VAL(esp); /* 0x4707124B: pop esi */ 4885 MEM32(FS_BASE + (0)) = ecx; /* 0x4707124C: mov dword ptr fs:[0], ecx */ 4886 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4888 esp = esp + 0x14u; /* 0x47071253: add esp, 0x14 */ 4889 _flag_k = FK_ADD; 4890 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47071256: ret */ 4891 RECOMP_REGS_OUT(); 4892 } 4893 4894 void sub_47071260(void) { 4895 int _fpu_cmp = 0; 4896 uint32_t _cf = 0; 4897 int _df = 1; 4898 uint32_t _flag_k = FK_NONE; 4899 uint32_t _flag_a = 0, _flag_b = 0; 4900 uint32_t _itail_tgt = 0; 4901 RECOMP_REGS_LOCALS 4902 RECOMP_ENTER(0x47071260u); 4903 4904 L_47071260: 4905 PUSH32(esp, ecx); /* 0x47071260: push ecx */ 4906 PUSH32(esp, ebx); /* 0x47071261: push ebx */ 4907 PUSH32(esp, ebp); /* 0x47071262: push ebp */ 4908 PUSH32(esp, esi); /* 0x47071263: push esi */ 4909 esi = MEM32(0x470AC150); /* 0x47071264: mov esi, dword ptr [0x470ac150] */ 4910 PUSH32(esp, edi); /* 0x4707126A: push edi */ 4911 ebp = ecx; /* 0x4707126B: mov ebp, ecx */ 4912 RECOMP_ICALL(esi); /* 0x4707126D: call esi */ 4913 RECOMP_FLAGS_IN(); 4914 edi = MEM32(0x470AC3C8); /* 0x4707126F: mov edi, dword ptr [0x470ac3c8] */ 4915 ebx = eax; /* 0x47071275: mov ebx, eax */ 4916 RECOMP_ICALL(edi); /* 0x47071277: call edi */ 4917 RECOMP_FLAGS_IN(); 4918 eax = MEM32(eax); /* 0x47071279: mov eax, dword ptr [eax] */ 4919 /* test eax, eax */ /* 0x4707127B: test eax, eax */ 4920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4921 _cf = 0; 4922 _flag_k = FK_TEST; 4923 MEM32(esp + 0x10) = ebx; /* 0x4707127D: mov dword ptr [esp + 0x10], ebx */ 4924 if (TEST_Z(_flag_a, _flag_b)) goto L_47071287; /* 0x47071281: je 0x47071287 */ 4925 L_47071283: 4926 MEM32(esp + 0x10) = eax; /* 0x47071283: mov dword ptr [esp + 0x10], eax */ 4927 L_47071287: 4928 RECOMP_ICALL(0x47039020u); /* 0x47071287: call 0x47039020 */ /* not lifted */ 4929 RECOMP_FLAGS_IN(); 4930 ebx = eax; /* 0x4707128C: mov ebx, eax */ 4931 ecx = ebx; /* 0x4707128E: mov ecx, ebx */ 4932 RECOMP_ICALL(0x4703B210u); /* 0x47071290: call 0x4703b210 */ /* not lifted */ 4933 RECOMP_FLAGS_IN(); 4934 PUSH32(esp, eax); /* 0x47071295: push eax */ 4935 ecx = ebx; /* 0x47071296: mov ecx, ebx */ 4936 RECOMP_ICALL(0x4703B240u); /* 0x47071298: call 0x4703b240 */ /* not lifted */ 4937 RECOMP_FLAGS_IN(); 4938 PUSH32(esp, eax); /* 0x4707129D: push eax */ 4939 ecx = ebx; /* 0x4707129E: mov ecx, ebx */ 4940 RECOMP_ICALL(0x4703B080u); /* 0x470712A0: call 0x4703b080 */ /* not lifted */ 4941 RECOMP_FLAGS_IN(); 4942 PUSH32(esp, eax); /* 0x470712A5: push eax */ 4943 eax = MEM32(esp + 0x1C); /* 0x470712A6: mov eax, dword ptr [esp + 0x1c] */ 4944 PUSH32(esp, eax); /* 0x470712AA: push eax */ 4945 PUSH32(esp, 0); /* 0x470712AB: push 0 */ 4946 PUSH32(esp, 0x55u); /* 0x470712AD: push 0x55 */ 4947 PUSH32(esp, 0x4710A308u); /* 0x470712AF: push 0x4710a308 */ 4948 ecx = ebx; /* 0x470712B4: mov ecx, ebx */ 4949 RECOMP_ICALL(0x4703A340u); /* 0x470712B6: call 0x4703a340 */ /* not lifted */ 4950 RECOMP_FLAGS_IN(); 4951 PUSH32(esp, ebp); /* 0x470712BB: push ebp */ 4952 PUSH32(esp, 0x471052CCu); /* 0x470712BC: push 0x471052cc */ 4953 PUSH32(esp, 4); /* 0x470712C1: push 4 */ 4954 PUSH32(esp, ebx); /* 0x470712C3: push ebx */ 4955 RECOMP_ICALL(0x47039830u); /* 0x470712C4: call 0x47039830 */ /* not lifted */ 4956 RECOMP_FLAGS_IN(); 4957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4959 esp = esp + 0x10u; /* 0x470712C9: add esp, 0x10 */ 4960 _flag_k = FK_ADD; 4961 RECOMP_ICALL(esi); /* 0x470712CC: call esi */ 4962 RECOMP_FLAGS_IN(); 4963 ebx = eax; /* 0x470712CE: mov ebx, eax */ 4964 RECOMP_ICALL(edi); /* 0x470712D0: call edi */ 4965 RECOMP_FLAGS_IN(); 4966 eax = MEM32(eax); /* 0x470712D2: mov eax, dword ptr [eax] */ 4967 /* test eax, eax */ /* 0x470712D4: test eax, eax */ 4968 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4969 _cf = 0; 4970 _flag_k = FK_TEST; 4971 MEM32(esp + 0x10) = ebx; /* 0x470712D6: mov dword ptr [esp + 0x10], ebx */ 4972 if (TEST_Z(_flag_a, _flag_b)) goto L_470712E0; /* 0x470712DA: je 0x470712e0 */ 4973 L_470712DC: 4974 MEM32(esp + 0x10) = eax; /* 0x470712DC: mov dword ptr [esp + 0x10], eax */ 4975 L_470712E0: 4976 RECOMP_ICALL(0x47039020u); /* 0x470712E0: call 0x47039020 */ /* not lifted */ 4977 RECOMP_FLAGS_IN(); 4978 ebx = eax; /* 0x470712E5: mov ebx, eax */ 4979 ecx = ebx; /* 0x470712E7: mov ecx, ebx */ 4980 RECOMP_ICALL(0x4703B210u); /* 0x470712E9: call 0x4703b210 */ /* not lifted */ 4981 RECOMP_FLAGS_IN(); 4982 PUSH32(esp, eax); /* 0x470712EE: push eax */ 4983 ecx = ebx; /* 0x470712EF: mov ecx, ebx */ 4984 RECOMP_ICALL(0x4703B240u); /* 0x470712F1: call 0x4703b240 */ /* not lifted */ 4985 RECOMP_FLAGS_IN(); 4986 PUSH32(esp, eax); /* 0x470712F6: push eax */ 4987 ecx = ebx; /* 0x470712F7: mov ecx, ebx */ 4988 RECOMP_ICALL(0x4703B080u); /* 0x470712F9: call 0x4703b080 */ /* not lifted */ 4989 RECOMP_FLAGS_IN(); 4990 ecx = MEM32(esp + 0x18); /* 0x470712FE: mov ecx, dword ptr [esp + 0x18] */ 4991 PUSH32(esp, eax); /* 0x47071302: push eax */ 4992 PUSH32(esp, ecx); /* 0x47071303: push ecx */ 4993 PUSH32(esp, 0); /* 0x47071304: push 0 */ 4994 PUSH32(esp, 0x56u); /* 0x47071306: push 0x56 */ 4995 PUSH32(esp, 0x4710A308u); /* 0x47071308: push 0x4710a308 */ 4996 ecx = ebx; /* 0x4707130D: mov ecx, ebx */ 4997 RECOMP_ICALL(0x4703A340u); /* 0x4707130F: call 0x4703a340 */ /* not lifted */ 4998 RECOMP_FLAGS_IN(); 4999 PUSH32(esp, 0x4710A358u); /* 0x47071314: push 0x4710a358 */ 5000 PUSH32(esp, 4); /* 0x47071319: push 4 */ 5001 PUSH32(esp, ebx); /* 0x4707131B: push ebx */ 5002 RECOMP_ICALL(0x47039830u); /* 0x4707131C: call 0x47039830 */ /* not lifted */ 5003 RECOMP_FLAGS_IN(); 5004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5006 esp = esp + 0xCu; /* 0x47071321: add esp, 0xc */ 5007 _flag_k = FK_ADD; 5008 RECOMP_ICALL(esi); /* 0x47071324: call esi */ 5009 RECOMP_FLAGS_IN(); 5010 ebx = eax; /* 0x47071326: mov ebx, eax */ 5011 RECOMP_ICALL(edi); /* 0x47071328: call edi */ 5012 RECOMP_FLAGS_IN(); 5013 eax = MEM32(eax); /* 0x4707132A: mov eax, dword ptr [eax] */ 5014 /* test eax, eax */ /* 0x4707132C: test eax, eax */ 5015 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5016 _cf = 0; 5017 _flag_k = FK_TEST; 5018 MEM32(esp + 0x10) = ebx; /* 0x4707132E: mov dword ptr [esp + 0x10], ebx */ 5019 if (TEST_Z(_flag_a, _flag_b)) goto L_47071338; /* 0x47071332: je 0x47071338 */ 5020 L_47071334: 5021 MEM32(esp + 0x10) = eax; /* 0x47071334: mov dword ptr [esp + 0x10], eax */ 5022 L_47071338: 5023 RECOMP_ICALL(0x47039020u); /* 0x47071338: call 0x47039020 */ /* not lifted */ 5024 RECOMP_FLAGS_IN(); 5025 ebx = eax; /* 0x4707133D: mov ebx, eax */ 5026 ecx = ebx; /* 0x4707133F: mov ecx, ebx */ 5027 RECOMP_ICALL(0x4703B210u); /* 0x47071341: call 0x4703b210 */ /* not lifted */ 5028 RECOMP_FLAGS_IN(); 5029 PUSH32(esp, eax); /* 0x47071346: push eax */ 5030 ecx = ebx; /* 0x47071347: mov ecx, ebx */ 5031 RECOMP_ICALL(0x4703B240u); /* 0x47071349: call 0x4703b240 */ /* not lifted */ 5032 RECOMP_FLAGS_IN(); 5033 PUSH32(esp, eax); /* 0x4707134E: push eax */ 5034 ecx = ebx; /* 0x4707134F: mov ecx, ebx */ 5035 RECOMP_ICALL(0x4703B080u); /* 0x47071351: call 0x4703b080 */ /* not lifted */ 5036 RECOMP_FLAGS_IN(); 5037 edx = MEM32(esp + 0x18); /* 0x47071356: mov edx, dword ptr [esp + 0x18] */ 5038 PUSH32(esp, eax); /* 0x4707135A: push eax */ 5039 PUSH32(esp, edx); /* 0x4707135B: push edx */ 5040 PUSH32(esp, 0); /* 0x4707135C: push 0 */ 5041 PUSH32(esp, 0x57u); /* 0x4707135E: push 0x57 */ 5042 PUSH32(esp, 0x4710A308u); /* 0x47071360: push 0x4710a308 */ 5043 ecx = ebx; /* 0x47071365: mov ecx, ebx */ 5044 RECOMP_ICALL(0x4703A340u); /* 0x47071367: call 0x4703a340 */ /* not lifted */ 5045 RECOMP_FLAGS_IN(); 5046 PUSH32(esp, 0x4710A344u); /* 0x4707136C: push 0x4710a344 */ 5047 PUSH32(esp, 4); /* 0x47071371: push 4 */ 5048 PUSH32(esp, ebx); /* 0x47071373: push ebx */ 5049 RECOMP_ICALL(0x47039830u); /* 0x47071374: call 0x47039830 */ /* not lifted */ 5050 RECOMP_FLAGS_IN(); 5051 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5052 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5053 esp = esp + 0xCu; /* 0x47071379: add esp, 0xc */ 5054 _flag_k = FK_ADD; 5055 ecx = 0x4710EC68u; /* 0x4707137C: mov ecx, 0x4710ec68 */ 5056 RECOMP_ICALL(0x470315E0u); /* 0x47071381: call 0x470315e0 */ /* not lifted */ 5057 RECOMP_FLAGS_IN(); 5058 RECOMP_ICALL(esi); /* 0x47071386: call esi */ 5059 RECOMP_FLAGS_IN(); 5060 ebx = eax; /* 0x47071388: mov ebx, eax */ 5061 RECOMP_ICALL(edi); /* 0x4707138A: call edi */ 5062 RECOMP_FLAGS_IN(); 5063 eax = MEM32(eax); /* 0x4707138C: mov eax, dword ptr [eax] */ 5064 /* test eax, eax */ /* 0x4707138E: test eax, eax */ 5065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5066 _cf = 0; 5067 _flag_k = FK_TEST; 5068 MEM32(esp + 0x10) = ebx; /* 0x47071390: mov dword ptr [esp + 0x10], ebx */ 5069 if (TEST_Z(_flag_a, _flag_b)) goto L_4707139A; /* 0x47071394: je 0x4707139a */ 5070 L_47071396: 5071 MEM32(esp + 0x10) = eax; /* 0x47071396: mov dword ptr [esp + 0x10], eax */ 5072 L_4707139A: 5073 RECOMP_ICALL(0x47039020u); /* 0x4707139A: call 0x47039020 */ /* not lifted */ 5074 RECOMP_FLAGS_IN(); 5075 ebx = eax; /* 0x4707139F: mov ebx, eax */ 5076 ecx = ebx; /* 0x470713A1: mov ecx, ebx */ 5077 RECOMP_ICALL(0x4703B210u); /* 0x470713A3: call 0x4703b210 */ /* not lifted */ 5078 RECOMP_FLAGS_IN(); 5079 PUSH32(esp, eax); /* 0x470713A8: push eax */ 5080 ecx = ebx; /* 0x470713A9: mov ecx, ebx */ 5081 RECOMP_ICALL(0x4703B240u); /* 0x470713AB: call 0x4703b240 */ /* not lifted */ 5082 RECOMP_FLAGS_IN(); 5083 PUSH32(esp, eax); /* 0x470713B0: push eax */ 5084 ecx = ebx; /* 0x470713B1: mov ecx, ebx */ 5085 RECOMP_ICALL(0x4703B080u); /* 0x470713B3: call 0x4703b080 */ /* not lifted */ 5086 RECOMP_FLAGS_IN(); 5087 PUSH32(esp, eax); /* 0x470713B8: push eax */ 5088 eax = MEM32(esp + 0x1C); /* 0x470713B9: mov eax, dword ptr [esp + 0x1c] */ 5089 PUSH32(esp, eax); /* 0x470713BD: push eax */ 5090 PUSH32(esp, 0); /* 0x470713BE: push 0 */ 5091 PUSH32(esp, 0x59u); /* 0x470713C0: push 0x59 */ 5092 PUSH32(esp, 0x4710A308u); /* 0x470713C2: push 0x4710a308 */ 5093 ecx = ebx; /* 0x470713C7: mov ecx, ebx */ 5094 RECOMP_ICALL(0x4703A340u); /* 0x470713C9: call 0x4703a340 */ /* not lifted */ 5095 RECOMP_FLAGS_IN(); 5096 PUSH32(esp, 0x47106EA4u); /* 0x470713CE: push 0x47106ea4 */ 5097 PUSH32(esp, 4); /* 0x470713D3: push 4 */ 5098 PUSH32(esp, ebx); /* 0x470713D5: push ebx */ 5099 RECOMP_ICALL(0x47039830u); /* 0x470713D6: call 0x47039830 */ /* not lifted */ 5100 RECOMP_FLAGS_IN(); 5101 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5103 esp = esp + 0xCu; /* 0x470713DB: add esp, 0xc */ 5104 _flag_k = FK_ADD; 5105 RECOMP_ICALL(esi); /* 0x470713DE: call esi */ 5106 RECOMP_FLAGS_IN(); 5107 ebx = eax; /* 0x470713E0: mov ebx, eax */ 5108 RECOMP_ICALL(edi); /* 0x470713E2: call edi */ 5109 RECOMP_FLAGS_IN(); 5110 eax = MEM32(eax); /* 0x470713E4: mov eax, dword ptr [eax] */ 5111 /* test eax, eax */ /* 0x470713E6: test eax, eax */ 5112 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5113 _cf = 0; 5114 _flag_k = FK_TEST; 5115 MEM32(esp + 0x10) = ebx; /* 0x470713E8: mov dword ptr [esp + 0x10], ebx */ 5116 if (TEST_Z(_flag_a, _flag_b)) goto L_470713F2; /* 0x470713EC: je 0x470713f2 */ 5117 L_470713EE: 5118 MEM32(esp + 0x10) = eax; /* 0x470713EE: mov dword ptr [esp + 0x10], eax */ 5119 L_470713F2: 5120 RECOMP_ICALL(0x47039020u); /* 0x470713F2: call 0x47039020 */ /* not lifted */ 5121 RECOMP_FLAGS_IN(); 5122 ebx = eax; /* 0x470713F7: mov ebx, eax */ 5123 ecx = ebx; /* 0x470713F9: mov ecx, ebx */ 5124 RECOMP_ICALL(0x4703B210u); /* 0x470713FB: call 0x4703b210 */ /* not lifted */ 5125 RECOMP_FLAGS_IN(); 5126 PUSH32(esp, eax); /* 0x47071400: push eax */ 5127 ecx = ebx; /* 0x47071401: mov ecx, ebx */ 5128 RECOMP_ICALL(0x4703B240u); /* 0x47071403: call 0x4703b240 */ /* not lifted */ 5129 RECOMP_FLAGS_IN(); 5130 PUSH32(esp, eax); /* 0x47071408: push eax */ 5131 ecx = ebx; /* 0x47071409: mov ecx, ebx */ 5132 RECOMP_ICALL(0x4703B080u); /* 0x4707140B: call 0x4703b080 */ /* not lifted */ 5133 RECOMP_FLAGS_IN(); 5134 ecx = MEM32(esp + 0x18); /* 0x47071410: mov ecx, dword ptr [esp + 0x18] */ 5135 PUSH32(esp, eax); /* 0x47071414: push eax */ 5136 PUSH32(esp, ecx); /* 0x47071415: push ecx */ 5137 PUSH32(esp, 0); /* 0x47071416: push 0 */ 5138 PUSH32(esp, 0x15Au); /* 0x47071418: push 0x15a */ 5139 PUSH32(esp, 0x47105FB8u); /* 0x4707141D: push 0x47105fb8 */ 5140 ecx = ebx; /* 0x47071422: mov ecx, ebx */ 5141 RECOMP_ICALL(0x4703A340u); /* 0x47071424: call 0x4703a340 */ /* not lifted */ 5142 RECOMP_FLAGS_IN(); 5143 PUSH32(esp, ebp); /* 0x47071429: push ebp */ 5144 PUSH32(esp, 0x471052CCu); /* 0x4707142A: push 0x471052cc */ 5145 PUSH32(esp, 4); /* 0x4707142F: push 4 */ 5146 PUSH32(esp, ebx); /* 0x47071431: push ebx */ 5147 RECOMP_ICALL(0x47039830u); /* 0x47071432: call 0x47039830 */ /* not lifted */ 5148 RECOMP_FLAGS_IN(); 5149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5151 esp = esp + 0x10u; /* 0x47071437: add esp, 0x10 */ 5152 _flag_k = FK_ADD; 5153 ecx = ebp + 0x4; /* 0x4707143A: lea ecx, [ebp + 4] */ 5154 RECOMP_ICALL(0x47087D10u); /* 0x4707143D: call 0x47087d10 */ /* not lifted */ 5155 RECOMP_FLAGS_IN(); 5156 RECOMP_ICALL(esi); /* 0x47071442: call esi */ 5157 RECOMP_FLAGS_IN(); 5158 ebx = eax; /* 0x47071444: mov ebx, eax */ 5159 RECOMP_ICALL(edi); /* 0x47071446: call edi */ 5160 RECOMP_FLAGS_IN(); 5161 eax = MEM32(eax); /* 0x47071448: mov eax, dword ptr [eax] */ 5162 /* test eax, eax */ /* 0x4707144A: test eax, eax */ 5163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5164 _cf = 0; 5165 _flag_k = FK_TEST; 5166 MEM32(esp + 0x10) = ebx; /* 0x4707144C: mov dword ptr [esp + 0x10], ebx */ 5167 if (TEST_Z(_flag_a, _flag_b)) goto L_47071456; /* 0x47071450: je 0x47071456 */ 5168 L_47071452: 5169 MEM32(esp + 0x10) = eax; /* 0x47071452: mov dword ptr [esp + 0x10], eax */ 5170 L_47071456: 5171 RECOMP_ICALL(0x47039020u); /* 0x47071456: call 0x47039020 */ /* not lifted */ 5172 RECOMP_FLAGS_IN(); 5173 ebx = eax; /* 0x4707145B: mov ebx, eax */ 5174 ecx = ebx; /* 0x4707145D: mov ecx, ebx */ 5175 RECOMP_ICALL(0x4703B210u); /* 0x4707145F: call 0x4703b210 */ /* not lifted */ 5176 RECOMP_FLAGS_IN(); 5177 PUSH32(esp, eax); /* 0x47071464: push eax */ 5178 ecx = ebx; /* 0x47071465: mov ecx, ebx */ 5179 RECOMP_ICALL(0x4703B240u); /* 0x47071467: call 0x4703b240 */ /* not lifted */ 5180 RECOMP_FLAGS_IN(); 5181 PUSH32(esp, eax); /* 0x4707146C: push eax */ 5182 ecx = ebx; /* 0x4707146D: mov ecx, ebx */ 5183 RECOMP_ICALL(0x4703B080u); /* 0x4707146F: call 0x4703b080 */ /* not lifted */ 5184 RECOMP_FLAGS_IN(); 5185 edx = MEM32(esp + 0x18); /* 0x47071474: mov edx, dword ptr [esp + 0x18] */ 5186 PUSH32(esp, eax); /* 0x47071478: push eax */ 5187 PUSH32(esp, edx); /* 0x47071479: push edx */ 5188 PUSH32(esp, 0); /* 0x4707147A: push 0 */ 5189 PUSH32(esp, 0x15Cu); /* 0x4707147C: push 0x15c */ 5190 PUSH32(esp, 0x47105FB8u); /* 0x47071481: push 0x47105fb8 */ 5191 ecx = ebx; /* 0x47071486: mov ecx, ebx */ 5192 RECOMP_ICALL(0x4703A340u); /* 0x47071488: call 0x4703a340 */ /* not lifted */ 5193 RECOMP_FLAGS_IN(); 5194 eax = MEM32(ebp + 0x24); /* 0x4707148D: mov eax, dword ptr [ebp + 0x24] */ 5195 PUSH32(esp, eax); /* 0x47071490: push eax */ 5196 PUSH32(esp, 0x47106E98u); /* 0x47071491: push 0x47106e98 */ 5197 PUSH32(esp, 4); /* 0x47071496: push 4 */ 5198 PUSH32(esp, ebx); /* 0x47071498: push ebx */ 5199 RECOMP_ICALL(0x47039830u); /* 0x47071499: call 0x47039830 */ /* not lifted */ 5200 RECOMP_FLAGS_IN(); 5201 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5202 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5203 esp = esp + 0x10u; /* 0x4707149E: add esp, 0x10 */ 5204 _flag_k = FK_ADD; 5205 RECOMP_ICALL(esi); /* 0x470714A1: call esi */ 5206 RECOMP_FLAGS_IN(); 5207 ebx = eax; /* 0x470714A3: mov ebx, eax */ 5208 RECOMP_ICALL(edi); /* 0x470714A5: call edi */ 5209 RECOMP_FLAGS_IN(); 5210 eax = MEM32(eax); /* 0x470714A7: mov eax, dword ptr [eax] */ 5211 /* test eax, eax */ /* 0x470714A9: test eax, eax */ 5212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5213 _cf = 0; 5214 _flag_k = FK_TEST; 5215 MEM32(esp + 0x10) = ebx; /* 0x470714AB: mov dword ptr [esp + 0x10], ebx */ 5216 if (TEST_Z(_flag_a, _flag_b)) goto L_470714B5; /* 0x470714AF: je 0x470714b5 */ 5217 L_470714B1: 5218 MEM32(esp + 0x10) = eax; /* 0x470714B1: mov dword ptr [esp + 0x10], eax */ 5219 L_470714B5: 5220 RECOMP_ICALL(0x47039020u); /* 0x470714B5: call 0x47039020 */ /* not lifted */ 5221 RECOMP_FLAGS_IN(); 5222 ebx = eax; /* 0x470714BA: mov ebx, eax */ 5223 ecx = ebx; /* 0x470714BC: mov ecx, ebx */ 5224 RECOMP_ICALL(0x4703B210u); /* 0x470714BE: call 0x4703b210 */ /* not lifted */ 5225 RECOMP_FLAGS_IN(); 5226 PUSH32(esp, eax); /* 0x470714C3: push eax */ 5227 ecx = ebx; /* 0x470714C4: mov ecx, ebx */ 5228 RECOMP_ICALL(0x4703B240u); /* 0x470714C6: call 0x4703b240 */ /* not lifted */ 5229 RECOMP_FLAGS_IN(); 5230 PUSH32(esp, eax); /* 0x470714CB: push eax */ 5231 ecx = ebx; /* 0x470714CC: mov ecx, ebx */ 5232 RECOMP_ICALL(0x4703B080u); /* 0x470714CE: call 0x4703b080 */ /* not lifted */ 5233 RECOMP_FLAGS_IN(); 5234 ecx = MEM32(esp + 0x18); /* 0x470714D3: mov ecx, dword ptr [esp + 0x18] */ 5235 PUSH32(esp, eax); /* 0x470714D7: push eax */ 5236 PUSH32(esp, ecx); /* 0x470714D8: push ecx */ 5237 PUSH32(esp, 0); /* 0x470714D9: push 0 */ 5238 PUSH32(esp, 0x15Du); /* 0x470714DB: push 0x15d */ 5239 PUSH32(esp, 0x47105FB8u); /* 0x470714E0: push 0x47105fb8 */ 5240 ecx = ebx; /* 0x470714E5: mov ecx, ebx */ 5241 RECOMP_ICALL(0x4703A340u); /* 0x470714E7: call 0x4703a340 */ /* not lifted */ 5242 RECOMP_FLAGS_IN(); 5243 edx = MEM32(ebp + 0x20); /* 0x470714EC: mov edx, dword ptr [ebp + 0x20] */ 5244 PUSH32(esp, edx); /* 0x470714EF: push edx */ 5245 PUSH32(esp, 0x47106E8Cu); /* 0x470714F0: push 0x47106e8c */ 5246 PUSH32(esp, 4); /* 0x470714F5: push 4 */ 5247 PUSH32(esp, ebx); /* 0x470714F7: push ebx */ 5248 RECOMP_ICALL(0x47039830u); /* 0x470714F8: call 0x47039830 */ /* not lifted */ 5249 RECOMP_FLAGS_IN(); 5250 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5252 esp = esp + 0x10u; /* 0x470714FD: add esp, 0x10 */ 5253 _flag_k = FK_ADD; 5254 RECOMP_ICALL(esi); /* 0x47071500: call esi */ 5255 RECOMP_FLAGS_IN(); 5256 ebp = eax; /* 0x47071502: mov ebp, eax */ 5257 RECOMP_ICALL(edi); /* 0x47071504: call edi */ 5258 RECOMP_FLAGS_IN(); 5259 eax = MEM32(eax); /* 0x47071506: mov eax, dword ptr [eax] */ 5260 /* test eax, eax */ /* 0x47071508: test eax, eax */ 5261 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5262 _cf = 0; 5263 _flag_k = FK_TEST; 5264 if (TEST_Z(_flag_a, _flag_b)) goto L_4707150E; /* 0x4707150A: je 0x4707150e */ 5265 L_4707150C: 5266 ebp = eax; /* 0x4707150C: mov ebp, eax */ 5267 L_4707150E: 5268 RECOMP_ICALL(0x47039020u); /* 0x4707150E: call 0x47039020 */ /* not lifted */ 5269 RECOMP_FLAGS_IN(); 5270 ebx = eax; /* 0x47071513: mov ebx, eax */ 5271 ecx = ebx; /* 0x47071515: mov ecx, ebx */ 5272 RECOMP_ICALL(0x4703B210u); /* 0x47071517: call 0x4703b210 */ /* not lifted */ 5273 RECOMP_FLAGS_IN(); 5274 PUSH32(esp, eax); /* 0x4707151C: push eax */ 5275 ecx = ebx; /* 0x4707151D: mov ecx, ebx */ 5276 RECOMP_ICALL(0x4703B240u); /* 0x4707151F: call 0x4703b240 */ /* not lifted */ 5277 RECOMP_FLAGS_IN(); 5278 PUSH32(esp, eax); /* 0x47071524: push eax */ 5279 ecx = ebx; /* 0x47071525: mov ecx, ebx */ 5280 RECOMP_ICALL(0x4703B080u); /* 0x47071527: call 0x4703b080 */ /* not lifted */ 5281 RECOMP_FLAGS_IN(); 5282 PUSH32(esp, eax); /* 0x4707152C: push eax */ 5283 PUSH32(esp, ebp); /* 0x4707152D: push ebp */ 5284 PUSH32(esp, 0); /* 0x4707152E: push 0 */ 5285 PUSH32(esp, 0x15Eu); /* 0x47071530: push 0x15e */ 5286 PUSH32(esp, 0x47105FB8u); /* 0x47071535: push 0x47105fb8 */ 5287 ecx = ebx; /* 0x4707153A: mov ecx, ebx */ 5288 RECOMP_ICALL(0x4703A340u); /* 0x4707153C: call 0x4703a340 */ /* not lifted */ 5289 RECOMP_FLAGS_IN(); 5290 PUSH32(esp, 0x47105590u); /* 0x47071541: push 0x47105590 */ 5291 PUSH32(esp, 4); /* 0x47071546: push 4 */ 5292 PUSH32(esp, ebx); /* 0x47071548: push ebx */ 5293 RECOMP_ICALL(0x47039830u); /* 0x47071549: call 0x47039830 */ /* not lifted */ 5294 RECOMP_FLAGS_IN(); 5295 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5296 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5297 esp = esp + 0xCu; /* 0x4707154E: add esp, 0xc */ 5298 _flag_k = FK_ADD; 5299 RECOMP_ICALL(esi); /* 0x47071551: call esi */ 5300 RECOMP_FLAGS_IN(); 5301 ebp = eax; /* 0x47071553: mov ebp, eax */ 5302 RECOMP_ICALL(edi); /* 0x47071555: call edi */ 5303 RECOMP_FLAGS_IN(); 5304 eax = MEM32(eax); /* 0x47071557: mov eax, dword ptr [eax] */ 5305 /* test eax, eax */ /* 0x47071559: test eax, eax */ 5306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5307 _cf = 0; 5308 _flag_k = FK_TEST; 5309 if (TEST_Z(_flag_a, _flag_b)) goto L_4707155F; /* 0x4707155B: je 0x4707155f */ 5310 L_4707155D: 5311 ebp = eax; /* 0x4707155D: mov ebp, eax */ 5312 L_4707155F: 5313 RECOMP_ICALL(0x47039020u); /* 0x4707155F: call 0x47039020 */ /* not lifted */ 5314 RECOMP_FLAGS_IN(); 5315 ebx = eax; /* 0x47071564: mov ebx, eax */ 5316 ecx = ebx; /* 0x47071566: mov ecx, ebx */ 5317 RECOMP_ICALL(0x4703B210u); /* 0x47071568: call 0x4703b210 */ /* not lifted */ 5318 RECOMP_FLAGS_IN(); 5319 PUSH32(esp, eax); /* 0x4707156D: push eax */ 5320 ecx = ebx; /* 0x4707156E: mov ecx, ebx */ 5321 RECOMP_ICALL(0x4703B240u); /* 0x47071570: call 0x4703b240 */ /* not lifted */ 5322 RECOMP_FLAGS_IN(); 5323 PUSH32(esp, eax); /* 0x47071575: push eax */ 5324 ecx = ebx; /* 0x47071576: mov ecx, ebx */ 5325 RECOMP_ICALL(0x4703B080u); /* 0x47071578: call 0x4703b080 */ /* not lifted */ 5326 RECOMP_FLAGS_IN(); 5327 PUSH32(esp, eax); /* 0x4707157D: push eax */ 5328 PUSH32(esp, ebp); /* 0x4707157E: push ebp */ 5329 PUSH32(esp, 0); /* 0x4707157F: push 0 */ 5330 PUSH32(esp, 0x15Fu); /* 0x47071581: push 0x15f */ 5331 PUSH32(esp, 0x47105FB8u); /* 0x47071586: push 0x47105fb8 */ 5332 ecx = ebx; /* 0x4707158B: mov ecx, ebx */ 5333 RECOMP_ICALL(0x4703A340u); /* 0x4707158D: call 0x4703a340 */ /* not lifted */ 5334 RECOMP_FLAGS_IN(); 5335 PUSH32(esp, 0x4710529Cu); /* 0x47071592: push 0x4710529c */ 5336 PUSH32(esp, 4); /* 0x47071597: push 4 */ 5337 PUSH32(esp, ebx); /* 0x47071599: push ebx */ 5338 RECOMP_ICALL(0x47039830u); /* 0x4707159A: call 0x47039830 */ /* not lifted */ 5339 RECOMP_FLAGS_IN(); 5340 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5341 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5342 esp = esp + 0xCu; /* 0x4707159F: add esp, 0xc */ 5343 _flag_k = FK_ADD; 5344 RECOMP_ICALL(esi); /* 0x470715A2: call esi */ 5345 RECOMP_FLAGS_IN(); 5346 esi = eax; /* 0x470715A4: mov esi, eax */ 5347 RECOMP_ICALL(edi); /* 0x470715A6: call edi */ 5348 RECOMP_FLAGS_IN(); 5349 eax = MEM32(eax); /* 0x470715A8: mov eax, dword ptr [eax] */ 5350 /* test eax, eax */ /* 0x470715AA: test eax, eax */ 5351 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5352 _cf = 0; 5353 _flag_k = FK_TEST; 5354 edi = esi; /* 0x470715AC: mov edi, esi */ 5355 if (TEST_Z(_flag_a, _flag_b)) goto L_470715B2; /* 0x470715AE: je 0x470715b2 */ 5356 L_470715B0: 5357 edi = eax; /* 0x470715B0: mov edi, eax */ 5358 L_470715B2: 5359 RECOMP_ICALL(0x47039020u); /* 0x470715B2: call 0x47039020 */ /* not lifted */ 5360 RECOMP_FLAGS_IN(); 5361 esi = eax; /* 0x470715B7: mov esi, eax */ 5362 ecx = esi; /* 0x470715B9: mov ecx, esi */ 5363 RECOMP_ICALL(0x4703B210u); /* 0x470715BB: call 0x4703b210 */ /* not lifted */ 5364 RECOMP_FLAGS_IN(); 5365 PUSH32(esp, eax); /* 0x470715C0: push eax */ 5366 ecx = esi; /* 0x470715C1: mov ecx, esi */ 5367 RECOMP_ICALL(0x4703B240u); /* 0x470715C3: call 0x4703b240 */ /* not lifted */ 5368 RECOMP_FLAGS_IN(); 5369 PUSH32(esp, eax); /* 0x470715C8: push eax */ 5370 ecx = esi; /* 0x470715C9: mov ecx, esi */ 5371 RECOMP_ICALL(0x4703B080u); /* 0x470715CB: call 0x4703b080 */ /* not lifted */ 5372 RECOMP_FLAGS_IN(); 5373 PUSH32(esp, eax); /* 0x470715D0: push eax */ 5374 PUSH32(esp, edi); /* 0x470715D1: push edi */ 5375 PUSH32(esp, 0); /* 0x470715D2: push 0 */ 5376 PUSH32(esp, 0x5Bu); /* 0x470715D4: push 0x5b */ 5377 PUSH32(esp, 0x4710A308u); /* 0x470715D6: push 0x4710a308 */ 5378 ecx = esi; /* 0x470715DB: mov ecx, esi */ 5379 RECOMP_ICALL(0x4703A340u); /* 0x470715DD: call 0x4703a340 */ /* not lifted */ 5380 RECOMP_FLAGS_IN(); 5381 PUSH32(esp, 0x4710529Cu); /* 0x470715E2: push 0x4710529c */ 5382 PUSH32(esp, 4); /* 0x470715E7: push 4 */ 5383 PUSH32(esp, esi); /* 0x470715E9: push esi */ 5384 RECOMP_ICALL(0x47039830u); /* 0x470715EA: call 0x47039830 */ /* not lifted */ 5385 RECOMP_FLAGS_IN(); 5386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5388 esp = esp + 0xCu; /* 0x470715EF: add esp, 0xc */ 5389 _flag_k = FK_ADD; 5390 edi = POP32_VAL(esp); /* 0x470715F2: pop edi */ 5391 esi = POP32_VAL(esp); /* 0x470715F3: pop esi */ 5392 ebp = POP32_VAL(esp); /* 0x470715F4: pop ebp */ 5393 ebx = POP32_VAL(esp); /* 0x470715F5: pop ebx */ 5394 ecx = POP32_VAL(esp); /* 0x470715F6: pop ecx */ 5395 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470715F7: ret */ 5396 RECOMP_REGS_OUT(); 5397 } 5398 5399 void sub_47071600(void) { 5400 int _fpu_cmp = 0; 5401 uint32_t _cf = 0; 5402 int _df = 1; 5403 uint32_t _flag_k = FK_NONE; 5404 uint32_t _flag_a = 0, _flag_b = 0; 5405 uint32_t _itail_tgt = 0; 5406 RECOMP_REGS_LOCALS 5407 RECOMP_ENTER(0x47071600u); 5408 5409 L_47071600: 5410 PUSH32(esp, esi); /* 0x47071600: push esi */ 5411 esi = ecx; /* 0x47071601: mov esi, ecx */ 5412 RECOMP_ICALL(0x47037820u); /* 0x47071603: call 0x47037820 */ /* not lifted */ 5413 RECOMP_FLAGS_IN(); 5414 MEM32(esi) = 0x470AEBE8u; /* 0x47071608: mov dword ptr [esi], 0x470aebe8 */ 5415 eax = esi; /* 0x4707160E: mov eax, esi */ 5416 esi = POP32_VAL(esp); /* 0x47071610: pop esi */ 5417 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47071611: ret */ 5418 RECOMP_REGS_OUT(); 5419 } 5420 5421 void sub_47071620(void) { 5422 int _fpu_cmp = 0; 5423 uint32_t _cf = 0; 5424 int _df = 1; 5425 uint32_t _flag_k = FK_NONE; 5426 uint32_t _flag_a = 0, _flag_b = 0; 5427 uint32_t _itail_tgt = 0; 5428 RECOMP_REGS_LOCALS 5429 RECOMP_ENTER(0x47071620u); 5430 5431 goto L_47071620; 5432 L_47037960: 5433 PUSH32(esp, 0xFFFFFFFFu); /* 0x47037960: push -1 */ 5434 PUSH32(esp, 0x470A5E06u); /* 0x47037962: push 0x470a5e06 */ 5435 eax = MEM32(FS_BASE + (0)); /* 0x47037967: mov eax, dword ptr fs:[0] */ 5436 PUSH32(esp, eax); /* 0x4703796D: push eax */ 5437 MEM32(FS_BASE + (0)) = esp; /* 0x4703796E: mov dword ptr fs:[0], esp */ 5438 PUSH32(esp, ecx); /* 0x47037975: push ecx */ 5439 PUSH32(esp, esi); /* 0x47037976: push esi */ 5440 esi = ecx; /* 0x47037977: mov esi, ecx */ 5441 MEM32(esp + 0x4) = esi; /* 0x47037979: mov dword ptr [esp + 4], esi */ 5442 MEM32(esi) = 0x470AD3F8u; /* 0x4703797D: mov dword ptr [esi], 0x470ad3f8 */ 5443 ecx = MEM32(esi + 0xC); /* 0x47037983: mov ecx, dword ptr [esi + 0xc] */ 5444 /* test ecx, ecx */ /* 0x47037986: test ecx, ecx */ 5445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5446 _cf = 0; 5447 _flag_k = FK_TEST; 5448 eax = esi + 0xC; /* 0x47037988: lea eax, [esi + 0xc] */ 5449 MEM32(esp + 0x10) = 0; /* 0x4703798B: mov dword ptr [esp + 0x10], 0 */ 5450 if (TEST_Z(_flag_a, _flag_b)) goto L_470379A2; /* 0x47037993: je 0x470379a2 */ 5451 L_47037995: 5452 PUSH32(esp, eax); /* 0x47037995: push eax */ 5453 RECOMP_ICALL(0x470942F0u); /* 0x47037996: call 0x470942f0 */ /* not lifted */ 5454 RECOMP_FLAGS_IN(); 5455 ecx = eax; /* 0x4703799B: mov ecx, eax */ 5456 RECOMP_ICALL(0x47094930u); /* 0x4703799D: call 0x47094930 */ /* not lifted */ 5457 RECOMP_FLAGS_IN(); 5458 L_470379A2: 5459 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 5460 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5461 esi = esi + 0x10u; /* 0x470379A2: add esi, 0x10 */ 5462 _flag_k = FK_ADD; 5463 MEM32(esp + 0x4) = esi; /* 0x470379A5: mov dword ptr [esp + 4], esi */ 5464 MEM32(esi) = 0x470AD3F0u; /* 0x470379A9: mov dword ptr [esi], 0x470ad3f0 */ 5465 PUSH32(esp, esi); /* 0x470379AF: push esi */ 5466 MEM32(esp + 0x14) = 1; /* 0x470379B0: mov dword ptr [esp + 0x14], 1 */ 5467 RECOMP_ICALL(0x470562A0u); /* 0x470379B8: call 0x470562a0 */ /* not lifted */ 5468 RECOMP_FLAGS_IN(); 5469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5471 esp = esp + 4; /* 0x470379BD: add esp, 4 */ 5472 _flag_k = FK_ADD; 5473 ecx = esi + 0x4; /* 0x470379C0: lea ecx, [esi + 4] */ 5474 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470379C3: mov dword ptr [esp + 0x10], 0xffffffff */ 5475 RECOMP_ICALL(0x47087E30u); /* 0x470379CB: call 0x47087e30 */ /* not lifted */ 5476 RECOMP_FLAGS_IN(); 5477 ecx = MEM32(esp + 0x8); /* 0x470379D0: mov ecx, dword ptr [esp + 8] */ 5478 esi = POP32_VAL(esp); /* 0x470379D4: pop esi */ 5479 MEM32(FS_BASE + (0)) = ecx; /* 0x470379D5: mov dword ptr fs:[0], ecx */ 5480 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5481 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5482 esp = esp + 0x10u; /* 0x470379DC: add esp, 0x10 */ 5483 _flag_k = FK_ADD; 5484 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470379DF: ret */ 5485 L_47071620: 5486 MEM32(ecx) = 0x470AEBE8u; /* 0x47071620: mov dword ptr [ecx], 0x470aebe8 */ 5487 RECOMP_BACKEDGE(); 5488 goto L_47037960; /* 0x47071626: jmp 0x47037960 */ 5489 { RECOMP_REGS_OUT(); return; } /* end of function */ 5490 RECOMP_REGS_OUT(); 5491 } 5492 5493 void sub_47071630(void) { 5494 int _fpu_cmp = 0; 5495 uint32_t _cf = 0; 5496 int _df = 1; 5497 uint32_t _flag_k = FK_NONE; 5498 uint32_t _flag_a = 0, _flag_b = 0; 5499 uint32_t _itail_tgt = 0; 5500 RECOMP_REGS_LOCALS 5501 RECOMP_ENTER(0x47071630u); 5502 5503 L_47071630: 5504 edx = MEM32(esp + 0xC); /* 0x47071630: mov edx, dword ptr [esp + 0xc] */ 5505 eax = MEM32(esp + 0x8); /* 0x47071634: mov eax, dword ptr [esp + 8] */ 5506 PUSH32(esp, edx); /* 0x47071638: push edx */ 5507 MEM32(ecx + 0x40) = eax; /* 0x47071639: mov dword ptr [ecx + 0x40], eax */ 5508 eax = MEM32(esp + 0x8); /* 0x4707163C: mov eax, dword ptr [esp + 8] */ 5509 PUSH32(esp, 0); /* 0x47071640: push 0 */ 5510 PUSH32(esp, eax); /* 0x47071642: push eax */ 5511 RECOMP_ICALL(0x470379E0u); /* 0x47071643: call 0x470379e0 */ /* not lifted */ 5512 RECOMP_FLAGS_IN(); 5513 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47071648: ret 0xc */ 5514 RECOMP_REGS_OUT(); 5515 } 5516 5517 void sub_47071650(void) { 5518 int _fpu_cmp = 0; 5519 uint32_t _cf = 0; 5520 int _df = 1; 5521 uint32_t _flag_k = FK_NONE; 5522 uint32_t _flag_a = 0, _flag_b = 0; 5523 uint32_t _itail_tgt = 0; 5524 RECOMP_REGS_LOCALS 5525 RECOMP_ENTER(0x47071650u); 5526 5527 L_47071650: 5528 RECOMP_ICALL(0x470729B0u); /* 0x47071650: call 0x470729b0 */ /* not lifted */ 5529 RECOMP_FLAGS_IN(); 5530 eax = MEM32(esp + 0x4); /* 0x47071655: mov eax, dword ptr [esp + 4] */ 5531 ecx = MEM32(eax + 0x4); /* 0x47071659: mov ecx, dword ptr [eax + 4] */ 5532 MEM32(0x4710EC6C) = ecx; /* 0x4707165C: mov dword ptr [0x4710ec6c], ecx */ 5533 edx = MEM32(eax + 0x8); /* 0x47071662: mov edx, dword ptr [eax + 8] */ 5534 MEM32(0x4710EC70) = edx; /* 0x47071665: mov dword ptr [0x4710ec70], edx */ 5535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 5536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5537 eax = eax + 0xCu; /* 0x4707166B: add eax, 0xc */ 5538 _flag_k = FK_ADD; 5539 ecx = MEM32(eax); /* 0x4707166E: mov ecx, dword ptr [eax] */ 5540 MEM32(0x4710EC74) = ecx; /* 0x47071670: mov dword ptr [0x4710ec74], ecx */ 5541 edx = MEM32(eax + 0x4); /* 0x47071676: mov edx, dword ptr [eax + 4] */ 5542 MEM32(0x4710EC78) = edx; /* 0x47071679: mov dword ptr [0x4710ec78], edx */ 5543 ecx = MEM32(eax + 0x8); /* 0x4707167F: mov ecx, dword ptr [eax + 8] */ 5544 MEM32(0x4710EC7C) = ecx; /* 0x47071682: mov dword ptr [0x4710ec7c], ecx */ 5545 edx = MEM32(eax + 0xC); /* 0x47071688: mov edx, dword ptr [eax + 0xc] */ 5546 MEM32(0x4710EC80) = edx; /* 0x4707168B: mov dword ptr [0x4710ec80], edx */ 5547 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47071691: ret */ 5548 RECOMP_REGS_OUT(); 5549 } 5550 5551 void sub_470716A0(void) { 5552 int _fpu_cmp = 0; 5553 uint32_t _cf = 0; 5554 int _df = 1; 5555 uint32_t _flag_k = FK_NONE; 5556 uint32_t _flag_a = 0, _flag_b = 0; 5557 uint32_t _itail_tgt = 0; 5558 RECOMP_REGS_LOCALS 5559 RECOMP_ENTER(0x470716A0u); 5560 5561 L_470716A0: 5562 PUSH32(esp, ecx); /* 0x470716A0: push ecx */ 5563 eax = MEM32(ecx + 0xC); /* 0x470716A1: mov eax, dword ptr [ecx + 0xc] */ 5564 /* test eax, eax */ /* 0x470716A4: test eax, eax */ 5565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5566 _cf = 0; 5567 _flag_k = FK_TEST; 5568 PUSH32(esp, esi); /* 0x470716A6: push esi */ 5569 if (TEST_NZ(_flag_a, _flag_b)) goto L_47071717; /* 0x470716A7: jne 0x47071717 */ 5570 L_470716A9: 5571 esi = MEM32(0x470AC3C8); /* 0x470716A9: mov esi, dword ptr [0x470ac3c8] */ 5572 PUSH32(esp, edi); /* 0x470716AF: push edi */ 5573 RECOMP_ICALL(esi); /* 0x470716B0: call esi */ 5574 RECOMP_FLAGS_IN(); 5575 MEM32(eax) = 2; /* 0x470716B2: mov dword ptr [eax], 2 */ 5576 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470716B8: call dword ptr [0x470ac150] */ 5577 RECOMP_FLAGS_IN(); 5578 edi = eax; /* 0x470716BE: mov edi, eax */ 5579 RECOMP_ICALL(esi); /* 0x470716C0: call esi */ 5580 RECOMP_FLAGS_IN(); 5581 eax = MEM32(eax); /* 0x470716C2: mov eax, dword ptr [eax] */ 5582 /* test eax, eax */ /* 0x470716C4: test eax, eax */ 5583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5584 _cf = 0; 5585 _flag_k = FK_TEST; 5586 if (TEST_Z(_flag_a, _flag_b)) goto L_470716CA; /* 0x470716C6: je 0x470716ca */ 5587 L_470716C8: 5588 edi = eax; /* 0x470716C8: mov edi, eax */ 5589 L_470716CA: 5590 RECOMP_ICALL(0x47039020u); /* 0x470716CA: call 0x47039020 */ /* not lifted */ 5591 RECOMP_FLAGS_IN(); 5592 esi = eax; /* 0x470716CF: mov esi, eax */ 5593 ecx = esi; /* 0x470716D1: mov ecx, esi */ 5594 RECOMP_ICALL(0x4703B210u); /* 0x470716D3: call 0x4703b210 */ /* not lifted */ 5595 RECOMP_FLAGS_IN(); 5596 PUSH32(esp, eax); /* 0x470716D8: push eax */ 5597 ecx = esi; /* 0x470716D9: mov ecx, esi */ 5598 RECOMP_ICALL(0x4703B240u); /* 0x470716DB: call 0x4703b240 */ /* not lifted */ 5599 RECOMP_FLAGS_IN(); 5600 PUSH32(esp, eax); /* 0x470716E0: push eax */ 5601 ecx = esi; /* 0x470716E1: mov ecx, esi */ 5602 RECOMP_ICALL(0x4703B080u); /* 0x470716E3: call 0x4703b080 */ /* not lifted */ 5603 RECOMP_FLAGS_IN(); 5604 PUSH32(esp, eax); /* 0x470716E8: push eax */ 5605 PUSH32(esp, edi); /* 0x470716E9: push edi */ 5606 PUSH32(esp, 0xFFFFFFFFu); /* 0x470716EA: push -1 */ 5607 PUSH32(esp, 0x81u); /* 0x470716EC: push 0x81 */ 5608 PUSH32(esp, 0x4710A308u); /* 0x470716F1: push 0x4710a308 */ 5609 ecx = esi; /* 0x470716F6: mov ecx, esi */ 5610 RECOMP_ICALL(0x4703A340u); /* 0x470716F8: call 0x4703a340 */ /* not lifted */ 5611 RECOMP_FLAGS_IN(); 5612 PUSH32(esp, 0x4710A374u); /* 0x470716FD: push 0x4710a374 */ 5613 PUSH32(esp, 0x80u); /* 0x47071702: push 0x80 */ 5614 PUSH32(esp, esi); /* 0x47071707: push esi */ 5615 RECOMP_ICALL(0x47039830u); /* 0x47071708: call 0x47039830 */ /* not lifted */ 5616 RECOMP_FLAGS_IN(); 5617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5619 esp = esp + 0xCu; /* 0x4707170D: add esp, 0xc */ 5620 _flag_k = FK_ADD; 5621 edi = POP32_VAL(esp); /* 0x47071710: pop edi */ 5622 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5623 eax = eax | 0xFFFFFFFFu; /* 0x47071711: or eax, 0xffffffff */ 5624 _cf = 0; 5625 _flag_k = FK_TEST; 5626 esi = POP32_VAL(esp); /* 0x47071714: pop esi */ 5627 ecx = POP32_VAL(esp); /* 0x47071715: pop ecx */ 5628 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47071716: ret */ 5629 L_47071717: 5630 RECOMP_ICALL(0x470729B0u); /* 0x47071717: call 0x470729b0 */ /* not lifted */ 5631 RECOMP_FLAGS_IN(); 5632 esi = eax; /* 0x4707171C: mov esi, eax */ 5633 eax = MEM32(esi + 0x20); /* 0x4707171E: mov eax, dword ptr [esi + 0x20] */ 5634 /* test eax, eax */ /* 0x47071721: test eax, eax */ 5635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5636 _cf = 0; 5637 _flag_k = FK_TEST; 5638 if (TEST_NZ(_flag_a, _flag_b)) goto L_4707172C; /* 0x47071723: jne 0x4707172c */ 5639 L_47071725: 5640 ecx = esi; /* 0x47071725: mov ecx, esi */ 5641 RECOMP_ICALL(0x47072E10u); /* 0x47071727: call 0x47072e10 */ /* not lifted */ 5642 RECOMP_FLAGS_IN(); 5643 L_4707172C: 5644 eax = MEM32(esi + 0x24); /* 0x4707172C: mov eax, dword ptr [esi + 0x24] */ 5645 ecx = esp + 0x4; /* 0x4707172F: lea ecx, [esp + 4] */ 5646 PUSH32(esp, ecx); /* 0x47071733: push ecx */ 5647 PUSH32(esp, eax); /* 0x47071734: push eax */ 5648 MEM32(esp + 0xC) = 0; /* 0x47071735: mov dword ptr [esp + 0xc], 0 */ 5649 RECOMP_ICALL(0x47004600u); /* 0x4707173D: call 0x47004600 */ /* not lifted */ 5650 RECOMP_FLAGS_IN(); 5651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5653 esp = esp + 8; /* 0x47071742: add esp, 8 */ 5654 _flag_k = FK_ADD; 5655 /* cmp eax, 0xFFFFFFFFu */ /* 0x47071745: cmp eax, -1 */ 5656 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5658 _flag_k = FK_CMP; 5659 if (CMP_NE(_flag_a, _flag_b)) goto L_47071758; /* 0x47071748: jne 0x47071758 */ 5660 L_4707174A: 5661 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5662 eax = 0; /* 0x4707174A: xor eax, eax */ 5663 _cf = 0; 5664 _flag_k = FK_TEST; 5665 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5666 ecx = 0; /* 0x4707174C: xor ecx, ecx */ 5667 _cf = 0; 5668 _flag_k = FK_TEST; 5669 /* test eax, eax */ /* 0x4707174E: test eax, eax */ 5670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5671 _cf = 0; 5672 _flag_k = FK_TEST; 5673 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47071750: setne cl */ 5674 esi = POP32_VAL(esp); /* 0x47071753: pop esi */ 5675 eax = ecx; /* 0x47071754: mov eax, ecx */ 5676 ecx = POP32_VAL(esp); /* 0x47071756: pop ecx */ 5677 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47071757: ret */ 5678 L_47071758: 5679 eax = MEM32(esp + 0x4); /* 0x47071758: mov eax, dword ptr [esp + 4] */ 5680 /* test eax, eax */ /* 0x4707175C: test eax, eax */ 5681 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5682 _cf = 0; 5683 _flag_k = FK_TEST; 5684 if (TEST_NZ(_flag_a, _flag_b)) goto L_470717B2; /* 0x4707175E: jne 0x470717b2 */ 5685 L_47071760: 5686 edx = MEM32(esi); /* 0x47071760: mov edx, dword ptr [esi] */ 5687 ecx = esi; /* 0x47071762: mov ecx, esi */ 5688 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47071764: call dword ptr [edx + 4] */ 5689 RECOMP_FLAGS_IN(); 5690 /* test eax, eax */ /* 0x47071767: test eax, eax */ 5691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5692 _cf = 0; 5693 _flag_k = FK_TEST; 5694 MEM32(esp + 0x4) = eax; /* 0x47071769: mov dword ptr [esp + 4], eax */ 5695 if (TEST_NZ(_flag_a, _flag_b)) goto L_4707177B; /* 0x4707176D: jne 0x4707177b */ 5696 L_4707176F: 5697 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5698 ecx = 0; /* 0x4707176F: xor ecx, ecx */ 5699 _cf = 0; 5700 _flag_k = FK_TEST; 5701 /* test eax, eax */ /* 0x47071771: test eax, eax */ 5702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5703 _cf = 0; 5704 _flag_k = FK_TEST; 5705 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47071773: setne cl */ 5706 esi = POP32_VAL(esp); /* 0x47071776: pop esi */ 5707 eax = ecx; /* 0x47071777: mov eax, ecx */ 5708 ecx = POP32_VAL(esp); /* 0x47071779: pop ecx */ 5709 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4707177A: ret */ 5710 L_4707177B: 5711 esi = MEM32(esi + 0x24); /* 0x4707177B: mov esi, dword ptr [esi + 0x24] */ 5712 PUSH32(esp, eax); /* 0x4707177E: push eax */ 5713 PUSH32(esp, esi); /* 0x4707177F: push esi */ 5714 RECOMP_ICALL(0x47056110u); /* 0x47071780: call 0x47056110 */ /* not lifted */ 5715 RECOMP_FLAGS_IN(); 5716 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5718 esp = esp + 8; /* 0x47071785: add esp, 8 */ 5719 _flag_k = FK_ADD; 5720 /* test eax, eax */ /* 0x47071788: test eax, eax */ 5721 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5722 _cf = 0; 5723 _flag_k = FK_TEST; 5724 if (TEST_Z(_flag_a, _flag_b)) goto L_470717B2; /* 0x4707178A: je 0x470717b2 */ 5725 L_4707178C: 5726 ecx = MEM32(esp + 0x4); /* 0x4707178C: mov ecx, dword ptr [esp + 4] */ 5727 /* test ecx, ecx */ /* 0x47071790: test ecx, ecx */ 5728 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5729 _cf = 0; 5730 _flag_k = FK_TEST; 5731 esi = ecx; /* 0x47071792: mov esi, ecx */ 5732 if (TEST_Z(_flag_a, _flag_b)) goto L_470717A4; /* 0x47071794: je 0x470717a4 */ 5733 L_47071796: 5734 RECOMP_ICALL(0x47033030u); /* 0x47071796: call 0x47033030 */ /* not lifted */ 5735 RECOMP_FLAGS_IN(); 5736 PUSH32(esp, esi); /* 0x4707179B: push esi */ 5737 RECOMP_ICALL(0x470A32A2u); /* 0x4707179C: call 0x470a32a2 */ /* not lifted */ 5738 RECOMP_FLAGS_IN(); 5739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5741 esp = esp + 4; /* 0x470717A1: add esp, 4 */ 5742 _flag_k = FK_ADD; 5743 L_470717A4: 5744 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5745 eax = 0; /* 0x470717A4: xor eax, eax */ 5746 _cf = 0; 5747 _flag_k = FK_TEST; 5748 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5749 ecx = 0; /* 0x470717A6: xor ecx, ecx */ 5750 _cf = 0; 5751 _flag_k = FK_TEST; 5752 /* test eax, eax */ /* 0x470717A8: test eax, eax */ 5753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5754 _cf = 0; 5755 _flag_k = FK_TEST; 5756 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x470717AA: setne cl */ 5757 esi = POP32_VAL(esp); /* 0x470717AD: pop esi */ 5758 eax = ecx; /* 0x470717AE: mov eax, ecx */ 5759 ecx = POP32_VAL(esp); /* 0x470717B0: pop ecx */ 5760 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470717B1: ret */ 5761 L_470717B2: 5762 eax = MEM32(esp + 0x4); /* 0x470717B2: mov eax, dword ptr [esp + 4] */ 5763 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5764 ecx = 0; /* 0x470717B6: xor ecx, ecx */ 5765 _cf = 0; 5766 _flag_k = FK_TEST; 5767 /* test eax, eax */ /* 0x470717B8: test eax, eax */ 5768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5769 _cf = 0; 5770 _flag_k = FK_TEST; 5771 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x470717BA: setne cl */ 5772 esi = POP32_VAL(esp); /* 0x470717BD: pop esi */ 5773 eax = ecx; /* 0x470717BE: mov eax, ecx */ 5774 ecx = POP32_VAL(esp); /* 0x470717C0: pop ecx */ 5775 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470717C1: ret */ 5776 RECOMP_REGS_OUT(); 5777 } 5778 5779 void sub_470717D0(void) { 5780 int _fpu_cmp = 0; 5781 uint32_t _cf = 0; 5782 int _df = 1; 5783 uint32_t _flag_k = FK_NONE; 5784 uint32_t _flag_a = 0, _flag_b = 0; 5785 uint32_t _itail_tgt = 0; 5786 RECOMP_REGS_LOCALS 5787 RECOMP_ENTER(0x470717D0u); 5788 5789 L_470717D0: 5790 ecx = MEM32(esp + 0x4); /* 0x470717D0: mov ecx, dword ptr [esp + 4] */ 5791 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5793 esp = esp - 0xCu; /* 0x470717D4: sub esp, 0xc */ 5794 _flag_k = FK_CMP; 5795 PUSH32(esp, esi); /* 0x470717D7: push esi */ 5796 PUSH32(esp, edi); /* 0x470717D8: push edi */ 5797 eax = esp + 0x18; /* 0x470717D9: lea eax, [esp + 0x18] */ 5798 PUSH32(esp, eax); /* 0x470717DD: push eax */ 5799 RECOMP_ICALL(0x47095EF0u); /* 0x470717DE: call 0x47095ef0 */ /* not lifted */ 5800 RECOMP_FLAGS_IN(); 5801 edi = eax; /* 0x470717E3: mov edi, eax */ 5802 /* cmp edi, 0xFFFFFFFFu */ /* 0x470717E5: cmp edi, -1 */ 5803 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 5804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5805 _flag_k = FK_CMP; 5806 if (CMP_NE(_flag_a, _flag_b)) goto L_47071856; /* 0x470717E8: jne 0x47071856 */ 5807 L_470717EA: 5808 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470717EA: call dword ptr [0x470ac150] */ 5809 RECOMP_FLAGS_IN(); 5810 edi = eax; /* 0x470717F0: mov edi, eax */ 5811 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470717F2: call dword ptr [0x470ac3c8] */ 5812 RECOMP_FLAGS_IN(); 5813 eax = MEM32(eax); /* 0x470717F8: mov eax, dword ptr [eax] */ 5814 /* test eax, eax */ /* 0x470717FA: test eax, eax */ 5815 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5816 _cf = 0; 5817 _flag_k = FK_TEST; 5818 if (TEST_Z(_flag_a, _flag_b)) goto L_47071800; /* 0x470717FC: je 0x47071800 */ 5819 L_470717FE: 5820 edi = eax; /* 0x470717FE: mov edi, eax */ 5821 L_47071800: 5822 RECOMP_ICALL(0x47039020u); /* 0x47071800: call 0x47039020 */ /* not lifted */ 5823 RECOMP_FLAGS_IN(); 5824 esi = eax; /* 0x47071805: mov esi, eax */ 5825 ecx = esi; /* 0x47071807: mov ecx, esi */ 5826 RECOMP_ICALL(0x4703B210u); /* 0x47071809: call 0x4703b210 */ /* not lifted */ 5827 RECOMP_FLAGS_IN(); 5828 PUSH32(esp, eax); /* 0x4707180E: push eax */ 5829 ecx = esi; /* 0x4707180F: mov ecx, esi */ 5830 RECOMP_ICALL(0x4703B240u); /* 0x47071811: call 0x4703b240 */ /* not lifted */ 5831 RECOMP_FLAGS_IN(); 5832 PUSH32(esp, eax); /* 0x47071816: push eax */ 5833 ecx = esi; /* 0x47071817: mov ecx, esi */ 5834 RECOMP_ICALL(0x4703B080u); /* 0x47071819: call 0x4703b080 */ /* not lifted */ 5835 RECOMP_FLAGS_IN(); 5836 PUSH32(esp, eax); /* 0x4707181E: push eax */ 5837 PUSH32(esp, edi); /* 0x4707181F: push edi */ 5838 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071820: push -1 */ 5839 PUSH32(esp, 0x93u); /* 0x47071822: push 0x93 */ 5840 PUSH32(esp, 0x4710A308u); /* 0x47071827: push 0x4710a308 */ 5841 ecx = esi; /* 0x4707182C: mov ecx, esi */ 5842 RECOMP_ICALL(0x4703A340u); /* 0x4707182E: call 0x4703a340 */ /* not lifted */ 5843 RECOMP_FLAGS_IN(); 5844 PUSH32(esp, 0x471086CCu); /* 0x47071833: push 0x471086cc */ 5845 L_47071838: 5846 PUSH32(esp, 0x471055F0u); /* 0x47071838: push 0x471055f0 */ 5847 PUSH32(esp, 0x80u); /* 0x4707183D: push 0x80 */ 5848 PUSH32(esp, esi); /* 0x47071842: push esi */ 5849 RECOMP_ICALL(0x47039830u); /* 0x47071843: call 0x47039830 */ /* not lifted */ 5850 RECOMP_FLAGS_IN(); 5851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5853 esp = esp + 0x10u; /* 0x47071848: add esp, 0x10 */ 5854 _flag_k = FK_ADD; 5855 edi = POP32_VAL(esp); /* 0x4707184B: pop edi */ 5856 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5857 eax = eax | 0xFFFFFFFFu; /* 0x4707184C: or eax, 0xffffffff */ 5858 _cf = 0; 5859 _flag_k = FK_TEST; 5860 esi = POP32_VAL(esp); /* 0x4707184F: pop esi */ 5861 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5862 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5863 esp = esp + 0xCu; /* 0x47071850: add esp, 0xc */ 5864 _flag_k = FK_ADD; 5865 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47071853: ret 8 */ 5866 L_47071856: 5867 RECOMP_ICALL(0x470729B0u); /* 0x47071856: call 0x470729b0 */ /* not lifted */ 5868 RECOMP_FLAGS_IN(); 5869 ecx = eax; /* 0x4707185B: mov ecx, eax */ 5870 RECOMP_ICALL(0x47072D80u); /* 0x4707185D: call 0x47072d80 */ /* not lifted */ 5871 RECOMP_FLAGS_IN(); 5872 esi = eax; /* 0x47071862: mov esi, eax */ 5873 /* test esi, esi */ /* 0x47071864: test esi, esi */ 5874 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5875 _cf = 0; 5876 _flag_k = FK_TEST; 5877 if (TEST_NZ(_flag_a, _flag_b)) goto L_47071873; /* 0x47071866: jne 0x47071873 */ 5878 L_47071868: 5879 edi = POP32_VAL(esp); /* 0x47071868: pop edi */ 5880 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5881 eax = eax | 0xFFFFFFFFu; /* 0x47071869: or eax, 0xffffffff */ 5882 _cf = 0; 5883 _flag_k = FK_TEST; 5884 esi = POP32_VAL(esp); /* 0x4707186C: pop esi */ 5885 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5886 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5887 esp = esp + 0xCu; /* 0x4707186D: add esp, 0xc */ 5888 _flag_k = FK_ADD; 5889 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47071870: ret 8 */ 5890 L_47071873: 5891 ecx = MEM32(esp + 0x18); /* 0x47071873: mov ecx, dword ptr [esp + 0x18] */ 5892 eax = MEM32(esi); /* 0x47071877: mov eax, dword ptr [esi] */ 5893 PUSH32(esp, 0); /* 0x47071879: push 0 */ 5894 PUSH32(esp, edi); /* 0x4707187B: push edi */ 5895 PUSH32(esp, ecx); /* 0x4707187C: push ecx */ 5896 PUSH32(esp, eax); /* 0x4707187D: push eax */ 5897 RECOMP_ICALL(0x4700D560u); /* 0x4707187E: call 0x4700d560 */ /* not lifted */ 5898 RECOMP_FLAGS_IN(); 5899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5901 esp = esp + 0x10u; /* 0x47071883: add esp, 0x10 */ 5902 _flag_k = FK_ADD; 5903 /* cmp eax, edi */ /* 0x47071886: cmp eax, edi */ 5904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5906 _flag_k = FK_CMP; 5907 if (CMP_EQ(_flag_a, _flag_b)) goto L_470718DD; /* 0x47071888: je 0x470718dd */ 5908 L_4707188A: 5909 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4707188A: call dword ptr [0x470ac150] */ 5910 RECOMP_FLAGS_IN(); 5911 edi = eax; /* 0x47071890: mov edi, eax */ 5912 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47071892: call dword ptr [0x470ac3c8] */ 5913 RECOMP_FLAGS_IN(); 5914 eax = MEM32(eax); /* 0x47071898: mov eax, dword ptr [eax] */ 5915 /* test eax, eax */ /* 0x4707189A: test eax, eax */ 5916 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5917 _cf = 0; 5918 _flag_k = FK_TEST; 5919 if (TEST_Z(_flag_a, _flag_b)) goto L_470718A0; /* 0x4707189C: je 0x470718a0 */ 5920 L_4707189E: 5921 edi = eax; /* 0x4707189E: mov edi, eax */ 5922 L_470718A0: 5923 RECOMP_ICALL(0x47039020u); /* 0x470718A0: call 0x47039020 */ /* not lifted */ 5924 RECOMP_FLAGS_IN(); 5925 esi = eax; /* 0x470718A5: mov esi, eax */ 5926 ecx = esi; /* 0x470718A7: mov ecx, esi */ 5927 RECOMP_ICALL(0x4703B210u); /* 0x470718A9: call 0x4703b210 */ /* not lifted */ 5928 RECOMP_FLAGS_IN(); 5929 PUSH32(esp, eax); /* 0x470718AE: push eax */ 5930 ecx = esi; /* 0x470718AF: mov ecx, esi */ 5931 RECOMP_ICALL(0x4703B240u); /* 0x470718B1: call 0x4703b240 */ /* not lifted */ 5932 RECOMP_FLAGS_IN(); 5933 PUSH32(esp, eax); /* 0x470718B6: push eax */ 5934 ecx = esi; /* 0x470718B7: mov ecx, esi */ 5935 RECOMP_ICALL(0x4703B080u); /* 0x470718B9: call 0x4703b080 */ /* not lifted */ 5936 RECOMP_FLAGS_IN(); 5937 PUSH32(esp, eax); /* 0x470718BE: push eax */ 5938 PUSH32(esp, edi); /* 0x470718BF: push edi */ 5939 PUSH32(esp, 0xFFFFFFFFu); /* 0x470718C0: push -1 */ 5940 PUSH32(esp, 0x9Du); /* 0x470718C2: push 0x9d */ 5941 PUSH32(esp, 0x4710A308u); /* 0x470718C7: push 0x4710a308 */ 5942 ecx = esi; /* 0x470718CC: mov ecx, esi */ 5943 RECOMP_ICALL(0x4703A340u); /* 0x470718CE: call 0x4703a340 */ /* not lifted */ 5944 RECOMP_FLAGS_IN(); 5945 PUSH32(esp, 0x471086BCu); /* 0x470718D3: push 0x471086bc */ 5946 RECOMP_BACKEDGE(); 5947 goto L_47071838; /* 0x470718D8: jmp 0x47071838 */ 5948 L_470718DD: 5949 ecx = esp + 0x8; /* 0x470718DD: lea ecx, [esp + 8] */ 5950 RECOMP_ICALL(0x47095EC0u); /* 0x470718E1: call 0x47095ec0 */ /* not lifted */ 5951 RECOMP_FLAGS_IN(); 5952 esi = MEM32(esi); /* 0x470718E6: mov esi, dword ptr [esi] */ 5953 PUSH32(esp, 0); /* 0x470718E8: push 0 */ 5954 PUSH32(esp, 0xCu); /* 0x470718EA: push 0xc */ 5955 edx = esp + 0x10; /* 0x470718EC: lea edx, [esp + 0x10] */ 5956 PUSH32(esp, edx); /* 0x470718F0: push edx */ 5957 PUSH32(esp, esi); /* 0x470718F1: push esi */ 5958 RECOMP_ICALL(0x4700BED0u); /* 0x470718F2: call 0x4700bed0 */ /* not lifted */ 5959 RECOMP_FLAGS_IN(); 5960 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5962 esp = esp + 0x10u; /* 0x470718F7: add esp, 0x10 */ 5963 _flag_k = FK_ADD; 5964 /* cmp eax, 0xCu */ /* 0x470718FA: cmp eax, 0xc */ 5965 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 5966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5967 _flag_k = FK_CMP; 5968 if (CMP_EQ(_flag_a, _flag_b)) goto L_47071952; /* 0x470718FD: je 0x47071952 */ 5969 L_470718FF: 5970 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470718FF: call dword ptr [0x470ac150] */ 5971 RECOMP_FLAGS_IN(); 5972 edi = eax; /* 0x47071905: mov edi, eax */ 5973 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47071907: call dword ptr [0x470ac3c8] */ 5974 RECOMP_FLAGS_IN(); 5975 eax = MEM32(eax); /* 0x4707190D: mov eax, dword ptr [eax] */ 5976 /* test eax, eax */ /* 0x4707190F: test eax, eax */ 5977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5978 _cf = 0; 5979 _flag_k = FK_TEST; 5980 if (TEST_Z(_flag_a, _flag_b)) goto L_47071915; /* 0x47071911: je 0x47071915 */ 5981 L_47071913: 5982 edi = eax; /* 0x47071913: mov edi, eax */ 5983 L_47071915: 5984 RECOMP_ICALL(0x47039020u); /* 0x47071915: call 0x47039020 */ /* not lifted */ 5985 RECOMP_FLAGS_IN(); 5986 esi = eax; /* 0x4707191A: mov esi, eax */ 5987 ecx = esi; /* 0x4707191C: mov ecx, esi */ 5988 RECOMP_ICALL(0x4703B210u); /* 0x4707191E: call 0x4703b210 */ /* not lifted */ 5989 RECOMP_FLAGS_IN(); 5990 PUSH32(esp, eax); /* 0x47071923: push eax */ 5991 ecx = esi; /* 0x47071924: mov ecx, esi */ 5992 RECOMP_ICALL(0x4703B240u); /* 0x47071926: call 0x4703b240 */ /* not lifted */ 5993 RECOMP_FLAGS_IN(); 5994 PUSH32(esp, eax); /* 0x4707192B: push eax */ 5995 ecx = esi; /* 0x4707192C: mov ecx, esi */ 5996 RECOMP_ICALL(0x4703B080u); /* 0x4707192E: call 0x4703b080 */ /* not lifted */ 5997 RECOMP_FLAGS_IN(); 5998 PUSH32(esp, eax); /* 0x47071933: push eax */ 5999 PUSH32(esp, edi); /* 0x47071934: push edi */ 6000 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071935: push -1 */ 6001 PUSH32(esp, 0xA5u); /* 0x47071937: push 0xa5 */ 6002 PUSH32(esp, 0x4710A308u); /* 0x4707193C: push 0x4710a308 */ 6003 ecx = esi; /* 0x47071941: mov ecx, esi */ 6004 RECOMP_ICALL(0x4703A340u); /* 0x47071943: call 0x4703a340 */ /* not lifted */ 6005 RECOMP_FLAGS_IN(); 6006 PUSH32(esp, 0x471086B0u); /* 0x47071948: push 0x471086b0 */ 6007 RECOMP_BACKEDGE(); 6008 goto L_47071838; /* 0x4707194D: jmp 0x47071838 */ 6009 L_47071952: 6010 ecx = esp + 0x8; /* 0x47071952: lea ecx, [esp + 8] */ 6011 RECOMP_ICALL(0x470913B0u); /* 0x47071956: call 0x470913b0 */ /* not lifted */ 6012 RECOMP_FLAGS_IN(); 6013 /* cmp eax, 0xFFFFFFFFu */ /* 0x4707195B: cmp eax, -1 */ 6014 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6015 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6016 _flag_k = FK_CMP; 6017 if (CMP_NE(_flag_a, _flag_b)) goto L_470719B3; /* 0x4707195E: jne 0x470719b3 */ 6018 L_47071960: 6019 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071960: call dword ptr [0x470ac150] */ 6020 RECOMP_FLAGS_IN(); 6021 edi = eax; /* 0x47071966: mov edi, eax */ 6022 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47071968: call dword ptr [0x470ac3c8] */ 6023 RECOMP_FLAGS_IN(); 6024 eax = MEM32(eax); /* 0x4707196E: mov eax, dword ptr [eax] */ 6025 /* test eax, eax */ /* 0x47071970: test eax, eax */ 6026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6027 _cf = 0; 6028 _flag_k = FK_TEST; 6029 if (TEST_Z(_flag_a, _flag_b)) goto L_47071976; /* 0x47071972: je 0x47071976 */ 6030 L_47071974: 6031 edi = eax; /* 0x47071974: mov edi, eax */ 6032 L_47071976: 6033 RECOMP_ICALL(0x47039020u); /* 0x47071976: call 0x47039020 */ /* not lifted */ 6034 RECOMP_FLAGS_IN(); 6035 esi = eax; /* 0x4707197B: mov esi, eax */ 6036 ecx = esi; /* 0x4707197D: mov ecx, esi */ 6037 RECOMP_ICALL(0x4703B210u); /* 0x4707197F: call 0x4703b210 */ /* not lifted */ 6038 RECOMP_FLAGS_IN(); 6039 PUSH32(esp, eax); /* 0x47071984: push eax */ 6040 ecx = esi; /* 0x47071985: mov ecx, esi */ 6041 RECOMP_ICALL(0x4703B240u); /* 0x47071987: call 0x4703b240 */ /* not lifted */ 6042 RECOMP_FLAGS_IN(); 6043 PUSH32(esp, eax); /* 0x4707198C: push eax */ 6044 ecx = esi; /* 0x4707198D: mov ecx, esi */ 6045 RECOMP_ICALL(0x4703B080u); /* 0x4707198F: call 0x4703b080 */ /* not lifted */ 6046 RECOMP_FLAGS_IN(); 6047 PUSH32(esp, eax); /* 0x47071994: push eax */ 6048 PUSH32(esp, edi); /* 0x47071995: push edi */ 6049 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071996: push -1 */ 6050 PUSH32(esp, 0xA8u); /* 0x47071998: push 0xa8 */ 6051 PUSH32(esp, 0x4710A308u); /* 0x4707199D: push 0x4710a308 */ 6052 ecx = esi; /* 0x470719A2: mov ecx, esi */ 6053 RECOMP_ICALL(0x4703A340u); /* 0x470719A4: call 0x4703a340 */ /* not lifted */ 6054 RECOMP_FLAGS_IN(); 6055 PUSH32(esp, 0x471086A0u); /* 0x470719A9: push 0x471086a0 */ 6056 RECOMP_BACKEDGE(); 6057 goto L_47071838; /* 0x470719AE: jmp 0x47071838 */ 6058 L_470719B3: 6059 eax = MEM32(esp + 0xC); /* 0x470719B3: mov eax, dword ptr [esp + 0xc] */ 6060 PUSH32(esp, eax); /* 0x470719B7: push eax */ 6061 RECOMP_ICALL(MEM32(0x470AC4B0)); /* 0x470719B8: call dword ptr [0x470ac4b0] */ 6062 RECOMP_FLAGS_IN(); 6063 esi = MEM32(0x470AC3C8); /* 0x470719BE: mov esi, dword ptr [0x470ac3c8] */ 6064 edi = eax; /* 0x470719C4: mov edi, eax */ 6065 RECOMP_ICALL(esi); /* 0x470719C6: call esi */ 6066 RECOMP_FLAGS_IN(); 6067 MEM32(eax) = edi; /* 0x470719C8: mov dword ptr [eax], edi */ 6068 RECOMP_ICALL(esi); /* 0x470719CA: call esi */ 6069 RECOMP_FLAGS_IN(); 6070 /* cmp MEM32(eax), 0 */ /* 0x470719CC: cmp dword ptr [eax], 0 */ 6071 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0); 6072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6073 _flag_k = FK_CMP; 6074 if (CMP_EQ(_flag_a, _flag_b)) goto L_47071A0D; /* 0x470719CF: je 0x47071a0d */ 6075 L_470719D1: 6076 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470719D1: call dword ptr [0x470ac150] */ 6077 RECOMP_FLAGS_IN(); 6078 edi = eax; /* 0x470719D7: mov edi, eax */ 6079 RECOMP_ICALL(esi); /* 0x470719D9: call esi */ 6080 RECOMP_FLAGS_IN(); 6081 eax = MEM32(eax); /* 0x470719DB: mov eax, dword ptr [eax] */ 6082 /* test eax, eax */ /* 0x470719DD: test eax, eax */ 6083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6084 _cf = 0; 6085 _flag_k = FK_TEST; 6086 if (TEST_NZ(_flag_a, _flag_b)) goto L_470719E3; /* 0x470719DF: jne 0x470719e3 */ 6087 L_470719E1: 6088 eax = edi; /* 0x470719E1: mov eax, edi */ 6089 L_470719E3: 6090 PUSH32(esp, 0); /* 0x470719E3: push 0 */ 6091 PUSH32(esp, 0); /* 0x470719E5: push 0 */ 6092 PUSH32(esp, 1); /* 0x470719E7: push 1 */ 6093 PUSH32(esp, eax); /* 0x470719E9: push eax */ 6094 PUSH32(esp, 0xFFFFFFFFu); /* 0x470719EA: push -1 */ 6095 PUSH32(esp, 0xACu); /* 0x470719EC: push 0xac */ 6096 PUSH32(esp, 0x4710A308u); /* 0x470719F1: push 0x4710a308 */ 6097 RECOMP_ICALL(0x47039020u); /* 0x470719F6: call 0x47039020 */ /* not lifted */ 6098 RECOMP_FLAGS_IN(); 6099 ecx = eax; /* 0x470719FB: mov ecx, eax */ 6100 RECOMP_ICALL(0x4703A340u); /* 0x470719FD: call 0x4703a340 */ /* not lifted */ 6101 RECOMP_FLAGS_IN(); 6102 edi = POP32_VAL(esp); /* 0x47071A02: pop edi */ 6103 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6104 eax = eax | 0xFFFFFFFFu; /* 0x47071A03: or eax, 0xffffffff */ 6105 _cf = 0; 6106 _flag_k = FK_TEST; 6107 esi = POP32_VAL(esp); /* 0x47071A06: pop esi */ 6108 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6110 esp = esp + 0xCu; /* 0x47071A07: add esp, 0xc */ 6111 _flag_k = FK_ADD; 6112 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47071A0A: ret 8 */ 6113 L_47071A0D: 6114 edi = POP32_VAL(esp); /* 0x47071A0D: pop edi */ 6115 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6116 eax = 0; /* 0x47071A0E: xor eax, eax */ 6117 _cf = 0; 6118 _flag_k = FK_TEST; 6119 esi = POP32_VAL(esp); /* 0x47071A10: pop esi */ 6120 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6121 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6122 esp = esp + 0xCu; /* 0x47071A11: add esp, 0xc */ 6123 _flag_k = FK_ADD; 6124 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47071A14: ret 8 */ 6125 RECOMP_REGS_OUT(); 6126 } 6127 6128 void sub_47071838(void) { 6129 int _fpu_cmp = 0; 6130 uint32_t _cf = 0; 6131 int _df = 1; 6132 uint32_t _flag_k = FK_NONE; 6133 uint32_t _flag_a = 0, _flag_b = 0; 6134 uint32_t _itail_tgt = 0; 6135 RECOMP_REGS_LOCALS 6136 RECOMP_ENTER(0x47071838u); 6137 6138 L_47071838: 6139 PUSH32(esp, 0x471055F0u); /* 0x47071838: push 0x471055f0 */ 6140 PUSH32(esp, 0x80u); /* 0x4707183D: push 0x80 */ 6141 PUSH32(esp, esi); /* 0x47071842: push esi */ 6142 RECOMP_ICALL(0x47039830u); /* 0x47071843: call 0x47039830 */ /* not lifted */ 6143 RECOMP_FLAGS_IN(); 6144 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6146 esp = esp + 0x10u; /* 0x47071848: add esp, 0x10 */ 6147 _flag_k = FK_ADD; 6148 edi = POP32_VAL(esp); /* 0x4707184B: pop edi */ 6149 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6150 eax = eax | 0xFFFFFFFFu; /* 0x4707184C: or eax, 0xffffffff */ 6151 _cf = 0; 6152 _flag_k = FK_TEST; 6153 esi = POP32_VAL(esp); /* 0x4707184F: pop esi */ 6154 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6155 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6156 esp = esp + 0xCu; /* 0x47071850: add esp, 0xc */ 6157 _flag_k = FK_ADD; 6158 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47071853: ret 8 */ 6159 RECOMP_REGS_OUT(); 6160 } 6161 6162 void sub_47071A20(void) { 6163 int _fpu_cmp = 0; 6164 uint32_t _cf = 0; 6165 int _df = 1; 6166 uint32_t _flag_k = FK_NONE; 6167 uint32_t _flag_a = 0, _flag_b = 0; 6168 uint32_t _itail_tgt = 0; 6169 RECOMP_REGS_LOCALS 6170 RECOMP_ENTER(0x47071A20u); 6171 6172 L_47071A20: 6173 eax = MEM32(FS_BASE + (0)); /* 0x47071A20: mov eax, dword ptr fs:[0] */ 6174 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071A26: push -1 */ 6175 PUSH32(esp, 0x470A913Bu); /* 0x47071A28: push 0x470a913b */ 6176 PUSH32(esp, eax); /* 0x47071A2D: push eax */ 6177 eax = MEM32(esp + 0x14); /* 0x47071A2E: mov eax, dword ptr [esp + 0x14] */ 6178 MEM32(FS_BASE + (0)) = esp; /* 0x47071A32: mov dword ptr fs:[0], esp */ 6179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x180u); 6180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6181 esp = esp - 0x180u; /* 0x47071A39: sub esp, 0x180 */ 6182 _flag_k = FK_CMP; 6183 PUSH32(esp, ebx); /* 0x47071A3F: push ebx */ 6184 PUSH32(esp, ebp); /* 0x47071A40: push ebp */ 6185 PUSH32(esp, esi); /* 0x47071A41: push esi */ 6186 PUSH32(esp, edi); /* 0x47071A42: push edi */ 6187 PUSH32(esp, 0x4710F920u); /* 0x47071A43: push 0x4710f920 */ 6188 esi = ecx; /* 0x47071A48: mov esi, ecx */ 6189 ecx = MEM32(esp + 0x1A4); /* 0x47071A4A: mov ecx, dword ptr [esp + 0x1a4] */ 6190 PUSH32(esp, eax); /* 0x47071A51: push eax */ 6191 PUSH32(esp, ecx); /* 0x47071A52: push ecx */ 6192 ecx = esi; /* 0x47071A53: mov ecx, esi */ 6193 RECOMP_ICALL(0x47037AC0u); /* 0x47071A55: call 0x47037ac0 */ /* not lifted */ 6194 RECOMP_FLAGS_IN(); 6195 /* cmp eax, 0xFFFFFFFFu */ /* 0x47071A5A: cmp eax, -1 */ 6196 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6198 _flag_k = FK_CMP; 6199 ebx = MEM32(0x470AC3C8); /* 0x47071A5D: mov ebx, dword ptr [0x470ac3c8] */ 6200 if (CMP_NE(_flag_a, _flag_b)) goto L_47071B58; /* 0x47071A63: jne 0x47071b58 */ 6201 L_47071A69: 6202 RECOMP_ICALL(ebx); /* 0x47071A69: call ebx */ 6203 RECOMP_FLAGS_IN(); 6204 eax = MEM32(eax); /* 0x47071A6B: mov eax, dword ptr [eax] */ 6205 /* cmp eax, 0x24u */ /* 0x47071A6D: cmp eax, 0x24 */ 6206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x24u); 6207 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6208 _flag_k = FK_CMP; 6209 if (CMP_EQ(_flag_a, _flag_b)) goto L_47071C2B; /* 0x47071A70: je 0x47071c2b */ 6210 L_47071A76: 6211 /* cmp eax, 0x2733u */ /* 0x47071A76: cmp eax, 0x2733 */ 6212 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x2733u); 6213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6214 _flag_k = FK_CMP; 6215 if (CMP_EQ(_flag_a, _flag_b)) goto L_47071AE2; /* 0x47071A7B: je 0x47071ae2 */ 6216 L_47071A7D: 6217 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071A7D: call dword ptr [0x470ac150] */ 6218 RECOMP_FLAGS_IN(); 6219 edi = eax; /* 0x47071A83: mov edi, eax */ 6220 RECOMP_ICALL(ebx); /* 0x47071A85: call ebx */ 6221 RECOMP_FLAGS_IN(); 6222 eax = MEM32(eax); /* 0x47071A87: mov eax, dword ptr [eax] */ 6223 /* test eax, eax */ /* 0x47071A89: test eax, eax */ 6224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6225 _cf = 0; 6226 _flag_k = FK_TEST; 6227 if (TEST_Z(_flag_a, _flag_b)) goto L_47071A8F; /* 0x47071A8B: je 0x47071a8f */ 6228 L_47071A8D: 6229 edi = eax; /* 0x47071A8D: mov edi, eax */ 6230 L_47071A8F: 6231 RECOMP_ICALL(0x47039020u); /* 0x47071A8F: call 0x47039020 */ /* not lifted */ 6232 RECOMP_FLAGS_IN(); 6233 esi = eax; /* 0x47071A94: mov esi, eax */ 6234 ecx = esi; /* 0x47071A96: mov ecx, esi */ 6235 RECOMP_ICALL(0x4703B210u); /* 0x47071A98: call 0x4703b210 */ /* not lifted */ 6236 RECOMP_FLAGS_IN(); 6237 PUSH32(esp, eax); /* 0x47071A9D: push eax */ 6238 ecx = esi; /* 0x47071A9E: mov ecx, esi */ 6239 RECOMP_ICALL(0x4703B240u); /* 0x47071AA0: call 0x4703b240 */ /* not lifted */ 6240 RECOMP_FLAGS_IN(); 6241 PUSH32(esp, eax); /* 0x47071AA5: push eax */ 6242 ecx = esi; /* 0x47071AA6: mov ecx, esi */ 6243 RECOMP_ICALL(0x4703B080u); /* 0x47071AA8: call 0x4703b080 */ /* not lifted */ 6244 RECOMP_FLAGS_IN(); 6245 PUSH32(esp, eax); /* 0x47071AAD: push eax */ 6246 PUSH32(esp, edi); /* 0x47071AAE: push edi */ 6247 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071AAF: push -1 */ 6248 PUSH32(esp, 0xD9u); /* 0x47071AB1: push 0xd9 */ 6249 PUSH32(esp, 0x4710A308u); /* 0x47071AB6: push 0x4710a308 */ 6250 ecx = esi; /* 0x47071ABB: mov ecx, esi */ 6251 RECOMP_ICALL(0x4703A340u); /* 0x47071ABD: call 0x4703a340 */ /* not lifted */ 6252 RECOMP_FLAGS_IN(); 6253 PUSH32(esp, 0x4710A458u); /* 0x47071AC2: push 0x4710a458 */ 6254 PUSH32(esp, 0x4710A438u); /* 0x47071AC7: push 0x4710a438 */ 6255 PUSH32(esp, 0x80u); /* 0x47071ACC: push 0x80 */ 6256 PUSH32(esp, esi); /* 0x47071AD1: push esi */ 6257 RECOMP_ICALL(0x47039830u); /* 0x47071AD2: call 0x47039830 */ /* not lifted */ 6258 RECOMP_FLAGS_IN(); 6259 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6261 esp = esp + 0x10u; /* 0x47071AD7: add esp, 0x10 */ 6262 _flag_k = FK_ADD; 6263 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6264 eax = eax | 0xFFFFFFFFu; /* 0x47071ADA: or eax, 0xffffffff */ 6265 _cf = 0; 6266 _flag_k = FK_TEST; 6267 goto L_47071D42; /* 0x47071ADD: jmp 0x47071d42 */ 6268 L_47071AE2: 6269 eax = MEM32(esi + 0x8); /* 0x47071AE2: mov eax, dword ptr [esi + 8] */ 6270 /* test eax, eax */ /* 0x47071AE5: test eax, eax */ 6271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6272 _cf = 0; 6273 _flag_k = FK_TEST; 6274 if (TEST_Z(_flag_a, _flag_b)) goto L_47071B58; /* 0x47071AE7: je 0x47071b58 */ 6275 L_47071AE9: 6276 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071AE9: call dword ptr [0x470ac150] */ 6277 RECOMP_FLAGS_IN(); 6278 ebp = eax; /* 0x47071AEF: mov ebp, eax */ 6279 RECOMP_ICALL(ebx); /* 0x47071AF1: call ebx */ 6280 RECOMP_FLAGS_IN(); 6281 eax = MEM32(eax); /* 0x47071AF3: mov eax, dword ptr [eax] */ 6282 /* test eax, eax */ /* 0x47071AF5: test eax, eax */ 6283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6284 _cf = 0; 6285 _flag_k = FK_TEST; 6286 if (TEST_Z(_flag_a, _flag_b)) goto L_47071AFB; /* 0x47071AF7: je 0x47071afb */ 6287 L_47071AF9: 6288 ebp = eax; /* 0x47071AF9: mov ebp, eax */ 6289 L_47071AFB: 6290 RECOMP_ICALL(0x47039020u); /* 0x47071AFB: call 0x47039020 */ /* not lifted */ 6291 RECOMP_FLAGS_IN(); 6292 edi = eax; /* 0x47071B00: mov edi, eax */ 6293 ecx = edi; /* 0x47071B02: mov ecx, edi */ 6294 RECOMP_ICALL(0x4703B210u); /* 0x47071B04: call 0x4703b210 */ /* not lifted */ 6295 RECOMP_FLAGS_IN(); 6296 PUSH32(esp, eax); /* 0x47071B09: push eax */ 6297 ecx = edi; /* 0x47071B0A: mov ecx, edi */ 6298 RECOMP_ICALL(0x4703B240u); /* 0x47071B0C: call 0x4703b240 */ /* not lifted */ 6299 RECOMP_FLAGS_IN(); 6300 PUSH32(esp, eax); /* 0x47071B11: push eax */ 6301 ecx = edi; /* 0x47071B12: mov ecx, edi */ 6302 RECOMP_ICALL(0x4703B080u); /* 0x47071B14: call 0x4703b080 */ /* not lifted */ 6303 RECOMP_FLAGS_IN(); 6304 PUSH32(esp, eax); /* 0x47071B19: push eax */ 6305 PUSH32(esp, ebp); /* 0x47071B1A: push ebp */ 6306 PUSH32(esp, 0); /* 0x47071B1B: push 0 */ 6307 PUSH32(esp, 0xC5u); /* 0x47071B1D: push 0xc5 */ 6308 PUSH32(esp, 0x4710A308u); /* 0x47071B22: push 0x4710a308 */ 6309 ecx = edi; /* 0x47071B27: mov ecx, edi */ 6310 RECOMP_ICALL(0x4703A340u); /* 0x47071B29: call 0x4703a340 */ /* not lifted */ 6311 RECOMP_FLAGS_IN(); 6312 eax = MEM32(esi + 0xC); /* 0x47071B2E: mov eax, dword ptr [esi + 0xc] */ 6313 ecx = MEM32(eax + 0xC); /* 0x47071B31: mov ecx, dword ptr [eax + 0xc] */ 6314 /* test ecx, ecx */ /* 0x47071B34: test ecx, ecx */ 6315 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6316 _cf = 0; 6317 _flag_k = FK_TEST; 6318 if (TEST_Z(_flag_a, _flag_b)) goto L_47071B3A; /* 0x47071B36: je 0x47071b3a */ 6319 L_47071B38: 6320 if (TEST_NZ(_flag_a, _flag_b)) goto L_47071B41; /* 0x47071B38: jne 0x47071b41 */ 6321 L_47071B3A: 6322 eax = 0x47106D58u; /* 0x47071B3A: mov eax, 0x47106d58 */ 6323 goto L_47071B47; /* 0x47071B3F: jmp 0x47071b47 */ 6324 L_47071B41: 6325 eax = MEM32(eax + 0xC); /* 0x47071B41: mov eax, dword ptr [eax + 0xc] */ 6326 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 6327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6328 eax = eax + 0x60u; /* 0x47071B44: add eax, 0x60 */ 6329 _flag_k = FK_ADD; 6330 L_47071B47: 6331 PUSH32(esp, eax); /* 0x47071B47: push eax */ 6332 PUSH32(esp, 0x4710A408u); /* 0x47071B48: push 0x4710a408 */ 6333 PUSH32(esp, 4); /* 0x47071B4D: push 4 */ 6334 PUSH32(esp, edi); /* 0x47071B4F: push edi */ 6335 RECOMP_ICALL(0x47039830u); /* 0x47071B50: call 0x47039830 */ /* not lifted */ 6336 RECOMP_FLAGS_IN(); 6337 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6338 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6339 esp = esp + 0x10u; /* 0x47071B55: add esp, 0x10 */ 6340 _flag_k = FK_ADD; 6341 L_47071B58: 6342 ebp = MEM32(esp + 0x1A8); /* 0x47071B58: mov ebp, dword ptr [esp + 0x1a8] */ 6343 edx = MEM32(esi); /* 0x47071B5F: mov edx, dword ptr [esi] */ 6344 edi = MEM32(esi + 0xC); /* 0x47071B61: mov edi, dword ptr [esi + 0xc] */ 6345 PUSH32(esp, ebp); /* 0x47071B64: push ebp */ 6346 ecx = esi; /* 0x47071B65: mov ecx, esi */ 6347 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x47071B67: call dword ptr [edx + 0x30] */ 6348 RECOMP_FLAGS_IN(); 6349 PUSH32(esp, eax); /* 0x47071B6A: push eax */ 6350 eax = MEM32(esi); /* 0x47071B6B: mov eax, dword ptr [esi] */ 6351 ecx = esi; /* 0x47071B6D: mov ecx, esi */ 6352 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47071B6F: call dword ptr [eax + 0x34] */ 6353 RECOMP_FLAGS_IN(); 6354 edx = MEM32(esi); /* 0x47071B72: mov edx, dword ptr [esi] */ 6355 PUSH32(esp, eax); /* 0x47071B74: push eax */ 6356 PUSH32(esp, 0); /* 0x47071B75: push 0 */ 6357 ecx = esi; /* 0x47071B77: mov ecx, esi */ 6358 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47071B79: call dword ptr [edx + 0x48] */ 6359 RECOMP_FLAGS_IN(); 6360 PUSH32(esp, eax); /* 0x47071B7C: push eax */ 6361 eax = MEM32(edi); /* 0x47071B7D: mov eax, dword ptr [edi] */ 6362 ecx = edi; /* 0x47071B7F: mov ecx, edi */ 6363 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x47071B81: call dword ptr [eax + 0x28] */ 6364 RECOMP_FLAGS_IN(); 6365 PUSH32(esp, eax); /* 0x47071B84: push eax */ 6366 ecx = esp + 0x28; /* 0x47071B85: lea ecx, [esp + 0x28] */ 6367 RECOMP_ICALL(0x470957B0u); /* 0x47071B89: call 0x470957b0 */ /* not lifted */ 6368 RECOMP_FLAGS_IN(); 6369 ecx = MEM32(esp + 0x1A0); /* 0x47071B8E: mov ecx, dword ptr [esp + 0x1a0] */ 6370 PUSH32(esp, ecx); /* 0x47071B95: push ecx */ 6371 MEM32(esp + 0x19C) = 0; /* 0x47071B96: mov dword ptr [esp + 0x19c], 0 */ 6372 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47071BA1: call dword ptr [0x470ac4ac] */ 6373 RECOMP_FLAGS_IN(); 6374 PUSH32(esp, ebp); /* 0x47071BA7: push ebp */ 6375 edx = esp + 0x14; /* 0x47071BA8: lea edx, [esp + 0x14] */ 6376 PUSH32(esp, edx); /* 0x47071BAC: push edx */ 6377 ecx = esi; /* 0x47071BAD: mov ecx, esi */ 6378 MEM32(esp + 0x2C) = eax; /* 0x47071BAF: mov dword ptr [esp + 0x2c], eax */ 6379 RECOMP_ICALL(0x470717D0u); /* 0x47071BB3: call 0x470717d0 */ /* not lifted */ 6380 RECOMP_FLAGS_IN(); 6381 ebp = eax; /* 0x47071BB8: mov ebp, eax */ 6382 /* cmp ebp, 0xFFFFFFFFu */ /* 0x47071BBA: cmp ebp, -1 */ 6383 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0xFFFFFFFFu); 6384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6385 _flag_k = FK_CMP; 6386 if (CMP_NE(_flag_a, _flag_b)) goto L_47071CD0; /* 0x47071BBD: jne 0x47071cd0 */ 6387 L_47071BC3: 6388 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071BC3: call dword ptr [0x470ac150] */ 6389 RECOMP_FLAGS_IN(); 6390 edi = eax; /* 0x47071BC9: mov edi, eax */ 6391 RECOMP_ICALL(ebx); /* 0x47071BCB: call ebx */ 6392 RECOMP_FLAGS_IN(); 6393 eax = MEM32(eax); /* 0x47071BCD: mov eax, dword ptr [eax] */ 6394 /* test eax, eax */ /* 0x47071BCF: test eax, eax */ 6395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6396 _cf = 0; 6397 _flag_k = FK_TEST; 6398 ebx = edi; /* 0x47071BD1: mov ebx, edi */ 6399 if (TEST_Z(_flag_a, _flag_b)) goto L_47071BD7; /* 0x47071BD3: je 0x47071bd7 */ 6400 L_47071BD5: 6401 ebx = eax; /* 0x47071BD5: mov ebx, eax */ 6402 L_47071BD7: 6403 RECOMP_ICALL(0x47039020u); /* 0x47071BD7: call 0x47039020 */ /* not lifted */ 6404 RECOMP_FLAGS_IN(); 6405 edi = eax; /* 0x47071BDC: mov edi, eax */ 6406 ecx = edi; /* 0x47071BDE: mov ecx, edi */ 6407 RECOMP_ICALL(0x4703B210u); /* 0x47071BE0: call 0x4703b210 */ /* not lifted */ 6408 RECOMP_FLAGS_IN(); 6409 PUSH32(esp, eax); /* 0x47071BE5: push eax */ 6410 ecx = edi; /* 0x47071BE6: mov ecx, edi */ 6411 RECOMP_ICALL(0x4703B240u); /* 0x47071BE8: call 0x4703b240 */ /* not lifted */ 6412 RECOMP_FLAGS_IN(); 6413 PUSH32(esp, eax); /* 0x47071BED: push eax */ 6414 ecx = edi; /* 0x47071BEE: mov ecx, edi */ 6415 RECOMP_ICALL(0x4703B080u); /* 0x47071BF0: call 0x4703b080 */ /* not lifted */ 6416 RECOMP_FLAGS_IN(); 6417 PUSH32(esp, eax); /* 0x47071BF5: push eax */ 6418 PUSH32(esp, ebx); /* 0x47071BF6: push ebx */ 6419 PUSH32(esp, 0); /* 0x47071BF7: push 0 */ 6420 PUSH32(esp, 0xEBu); /* 0x47071BF9: push 0xeb */ 6421 PUSH32(esp, 0x4710A308u); /* 0x47071BFE: push 0x4710a308 */ 6422 ecx = edi; /* 0x47071C03: mov ecx, edi */ 6423 RECOMP_ICALL(0x4703A340u); /* 0x47071C05: call 0x4703a340 */ /* not lifted */ 6424 RECOMP_FLAGS_IN(); 6425 PUSH32(esp, 0x4710A3D4u); /* 0x47071C0A: push 0x4710a3d4 */ 6426 PUSH32(esp, 4); /* 0x47071C0F: push 4 */ 6427 PUSH32(esp, edi); /* 0x47071C11: push edi */ 6428 RECOMP_ICALL(0x47039830u); /* 0x47071C12: call 0x47039830 */ /* not lifted */ 6429 RECOMP_FLAGS_IN(); 6430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6432 esp = esp + 0xCu; /* 0x47071C17: add esp, 0xc */ 6433 _flag_k = FK_ADD; 6434 PUSH32(esp, 0x4710F948u); /* 0x47071C1A: push 0x4710f948 */ 6435 ecx = esi; /* 0x47071C1F: mov ecx, esi */ 6436 RECOMP_ICALL(0x47038620u); /* 0x47071C21: call 0x47038620 */ /* not lifted */ 6437 RECOMP_FLAGS_IN(); 6438 goto L_47071D40; /* 0x47071C26: jmp 0x47071d40 */ 6439 L_47071C2B: 6440 eax = MEM32(esi + 0x8); /* 0x47071C2B: mov eax, dword ptr [esi + 8] */ 6441 /* test eax, eax */ /* 0x47071C2E: test eax, eax */ 6442 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6443 _cf = 0; 6444 _flag_k = FK_TEST; 6445 if (TEST_Z(_flag_a, _flag_b)) goto L_47071C87; /* 0x47071C30: je 0x47071c87 */ 6446 L_47071C32: 6447 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071C32: call dword ptr [0x470ac150] */ 6448 RECOMP_FLAGS_IN(); 6449 ebp = eax; /* 0x47071C38: mov ebp, eax */ 6450 RECOMP_ICALL(ebx); /* 0x47071C3A: call ebx */ 6451 RECOMP_FLAGS_IN(); 6452 eax = MEM32(eax); /* 0x47071C3C: mov eax, dword ptr [eax] */ 6453 /* test eax, eax */ /* 0x47071C3E: test eax, eax */ 6454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6455 _cf = 0; 6456 _flag_k = FK_TEST; 6457 if (TEST_Z(_flag_a, _flag_b)) goto L_47071C44; /* 0x47071C40: je 0x47071c44 */ 6458 L_47071C42: 6459 ebp = eax; /* 0x47071C42: mov ebp, eax */ 6460 L_47071C44: 6461 RECOMP_ICALL(0x47039020u); /* 0x47071C44: call 0x47039020 */ /* not lifted */ 6462 RECOMP_FLAGS_IN(); 6463 edi = eax; /* 0x47071C49: mov edi, eax */ 6464 ecx = edi; /* 0x47071C4B: mov ecx, edi */ 6465 RECOMP_ICALL(0x4703B210u); /* 0x47071C4D: call 0x4703b210 */ /* not lifted */ 6466 RECOMP_FLAGS_IN(); 6467 PUSH32(esp, eax); /* 0x47071C52: push eax */ 6468 ecx = edi; /* 0x47071C53: mov ecx, edi */ 6469 RECOMP_ICALL(0x4703B240u); /* 0x47071C55: call 0x4703b240 */ /* not lifted */ 6470 RECOMP_FLAGS_IN(); 6471 PUSH32(esp, eax); /* 0x47071C5A: push eax */ 6472 ecx = edi; /* 0x47071C5B: mov ecx, edi */ 6473 RECOMP_ICALL(0x4703B080u); /* 0x47071C5D: call 0x4703b080 */ /* not lifted */ 6474 RECOMP_FLAGS_IN(); 6475 PUSH32(esp, eax); /* 0x47071C62: push eax */ 6476 PUSH32(esp, ebp); /* 0x47071C63: push ebp */ 6477 PUSH32(esp, 0); /* 0x47071C64: push 0 */ 6478 PUSH32(esp, 0xCBu); /* 0x47071C66: push 0xcb */ 6479 PUSH32(esp, 0x4710A308u); /* 0x47071C6B: push 0x4710a308 */ 6480 ecx = edi; /* 0x47071C70: mov ecx, edi */ 6481 RECOMP_ICALL(0x4703A340u); /* 0x47071C72: call 0x4703a340 */ /* not lifted */ 6482 RECOMP_FLAGS_IN(); 6483 PUSH32(esp, 0x4710A3B4u); /* 0x47071C77: push 0x4710a3b4 */ 6484 PUSH32(esp, 4); /* 0x47071C7C: push 4 */ 6485 PUSH32(esp, edi); /* 0x47071C7E: push edi */ 6486 RECOMP_ICALL(0x47039830u); /* 0x47071C7F: call 0x47039830 */ /* not lifted */ 6487 RECOMP_FLAGS_IN(); 6488 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6490 esp = esp + 0xCu; /* 0x47071C84: add esp, 0xc */ 6491 _flag_k = FK_ADD; 6492 L_47071C87: 6493 eax = MEM32(esi + 0x40); /* 0x47071C87: mov eax, dword ptr [esi + 0x40] */ 6494 /* test eax, eax */ /* 0x47071C8A: test eax, eax */ 6495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6496 _cf = 0; 6497 _flag_k = FK_TEST; 6498 RECOMP_BACKEDGE(); 6499 if (TEST_NZ(_flag_a, _flag_b)) goto L_47071B58; /* 0x47071C8C: jne 0x47071b58 */ 6500 L_47071C92: 6501 RECOMP_ICALL(ebx); /* 0x47071C92: call ebx */ 6502 RECOMP_FLAGS_IN(); 6503 MEM32(eax) = 0x24u; /* 0x47071C94: mov dword ptr [eax], 0x24 */ 6504 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071C9A: call dword ptr [0x470ac150] */ 6505 RECOMP_FLAGS_IN(); 6506 esi = eax; /* 0x47071CA0: mov esi, eax */ 6507 RECOMP_ICALL(ebx); /* 0x47071CA2: call ebx */ 6508 RECOMP_FLAGS_IN(); 6509 eax = MEM32(eax); /* 0x47071CA4: mov eax, dword ptr [eax] */ 6510 /* test eax, eax */ /* 0x47071CA6: test eax, eax */ 6511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6512 _cf = 0; 6513 _flag_k = FK_TEST; 6514 if (TEST_NZ(_flag_a, _flag_b)) goto L_47071CAC; /* 0x47071CA8: jne 0x47071cac */ 6515 L_47071CAA: 6516 eax = esi; /* 0x47071CAA: mov eax, esi */ 6517 L_47071CAC: 6518 PUSH32(esp, 0); /* 0x47071CAC: push 0 */ 6519 PUSH32(esp, 0); /* 0x47071CAE: push 0 */ 6520 PUSH32(esp, 1); /* 0x47071CB0: push 1 */ 6521 PUSH32(esp, eax); /* 0x47071CB2: push eax */ 6522 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071CB3: push -1 */ 6523 PUSH32(esp, 0xD2u); /* 0x47071CB5: push 0xd2 */ 6524 PUSH32(esp, 0x4710A308u); /* 0x47071CBA: push 0x4710a308 */ 6525 RECOMP_ICALL(0x47039020u); /* 0x47071CBF: call 0x47039020 */ /* not lifted */ 6526 RECOMP_FLAGS_IN(); 6527 ecx = eax; /* 0x47071CC4: mov ecx, eax */ 6528 RECOMP_ICALL(0x4703A340u); /* 0x47071CC6: call 0x4703a340 */ /* not lifted */ 6529 RECOMP_FLAGS_IN(); 6530 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6531 eax = eax | 0xFFFFFFFFu; /* 0x47071CCB: or eax, 0xffffffff */ 6532 _cf = 0; 6533 _flag_k = FK_TEST; 6534 goto L_47071D42; /* 0x47071CCE: jmp 0x47071d42 */ 6535 L_47071CD0: 6536 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071CD0: call dword ptr [0x470ac150] */ 6537 RECOMP_FLAGS_IN(); 6538 edi = eax; /* 0x47071CD6: mov edi, eax */ 6539 RECOMP_ICALL(ebx); /* 0x47071CD8: call ebx */ 6540 RECOMP_FLAGS_IN(); 6541 eax = MEM32(eax); /* 0x47071CDA: mov eax, dword ptr [eax] */ 6542 /* test eax, eax */ /* 0x47071CDC: test eax, eax */ 6543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6544 _cf = 0; 6545 _flag_k = FK_TEST; 6546 ebx = edi; /* 0x47071CDE: mov ebx, edi */ 6547 if (TEST_Z(_flag_a, _flag_b)) goto L_47071CE4; /* 0x47071CE0: je 0x47071ce4 */ 6548 L_47071CE2: 6549 ebx = eax; /* 0x47071CE2: mov ebx, eax */ 6550 L_47071CE4: 6551 RECOMP_ICALL(0x47039020u); /* 0x47071CE4: call 0x47039020 */ /* not lifted */ 6552 RECOMP_FLAGS_IN(); 6553 edi = eax; /* 0x47071CE9: mov edi, eax */ 6554 ecx = edi; /* 0x47071CEB: mov ecx, edi */ 6555 RECOMP_ICALL(0x4703B210u); /* 0x47071CED: call 0x4703b210 */ /* not lifted */ 6556 RECOMP_FLAGS_IN(); 6557 PUSH32(esp, eax); /* 0x47071CF2: push eax */ 6558 ecx = edi; /* 0x47071CF3: mov ecx, edi */ 6559 RECOMP_ICALL(0x4703B240u); /* 0x47071CF5: call 0x4703b240 */ /* not lifted */ 6560 RECOMP_FLAGS_IN(); 6561 PUSH32(esp, eax); /* 0x47071CFA: push eax */ 6562 ecx = edi; /* 0x47071CFB: mov ecx, edi */ 6563 RECOMP_ICALL(0x4703B080u); /* 0x47071CFD: call 0x4703b080 */ /* not lifted */ 6564 RECOMP_FLAGS_IN(); 6565 PUSH32(esp, eax); /* 0x47071D02: push eax */ 6566 PUSH32(esp, ebx); /* 0x47071D03: push ebx */ 6567 PUSH32(esp, 0); /* 0x47071D04: push 0 */ 6568 PUSH32(esp, 0xF0u); /* 0x47071D06: push 0xf0 */ 6569 PUSH32(esp, 0x4710A308u); /* 0x47071D0B: push 0x4710a308 */ 6570 ecx = edi; /* 0x47071D10: mov ecx, edi */ 6571 RECOMP_ICALL(0x4703A340u); /* 0x47071D12: call 0x4703a340 */ /* not lifted */ 6572 RECOMP_FLAGS_IN(); 6573 eax = MEM32(esi); /* 0x47071D17: mov eax, dword ptr [esi] */ 6574 ecx = esi; /* 0x47071D19: mov ecx, esi */ 6575 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47071D1B: call dword ptr [eax + 0x34] */ 6576 RECOMP_FLAGS_IN(); 6577 PUSH32(esp, eax); /* 0x47071D1E: push eax */ 6578 PUSH32(esp, 0x4710A398u); /* 0x47071D1F: push 0x4710a398 */ 6579 PUSH32(esp, 4); /* 0x47071D24: push 4 */ 6580 PUSH32(esp, edi); /* 0x47071D26: push edi */ 6581 RECOMP_ICALL(0x47039830u); /* 0x47071D27: call 0x47039830 */ /* not lifted */ 6582 RECOMP_FLAGS_IN(); 6583 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6585 esp = esp + 0x10u; /* 0x47071D2C: add esp, 0x10 */ 6586 _flag_k = FK_ADD; 6587 ecx = esi + 0x10; /* 0x47071D2F: lea ecx, [esi + 0x10] */ 6588 RECOMP_ICALL(0x470355B0u); /* 0x47071D32: call 0x470355b0 */ /* not lifted */ 6589 RECOMP_FLAGS_IN(); 6590 ecx = MEM32(esi + 0xC); /* 0x47071D37: mov ecx, dword ptr [esi + 0xc] */ 6591 PUSH32(esp, eax); /* 0x47071D3A: push eax */ 6592 RECOMP_ICALL(0x47034C40u); /* 0x47071D3B: call 0x47034c40 */ /* not lifted */ 6593 RECOMP_FLAGS_IN(); 6594 L_47071D40: 6595 eax = ebp; /* 0x47071D40: mov eax, ebp */ 6596 L_47071D42: 6597 ecx = MEM32(esp + 0x190); /* 0x47071D42: mov ecx, dword ptr [esp + 0x190] */ 6598 edi = POP32_VAL(esp); /* 0x47071D49: pop edi */ 6599 esi = POP32_VAL(esp); /* 0x47071D4A: pop esi */ 6600 ebp = POP32_VAL(esp); /* 0x47071D4B: pop ebp */ 6601 ebx = POP32_VAL(esp); /* 0x47071D4C: pop ebx */ 6602 MEM32(FS_BASE + (0)) = ecx; /* 0x47071D4D: mov dword ptr fs:[0], ecx */ 6603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18Cu); 6604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6605 esp = esp + 0x18Cu; /* 0x47071D54: add esp, 0x18c */ 6606 _flag_k = FK_ADD; 6607 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47071D5A: ret 0xc */ 6608 RECOMP_REGS_OUT(); 6609 } 6610 6611 void sub_47071D40(void) { 6612 int _fpu_cmp = 0; 6613 uint32_t _cf = 0; 6614 int _df = 1; 6615 uint32_t _flag_k = FK_NONE; 6616 uint32_t _flag_a = 0, _flag_b = 0; 6617 uint32_t _itail_tgt = 0; 6618 RECOMP_REGS_LOCALS 6619 RECOMP_ENTER(0x47071D40u); 6620 6621 L_47071D40: 6622 eax = ebp; /* 0x47071D40: mov eax, ebp */ 6623 ecx = MEM32(esp + 0x190); /* 0x47071D42: mov ecx, dword ptr [esp + 0x190] */ 6624 edi = POP32_VAL(esp); /* 0x47071D49: pop edi */ 6625 esi = POP32_VAL(esp); /* 0x47071D4A: pop esi */ 6626 ebp = POP32_VAL(esp); /* 0x47071D4B: pop ebp */ 6627 ebx = POP32_VAL(esp); /* 0x47071D4C: pop ebx */ 6628 MEM32(FS_BASE + (0)) = ecx; /* 0x47071D4D: mov dword ptr fs:[0], ecx */ 6629 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18Cu); 6630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6631 esp = esp + 0x18Cu; /* 0x47071D54: add esp, 0x18c */ 6632 _flag_k = FK_ADD; 6633 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47071D5A: ret 0xc */ 6634 RECOMP_REGS_OUT(); 6635 } 6636 6637 void sub_47071D42(void) { 6638 int _fpu_cmp = 0; 6639 uint32_t _cf = 0; 6640 int _df = 1; 6641 uint32_t _flag_k = FK_NONE; 6642 uint32_t _flag_a = 0, _flag_b = 0; 6643 uint32_t _itail_tgt = 0; 6644 RECOMP_REGS_LOCALS 6645 RECOMP_ENTER(0x47071D42u); 6646 6647 L_47071D42: 6648 ecx = MEM32(esp + 0x190); /* 0x47071D42: mov ecx, dword ptr [esp + 0x190] */ 6649 edi = POP32_VAL(esp); /* 0x47071D49: pop edi */ 6650 esi = POP32_VAL(esp); /* 0x47071D4A: pop esi */ 6651 ebp = POP32_VAL(esp); /* 0x47071D4B: pop ebp */ 6652 ebx = POP32_VAL(esp); /* 0x47071D4C: pop ebx */ 6653 MEM32(FS_BASE + (0)) = ecx; /* 0x47071D4D: mov dword ptr fs:[0], ecx */ 6654 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18Cu); 6655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6656 esp = esp + 0x18Cu; /* 0x47071D54: add esp, 0x18c */ 6657 _flag_k = FK_ADD; 6658 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47071D5A: ret 0xc */ 6659 RECOMP_REGS_OUT(); 6660 } 6661 6662 void sub_47071D60(void) { 6663 int _fpu_cmp = 0; 6664 uint32_t _cf = 0; 6665 int _df = 1; 6666 uint32_t _flag_k = FK_NONE; 6667 uint32_t _flag_a = 0, _flag_b = 0; 6668 uint32_t _itail_tgt = 0; 6669 RECOMP_REGS_LOCALS 6670 RECOMP_ENTER(0x47071D60u); 6671 6672 L_47071D60: 6673 eax = MEM32(FS_BASE + (0)); /* 0x47071D60: mov eax, dword ptr fs:[0] */ 6674 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071D66: push -1 */ 6675 PUSH32(esp, 0x470A9166u); /* 0x47071D68: push 0x470a9166 */ 6676 PUSH32(esp, eax); /* 0x47071D6D: push eax */ 6677 eax = MEM32(esp + 0x10); /* 0x47071D6E: mov eax, dword ptr [esp + 0x10] */ 6678 MEM32(FS_BASE + (0)) = esp; /* 0x47071D72: mov dword ptr fs:[0], esp */ 6679 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x188u); 6680 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6681 esp = esp - 0x188u; /* 0x47071D79: sub esp, 0x188 */ 6682 _flag_k = FK_CMP; 6683 PUSH32(esp, esi); /* 0x47071D7F: push esi */ 6684 PUSH32(esp, edi); /* 0x47071D80: push edi */ 6685 esi = ecx; /* 0x47071D81: mov esi, ecx */ 6686 PUSH32(esp, eax); /* 0x47071D83: push eax */ 6687 RECOMP_ICALL(0x47037F00u); /* 0x47071D84: call 0x47037f00 */ /* not lifted */ 6688 RECOMP_FLAGS_IN(); 6689 /* cmp eax, 0xFFFFFFFFu */ /* 0x47071D89: cmp eax, -1 */ 6690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6691 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6692 _flag_k = FK_CMP; 6693 if (CMP_NE(_flag_a, _flag_b)) goto L_47071E18; /* 0x47071D8C: jne 0x47071e18 */ 6694 L_47071D92: 6695 eax = MEM32(esi + 0x8); /* 0x47071D92: mov eax, dword ptr [esi + 8] */ 6696 /* test eax, eax */ /* 0x47071D95: test eax, eax */ 6697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6698 _cf = 0; 6699 _flag_k = FK_TEST; 6700 if (TEST_Z(_flag_a, _flag_b)) goto L_47071E13; /* 0x47071D97: je 0x47071e13 */ 6701 L_47071D99: 6702 esi = MEM32(0x470AC3C8); /* 0x47071D99: mov esi, dword ptr [0x470ac3c8] */ 6703 PUSH32(esp, ebx); /* 0x47071D9F: push ebx */ 6704 PUSH32(esp, ebp); /* 0x47071DA0: push ebp */ 6705 RECOMP_ICALL(esi); /* 0x47071DA1: call esi */ 6706 RECOMP_FLAGS_IN(); 6707 edi = eax; /* 0x47071DA3: mov edi, eax */ 6708 ebp = MEM32(edi); /* 0x47071DA5: mov ebp, dword ptr [edi] */ 6709 MEM32(esp + 0x10) = edi; /* 0x47071DA7: mov dword ptr [esp + 0x10], edi */ 6710 MEM32(esp + 0x14) = ebp; /* 0x47071DAB: mov dword ptr [esp + 0x14], ebp */ 6711 MEM32(esp + 0x1A0) = 0; /* 0x47071DAF: mov dword ptr [esp + 0x1a0], 0 */ 6712 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071DBA: call dword ptr [0x470ac150] */ 6713 RECOMP_FLAGS_IN(); 6714 ebx = eax; /* 0x47071DC0: mov ebx, eax */ 6715 RECOMP_ICALL(esi); /* 0x47071DC2: call esi */ 6716 RECOMP_FLAGS_IN(); 6717 eax = MEM32(eax); /* 0x47071DC4: mov eax, dword ptr [eax] */ 6718 /* test eax, eax */ /* 0x47071DC6: test eax, eax */ 6719 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6720 _cf = 0; 6721 _flag_k = FK_TEST; 6722 if (TEST_Z(_flag_a, _flag_b)) goto L_47071DCC; /* 0x47071DC8: je 0x47071dcc */ 6723 L_47071DCA: 6724 ebx = eax; /* 0x47071DCA: mov ebx, eax */ 6725 L_47071DCC: 6726 RECOMP_ICALL(0x47039020u); /* 0x47071DCC: call 0x47039020 */ /* not lifted */ 6727 RECOMP_FLAGS_IN(); 6728 esi = eax; /* 0x47071DD1: mov esi, eax */ 6729 ecx = esi; /* 0x47071DD3: mov ecx, esi */ 6730 RECOMP_ICALL(0x4703B210u); /* 0x47071DD5: call 0x4703b210 */ /* not lifted */ 6731 RECOMP_FLAGS_IN(); 6732 PUSH32(esp, eax); /* 0x47071DDA: push eax */ 6733 ecx = esi; /* 0x47071DDB: mov ecx, esi */ 6734 RECOMP_ICALL(0x4703B240u); /* 0x47071DDD: call 0x4703b240 */ /* not lifted */ 6735 RECOMP_FLAGS_IN(); 6736 PUSH32(esp, eax); /* 0x47071DE2: push eax */ 6737 ecx = esi; /* 0x47071DE3: mov ecx, esi */ 6738 RECOMP_ICALL(0x4703B080u); /* 0x47071DE5: call 0x4703b080 */ /* not lifted */ 6739 RECOMP_FLAGS_IN(); 6740 PUSH32(esp, eax); /* 0x47071DEA: push eax */ 6741 PUSH32(esp, ebx); /* 0x47071DEB: push ebx */ 6742 PUSH32(esp, 0); /* 0x47071DEC: push 0 */ 6743 PUSH32(esp, 0x10Au); /* 0x47071DEE: push 0x10a */ 6744 PUSH32(esp, 0x4710A308u); /* 0x47071DF3: push 0x4710a308 */ 6745 ecx = esi; /* 0x47071DF8: mov ecx, esi */ 6746 RECOMP_ICALL(0x4703A340u); /* 0x47071DFA: call 0x4703a340 */ /* not lifted */ 6747 RECOMP_FLAGS_IN(); 6748 PUSH32(esp, 0x4710A470u); /* 0x47071DFF: push 0x4710a470 */ 6749 PUSH32(esp, 4); /* 0x47071E04: push 4 */ 6750 PUSH32(esp, esi); /* 0x47071E06: push esi */ 6751 RECOMP_ICALL(0x47039830u); /* 0x47071E07: call 0x47039830 */ /* not lifted */ 6752 RECOMP_FLAGS_IN(); 6753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6755 esp = esp + 0xCu; /* 0x47071E0C: add esp, 0xc */ 6756 _flag_k = FK_ADD; 6757 MEM32(edi) = ebp; /* 0x47071E0F: mov dword ptr [edi], ebp */ 6758 ebp = POP32_VAL(esp); /* 0x47071E11: pop ebp */ 6759 ebx = POP32_VAL(esp); /* 0x47071E12: pop ebx */ 6760 L_47071E13: 6761 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6762 eax = eax | 0xFFFFFFFFu; /* 0x47071E13: or eax, 0xffffffff */ 6763 _cf = 0; 6764 _flag_k = FK_TEST; 6765 goto L_47071E67; /* 0x47071E16: jmp 0x47071e67 */ 6766 L_47071E18: 6767 edx = MEM32(esi); /* 0x47071E18: mov edx, dword ptr [esi] */ 6768 edi = MEM32(esi + 0xC); /* 0x47071E1A: mov edi, dword ptr [esi + 0xc] */ 6769 PUSH32(esp, 0x4710F938u); /* 0x47071E1D: push 0x4710f938 */ 6770 ecx = esi; /* 0x47071E22: mov ecx, esi */ 6771 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x47071E24: call dword ptr [edx + 0x30] */ 6772 RECOMP_FLAGS_IN(); 6773 PUSH32(esp, eax); /* 0x47071E27: push eax */ 6774 eax = MEM32(esi); /* 0x47071E28: mov eax, dword ptr [esi] */ 6775 ecx = esi; /* 0x47071E2A: mov ecx, esi */ 6776 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47071E2C: call dword ptr [eax + 0x34] */ 6777 RECOMP_FLAGS_IN(); 6778 edx = MEM32(esi); /* 0x47071E2F: mov edx, dword ptr [esi] */ 6779 PUSH32(esp, eax); /* 0x47071E31: push eax */ 6780 PUSH32(esp, 4); /* 0x47071E32: push 4 */ 6781 ecx = esi; /* 0x47071E34: mov ecx, esi */ 6782 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47071E36: call dword ptr [edx + 0x48] */ 6783 RECOMP_FLAGS_IN(); 6784 PUSH32(esp, eax); /* 0x47071E39: push eax */ 6785 eax = MEM32(edi); /* 0x47071E3A: mov eax, dword ptr [edi] */ 6786 ecx = edi; /* 0x47071E3C: mov ecx, edi */ 6787 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x47071E3E: call dword ptr [eax + 0x28] */ 6788 RECOMP_FLAGS_IN(); 6789 PUSH32(esp, eax); /* 0x47071E41: push eax */ 6790 ecx = esp + 0x28; /* 0x47071E42: lea ecx, [esp + 0x28] */ 6791 RECOMP_ICALL(0x470957B0u); /* 0x47071E46: call 0x470957b0 */ /* not lifted */ 6792 RECOMP_FLAGS_IN(); 6793 PUSH32(esp, 0x4710F938u); /* 0x47071E4B: push 0x4710f938 */ 6794 ecx = esp + 0x14; /* 0x47071E50: lea ecx, [esp + 0x14] */ 6795 PUSH32(esp, ecx); /* 0x47071E54: push ecx */ 6796 ecx = esi; /* 0x47071E55: mov ecx, esi */ 6797 MEM32(esp + 0x1A0) = 1; /* 0x47071E57: mov dword ptr [esp + 0x1a0], 1 */ 6798 RECOMP_ICALL(0x470717D0u); /* 0x47071E62: call 0x470717d0 */ /* not lifted */ 6799 RECOMP_FLAGS_IN(); 6800 L_47071E67: 6801 ecx = MEM32(esp + 0x190); /* 0x47071E67: mov ecx, dword ptr [esp + 0x190] */ 6802 edi = POP32_VAL(esp); /* 0x47071E6E: pop edi */ 6803 esi = POP32_VAL(esp); /* 0x47071E6F: pop esi */ 6804 MEM32(FS_BASE + (0)) = ecx; /* 0x47071E70: mov dword ptr fs:[0], ecx */ 6805 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x194u); 6806 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6807 esp = esp + 0x194u; /* 0x47071E77: add esp, 0x194 */ 6808 _flag_k = FK_ADD; 6809 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47071E7D: ret 4 */ 6810 RECOMP_REGS_OUT(); 6811 } 6812 6813 void sub_47071E80(void) { 6814 int _fpu_cmp = 0; 6815 uint32_t _cf = 0; 6816 int _df = 1; 6817 uint32_t _flag_k = FK_NONE; 6818 uint32_t _flag_a = 0, _flag_b = 0; 6819 uint32_t _itail_tgt = 0; 6820 RECOMP_REGS_LOCALS 6821 RECOMP_ENTER(0x47071E80u); 6822 6823 L_47071E80: 6824 eax = MEM32(FS_BASE + (0)); /* 0x47071E80: mov eax, dword ptr fs:[0] */ 6825 PUSH32(esp, 0xFFFFFFFFu); /* 0x47071E86: push -1 */ 6826 PUSH32(esp, 0x470A9186u); /* 0x47071E88: push 0x470a9186 */ 6827 PUSH32(esp, eax); /* 0x47071E8D: push eax */ 6828 eax = MEM32(esp + 0x10); /* 0x47071E8E: mov eax, dword ptr [esp + 0x10] */ 6829 MEM32(FS_BASE + (0)) = esp; /* 0x47071E92: mov dword ptr fs:[0], esp */ 6830 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x188u); 6831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6832 esp = esp - 0x188u; /* 0x47071E99: sub esp, 0x188 */ 6833 _flag_k = FK_CMP; 6834 PUSH32(esp, ebx); /* 0x47071E9F: push ebx */ 6835 PUSH32(esp, ebp); /* 0x47071EA0: push ebp */ 6836 PUSH32(esp, esi); /* 0x47071EA1: push esi */ 6837 PUSH32(esp, edi); /* 0x47071EA2: push edi */ 6838 PUSH32(esp, 0x4710F920u); /* 0x47071EA3: push 0x4710f920 */ 6839 esi = ecx; /* 0x47071EA8: mov esi, ecx */ 6840 PUSH32(esp, eax); /* 0x47071EAA: push eax */ 6841 RECOMP_ICALL(0x470380C0u); /* 0x47071EAB: call 0x470380c0 */ /* not lifted */ 6842 RECOMP_FLAGS_IN(); 6843 /* cmp eax, 0xFFFFFFFFu */ /* 0x47071EB0: cmp eax, -1 */ 6844 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6846 _flag_k = FK_CMP; 6847 ebx = MEM32(0x470AC3C8); /* 0x47071EB3: mov ebx, dword ptr [0x470ac3c8] */ 6848 if (CMP_NE(_flag_a, _flag_b)) goto L_47071F4C; /* 0x47071EB9: jne 0x47071f4c */ 6849 L_47071EBF: 6850 RECOMP_ICALL(ebx); /* 0x47071EBF: call ebx */ 6851 RECOMP_FLAGS_IN(); 6852 /* cmp MEM32(eax), 0x2733u */ /* 0x47071EC1: cmp dword ptr [eax], 0x2733 */ 6853 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x2733u); 6854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6855 _flag_k = FK_CMP; 6856 if (CMP_EQ(_flag_a, _flag_b)) goto L_47071ED1; /* 0x47071EC7: je 0x47071ed1 */ 6857 L_47071EC9: 6858 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6859 eax = eax | 0xFFFFFFFFu; /* 0x47071EC9: or eax, 0xffffffff */ 6860 _cf = 0; 6861 _flag_k = FK_TEST; 6862 goto L_470720C0; /* 0x47071ECC: jmp 0x470720c0 */ 6863 L_47071ED1: 6864 eax = MEM32(esi + 0x8); /* 0x47071ED1: mov eax, dword ptr [esi + 8] */ 6865 /* test eax, eax */ /* 0x47071ED4: test eax, eax */ 6866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6867 _cf = 0; 6868 _flag_k = FK_TEST; 6869 if (TEST_Z(_flag_a, _flag_b)) goto L_47071F4C; /* 0x47071ED6: je 0x47071f4c */ 6870 L_47071ED8: 6871 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071ED8: call dword ptr [0x470ac150] */ 6872 RECOMP_FLAGS_IN(); 6873 ebp = eax; /* 0x47071EDE: mov ebp, eax */ 6874 RECOMP_ICALL(ebx); /* 0x47071EE0: call ebx */ 6875 RECOMP_FLAGS_IN(); 6876 eax = MEM32(eax); /* 0x47071EE2: mov eax, dword ptr [eax] */ 6877 /* test eax, eax */ /* 0x47071EE4: test eax, eax */ 6878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6879 _cf = 0; 6880 _flag_k = FK_TEST; 6881 if (TEST_Z(_flag_a, _flag_b)) goto L_47071EEA; /* 0x47071EE6: je 0x47071eea */ 6882 L_47071EE8: 6883 ebp = eax; /* 0x47071EE8: mov ebp, eax */ 6884 L_47071EEA: 6885 RECOMP_ICALL(0x47039020u); /* 0x47071EEA: call 0x47039020 */ /* not lifted */ 6886 RECOMP_FLAGS_IN(); 6887 edi = eax; /* 0x47071EEF: mov edi, eax */ 6888 ecx = edi; /* 0x47071EF1: mov ecx, edi */ 6889 RECOMP_ICALL(0x4703B210u); /* 0x47071EF3: call 0x4703b210 */ /* not lifted */ 6890 RECOMP_FLAGS_IN(); 6891 PUSH32(esp, eax); /* 0x47071EF8: push eax */ 6892 ecx = edi; /* 0x47071EF9: mov ecx, edi */ 6893 RECOMP_ICALL(0x4703B240u); /* 0x47071EFB: call 0x4703b240 */ /* not lifted */ 6894 RECOMP_FLAGS_IN(); 6895 PUSH32(esp, eax); /* 0x47071F00: push eax */ 6896 ecx = edi; /* 0x47071F01: mov ecx, edi */ 6897 RECOMP_ICALL(0x4703B080u); /* 0x47071F03: call 0x4703b080 */ /* not lifted */ 6898 RECOMP_FLAGS_IN(); 6899 PUSH32(esp, eax); /* 0x47071F08: push eax */ 6900 PUSH32(esp, ebp); /* 0x47071F09: push ebp */ 6901 PUSH32(esp, 0); /* 0x47071F0A: push 0 */ 6902 PUSH32(esp, 0x12Au); /* 0x47071F0C: push 0x12a */ 6903 PUSH32(esp, 0x4710A308u); /* 0x47071F11: push 0x4710a308 */ 6904 ecx = edi; /* 0x47071F16: mov ecx, edi */ 6905 RECOMP_ICALL(0x4703A340u); /* 0x47071F18: call 0x4703a340 */ /* not lifted */ 6906 RECOMP_FLAGS_IN(); 6907 eax = MEM32(esi + 0xC); /* 0x47071F1D: mov eax, dword ptr [esi + 0xc] */ 6908 ebp = eax + 0xC; /* 0x47071F20: lea ebp, [eax + 0xc] */ 6909 ecx = ebp; /* 0x47071F23: mov ecx, ebp */ 6910 RECOMP_ICALL(0x470033A0u); /* 0x47071F25: call 0x470033a0 */ /* not lifted */ 6911 RECOMP_FLAGS_IN(); 6912 /* test eax, eax */ /* 0x47071F2A: test eax, eax */ 6913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6914 _cf = 0; 6915 _flag_k = FK_TEST; 6916 if (TEST_NZ(_flag_a, _flag_b)) goto L_47071F35; /* 0x47071F2C: jne 0x47071f35 */ 6917 L_47071F2E: 6918 eax = 0x47106D58u; /* 0x47071F2E: mov eax, 0x47106d58 */ 6919 goto L_47071F3B; /* 0x47071F33: jmp 0x47071f3b */ 6920 L_47071F35: 6921 ebp = MEM32(ebp); /* 0x47071F35: mov ebp, dword ptr [ebp] */ 6922 eax = ebp + 0x60; /* 0x47071F38: lea eax, [ebp + 0x60] */ 6923 L_47071F3B: 6924 PUSH32(esp, eax); /* 0x47071F3B: push eax */ 6925 PUSH32(esp, 0x4710A4DCu); /* 0x47071F3C: push 0x4710a4dc */ 6926 PUSH32(esp, 4); /* 0x47071F41: push 4 */ 6927 PUSH32(esp, edi); /* 0x47071F43: push edi */ 6928 RECOMP_ICALL(0x47039830u); /* 0x47071F44: call 0x47039830 */ /* not lifted */ 6929 RECOMP_FLAGS_IN(); 6930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6932 esp = esp + 0x10u; /* 0x47071F49: add esp, 0x10 */ 6933 _flag_k = FK_ADD; 6934 L_47071F4C: 6935 ebp = MEM32(esp + 0x1AC); /* 0x47071F4C: mov ebp, dword ptr [esp + 0x1ac] */ 6936 edx = MEM32(esi); /* 0x47071F53: mov edx, dword ptr [esi] */ 6937 edi = MEM32(esi + 0xC); /* 0x47071F55: mov edi, dword ptr [esi + 0xc] */ 6938 PUSH32(esp, ebp); /* 0x47071F58: push ebp */ 6939 ecx = esi; /* 0x47071F59: mov ecx, esi */ 6940 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x47071F5B: call dword ptr [edx + 0x30] */ 6941 RECOMP_FLAGS_IN(); 6942 PUSH32(esp, eax); /* 0x47071F5E: push eax */ 6943 eax = MEM32(esi); /* 0x47071F5F: mov eax, dword ptr [esi] */ 6944 ecx = esi; /* 0x47071F61: mov ecx, esi */ 6945 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47071F63: call dword ptr [eax + 0x34] */ 6946 RECOMP_FLAGS_IN(); 6947 edx = MEM32(esi); /* 0x47071F66: mov edx, dword ptr [esi] */ 6948 PUSH32(esp, eax); /* 0x47071F68: push eax */ 6949 PUSH32(esp, 2); /* 0x47071F69: push 2 */ 6950 ecx = esi; /* 0x47071F6B: mov ecx, esi */ 6951 RECOMP_ICALL(MEM32(edx + 0x48)); /* 0x47071F6D: call dword ptr [edx + 0x48] */ 6952 RECOMP_FLAGS_IN(); 6953 PUSH32(esp, eax); /* 0x47071F70: push eax */ 6954 eax = MEM32(edi); /* 0x47071F71: mov eax, dword ptr [edi] */ 6955 ecx = edi; /* 0x47071F73: mov ecx, edi */ 6956 RECOMP_ICALL(MEM32(eax + 0x28)); /* 0x47071F75: call dword ptr [eax + 0x28] */ 6957 RECOMP_FLAGS_IN(); 6958 PUSH32(esp, eax); /* 0x47071F78: push eax */ 6959 ecx = esp + 0x30; /* 0x47071F79: lea ecx, [esp + 0x30] */ 6960 RECOMP_ICALL(0x470957B0u); /* 0x47071F7D: call 0x470957b0 */ /* not lifted */ 6961 RECOMP_FLAGS_IN(); 6962 ecx = MEM32(esp + 0x1A8); /* 0x47071F82: mov ecx, dword ptr [esp + 0x1a8] */ 6963 PUSH32(esp, ecx); /* 0x47071F89: push ecx */ 6964 MEM32(esp + 0x1A4) = 0; /* 0x47071F8A: mov dword ptr [esp + 0x1a4], 0 */ 6965 RECOMP_ICALL(MEM32(0x470AC4AC)); /* 0x47071F95: call dword ptr [0x470ac4ac] */ 6966 RECOMP_FLAGS_IN(); 6967 PUSH32(esp, ebp); /* 0x47071F9B: push ebp */ 6968 edx = esp + 0x1C; /* 0x47071F9C: lea edx, [esp + 0x1c] */ 6969 PUSH32(esp, edx); /* 0x47071FA0: push edx */ 6970 ecx = esi; /* 0x47071FA1: mov ecx, esi */ 6971 MEM32(esp + 0x30) = eax; /* 0x47071FA3: mov dword ptr [esp + 0x30], eax */ 6972 RECOMP_ICALL(0x470717D0u); /* 0x47071FA7: call 0x470717d0 */ /* not lifted */ 6973 RECOMP_FLAGS_IN(); 6974 ebp = eax; /* 0x47071FAC: mov ebp, eax */ 6975 /* cmp ebp, 0xFFFFFFFFu */ /* 0x47071FAE: cmp ebp, -1 */ 6976 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0xFFFFFFFFu); 6977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6978 _flag_k = FK_CMP; 6979 if (CMP_NE(_flag_a, _flag_b)) goto L_47072047; /* 0x47071FB1: jne 0x47072047 */ 6980 L_47071FB7: 6981 RECOMP_ICALL(ebx); /* 0x47071FB7: call ebx */ 6982 RECOMP_FLAGS_IN(); 6983 edi = eax; /* 0x47071FB9: mov edi, eax */ 6984 ebp = MEM32(edi); /* 0x47071FBB: mov ebp, dword ptr [edi] */ 6985 MEM32(esp + 0x10) = edi; /* 0x47071FBD: mov dword ptr [esp + 0x10], edi */ 6986 MEM32(esp + 0x14) = ebp; /* 0x47071FC1: mov dword ptr [esp + 0x14], ebp */ 6987 PUSH32(esp, 0x4710F948u); /* 0x47071FC5: push 0x4710f948 */ 6988 ecx = esi; /* 0x47071FCA: mov ecx, esi */ 6989 MEM8(esp + 0x1A4) = (uint8_t)(1); /* 0x47071FCC: mov byte ptr [esp + 0x1a4], 1 */ 6990 RECOMP_ICALL(0x47038620u); /* 0x47071FD4: call 0x47038620 */ /* not lifted */ 6991 RECOMP_FLAGS_IN(); 6992 MEM8(esp + 0x1A0) = (uint8_t)(0); /* 0x47071FD9: mov byte ptr [esp + 0x1a0], 0 */ 6993 MEM32(edi) = ebp; /* 0x47071FE1: mov dword ptr [edi], ebp */ 6994 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47071FE3: call dword ptr [0x470ac150] */ 6995 RECOMP_FLAGS_IN(); 6996 esi = eax; /* 0x47071FE9: mov esi, eax */ 6997 RECOMP_ICALL(ebx); /* 0x47071FEB: call ebx */ 6998 RECOMP_FLAGS_IN(); 6999 eax = MEM32(eax); /* 0x47071FED: mov eax, dword ptr [eax] */ 7000 /* test eax, eax */ /* 0x47071FEF: test eax, eax */ 7001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7002 _cf = 0; 7003 _flag_k = FK_TEST; 7004 edi = esi; /* 0x47071FF1: mov edi, esi */ 7005 if (TEST_Z(_flag_a, _flag_b)) goto L_47071FF7; /* 0x47071FF3: je 0x47071ff7 */ 7006 L_47071FF5: 7007 edi = eax; /* 0x47071FF5: mov edi, eax */ 7008 L_47071FF7: 7009 RECOMP_ICALL(0x47039020u); /* 0x47071FF7: call 0x47039020 */ /* not lifted */ 7010 RECOMP_FLAGS_IN(); 7011 esi = eax; /* 0x47071FFC: mov esi, eax */ 7012 ecx = esi; /* 0x47071FFE: mov ecx, esi */ 7013 RECOMP_ICALL(0x4703B210u); /* 0x47072000: call 0x4703b210 */ /* not lifted */ 7014 RECOMP_FLAGS_IN(); 7015 PUSH32(esp, eax); /* 0x47072005: push eax */ 7016 ecx = esi; /* 0x47072006: mov ecx, esi */ 7017 RECOMP_ICALL(0x4703B240u); /* 0x47072008: call 0x4703b240 */ /* not lifted */ 7018 RECOMP_FLAGS_IN(); 7019 PUSH32(esp, eax); /* 0x4707200D: push eax */ 7020 ecx = esi; /* 0x4707200E: mov ecx, esi */ 7021 RECOMP_ICALL(0x4703B080u); /* 0x47072010: call 0x4703b080 */ /* not lifted */ 7022 RECOMP_FLAGS_IN(); 7023 PUSH32(esp, eax); /* 0x47072015: push eax */ 7024 PUSH32(esp, edi); /* 0x47072016: push edi */ 7025 PUSH32(esp, 0xFFFFFFFFu); /* 0x47072017: push -1 */ 7026 PUSH32(esp, 0x141u); /* 0x47072019: push 0x141 */ 7027 PUSH32(esp, 0x4710A308u); /* 0x4707201E: push 0x4710a308 */ 7028 ecx = esi; /* 0x47072023: mov ecx, esi */ 7029 RECOMP_ICALL(0x4703A340u); /* 0x47072025: call 0x4703a340 */ /* not lifted */ 7030 RECOMP_FLAGS_IN(); 7031 PUSH32(esp, 0x4710A458u); /* 0x4707202A: push 0x4710a458 */ 7032 PUSH32(esp, 0x4710A4A8u); /* 0x4707202F: push 0x4710a4a8 */ 7033 PUSH32(esp, 0x80u); /* 0x47072034: push 0x80 */ 7034 PUSH32(esp, esi); /* 0x47072039: push esi */ 7035 RECOMP_ICALL(0x47039830u); /* 0x4707203A: call 0x47039830 */ /* not lifted */ 7036 RECOMP_FLAGS_IN(); 7037 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7039 esp = esp + 0x10u; /* 0x4707203F: add esp, 0x10 */ 7040 _flag_k = FK_ADD; 7041 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7042 eax = eax | 0xFFFFFFFFu; /* 0x47072042: or eax, 0xffffffff */ 7043 _cf = 0; 7044 _flag_k = FK_TEST; 7045 goto L_470720C0; /* 0x47072045: jmp 0x470720c0 */ 7046 L_47072047: 7047 eax = MEM32(esi + 0x8); /* 0x47072047: mov eax, dword ptr [esi + 8] */ 7048 /* test eax, eax */ /* 0x4707204A: test eax, eax */ 7049 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7050 _cf = 0; 7051 _flag_k = FK_TEST; 7052 if (TEST_Z(_flag_a, _flag_b)) goto L_470720AD; /* 0x4707204C: je 0x470720ad */ 7053 L_4707204E: 7054 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4707204E: call dword ptr [0x470ac150] */ 7055 RECOMP_FLAGS_IN(); 7056 edi = eax; /* 0x47072054: mov edi, eax */ 7057 RECOMP_ICALL(ebx); /* 0x47072056: call ebx */ 7058 RECOMP_FLAGS_IN(); 7059 eax = MEM32(eax); /* 0x47072058: mov eax, dword ptr [eax] */ 7060 /* test eax, eax */ /* 0x4707205A: test eax, eax */ 7061 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7062 _cf = 0; 7063 _flag_k = FK_TEST; 7064 ebx = edi; /* 0x4707205C: mov ebx, edi */ 7065 if (TEST_Z(_flag_a, _flag_b)) goto L_47072062; /* 0x4707205E: je 0x47072062 */ 7066 L_47072060: 7067 ebx = eax; /* 0x47072060: mov ebx, eax */ 7068 L_47072062: 7069 RECOMP_ICALL(0x47039020u); /* 0x47072062: call 0x47039020 */ /* not lifted */ 7070 RECOMP_FLAGS_IN(); 7071 edi = eax; /* 0x47072067: mov edi, eax */ 7072 ecx = edi; /* 0x47072069: mov ecx, edi */ 7073 RECOMP_ICALL(0x4703B210u); /* 0x4707206B: call 0x4703b210 */ /* not lifted */ 7074 RECOMP_FLAGS_IN(); 7075 PUSH32(esp, eax); /* 0x47072070: push eax */ 7076 ecx = edi; /* 0x47072071: mov ecx, edi */ 7077 RECOMP_ICALL(0x4703B240u); /* 0x47072073: call 0x4703b240 */ /* not lifted */ 7078 RECOMP_FLAGS_IN(); 7079 PUSH32(esp, eax); /* 0x47072078: push eax */ 7080 ecx = edi; /* 0x47072079: mov ecx, edi */ 7081 RECOMP_ICALL(0x4703B080u); /* 0x4707207B: call 0x4703b080 */ /* not lifted */ 7082 RECOMP_FLAGS_IN(); 7083 PUSH32(esp, eax); /* 0x47072080: push eax */ 7084 PUSH32(esp, ebx); /* 0x47072081: push ebx */ 7085 PUSH32(esp, 0); /* 0x47072082: push 0 */ 7086 PUSH32(esp, 0x146u); /* 0x47072084: push 0x146 */ 7087 PUSH32(esp, 0x4710A308u); /* 0x47072089: push 0x4710a308 */ 7088 ecx = edi; /* 0x4707208E: mov ecx, edi */ 7089 RECOMP_ICALL(0x4703A340u); /* 0x47072090: call 0x4703a340 */ /* not lifted */ 7090 RECOMP_FLAGS_IN(); 7091 eax = MEM32(esi); /* 0x47072095: mov eax, dword ptr [esi] */ 7092 ecx = esi; /* 0x47072097: mov ecx, esi */ 7093 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47072099: call dword ptr [eax + 0x34] */ 7094 RECOMP_FLAGS_IN(); 7095 PUSH32(esp, eax); /* 0x4707209C: push eax */ 7096 PUSH32(esp, 0x4710A48Cu); /* 0x4707209D: push 0x4710a48c */ 7097 PUSH32(esp, 4); /* 0x470720A2: push 4 */ 7098 PUSH32(esp, edi); /* 0x470720A4: push edi */ 7099 RECOMP_ICALL(0x47039830u); /* 0x470720A5: call 0x47039830 */ /* not lifted */ 7100 RECOMP_FLAGS_IN(); 7101 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7102 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7103 esp = esp + 0x10u; /* 0x470720AA: add esp, 0x10 */ 7104 _flag_k = FK_ADD; 7105 L_470720AD: 7106 ecx = esi + 0x10; /* 0x470720AD: lea ecx, [esi + 0x10] */ 7107 RECOMP_ICALL(0x470355B0u); /* 0x470720B0: call 0x470355b0 */ /* not lifted */ 7108 RECOMP_FLAGS_IN(); 7109 ecx = MEM32(esi + 0xC); /* 0x470720B5: mov ecx, dword ptr [esi + 0xc] */ 7110 PUSH32(esp, eax); /* 0x470720B8: push eax */ 7111 RECOMP_ICALL(0x47034C40u); /* 0x470720B9: call 0x47034c40 */ /* not lifted */ 7112 RECOMP_FLAGS_IN(); 7113 eax = ebp; /* 0x470720BE: mov eax, ebp */ 7114 L_470720C0: 7115 ecx = MEM32(esp + 0x198); /* 0x470720C0: mov ecx, dword ptr [esp + 0x198] */ 7116 edi = POP32_VAL(esp); /* 0x470720C7: pop edi */ 7117 esi = POP32_VAL(esp); /* 0x470720C8: pop esi */ 7118 ebp = POP32_VAL(esp); /* 0x470720C9: pop ebp */ 7119 ebx = POP32_VAL(esp); /* 0x470720CA: pop ebx */ 7120 MEM32(FS_BASE + (0)) = ecx; /* 0x470720CB: mov dword ptr fs:[0], ecx */ 7121 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x194u); 7122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7123 esp = esp + 0x194u; /* 0x470720D2: add esp, 0x194 */ 7124 _flag_k = FK_ADD; 7125 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470720D8: ret 8 */ 7126 RECOMP_REGS_OUT(); 7127 } 7128 7129 void sub_470720C0(void) { 7130 int _fpu_cmp = 0; 7131 uint32_t _cf = 0; 7132 int _df = 1; 7133 uint32_t _flag_k = FK_NONE; 7134 uint32_t _flag_a = 0, _flag_b = 0; 7135 uint32_t _itail_tgt = 0; 7136 RECOMP_REGS_LOCALS 7137 RECOMP_ENTER(0x470720C0u); 7138 7139 L_470720C0: 7140 ecx = MEM32(esp + 0x198); /* 0x470720C0: mov ecx, dword ptr [esp + 0x198] */ 7141 edi = POP32_VAL(esp); /* 0x470720C7: pop edi */ 7142 esi = POP32_VAL(esp); /* 0x470720C8: pop esi */ 7143 ebp = POP32_VAL(esp); /* 0x470720C9: pop ebp */ 7144 ebx = POP32_VAL(esp); /* 0x470720CA: pop ebx */ 7145 MEM32(FS_BASE + (0)) = ecx; /* 0x470720CB: mov dword ptr fs:[0], ecx */ 7146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x194u); 7147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7148 esp = esp + 0x194u; /* 0x470720D2: add esp, 0x194 */ 7149 _flag_k = FK_ADD; 7150 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470720D8: ret 8 */ 7151 RECOMP_REGS_OUT(); 7152 } 7153 7154 void sub_470720E0(void) { 7155 int _fpu_cmp = 0; 7156 uint32_t _cf = 0; 7157 int _df = 1; 7158 uint32_t _flag_k = FK_NONE; 7159 uint32_t _flag_a = 0, _flag_b = 0; 7160 uint32_t _itail_tgt = 0; 7161 RECOMP_REGS_LOCALS 7162 RECOMP_ENTER(0x470720E0u); 7163 7164 L_470720E0: 7165 PUSH32(esp, 0xFFFFFFFFu); /* 0x470720E0: push -1 */ 7166 PUSH32(esp, 0x470A919Bu); /* 0x470720E2: push 0x470a919b */ 7167 eax = MEM32(FS_BASE + (0)); /* 0x470720E7: mov eax, dword ptr fs:[0] */ 7168 PUSH32(esp, eax); /* 0x470720ED: push eax */ 7169 MEM32(FS_BASE + (0)) = esp; /* 0x470720EE: mov dword ptr fs:[0], esp */ 7170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x180u); 7171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7172 esp = esp - 0x180u; /* 0x470720F5: sub esp, 0x180 */ 7173 _flag_k = FK_CMP; 7174 PUSH32(esp, ebx); /* 0x470720FB: push ebx */ 7175 ebx = MEM32(esp + 0x194); /* 0x470720FC: mov ebx, dword ptr [esp + 0x194] */ 7176 PUSH32(esp, esi); /* 0x47072103: push esi */ 7177 PUSH32(esp, edi); /* 0x47072104: push edi */ 7178 esi = ecx; /* 0x47072105: mov esi, ecx */ 7179 eax = MEM32(esi); /* 0x47072107: mov eax, dword ptr [esi] */ 7180 edi = MEM32(esi + 0xC); /* 0x47072109: mov edi, dword ptr [esi + 0xc] */ 7181 PUSH32(esp, ebx); /* 0x4707210C: push ebx */ 7182 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x4707210D: call dword ptr [eax + 0x30] */ 7183 RECOMP_FLAGS_IN(); 7184 edx = MEM32(esi); /* 0x47072110: mov edx, dword ptr [esi] */ 7185 PUSH32(esp, eax); /* 0x47072112: push eax */ 7186 ecx = esi; /* 0x47072113: mov ecx, esi */ 7187 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x47072115: call dword ptr [edx + 0x34] */ 7188 RECOMP_FLAGS_IN(); 7189 PUSH32(esp, eax); /* 0x47072118: push eax */ 7190 eax = MEM32(esi); /* 0x47072119: mov eax, dword ptr [esi] */ 7191 PUSH32(esp, 1); /* 0x4707211B: push 1 */ 7192 ecx = esi; /* 0x4707211D: mov ecx, esi */ 7193 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x4707211F: call dword ptr [eax + 0x48] */ 7194 RECOMP_FLAGS_IN(); 7195 edx = MEM32(edi); /* 0x47072122: mov edx, dword ptr [edi] */ 7196 PUSH32(esp, eax); /* 0x47072124: push eax */ 7197 ecx = edi; /* 0x47072125: mov ecx, edi */ 7198 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x47072127: call dword ptr [edx + 0x28] */ 7199 RECOMP_FLAGS_IN(); 7200 PUSH32(esp, eax); /* 0x4707212A: push eax */ 7201 ecx = esp + 0x24; /* 0x4707212B: lea ecx, [esp + 0x24] */ 7202 RECOMP_ICALL(0x470957B0u); /* 0x4707212F: call 0x470957b0 */ /* not lifted */ 7203 RECOMP_FLAGS_IN(); 7204 PUSH32(esp, ebx); /* 0x47072134: push ebx */ 7205 eax = esp + 0x10; /* 0x47072135: lea eax, [esp + 0x10] */ 7206 PUSH32(esp, eax); /* 0x47072139: push eax */ 7207 ecx = esi; /* 0x4707213A: mov ecx, esi */ 7208 MEM32(esp + 0x19C) = 0; /* 0x4707213C: mov dword ptr [esp + 0x19c], 0 */ 7209 RECOMP_ICALL(0x470717D0u); /* 0x47072147: call 0x470717d0 */ /* not lifted */ 7210 RECOMP_FLAGS_IN(); 7211 ebx = eax; /* 0x4707214C: mov ebx, eax */ 7212 /* test ebx, ebx */ /* 0x4707214E: test ebx, ebx */ 7213 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7214 _cf = 0; 7215 _flag_k = FK_TEST; 7216 if (TEST_NZ(_flag_a, _flag_b)) goto L_470721B5; /* 0x47072150: jne 0x470721b5 */ 7217 L_47072152: 7218 PUSH32(esp, ebp); /* 0x47072152: push ebp */ 7219 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47072153: call dword ptr [0x470ac150] */ 7220 RECOMP_FLAGS_IN(); 7221 ebp = eax; /* 0x47072159: mov ebp, eax */ 7222 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4707215B: call dword ptr [0x470ac3c8] */ 7223 RECOMP_FLAGS_IN(); 7224 eax = MEM32(eax); /* 0x47072161: mov eax, dword ptr [eax] */ 7225 /* test eax, eax */ /* 0x47072163: test eax, eax */ 7226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7227 _cf = 0; 7228 _flag_k = FK_TEST; 7229 if (TEST_Z(_flag_a, _flag_b)) goto L_47072169; /* 0x47072165: je 0x47072169 */ 7230 L_47072167: 7231 ebp = eax; /* 0x47072167: mov ebp, eax */ 7232 L_47072169: 7233 RECOMP_ICALL(0x47039020u); /* 0x47072169: call 0x47039020 */ /* not lifted */ 7234 RECOMP_FLAGS_IN(); 7235 edi = eax; /* 0x4707216E: mov edi, eax */ 7236 ecx = edi; /* 0x47072170: mov ecx, edi */ 7237 RECOMP_ICALL(0x4703B210u); /* 0x47072172: call 0x4703b210 */ /* not lifted */ 7238 RECOMP_FLAGS_IN(); 7239 PUSH32(esp, eax); /* 0x47072177: push eax */ 7240 ecx = edi; /* 0x47072178: mov ecx, edi */ 7241 RECOMP_ICALL(0x4703B240u); /* 0x4707217A: call 0x4703b240 */ /* not lifted */ 7242 RECOMP_FLAGS_IN(); 7243 PUSH32(esp, eax); /* 0x4707217F: push eax */ 7244 ecx = edi; /* 0x47072180: mov ecx, edi */ 7245 RECOMP_ICALL(0x4703B080u); /* 0x47072182: call 0x4703b080 */ /* not lifted */ 7246 RECOMP_FLAGS_IN(); 7247 PUSH32(esp, eax); /* 0x47072187: push eax */ 7248 PUSH32(esp, ebp); /* 0x47072188: push ebp */ 7249 PUSH32(esp, 0); /* 0x47072189: push 0 */ 7250 PUSH32(esp, 0x15Bu); /* 0x4707218B: push 0x15b */ 7251 PUSH32(esp, 0x4710A308u); /* 0x47072190: push 0x4710a308 */ 7252 ecx = edi; /* 0x47072195: mov ecx, edi */ 7253 RECOMP_ICALL(0x4703A340u); /* 0x47072197: call 0x4703a340 */ /* not lifted */ 7254 RECOMP_FLAGS_IN(); 7255 edx = MEM32(esi); /* 0x4707219C: mov edx, dword ptr [esi] */ 7256 ecx = esi; /* 0x4707219E: mov ecx, esi */ 7257 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x470721A0: call dword ptr [edx + 0x34] */ 7258 RECOMP_FLAGS_IN(); 7259 PUSH32(esp, eax); /* 0x470721A3: push eax */ 7260 PUSH32(esp, 0x4710A528u); /* 0x470721A4: push 0x4710a528 */ 7261 PUSH32(esp, 4); /* 0x470721A9: push 4 */ 7262 PUSH32(esp, edi); /* 0x470721AB: push edi */ 7263 RECOMP_ICALL(0x47039830u); /* 0x470721AC: call 0x47039830 */ /* not lifted */ 7264 RECOMP_FLAGS_IN(); 7265 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7267 esp = esp + 0x10u; /* 0x470721B1: add esp, 0x10 */ 7268 _flag_k = FK_ADD; 7269 ebp = POP32_VAL(esp); /* 0x470721B4: pop ebp */ 7270 L_470721B5: 7271 PUSH32(esp, 0x4710F948u); /* 0x470721B5: push 0x4710f948 */ 7272 ecx = esi; /* 0x470721BA: mov ecx, esi */ 7273 RECOMP_ICALL(0x47038620u); /* 0x470721BC: call 0x47038620 */ /* not lifted */ 7274 RECOMP_FLAGS_IN(); 7275 /* cmp eax, 0xFFFFFFFFu */ /* 0x470721C1: cmp eax, -1 */ 7276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7278 _flag_k = FK_CMP; 7279 if (CMP_NE(_flag_a, _flag_b)) goto L_47072222; /* 0x470721C4: jne 0x47072222 */ 7280 L_470721C6: 7281 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470721C6: call dword ptr [0x470ac150] */ 7282 RECOMP_FLAGS_IN(); 7283 edi = eax; /* 0x470721CC: mov edi, eax */ 7284 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470721CE: call dword ptr [0x470ac3c8] */ 7285 RECOMP_FLAGS_IN(); 7286 eax = MEM32(eax); /* 0x470721D4: mov eax, dword ptr [eax] */ 7287 /* test eax, eax */ /* 0x470721D6: test eax, eax */ 7288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7289 _cf = 0; 7290 _flag_k = FK_TEST; 7291 if (TEST_Z(_flag_a, _flag_b)) goto L_470721DC; /* 0x470721D8: je 0x470721dc */ 7292 L_470721DA: 7293 edi = eax; /* 0x470721DA: mov edi, eax */ 7294 L_470721DC: 7295 RECOMP_ICALL(0x47039020u); /* 0x470721DC: call 0x47039020 */ /* not lifted */ 7296 RECOMP_FLAGS_IN(); 7297 esi = eax; /* 0x470721E1: mov esi, eax */ 7298 ecx = esi; /* 0x470721E3: mov ecx, esi */ 7299 RECOMP_ICALL(0x4703B210u); /* 0x470721E5: call 0x4703b210 */ /* not lifted */ 7300 RECOMP_FLAGS_IN(); 7301 PUSH32(esp, eax); /* 0x470721EA: push eax */ 7302 ecx = esi; /* 0x470721EB: mov ecx, esi */ 7303 RECOMP_ICALL(0x4703B240u); /* 0x470721ED: call 0x4703b240 */ /* not lifted */ 7304 RECOMP_FLAGS_IN(); 7305 PUSH32(esp, eax); /* 0x470721F2: push eax */ 7306 ecx = esi; /* 0x470721F3: mov ecx, esi */ 7307 RECOMP_ICALL(0x4703B080u); /* 0x470721F5: call 0x4703b080 */ /* not lifted */ 7308 RECOMP_FLAGS_IN(); 7309 PUSH32(esp, eax); /* 0x470721FA: push eax */ 7310 PUSH32(esp, edi); /* 0x470721FB: push edi */ 7311 PUSH32(esp, 0xFFFFFFFFu); /* 0x470721FC: push -1 */ 7312 PUSH32(esp, 0x161u); /* 0x470721FE: push 0x161 */ 7313 PUSH32(esp, 0x4710A308u); /* 0x47072203: push 0x4710a308 */ 7314 ecx = esi; /* 0x47072208: mov ecx, esi */ 7315 RECOMP_ICALL(0x4703A340u); /* 0x4707220A: call 0x4703a340 */ /* not lifted */ 7316 RECOMP_FLAGS_IN(); 7317 PUSH32(esp, 0x4710A508u); /* 0x4707220F: push 0x4710a508 */ 7318 PUSH32(esp, 0x80u); /* 0x47072214: push 0x80 */ 7319 PUSH32(esp, esi); /* 0x47072219: push esi */ 7320 RECOMP_ICALL(0x47039830u); /* 0x4707221A: call 0x47039830 */ /* not lifted */ 7321 RECOMP_FLAGS_IN(); 7322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7324 esp = esp + 0xCu; /* 0x4707221F: add esp, 0xc */ 7325 _flag_k = FK_ADD; 7326 L_47072222: 7327 ecx = MEM32(esp + 0x18C); /* 0x47072222: mov ecx, dword ptr [esp + 0x18c] */ 7328 edi = POP32_VAL(esp); /* 0x47072229: pop edi */ 7329 esi = POP32_VAL(esp); /* 0x4707222A: pop esi */ 7330 eax = ebx; /* 0x4707222B: mov eax, ebx */ 7331 ebx = POP32_VAL(esp); /* 0x4707222D: pop ebx */ 7332 MEM32(FS_BASE + (0)) = ecx; /* 0x4707222E: mov dword ptr fs:[0], ecx */ 7333 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18Cu); 7334 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7335 esp = esp + 0x18Cu; /* 0x47072235: add esp, 0x18c */ 7336 _flag_k = FK_ADD; 7337 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4707223B: ret 4 */ 7338 RECOMP_REGS_OUT(); 7339 } 7340 7341 void sub_47072240(void) { 7342 int _fpu_cmp = 0; 7343 uint32_t _cf = 0; 7344 int _df = 1; 7345 uint32_t _flag_k = FK_NONE; 7346 uint32_t _flag_a = 0, _flag_b = 0; 7347 uint32_t _itail_tgt = 0; 7348 RECOMP_REGS_LOCALS 7349 RECOMP_ENTER(0x47072240u); 7350 7351 L_47072240: 7352 PUSH32(esp, ebx); /* 0x47072240: push ebx */ 7353 PUSH32(esp, esi); /* 0x47072241: push esi */ 7354 PUSH32(esp, edi); /* 0x47072242: push edi */ 7355 edi = ecx; /* 0x47072243: mov edi, ecx */ 7356 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47072245: call dword ptr [0x470ac150] */ 7357 RECOMP_FLAGS_IN(); 7358 ebx = eax; /* 0x4707224B: mov ebx, eax */ 7359 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4707224D: call dword ptr [0x470ac3c8] */ 7360 RECOMP_FLAGS_IN(); 7361 eax = MEM32(eax); /* 0x47072253: mov eax, dword ptr [eax] */ 7362 /* test eax, eax */ /* 0x47072255: test eax, eax */ 7363 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7364 _cf = 0; 7365 _flag_k = FK_TEST; 7366 if (TEST_Z(_flag_a, _flag_b)) goto L_4707225B; /* 0x47072257: je 0x4707225b */ 7367 L_47072259: 7368 ebx = eax; /* 0x47072259: mov ebx, eax */ 7369 L_4707225B: 7370 RECOMP_ICALL(0x47039020u); /* 0x4707225B: call 0x47039020 */ /* not lifted */ 7371 RECOMP_FLAGS_IN(); 7372 esi = eax; /* 0x47072260: mov esi, eax */ 7373 ecx = esi; /* 0x47072262: mov ecx, esi */ 7374 RECOMP_ICALL(0x4703B210u); /* 0x47072264: call 0x4703b210 */ /* not lifted */ 7375 RECOMP_FLAGS_IN(); 7376 PUSH32(esp, eax); /* 0x47072269: push eax */ 7377 ecx = esi; /* 0x4707226A: mov ecx, esi */ 7378 RECOMP_ICALL(0x4703B240u); /* 0x4707226C: call 0x4703b240 */ /* not lifted */ 7379 RECOMP_FLAGS_IN(); 7380 PUSH32(esp, eax); /* 0x47072271: push eax */ 7381 ecx = esi; /* 0x47072272: mov ecx, esi */ 7382 RECOMP_ICALL(0x4703B080u); /* 0x47072274: call 0x4703b080 */ /* not lifted */ 7383 RECOMP_FLAGS_IN(); 7384 PUSH32(esp, eax); /* 0x47072279: push eax */ 7385 PUSH32(esp, ebx); /* 0x4707227A: push ebx */ 7386 PUSH32(esp, 0); /* 0x4707227B: push 0 */ 7387 PUSH32(esp, 0x173u); /* 0x4707227D: push 0x173 */ 7388 PUSH32(esp, 0x4710A308u); /* 0x47072282: push 0x4710a308 */ 7389 ecx = esi; /* 0x47072287: mov ecx, esi */ 7390 RECOMP_ICALL(0x4703A340u); /* 0x47072289: call 0x4703a340 */ /* not lifted */ 7391 RECOMP_FLAGS_IN(); 7392 eax = MEM32(edi); /* 0x4707228E: mov eax, dword ptr [edi] */ 7393 ecx = edi; /* 0x47072290: mov ecx, edi */ 7394 RECOMP_ICALL(MEM32(eax + 0x34)); /* 0x47072292: call dword ptr [eax + 0x34] */ 7395 RECOMP_FLAGS_IN(); 7396 edx = MEM32(edi); /* 0x47072295: mov edx, dword ptr [edi] */ 7397 PUSH32(esp, eax); /* 0x47072297: push eax */ 7398 ecx = edi; /* 0x47072298: mov ecx, edi */ 7399 RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x4707229A: call dword ptr [edx + 0x30] */ 7400 RECOMP_FLAGS_IN(); 7401 PUSH32(esp, eax); /* 0x4707229D: push eax */ 7402 PUSH32(esp, 0x4710A544u); /* 0x4707229E: push 0x4710a544 */ 7403 PUSH32(esp, 4); /* 0x470722A3: push 4 */ 7404 PUSH32(esp, esi); /* 0x470722A5: push esi */ 7405 RECOMP_ICALL(0x47039830u); /* 0x470722A6: call 0x47039830 */ /* not lifted */ 7406 RECOMP_FLAGS_IN(); 7407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7409 esp = esp + 0x14u; /* 0x470722AB: add esp, 0x14 */ 7410 _flag_k = FK_ADD; 7411 edi = POP32_VAL(esp); /* 0x470722AE: pop edi */ 7412 esi = POP32_VAL(esp); /* 0x470722AF: pop esi */ 7413 ebx = POP32_VAL(esp); /* 0x470722B0: pop ebx */ 7414 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470722B1: ret 4 */ 7415 RECOMP_REGS_OUT(); 7416 } 7417 7418 void sub_470722C0(void) { 7419 int _fpu_cmp = 0; 7420 uint32_t _cf = 0; 7421 int _df = 1; 7422 uint32_t _flag_k = FK_NONE; 7423 uint32_t _flag_a = 0, _flag_b = 0; 7424 uint32_t _itail_tgt = 0; 7425 RECOMP_REGS_LOCALS 7426 RECOMP_ENTER(0x470722C0u); 7427 7428 L_470722C0: 7429 PUSH32(esp, esi); /* 0x470722C0: push esi */ 7430 PUSH32(esp, edi); /* 0x470722C1: push edi */ 7431 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470722C2: call dword ptr [0x470ac150] */ 7432 RECOMP_FLAGS_IN(); 7433 edi = eax; /* 0x470722C8: mov edi, eax */ 7434 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470722CA: call dword ptr [0x470ac3c8] */ 7435 RECOMP_FLAGS_IN(); 7436 eax = MEM32(eax); /* 0x470722D0: mov eax, dword ptr [eax] */ 7437 /* test eax, eax */ /* 0x470722D2: test eax, eax */ 7438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7439 _cf = 0; 7440 _flag_k = FK_TEST; 7441 if (TEST_Z(_flag_a, _flag_b)) goto L_470722D8; /* 0x470722D4: je 0x470722d8 */ 7442 L_470722D6: 7443 edi = eax; /* 0x470722D6: mov edi, eax */ 7444 L_470722D8: 7445 RECOMP_ICALL(0x47039020u); /* 0x470722D8: call 0x47039020 */ /* not lifted */ 7446 RECOMP_FLAGS_IN(); 7447 esi = eax; /* 0x470722DD: mov esi, eax */ 7448 ecx = esi; /* 0x470722DF: mov ecx, esi */ 7449 RECOMP_ICALL(0x4703B210u); /* 0x470722E1: call 0x4703b210 */ /* not lifted */ 7450 RECOMP_FLAGS_IN(); 7451 PUSH32(esp, eax); /* 0x470722E6: push eax */ 7452 ecx = esi; /* 0x470722E7: mov ecx, esi */ 7453 RECOMP_ICALL(0x4703B240u); /* 0x470722E9: call 0x4703b240 */ /* not lifted */ 7454 RECOMP_FLAGS_IN(); 7455 PUSH32(esp, eax); /* 0x470722EE: push eax */ 7456 ecx = esi; /* 0x470722EF: mov ecx, esi */ 7457 RECOMP_ICALL(0x4703B080u); /* 0x470722F1: call 0x4703b080 */ /* not lifted */ 7458 RECOMP_FLAGS_IN(); 7459 PUSH32(esp, eax); /* 0x470722F6: push eax */ 7460 PUSH32(esp, edi); /* 0x470722F7: push edi */ 7461 PUSH32(esp, 0); /* 0x470722F8: push 0 */ 7462 PUSH32(esp, 0x17Bu); /* 0x470722FA: push 0x17b */ 7463 PUSH32(esp, 0x4710A308u); /* 0x470722FF: push 0x4710a308 */ 7464 ecx = esi; /* 0x47072304: mov ecx, esi */ 7465 RECOMP_ICALL(0x4703A340u); /* 0x47072306: call 0x4703a340 */ /* not lifted */ 7466 RECOMP_FLAGS_IN(); 7467 PUSH32(esp, 0x4710A564u); /* 0x4707230B: push 0x4710a564 */ 7468 PUSH32(esp, 4); /* 0x47072310: push 4 */ 7469 PUSH32(esp, esi); /* 0x47072312: push esi */ 7470 RECOMP_ICALL(0x47039830u); /* 0x47072313: call 0x47039830 */ /* not lifted */ 7471 RECOMP_FLAGS_IN(); 7472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7474 esp = esp + 0xCu; /* 0x47072318: add esp, 0xc */ 7475 _flag_k = FK_ADD; 7476 edi = POP32_VAL(esp); /* 0x4707231B: pop edi */ 7477 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7478 eax = 0; /* 0x4707231C: xor eax, eax */ 7479 _cf = 0; 7480 _flag_k = FK_TEST; 7481 esi = POP32_VAL(esp); /* 0x4707231E: pop esi */ 7482 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4707231F: ret */ 7483 RECOMP_REGS_OUT(); 7484 } 7485 7486 void sub_47072320(void) { 7487 int _fpu_cmp = 0; 7488 uint32_t _cf = 0; 7489 int _df = 1; 7490 uint32_t _flag_k = FK_NONE; 7491 uint32_t _flag_a = 0, _flag_b = 0; 7492 uint32_t _itail_tgt = 0; 7493 RECOMP_REGS_LOCALS 7494 RECOMP_ENTER(0x47072320u); 7495 7496 L_47072320: 7497 PUSH32(esp, ecx); /* 0x47072320: push ecx */ 7498 PUSH32(esp, ebx); /* 0x47072321: push ebx */ 7499 ebx = MEM32(0x470AC150); /* 0x47072322: mov ebx, dword ptr [0x470ac150] */ 7500 PUSH32(esp, ebp); /* 0x47072328: push ebp */ 7501 PUSH32(esp, esi); /* 0x47072329: push esi */ 7502 PUSH32(esp, edi); /* 0x4707232A: push edi */ 7503 edi = ecx; /* 0x4707232B: mov edi, ecx */ 7504 RECOMP_ICALL(ebx); /* 0x4707232D: call ebx */ 7505 RECOMP_FLAGS_IN(); 7506 ebp = MEM32(0x470AC3C8); /* 0x4707232F: mov ebp, dword ptr [0x470ac3c8] */ 7507 esi = eax; /* 0x47072335: mov esi, eax */ 7508 RECOMP_ICALL(ebp); /* 0x47072337: call ebp */ 7509 RECOMP_FLAGS_IN(); 7510 eax = MEM32(eax); /* 0x47072339: mov eax, dword ptr [eax] */ 7511 /* test eax, eax */ /* 0x4707233B: test eax, eax */ 7512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7513 _cf = 0; 7514 _flag_k = FK_TEST; 7515 MEM32(esp + 0x10) = esi; /* 0x4707233D: mov dword ptr [esp + 0x10], esi */ 7516 if (TEST_Z(_flag_a, _flag_b)) goto L_47072347; /* 0x47072341: je 0x47072347 */ 7517 L_47072343: 7518 MEM32(esp + 0x10) = eax; /* 0x47072343: mov dword ptr [esp + 0x10], eax */ 7519 L_47072347: 7520 RECOMP_ICALL(0x47039020u); /* 0x47072347: call 0x47039020 */ /* not lifted */ 7521 RECOMP_FLAGS_IN(); 7522 esi = eax; /* 0x4707234C: mov esi, eax */ 7523 ecx = esi; /* 0x4707234E: mov ecx, esi */ 7524 RECOMP_ICALL(0x4703B210u); /* 0x47072350: call 0x4703b210 */ /* not lifted */ 7525 RECOMP_FLAGS_IN(); 7526 PUSH32(esp, eax); /* 0x47072355: push eax */ 7527 ecx = esi; /* 0x47072356: mov ecx, esi */ 7528 RECOMP_ICALL(0x4703B240u); /* 0x47072358: call 0x4703b240 */ /* not lifted */ 7529 RECOMP_FLAGS_IN(); 7530 PUSH32(esp, eax); /* 0x4707235D: push eax */ 7531 ecx = esi; /* 0x4707235E: mov ecx, esi */ 7532 RECOMP_ICALL(0x4703B080u); /* 0x47072360: call 0x4703b080 */ /* not lifted */ 7533 RECOMP_FLAGS_IN(); 7534 PUSH32(esp, eax); /* 0x47072365: push eax */ 7535 eax = MEM32(esp + 0x1C); /* 0x47072366: mov eax, dword ptr [esp + 0x1c] */ 7536 PUSH32(esp, eax); /* 0x4707236A: push eax */ 7537 PUSH32(esp, 0); /* 0x4707236B: push 0 */ 7538 PUSH32(esp, 0x184u); /* 0x4707236D: push 0x184 */ 7539 PUSH32(esp, 0x4710A308u); /* 0x47072372: push 0x4710a308 */ 7540 ecx = esi; /* 0x47072377: mov ecx, esi */ 7541 RECOMP_ICALL(0x4703A340u); /* 0x47072379: call 0x4703a340 */ /* not lifted */ 7542 RECOMP_FLAGS_IN(); 7543 PUSH32(esp, edi); /* 0x4707237E: push edi */ 7544 PUSH32(esp, 0x471052CCu); /* 0x4707237F: push 0x471052cc */ 7545 PUSH32(esp, 4); /* 0x47072384: push 4 */ 7546 PUSH32(esp, esi); /* 0x47072386: push esi */ 7547 RECOMP_ICALL(0x47039830u); /* 0x47072387: call 0x47039830 */ /* not lifted */ 7548 RECOMP_FLAGS_IN(); 7549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7551 esp = esp + 0x10u; /* 0x4707238C: add esp, 0x10 */ 7552 _flag_k = FK_ADD; 7553 RECOMP_ICALL(ebx); /* 0x4707238F: call ebx */ 7554 RECOMP_FLAGS_IN(); 7555 esi = eax; /* 0x47072391: mov esi, eax */ 7556 RECOMP_ICALL(ebp); /* 0x47072393: call ebp */ 7557 RECOMP_FLAGS_IN(); 7558 eax = MEM32(eax); /* 0x47072395: mov eax, dword ptr [eax] */ 7559 /* test eax, eax */ /* 0x47072397: test eax, eax */ 7560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7561 _cf = 0; 7562 _flag_k = FK_TEST; 7563 MEM32(esp + 0x10) = esi; /* 0x47072399: mov dword ptr [esp + 0x10], esi */ 7564 if (TEST_Z(_flag_a, _flag_b)) goto L_470723A3; /* 0x4707239D: je 0x470723a3 */ 7565 L_4707239F: 7566 MEM32(esp + 0x10) = eax; /* 0x4707239F: mov dword ptr [esp + 0x10], eax */ 7567 L_470723A3: 7568 RECOMP_ICALL(0x47039020u); /* 0x470723A3: call 0x47039020 */ /* not lifted */ 7569 RECOMP_FLAGS_IN(); 7570 esi = eax; /* 0x470723A8: mov esi, eax */ 7571 ecx = esi; /* 0x470723AA: mov ecx, esi */ 7572 RECOMP_ICALL(0x4703B210u); /* 0x470723AC: call 0x4703b210 */ /* not lifted */ 7573 RECOMP_FLAGS_IN(); 7574 PUSH32(esp, eax); /* 0x470723B1: push eax */ 7575 ecx = esi; /* 0x470723B2: mov ecx, esi */ 7576 RECOMP_ICALL(0x4703B240u); /* 0x470723B4: call 0x4703b240 */ /* not lifted */ 7577 RECOMP_FLAGS_IN(); 7578 PUSH32(esp, eax); /* 0x470723B9: push eax */ 7579 ecx = esi; /* 0x470723BA: mov ecx, esi */ 7580 RECOMP_ICALL(0x4703B080u); /* 0x470723BC: call 0x4703b080 */ /* not lifted */ 7581 RECOMP_FLAGS_IN(); 7582 ecx = MEM32(esp + 0x18); /* 0x470723C1: mov ecx, dword ptr [esp + 0x18] */ 7583 PUSH32(esp, eax); /* 0x470723C5: push eax */ 7584 PUSH32(esp, ecx); /* 0x470723C6: push ecx */ 7585 PUSH32(esp, 0); /* 0x470723C7: push 0 */ 7586 PUSH32(esp, 0x187u); /* 0x470723C9: push 0x187 */ 7587 PUSH32(esp, 0x4710A308u); /* 0x470723CE: push 0x4710a308 */ 7588 ecx = esi; /* 0x470723D3: mov ecx, esi */ 7589 RECOMP_ICALL(0x4703A340u); /* 0x470723D5: call 0x4703a340 */ /* not lifted */ 7590 RECOMP_FLAGS_IN(); 7591 edx = MEM32(edi + 0x40); /* 0x470723DA: mov edx, dword ptr [edi + 0x40] */ 7592 PUSH32(esp, edx); /* 0x470723DD: push edx */ 7593 PUSH32(esp, 0x4710A578u); /* 0x470723DE: push 0x4710a578 */ 7594 PUSH32(esp, 4); /* 0x470723E3: push 4 */ 7595 PUSH32(esp, esi); /* 0x470723E5: push esi */ 7596 RECOMP_ICALL(0x47039830u); /* 0x470723E6: call 0x47039830 */ /* not lifted */ 7597 RECOMP_FLAGS_IN(); 7598 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7600 esp = esp + 0x10u; /* 0x470723EB: add esp, 0x10 */ 7601 _flag_k = FK_ADD; 7602 RECOMP_ICALL(ebx); /* 0x470723EE: call ebx */ 7603 RECOMP_FLAGS_IN(); 7604 esi = eax; /* 0x470723F0: mov esi, eax */ 7605 RECOMP_ICALL(ebp); /* 0x470723F2: call ebp */ 7606 RECOMP_FLAGS_IN(); 7607 eax = MEM32(eax); /* 0x470723F4: mov eax, dword ptr [eax] */ 7608 /* test eax, eax */ /* 0x470723F6: test eax, eax */ 7609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7610 _cf = 0; 7611 _flag_k = FK_TEST; 7612 MEM32(esp + 0x10) = esi; /* 0x470723F8: mov dword ptr [esp + 0x10], esi */ 7613 if (TEST_Z(_flag_a, _flag_b)) goto L_47072402; /* 0x470723FC: je 0x47072402 */ 7614 L_470723FE: 7615 MEM32(esp + 0x10) = eax; /* 0x470723FE: mov dword ptr [esp + 0x10], eax */ 7616 L_47072402: 7617 RECOMP_ICALL(0x47039020u); /* 0x47072402: call 0x47039020 */ /* not lifted */ 7618 RECOMP_FLAGS_IN(); 7619 esi = eax; /* 0x47072407: mov esi, eax */ 7620 ecx = esi; /* 0x47072409: mov ecx, esi */ 7621 RECOMP_ICALL(0x4703B210u); /* 0x4707240B: call 0x4703b210 */ /* not lifted */ 7622 RECOMP_FLAGS_IN(); 7623 PUSH32(esp, eax); /* 0x47072410: push eax */ 7624 ecx = esi; /* 0x47072411: mov ecx, esi */ 7625 RECOMP_ICALL(0x4703B240u); /* 0x47072413: call 0x4703b240 */ /* not lifted */ 7626 RECOMP_FLAGS_IN(); 7627 PUSH32(esp, eax); /* 0x47072418: push eax */ 7628 ecx = esi; /* 0x47072419: mov ecx, esi */ 7629 RECOMP_ICALL(0x4703B080u); /* 0x4707241B: call 0x4703b080 */ /* not lifted */ 7630 RECOMP_FLAGS_IN(); 7631 PUSH32(esp, eax); /* 0x47072420: push eax */ 7632 eax = MEM32(esp + 0x1C); /* 0x47072421: mov eax, dword ptr [esp + 0x1c] */ 7633 PUSH32(esp, eax); /* 0x47072425: push eax */ 7634 PUSH32(esp, 0); /* 0x47072426: push 0 */ 7635 PUSH32(esp, 0x188u); /* 0x47072428: push 0x188 */ 7636 PUSH32(esp, 0x4710A308u); /* 0x4707242D: push 0x4710a308 */ 7637 ecx = esi; /* 0x47072432: mov ecx, esi */ 7638 RECOMP_ICALL(0x4703A340u); /* 0x47072434: call 0x4703a340 */ /* not lifted */ 7639 RECOMP_FLAGS_IN(); 7640 PUSH32(esp, 0x47106EA4u); /* 0x47072439: push 0x47106ea4 */ 7641 PUSH32(esp, 4); /* 0x4707243E: push 4 */ 7642 PUSH32(esp, esi); /* 0x47072440: push esi */ 7643 RECOMP_ICALL(0x47039830u); /* 0x47072441: call 0x47039830 */ /* not lifted */ 7644 RECOMP_FLAGS_IN(); 7645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7647 esp = esp + 0xCu; /* 0x47072446: add esp, 0xc */ 7648 _flag_k = FK_ADD; 7649 ecx = edi; /* 0x47072449: mov ecx, edi */ 7650 RECOMP_ICALL(0x470374A0u); /* 0x4707244B: call 0x470374a0 */ /* not lifted */ 7651 RECOMP_FLAGS_IN(); 7652 RECOMP_ICALL(ebx); /* 0x47072450: call ebx */ 7653 RECOMP_FLAGS_IN(); 7654 esi = eax; /* 0x47072452: mov esi, eax */ 7655 RECOMP_ICALL(ebp); /* 0x47072454: call ebp */ 7656 RECOMP_FLAGS_IN(); 7657 eax = MEM32(eax); /* 0x47072456: mov eax, dword ptr [eax] */ 7658 /* test eax, eax */ /* 0x47072458: test eax, eax */ 7659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7660 _cf = 0; 7661 _flag_k = FK_TEST; 7662 edi = esi; /* 0x4707245A: mov edi, esi */ 7663 if (TEST_Z(_flag_a, _flag_b)) goto L_47072460; /* 0x4707245C: je 0x47072460 */ 7664 L_4707245E: 7665 edi = eax; /* 0x4707245E: mov edi, eax */ 7666 L_47072460: 7667 RECOMP_ICALL(0x47039020u); /* 0x47072460: call 0x47039020 */ /* not lifted */ 7668 RECOMP_FLAGS_IN(); 7669 esi = eax; /* 0x47072465: mov esi, eax */ 7670 ecx = esi; /* 0x47072467: mov ecx, esi */ 7671 RECOMP_ICALL(0x4703B210u); /* 0x47072469: call 0x4703b210 */ /* not lifted */ 7672 RECOMP_FLAGS_IN(); 7673 PUSH32(esp, eax); /* 0x4707246E: push eax */ 7674 ecx = esi; /* 0x4707246F: mov ecx, esi */ 7675 RECOMP_ICALL(0x4703B240u); /* 0x47072471: call 0x4703b240 */ /* not lifted */ 7676 RECOMP_FLAGS_IN(); 7677 PUSH32(esp, eax); /* 0x47072476: push eax */ 7678 ecx = esi; /* 0x47072477: mov ecx, esi */ 7679 RECOMP_ICALL(0x4703B080u); /* 0x47072479: call 0x4703b080 */ /* not lifted */ 7680 RECOMP_FLAGS_IN(); 7681 PUSH32(esp, eax); /* 0x4707247E: push eax */ 7682 PUSH32(esp, edi); /* 0x4707247F: push edi */ 7683 PUSH32(esp, 0); /* 0x47072480: push 0 */ 7684 PUSH32(esp, 0x18Au); /* 0x47072482: push 0x18a */ 7685 PUSH32(esp, 0x4710A308u); /* 0x47072487: push 0x4710a308 */ 7686 ecx = esi; /* 0x4707248C: mov ecx, esi */ 7687 RECOMP_ICALL(0x4703A340u); /* 0x4707248E: call 0x4703a340 */ /* not lifted */ 7688 RECOMP_FLAGS_IN(); 7689 PUSH32(esp, 0x4710529Cu); /* 0x47072493: push 0x4710529c */ 7690 PUSH32(esp, 4); /* 0x47072498: push 4 */ 7691 PUSH32(esp, esi); /* 0x4707249A: push esi */ 7692 RECOMP_ICALL(0x47039830u); /* 0x4707249B: call 0x47039830 */ /* not lifted */ 7693 RECOMP_FLAGS_IN(); 7694 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7696 esp = esp + 0xCu; /* 0x470724A0: add esp, 0xc */ 7697 _flag_k = FK_ADD; 7698 edi = POP32_VAL(esp); /* 0x470724A3: pop edi */ 7699 esi = POP32_VAL(esp); /* 0x470724A4: pop esi */ 7700 ebp = POP32_VAL(esp); /* 0x470724A5: pop ebp */ 7701 ebx = POP32_VAL(esp); /* 0x470724A6: pop ebx */ 7702 ecx = POP32_VAL(esp); /* 0x470724A7: pop ecx */ 7703 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470724A8: ret */ 7704 RECOMP_REGS_OUT(); 7705 } 7706 7707 void sub_470724B0(void) { 7708 int _fpu_cmp = 0; 7709 uint32_t _cf = 0; 7710 int _df = 1; 7711 uint32_t _flag_k = FK_NONE; 7712 uint32_t _flag_a = 0, _flag_b = 0; 7713 uint32_t _itail_tgt = 0; 7714 RECOMP_REGS_LOCALS 7715 RECOMP_ENTER(0x470724B0u); 7716 7717 L_470724B0: 7718 PUSH32(esp, ecx); /* 0x470724B0: push ecx */ 7719 PUSH32(esp, ebx); /* 0x470724B1: push ebx */ 7720 PUSH32(esp, ebp); /* 0x470724B2: push ebp */ 7721 PUSH32(esp, esi); /* 0x470724B3: push esi */ 7722 PUSH32(esp, edi); /* 0x470724B4: push edi */ 7723 edi = MEM32(0x470AC150); /* 0x470724B5: mov edi, dword ptr [0x470ac150] */ 7724 ebp = ecx; /* 0x470724BB: mov ebp, ecx */ 7725 RECOMP_ICALL(edi); /* 0x470724BD: call edi */ 7726 RECOMP_FLAGS_IN(); 7727 ebx = MEM32(0x470AC3C8); /* 0x470724BF: mov ebx, dword ptr [0x470ac3c8] */ 7728 esi = eax; /* 0x470724C5: mov esi, eax */ 7729 RECOMP_ICALL(ebx); /* 0x470724C7: call ebx */ 7730 RECOMP_FLAGS_IN(); 7731 eax = MEM32(eax); /* 0x470724C9: mov eax, dword ptr [eax] */ 7732 /* test eax, eax */ /* 0x470724CB: test eax, eax */ 7733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7734 _cf = 0; 7735 _flag_k = FK_TEST; 7736 MEM32(esp + 0x10) = esi; /* 0x470724CD: mov dword ptr [esp + 0x10], esi */ 7737 if (TEST_Z(_flag_a, _flag_b)) goto L_470724D7; /* 0x470724D1: je 0x470724d7 */ 7738 L_470724D3: 7739 MEM32(esp + 0x10) = eax; /* 0x470724D3: mov dword ptr [esp + 0x10], eax */ 7740 L_470724D7: 7741 RECOMP_ICALL(0x47039020u); /* 0x470724D7: call 0x47039020 */ /* not lifted */ 7742 RECOMP_FLAGS_IN(); 7743 esi = eax; /* 0x470724DC: mov esi, eax */ 7744 ecx = esi; /* 0x470724DE: mov ecx, esi */ 7745 RECOMP_ICALL(0x4703B210u); /* 0x470724E0: call 0x4703b210 */ /* not lifted */ 7746 RECOMP_FLAGS_IN(); 7747 PUSH32(esp, eax); /* 0x470724E5: push eax */ 7748 ecx = esi; /* 0x470724E6: mov ecx, esi */ 7749 RECOMP_ICALL(0x4703B240u); /* 0x470724E8: call 0x4703b240 */ /* not lifted */ 7750 RECOMP_FLAGS_IN(); 7751 PUSH32(esp, eax); /* 0x470724ED: push eax */ 7752 ecx = esi; /* 0x470724EE: mov ecx, esi */ 7753 RECOMP_ICALL(0x4703B080u); /* 0x470724F0: call 0x4703b080 */ /* not lifted */ 7754 RECOMP_FLAGS_IN(); 7755 PUSH32(esp, eax); /* 0x470724F5: push eax */ 7756 eax = MEM32(esp + 0x1C); /* 0x470724F6: mov eax, dword ptr [esp + 0x1c] */ 7757 PUSH32(esp, eax); /* 0x470724FA: push eax */ 7758 PUSH32(esp, 0); /* 0x470724FB: push 0 */ 7759 PUSH32(esp, 0x191u); /* 0x470724FD: push 0x191 */ 7760 PUSH32(esp, 0x4710A308u); /* 0x47072502: push 0x4710a308 */ 7761 ecx = esi; /* 0x47072507: mov ecx, esi */ 7762 RECOMP_ICALL(0x4703A340u); /* 0x47072509: call 0x4703a340 */ /* not lifted */ 7763 RECOMP_FLAGS_IN(); 7764 PUSH32(esp, ebp); /* 0x4707250E: push ebp */ 7765 PUSH32(esp, 0x471052CCu); /* 0x4707250F: push 0x471052cc */ 7766 PUSH32(esp, 4); /* 0x47072514: push 4 */ 7767 PUSH32(esp, esi); /* 0x47072516: push esi */ 7768 RECOMP_ICALL(0x47039830u); /* 0x47072517: call 0x47039830 */ /* not lifted */ 7769 RECOMP_FLAGS_IN(); 7770 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7772 esp = esp + 0x10u; /* 0x4707251C: add esp, 0x10 */ 7773 _flag_k = FK_ADD; 7774 RECOMP_ICALL(edi); /* 0x4707251F: call edi */ 7775 RECOMP_FLAGS_IN(); 7776 esi = eax; /* 0x47072521: mov esi, eax */ 7777 RECOMP_ICALL(ebx); /* 0x47072523: call ebx */ 7778 RECOMP_FLAGS_IN(); 7779 eax = MEM32(eax); /* 0x47072525: mov eax, dword ptr [eax] */ 7780 /* test eax, eax */ /* 0x47072527: test eax, eax */ 7781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7782 _cf = 0; 7783 _flag_k = FK_TEST; 7784 MEM32(esp + 0x10) = esi; /* 0x47072529: mov dword ptr [esp + 0x10], esi */ 7785 if (TEST_Z(_flag_a, _flag_b)) goto L_47072533; /* 0x4707252D: je 0x47072533 */ 7786 L_4707252F: 7787 MEM32(esp + 0x10) = eax; /* 0x4707252F: mov dword ptr [esp + 0x10], eax */ 7788 L_47072533: 7789 RECOMP_ICALL(0x47039020u); /* 0x47072533: call 0x47039020 */ /* not lifted */ 7790 RECOMP_FLAGS_IN(); 7791 esi = eax; /* 0x47072538: mov esi, eax */ 7792 ecx = esi; /* 0x4707253A: mov ecx, esi */ 7793 RECOMP_ICALL(0x4703B210u); /* 0x4707253C: call 0x4703b210 */ /* not lifted */ 7794 RECOMP_FLAGS_IN(); 7795 PUSH32(esp, eax); /* 0x47072541: push eax */ 7796 ecx = esi; /* 0x47072542: mov ecx, esi */ 7797 RECOMP_ICALL(0x4703B240u); /* 0x47072544: call 0x4703b240 */ /* not lifted */ 7798 RECOMP_FLAGS_IN(); 7799 PUSH32(esp, eax); /* 0x47072549: push eax */ 7800 ecx = esi; /* 0x4707254A: mov ecx, esi */ 7801 RECOMP_ICALL(0x4703B080u); /* 0x4707254C: call 0x4703b080 */ /* not lifted */ 7802 RECOMP_FLAGS_IN(); 7803 ecx = MEM32(esp + 0x18); /* 0x47072551: mov ecx, dword ptr [esp + 0x18] */ 7804 PUSH32(esp, eax); /* 0x47072555: push eax */ 7805 PUSH32(esp, ecx); /* 0x47072556: push ecx */ 7806 PUSH32(esp, 0); /* 0x47072557: push 0 */ 7807 PUSH32(esp, 0x192u); /* 0x47072559: push 0x192 */ 7808 PUSH32(esp, 0x4710A308u); /* 0x4707255E: push 0x4710a308 */ 7809 ecx = esi; /* 0x47072563: mov ecx, esi */ 7810 RECOMP_ICALL(0x4703A340u); /* 0x47072565: call 0x4703a340 */ /* not lifted */ 7811 RECOMP_FLAGS_IN(); 7812 PUSH32(esp, 0x4710A5ACu); /* 0x4707256A: push 0x4710a5ac */ 7813 PUSH32(esp, 4); /* 0x4707256F: push 4 */ 7814 PUSH32(esp, esi); /* 0x47072571: push esi */ 7815 RECOMP_ICALL(0x47039830u); /* 0x47072572: call 0x47039830 */ /* not lifted */ 7816 RECOMP_FLAGS_IN(); 7817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7819 esp = esp + 0xCu; /* 0x47072577: add esp, 0xc */ 7820 _flag_k = FK_ADD; 7821 RECOMP_ICALL(edi); /* 0x4707257A: call edi */ 7822 RECOMP_FLAGS_IN(); 7823 esi = eax; /* 0x4707257C: mov esi, eax */ 7824 RECOMP_ICALL(ebx); /* 0x4707257E: call ebx */ 7825 RECOMP_FLAGS_IN(); 7826 eax = MEM32(eax); /* 0x47072580: mov eax, dword ptr [eax] */ 7827 /* test eax, eax */ /* 0x47072582: test eax, eax */ 7828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7829 _cf = 0; 7830 _flag_k = FK_TEST; 7831 MEM32(esp + 0x10) = esi; /* 0x47072584: mov dword ptr [esp + 0x10], esi */ 7832 if (TEST_Z(_flag_a, _flag_b)) goto L_4707258E; /* 0x47072588: je 0x4707258e */ 7833 L_4707258A: 7834 MEM32(esp + 0x10) = eax; /* 0x4707258A: mov dword ptr [esp + 0x10], eax */ 7835 L_4707258E: 7836 RECOMP_ICALL(0x47039020u); /* 0x4707258E: call 0x47039020 */ /* not lifted */ 7837 RECOMP_FLAGS_IN(); 7838 esi = eax; /* 0x47072593: mov esi, eax */ 7839 ecx = esi; /* 0x47072595: mov ecx, esi */ 7840 RECOMP_ICALL(0x4703B210u); /* 0x47072597: call 0x4703b210 */ /* not lifted */ 7841 RECOMP_FLAGS_IN(); 7842 PUSH32(esp, eax); /* 0x4707259C: push eax */ 7843 ecx = esi; /* 0x4707259D: mov ecx, esi */ 7844 RECOMP_ICALL(0x4703B240u); /* 0x4707259F: call 0x4703b240 */ /* not lifted */ 7845 RECOMP_FLAGS_IN(); 7846 PUSH32(esp, eax); /* 0x470725A4: push eax */ 7847 ecx = esi; /* 0x470725A5: mov ecx, esi */ 7848 RECOMP_ICALL(0x4703B080u); /* 0x470725A7: call 0x4703b080 */ /* not lifted */ 7849 RECOMP_FLAGS_IN(); 7850 edx = MEM32(esp + 0x18); /* 0x470725AC: mov edx, dword ptr [esp + 0x18] */ 7851 PUSH32(esp, eax); /* 0x470725B0: push eax */ 7852 PUSH32(esp, edx); /* 0x470725B1: push edx */ 7853 PUSH32(esp, 0); /* 0x470725B2: push 0 */ 7854 PUSH32(esp, 0x193u); /* 0x470725B4: push 0x193 */ 7855 PUSH32(esp, 0x4710A308u); /* 0x470725B9: push 0x4710a308 */ 7856 ecx = esi; /* 0x470725BE: mov ecx, esi */ 7857 RECOMP_ICALL(0x4703A340u); /* 0x470725C0: call 0x4703a340 */ /* not lifted */ 7858 RECOMP_FLAGS_IN(); 7859 PUSH32(esp, 0x47106EA4u); /* 0x470725C5: push 0x47106ea4 */ 7860 PUSH32(esp, 4); /* 0x470725CA: push 4 */ 7861 PUSH32(esp, esi); /* 0x470725CC: push esi */ 7862 RECOMP_ICALL(0x47039830u); /* 0x470725CD: call 0x47039830 */ /* not lifted */ 7863 RECOMP_FLAGS_IN(); 7864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7865 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7866 esp = esp + 0xCu; /* 0x470725D2: add esp, 0xc */ 7867 _flag_k = FK_ADD; 7868 ecx = ebp; /* 0x470725D5: mov ecx, ebp */ 7869 RECOMP_ICALL(0x47072320u); /* 0x470725D7: call 0x47072320 */ /* not lifted */ 7870 RECOMP_FLAGS_IN(); 7871 RECOMP_ICALL(edi); /* 0x470725DC: call edi */ 7872 RECOMP_FLAGS_IN(); 7873 esi = eax; /* 0x470725DE: mov esi, eax */ 7874 RECOMP_ICALL(ebx); /* 0x470725E0: call ebx */ 7875 RECOMP_FLAGS_IN(); 7876 eax = MEM32(eax); /* 0x470725E2: mov eax, dword ptr [eax] */ 7877 /* test eax, eax */ /* 0x470725E4: test eax, eax */ 7878 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7879 _cf = 0; 7880 _flag_k = FK_TEST; 7881 edi = esi; /* 0x470725E6: mov edi, esi */ 7882 if (TEST_Z(_flag_a, _flag_b)) goto L_470725EC; /* 0x470725E8: je 0x470725ec */ 7883 L_470725EA: 7884 edi = eax; /* 0x470725EA: mov edi, eax */ 7885 L_470725EC: 7886 RECOMP_ICALL(0x47039020u); /* 0x470725EC: call 0x47039020 */ /* not lifted */ 7887 RECOMP_FLAGS_IN(); 7888 esi = eax; /* 0x470725F1: mov esi, eax */ 7889 ecx = esi; /* 0x470725F3: mov ecx, esi */ 7890 RECOMP_ICALL(0x4703B210u); /* 0x470725F5: call 0x4703b210 */ /* not lifted */ 7891 RECOMP_FLAGS_IN(); 7892 PUSH32(esp, eax); /* 0x470725FA: push eax */ 7893 ecx = esi; /* 0x470725FB: mov ecx, esi */ 7894 RECOMP_ICALL(0x4703B240u); /* 0x470725FD: call 0x4703b240 */ /* not lifted */ 7895 RECOMP_FLAGS_IN(); 7896 PUSH32(esp, eax); /* 0x47072602: push eax */ 7897 ecx = esi; /* 0x47072603: mov ecx, esi */ 7898 RECOMP_ICALL(0x4703B080u); /* 0x47072605: call 0x4703b080 */ /* not lifted */ 7899 RECOMP_FLAGS_IN(); 7900 PUSH32(esp, eax); /* 0x4707260A: push eax */ 7901 PUSH32(esp, edi); /* 0x4707260B: push edi */ 7902 PUSH32(esp, 0); /* 0x4707260C: push 0 */ 7903 PUSH32(esp, 0x195u); /* 0x4707260E: push 0x195 */ 7904 PUSH32(esp, 0x4710A308u); /* 0x47072613: push 0x4710a308 */ 7905 ecx = esi; /* 0x47072618: mov ecx, esi */ 7906 RECOMP_ICALL(0x4703A340u); /* 0x4707261A: call 0x4703a340 */ /* not lifted */ 7907 RECOMP_FLAGS_IN(); 7908 PUSH32(esp, 0x4710529Cu); /* 0x4707261F: push 0x4710529c */ 7909 PUSH32(esp, 4); /* 0x47072624: push 4 */ 7910 PUSH32(esp, esi); /* 0x47072626: push esi */ 7911 RECOMP_ICALL(0x47039830u); /* 0x47072627: call 0x47039830 */ /* not lifted */ 7912 RECOMP_FLAGS_IN(); 7913 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7914 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7915 esp = esp + 0xCu; /* 0x4707262C: add esp, 0xc */ 7916 _flag_k = FK_ADD; 7917 edi = POP32_VAL(esp); /* 0x4707262F: pop edi */ 7918 esi = POP32_VAL(esp); /* 0x47072630: pop esi */ 7919 ebp = POP32_VAL(esp); /* 0x47072631: pop ebp */ 7920 ebx = POP32_VAL(esp); /* 0x47072632: pop ebx */ 7921 ecx = POP32_VAL(esp); /* 0x47072633: pop ecx */ 7922 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47072634: ret */ 7923 RECOMP_REGS_OUT(); 7924 } 7925 7926 void sub_47072640(void) { 7927 int _fpu_cmp = 0; 7928 uint32_t _cf = 0; 7929 int _df = 1; 7930 uint32_t _flag_k = FK_NONE; 7931 uint32_t _flag_a = 0, _flag_b = 0; 7932 uint32_t _itail_tgt = 0; 7933 RECOMP_REGS_LOCALS 7934 RECOMP_ENTER(0x47072640u); 7935 7936 L_47072640: 7937 PUSH32(esp, ecx); /* 0x47072640: push ecx */ 7938 PUSH32(esp, ebx); /* 0x47072641: push ebx */ 7939 PUSH32(esp, ebp); /* 0x47072642: push ebp */ 7940 PUSH32(esp, esi); /* 0x47072643: push esi */ 7941 PUSH32(esp, edi); /* 0x47072644: push edi */ 7942 edi = MEM32(0x470AC150); /* 0x47072645: mov edi, dword ptr [0x470ac150] */ 7943 ebp = ecx; /* 0x4707264B: mov ebp, ecx */ 7944 RECOMP_ICALL(edi); /* 0x4707264D: call edi */ 7945 RECOMP_FLAGS_IN(); 7946 ebx = MEM32(0x470AC3C8); /* 0x4707264F: mov ebx, dword ptr [0x470ac3c8] */ 7947 esi = eax; /* 0x47072655: mov esi, eax */ 7948 RECOMP_ICALL(ebx); /* 0x47072657: call ebx */ 7949 RECOMP_FLAGS_IN(); 7950 eax = MEM32(eax); /* 0x47072659: mov eax, dword ptr [eax] */ 7951 /* test eax, eax */ /* 0x4707265B: test eax, eax */ 7952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7953 _cf = 0; 7954 _flag_k = FK_TEST; 7955 MEM32(esp + 0x10) = esi; /* 0x4707265D: mov dword ptr [esp + 0x10], esi */ 7956 if (TEST_Z(_flag_a, _flag_b)) goto L_47072667; /* 0x47072661: je 0x47072667 */ 7957 L_47072663: 7958 MEM32(esp + 0x10) = eax; /* 0x47072663: mov dword ptr [esp + 0x10], eax */ 7959 L_47072667: 7960 RECOMP_ICALL(0x47039020u); /* 0x47072667: call 0x47039020 */ /* not lifted */ 7961 RECOMP_FLAGS_IN(); 7962 esi = eax; /* 0x4707266C: mov esi, eax */ 7963 ecx = esi; /* 0x4707266E: mov ecx, esi */ 7964 RECOMP_ICALL(0x4703B210u); /* 0x47072670: call 0x4703b210 */ /* not lifted */ 7965 RECOMP_FLAGS_IN(); 7966 PUSH32(esp, eax); /* 0x47072675: push eax */ 7967 ecx = esi; /* 0x47072676: mov ecx, esi */ 7968 RECOMP_ICALL(0x4703B240u); /* 0x47072678: call 0x4703b240 */ /* not lifted */ 7969 RECOMP_FLAGS_IN(); 7970 PUSH32(esp, eax); /* 0x4707267D: push eax */ 7971 ecx = esi; /* 0x4707267E: mov ecx, esi */ 7972 RECOMP_ICALL(0x4703B080u); /* 0x47072680: call 0x4703b080 */ /* not lifted */ 7973 RECOMP_FLAGS_IN(); 7974 PUSH32(esp, eax); /* 0x47072685: push eax */ 7975 eax = MEM32(esp + 0x1C); /* 0x47072686: mov eax, dword ptr [esp + 0x1c] */ 7976 PUSH32(esp, eax); /* 0x4707268A: push eax */ 7977 PUSH32(esp, 0); /* 0x4707268B: push 0 */ 7978 PUSH32(esp, 0x19Cu); /* 0x4707268D: push 0x19c */ 7979 PUSH32(esp, 0x4710A308u); /* 0x47072692: push 0x4710a308 */ 7980 ecx = esi; /* 0x47072697: mov ecx, esi */ 7981 RECOMP_ICALL(0x4703A340u); /* 0x47072699: call 0x4703a340 */ /* not lifted */ 7982 RECOMP_FLAGS_IN(); 7983 PUSH32(esp, ebp); /* 0x4707269E: push ebp */ 7984 PUSH32(esp, 0x471052CCu); /* 0x4707269F: push 0x471052cc */ 7985 PUSH32(esp, 4); /* 0x470726A4: push 4 */ 7986 PUSH32(esp, esi); /* 0x470726A6: push esi */ 7987 RECOMP_ICALL(0x47039830u); /* 0x470726A7: call 0x47039830 */ /* not lifted */ 7988 RECOMP_FLAGS_IN(); 7989 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7990 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7991 esp = esp + 0x10u; /* 0x470726AC: add esp, 0x10 */ 7992 _flag_k = FK_ADD; 7993 RECOMP_ICALL(edi); /* 0x470726AF: call edi */ 7994 RECOMP_FLAGS_IN(); 7995 esi = eax; /* 0x470726B1: mov esi, eax */ 7996 RECOMP_ICALL(ebx); /* 0x470726B3: call ebx */ 7997 RECOMP_FLAGS_IN(); 7998 eax = MEM32(eax); /* 0x470726B5: mov eax, dword ptr [eax] */ 7999 /* test eax, eax */ /* 0x470726B7: test eax, eax */ 8000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8001 _cf = 0; 8002 _flag_k = FK_TEST; 8003 MEM32(esp + 0x10) = esi; /* 0x470726B9: mov dword ptr [esp + 0x10], esi */ 8004 if (TEST_Z(_flag_a, _flag_b)) goto L_470726C3; /* 0x470726BD: je 0x470726c3 */ 8005 L_470726BF: 8006 MEM32(esp + 0x10) = eax; /* 0x470726BF: mov dword ptr [esp + 0x10], eax */ 8007 L_470726C3: 8008 RECOMP_ICALL(0x47039020u); /* 0x470726C3: call 0x47039020 */ /* not lifted */ 8009 RECOMP_FLAGS_IN(); 8010 esi = eax; /* 0x470726C8: mov esi, eax */ 8011 ecx = esi; /* 0x470726CA: mov ecx, esi */ 8012 RECOMP_ICALL(0x4703B210u); /* 0x470726CC: call 0x4703b210 */ /* not lifted */ 8013 RECOMP_FLAGS_IN(); 8014 PUSH32(esp, eax); /* 0x470726D1: push eax */ 8015 ecx = esi; /* 0x470726D2: mov ecx, esi */ 8016 RECOMP_ICALL(0x4703B240u); /* 0x470726D4: call 0x4703b240 */ /* not lifted */ 8017 RECOMP_FLAGS_IN(); 8018 PUSH32(esp, eax); /* 0x470726D9: push eax */ 8019 ecx = esi; /* 0x470726DA: mov ecx, esi */ 8020 RECOMP_ICALL(0x4703B080u); /* 0x470726DC: call 0x4703b080 */ /* not lifted */ 8021 RECOMP_FLAGS_IN(); 8022 ecx = MEM32(esp + 0x18); /* 0x470726E1: mov ecx, dword ptr [esp + 0x18] */ 8023 PUSH32(esp, eax); /* 0x470726E5: push eax */ 8024 PUSH32(esp, ecx); /* 0x470726E6: push ecx */ 8025 PUSH32(esp, 0); /* 0x470726E7: push 0 */ 8026 PUSH32(esp, 0x19Du); /* 0x470726E9: push 0x19d */ 8027 PUSH32(esp, 0x4710A308u); /* 0x470726EE: push 0x4710a308 */ 8028 ecx = esi; /* 0x470726F3: mov ecx, esi */ 8029 RECOMP_ICALL(0x4703A340u); /* 0x470726F5: call 0x4703a340 */ /* not lifted */ 8030 RECOMP_FLAGS_IN(); 8031 PUSH32(esp, 0x4710A5C8u); /* 0x470726FA: push 0x4710a5c8 */ 8032 PUSH32(esp, 4); /* 0x470726FF: push 4 */ 8033 PUSH32(esp, esi); /* 0x47072701: push esi */ 8034 RECOMP_ICALL(0x47039830u); /* 0x47072702: call 0x47039830 */ /* not lifted */ 8035 RECOMP_FLAGS_IN(); 8036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8038 esp = esp + 0xCu; /* 0x47072707: add esp, 0xc */ 8039 _flag_k = FK_ADD; 8040 RECOMP_ICALL(edi); /* 0x4707270A: call edi */ 8041 RECOMP_FLAGS_IN(); 8042 esi = eax; /* 0x4707270C: mov esi, eax */ 8043 RECOMP_ICALL(ebx); /* 0x4707270E: call ebx */ 8044 RECOMP_FLAGS_IN(); 8045 eax = MEM32(eax); /* 0x47072710: mov eax, dword ptr [eax] */ 8046 /* test eax, eax */ /* 0x47072712: test eax, eax */ 8047 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8048 _cf = 0; 8049 _flag_k = FK_TEST; 8050 MEM32(esp + 0x10) = esi; /* 0x47072714: mov dword ptr [esp + 0x10], esi */ 8051 if (TEST_Z(_flag_a, _flag_b)) goto L_4707271E; /* 0x47072718: je 0x4707271e */ 8052 L_4707271A: 8053 MEM32(esp + 0x10) = eax; /* 0x4707271A: mov dword ptr [esp + 0x10], eax */ 8054 L_4707271E: 8055 RECOMP_ICALL(0x47039020u); /* 0x4707271E: call 0x47039020 */ /* not lifted */ 8056 RECOMP_FLAGS_IN(); 8057 esi = eax; /* 0x47072723: mov esi, eax */ 8058 ecx = esi; /* 0x47072725: mov ecx, esi */ 8059 RECOMP_ICALL(0x4703B210u); /* 0x47072727: call 0x4703b210 */ /* not lifted */ 8060 RECOMP_FLAGS_IN(); 8061 PUSH32(esp, eax); /* 0x4707272C: push eax */ 8062 ecx = esi; /* 0x4707272D: mov ecx, esi */ 8063 RECOMP_ICALL(0x4703B240u); /* 0x4707272F: call 0x4703b240 */ /* not lifted */ 8064 RECOMP_FLAGS_IN(); 8065 PUSH32(esp, eax); /* 0x47072734: push eax */ 8066 ecx = esi; /* 0x47072735: mov ecx, esi */ 8067 RECOMP_ICALL(0x4703B080u); /* 0x47072737: call 0x4703b080 */ /* not lifted */ 8068 RECOMP_FLAGS_IN(); 8069 edx = MEM32(esp + 0x18); /* 0x4707273C: mov edx, dword ptr [esp + 0x18] */ 8070 PUSH32(esp, eax); /* 0x47072740: push eax */ 8071 PUSH32(esp, edx); /* 0x47072741: push edx */ 8072 PUSH32(esp, 0); /* 0x47072742: push 0 */ 8073 PUSH32(esp, 0x19Eu); /* 0x47072744: push 0x19e */ 8074 PUSH32(esp, 0x4710A308u); /* 0x47072749: push 0x4710a308 */ 8075 ecx = esi; /* 0x4707274E: mov ecx, esi */ 8076 RECOMP_ICALL(0x4703A340u); /* 0x47072750: call 0x4703a340 */ /* not lifted */ 8077 RECOMP_FLAGS_IN(); 8078 PUSH32(esp, 0x47106EA4u); /* 0x47072755: push 0x47106ea4 */ 8079 PUSH32(esp, 4); /* 0x4707275A: push 4 */ 8080 PUSH32(esp, esi); /* 0x4707275C: push esi */ 8081 RECOMP_ICALL(0x47039830u); /* 0x4707275D: call 0x47039830 */ /* not lifted */ 8082 RECOMP_FLAGS_IN(); 8083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8085 esp = esp + 0xCu; /* 0x47072762: add esp, 0xc */ 8086 _flag_k = FK_ADD; 8087 ecx = ebp; /* 0x47072765: mov ecx, ebp */ 8088 RECOMP_ICALL(0x47072320u); /* 0x47072767: call 0x47072320 */ /* not lifted */ 8089 RECOMP_FLAGS_IN(); 8090 RECOMP_ICALL(edi); /* 0x4707276C: call edi */ 8091 RECOMP_FLAGS_IN(); 8092 esi = eax; /* 0x4707276E: mov esi, eax */ 8093 RECOMP_ICALL(ebx); /* 0x47072770: call ebx */ 8094 RECOMP_FLAGS_IN(); 8095 eax = MEM32(eax); /* 0x47072772: mov eax, dword ptr [eax] */ 8096 /* test eax, eax */ /* 0x47072774: test eax, eax */ 8097 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8098 _cf = 0; 8099 _flag_k = FK_TEST; 8100 edi = esi; /* 0x47072776: mov edi, esi */ 8101 if (TEST_Z(_flag_a, _flag_b)) goto L_4707277C; /* 0x47072778: je 0x4707277c */ 8102 L_4707277A: 8103 edi = eax; /* 0x4707277A: mov edi, eax */ 8104 L_4707277C: 8105 RECOMP_ICALL(0x47039020u); /* 0x4707277C: call 0x47039020 */ /* not lifted */ 8106 RECOMP_FLAGS_IN(); 8107 esi = eax; /* 0x47072781: mov esi, eax */ 8108 ecx = esi; /* 0x47072783: mov ecx, esi */ 8109 RECOMP_ICALL(0x4703B210u); /* 0x47072785: call 0x4703b210 */ /* not lifted */ 8110 RECOMP_FLAGS_IN(); 8111 PUSH32(esp, eax); /* 0x4707278A: push eax */ 8112 ecx = esi; /* 0x4707278B: mov ecx, esi */ 8113 RECOMP_ICALL(0x4703B240u); /* 0x4707278D: call 0x4703b240 */ /* not lifted */ 8114 RECOMP_FLAGS_IN(); 8115 PUSH32(esp, eax); /* 0x47072792: push eax */ 8116 ecx = esi; /* 0x47072793: mov ecx, esi */ 8117 RECOMP_ICALL(0x4703B080u); /* 0x47072795: call 0x4703b080 */ /* not lifted */ 8118 RECOMP_FLAGS_IN(); 8119 PUSH32(esp, eax); /* 0x4707279A: push eax */ 8120 PUSH32(esp, edi); /* 0x4707279B: push edi */ 8121 PUSH32(esp, 0); /* 0x4707279C: push 0 */ 8122 PUSH32(esp, 0x1A0u); /* 0x4707279E: push 0x1a0 */ 8123 PUSH32(esp, 0x4710A308u); /* 0x470727A3: push 0x4710a308 */ 8124 ecx = esi; /* 0x470727A8: mov ecx, esi */ 8125 RECOMP_ICALL(0x4703A340u); /* 0x470727AA: call 0x4703a340 */ /* not lifted */ 8126 RECOMP_FLAGS_IN(); 8127 PUSH32(esp, 0x4710529Cu); /* 0x470727AF: push 0x4710529c */ 8128 PUSH32(esp, 4); /* 0x470727B4: push 4 */ 8129 PUSH32(esp, esi); /* 0x470727B6: push esi */ 8130 RECOMP_ICALL(0x47039830u); /* 0x470727B7: call 0x47039830 */ /* not lifted */ 8131 RECOMP_FLAGS_IN(); 8132 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8134 esp = esp + 0xCu; /* 0x470727BC: add esp, 0xc */ 8135 _flag_k = FK_ADD; 8136 edi = POP32_VAL(esp); /* 0x470727BF: pop edi */ 8137 esi = POP32_VAL(esp); /* 0x470727C0: pop esi */ 8138 ebp = POP32_VAL(esp); /* 0x470727C1: pop ebp */ 8139 ebx = POP32_VAL(esp); /* 0x470727C2: pop ebx */ 8140 ecx = POP32_VAL(esp); /* 0x470727C3: pop ecx */ 8141 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470727C4: ret */ 8142 RECOMP_REGS_OUT(); 8143 } 8144 8145 void sub_470727D0(void) { 8146 int _fpu_cmp = 0; 8147 uint32_t _cf = 0; 8148 int _df = 1; 8149 uint32_t _flag_k = FK_NONE; 8150 uint32_t _flag_a = 0, _flag_b = 0; 8151 uint32_t _itail_tgt = 0; 8152 RECOMP_REGS_LOCALS 8153 RECOMP_ENTER(0x470727D0u); 8154 8155 L_470727D0: 8156 PUSH32(esp, ecx); /* 0x470727D0: push ecx */ 8157 PUSH32(esp, ebx); /* 0x470727D1: push ebx */ 8158 PUSH32(esp, ebp); /* 0x470727D2: push ebp */ 8159 PUSH32(esp, esi); /* 0x470727D3: push esi */ 8160 PUSH32(esp, edi); /* 0x470727D4: push edi */ 8161 edi = MEM32(0x470AC150); /* 0x470727D5: mov edi, dword ptr [0x470ac150] */ 8162 ebp = ecx; /* 0x470727DB: mov ebp, ecx */ 8163 RECOMP_ICALL(edi); /* 0x470727DD: call edi */ 8164 RECOMP_FLAGS_IN(); 8165 ebx = MEM32(0x470AC3C8); /* 0x470727DF: mov ebx, dword ptr [0x470ac3c8] */ 8166 esi = eax; /* 0x470727E5: mov esi, eax */ 8167 RECOMP_ICALL(ebx); /* 0x470727E7: call ebx */ 8168 RECOMP_FLAGS_IN(); 8169 eax = MEM32(eax); /* 0x470727E9: mov eax, dword ptr [eax] */ 8170 /* test eax, eax */ /* 0x470727EB: test eax, eax */ 8171 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8172 _cf = 0; 8173 _flag_k = FK_TEST; 8174 MEM32(esp + 0x10) = esi; /* 0x470727ED: mov dword ptr [esp + 0x10], esi */ 8175 if (TEST_Z(_flag_a, _flag_b)) goto L_470727F7; /* 0x470727F1: je 0x470727f7 */ 8176 L_470727F3: 8177 MEM32(esp + 0x10) = eax; /* 0x470727F3: mov dword ptr [esp + 0x10], eax */ 8178 L_470727F7: 8179 RECOMP_ICALL(0x47039020u); /* 0x470727F7: call 0x47039020 */ /* not lifted */ 8180 RECOMP_FLAGS_IN(); 8181 esi = eax; /* 0x470727FC: mov esi, eax */ 8182 ecx = esi; /* 0x470727FE: mov ecx, esi */ 8183 RECOMP_ICALL(0x4703B210u); /* 0x47072800: call 0x4703b210 */ /* not lifted */ 8184 RECOMP_FLAGS_IN(); 8185 PUSH32(esp, eax); /* 0x47072805: push eax */ 8186 ecx = esi; /* 0x47072806: mov ecx, esi */ 8187 RECOMP_ICALL(0x4703B240u); /* 0x47072808: call 0x4703b240 */ /* not lifted */ 8188 RECOMP_FLAGS_IN(); 8189 PUSH32(esp, eax); /* 0x4707280D: push eax */ 8190 ecx = esi; /* 0x4707280E: mov ecx, esi */ 8191 RECOMP_ICALL(0x4703B080u); /* 0x47072810: call 0x4703b080 */ /* not lifted */ 8192 RECOMP_FLAGS_IN(); 8193 PUSH32(esp, eax); /* 0x47072815: push eax */ 8194 eax = MEM32(esp + 0x1C); /* 0x47072816: mov eax, dword ptr [esp + 0x1c] */ 8195 PUSH32(esp, eax); /* 0x4707281A: push eax */ 8196 PUSH32(esp, 0); /* 0x4707281B: push 0 */ 8197 PUSH32(esp, 0x1A7u); /* 0x4707281D: push 0x1a7 */ 8198 PUSH32(esp, 0x4710A308u); /* 0x47072822: push 0x4710a308 */ 8199 ecx = esi; /* 0x47072827: mov ecx, esi */ 8200 RECOMP_ICALL(0x4703A340u); /* 0x47072829: call 0x4703a340 */ /* not lifted */ 8201 RECOMP_FLAGS_IN(); 8202 PUSH32(esp, ebp); /* 0x4707282E: push ebp */ 8203 PUSH32(esp, 0x471052CCu); /* 0x4707282F: push 0x471052cc */ 8204 PUSH32(esp, 4); /* 0x47072834: push 4 */ 8205 PUSH32(esp, esi); /* 0x47072836: push esi */ 8206 RECOMP_ICALL(0x47039830u); /* 0x47072837: call 0x47039830 */ /* not lifted */ 8207 RECOMP_FLAGS_IN(); 8208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8210 esp = esp + 0x10u; /* 0x4707283C: add esp, 0x10 */ 8211 _flag_k = FK_ADD; 8212 RECOMP_ICALL(edi); /* 0x4707283F: call edi */ 8213 RECOMP_FLAGS_IN(); 8214 esi = eax; /* 0x47072841: mov esi, eax */ 8215 RECOMP_ICALL(ebx); /* 0x47072843: call ebx */ 8216 RECOMP_FLAGS_IN(); 8217 eax = MEM32(eax); /* 0x47072845: mov eax, dword ptr [eax] */ 8218 /* test eax, eax */ /* 0x47072847: test eax, eax */ 8219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8220 _cf = 0; 8221 _flag_k = FK_TEST; 8222 MEM32(esp + 0x10) = esi; /* 0x47072849: mov dword ptr [esp + 0x10], esi */ 8223 if (TEST_Z(_flag_a, _flag_b)) goto L_47072853; /* 0x4707284D: je 0x47072853 */ 8224 L_4707284F: 8225 MEM32(esp + 0x10) = eax; /* 0x4707284F: mov dword ptr [esp + 0x10], eax */ 8226 L_47072853: 8227 RECOMP_ICALL(0x47039020u); /* 0x47072853: call 0x47039020 */ /* not lifted */ 8228 RECOMP_FLAGS_IN(); 8229 esi = eax; /* 0x47072858: mov esi, eax */ 8230 ecx = esi; /* 0x4707285A: mov ecx, esi */ 8231 RECOMP_ICALL(0x4703B210u); /* 0x4707285C: call 0x4703b210 */ /* not lifted */ 8232 RECOMP_FLAGS_IN(); 8233 PUSH32(esp, eax); /* 0x47072861: push eax */ 8234 ecx = esi; /* 0x47072862: mov ecx, esi */ 8235 RECOMP_ICALL(0x4703B240u); /* 0x47072864: call 0x4703b240 */ /* not lifted */ 8236 RECOMP_FLAGS_IN(); 8237 PUSH32(esp, eax); /* 0x47072869: push eax */ 8238 ecx = esi; /* 0x4707286A: mov ecx, esi */ 8239 RECOMP_ICALL(0x4703B080u); /* 0x4707286C: call 0x4703b080 */ /* not lifted */ 8240 RECOMP_FLAGS_IN(); 8241 ecx = MEM32(esp + 0x18); /* 0x47072871: mov ecx, dword ptr [esp + 0x18] */ 8242 PUSH32(esp, eax); /* 0x47072875: push eax */ 8243 PUSH32(esp, ecx); /* 0x47072876: push ecx */ 8244 PUSH32(esp, 0); /* 0x47072877: push 0 */ 8245 PUSH32(esp, 0x1A8u); /* 0x47072879: push 0x1a8 */ 8246 PUSH32(esp, 0x4710A308u); /* 0x4707287E: push 0x4710a308 */ 8247 ecx = esi; /* 0x47072883: mov ecx, esi */ 8248 RECOMP_ICALL(0x4703A340u); /* 0x47072885: call 0x4703a340 */ /* not lifted */ 8249 RECOMP_FLAGS_IN(); 8250 PUSH32(esp, 0x4710A5E4u); /* 0x4707288A: push 0x4710a5e4 */ 8251 PUSH32(esp, 4); /* 0x4707288F: push 4 */ 8252 PUSH32(esp, esi); /* 0x47072891: push esi */ 8253 RECOMP_ICALL(0x47039830u); /* 0x47072892: call 0x47039830 */ /* not lifted */ 8254 RECOMP_FLAGS_IN(); 8255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8257 esp = esp + 0xCu; /* 0x47072897: add esp, 0xc */ 8258 _flag_k = FK_ADD; 8259 RECOMP_ICALL(edi); /* 0x4707289A: call edi */ 8260 RECOMP_FLAGS_IN(); 8261 esi = eax; /* 0x4707289C: mov esi, eax */ 8262 RECOMP_ICALL(ebx); /* 0x4707289E: call ebx */ 8263 RECOMP_FLAGS_IN(); 8264 eax = MEM32(eax); /* 0x470728A0: mov eax, dword ptr [eax] */ 8265 /* test eax, eax */ /* 0x470728A2: test eax, eax */ 8266 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8267 _cf = 0; 8268 _flag_k = FK_TEST; 8269 MEM32(esp + 0x10) = esi; /* 0x470728A4: mov dword ptr [esp + 0x10], esi */ 8270 if (TEST_Z(_flag_a, _flag_b)) goto L_470728AE; /* 0x470728A8: je 0x470728ae */ 8271 L_470728AA: 8272 MEM32(esp + 0x10) = eax; /* 0x470728AA: mov dword ptr [esp + 0x10], eax */ 8273 L_470728AE: 8274 RECOMP_ICALL(0x47039020u); /* 0x470728AE: call 0x47039020 */ /* not lifted */ 8275 RECOMP_FLAGS_IN(); 8276 esi = eax; /* 0x470728B3: mov esi, eax */ 8277 ecx = esi; /* 0x470728B5: mov ecx, esi */ 8278 RECOMP_ICALL(0x4703B210u); /* 0x470728B7: call 0x4703b210 */ /* not lifted */ 8279 RECOMP_FLAGS_IN(); 8280 PUSH32(esp, eax); /* 0x470728BC: push eax */ 8281 ecx = esi; /* 0x470728BD: mov ecx, esi */ 8282 RECOMP_ICALL(0x4703B240u); /* 0x470728BF: call 0x4703b240 */ /* not lifted */ 8283 RECOMP_FLAGS_IN(); 8284 PUSH32(esp, eax); /* 0x470728C4: push eax */ 8285 ecx = esi; /* 0x470728C5: mov ecx, esi */ 8286 RECOMP_ICALL(0x4703B080u); /* 0x470728C7: call 0x4703b080 */ /* not lifted */ 8287 RECOMP_FLAGS_IN(); 8288 edx = MEM32(esp + 0x18); /* 0x470728CC: mov edx, dword ptr [esp + 0x18] */ 8289 PUSH32(esp, eax); /* 0x470728D0: push eax */ 8290 PUSH32(esp, edx); /* 0x470728D1: push edx */ 8291 PUSH32(esp, 0); /* 0x470728D2: push 0 */ 8292 PUSH32(esp, 0x1A9u); /* 0x470728D4: push 0x1a9 */ 8293 PUSH32(esp, 0x4710A308u); /* 0x470728D9: push 0x4710a308 */ 8294 ecx = esi; /* 0x470728DE: mov ecx, esi */ 8295 RECOMP_ICALL(0x4703A340u); /* 0x470728E0: call 0x4703a340 */ /* not lifted */ 8296 RECOMP_FLAGS_IN(); 8297 PUSH32(esp, 0x47106EA4u); /* 0x470728E5: push 0x47106ea4 */ 8298 PUSH32(esp, 4); /* 0x470728EA: push 4 */ 8299 PUSH32(esp, esi); /* 0x470728EC: push esi */ 8300 RECOMP_ICALL(0x47039830u); /* 0x470728ED: call 0x47039830 */ /* not lifted */ 8301 RECOMP_FLAGS_IN(); 8302 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8304 esp = esp + 0xCu; /* 0x470728F2: add esp, 0xc */ 8305 _flag_k = FK_ADD; 8306 ecx = ebp; /* 0x470728F5: mov ecx, ebp */ 8307 RECOMP_ICALL(0x47072320u); /* 0x470728F7: call 0x47072320 */ /* not lifted */ 8308 RECOMP_FLAGS_IN(); 8309 RECOMP_ICALL(edi); /* 0x470728FC: call edi */ 8310 RECOMP_FLAGS_IN(); 8311 esi = eax; /* 0x470728FE: mov esi, eax */ 8312 RECOMP_ICALL(ebx); /* 0x47072900: call ebx */ 8313 RECOMP_FLAGS_IN(); 8314 eax = MEM32(eax); /* 0x47072902: mov eax, dword ptr [eax] */ 8315 /* test eax, eax */ /* 0x47072904: test eax, eax */ 8316 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8317 _cf = 0; 8318 _flag_k = FK_TEST; 8319 edi = esi; /* 0x47072906: mov edi, esi */ 8320 if (TEST_Z(_flag_a, _flag_b)) goto L_4707290C; /* 0x47072908: je 0x4707290c */ 8321 L_4707290A: 8322 edi = eax; /* 0x4707290A: mov edi, eax */ 8323 L_4707290C: 8324 RECOMP_ICALL(0x47039020u); /* 0x4707290C: call 0x47039020 */ /* not lifted */ 8325 RECOMP_FLAGS_IN(); 8326 esi = eax; /* 0x47072911: mov esi, eax */ 8327 ecx = esi; /* 0x47072913: mov ecx, esi */ 8328 RECOMP_ICALL(0x4703B210u); /* 0x47072915: call 0x4703b210 */ /* not lifted */ 8329 RECOMP_FLAGS_IN(); 8330 PUSH32(esp, eax); /* 0x4707291A: push eax */ 8331 ecx = esi; /* 0x4707291B: mov ecx, esi */ 8332 RECOMP_ICALL(0x4703B240u); /* 0x4707291D: call 0x4703b240 */ /* not lifted */ 8333 RECOMP_FLAGS_IN(); 8334 PUSH32(esp, eax); /* 0x47072922: push eax */ 8335 ecx = esi; /* 0x47072923: mov ecx, esi */ 8336 RECOMP_ICALL(0x4703B080u); /* 0x47072925: call 0x4703b080 */ /* not lifted */ 8337 RECOMP_FLAGS_IN(); 8338 PUSH32(esp, eax); /* 0x4707292A: push eax */ 8339 PUSH32(esp, edi); /* 0x4707292B: push edi */ 8340 PUSH32(esp, 0); /* 0x4707292C: push 0 */ 8341 PUSH32(esp, 0x1ABu); /* 0x4707292E: push 0x1ab */ 8342 PUSH32(esp, 0x4710A308u); /* 0x47072933: push 0x4710a308 */ 8343 ecx = esi; /* 0x47072938: mov ecx, esi */ 8344 RECOMP_ICALL(0x4703A340u); /* 0x4707293A: call 0x4703a340 */ /* not lifted */ 8345 RECOMP_FLAGS_IN(); 8346 PUSH32(esp, 0x4710529Cu); /* 0x4707293F: push 0x4710529c */ 8347 PUSH32(esp, 4); /* 0x47072944: push 4 */ 8348 PUSH32(esp, esi); /* 0x47072946: push esi */ 8349 RECOMP_ICALL(0x47039830u); /* 0x47072947: call 0x47039830 */ /* not lifted */ 8350 RECOMP_FLAGS_IN(); 8351 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8353 esp = esp + 0xCu; /* 0x4707294C: add esp, 0xc */ 8354 _flag_k = FK_ADD; 8355 edi = POP32_VAL(esp); /* 0x4707294F: pop edi */ 8356 esi = POP32_VAL(esp); /* 0x47072950: pop esi */ 8357 ebp = POP32_VAL(esp); /* 0x47072951: pop ebp */ 8358 ebx = POP32_VAL(esp); /* 0x47072952: pop ebx */ 8359 ecx = POP32_VAL(esp); /* 0x47072953: pop ecx */ 8360 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47072954: ret */ 8361 RECOMP_REGS_OUT(); 8362 } 8363 8364 void sub_47072960(void) { 8365 int _fpu_cmp = 0; 8366 uint32_t _cf = 0; 8367 int _df = 1; 8368 uint32_t _flag_k = FK_NONE; 8369 uint32_t _flag_a = 0, _flag_b = 0; 8370 uint32_t _itail_tgt = 0; 8371 RECOMP_REGS_LOCALS 8372 RECOMP_ENTER(0x47072960u); 8373 8374 L_47072960: 8375 PUSH32(esp, 0xFFFFFFFFu); /* 0x47072960: push -1 */ 8376 PUSH32(esp, 0x470A91BBu); /* 0x47072962: push 0x470a91bb */ 8377 eax = MEM32(FS_BASE + (0)); /* 0x47072967: mov eax, dword ptr fs:[0] */ 8378 PUSH32(esp, eax); /* 0x4707296D: push eax */ 8379 MEM32(FS_BASE + (0)) = esp; /* 0x4707296E: mov dword ptr fs:[0], esp */ 8380 PUSH32(esp, ecx); /* 0x47072975: push ecx */ 8381 PUSH32(esp, esi); /* 0x47072976: push esi */ 8382 PUSH32(esp, 0x10u); /* 0x47072977: push 0x10 */ 8383 RECOMP_ICALL(0x470A33F2u); /* 0x47072979: call 0x470a33f2 */ /* not lifted */ 8384 RECOMP_FLAGS_IN(); 8385 esi = eax; /* 0x4707297E: mov esi, eax */ 8386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8388 esp = esp + 4; /* 0x47072980: add esp, 4 */ 8389 _flag_k = FK_ADD; 8390 MEM32(esp + 0x4) = esi; /* 0x47072983: mov dword ptr [esp + 4], esi */ 8391 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8392 eax = 0; /* 0x47072987: xor eax, eax */ 8393 _cf = 0; 8394 _flag_k = FK_TEST; 8395 /* cmp esi, eax */ /* 0x47072989: cmp esi, eax */ 8396 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 8397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8398 _flag_k = FK_CMP; 8399 MEM32(esp + 0x10) = eax; /* 0x4707298B: mov dword ptr [esp + 0x10], eax */ 8400 if (CMP_EQ(_flag_a, _flag_b)) goto L_4707299A; /* 0x4707298F: je 0x4707299a */ 8401 L_47072991: 8402 ecx = esi; /* 0x47072991: mov ecx, esi */ 8403 RECOMP_ICALL(0x4707A510u); /* 0x47072993: call 0x4707a510 */ /* not lifted */ 8404 RECOMP_FLAGS_IN(); 8405 eax = esi; /* 0x47072998: mov eax, esi */ 8406 L_4707299A: 8407 ecx = MEM32(esp + 0x8); /* 0x4707299A: mov ecx, dword ptr [esp + 8] */ 8408 esi = POP32_VAL(esp); /* 0x4707299E: pop esi */ 8409 MEM32(FS_BASE + (0)) = ecx; /* 0x4707299F: mov dword ptr fs:[0], ecx */ 8410 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8411 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8412 esp = esp + 0x10u; /* 0x470729A6: add esp, 0x10 */ 8413 _flag_k = FK_ADD; 8414 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470729A9: ret */ 8415 RECOMP_REGS_OUT(); 8416 } 8417 8418 void sub_470729B0(void) { 8419 int _fpu_cmp = 0; 8420 uint32_t _cf = 0; 8421 int _df = 1; 8422 uint32_t _flag_k = FK_NONE; 8423 uint32_t _flag_a = 0, _flag_b = 0; 8424 uint32_t _itail_tgt = 0; 8425 RECOMP_REGS_LOCALS 8426 RECOMP_ENTER(0x470729B0u); 8427 8428 L_470729B0: 8429 eax = MEM32(FS_BASE + (0)); /* 0x470729B0: mov eax, dword ptr fs:[0] */ 8430 PUSH32(esp, 0xFFFFFFFFu); /* 0x470729B6: push -1 */ 8431 PUSH32(esp, 0x470A91FEu); /* 0x470729B8: push 0x470a91fe */ 8432 PUSH32(esp, eax); /* 0x470729BD: push eax */ 8433 eax = MEM32(0x4710ECA8); /* 0x470729BE: mov eax, dword ptr [0x4710eca8] */ 8434 MEM32(FS_BASE + (0)) = esp; /* 0x470729C3: mov dword ptr fs:[0], esp */ 8435 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8437 esp = esp - 0xCu; /* 0x470729CA: sub esp, 0xc */ 8438 _flag_k = FK_CMP; 8439 /* test eax, eax */ /* 0x470729CD: test eax, eax */ 8440 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8441 _cf = 0; 8442 _flag_k = FK_TEST; 8443 PUSH32(esp, ebp); /* 0x470729CF: push ebp */ 8444 PUSH32(esp, esi); /* 0x470729D0: push esi */ 8445 PUSH32(esp, edi); /* 0x470729D1: push edi */ 8446 if (TEST_NZ(_flag_a, _flag_b)) goto L_47072AD1; /* 0x470729D2: jne 0x47072ad1 */ 8447 L_470729D8: 8448 RECOMP_ICALL(0x47051F90u); /* 0x470729D8: call 0x47051f90 */ /* not lifted */ 8449 RECOMP_FLAGS_IN(); 8450 /* test eax, eax */ /* 0x470729DD: test eax, eax */ 8451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8452 _cf = 0; 8453 _flag_k = FK_TEST; 8454 if (TEST_NZ(_flag_a, _flag_b)) goto L_47072AEB; /* 0x470729DF: jne 0x47072aeb */ 8455 L_470729E5: 8456 RECOMP_ICALL(0x47051FB0u); /* 0x470729E5: call 0x47051fb0 */ /* not lifted */ 8457 RECOMP_FLAGS_IN(); 8458 /* test eax, eax */ /* 0x470729EA: test eax, eax */ 8459 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8460 _cf = 0; 8461 _flag_k = FK_TEST; 8462 if (TEST_NZ(_flag_a, _flag_b)) goto L_47072AEB; /* 0x470729EC: jne 0x47072aeb */ 8463 L_470729F2: 8464 PUSH32(esp, 0x4710ECA4u); /* 0x470729F2: push 0x4710eca4 */ 8465 RECOMP_ICALL(0x47052A60u); /* 0x470729F7: call 0x47052a60 */ /* not lifted */ 8466 RECOMP_FLAGS_IN(); 8467 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8469 esp = esp + 4; /* 0x470729FC: add esp, 4 */ 8470 _flag_k = FK_ADD; 8471 /* test eax, eax */ /* 0x470729FF: test eax, eax */ 8472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8473 _cf = 0; 8474 _flag_k = FK_TEST; 8475 if (TEST_Z(_flag_a, _flag_b)) goto L_47072A17; /* 0x47072A01: je 0x47072a17 */ 8476 L_47072A03: 8477 edi = POP32_VAL(esp); /* 0x47072A03: pop edi */ 8478 esi = POP32_VAL(esp); /* 0x47072A04: pop esi */ 8479 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8480 eax = 0; /* 0x47072A05: xor eax, eax */ 8481 _cf = 0; 8482 _flag_k = FK_TEST; 8483 ebp = POP32_VAL(esp); /* 0x47072A07: pop ebp */ 8484 ecx = MEM32(esp + 0xC); /* 0x47072A08: mov ecx, dword ptr [esp + 0xc] */ 8485 MEM32(FS_BASE + (0)) = ecx; /* 0x47072A0C: mov dword ptr fs:[0], ecx */ 8486 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8487 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8488 esp = esp + 0x18u; /* 0x47072A13: add esp, 0x18 */ 8489 _flag_k = FK_ADD; 8490 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47072A16: ret */ 8491 L_47072A17: 8492 ebp = MEM32(0x4710ECA4); /* 0x47072A17: mov ebp, dword ptr [0x4710eca4] */ 8493 PUSH32(esp, ebp); /* 0x47072A1D: push ebp */ 8494 MEM32(esp + 0x14) = ebp; /* 0x47072A1E: mov dword ptr [esp + 0x14], ebp */ 8495 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47072A22: call dword ptr [0x470ac180] */ 8496 RECOMP_FLAGS_IN(); 8497 MEM32(esp + 0x14) = 0; /* 0x47072A28: mov dword ptr [esp + 0x14], 0 */ 8498 eax = MEM32(0x4710ECA8); /* 0x47072A30: mov eax, dword ptr [0x4710eca8] */ 8499 /* test eax, eax */ /* 0x47072A35: test eax, eax */ 8500 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8501 _cf = 0; 8502 _flag_k = FK_TEST; 8503 MEM32(esp + 0x20) = 2; /* 0x47072A37: mov dword ptr [esp + 0x20], 2 */ 8504 if (TEST_NZ(_flag_a, _flag_b)) goto L_47072ACA; /* 0x47072A3F: jne 0x47072aca */ 8505 L_47072A45: 8506 PUSH32(esp, 0x2Cu); /* 0x47072A45: push 0x2c */ 8507 RECOMP_ICALL(0x470A33F2u); /* 0x47072A47: call 0x470a33f2 */ /* not lifted */ 8508 RECOMP_FLAGS_IN(); 8509 esi = eax; /* 0x47072A4C: mov esi, eax */ 8510 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8511 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8512 esp = esp + 4; /* 0x47072A4E: add esp, 4 */ 8513 _flag_k = FK_ADD; 8514 MEM32(esp + 0xC) = esi; /* 0x47072A51: mov dword ptr [esp + 0xc], esi */ 8515 /* test esi, esi */ /* 0x47072A55: test esi, esi */ 8516 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8517 _cf = 0; 8518 _flag_k = FK_TEST; 8519 if (TEST_Z(_flag_a, _flag_b)) goto L_47072A7E; /* 0x47072A57: je 0x47072a7e */ 8520 L_47072A59: 8521 MEM32(esi) = 0x470AC4F4u; /* 0x47072A59: mov dword ptr [esi], 0x470ac4f4 */ 8522 edi = esi + 0x4; /* 0x47072A5F: lea edi, [esi + 4] */ 8523 PUSH32(esp, 0); /* 0x47072A62: push 0 */ 8524 ecx = edi; /* 0x47072A64: mov ecx, edi */ 8525 MEM8(esp + 0x24) = (uint8_t)(4); /* 0x47072A66: mov byte ptr [esp + 0x24], 4 */ 8526 RECOMP_ICALL(0x47072B60u); /* 0x47072A6B: call 0x47072b60 */ /* not lifted */ 8527 RECOMP_FLAGS_IN(); 8528 MEM32(edi) = 0x470AED28u; /* 0x47072A70: mov dword ptr [edi], 0x470aed28 */ 8529 MEM32(esi) = 0x470AED38u; /* 0x47072A76: mov dword ptr [esi], 0x470aed38 */ 8530 goto L_47072A80; /* 0x47072A7C: jmp 0x47072a80 */ 8531 L_47072A7E: 8532 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8533 esi = 0; /* 0x47072A7E: xor esi, esi */ 8534 _cf = 0; 8535 _flag_k = FK_TEST; 8536 L_47072A80: 8537 /* test esi, esi */ /* 0x47072A80: test esi, esi */ 8538 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8539 _cf = 0; 8540 _flag_k = FK_TEST; 8541 MEM8(esp + 0x20) = (uint8_t)(2); /* 0x47072A82: mov byte ptr [esp + 0x20], 2 */ 8542 MEM32(0x4710ECA8) = esi; /* 0x47072A87: mov dword ptr [0x4710eca8], esi */ 8543 if (TEST_NZ(_flag_a, _flag_b)) goto L_47072AB6; /* 0x47072A8D: jne 0x47072ab6 */ 8544 L_47072A8F: 8545 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47072A8F: call dword ptr [0x470ac3c8] */ 8546 RECOMP_FLAGS_IN(); 8547 PUSH32(esp, ebp); /* 0x47072A95: push ebp */ 8548 MEM32(eax) = 0xCu; /* 0x47072A96: mov dword ptr [eax], 0xc */ 8549 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47072A9C: call dword ptr [0x470ac190] */ 8550 RECOMP_FLAGS_IN(); 8551 edi = POP32_VAL(esp); /* 0x47072AA2: pop edi */ 8552 esi = POP32_VAL(esp); /* 0x47072AA3: pop esi */ 8553 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8554 eax = 0; /* 0x47072AA4: xor eax, eax */ 8555 _cf = 0; 8556 _flag_k = FK_TEST; 8557 ebp = POP32_VAL(esp); /* 0x47072AA6: pop ebp */ 8558 ecx = MEM32(esp + 0xC); /* 0x47072AA7: mov ecx, dword ptr [esp + 0xc] */ 8559 MEM32(FS_BASE + (0)) = ecx; /* 0x47072AAB: mov dword ptr fs:[0], ecx */ 8560 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8562 esp = esp + 0x18u; /* 0x47072AB2: add esp, 0x18 */ 8563 _flag_k = FK_ADD; 8564 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47072AB5: ret */ 8565 L_47072AB6: 8566 PUSH32(esp, 0); /* 0x47072AB6: push 0 */ 8567 PUSH32(esp, 0x47055D30u); /* 0x47072AB8: push 0x47055d30 */ 8568 PUSH32(esp, esi); /* 0x47072ABD: push esi */ 8569 RECOMP_ICALL(0x470527D0u); /* 0x47072ABE: call 0x470527d0 */ /* not lifted */ 8570 RECOMP_FLAGS_IN(); 8571 ecx = eax; /* 0x47072AC3: mov ecx, eax */ 8572 RECOMP_ICALL(0x470528D0u); /* 0x47072AC5: call 0x470528d0 */ /* not lifted */ 8573 RECOMP_FLAGS_IN(); 8574 L_47072ACA: 8575 PUSH32(esp, ebp); /* 0x47072ACA: push ebp */ 8576 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47072ACB: call dword ptr [0x470ac190] */ 8577 RECOMP_FLAGS_IN(); 8578 L_47072AD1: 8579 eax = MEM32(0x4710ECA8); /* 0x47072AD1: mov eax, dword ptr [0x4710eca8] */ 8580 edi = POP32_VAL(esp); /* 0x47072AD6: pop edi */ 8581 esi = POP32_VAL(esp); /* 0x47072AD7: pop esi */ 8582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 8583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8584 eax = eax + 4; /* 0x47072AD8: add eax, 4 */ 8585 _flag_k = FK_ADD; 8586 ebp = POP32_VAL(esp); /* 0x47072ADB: pop ebp */ 8587 ecx = MEM32(esp + 0xC); /* 0x47072ADC: mov ecx, dword ptr [esp + 0xc] */ 8588 MEM32(FS_BASE + (0)) = ecx; /* 0x47072AE0: mov dword ptr fs:[0], ecx */ 8589 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8590 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8591 esp = esp + 0x18u; /* 0x47072AE7: add esp, 0x18 */ 8592 _flag_k = FK_ADD; 8593 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47072AEA: ret */ 8594 L_47072AEB: 8595 PUSH32(esp, 0x2Cu); /* 0x47072AEB: push 0x2c */ 8596 RECOMP_ICALL(0x470A33F2u); /* 0x47072AED: call 0x470a33f2 */ /* not lifted */ 8597 RECOMP_FLAGS_IN(); 8598 esi = eax; /* 0x47072AF2: mov esi, eax */ 8599 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8600 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8601 esp = esp + 4; /* 0x47072AF4: add esp, 4 */ 8602 _flag_k = FK_ADD; 8603 MEM32(esp + 0xC) = esi; /* 0x47072AF7: mov dword ptr [esp + 0xc], esi */ 8604 /* test esi, esi */ /* 0x47072AFB: test esi, esi */ 8605 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8606 _cf = 0; 8607 _flag_k = FK_TEST; 8608 MEM32(esp + 0x20) = 0; /* 0x47072AFD: mov dword ptr [esp + 0x20], 0 */ 8609 if (TEST_Z(_flag_a, _flag_b)) goto L_47072B2C; /* 0x47072B05: je 0x47072b2c */ 8610 L_47072B07: 8611 MEM32(esi) = 0x470AC4F4u; /* 0x47072B07: mov dword ptr [esi], 0x470ac4f4 */ 8612 edi = esi + 0x4; /* 0x47072B0D: lea edi, [esi + 4] */ 8613 PUSH32(esp, 0); /* 0x47072B10: push 0 */ 8614 ecx = edi; /* 0x47072B12: mov ecx, edi */ 8615 MEM8(esp + 0x24) = (uint8_t)(1); /* 0x47072B14: mov byte ptr [esp + 0x24], 1 */ 8616 RECOMP_ICALL(0x47072B60u); /* 0x47072B19: call 0x47072b60 */ /* not lifted */ 8617 RECOMP_FLAGS_IN(); 8618 MEM32(edi) = 0x470AED28u; /* 0x47072B1E: mov dword ptr [edi], 0x470aed28 */ 8619 MEM32(esi) = 0x470AED38u; /* 0x47072B24: mov dword ptr [esi], 0x470aed38 */ 8620 goto L_47072B2E; /* 0x47072B2A: jmp 0x47072b2e */ 8621 L_47072B2C: 8622 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8623 esi = 0; /* 0x47072B2C: xor esi, esi */ 8624 _cf = 0; 8625 _flag_k = FK_TEST; 8626 L_47072B2E: 8627 /* test esi, esi */ /* 0x47072B2E: test esi, esi */ 8628 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8629 _cf = 0; 8630 _flag_k = FK_TEST; 8631 MEM32(0x4710ECA8) = esi; /* 0x47072B30: mov dword ptr [0x4710eca8], esi */ 8632 RECOMP_BACKEDGE(); 8633 if (TEST_NZ(_flag_a, _flag_b)) goto L_47072AD1; /* 0x47072B36: jne 0x47072ad1 */ 8634 L_47072B38: 8635 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47072B38: call dword ptr [0x470ac3c8] */ 8636 RECOMP_FLAGS_IN(); 8637 ecx = MEM32(esp + 0x18); /* 0x47072B3E: mov ecx, dword ptr [esp + 0x18] */ 8638 edi = POP32_VAL(esp); /* 0x47072B42: pop edi */ 8639 MEM32(eax) = 0xCu; /* 0x47072B43: mov dword ptr [eax], 0xc */ 8640 esi = POP32_VAL(esp); /* 0x47072B49: pop esi */ 8641 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8642 eax = 0; /* 0x47072B4A: xor eax, eax */ 8643 _cf = 0; 8644 _flag_k = FK_TEST; 8645 ebp = POP32_VAL(esp); /* 0x47072B4C: pop ebp */ 8646 MEM32(FS_BASE + (0)) = ecx; /* 0x47072B4D: mov dword ptr fs:[0], ecx */ 8647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8648 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8649 esp = esp + 0x18u; /* 0x47072B54: add esp, 0x18 */ 8650 _flag_k = FK_ADD; 8651 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47072B57: ret */ 8652 RECOMP_REGS_OUT(); 8653 } 8654 8655 void sub_47072B60(void) { 8656 int _fpu_cmp = 0; 8657 uint32_t _cf = 0; 8658 int _df = 1; 8659 uint32_t _flag_k = FK_NONE; 8660 uint32_t _flag_a = 0, _flag_b = 0; 8661 uint32_t _itail_tgt = 0; 8662 RECOMP_REGS_LOCALS 8663 RECOMP_ENTER(0x47072B60u); 8664 8665 L_47072B60: 8666 PUSH32(esp, 0xFFFFFFFFu); /* 0x47072B60: push -1 */ 8667 PUSH32(esp, 0x470A922Bu); /* 0x47072B62: push 0x470a922b */ 8668 eax = MEM32(FS_BASE + (0)); /* 0x47072B67: mov eax, dword ptr fs:[0] */ 8669 PUSH32(esp, eax); /* 0x47072B6D: push eax */ 8670 MEM32(FS_BASE + (0)) = esp; /* 0x47072B6E: mov dword ptr fs:[0], esp */ 8671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8673 esp = esp - 0xCu; /* 0x47072B75: sub esp, 0xc */ 8674 _flag_k = FK_CMP; 8675 PUSH32(esp, ebx); /* 0x47072B78: push ebx */ 8676 PUSH32(esp, ebp); /* 0x47072B79: push ebp */ 8677 PUSH32(esp, esi); /* 0x47072B7A: push esi */ 8678 PUSH32(esp, edi); /* 0x47072B7B: push edi */ 8679 esi = ecx; /* 0x47072B7C: mov esi, ecx */ 8680 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8681 ebx = 0; /* 0x47072B7E: xor ebx, ebx */ 8682 _cf = 0; 8683 _flag_k = FK_TEST; 8684 PUSH32(esp, ebx); /* 0x47072B80: push ebx */ 8685 edi = esi + 0x4; /* 0x47072B81: lea edi, [esi + 4] */ 8686 PUSH32(esp, ebx); /* 0x47072B84: push ebx */ 8687 ecx = edi; /* 0x47072B85: mov ecx, edi */ 8688 MEM32(esp + 0x18) = esi; /* 0x47072B87: mov dword ptr [esp + 0x18], esi */ 8689 RECOMP_ICALL(0x47087E50u); /* 0x47072B8B: call 0x47087e50 */ /* not lifted */ 8690 RECOMP_FLAGS_IN(); 8691 MEM32(esi + 0x20) = ebx; /* 0x47072B90: mov dword ptr [esi + 0x20], ebx */ 8692 eax = MEM32(0x4710E904); /* 0x47072B93: mov eax, dword ptr [0x4710e904] */ 8693 ebp = esi + 0x24; /* 0x47072B98: lea ebp, [esi + 0x24] */ 8694 MEM32(ebp) = eax; /* 0x47072B9B: mov dword ptr [ebp], eax */ 8695 /* cmp MEM32(esp + 0x2C), ebx */ /* 0x47072B9E: cmp dword ptr [esp + 0x2c], ebx */ 8696 _flag_a = (uint32_t)(MEM32(esp + 0x2C)); _flag_b = (uint32_t)(ebx); 8697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8698 _flag_k = FK_CMP; 8699 MEM32(esp + 0x24) = ebx; /* 0x47072BA2: mov dword ptr [esp + 0x24], ebx */ 8700 MEM32(esi) = 0x470AED30u; /* 0x47072BA6: mov dword ptr [esi], 0x470aed30 */ 8701 if (CMP_EQ(_flag_a, _flag_b)) goto L_47072C84; /* 0x47072BAC: je 0x47072c84 */ 8702 L_47072BB2: 8703 PUSH32(esp, edi); /* 0x47072BB2: push edi */ 8704 MEM32(esp + 0x18) = edi; /* 0x47072BB3: mov dword ptr [esp + 0x18], edi */ 8705 MEM32(esp + 0x1C) = ebx; /* 0x47072BB7: mov dword ptr [esp + 0x1c], ebx */ 8706 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47072BBB: call dword ptr [0x470ac180] */ 8707 RECOMP_FLAGS_IN(); 8708 MEM32(esp + 0x18) = ebx; /* 0x47072BC1: mov dword ptr [esp + 0x18], ebx */ 8709 /* cmp MEM32(esi + 0x20), ebx */ /* 0x47072BC5: cmp dword ptr [esi + 0x20], ebx */ 8710 _flag_a = (uint32_t)(MEM32(esi + 0x20)); _flag_b = (uint32_t)(ebx); 8711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8712 _flag_k = FK_CMP; 8713 MEM8(esp + 0x24) = (uint8_t)(1); /* 0x47072BC8: mov byte ptr [esp + 0x24], 1 */ 8714 if (CMP_NE(_flag_a, _flag_b)) goto L_47072C9B; /* 0x47072BCD: jne 0x47072c9b */ 8715 L_47072BD3: 8716 PUSH32(esp, esi); /* 0x47072BD3: push esi */ 8717 PUSH32(esp, 0x47072F30u); /* 0x47072BD4: push 0x47072f30 */ 8718 PUSH32(esp, ebp); /* 0x47072BD9: push ebp */ 8719 RECOMP_ICALL(0x47056190u); /* 0x47072BDA: call 0x47056190 */ /* not lifted */ 8720 RECOMP_FLAGS_IN(); 8721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8722 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8723 esp = esp + 0xCu; /* 0x47072BDF: add esp, 0xc */ 8724 _flag_k = FK_ADD; 8725 /* test eax, eax */ /* 0x47072BE2: test eax, eax */ 8726 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8727 _cf = 0; 8728 _flag_k = FK_TEST; 8729 if (TEST_Z(_flag_a, _flag_b)) goto L_47072BF8; /* 0x47072BE4: je 0x47072bf8 */ 8730 L_47072BE6: 8731 ecx = esp + 0x14; /* 0x47072BE6: lea ecx, [esp + 0x14] */ 8732 MEM8(esp + 0x24) = (uint8_t)(LO8(ebx)); /* 0x47072BEA: mov byte ptr [esp + 0x24], bl */ 8733 RECOMP_ICALL(0x470559D0u); /* 0x47072BEE: call 0x470559d0 */ /* not lifted */ 8734 RECOMP_FLAGS_IN(); 8735 goto L_47072CAE; /* 0x47072BF3: jmp 0x47072cae */ 8736 L_47072BF8: 8737 ecx = esp + 0x14; /* 0x47072BF8: lea ecx, [esp + 0x14] */ 8738 MEM32(esi + 0x20) = 1; /* 0x47072BFC: mov dword ptr [esi + 0x20], 1 */ 8739 MEM8(esp + 0x24) = (uint8_t)(LO8(ebx)); /* 0x47072C03: mov byte ptr [esp + 0x24], bl */ 8740 RECOMP_ICALL(0x470559D0u); /* 0x47072C07: call 0x470559d0 */ /* not lifted */ 8741 RECOMP_FLAGS_IN(); 8742 eax = MEM32(esp + 0x2C); /* 0x47072C0C: mov eax, dword ptr [esp + 0x2c] */ 8743 ebp = MEM32(ebp); /* 0x47072C10: mov ebp, dword ptr [ebp] */ 8744 PUSH32(esp, eax); /* 0x47072C13: push eax */ 8745 PUSH32(esp, ebp); /* 0x47072C14: push ebp */ 8746 RECOMP_ICALL(0x47056110u); /* 0x47072C15: call 0x47056110 */ /* not lifted */ 8747 RECOMP_FLAGS_IN(); 8748 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8749 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8750 esp = esp + 8; /* 0x47072C1A: add esp, 8 */ 8751 _flag_k = FK_ADD; 8752 /* test eax, eax */ /* 0x47072C1D: test eax, eax */ 8753 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8754 _cf = 0; 8755 _flag_k = FK_TEST; 8756 if (TEST_Z(_flag_a, _flag_b)) goto L_47072C84; /* 0x47072C1F: je 0x47072c84 */ 8757 L_47072C21: 8758 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47072C21: call dword ptr [0x470ac150] */ 8759 RECOMP_FLAGS_IN(); 8760 edi = eax; /* 0x47072C27: mov edi, eax */ 8761 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47072C29: call dword ptr [0x470ac3c8] */ 8762 RECOMP_FLAGS_IN(); 8763 eax = MEM32(eax); /* 0x47072C2F: mov eax, dword ptr [eax] */ 8764 /* cmp eax, ebx */ /* 0x47072C31: cmp eax, ebx */ 8765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8767 _flag_k = FK_CMP; 8768 ebx = edi; /* 0x47072C33: mov ebx, edi */ 8769 if (CMP_EQ(_flag_a, _flag_b)) goto L_47072C39; /* 0x47072C35: je 0x47072c39 */ 8770 L_47072C37: 8771 ebx = eax; /* 0x47072C37: mov ebx, eax */ 8772 L_47072C39: 8773 RECOMP_ICALL(0x47039020u); /* 0x47072C39: call 0x47039020 */ /* not lifted */ 8774 RECOMP_FLAGS_IN(); 8775 edi = eax; /* 0x47072C3E: mov edi, eax */ 8776 ecx = edi; /* 0x47072C40: mov ecx, edi */ 8777 RECOMP_ICALL(0x4703B210u); /* 0x47072C42: call 0x4703b210 */ /* not lifted */ 8778 RECOMP_FLAGS_IN(); 8779 PUSH32(esp, eax); /* 0x47072C47: push eax */ 8780 ecx = edi; /* 0x47072C48: mov ecx, edi */ 8781 RECOMP_ICALL(0x4703B240u); /* 0x47072C4A: call 0x4703b240 */ /* not lifted */ 8782 RECOMP_FLAGS_IN(); 8783 PUSH32(esp, eax); /* 0x47072C4F: push eax */ 8784 ecx = edi; /* 0x47072C50: mov ecx, edi */ 8785 RECOMP_ICALL(0x4703B080u); /* 0x47072C52: call 0x4703b080 */ /* not lifted */ 8786 RECOMP_FLAGS_IN(); 8787 PUSH32(esp, eax); /* 0x47072C57: push eax */ 8788 PUSH32(esp, ebx); /* 0x47072C58: push ebx */ 8789 PUSH32(esp, 0xFFFFFFFFu); /* 0x47072C59: push -1 */ 8790 PUSH32(esp, 0x1C1u); /* 0x47072C5B: push 0x1c1 */ 8791 PUSH32(esp, 0x47105FB8u); /* 0x47072C60: push 0x47105fb8 */ 8792 ecx = edi; /* 0x47072C65: mov ecx, edi */ 8793 RECOMP_ICALL(0x4703A340u); /* 0x47072C67: call 0x4703a340 */ /* not lifted */ 8794 RECOMP_FLAGS_IN(); 8795 PUSH32(esp, 0x47105F94u); /* 0x47072C6C: push 0x47105f94 */ 8796 PUSH32(esp, 0x471055F0u); /* 0x47072C71: push 0x471055f0 */ 8797 PUSH32(esp, 0x80u); /* 0x47072C76: push 0x80 */ 8798 PUSH32(esp, edi); /* 0x47072C7B: push edi */ 8799 RECOMP_ICALL(0x47039830u); /* 0x47072C7C: call 0x47039830 */ /* not lifted */ 8800 RECOMP_FLAGS_IN(); 8801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8803 esp = esp + 0x10u; /* 0x47072C81: add esp, 0x10 */ 8804 _flag_k = FK_ADD; 8805 L_47072C84: 8806 ecx = MEM32(esp + 0x1C); /* 0x47072C84: mov ecx, dword ptr [esp + 0x1c] */ 8807 edi = POP32_VAL(esp); /* 0x47072C88: pop edi */ 8808 eax = esi; /* 0x47072C89: mov eax, esi */ 8809 esi = POP32_VAL(esp); /* 0x47072C8B: pop esi */ 8810 ebp = POP32_VAL(esp); /* 0x47072C8C: pop ebp */ 8811 ebx = POP32_VAL(esp); /* 0x47072C8D: pop ebx */ 8812 MEM32(FS_BASE + (0)) = ecx; /* 0x47072C8E: mov dword ptr fs:[0], ecx */ 8813 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8815 esp = esp + 0x18u; /* 0x47072C95: add esp, 0x18 */ 8816 _flag_k = FK_ADD; 8817 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47072C98: ret 4 */ 8818 L_47072C9B: 8819 ecx = MEM32(esp + 0x14); /* 0x47072C9B: mov ecx, dword ptr [esp + 0x14] */ 8820 PUSH32(esp, ecx); /* 0x47072C9F: push ecx */ 8821 MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47072CA0: mov dword ptr [esp + 0x1c], 0xffffffff */ 8822 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47072CA8: call dword ptr [0x470ac190] */ 8823 RECOMP_FLAGS_IN(); 8824 L_47072CAE: 8825 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47072CAE: call dword ptr [0x470ac3c8] */ 8826 RECOMP_FLAGS_IN(); 8827 edi = eax; /* 0x47072CB4: mov edi, eax */ 8828 ebx = MEM32(edi); /* 0x47072CB6: mov ebx, dword ptr [edi] */ 8829 MEM32(esp + 0x14) = edi; /* 0x47072CB8: mov dword ptr [esp + 0x14], edi */ 8830 MEM32(esp + 0x18) = ebx; /* 0x47072CBC: mov dword ptr [esp + 0x18], ebx */ 8831 edx = MEM32(0x470AC320); /* 0x47072CC0: mov edx, dword ptr [0x470ac320] */ 8832 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u); 8833 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8834 edx = edx + 0x40u; /* 0x47072CC6: add edx, 0x40 */ 8835 _flag_k = FK_ADD; 8836 PUSH32(esp, 0x47105F74u); /* 0x47072CC9: push 0x47105f74 */ 8837 PUSH32(esp, edx); /* 0x47072CCE: push edx */ 8838 MEM8(esp + 0x2C) = (uint8_t)(2); /* 0x47072CCF: mov byte ptr [esp + 0x2c], 2 */ 8839 RECOMP_ICALL(0x47054F80u); /* 0x47072CD4: call 0x47054f80 */ /* not lifted */ 8840 RECOMP_FLAGS_IN(); 8841 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8843 esp = esp + 8; /* 0x47072CD9: add esp, 8 */ 8844 _flag_k = FK_ADD; 8845 MEM32(edi) = ebx; /* 0x47072CDC: mov dword ptr [edi], ebx */ 8846 RECOMP_BACKEDGE(); 8847 goto L_47072C84; /* 0x47072CDE: jmp 0x47072c84 */ 8848 { RECOMP_REGS_OUT(); return; } /* end of function */ 8849 RECOMP_REGS_OUT(); 8850 } 8851 8852 void sub_47072C84(void) { 8853 int _fpu_cmp = 0; 8854 uint32_t _cf = 0; 8855 int _df = 1; 8856 uint32_t _flag_k = FK_NONE; 8857 uint32_t _flag_a = 0, _flag_b = 0; 8858 uint32_t _itail_tgt = 0; 8859 RECOMP_REGS_LOCALS 8860 RECOMP_ENTER(0x47072C84u); 8861 8862 L_47072C84: 8863 ecx = MEM32(esp + 0x1C); /* 0x47072C84: mov ecx, dword ptr [esp + 0x1c] */ 8864 edi = POP32_VAL(esp); /* 0x47072C88: pop edi */ 8865 eax = esi; /* 0x47072C89: mov eax, esi */ 8866 esi = POP32_VAL(esp); /* 0x47072C8B: pop esi */ 8867 ebp = POP32_VAL(esp); /* 0x47072C8C: pop ebp */ 8868 ebx = POP32_VAL(esp); /* 0x47072C8D: pop ebx */ 8869 MEM32(FS_BASE + (0)) = ecx; /* 0x47072C8E: mov dword ptr fs:[0], ecx */ 8870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8872 esp = esp + 0x18u; /* 0x47072C95: add esp, 0x18 */ 8873 _flag_k = FK_ADD; 8874 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47072C98: ret 4 */ 8875 RECOMP_REGS_OUT(); 8876 } 8877 8878 void sub_47072CAE(void) { 8879 int _fpu_cmp = 0; 8880 uint32_t _cf = 0; 8881 int _df = 1; 8882 uint32_t _flag_k = FK_NONE; 8883 uint32_t _flag_a = 0, _flag_b = 0; 8884 uint32_t _itail_tgt = 0; 8885 RECOMP_REGS_LOCALS 8886 RECOMP_ENTER(0x47072CAEu); 8887 8888 goto L_47072CAE; 8889 L_47072C84: 8890 ecx = MEM32(esp + 0x1C); /* 0x47072C84: mov ecx, dword ptr [esp + 0x1c] */ 8891 edi = POP32_VAL(esp); /* 0x47072C88: pop edi */ 8892 eax = esi; /* 0x47072C89: mov eax, esi */ 8893 esi = POP32_VAL(esp); /* 0x47072C8B: pop esi */ 8894 ebp = POP32_VAL(esp); /* 0x47072C8C: pop ebp */ 8895 ebx = POP32_VAL(esp); /* 0x47072C8D: pop ebx */ 8896 MEM32(FS_BASE + (0)) = ecx; /* 0x47072C8E: mov dword ptr fs:[0], ecx */ 8897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8899 esp = esp + 0x18u; /* 0x47072C95: add esp, 0x18 */ 8900 _flag_k = FK_ADD; 8901 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47072C98: ret 4 */ 8902 L_47072CAE: 8903 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47072CAE: call dword ptr [0x470ac3c8] */ 8904 RECOMP_FLAGS_IN(); 8905 edi = eax; /* 0x47072CB4: mov edi, eax */ 8906 ebx = MEM32(edi); /* 0x47072CB6: mov ebx, dword ptr [edi] */ 8907 MEM32(esp + 0x14) = edi; /* 0x47072CB8: mov dword ptr [esp + 0x14], edi */ 8908 MEM32(esp + 0x18) = ebx; /* 0x47072CBC: mov dword ptr [esp + 0x18], ebx */ 8909 edx = MEM32(0x470AC320); /* 0x47072CC0: mov edx, dword ptr [0x470ac320] */ 8910 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x40u); 8911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8912 edx = edx + 0x40u; /* 0x47072CC6: add edx, 0x40 */ 8913 _flag_k = FK_ADD; 8914 PUSH32(esp, 0x47105F74u); /* 0x47072CC9: push 0x47105f74 */ 8915 PUSH32(esp, edx); /* 0x47072CCE: push edx */ 8916 MEM8(esp + 0x2C) = (uint8_t)(2); /* 0x47072CCF: mov byte ptr [esp + 0x2c], 2 */ 8917 RECOMP_ICALL(0x47054F80u); /* 0x47072CD4: call 0x47054f80 */ /* not lifted */ 8918 RECOMP_FLAGS_IN(); 8919 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8920 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8921 esp = esp + 8; /* 0x47072CD9: add esp, 8 */ 8922 _flag_k = FK_ADD; 8923 MEM32(edi) = ebx; /* 0x47072CDC: mov dword ptr [edi], ebx */ 8924 RECOMP_BACKEDGE(); 8925 goto L_47072C84; /* 0x47072CDE: jmp 0x47072c84 */ 8926 { RECOMP_REGS_OUT(); return; } /* end of function */ 8927 RECOMP_REGS_OUT(); 8928 } 8929 8930 void sub_47072CE0(void) { 8931 int _fpu_cmp = 0; 8932 uint32_t _cf = 0; 8933 int _df = 1; 8934 uint32_t _flag_k = FK_NONE; 8935 uint32_t _flag_a = 0, _flag_b = 0; 8936 uint32_t _itail_tgt = 0; 8937 RECOMP_REGS_LOCALS 8938 RECOMP_ENTER(0x47072CE0u); 8939 8940 L_47072CE0: 8941 /* test ecx, ecx */ /* 0x47072CE0: test ecx, ecx */ 8942 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8943 _cf = 0; 8944 _flag_k = FK_TEST; 8945 if (TEST_Z(_flag_a, _flag_b)) goto L_47072CEA; /* 0x47072CE2: je 0x47072cea */ 8946 L_47072CE4: 8947 eax = MEM32(ecx); /* 0x47072CE4: mov eax, dword ptr [ecx] */ 8948 PUSH32(esp, 1); /* 0x47072CE6: push 1 */ 8949 RECOMP_ICALL(MEM32(eax)); /* 0x47072CE8: call dword ptr [eax] */ 8950 RECOMP_FLAGS_IN(); 8951 L_47072CEA: 8952 MEM32(0x4710ECA8) = 0; /* 0x47072CEA: mov dword ptr [0x4710eca8], 0 */ 8953 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47072CF4: ret 4 */ 8954 RECOMP_REGS_OUT(); 8955 } 8956 8957 void sub_47072D00(void) { 8958 int _fpu_cmp = 0; 8959 uint32_t _cf = 0; 8960 int _df = 1; 8961 uint32_t _flag_k = FK_NONE; 8962 uint32_t _flag_a = 0, _flag_b = 0; 8963 uint32_t _itail_tgt = 0; 8964 RECOMP_REGS_LOCALS 8965 RECOMP_ENTER(0x47072D00u); 8966 8967 L_47072D00: 8968 PUSH32(esp, esi); /* 0x47072D00: push esi */ 8969 esi = ecx; /* 0x47072D01: mov esi, ecx */ 8970 RECOMP_ICALL(0x47072D20u); /* 0x47072D03: call 0x47072d20 */ /* not lifted */ 8971 RECOMP_FLAGS_IN(); 8972 /* test MEM8(esp + 0x8), 1 */ /* 0x47072D08: test byte ptr [esp + 8], 1 */ 8973 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8974 _cf = 0; 8975 _flag_k = FK_NARROW(FK_TEST, 24); 8976 if (TEST_Z(_flag_a, _flag_b)) goto L_47072D18; /* 0x47072D0D: je 0x47072d18 */ 8977 L_47072D0F: 8978 PUSH32(esp, esi); /* 0x47072D0F: push esi */ 8979 RECOMP_ICALL(0x470A32A2u); /* 0x47072D10: call 0x470a32a2 */ /* not lifted */ 8980 RECOMP_FLAGS_IN(); 8981 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8983 esp = esp + 4; /* 0x47072D15: add esp, 4 */ 8984 _flag_k = FK_ADD; 8985 L_47072D18: 8986 eax = esi; /* 0x47072D18: mov eax, esi */ 8987 esi = POP32_VAL(esp); /* 0x47072D1A: pop esi */ 8988 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47072D1B: ret 4 */ 8989 RECOMP_REGS_OUT(); 8990 } 8991 8992 void sub_47072D20(void) { 8993 int _fpu_cmp = 0; 8994 uint32_t _cf = 0; 8995 int _df = 1; 8996 uint32_t _flag_k = FK_NONE; 8997 uint32_t _flag_a = 0, _flag_b = 0; 8998 uint32_t _itail_tgt = 0; 8999 RECOMP_REGS_LOCALS 9000 RECOMP_ENTER(0x47072D20u); 9001 9002 L_47072D20: 9003 PUSH32(esp, 0xFFFFFFFFu); /* 0x47072D20: push -1 */ 9004 PUSH32(esp, 0x470A924Bu); /* 0x47072D22: push 0x470a924b */ 9005 eax = MEM32(FS_BASE + (0)); /* 0x47072D27: mov eax, dword ptr fs:[0] */ 9006 PUSH32(esp, eax); /* 0x47072D2D: push eax */ 9007 MEM32(FS_BASE + (0)) = esp; /* 0x47072D2E: mov dword ptr fs:[0], esp */ 9008 PUSH32(esp, ecx); /* 0x47072D35: push ecx */ 9009 PUSH32(esp, esi); /* 0x47072D36: push esi */ 9010 esi = ecx; /* 0x47072D37: mov esi, ecx */ 9011 MEM32(esp + 0x4) = esi; /* 0x47072D39: mov dword ptr [esp + 4], esi */ 9012 MEM32(esi) = 0x470AED30u; /* 0x47072D3D: mov dword ptr [esi], 0x470aed30 */ 9013 PUSH32(esp, esi); /* 0x47072D43: push esi */ 9014 MEM32(esp + 0x14) = 0; /* 0x47072D44: mov dword ptr [esp + 0x14], 0 */ 9015 RECOMP_ICALL(0x470562A0u); /* 0x47072D4C: call 0x470562a0 */ /* not lifted */ 9016 RECOMP_FLAGS_IN(); 9017 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9019 esp = esp + 4; /* 0x47072D51: add esp, 4 */ 9020 _flag_k = FK_ADD; 9021 ecx = esi + 0x4; /* 0x47072D54: lea ecx, [esi + 4] */ 9022 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47072D57: mov dword ptr [esp + 0x10], 0xffffffff */ 9023 RECOMP_ICALL(0x47087E30u); /* 0x47072D5F: call 0x47087e30 */ /* not lifted */ 9024 RECOMP_FLAGS_IN(); 9025 ecx = MEM32(esp + 0x8); /* 0x47072D64: mov ecx, dword ptr [esp + 8] */ 9026 esi = POP32_VAL(esp); /* 0x47072D68: pop esi */ 9027 MEM32(FS_BASE + (0)) = ecx; /* 0x47072D69: mov dword ptr fs:[0], ecx */ 9028 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9030 esp = esp + 0x10u; /* 0x47072D70: add esp, 0x10 */ 9031 _flag_k = FK_ADD; 9032 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47072D73: ret */ 9033 RECOMP_REGS_OUT(); 9034 }