client/vendor/ace/source/lifted-0009.c (172919B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_470101F0(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(0x470101F0u); 13 14 L_470101F0: 15 eax = MEM32(ecx); /* 0x470101F0: mov eax, dword ptr [ecx] */ 16 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470101F2: call dword ptr [eax + 0x104] */ 17 RECOMP_FLAGS_IN(); 18 ecx = MEM32(esp + 0x8); /* 0x470101F8: mov ecx, dword ptr [esp + 8] */ 19 edx = MEM32(eax); /* 0x470101FC: mov edx, dword ptr [eax] */ 20 PUSH32(esp, ecx); /* 0x470101FE: push ecx */ 21 ecx = MEM32(esp + 0x8); /* 0x470101FF: mov ecx, dword ptr [esp + 8] */ 22 PUSH32(esp, ecx); /* 0x47010203: push ecx */ 23 ecx = eax; /* 0x47010204: mov ecx, eax */ 24 RECOMP_ICALL(MEM32(edx + 0xB4)); /* 0x47010206: call dword ptr [edx + 0xb4] */ 25 RECOMP_FLAGS_IN(); 26 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4701020C: ret 8 */ 27 RECOMP_REGS_OUT(); 28 } 29 30 void sub_47010210(void) { 31 int _fpu_cmp = 0; 32 uint32_t _cf = 0; 33 int _df = 1; 34 uint32_t _flag_k = FK_NONE; 35 uint32_t _flag_a = 0, _flag_b = 0; 36 uint32_t _itail_tgt = 0; 37 RECOMP_REGS_LOCALS 38 RECOMP_ENTER(0x47010210u); 39 40 L_47010210: 41 eax = MEM32(ecx); /* 0x47010210: mov eax, dword ptr [ecx] */ 42 L_47010212: 43 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010212: call dword ptr [eax + 0x104] */ 44 RECOMP_FLAGS_IN(); 45 L_47010218: 46 edx = MEM32(eax); /* 0x47010218: mov edx, dword ptr [eax] */ 47 L_4701021A: 48 ecx = eax; /* 0x4701021A: mov ecx, eax */ 49 L_4701021C: 50 { _itail_tgt = (uint32_t)(MEM32(edx + 0xBC)); goto _ljump; } 51 { RECOMP_REGS_OUT(); return; } /* end of function */ 52 _ljump: 53 switch (_itail_tgt) { 54 case 0x47010210u: goto L_47010210; 55 case 0x47010212u: goto L_47010212; 56 case 0x47010218u: goto L_47010218; 57 case 0x4701021Au: goto L_4701021A; 58 case 0x4701021Cu: goto L_4701021C; 59 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 60 } 61 RECOMP_REGS_OUT(); 62 } 63 64 void sub_47010230(void) { 65 int _fpu_cmp = 0; 66 uint32_t _cf = 0; 67 int _df = 1; 68 uint32_t _flag_k = FK_NONE; 69 uint32_t _flag_a = 0, _flag_b = 0; 70 uint32_t _itail_tgt = 0; 71 RECOMP_REGS_LOCALS 72 RECOMP_ENTER(0x47010230u); 73 74 L_47010230: 75 eax = MEM32(ecx); /* 0x47010230: mov eax, dword ptr [ecx] */ 76 L_47010232: 77 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010232: call dword ptr [eax + 0x104] */ 78 RECOMP_FLAGS_IN(); 79 L_47010238: 80 edx = MEM32(eax); /* 0x47010238: mov edx, dword ptr [eax] */ 81 L_4701023A: 82 ecx = eax; /* 0x4701023A: mov ecx, eax */ 83 L_4701023C: 84 { _itail_tgt = (uint32_t)(MEM32(edx + 0xC4)); goto _ljump; } 85 { RECOMP_REGS_OUT(); return; } /* end of function */ 86 _ljump: 87 switch (_itail_tgt) { 88 case 0x47010230u: goto L_47010230; 89 case 0x47010232u: goto L_47010232; 90 case 0x47010238u: goto L_47010238; 91 case 0x4701023Au: goto L_4701023A; 92 case 0x4701023Cu: goto L_4701023C; 93 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 94 } 95 RECOMP_REGS_OUT(); 96 } 97 98 void sub_47010250(void) { 99 int _fpu_cmp = 0; 100 uint32_t _cf = 0; 101 int _df = 1; 102 uint32_t _flag_k = FK_NONE; 103 uint32_t _flag_a = 0, _flag_b = 0; 104 uint32_t _itail_tgt = 0; 105 RECOMP_REGS_LOCALS 106 RECOMP_ENTER(0x47010250u); 107 108 L_47010250: 109 eax = MEM32(ecx); /* 0x47010250: mov eax, dword ptr [ecx] */ 110 L_47010252: 111 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010252: call dword ptr [eax + 0x104] */ 112 RECOMP_FLAGS_IN(); 113 L_47010258: 114 edx = MEM32(eax); /* 0x47010258: mov edx, dword ptr [eax] */ 115 L_4701025A: 116 ecx = eax; /* 0x4701025A: mov ecx, eax */ 117 L_4701025C: 118 { _itail_tgt = (uint32_t)(MEM32(edx + 0xC8)); goto _ljump; } 119 { RECOMP_REGS_OUT(); return; } /* end of function */ 120 _ljump: 121 switch (_itail_tgt) { 122 case 0x47010250u: goto L_47010250; 123 case 0x47010252u: goto L_47010252; 124 case 0x47010258u: goto L_47010258; 125 case 0x4701025Au: goto L_4701025A; 126 case 0x4701025Cu: goto L_4701025C; 127 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 128 } 129 RECOMP_REGS_OUT(); 130 } 131 132 void sub_47010270(void) { 133 int _fpu_cmp = 0; 134 uint32_t _cf = 0; 135 int _df = 1; 136 uint32_t _flag_k = FK_NONE; 137 uint32_t _flag_a = 0, _flag_b = 0; 138 uint32_t _itail_tgt = 0; 139 RECOMP_REGS_LOCALS 140 RECOMP_ENTER(0x47010270u); 141 142 L_47010270: 143 eax = MEM32(ecx); /* 0x47010270: mov eax, dword ptr [ecx] */ 144 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010272: call dword ptr [eax + 0x104] */ 145 RECOMP_FLAGS_IN(); 146 ecx = MEM32(esp + 0x8); /* 0x47010278: mov ecx, dword ptr [esp + 8] */ 147 edx = MEM32(eax); /* 0x4701027C: mov edx, dword ptr [eax] */ 148 PUSH32(esp, ecx); /* 0x4701027E: push ecx */ 149 ecx = MEM32(esp + 0x8); /* 0x4701027F: mov ecx, dword ptr [esp + 8] */ 150 PUSH32(esp, ecx); /* 0x47010283: push ecx */ 151 ecx = eax; /* 0x47010284: mov ecx, eax */ 152 RECOMP_ICALL(MEM32(edx + 0xD0)); /* 0x47010286: call dword ptr [edx + 0xd0] */ 153 RECOMP_FLAGS_IN(); 154 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4701028C: ret 8 */ 155 RECOMP_REGS_OUT(); 156 } 157 158 void sub_47010290(void) { 159 int _fpu_cmp = 0; 160 uint32_t _cf = 0; 161 int _df = 1; 162 uint32_t _flag_k = FK_NONE; 163 uint32_t _flag_a = 0, _flag_b = 0; 164 uint32_t _itail_tgt = 0; 165 RECOMP_REGS_LOCALS 166 RECOMP_ENTER(0x47010290u); 167 168 L_47010290: 169 eax = MEM32(ecx); /* 0x47010290: mov eax, dword ptr [ecx] */ 170 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010292: call dword ptr [eax + 0x104] */ 171 RECOMP_FLAGS_IN(); 172 ecx = MEM32(esp + 0x4); /* 0x47010298: mov ecx, dword ptr [esp + 4] */ 173 edx = MEM32(eax); /* 0x4701029C: mov edx, dword ptr [eax] */ 174 PUSH32(esp, ecx); /* 0x4701029E: push ecx */ 175 ecx = eax; /* 0x4701029F: mov ecx, eax */ 176 RECOMP_ICALL(MEM32(edx + 0xCC)); /* 0x470102A1: call dword ptr [edx + 0xcc] */ 177 RECOMP_FLAGS_IN(); 178 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470102A7: ret 4 */ 179 RECOMP_REGS_OUT(); 180 } 181 182 void sub_470102B0(void) { 183 int _fpu_cmp = 0; 184 uint32_t _cf = 0; 185 int _df = 1; 186 uint32_t _flag_k = FK_NONE; 187 uint32_t _flag_a = 0, _flag_b = 0; 188 uint32_t _itail_tgt = 0; 189 RECOMP_REGS_LOCALS 190 RECOMP_ENTER(0x470102B0u); 191 192 L_470102B0: 193 eax = MEM32(ecx); /* 0x470102B0: mov eax, dword ptr [ecx] */ 194 L_470102B2: 195 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470102B2: call dword ptr [eax + 0x104] */ 196 RECOMP_FLAGS_IN(); 197 L_470102B8: 198 edx = MEM32(eax); /* 0x470102B8: mov edx, dword ptr [eax] */ 199 L_470102BA: 200 ecx = eax; /* 0x470102BA: mov ecx, eax */ 201 L_470102BC: 202 { _itail_tgt = (uint32_t)(MEM32(edx + 0xD8)); goto _ljump; } 203 { RECOMP_REGS_OUT(); return; } /* end of function */ 204 _ljump: 205 switch (_itail_tgt) { 206 case 0x470102B0u: goto L_470102B0; 207 case 0x470102B2u: goto L_470102B2; 208 case 0x470102B8u: goto L_470102B8; 209 case 0x470102BAu: goto L_470102BA; 210 case 0x470102BCu: goto L_470102BC; 211 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 212 } 213 RECOMP_REGS_OUT(); 214 } 215 216 void sub_470102D0(void) { 217 int _fpu_cmp = 0; 218 uint32_t _cf = 0; 219 int _df = 1; 220 uint32_t _flag_k = FK_NONE; 221 uint32_t _flag_a = 0, _flag_b = 0; 222 uint32_t _itail_tgt = 0; 223 RECOMP_REGS_LOCALS 224 RECOMP_ENTER(0x470102D0u); 225 226 L_470102D0: 227 eax = MEM32(ecx); /* 0x470102D0: mov eax, dword ptr [ecx] */ 228 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470102D2: call dword ptr [eax + 0x104] */ 229 RECOMP_FLAGS_IN(); 230 ecx = MEM32(esp + 0x4); /* 0x470102D8: mov ecx, dword ptr [esp + 4] */ 231 edx = MEM32(eax); /* 0x470102DC: mov edx, dword ptr [eax] */ 232 PUSH32(esp, ecx); /* 0x470102DE: push ecx */ 233 ecx = eax; /* 0x470102DF: mov ecx, eax */ 234 RECOMP_ICALL(MEM32(edx + 0xD4)); /* 0x470102E1: call dword ptr [edx + 0xd4] */ 235 RECOMP_FLAGS_IN(); 236 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470102E7: ret 4 */ 237 RECOMP_REGS_OUT(); 238 } 239 240 void sub_470102F0(void) { 241 int _fpu_cmp = 0; 242 uint32_t _cf = 0; 243 int _df = 1; 244 uint32_t _flag_k = FK_NONE; 245 uint32_t _flag_a = 0, _flag_b = 0; 246 uint32_t _itail_tgt = 0; 247 RECOMP_REGS_LOCALS 248 RECOMP_ENTER(0x470102F0u); 249 250 L_470102F0: 251 eax = MEM32(ecx); /* 0x470102F0: mov eax, dword ptr [ecx] */ 252 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470102F2: call dword ptr [eax + 0x104] */ 253 RECOMP_FLAGS_IN(); 254 ecx = MEM32(esp + 0x4); /* 0x470102F8: mov ecx, dword ptr [esp + 4] */ 255 edx = MEM32(eax); /* 0x470102FC: mov edx, dword ptr [eax] */ 256 PUSH32(esp, ecx); /* 0x470102FE: push ecx */ 257 ecx = eax; /* 0x470102FF: mov ecx, eax */ 258 RECOMP_ICALL(MEM32(edx + 0xE0)); /* 0x47010301: call dword ptr [edx + 0xe0] */ 259 RECOMP_FLAGS_IN(); 260 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010307: ret 4 */ 261 RECOMP_REGS_OUT(); 262 } 263 264 void sub_47010310(void) { 265 int _fpu_cmp = 0; 266 uint32_t _cf = 0; 267 int _df = 1; 268 uint32_t _flag_k = FK_NONE; 269 uint32_t _flag_a = 0, _flag_b = 0; 270 uint32_t _itail_tgt = 0; 271 RECOMP_REGS_LOCALS 272 RECOMP_ENTER(0x47010310u); 273 274 L_47010310: 275 eax = MEM32(ecx); /* 0x47010310: mov eax, dword ptr [ecx] */ 276 L_47010312: 277 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010312: call dword ptr [eax + 0x104] */ 278 RECOMP_FLAGS_IN(); 279 L_47010318: 280 edx = MEM32(eax); /* 0x47010318: mov edx, dword ptr [eax] */ 281 L_4701031A: 282 ecx = eax; /* 0x4701031A: mov ecx, eax */ 283 L_4701031C: 284 { _itail_tgt = (uint32_t)(MEM32(edx + 0xDC)); goto _ljump; } 285 { RECOMP_REGS_OUT(); return; } /* end of function */ 286 _ljump: 287 switch (_itail_tgt) { 288 case 0x47010310u: goto L_47010310; 289 case 0x47010312u: goto L_47010312; 290 case 0x47010318u: goto L_47010318; 291 case 0x4701031Au: goto L_4701031A; 292 case 0x4701031Cu: goto L_4701031C; 293 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 294 } 295 RECOMP_REGS_OUT(); 296 } 297 298 void sub_47010330(void) { 299 int _fpu_cmp = 0; 300 uint32_t _cf = 0; 301 int _df = 1; 302 uint32_t _flag_k = FK_NONE; 303 uint32_t _flag_a = 0, _flag_b = 0; 304 uint32_t _itail_tgt = 0; 305 RECOMP_REGS_LOCALS 306 RECOMP_ENTER(0x47010330u); 307 308 L_47010330: 309 eax = MEM32(ecx); /* 0x47010330: mov eax, dword ptr [ecx] */ 310 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010332: call dword ptr [eax + 0x104] */ 311 RECOMP_FLAGS_IN(); 312 ecx = MEM32(esp + 0xC); /* 0x47010338: mov ecx, dword ptr [esp + 0xc] */ 313 edx = MEM32(eax); /* 0x4701033C: mov edx, dword ptr [eax] */ 314 PUSH32(esp, ecx); /* 0x4701033E: push ecx */ 315 ecx = MEM32(esp + 0xC); /* 0x4701033F: mov ecx, dword ptr [esp + 0xc] */ 316 PUSH32(esp, ecx); /* 0x47010343: push ecx */ 317 ecx = MEM32(esp + 0xC); /* 0x47010344: mov ecx, dword ptr [esp + 0xc] */ 318 PUSH32(esp, ecx); /* 0x47010348: push ecx */ 319 ecx = eax; /* 0x47010349: mov ecx, eax */ 320 RECOMP_ICALL(MEM32(edx + 0xE8)); /* 0x4701034B: call dword ptr [edx + 0xe8] */ 321 RECOMP_FLAGS_IN(); 322 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47010351: ret 0xc */ 323 RECOMP_REGS_OUT(); 324 } 325 326 void sub_47010360(void) { 327 int _fpu_cmp = 0; 328 uint32_t _cf = 0; 329 int _df = 1; 330 uint32_t _flag_k = FK_NONE; 331 uint32_t _flag_a = 0, _flag_b = 0; 332 uint32_t _itail_tgt = 0; 333 RECOMP_REGS_LOCALS 334 RECOMP_ENTER(0x47010360u); 335 336 L_47010360: 337 eax = MEM32(ecx); /* 0x47010360: mov eax, dword ptr [ecx] */ 338 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010362: call dword ptr [eax + 0x104] */ 339 RECOMP_FLAGS_IN(); 340 ecx = MEM32(esp + 0xC); /* 0x47010368: mov ecx, dword ptr [esp + 0xc] */ 341 edx = MEM32(eax); /* 0x4701036C: mov edx, dword ptr [eax] */ 342 PUSH32(esp, ecx); /* 0x4701036E: push ecx */ 343 ecx = MEM32(esp + 0xC); /* 0x4701036F: mov ecx, dword ptr [esp + 0xc] */ 344 PUSH32(esp, ecx); /* 0x47010373: push ecx */ 345 ecx = MEM32(esp + 0xC); /* 0x47010374: mov ecx, dword ptr [esp + 0xc] */ 346 PUSH32(esp, ecx); /* 0x47010378: push ecx */ 347 ecx = eax; /* 0x47010379: mov ecx, eax */ 348 RECOMP_ICALL(MEM32(edx + 0xE4)); /* 0x4701037B: call dword ptr [edx + 0xe4] */ 349 RECOMP_FLAGS_IN(); 350 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47010381: ret 0xc */ 351 RECOMP_REGS_OUT(); 352 } 353 354 void sub_47010390(void) { 355 int _fpu_cmp = 0; 356 uint32_t _cf = 0; 357 int _df = 1; 358 uint32_t _flag_k = FK_NONE; 359 uint32_t _flag_a = 0, _flag_b = 0; 360 uint32_t _itail_tgt = 0; 361 RECOMP_REGS_LOCALS 362 RECOMP_ENTER(0x47010390u); 363 364 L_47010390: 365 eax = MEM32(ecx); /* 0x47010390: mov eax, dword ptr [ecx] */ 366 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010392: call dword ptr [eax + 0x104] */ 367 RECOMP_FLAGS_IN(); 368 ecx = MEM32(esp + 0xC); /* 0x47010398: mov ecx, dword ptr [esp + 0xc] */ 369 edx = MEM32(eax); /* 0x4701039C: mov edx, dword ptr [eax] */ 370 PUSH32(esp, ecx); /* 0x4701039E: push ecx */ 371 ecx = MEM32(esp + 0xC); /* 0x4701039F: mov ecx, dword ptr [esp + 0xc] */ 372 PUSH32(esp, ecx); /* 0x470103A3: push ecx */ 373 ecx = MEM32(esp + 0xC); /* 0x470103A4: mov ecx, dword ptr [esp + 0xc] */ 374 PUSH32(esp, ecx); /* 0x470103A8: push ecx */ 375 ecx = eax; /* 0x470103A9: mov ecx, eax */ 376 RECOMP_ICALL(MEM32(edx + 0xF0)); /* 0x470103AB: call dword ptr [edx + 0xf0] */ 377 RECOMP_FLAGS_IN(); 378 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470103B1: ret 0xc */ 379 RECOMP_REGS_OUT(); 380 } 381 382 void sub_470103C0(void) { 383 int _fpu_cmp = 0; 384 uint32_t _cf = 0; 385 int _df = 1; 386 uint32_t _flag_k = FK_NONE; 387 uint32_t _flag_a = 0, _flag_b = 0; 388 uint32_t _itail_tgt = 0; 389 RECOMP_REGS_LOCALS 390 RECOMP_ENTER(0x470103C0u); 391 392 L_470103C0: 393 eax = MEM32(ecx); /* 0x470103C0: mov eax, dword ptr [ecx] */ 394 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470103C2: call dword ptr [eax + 0x104] */ 395 RECOMP_FLAGS_IN(); 396 ecx = MEM32(esp + 0xC); /* 0x470103C8: mov ecx, dword ptr [esp + 0xc] */ 397 edx = MEM32(eax); /* 0x470103CC: mov edx, dword ptr [eax] */ 398 PUSH32(esp, ecx); /* 0x470103CE: push ecx */ 399 ecx = MEM32(esp + 0xC); /* 0x470103CF: mov ecx, dword ptr [esp + 0xc] */ 400 PUSH32(esp, ecx); /* 0x470103D3: push ecx */ 401 ecx = MEM32(esp + 0xC); /* 0x470103D4: mov ecx, dword ptr [esp + 0xc] */ 402 PUSH32(esp, ecx); /* 0x470103D8: push ecx */ 403 ecx = eax; /* 0x470103D9: mov ecx, eax */ 404 RECOMP_ICALL(MEM32(edx + 0xEC)); /* 0x470103DB: call dword ptr [edx + 0xec] */ 405 RECOMP_FLAGS_IN(); 406 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470103E1: ret 0xc */ 407 RECOMP_REGS_OUT(); 408 } 409 410 void sub_470103F0(void) { 411 int _fpu_cmp = 0; 412 uint32_t _cf = 0; 413 int _df = 1; 414 uint32_t _flag_k = FK_NONE; 415 uint32_t _flag_a = 0, _flag_b = 0; 416 uint32_t _itail_tgt = 0; 417 RECOMP_REGS_LOCALS 418 RECOMP_ENTER(0x470103F0u); 419 420 L_470103F0: 421 eax = MEM32(ecx); /* 0x470103F0: mov eax, dword ptr [ecx] */ 422 L_470103F2: 423 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470103F2: call dword ptr [eax + 0x104] */ 424 RECOMP_FLAGS_IN(); 425 L_470103F8: 426 edx = MEM32(eax); /* 0x470103F8: mov edx, dword ptr [eax] */ 427 L_470103FA: 428 ecx = eax; /* 0x470103FA: mov ecx, eax */ 429 L_470103FC: 430 { _itail_tgt = (uint32_t)(MEM32(edx + 0xC0)); goto _ljump; } 431 { RECOMP_REGS_OUT(); return; } /* end of function */ 432 _ljump: 433 switch (_itail_tgt) { 434 case 0x470103F0u: goto L_470103F0; 435 case 0x470103F2u: goto L_470103F2; 436 case 0x470103F8u: goto L_470103F8; 437 case 0x470103FAu: goto L_470103FA; 438 case 0x470103FCu: goto L_470103FC; 439 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 440 } 441 RECOMP_REGS_OUT(); 442 } 443 444 void sub_47010410(void) { 445 int _fpu_cmp = 0; 446 uint32_t _cf = 0; 447 int _df = 1; 448 uint32_t _flag_k = FK_NONE; 449 uint32_t _flag_a = 0, _flag_b = 0; 450 uint32_t _itail_tgt = 0; 451 RECOMP_REGS_LOCALS 452 RECOMP_ENTER(0x47010410u); 453 454 L_47010410: 455 eax = MEM32(ecx); /* 0x47010410: mov eax, dword ptr [ecx] */ 456 L_47010412: 457 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47010412: call dword ptr [eax + 0x104] */ 458 RECOMP_FLAGS_IN(); 459 L_47010418: 460 edx = MEM32(eax); /* 0x47010418: mov edx, dword ptr [eax] */ 461 L_4701041A: 462 ecx = eax; /* 0x4701041A: mov ecx, eax */ 463 L_4701041C: 464 { _itail_tgt = (uint32_t)(MEM32(edx + 0x84)); goto _ljump; } 465 { RECOMP_REGS_OUT(); return; } /* end of function */ 466 _ljump: 467 switch (_itail_tgt) { 468 case 0x47010410u: goto L_47010410; 469 case 0x47010412u: goto L_47010412; 470 case 0x47010418u: goto L_47010418; 471 case 0x4701041Au: goto L_4701041A; 472 case 0x4701041Cu: goto L_4701041C; 473 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 474 } 475 RECOMP_REGS_OUT(); 476 } 477 478 void sub_47010430(void) { 479 int _fpu_cmp = 0; 480 uint32_t _cf = 0; 481 int _df = 1; 482 uint32_t _flag_k = FK_NONE; 483 uint32_t _flag_a = 0, _flag_b = 0; 484 uint32_t _itail_tgt = 0; 485 RECOMP_REGS_LOCALS 486 RECOMP_ENTER(0x47010430u); 487 488 L_47010430: 489 PUSH32(esp, 0); /* 0x47010430: push 0 */ 490 PUSH32(esp, 0x4710E9A8u); /* 0x47010432: push 0x4710e9a8 */ 491 PUSH32(esp, 0); /* 0x47010437: push 0 */ 492 RECOMP_ICALL(0x470880E0u); /* 0x47010439: call 0x470880e0 */ /* not lifted */ 493 RECOMP_FLAGS_IN(); 494 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701043E: ret */ 495 RECOMP_REGS_OUT(); 496 } 497 498 void sub_47010440(void) { 499 int _fpu_cmp = 0; 500 uint32_t _cf = 0; 501 int _df = 1; 502 uint32_t _flag_k = FK_NONE; 503 uint32_t _flag_a = 0, _flag_b = 0; 504 uint32_t _itail_tgt = 0; 505 RECOMP_REGS_LOCALS 506 RECOMP_ENTER(0x47010440u); 507 508 L_47010440: 509 eax = ecx; /* 0x47010440: mov eax, ecx */ 510 ecx = MEM32(esp + 0x4); /* 0x47010442: mov ecx, dword ptr [esp + 4] */ 511 edx = MEM32(ecx + 0x4); /* 0x47010446: mov edx, dword ptr [ecx + 4] */ 512 MEM32(eax + 0x4) = edx; /* 0x47010449: mov dword ptr [eax + 4], edx */ 513 edx = MEM32(ecx + 0x8); /* 0x4701044C: mov edx, dword ptr [ecx + 8] */ 514 MEM32(eax + 0x8) = edx; /* 0x4701044F: mov dword ptr [eax + 8], edx */ 515 edx = MEM32(ecx + 0xC); /* 0x47010452: mov edx, dword ptr [ecx + 0xc] */ 516 MEM32(eax + 0xC) = edx; /* 0x47010455: mov dword ptr [eax + 0xc], edx */ 517 ecx = MEM32(ecx + 0x10); /* 0x47010458: mov ecx, dword ptr [ecx + 0x10] */ 518 MEM32(eax + 0x10) = ecx; /* 0x4701045B: mov dword ptr [eax + 0x10], ecx */ 519 MEM32(eax) = 0x470AC9C0u; /* 0x4701045E: mov dword ptr [eax], 0x470ac9c0 */ 520 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010464: ret 4 */ 521 RECOMP_REGS_OUT(); 522 } 523 524 void sub_47010470(void) { 525 int _fpu_cmp = 0; 526 uint32_t _cf = 0; 527 int _df = 1; 528 uint32_t _flag_k = FK_NONE; 529 uint32_t _flag_a = 0, _flag_b = 0; 530 uint32_t _itail_tgt = 0; 531 RECOMP_REGS_LOCALS 532 RECOMP_ENTER(0x47010470u); 533 534 L_47010470: 535 PUSH32(esp, ebx); /* 0x47010470: push ebx */ 536 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47010471: mov bl, byte ptr [esp + 8] */ 537 /* test LO8(ebx), 2 */ /* 0x47010475: test bl, 2 */ 538 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 539 _cf = 0; 540 _flag_k = FK_NARROW(FK_TEST, 24); 541 PUSH32(esp, esi); /* 0x47010478: push esi */ 542 esi = ecx; /* 0x47010479: mov esi, ecx */ 543 if (TEST_Z(_flag_a, _flag_b)) goto L_470104A8; /* 0x4701047B: je 0x470104a8 */ 544 L_4701047D: 545 eax = MEM32(esi + (-0x4)); /* 0x4701047D: mov eax, dword ptr [esi - 4] */ 546 PUSH32(esp, edi); /* 0x47010480: push edi */ 547 PUSH32(esp, 0x47010660u); /* 0x47010481: push 0x47010660 */ 548 edi = esi + (-0x4); /* 0x47010486: lea edi, [esi - 4] */ 549 PUSH32(esp, eax); /* 0x47010489: push eax */ 550 PUSH32(esp, 0x14u); /* 0x4701048A: push 0x14 */ 551 PUSH32(esp, esi); /* 0x4701048C: push esi */ 552 RECOMP_ICALL(0x470A32EBu); /* 0x4701048D: call 0x470a32eb */ /* not lifted */ 553 RECOMP_FLAGS_IN(); 554 /* test LO8(ebx), 1 */ /* 0x47010492: test bl, 1 */ 555 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 556 _cf = 0; 557 _flag_k = FK_NARROW(FK_TEST, 24); 558 if (TEST_Z(_flag_a, _flag_b)) goto L_470104A0; /* 0x47010495: je 0x470104a0 */ 559 L_47010497: 560 PUSH32(esp, edi); /* 0x47010497: push edi */ 561 RECOMP_ICALL(0x470A32A2u); /* 0x47010498: call 0x470a32a2 */ /* not lifted */ 562 RECOMP_FLAGS_IN(); 563 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 564 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 565 esp = esp + 4; /* 0x4701049D: add esp, 4 */ 566 _flag_k = FK_ADD; 567 L_470104A0: 568 eax = edi; /* 0x470104A0: mov eax, edi */ 569 edi = POP32_VAL(esp); /* 0x470104A2: pop edi */ 570 esi = POP32_VAL(esp); /* 0x470104A3: pop esi */ 571 ebx = POP32_VAL(esp); /* 0x470104A4: pop ebx */ 572 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470104A5: ret 4 */ 573 L_470104A8: 574 eax = MEM32(esi + 0xC); /* 0x470104A8: mov eax, dword ptr [esi + 0xc] */ 575 /* test eax, eax */ /* 0x470104AB: test eax, eax */ 576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 577 _cf = 0; 578 _flag_k = FK_TEST; 579 MEM32(esi) = 0x470AC9C0u; /* 0x470104AD: mov dword ptr [esi], 0x470ac9c0 */ 580 if (TEST_NZ(_flag_a, _flag_b)) goto L_470104C6; /* 0x470104B3: jne 0x470104c6 */ 581 L_470104B5: 582 eax = MEM32(esi + 0x10); /* 0x470104B5: mov eax, dword ptr [esi + 0x10] */ 583 /* test eax, eax */ /* 0x470104B8: test eax, eax */ 584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 585 _cf = 0; 586 _flag_k = FK_TEST; 587 if (TEST_Z(_flag_a, _flag_b)) goto L_470104C6; /* 0x470104BA: je 0x470104c6 */ 588 L_470104BC: 589 ecx = MEM32(esi + 0x8); /* 0x470104BC: mov ecx, dword ptr [esi + 8] */ 590 PUSH32(esp, 1); /* 0x470104BF: push 1 */ 591 RECOMP_ICALL(0x47089B60u); /* 0x470104C1: call 0x47089b60 */ /* not lifted */ 592 RECOMP_FLAGS_IN(); 593 L_470104C6: 594 /* test LO8(ebx), 1 */ /* 0x470104C6: test bl, 1 */ 595 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 596 _cf = 0; 597 _flag_k = FK_NARROW(FK_TEST, 24); 598 if (TEST_Z(_flag_a, _flag_b)) goto L_470104D4; /* 0x470104C9: je 0x470104d4 */ 599 L_470104CB: 600 PUSH32(esp, esi); /* 0x470104CB: push esi */ 601 RECOMP_ICALL(0x470A32A2u); /* 0x470104CC: call 0x470a32a2 */ /* not lifted */ 602 RECOMP_FLAGS_IN(); 603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 604 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 605 esp = esp + 4; /* 0x470104D1: add esp, 4 */ 606 _flag_k = FK_ADD; 607 L_470104D4: 608 eax = esi; /* 0x470104D4: mov eax, esi */ 609 esi = POP32_VAL(esp); /* 0x470104D6: pop esi */ 610 ebx = POP32_VAL(esp); /* 0x470104D7: pop ebx */ 611 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470104D8: ret 4 */ 612 RECOMP_REGS_OUT(); 613 } 614 615 void sub_470104E0(void) { 616 int _fpu_cmp = 0; 617 uint32_t _cf = 0; 618 int _df = 1; 619 uint32_t _flag_k = FK_NONE; 620 uint32_t _flag_a = 0, _flag_b = 0; 621 uint32_t _itail_tgt = 0; 622 RECOMP_REGS_LOCALS 623 RECOMP_ENTER(0x470104E0u); 624 625 L_470104E0: 626 eax = ecx; /* 0x470104E0: mov eax, ecx */ 627 ecx = MEM32(esp + 0x4); /* 0x470104E2: mov ecx, dword ptr [esp + 4] */ 628 edx = MEM32(ecx + 0x4); /* 0x470104E6: mov edx, dword ptr [ecx + 4] */ 629 MEM32(eax + 0x4) = edx; /* 0x470104E9: mov dword ptr [eax + 4], edx */ 630 edx = MEM32(ecx + 0x8); /* 0x470104EC: mov edx, dword ptr [ecx + 8] */ 631 MEM32(eax + 0x8) = edx; /* 0x470104EF: mov dword ptr [eax + 8], edx */ 632 edx = MEM32(ecx + 0xC); /* 0x470104F2: mov edx, dword ptr [ecx + 0xc] */ 633 MEM32(eax + 0xC) = edx; /* 0x470104F5: mov dword ptr [eax + 0xc], edx */ 634 edx = MEM32(ecx + 0x10); /* 0x470104F8: mov edx, dword ptr [ecx + 0x10] */ 635 MEM32(eax) = 0x470AC9C0u; /* 0x470104FB: mov dword ptr [eax], 0x470ac9c0 */ 636 MEM32(eax + 0x10) = edx; /* 0x47010501: mov dword ptr [eax + 0x10], edx */ 637 edx = MEM32(ecx + 0x14); /* 0x47010504: mov edx, dword ptr [ecx + 0x14] */ 638 MEM32(eax + 0x14) = edx; /* 0x47010507: mov dword ptr [eax + 0x14], edx */ 639 edx = MEM32(ecx + 0x18); /* 0x4701050A: mov edx, dword ptr [ecx + 0x18] */ 640 MEM32(eax + 0x18) = edx; /* 0x4701050D: mov dword ptr [eax + 0x18], edx */ 641 ecx = MEM32(ecx + 0x1C); /* 0x47010510: mov ecx, dword ptr [ecx + 0x1c] */ 642 MEM32(eax + 0x1C) = ecx; /* 0x47010513: mov dword ptr [eax + 0x1c], ecx */ 643 MEM32(eax) = 0x470AC9C8u; /* 0x47010516: mov dword ptr [eax], 0x470ac9c8 */ 644 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701051C: ret 4 */ 645 RECOMP_REGS_OUT(); 646 } 647 648 void sub_47010520(void) { 649 int _fpu_cmp = 0; 650 uint32_t _cf = 0; 651 int _df = 1; 652 uint32_t _flag_k = FK_NONE; 653 uint32_t _flag_a = 0, _flag_b = 0; 654 uint32_t _itail_tgt = 0; 655 RECOMP_REGS_LOCALS 656 RECOMP_ENTER(0x47010520u); 657 658 L_47010520: 659 eax = ecx; /* 0x47010520: mov eax, ecx */ 660 ecx = MEM32(esp + 0x4); /* 0x47010522: mov ecx, dword ptr [esp + 4] */ 661 edx = MEM32(ecx + 0x4); /* 0x47010526: mov edx, dword ptr [ecx + 4] */ 662 MEM32(eax + 0x4) = edx; /* 0x47010529: mov dword ptr [eax + 4], edx */ 663 edx = MEM32(ecx + 0x8); /* 0x4701052C: mov edx, dword ptr [ecx + 8] */ 664 MEM32(eax + 0x8) = edx; /* 0x4701052F: mov dword ptr [eax + 8], edx */ 665 edx = MEM32(ecx + 0xC); /* 0x47010532: mov edx, dword ptr [ecx + 0xc] */ 666 MEM32(eax + 0xC) = edx; /* 0x47010535: mov dword ptr [eax + 0xc], edx */ 667 edx = MEM32(ecx + 0x10); /* 0x47010538: mov edx, dword ptr [ecx + 0x10] */ 668 MEM32(eax + 0x10) = edx; /* 0x4701053B: mov dword ptr [eax + 0x10], edx */ 669 edx = MEM32(ecx + 0x14); /* 0x4701053E: mov edx, dword ptr [ecx + 0x14] */ 670 MEM32(eax + 0x14) = edx; /* 0x47010541: mov dword ptr [eax + 0x14], edx */ 671 edx = MEM32(ecx + 0x18); /* 0x47010544: mov edx, dword ptr [ecx + 0x18] */ 672 MEM32(eax + 0x18) = edx; /* 0x47010547: mov dword ptr [eax + 0x18], edx */ 673 ecx = MEM32(ecx + 0x1C); /* 0x4701054A: mov ecx, dword ptr [ecx + 0x1c] */ 674 MEM32(eax + 0x1C) = ecx; /* 0x4701054D: mov dword ptr [eax + 0x1c], ecx */ 675 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010550: ret 4 */ 676 RECOMP_REGS_OUT(); 677 } 678 679 void sub_47010560(void) { 680 int _fpu_cmp = 0; 681 uint32_t _cf = 0; 682 int _df = 1; 683 uint32_t _flag_k = FK_NONE; 684 uint32_t _flag_a = 0, _flag_b = 0; 685 uint32_t _itail_tgt = 0; 686 RECOMP_REGS_LOCALS 687 RECOMP_ENTER(0x47010560u); 688 689 L_47010560: 690 PUSH32(esp, ebx); /* 0x47010560: push ebx */ 691 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47010561: mov bl, byte ptr [esp + 8] */ 692 /* test LO8(ebx), 2 */ /* 0x47010565: test bl, 2 */ 693 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 694 _cf = 0; 695 _flag_k = FK_NARROW(FK_TEST, 24); 696 PUSH32(esp, esi); /* 0x47010568: push esi */ 697 esi = ecx; /* 0x47010569: mov esi, ecx */ 698 if (TEST_Z(_flag_a, _flag_b)) goto L_47010598; /* 0x4701056B: je 0x47010598 */ 699 L_4701056D: 700 eax = MEM32(esi + (-0x4)); /* 0x4701056D: mov eax, dword ptr [esi - 4] */ 701 PUSH32(esp, edi); /* 0x47010570: push edi */ 702 PUSH32(esp, 0x470106B0u); /* 0x47010571: push 0x470106b0 */ 703 edi = esi + (-0x4); /* 0x47010576: lea edi, [esi - 4] */ 704 PUSH32(esp, eax); /* 0x47010579: push eax */ 705 PUSH32(esp, 0x20u); /* 0x4701057A: push 0x20 */ 706 PUSH32(esp, esi); /* 0x4701057C: push esi */ 707 RECOMP_ICALL(0x470A32EBu); /* 0x4701057D: call 0x470a32eb */ /* not lifted */ 708 RECOMP_FLAGS_IN(); 709 /* test LO8(ebx), 1 */ /* 0x47010582: test bl, 1 */ 710 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 711 _cf = 0; 712 _flag_k = FK_NARROW(FK_TEST, 24); 713 if (TEST_Z(_flag_a, _flag_b)) goto L_47010590; /* 0x47010585: je 0x47010590 */ 714 L_47010587: 715 PUSH32(esp, edi); /* 0x47010587: push edi */ 716 RECOMP_ICALL(0x470A32A2u); /* 0x47010588: call 0x470a32a2 */ /* not lifted */ 717 RECOMP_FLAGS_IN(); 718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 719 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 720 esp = esp + 4; /* 0x4701058D: add esp, 4 */ 721 _flag_k = FK_ADD; 722 L_47010590: 723 eax = edi; /* 0x47010590: mov eax, edi */ 724 edi = POP32_VAL(esp); /* 0x47010592: pop edi */ 725 esi = POP32_VAL(esp); /* 0x47010593: pop esi */ 726 ebx = POP32_VAL(esp); /* 0x47010594: pop ebx */ 727 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010595: ret 4 */ 728 L_47010598: 729 ecx = esi; /* 0x47010598: mov ecx, esi */ 730 RECOMP_ICALL(0x470106B0u); /* 0x4701059A: call 0x470106b0 */ /* not lifted */ 731 RECOMP_FLAGS_IN(); 732 /* test LO8(ebx), 1 */ /* 0x4701059F: test bl, 1 */ 733 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 734 _cf = 0; 735 _flag_k = FK_NARROW(FK_TEST, 24); 736 if (TEST_Z(_flag_a, _flag_b)) goto L_470105AD; /* 0x470105A2: je 0x470105ad */ 737 L_470105A4: 738 PUSH32(esp, esi); /* 0x470105A4: push esi */ 739 RECOMP_ICALL(0x470A32A2u); /* 0x470105A5: call 0x470a32a2 */ /* not lifted */ 740 RECOMP_FLAGS_IN(); 741 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 742 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 743 esp = esp + 4; /* 0x470105AA: add esp, 4 */ 744 _flag_k = FK_ADD; 745 L_470105AD: 746 eax = esi; /* 0x470105AD: mov eax, esi */ 747 esi = POP32_VAL(esp); /* 0x470105AF: pop esi */ 748 ebx = POP32_VAL(esp); /* 0x470105B0: pop ebx */ 749 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470105B1: ret 4 */ 750 RECOMP_REGS_OUT(); 751 } 752 753 void sub_470105C0(void) { 754 int _fpu_cmp = 0; 755 uint32_t _cf = 0; 756 int _df = 1; 757 uint32_t _flag_k = FK_NONE; 758 uint32_t _flag_a = 0, _flag_b = 0; 759 uint32_t _itail_tgt = 0; 760 RECOMP_REGS_LOCALS 761 RECOMP_ENTER(0x470105C0u); 762 763 L_470105C0: 764 PUSH32(esp, esi); /* 0x470105C0: push esi */ 765 esi = MEM32(esp + 0x8); /* 0x470105C1: mov esi, dword ptr [esp + 8] */ 766 PUSH32(esp, edi); /* 0x470105C5: push edi */ 767 eax = ecx; /* 0x470105C6: mov eax, ecx */ 768 ecx = 0x10u; /* 0x470105C8: mov ecx, 0x10 */ 769 edi = eax; /* 0x470105CD: mov edi, eax */ 770 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470105CF: 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; } 771 edi = POP32_VAL(esp); /* 0x470105D1: pop edi */ 772 esi = POP32_VAL(esp); /* 0x470105D2: pop esi */ 773 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470105D3: ret 4 */ 774 RECOMP_REGS_OUT(); 775 } 776 777 void sub_470105E0(void) { 778 int _fpu_cmp = 0; 779 uint32_t _cf = 0; 780 int _df = 1; 781 uint32_t _flag_k = FK_NONE; 782 uint32_t _flag_a = 0, _flag_b = 0; 783 uint32_t _itail_tgt = 0; 784 RECOMP_REGS_LOCALS 785 RECOMP_ENTER(0x470105E0u); 786 787 L_470105E0: 788 PUSH32(esp, 0x61A8u); /* 0x470105E0: push 0x61a8 */ 789 PUSH32(esp, 1); /* 0x470105E5: push 1 */ 790 PUSH32(esp, 1); /* 0x470105E7: push 1 */ 791 PUSH32(esp, 0); /* 0x470105E9: push 0 */ 792 RECOMP_ICALL(0x4708A4B0u); /* 0x470105EB: call 0x4708a4b0 */ /* not lifted */ 793 RECOMP_FLAGS_IN(); 794 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470105F0: ret */ 795 RECOMP_REGS_OUT(); 796 } 797 798 void sub_47010600(void) { 799 int _fpu_cmp = 0; 800 uint32_t _cf = 0; 801 int _df = 1; 802 uint32_t _flag_k = FK_NONE; 803 uint32_t _flag_a = 0, _flag_b = 0; 804 uint32_t _itail_tgt = 0; 805 RECOMP_REGS_LOCALS 806 RECOMP_ENTER(0x47010600u); 807 808 L_47010600: 809 eax = ecx; /* 0x47010600: mov eax, ecx */ 810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 811 ecx = 0; /* 0x47010602: xor ecx, ecx */ 812 _cf = 0; 813 _flag_k = FK_TEST; 814 MEM32(eax + 0x8) = ecx; /* 0x47010604: mov dword ptr [eax + 8], ecx */ 815 MEM32(eax + 0xC) = ecx; /* 0x47010607: mov dword ptr [eax + 0xc], ecx */ 816 MEM32(eax + 0x10) = 1; /* 0x4701060A: mov dword ptr [eax + 0x10], 1 */ 817 MEM32(eax) = 0x470AC9C0u; /* 0x47010611: mov dword ptr [eax], 0x470ac9c0 */ 818 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010617: ret */ 819 RECOMP_REGS_OUT(); 820 } 821 822 void sub_47010620(void) { 823 int _fpu_cmp = 0; 824 uint32_t _cf = 0; 825 int _df = 1; 826 uint32_t _flag_k = FK_NONE; 827 uint32_t _flag_a = 0, _flag_b = 0; 828 uint32_t _itail_tgt = 0; 829 RECOMP_REGS_LOCALS 830 RECOMP_ENTER(0x47010620u); 831 832 L_47010620: 833 eax = MEM32(esp + 0x4); /* 0x47010620: mov eax, dword ptr [esp + 4] */ 834 /* test eax, eax */ /* 0x47010624: test eax, eax */ 835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 836 _cf = 0; 837 _flag_k = FK_TEST; 838 MEM32(ecx + 0xC) = eax; /* 0x47010626: mov dword ptr [ecx + 0xc], eax */ 839 if (TEST_Z(_flag_a, _flag_b)) goto L_47010632; /* 0x47010629: je 0x47010632 */ 840 L_4701062B: 841 MEM32(ecx + 0x8) = 0; /* 0x4701062B: mov dword ptr [ecx + 8], 0 */ 842 L_47010632: 843 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010632: ret 4 */ 844 RECOMP_REGS_OUT(); 845 } 846 847 void sub_47010640(void) { 848 int _fpu_cmp = 0; 849 uint32_t _cf = 0; 850 int _df = 1; 851 uint32_t _flag_k = FK_NONE; 852 uint32_t _flag_a = 0, _flag_b = 0; 853 uint32_t _itail_tgt = 0; 854 RECOMP_REGS_LOCALS 855 RECOMP_ENTER(0x47010640u); 856 857 L_47010640: 858 eax = MEM32(ecx + 0xC); /* 0x47010640: mov eax, dword ptr [ecx + 0xc] */ 859 /* test eax, eax */ /* 0x47010643: test eax, eax */ 860 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 861 _cf = 0; 862 _flag_k = FK_TEST; 863 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010658; /* 0x47010645: jne 0x47010658 */ 864 L_47010647: 865 eax = MEM32(ecx + 0x10); /* 0x47010647: mov eax, dword ptr [ecx + 0x10] */ 866 /* test eax, eax */ /* 0x4701064A: test eax, eax */ 867 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 868 _cf = 0; 869 _flag_k = FK_TEST; 870 if (TEST_Z(_flag_a, _flag_b)) goto L_47010658; /* 0x4701064C: je 0x47010658 */ 871 L_4701064E: 872 ecx = MEM32(ecx + 0x8); /* 0x4701064E: mov ecx, dword ptr [ecx + 8] */ 873 PUSH32(esp, 1); /* 0x47010651: push 1 */ 874 RECOMP_ICALL(0x47089B60u); /* 0x47010653: call 0x47089b60 */ /* not lifted */ 875 RECOMP_FLAGS_IN(); 876 L_47010658: 877 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010658: ret */ 878 RECOMP_REGS_OUT(); 879 } 880 881 void sub_47010660(void) { 882 int _fpu_cmp = 0; 883 uint32_t _cf = 0; 884 int _df = 1; 885 uint32_t _flag_k = FK_NONE; 886 uint32_t _flag_a = 0, _flag_b = 0; 887 uint32_t _itail_tgt = 0; 888 RECOMP_REGS_LOCALS 889 RECOMP_ENTER(0x47010660u); 890 891 L_47010660: 892 eax = MEM32(ecx + 0xC); /* 0x47010660: mov eax, dword ptr [ecx + 0xc] */ 893 /* test eax, eax */ /* 0x47010663: test eax, eax */ 894 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 895 _cf = 0; 896 _flag_k = FK_TEST; 897 MEM32(ecx) = 0x470AC9C0u; /* 0x47010665: mov dword ptr [ecx], 0x470ac9c0 */ 898 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701067E; /* 0x4701066B: jne 0x4701067e */ 899 L_4701066D: 900 eax = MEM32(ecx + 0x10); /* 0x4701066D: mov eax, dword ptr [ecx + 0x10] */ 901 /* test eax, eax */ /* 0x47010670: test eax, eax */ 902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 903 _cf = 0; 904 _flag_k = FK_TEST; 905 if (TEST_Z(_flag_a, _flag_b)) goto L_4701067E; /* 0x47010672: je 0x4701067e */ 906 L_47010674: 907 ecx = MEM32(ecx + 0x8); /* 0x47010674: mov ecx, dword ptr [ecx + 8] */ 908 PUSH32(esp, 1); /* 0x47010677: push 1 */ 909 RECOMP_ICALL(0x47089B60u); /* 0x47010679: call 0x47089b60 */ /* not lifted */ 910 RECOMP_FLAGS_IN(); 911 L_4701067E: 912 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701067E: ret */ 913 RECOMP_REGS_OUT(); 914 } 915 916 void sub_47010680(void) { 917 int _fpu_cmp = 0; 918 uint32_t _cf = 0; 919 int _df = 1; 920 uint32_t _flag_k = FK_NONE; 921 uint32_t _flag_a = 0, _flag_b = 0; 922 uint32_t _itail_tgt = 0; 923 RECOMP_REGS_LOCALS 924 RECOMP_ENTER(0x47010680u); 925 926 L_47010680: 927 edx = MEM32(esp + 0x8); /* 0x47010680: mov edx, dword ptr [esp + 8] */ 928 eax = ecx; /* 0x47010684: mov eax, ecx */ 929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 930 ecx = 0; /* 0x47010686: xor ecx, ecx */ 931 _cf = 0; 932 _flag_k = FK_TEST; 933 MEM32(eax + 0x8) = ecx; /* 0x47010688: mov dword ptr [eax + 8], ecx */ 934 MEM32(eax + 0xC) = ecx; /* 0x4701068B: mov dword ptr [eax + 0xc], ecx */ 935 ecx = MEM32(esp + 0x4); /* 0x4701068E: mov ecx, dword ptr [esp + 4] */ 936 MEM32(eax + 0x14) = ecx; /* 0x47010692: mov dword ptr [eax + 0x14], ecx */ 937 ecx = MEM32(esp + 0xC); /* 0x47010695: mov ecx, dword ptr [esp + 0xc] */ 938 MEM32(eax + 0x10) = 1; /* 0x47010699: mov dword ptr [eax + 0x10], 1 */ 939 MEM32(eax + 0x18) = edx; /* 0x470106A0: mov dword ptr [eax + 0x18], edx */ 940 MEM32(eax + 0x1C) = ecx; /* 0x470106A3: mov dword ptr [eax + 0x1c], ecx */ 941 MEM32(eax) = 0x470AC9C8u; /* 0x470106A6: mov dword ptr [eax], 0x470ac9c8 */ 942 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470106AC: ret 0xc */ 943 RECOMP_REGS_OUT(); 944 } 945 946 void sub_470106B0(void) { 947 int _fpu_cmp = 0; 948 uint32_t _cf = 0; 949 int _df = 1; 950 uint32_t _flag_k = FK_NONE; 951 uint32_t _flag_a = 0, _flag_b = 0; 952 uint32_t _itail_tgt = 0; 953 RECOMP_REGS_LOCALS 954 RECOMP_ENTER(0x470106B0u); 955 956 L_470106B0: 957 PUSH32(esp, 0xFFFFFFFFu); /* 0x470106B0: push -1 */ 958 PUSH32(esp, 0x470A39D8u); /* 0x470106B2: push 0x470a39d8 */ 959 eax = MEM32(FS_BASE + (0)); /* 0x470106B7: mov eax, dword ptr fs:[0] */ 960 PUSH32(esp, eax); /* 0x470106BD: push eax */ 961 MEM32(FS_BASE + (0)) = esp; /* 0x470106BE: mov dword ptr fs:[0], esp */ 962 PUSH32(esp, ecx); /* 0x470106C5: push ecx */ 963 PUSH32(esp, esi); /* 0x470106C6: push esi */ 964 esi = ecx; /* 0x470106C7: mov esi, ecx */ 965 MEM32(esp + 0x4) = esi; /* 0x470106C9: mov dword ptr [esp + 4], esi */ 966 MEM32(esi) = 0x470AC9C8u; /* 0x470106CD: mov dword ptr [esi], 0x470ac9c8 */ 967 eax = MEM32(esi + 0xC); /* 0x470106D3: mov eax, dword ptr [esi + 0xc] */ 968 /* test eax, eax */ /* 0x470106D6: test eax, eax */ 969 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 970 _cf = 0; 971 _flag_k = FK_TEST; 972 MEM32(esp + 0x10) = 0; /* 0x470106D8: mov dword ptr [esp + 0x10], 0 */ 973 if (TEST_NZ(_flag_a, _flag_b)) goto L_470106F3; /* 0x470106E0: jne 0x470106f3 */ 974 L_470106E2: 975 eax = MEM32(esi + 0x10); /* 0x470106E2: mov eax, dword ptr [esi + 0x10] */ 976 /* test eax, eax */ /* 0x470106E5: test eax, eax */ 977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 978 _cf = 0; 979 _flag_k = FK_TEST; 980 if (TEST_Z(_flag_a, _flag_b)) goto L_470106F3; /* 0x470106E7: je 0x470106f3 */ 981 L_470106E9: 982 ecx = MEM32(esi + 0x8); /* 0x470106E9: mov ecx, dword ptr [esi + 8] */ 983 PUSH32(esp, 1); /* 0x470106EC: push 1 */ 984 RECOMP_ICALL(0x47089B60u); /* 0x470106EE: call 0x47089b60 */ /* not lifted */ 985 RECOMP_FLAGS_IN(); 986 L_470106F3: 987 eax = MEM32(esi + 0xC); /* 0x470106F3: mov eax, dword ptr [esi + 0xc] */ 988 /* test eax, eax */ /* 0x470106F6: test eax, eax */ 989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 990 _cf = 0; 991 _flag_k = FK_TEST; 992 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x470106F8: mov dword ptr [esp + 0x10], 0xffffffff */ 993 MEM32(esi) = 0x470AC9C0u; /* 0x47010700: mov dword ptr [esi], 0x470ac9c0 */ 994 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010719; /* 0x47010706: jne 0x47010719 */ 995 L_47010708: 996 eax = MEM32(esi + 0x10); /* 0x47010708: mov eax, dword ptr [esi + 0x10] */ 997 /* test eax, eax */ /* 0x4701070B: test eax, eax */ 998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 999 _cf = 0; 1000 _flag_k = FK_TEST; 1001 if (TEST_Z(_flag_a, _flag_b)) goto L_47010719; /* 0x4701070D: je 0x47010719 */ 1002 L_4701070F: 1003 ecx = MEM32(esi + 0x8); /* 0x4701070F: mov ecx, dword ptr [esi + 8] */ 1004 PUSH32(esp, 1); /* 0x47010712: push 1 */ 1005 RECOMP_ICALL(0x47089B60u); /* 0x47010714: call 0x47089b60 */ /* not lifted */ 1006 RECOMP_FLAGS_IN(); 1007 L_47010719: 1008 ecx = MEM32(esp + 0x8); /* 0x47010719: mov ecx, dword ptr [esp + 8] */ 1009 esi = POP32_VAL(esp); /* 0x4701071D: pop esi */ 1010 MEM32(FS_BASE + (0)) = ecx; /* 0x4701071E: mov dword ptr fs:[0], ecx */ 1011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1013 esp = esp + 0x10u; /* 0x47010725: add esp, 0x10 */ 1014 _flag_k = FK_ADD; 1015 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010728: ret */ 1016 RECOMP_REGS_OUT(); 1017 } 1018 1019 void sub_47010730(void) { 1020 int _fpu_cmp = 0; 1021 uint32_t _cf = 0; 1022 int _df = 1; 1023 uint32_t _flag_k = FK_NONE; 1024 uint32_t _flag_a = 0, _flag_b = 0; 1025 uint32_t _itail_tgt = 0; 1026 RECOMP_REGS_LOCALS 1027 RECOMP_ENTER(0x47010730u); 1028 1029 L_47010730: 1030 eax = MEM32(ecx + 0x1C); /* 0x47010730: mov eax, dword ptr [ecx + 0x1c] */ 1031 edx = MEM32(ecx + 0x14); /* 0x47010733: mov edx, dword ptr [ecx + 0x14] */ 1032 PUSH32(esp, eax); /* 0x47010736: push eax */ 1033 PUSH32(esp, edx); /* 0x47010737: push edx */ 1034 RECOMP_ICALL(MEM32(ecx + 0x18)); /* 0x47010738: call dword ptr [ecx + 0x18] */ 1035 RECOMP_FLAGS_IN(); 1036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1038 esp = esp + 8; /* 0x4701073B: add esp, 8 */ 1039 _flag_k = FK_ADD; 1040 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701073E: ret */ 1041 RECOMP_REGS_OUT(); 1042 } 1043 1044 void sub_47010740(void) { 1045 int _fpu_cmp = 0; 1046 uint32_t _cf = 0; 1047 int _df = 1; 1048 uint32_t _flag_k = FK_NONE; 1049 uint32_t _flag_a = 0, _flag_b = 0; 1050 uint32_t _itail_tgt = 0; 1051 RECOMP_REGS_LOCALS 1052 RECOMP_ENTER(0x47010740u); 1053 1054 L_47010740: 1055 eax = ecx; /* 0x47010740: mov eax, ecx */ 1056 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1057 ecx = 0; /* 0x47010742: xor ecx, ecx */ 1058 _cf = 0; 1059 _flag_k = FK_TEST; 1060 MEM32(eax) = ecx; /* 0x47010744: mov dword ptr [eax], ecx */ 1061 edx = MEM32(0x4710E900); /* 0x47010746: mov edx, dword ptr [0x4710e900] */ 1062 MEM32(eax + 0x4) = edx; /* 0x4701074C: mov dword ptr [eax + 4], edx */ 1063 edx = MEM32(0x4710E908); /* 0x4701074F: mov edx, dword ptr [0x4710e908] */ 1064 MEM32(eax + 0x8) = edx; /* 0x47010755: mov dword ptr [eax + 8], edx */ 1065 MEM32(eax + 0xC) = ecx; /* 0x47010758: mov dword ptr [eax + 0xc], ecx */ 1066 MEM32(eax + 0x10) = ecx; /* 0x4701075B: mov dword ptr [eax + 0x10], ecx */ 1067 MEM32(eax + 0x14) = ecx; /* 0x4701075E: mov dword ptr [eax + 0x14], ecx */ 1068 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010761: ret */ 1069 RECOMP_REGS_OUT(); 1070 } 1071 1072 void sub_47010770(void) { 1073 int _fpu_cmp = 0; 1074 uint32_t _cf = 0; 1075 int _df = 1; 1076 uint32_t _flag_k = FK_NONE; 1077 uint32_t _flag_a = 0, _flag_b = 0; 1078 uint32_t _itail_tgt = 0; 1079 RECOMP_REGS_LOCALS 1080 RECOMP_ENTER(0x47010770u); 1081 1082 L_47010770: 1083 eax = MEM32(esp + 0x4); /* 0x47010770: mov eax, dword ptr [esp + 4] */ 1084 edx = MEM32(ecx + 0x8); /* 0x47010774: mov edx, dword ptr [ecx + 8] */ 1085 /* cmp edx, MEM32(eax + 0x8) */ /* 0x47010777: cmp edx, dword ptr [eax + 8] */ 1086 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1088 _flag_k = FK_CMP; 1089 if (CMP_EQ(_flag_a, _flag_b)) goto L_4701078C; /* 0x4701077A: je 0x4701078c */ 1090 L_4701077C: 1091 ecx = MEM32(ecx + 0x4); /* 0x4701077C: mov ecx, dword ptr [ecx + 4] */ 1092 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x4701077F: cmp ecx, dword ptr [eax + 4] */ 1093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 1094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1095 _flag_k = FK_CMP; 1096 if (CMP_EQ(_flag_a, _flag_b)) goto L_4701078C; /* 0x47010782: je 0x4701078c */ 1097 L_47010784: 1098 eax = 1; /* 0x47010784: mov eax, 1 */ 1099 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010789: ret 4 */ 1100 L_4701078C: 1101 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1102 eax = 0; /* 0x4701078C: xor eax, eax */ 1103 _cf = 0; 1104 _flag_k = FK_TEST; 1105 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701078E: ret 4 */ 1106 RECOMP_REGS_OUT(); 1107 } 1108 1109 void sub_470107A0(void) { 1110 int _fpu_cmp = 0; 1111 uint32_t _cf = 0; 1112 int _df = 1; 1113 uint32_t _flag_k = FK_NONE; 1114 uint32_t _flag_a = 0, _flag_b = 0; 1115 uint32_t _itail_tgt = 0; 1116 RECOMP_REGS_LOCALS 1117 RECOMP_ENTER(0x470107A0u); 1118 1119 L_470107A0: 1120 eax = MEM32(esp + 0x4); /* 0x470107A0: mov eax, dword ptr [esp + 4] */ 1121 edx = MEM32(ecx + 0x8); /* 0x470107A4: mov edx, dword ptr [ecx + 8] */ 1122 /* cmp edx, MEM32(eax + 0x8) */ /* 0x470107A7: cmp edx, dword ptr [eax + 8] */ 1123 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1125 _flag_k = FK_CMP; 1126 if (CMP_EQ(_flag_a, _flag_b)) goto L_470107C5; /* 0x470107AA: je 0x470107c5 */ 1127 L_470107AC: 1128 ecx = MEM32(ecx + 0x4); /* 0x470107AC: mov ecx, dword ptr [ecx + 4] */ 1129 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x470107AF: cmp ecx, dword ptr [eax + 4] */ 1130 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 1131 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1132 _flag_k = FK_CMP; 1133 if (CMP_EQ(_flag_a, _flag_b)) goto L_470107C5; /* 0x470107B2: je 0x470107c5 */ 1134 L_470107B4: 1135 eax = 1; /* 0x470107B4: mov eax, 1 */ 1136 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1137 edx = 0; /* 0x470107B9: xor edx, edx */ 1138 _cf = 0; 1139 _flag_k = FK_TEST; 1140 /* test eax, eax */ /* 0x470107BB: test eax, eax */ 1141 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1142 _cf = 0; 1143 _flag_k = FK_TEST; 1144 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470107BD: sete dl */ 1145 eax = edx; /* 0x470107C0: mov eax, edx */ 1146 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470107C2: ret 4 */ 1147 L_470107C5: 1148 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1149 eax = 0; /* 0x470107C5: xor eax, eax */ 1150 _cf = 0; 1151 _flag_k = FK_TEST; 1152 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1153 edx = 0; /* 0x470107C7: xor edx, edx */ 1154 _cf = 0; 1155 _flag_k = FK_TEST; 1156 /* test eax, eax */ /* 0x470107C9: test eax, eax */ 1157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1158 _cf = 0; 1159 _flag_k = FK_TEST; 1160 SET_LO8(edx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470107CB: sete dl */ 1161 eax = edx; /* 0x470107CE: mov eax, edx */ 1162 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470107D0: ret 4 */ 1163 RECOMP_REGS_OUT(); 1164 } 1165 1166 void sub_470107E0(void) { 1167 int _fpu_cmp = 0; 1168 uint32_t _cf = 0; 1169 int _df = 1; 1170 uint32_t _flag_k = FK_NONE; 1171 uint32_t _flag_a = 0, _flag_b = 0; 1172 uint32_t _itail_tgt = 0; 1173 RECOMP_REGS_LOCALS 1174 RECOMP_ENTER(0x470107E0u); 1175 1176 L_470107E0: 1177 eax = MEM32(ecx + 0x8); /* 0x470107E0: mov eax, dword ptr [ecx + 8] */ 1178 ecx = MEM32(esp + 0x4); /* 0x470107E3: mov ecx, dword ptr [esp + 4] */ 1179 MEM32(ecx) = eax; /* 0x470107E7: mov dword ptr [ecx], eax */ 1180 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470107E9: ret 4 */ 1181 RECOMP_REGS_OUT(); 1182 } 1183 1184 void sub_470107F0(void) { 1185 int _fpu_cmp = 0; 1186 uint32_t _cf = 0; 1187 int _df = 1; 1188 uint32_t _flag_k = FK_NONE; 1189 uint32_t _flag_a = 0, _flag_b = 0; 1190 uint32_t _itail_tgt = 0; 1191 RECOMP_REGS_LOCALS 1192 RECOMP_ENTER(0x470107F0u); 1193 1194 L_470107F0: 1195 edx = MEM32(esp + 0x4); /* 0x470107F0: mov edx, dword ptr [esp + 4] */ 1196 eax = MEM32(ecx); /* 0x470107F4: mov eax, dword ptr [ecx] */ 1197 MEM32(ecx) = edx; /* 0x470107F6: mov dword ptr [ecx], edx */ 1198 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470107F8: ret 4 */ 1199 RECOMP_REGS_OUT(); 1200 } 1201 1202 void sub_47010800(void) { 1203 int _fpu_cmp = 0; 1204 uint32_t _cf = 0; 1205 int _df = 1; 1206 uint32_t _flag_k = FK_NONE; 1207 uint32_t _flag_a = 0, _flag_b = 0; 1208 uint32_t _itail_tgt = 0; 1209 RECOMP_REGS_LOCALS 1210 RECOMP_ENTER(0x47010800u); 1211 1212 L_47010800: 1213 PUSH32(esp, ebx); /* 0x47010800: push ebx */ 1214 RECOMP_ICALL(0x47039020u); /* 0x47010801: call 0x47039020 */ /* not lifted */ 1215 RECOMP_FLAGS_IN(); 1216 ecx = eax; /* 0x47010806: mov ecx, eax */ 1217 RECOMP_ICALL(0x4703B0F0u); /* 0x47010808: call 0x4703b0f0 */ /* not lifted */ 1218 RECOMP_FLAGS_IN(); 1219 ebx = eax; /* 0x4701080D: mov ebx, eax */ 1220 /* test ebx, ebx */ /* 0x4701080F: test ebx, ebx */ 1221 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1222 _cf = 0; 1223 _flag_k = FK_TEST; 1224 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701087E; /* 0x47010811: jne 0x4701087e */ 1225 L_47010813: 1226 PUSH32(esp, esi); /* 0x47010813: push esi */ 1227 PUSH32(esp, edi); /* 0x47010814: push edi */ 1228 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47010815: call dword ptr [0x470ac150] */ 1229 RECOMP_FLAGS_IN(); 1230 edi = eax; /* 0x4701081B: mov edi, eax */ 1231 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4701081D: call dword ptr [0x470ac3c8] */ 1232 RECOMP_FLAGS_IN(); 1233 eax = MEM32(eax); /* 0x47010823: mov eax, dword ptr [eax] */ 1234 /* test eax, eax */ /* 0x47010825: test eax, eax */ 1235 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1236 _cf = 0; 1237 _flag_k = FK_TEST; 1238 if (TEST_Z(_flag_a, _flag_b)) goto L_4701082B; /* 0x47010827: je 0x4701082b */ 1239 L_47010829: 1240 edi = eax; /* 0x47010829: mov edi, eax */ 1241 L_4701082B: 1242 RECOMP_ICALL(0x47039020u); /* 0x4701082B: call 0x47039020 */ /* not lifted */ 1243 RECOMP_FLAGS_IN(); 1244 esi = eax; /* 0x47010830: mov esi, eax */ 1245 ecx = esi; /* 0x47010832: mov ecx, esi */ 1246 RECOMP_ICALL(0x4703B210u); /* 0x47010834: call 0x4703b210 */ /* not lifted */ 1247 RECOMP_FLAGS_IN(); 1248 PUSH32(esp, eax); /* 0x47010839: push eax */ 1249 ecx = esi; /* 0x4701083A: mov ecx, esi */ 1250 RECOMP_ICALL(0x4703B240u); /* 0x4701083C: call 0x4703b240 */ /* not lifted */ 1251 RECOMP_FLAGS_IN(); 1252 PUSH32(esp, eax); /* 0x47010841: push eax */ 1253 ecx = esi; /* 0x47010842: mov ecx, esi */ 1254 RECOMP_ICALL(0x4703B080u); /* 0x47010844: call 0x4703b080 */ /* not lifted */ 1255 RECOMP_FLAGS_IN(); 1256 PUSH32(esp, eax); /* 0x47010849: push eax */ 1257 PUSH32(esp, edi); /* 0x4701084A: push edi */ 1258 PUSH32(esp, 0xFFFFFFFFu); /* 0x4701084B: push -1 */ 1259 PUSH32(esp, 0xECu); /* 0x4701084D: push 0xec */ 1260 PUSH32(esp, 0x47105140u); /* 0x47010852: push 0x47105140 */ 1261 ecx = esi; /* 0x47010857: mov ecx, esi */ 1262 RECOMP_ICALL(0x4703A340u); /* 0x47010859: call 0x4703a340 */ /* not lifted */ 1263 RECOMP_FLAGS_IN(); 1264 PUSH32(esp, 0xFFFFFFFFu); /* 0x4701085E: push -1 */ 1265 PUSH32(esp, 0x47105134u); /* 0x47010860: push 0x47105134 */ 1266 PUSH32(esp, 0x47104AA4u); /* 0x47010865: push 0x47104aa4 */ 1267 PUSH32(esp, 0x80u); /* 0x4701086A: push 0x80 */ 1268 PUSH32(esp, esi); /* 0x4701086F: push esi */ 1269 RECOMP_ICALL(0x47039830u); /* 0x47010870: call 0x47039830 */ /* not lifted */ 1270 RECOMP_FLAGS_IN(); 1271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1273 esp = esp + 0x14u; /* 0x47010875: add esp, 0x14 */ 1274 _flag_k = FK_ADD; 1275 edi = POP32_VAL(esp); /* 0x47010878: pop edi */ 1276 esi = POP32_VAL(esp); /* 0x47010879: pop esi */ 1277 eax = ebx; /* 0x4701087A: mov eax, ebx */ 1278 ebx = POP32_VAL(esp); /* 0x4701087C: pop ebx */ 1279 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701087D: ret */ 1280 L_4701087E: 1281 eax = ebx; /* 0x4701087E: mov eax, ebx */ 1282 ebx = POP32_VAL(esp); /* 0x47010880: pop ebx */ 1283 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010881: ret */ 1284 RECOMP_REGS_OUT(); 1285 } 1286 1287 void sub_47010890(void) { 1288 int _fpu_cmp = 0; 1289 uint32_t _cf = 0; 1290 int _df = 1; 1291 uint32_t _flag_k = FK_NONE; 1292 uint32_t _flag_a = 0, _flag_b = 0; 1293 uint32_t _itail_tgt = 0; 1294 RECOMP_REGS_LOCALS 1295 RECOMP_ENTER(0x47010890u); 1296 1297 L_47010890: 1298 { _itail_tgt = (uint32_t)(MEM32(0x470AC14C)); goto _ljump; } 1299 { RECOMP_REGS_OUT(); return; } /* end of function */ 1300 _ljump: 1301 switch (_itail_tgt) { 1302 case 0x47010890u: goto L_47010890; 1303 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1304 } 1305 RECOMP_REGS_OUT(); 1306 } 1307 1308 void sub_470108A0(void) { 1309 int _fpu_cmp = 0; 1310 uint32_t _cf = 0; 1311 int _df = 1; 1312 uint32_t _flag_k = FK_NONE; 1313 uint32_t _flag_a = 0, _flag_b = 0; 1314 uint32_t _itail_tgt = 0; 1315 RECOMP_REGS_LOCALS 1316 RECOMP_ENTER(0x470108A0u); 1317 1318 L_470108A0: 1319 RECOMP_ICALL(0x47039020u); /* 0x470108A0: call 0x47039020 */ /* not lifted */ 1320 RECOMP_FLAGS_IN(); 1321 ecx = eax; /* 0x470108A5: mov ecx, eax */ 1322 RECOMP_ICALL(0x4703B0F0u); /* 0x470108A7: call 0x4703b0f0 */ /* not lifted */ 1323 RECOMP_FLAGS_IN(); 1324 /* test eax, eax */ /* 0x470108AC: test eax, eax */ 1325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1326 _cf = 0; 1327 _flag_k = FK_TEST; 1328 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701091A; /* 0x470108AE: jne 0x4701091a */ 1329 L_470108B0: 1330 PUSH32(esp, esi); /* 0x470108B0: push esi */ 1331 PUSH32(esp, edi); /* 0x470108B1: push edi */ 1332 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470108B2: call dword ptr [0x470ac150] */ 1333 RECOMP_FLAGS_IN(); 1334 edi = eax; /* 0x470108B8: mov edi, eax */ 1335 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470108BA: call dword ptr [0x470ac3c8] */ 1336 RECOMP_FLAGS_IN(); 1337 eax = MEM32(eax); /* 0x470108C0: mov eax, dword ptr [eax] */ 1338 /* test eax, eax */ /* 0x470108C2: test eax, eax */ 1339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1340 _cf = 0; 1341 _flag_k = FK_TEST; 1342 if (TEST_Z(_flag_a, _flag_b)) goto L_470108C8; /* 0x470108C4: je 0x470108c8 */ 1343 L_470108C6: 1344 edi = eax; /* 0x470108C6: mov edi, eax */ 1345 L_470108C8: 1346 RECOMP_ICALL(0x47039020u); /* 0x470108C8: call 0x47039020 */ /* not lifted */ 1347 RECOMP_FLAGS_IN(); 1348 esi = eax; /* 0x470108CD: mov esi, eax */ 1349 ecx = esi; /* 0x470108CF: mov ecx, esi */ 1350 RECOMP_ICALL(0x4703B210u); /* 0x470108D1: call 0x4703b210 */ /* not lifted */ 1351 RECOMP_FLAGS_IN(); 1352 PUSH32(esp, eax); /* 0x470108D6: push eax */ 1353 ecx = esi; /* 0x470108D7: mov ecx, esi */ 1354 RECOMP_ICALL(0x4703B240u); /* 0x470108D9: call 0x4703b240 */ /* not lifted */ 1355 RECOMP_FLAGS_IN(); 1356 PUSH32(esp, eax); /* 0x470108DE: push eax */ 1357 ecx = esi; /* 0x470108DF: mov ecx, esi */ 1358 RECOMP_ICALL(0x4703B080u); /* 0x470108E1: call 0x4703b080 */ /* not lifted */ 1359 RECOMP_FLAGS_IN(); 1360 PUSH32(esp, eax); /* 0x470108E6: push eax */ 1361 PUSH32(esp, edi); /* 0x470108E7: push edi */ 1362 PUSH32(esp, 0xFFFFFFFFu); /* 0x470108E8: push -1 */ 1363 PUSH32(esp, 0xECu); /* 0x470108EA: push 0xec */ 1364 PUSH32(esp, 0x47105140u); /* 0x470108EF: push 0x47105140 */ 1365 ecx = esi; /* 0x470108F4: mov ecx, esi */ 1366 RECOMP_ICALL(0x4703A340u); /* 0x470108F6: call 0x4703a340 */ /* not lifted */ 1367 RECOMP_FLAGS_IN(); 1368 PUSH32(esp, 0xFFFFFFFFu); /* 0x470108FB: push -1 */ 1369 PUSH32(esp, 0x47105134u); /* 0x470108FD: push 0x47105134 */ 1370 PUSH32(esp, 0x47104AA4u); /* 0x47010902: push 0x47104aa4 */ 1371 PUSH32(esp, 0x80u); /* 0x47010907: push 0x80 */ 1372 PUSH32(esp, esi); /* 0x4701090C: push esi */ 1373 RECOMP_ICALL(0x47039830u); /* 0x4701090D: call 0x47039830 */ /* not lifted */ 1374 RECOMP_FLAGS_IN(); 1375 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1377 esp = esp + 0x14u; /* 0x47010912: add esp, 0x14 */ 1378 _flag_k = FK_ADD; 1379 edi = POP32_VAL(esp); /* 0x47010915: pop edi */ 1380 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1381 eax = 0; /* 0x47010916: xor eax, eax */ 1382 _cf = 0; 1383 _flag_k = FK_TEST; 1384 esi = POP32_VAL(esp); /* 0x47010918: pop esi */ 1385 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010919: ret */ 1386 L_4701091A: 1387 eax = MEM32(eax + 0x14); /* 0x4701091A: mov eax, dword ptr [eax + 0x14] */ 1388 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701091D: ret */ 1389 RECOMP_REGS_OUT(); 1390 } 1391 1392 void sub_47010920(void) { 1393 int _fpu_cmp = 0; 1394 uint32_t _cf = 0; 1395 int _df = 1; 1396 uint32_t _flag_k = FK_NONE; 1397 uint32_t _flag_a = 0, _flag_b = 0; 1398 uint32_t _itail_tgt = 0; 1399 RECOMP_REGS_LOCALS 1400 RECOMP_ENTER(0x47010920u); 1401 1402 L_47010920: 1403 PUSH32(esp, ebx); /* 0x47010920: push ebx */ 1404 RECOMP_ICALL(0x47039020u); /* 0x47010921: call 0x47039020 */ /* not lifted */ 1405 RECOMP_FLAGS_IN(); 1406 ecx = eax; /* 0x47010926: mov ecx, eax */ 1407 RECOMP_ICALL(0x4703B0F0u); /* 0x47010928: call 0x4703b0f0 */ /* not lifted */ 1408 RECOMP_FLAGS_IN(); 1409 ebx = eax; /* 0x4701092D: mov ebx, eax */ 1410 /* test ebx, ebx */ /* 0x4701092F: test ebx, ebx */ 1411 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1412 _cf = 0; 1413 _flag_k = FK_TEST; 1414 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701099A; /* 0x47010931: jne 0x4701099a */ 1415 L_47010933: 1416 PUSH32(esp, esi); /* 0x47010933: push esi */ 1417 PUSH32(esp, edi); /* 0x47010934: push edi */ 1418 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47010935: call dword ptr [0x470ac150] */ 1419 RECOMP_FLAGS_IN(); 1420 edi = eax; /* 0x4701093B: mov edi, eax */ 1421 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4701093D: call dword ptr [0x470ac3c8] */ 1422 RECOMP_FLAGS_IN(); 1423 eax = MEM32(eax); /* 0x47010943: mov eax, dword ptr [eax] */ 1424 /* test eax, eax */ /* 0x47010945: test eax, eax */ 1425 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1426 _cf = 0; 1427 _flag_k = FK_TEST; 1428 if (TEST_Z(_flag_a, _flag_b)) goto L_4701094B; /* 0x47010947: je 0x4701094b */ 1429 L_47010949: 1430 edi = eax; /* 0x47010949: mov edi, eax */ 1431 L_4701094B: 1432 RECOMP_ICALL(0x47039020u); /* 0x4701094B: call 0x47039020 */ /* not lifted */ 1433 RECOMP_FLAGS_IN(); 1434 esi = eax; /* 0x47010950: mov esi, eax */ 1435 ecx = esi; /* 0x47010952: mov ecx, esi */ 1436 RECOMP_ICALL(0x4703B210u); /* 0x47010954: call 0x4703b210 */ /* not lifted */ 1437 RECOMP_FLAGS_IN(); 1438 PUSH32(esp, eax); /* 0x47010959: push eax */ 1439 ecx = esi; /* 0x4701095A: mov ecx, esi */ 1440 RECOMP_ICALL(0x4703B240u); /* 0x4701095C: call 0x4703b240 */ /* not lifted */ 1441 RECOMP_FLAGS_IN(); 1442 PUSH32(esp, eax); /* 0x47010961: push eax */ 1443 ecx = esi; /* 0x47010962: mov ecx, esi */ 1444 RECOMP_ICALL(0x4703B080u); /* 0x47010964: call 0x4703b080 */ /* not lifted */ 1445 RECOMP_FLAGS_IN(); 1446 PUSH32(esp, eax); /* 0x47010969: push eax */ 1447 PUSH32(esp, edi); /* 0x4701096A: push edi */ 1448 PUSH32(esp, 0xFFFFFFFFu); /* 0x4701096B: push -1 */ 1449 PUSH32(esp, 0xECu); /* 0x4701096D: push 0xec */ 1450 PUSH32(esp, 0x47105140u); /* 0x47010972: push 0x47105140 */ 1451 ecx = esi; /* 0x47010977: mov ecx, esi */ 1452 RECOMP_ICALL(0x4703A340u); /* 0x47010979: call 0x4703a340 */ /* not lifted */ 1453 RECOMP_FLAGS_IN(); 1454 PUSH32(esp, 0xFFFFFFFFu); /* 0x4701097E: push -1 */ 1455 PUSH32(esp, 0x47105134u); /* 0x47010980: push 0x47105134 */ 1456 PUSH32(esp, 0x47104AA4u); /* 0x47010985: push 0x47104aa4 */ 1457 PUSH32(esp, 0x80u); /* 0x4701098A: push 0x80 */ 1458 PUSH32(esp, esi); /* 0x4701098F: push esi */ 1459 RECOMP_ICALL(0x47039830u); /* 0x47010990: call 0x47039830 */ /* not lifted */ 1460 RECOMP_FLAGS_IN(); 1461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1463 esp = esp + 0x14u; /* 0x47010995: add esp, 0x14 */ 1464 _flag_k = FK_ADD; 1465 edi = POP32_VAL(esp); /* 0x47010998: pop edi */ 1466 esi = POP32_VAL(esp); /* 0x47010999: pop esi */ 1467 L_4701099A: 1468 eax = MEM32(esp + 0x8); /* 0x4701099A: mov eax, dword ptr [esp + 8] */ 1469 PUSH32(esp, eax); /* 0x4701099E: push eax */ 1470 ecx = ebx; /* 0x4701099F: mov ecx, ebx */ 1471 RECOMP_ICALL(0x47089BE0u); /* 0x470109A1: call 0x47089be0 */ /* not lifted */ 1472 RECOMP_FLAGS_IN(); 1473 ebx = POP32_VAL(esp); /* 0x470109A6: pop ebx */ 1474 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470109A7: ret 4 */ 1475 RECOMP_REGS_OUT(); 1476 } 1477 1478 void sub_470109B0(void) { 1479 int _fpu_cmp = 0; 1480 uint32_t _cf = 0; 1481 int _df = 1; 1482 uint32_t _flag_k = FK_NONE; 1483 uint32_t _flag_a = 0, _flag_b = 0; 1484 uint32_t _itail_tgt = 0; 1485 RECOMP_REGS_LOCALS 1486 RECOMP_ENTER(0x470109B0u); 1487 1488 L_470109B0: 1489 PUSH32(esp, ebx); /* 0x470109B0: push ebx */ 1490 RECOMP_ICALL(0x47039020u); /* 0x470109B1: call 0x47039020 */ /* not lifted */ 1491 RECOMP_FLAGS_IN(); 1492 ecx = eax; /* 0x470109B6: mov ecx, eax */ 1493 RECOMP_ICALL(0x4703B0F0u); /* 0x470109B8: call 0x4703b0f0 */ /* not lifted */ 1494 RECOMP_FLAGS_IN(); 1495 ebx = eax; /* 0x470109BD: mov ebx, eax */ 1496 /* test ebx, ebx */ /* 0x470109BF: test ebx, ebx */ 1497 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1498 _cf = 0; 1499 _flag_k = FK_TEST; 1500 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010A2A; /* 0x470109C1: jne 0x47010a2a */ 1501 L_470109C3: 1502 PUSH32(esp, esi); /* 0x470109C3: push esi */ 1503 PUSH32(esp, edi); /* 0x470109C4: push edi */ 1504 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470109C5: call dword ptr [0x470ac150] */ 1505 RECOMP_FLAGS_IN(); 1506 edi = eax; /* 0x470109CB: mov edi, eax */ 1507 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470109CD: call dword ptr [0x470ac3c8] */ 1508 RECOMP_FLAGS_IN(); 1509 eax = MEM32(eax); /* 0x470109D3: mov eax, dword ptr [eax] */ 1510 /* test eax, eax */ /* 0x470109D5: test eax, eax */ 1511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1512 _cf = 0; 1513 _flag_k = FK_TEST; 1514 if (TEST_Z(_flag_a, _flag_b)) goto L_470109DB; /* 0x470109D7: je 0x470109db */ 1515 L_470109D9: 1516 edi = eax; /* 0x470109D9: mov edi, eax */ 1517 L_470109DB: 1518 RECOMP_ICALL(0x47039020u); /* 0x470109DB: call 0x47039020 */ /* not lifted */ 1519 RECOMP_FLAGS_IN(); 1520 esi = eax; /* 0x470109E0: mov esi, eax */ 1521 ecx = esi; /* 0x470109E2: mov ecx, esi */ 1522 RECOMP_ICALL(0x4703B210u); /* 0x470109E4: call 0x4703b210 */ /* not lifted */ 1523 RECOMP_FLAGS_IN(); 1524 PUSH32(esp, eax); /* 0x470109E9: push eax */ 1525 ecx = esi; /* 0x470109EA: mov ecx, esi */ 1526 RECOMP_ICALL(0x4703B240u); /* 0x470109EC: call 0x4703b240 */ /* not lifted */ 1527 RECOMP_FLAGS_IN(); 1528 PUSH32(esp, eax); /* 0x470109F1: push eax */ 1529 ecx = esi; /* 0x470109F2: mov ecx, esi */ 1530 RECOMP_ICALL(0x4703B080u); /* 0x470109F4: call 0x4703b080 */ /* not lifted */ 1531 RECOMP_FLAGS_IN(); 1532 PUSH32(esp, eax); /* 0x470109F9: push eax */ 1533 PUSH32(esp, edi); /* 0x470109FA: push edi */ 1534 PUSH32(esp, 0xFFFFFFFFu); /* 0x470109FB: push -1 */ 1535 PUSH32(esp, 0xECu); /* 0x470109FD: push 0xec */ 1536 PUSH32(esp, 0x47105140u); /* 0x47010A02: push 0x47105140 */ 1537 ecx = esi; /* 0x47010A07: mov ecx, esi */ 1538 RECOMP_ICALL(0x4703A340u); /* 0x47010A09: call 0x4703a340 */ /* not lifted */ 1539 RECOMP_FLAGS_IN(); 1540 PUSH32(esp, 0xFFFFFFFFu); /* 0x47010A0E: push -1 */ 1541 PUSH32(esp, 0x47105134u); /* 0x47010A10: push 0x47105134 */ 1542 PUSH32(esp, 0x47104AA4u); /* 0x47010A15: push 0x47104aa4 */ 1543 PUSH32(esp, 0x80u); /* 0x47010A1A: push 0x80 */ 1544 PUSH32(esp, esi); /* 0x47010A1F: push esi */ 1545 RECOMP_ICALL(0x47039830u); /* 0x47010A20: call 0x47039830 */ /* not lifted */ 1546 RECOMP_FLAGS_IN(); 1547 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1548 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1549 esp = esp + 0x14u; /* 0x47010A25: add esp, 0x14 */ 1550 _flag_k = FK_ADD; 1551 edi = POP32_VAL(esp); /* 0x47010A28: pop edi */ 1552 esi = POP32_VAL(esp); /* 0x47010A29: pop esi */ 1553 L_47010A2A: 1554 eax = MEM32(esp + 0x8); /* 0x47010A2A: mov eax, dword ptr [esp + 8] */ 1555 PUSH32(esp, eax); /* 0x47010A2E: push eax */ 1556 ecx = ebx; /* 0x47010A2F: mov ecx, ebx */ 1557 RECOMP_ICALL(0x47089BC0u); /* 0x47010A31: call 0x47089bc0 */ /* not lifted */ 1558 RECOMP_FLAGS_IN(); 1559 ebx = POP32_VAL(esp); /* 0x47010A36: pop ebx */ 1560 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010A37: ret 4 */ 1561 RECOMP_REGS_OUT(); 1562 } 1563 1564 void sub_47010A40(void) { 1565 int _fpu_cmp = 0; 1566 uint32_t _cf = 0; 1567 int _df = 1; 1568 uint32_t _flag_k = FK_NONE; 1569 uint32_t _flag_a = 0, _flag_b = 0; 1570 uint32_t _itail_tgt = 0; 1571 RECOMP_REGS_LOCALS 1572 RECOMP_ENTER(0x47010A40u); 1573 1574 L_47010A40: 1575 PUSH32(esp, ebx); /* 0x47010A40: push ebx */ 1576 RECOMP_ICALL(0x47039020u); /* 0x47010A41: call 0x47039020 */ /* not lifted */ 1577 RECOMP_FLAGS_IN(); 1578 ecx = eax; /* 0x47010A46: mov ecx, eax */ 1579 RECOMP_ICALL(0x4703B0F0u); /* 0x47010A48: call 0x4703b0f0 */ /* not lifted */ 1580 RECOMP_FLAGS_IN(); 1581 ebx = eax; /* 0x47010A4D: mov ebx, eax */ 1582 /* test ebx, ebx */ /* 0x47010A4F: test ebx, ebx */ 1583 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1584 _cf = 0; 1585 _flag_k = FK_TEST; 1586 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010ABA; /* 0x47010A51: jne 0x47010aba */ 1587 L_47010A53: 1588 PUSH32(esp, esi); /* 0x47010A53: push esi */ 1589 PUSH32(esp, edi); /* 0x47010A54: push edi */ 1590 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47010A55: call dword ptr [0x470ac150] */ 1591 RECOMP_FLAGS_IN(); 1592 edi = eax; /* 0x47010A5B: mov edi, eax */ 1593 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47010A5D: call dword ptr [0x470ac3c8] */ 1594 RECOMP_FLAGS_IN(); 1595 eax = MEM32(eax); /* 0x47010A63: mov eax, dword ptr [eax] */ 1596 /* test eax, eax */ /* 0x47010A65: test eax, eax */ 1597 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1598 _cf = 0; 1599 _flag_k = FK_TEST; 1600 if (TEST_Z(_flag_a, _flag_b)) goto L_47010A6B; /* 0x47010A67: je 0x47010a6b */ 1601 L_47010A69: 1602 edi = eax; /* 0x47010A69: mov edi, eax */ 1603 L_47010A6B: 1604 RECOMP_ICALL(0x47039020u); /* 0x47010A6B: call 0x47039020 */ /* not lifted */ 1605 RECOMP_FLAGS_IN(); 1606 esi = eax; /* 0x47010A70: mov esi, eax */ 1607 ecx = esi; /* 0x47010A72: mov ecx, esi */ 1608 RECOMP_ICALL(0x4703B210u); /* 0x47010A74: call 0x4703b210 */ /* not lifted */ 1609 RECOMP_FLAGS_IN(); 1610 PUSH32(esp, eax); /* 0x47010A79: push eax */ 1611 ecx = esi; /* 0x47010A7A: mov ecx, esi */ 1612 RECOMP_ICALL(0x4703B240u); /* 0x47010A7C: call 0x4703b240 */ /* not lifted */ 1613 RECOMP_FLAGS_IN(); 1614 PUSH32(esp, eax); /* 0x47010A81: push eax */ 1615 ecx = esi; /* 0x47010A82: mov ecx, esi */ 1616 RECOMP_ICALL(0x4703B080u); /* 0x47010A84: call 0x4703b080 */ /* not lifted */ 1617 RECOMP_FLAGS_IN(); 1618 PUSH32(esp, eax); /* 0x47010A89: push eax */ 1619 PUSH32(esp, edi); /* 0x47010A8A: push edi */ 1620 PUSH32(esp, 0xFFFFFFFFu); /* 0x47010A8B: push -1 */ 1621 PUSH32(esp, 0xECu); /* 0x47010A8D: push 0xec */ 1622 PUSH32(esp, 0x47105140u); /* 0x47010A92: push 0x47105140 */ 1623 ecx = esi; /* 0x47010A97: mov ecx, esi */ 1624 RECOMP_ICALL(0x4703A340u); /* 0x47010A99: call 0x4703a340 */ /* not lifted */ 1625 RECOMP_FLAGS_IN(); 1626 PUSH32(esp, 0xFFFFFFFFu); /* 0x47010A9E: push -1 */ 1627 PUSH32(esp, 0x47105134u); /* 0x47010AA0: push 0x47105134 */ 1628 PUSH32(esp, 0x47104AA4u); /* 0x47010AA5: push 0x47104aa4 */ 1629 PUSH32(esp, 0x80u); /* 0x47010AAA: push 0x80 */ 1630 PUSH32(esp, esi); /* 0x47010AAF: push esi */ 1631 RECOMP_ICALL(0x47039830u); /* 0x47010AB0: call 0x47039830 */ /* not lifted */ 1632 RECOMP_FLAGS_IN(); 1633 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1634 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1635 esp = esp + 0x14u; /* 0x47010AB5: add esp, 0x14 */ 1636 _flag_k = FK_ADD; 1637 edi = POP32_VAL(esp); /* 0x47010AB8: pop edi */ 1638 esi = POP32_VAL(esp); /* 0x47010AB9: pop esi */ 1639 L_47010ABA: 1640 eax = MEM32(esp + 0x10); /* 0x47010ABA: mov eax, dword ptr [esp + 0x10] */ 1641 ecx = MEM32(esp + 0xC); /* 0x47010ABE: mov ecx, dword ptr [esp + 0xc] */ 1642 edx = MEM32(esp + 0x8); /* 0x47010AC2: mov edx, dword ptr [esp + 8] */ 1643 PUSH32(esp, eax); /* 0x47010AC6: push eax */ 1644 PUSH32(esp, ecx); /* 0x47010AC7: push ecx */ 1645 PUSH32(esp, edx); /* 0x47010AC8: push edx */ 1646 ecx = ebx; /* 0x47010AC9: mov ecx, ebx */ 1647 RECOMP_ICALL(0x47089DC0u); /* 0x47010ACB: call 0x47089dc0 */ /* not lifted */ 1648 RECOMP_FLAGS_IN(); 1649 ebx = POP32_VAL(esp); /* 0x47010AD0: pop ebx */ 1650 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47010AD1: ret 0xc */ 1651 RECOMP_REGS_OUT(); 1652 } 1653 1654 void sub_47010AE0(void) { 1655 int _fpu_cmp = 0; 1656 uint32_t _cf = 0; 1657 int _df = 1; 1658 uint32_t _flag_k = FK_NONE; 1659 uint32_t _flag_a = 0, _flag_b = 0; 1660 uint32_t _itail_tgt = 0; 1661 RECOMP_REGS_LOCALS 1662 RECOMP_ENTER(0x47010AE0u); 1663 1664 L_47010AE0: 1665 eax = MEM32(esp + 0x4); /* 0x47010AE0: mov eax, dword ptr [esp + 4] */ 1666 MEM32(ecx + 0x2C) = eax; /* 0x47010AE4: mov dword ptr [ecx + 0x2c], eax */ 1667 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010AE7: ret 4 */ 1668 RECOMP_REGS_OUT(); 1669 } 1670 1671 void sub_47010AF0(void) { 1672 int _fpu_cmp = 0; 1673 uint32_t _cf = 0; 1674 int _df = 1; 1675 uint32_t _flag_k = FK_NONE; 1676 uint32_t _flag_a = 0, _flag_b = 0; 1677 uint32_t _itail_tgt = 0; 1678 RECOMP_REGS_LOCALS 1679 RECOMP_ENTER(0x47010AF0u); 1680 1681 L_47010AF0: 1682 PUSH32(esp, ebx); /* 0x47010AF0: push ebx */ 1683 PUSH32(esp, 0x20u); /* 0x47010AF1: push 0x20 */ 1684 ebx = ecx; /* 0x47010AF3: mov ebx, ecx */ 1685 RECOMP_ICALL(0x470A33F2u); /* 0x47010AF5: call 0x470a33f2 */ /* not lifted */ 1686 RECOMP_FLAGS_IN(); 1687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1689 esp = esp + 4; /* 0x47010AFA: add esp, 4 */ 1690 _flag_k = FK_ADD; 1691 /* test eax, eax */ /* 0x47010AFD: test eax, eax */ 1692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1693 _cf = 0; 1694 _flag_k = FK_TEST; 1695 if (TEST_Z(_flag_a, _flag_b)) goto L_47010B34; /* 0x47010AFF: je 0x47010b34 */ 1696 L_47010B01: 1697 PUSH32(esp, esi); /* 0x47010B01: push esi */ 1698 esi = MEM32(esp + 0xC); /* 0x47010B02: mov esi, dword ptr [esp + 0xc] */ 1699 PUSH32(esp, edi); /* 0x47010B06: push edi */ 1700 edi = eax; /* 0x47010B07: mov edi, eax */ 1701 ecx = 8; /* 0x47010B09: mov ecx, 8 */ 1702 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47010B0E: 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; } 1703 ecx = MEM32(ebx + 0x10); /* 0x47010B10: mov ecx, dword ptr [ebx + 0x10] */ 1704 ecx = MEM32(ecx + 0x1C); /* 0x47010B13: mov ecx, dword ptr [ecx + 0x1c] */ 1705 edx = MEM32(ecx + 0x18); /* 0x47010B16: mov edx, dword ptr [ecx + 0x18] */ 1706 MEM32(eax + 0x18) = edx; /* 0x47010B19: mov dword ptr [eax + 0x18], edx */ 1707 MEM32(edx + 0x1C) = eax; /* 0x47010B1C: mov dword ptr [edx + 0x1c], eax */ 1708 MEM32(eax + 0x1C) = ecx; /* 0x47010B1F: mov dword ptr [eax + 0x1c], ecx */ 1709 MEM32(ecx + 0x18) = eax; /* 0x47010B22: mov dword ptr [ecx + 0x18], eax */ 1710 eax = MEM32(ebx + 0x14); /* 0x47010B25: mov eax, dword ptr [ebx + 0x14] */ 1711 edi = POP32_VAL(esp); /* 0x47010B28: pop edi */ 1712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1713 eax = eax + 1; /* 0x47010B29: inc eax */ 1714 _flag_k = FK_INC; 1715 esi = POP32_VAL(esp); /* 0x47010B2A: pop esi */ 1716 MEM32(ebx + 0x14) = eax; /* 0x47010B2B: mov dword ptr [ebx + 0x14], eax */ 1717 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1718 eax = 0; /* 0x47010B2E: xor eax, eax */ 1719 _cf = 0; 1720 _flag_k = FK_TEST; 1721 ebx = POP32_VAL(esp); /* 0x47010B30: pop ebx */ 1722 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010B31: ret 4 */ 1723 L_47010B34: 1724 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47010B34: call dword ptr [0x470ac3c8] */ 1725 RECOMP_FLAGS_IN(); 1726 MEM32(eax) = 0xCu; /* 0x47010B3A: mov dword ptr [eax], 0xc */ 1727 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 1728 eax = eax | 0xFFFFFFFFu; /* 0x47010B40: or eax, 0xffffffff */ 1729 _cf = 0; 1730 _flag_k = FK_TEST; 1731 ebx = POP32_VAL(esp); /* 0x47010B43: pop ebx */ 1732 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010B44: ret 4 */ 1733 RECOMP_REGS_OUT(); 1734 } 1735 1736 void sub_47010B50(void) { 1737 int _fpu_cmp = 0; 1738 uint32_t _cf = 0; 1739 int _df = 1; 1740 uint32_t _flag_k = FK_NONE; 1741 uint32_t _flag_a = 0, _flag_b = 0; 1742 uint32_t _itail_tgt = 0; 1743 RECOMP_REGS_LOCALS 1744 RECOMP_ENTER(0x47010B50u); 1745 1746 L_47010B50: 1747 eax = ecx; /* 0x47010B50: mov eax, ecx */ 1748 MEM32(eax) = 0x470AC9D0u; /* 0x47010B52: mov dword ptr [eax], 0x470ac9d0 */ 1749 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010B58: ret 4 */ 1750 RECOMP_REGS_OUT(); 1751 } 1752 1753 void sub_47010B60(void) { 1754 int _fpu_cmp = 0; 1755 uint32_t _cf = 0; 1756 int _df = 1; 1757 uint32_t _flag_k = FK_NONE; 1758 uint32_t _flag_a = 0, _flag_b = 0; 1759 uint32_t _itail_tgt = 0; 1760 RECOMP_REGS_LOCALS 1761 RECOMP_ENTER(0x47010B60u); 1762 1763 L_47010B60: 1764 PUSH32(esp, ebx); /* 0x47010B60: push ebx */ 1765 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47010B61: mov bl, byte ptr [esp + 8] */ 1766 /* test LO8(ebx), 2 */ /* 0x47010B65: test bl, 2 */ 1767 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1768 _cf = 0; 1769 _flag_k = FK_NARROW(FK_TEST, 24); 1770 PUSH32(esp, esi); /* 0x47010B68: push esi */ 1771 esi = ecx; /* 0x47010B69: mov esi, ecx */ 1772 if (TEST_Z(_flag_a, _flag_b)) goto L_47010B98; /* 0x47010B6B: je 0x47010b98 */ 1773 L_47010B6D: 1774 eax = MEM32(esi + (-0x4)); /* 0x47010B6D: mov eax, dword ptr [esi - 4] */ 1775 PUSH32(esp, edi); /* 0x47010B70: push edi */ 1776 PUSH32(esp, 0x47010BD0u); /* 0x47010B71: push 0x47010bd0 */ 1777 edi = esi + (-0x4); /* 0x47010B76: lea edi, [esi - 4] */ 1778 PUSH32(esp, eax); /* 0x47010B79: push eax */ 1779 PUSH32(esp, 4); /* 0x47010B7A: push 4 */ 1780 PUSH32(esp, esi); /* 0x47010B7C: push esi */ 1781 RECOMP_ICALL(0x470A32EBu); /* 0x47010B7D: call 0x470a32eb */ /* not lifted */ 1782 RECOMP_FLAGS_IN(); 1783 /* test LO8(ebx), 1 */ /* 0x47010B82: test bl, 1 */ 1784 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1785 _cf = 0; 1786 _flag_k = FK_NARROW(FK_TEST, 24); 1787 if (TEST_Z(_flag_a, _flag_b)) goto L_47010B90; /* 0x47010B85: je 0x47010b90 */ 1788 L_47010B87: 1789 PUSH32(esp, edi); /* 0x47010B87: push edi */ 1790 RECOMP_ICALL(0x470A32A2u); /* 0x47010B88: call 0x470a32a2 */ /* not lifted */ 1791 RECOMP_FLAGS_IN(); 1792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1793 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1794 esp = esp + 4; /* 0x47010B8D: add esp, 4 */ 1795 _flag_k = FK_ADD; 1796 L_47010B90: 1797 eax = edi; /* 0x47010B90: mov eax, edi */ 1798 edi = POP32_VAL(esp); /* 0x47010B92: pop edi */ 1799 esi = POP32_VAL(esp); /* 0x47010B93: pop esi */ 1800 ebx = POP32_VAL(esp); /* 0x47010B94: pop ebx */ 1801 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010B95: ret 4 */ 1802 L_47010B98: 1803 /* test LO8(ebx), 1 */ /* 0x47010B98: test bl, 1 */ 1804 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1805 _cf = 0; 1806 _flag_k = FK_NARROW(FK_TEST, 24); 1807 MEM32(esi) = 0x470AC9D0u; /* 0x47010B9B: mov dword ptr [esi], 0x470ac9d0 */ 1808 if (TEST_Z(_flag_a, _flag_b)) goto L_47010BAC; /* 0x47010BA1: je 0x47010bac */ 1809 L_47010BA3: 1810 PUSH32(esp, esi); /* 0x47010BA3: push esi */ 1811 RECOMP_ICALL(0x470A32A2u); /* 0x47010BA4: call 0x470a32a2 */ /* not lifted */ 1812 RECOMP_FLAGS_IN(); 1813 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1814 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1815 esp = esp + 4; /* 0x47010BA9: add esp, 4 */ 1816 _flag_k = FK_ADD; 1817 L_47010BAC: 1818 eax = esi; /* 0x47010BAC: mov eax, esi */ 1819 esi = POP32_VAL(esp); /* 0x47010BAE: pop esi */ 1820 ebx = POP32_VAL(esp); /* 0x47010BAF: pop ebx */ 1821 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010BB0: ret 4 */ 1822 RECOMP_REGS_OUT(); 1823 } 1824 1825 void sub_47010BC0(void) { 1826 int _fpu_cmp = 0; 1827 uint32_t _cf = 0; 1828 int _df = 1; 1829 uint32_t _flag_k = FK_NONE; 1830 uint32_t _flag_a = 0, _flag_b = 0; 1831 uint32_t _itail_tgt = 0; 1832 RECOMP_REGS_LOCALS 1833 RECOMP_ENTER(0x47010BC0u); 1834 1835 L_47010BC0: 1836 eax = ecx; /* 0x47010BC0: mov eax, ecx */ 1837 MEM32(eax) = 0x470AC9D0u; /* 0x47010BC2: mov dword ptr [eax], 0x470ac9d0 */ 1838 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010BC8: ret */ 1839 RECOMP_REGS_OUT(); 1840 } 1841 1842 void sub_47010BD0(void) { 1843 int _fpu_cmp = 0; 1844 uint32_t _cf = 0; 1845 int _df = 1; 1846 uint32_t _flag_k = FK_NONE; 1847 uint32_t _flag_a = 0, _flag_b = 0; 1848 uint32_t _itail_tgt = 0; 1849 RECOMP_REGS_LOCALS 1850 RECOMP_ENTER(0x47010BD0u); 1851 1852 L_47010BD0: 1853 MEM32(ecx) = 0x470AC9D0u; /* 0x47010BD0: mov dword ptr [ecx], 0x470ac9d0 */ 1854 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010BD6: ret */ 1855 RECOMP_REGS_OUT(); 1856 } 1857 1858 void sub_47010BE0(void) { 1859 int _fpu_cmp = 0; 1860 uint32_t _cf = 0; 1861 int _df = 1; 1862 uint32_t _flag_k = FK_NONE; 1863 uint32_t _flag_a = 0, _flag_b = 0; 1864 uint32_t _itail_tgt = 0; 1865 RECOMP_REGS_LOCALS 1866 RECOMP_ENTER(0x47010BE0u); 1867 1868 L_47010BE0: 1869 eax = (int32_t)(int8_t)MEM8(esp + 0x4); /* 0x47010BE0: movsx eax, byte ptr [esp + 4] */ 1870 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010BE5: ret 4 */ 1871 RECOMP_REGS_OUT(); 1872 } 1873 1874 void sub_47010BF0(void) { 1875 int _fpu_cmp = 0; 1876 uint32_t _cf = 0; 1877 int _df = 1; 1878 uint32_t _flag_k = FK_NONE; 1879 uint32_t _flag_a = 0, _flag_b = 0; 1880 uint32_t _itail_tgt = 0; 1881 RECOMP_REGS_LOCALS 1882 RECOMP_ENTER(0x47010BF0u); 1883 1884 L_47010BF0: 1885 eax = MEM32(esp + 0x4); /* 0x47010BF0: mov eax, dword ptr [esp + 4] */ 1886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 1887 eax = eax & 0xFFu; /* 0x47010BF4: and eax, 0xff */ 1888 _cf = 0; 1889 _flag_k = FK_TEST; 1890 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010BF9: ret 4 */ 1891 RECOMP_REGS_OUT(); 1892 } 1893 1894 void sub_47010C00(void) { 1895 int _fpu_cmp = 0; 1896 uint32_t _cf = 0; 1897 int _df = 1; 1898 uint32_t _flag_k = FK_NONE; 1899 uint32_t _flag_a = 0, _flag_b = 0; 1900 uint32_t _itail_tgt = 0; 1901 RECOMP_REGS_LOCALS 1902 RECOMP_ENTER(0x47010C00u); 1903 1904 L_47010C00: 1905 eax = (int32_t)(int16_t)MEM16(esp + 0x4); /* 0x47010C00: movsx eax, word ptr [esp + 4] */ 1906 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010C05: ret 4 */ 1907 RECOMP_REGS_OUT(); 1908 } 1909 1910 void sub_47010C10(void) { 1911 int _fpu_cmp = 0; 1912 uint32_t _cf = 0; 1913 int _df = 1; 1914 uint32_t _flag_k = FK_NONE; 1915 uint32_t _flag_a = 0, _flag_b = 0; 1916 uint32_t _itail_tgt = 0; 1917 RECOMP_REGS_LOCALS 1918 RECOMP_ENTER(0x47010C10u); 1919 1920 L_47010C10: 1921 eax = MEM32(esp + 0x4); /* 0x47010C10: mov eax, dword ptr [esp + 4] */ 1922 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 1923 eax = eax & 0xFFFFu; /* 0x47010C14: and eax, 0xffff */ 1924 _cf = 0; 1925 _flag_k = FK_TEST; 1926 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010C19: ret 4 */ 1927 RECOMP_REGS_OUT(); 1928 } 1929 1930 void sub_47010C20(void) { 1931 int _fpu_cmp = 0; 1932 uint32_t _cf = 0; 1933 int _df = 1; 1934 uint32_t _flag_k = FK_NONE; 1935 uint32_t _flag_a = 0, _flag_b = 0; 1936 uint32_t _itail_tgt = 0; 1937 RECOMP_REGS_LOCALS 1938 RECOMP_ENTER(0x47010C20u); 1939 1940 L_47010C20: 1941 eax = MEM32(esp + 0x4); /* 0x47010C20: mov eax, dword ptr [esp + 4] */ 1942 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010C24: ret 4 */ 1943 RECOMP_REGS_OUT(); 1944 } 1945 1946 void sub_47010C30(void) { 1947 int _fpu_cmp = 0; 1948 uint32_t _cf = 0; 1949 int _df = 1; 1950 uint32_t _flag_k = FK_NONE; 1951 uint32_t _flag_a = 0, _flag_b = 0; 1952 uint32_t _itail_tgt = 0; 1953 RECOMP_REGS_LOCALS 1954 RECOMP_ENTER(0x47010C30u); 1955 1956 L_47010C30: 1957 eax = MEM32(esp + 0x4); /* 0x47010C30: mov eax, dword ptr [esp + 4] */ 1958 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010C34: ret 8 */ 1959 RECOMP_REGS_OUT(); 1960 } 1961 1962 void sub_47010C40(void) { 1963 int _fpu_cmp = 0; 1964 uint32_t _cf = 0; 1965 int _df = 1; 1966 uint32_t _flag_k = FK_NONE; 1967 uint32_t _flag_a = 0, _flag_b = 0; 1968 uint32_t _itail_tgt = 0; 1969 RECOMP_REGS_LOCALS 1970 RECOMP_ENTER(0x47010C40u); 1971 1972 L_47010C40: 1973 eax = MEM32(esp + 0x4); /* 0x47010C40: mov eax, dword ptr [esp + 4] */ 1974 PUSH32(esp, eax); /* 0x47010C44: push eax */ 1975 RECOMP_ICALL(0x4700B4C0u); /* 0x47010C45: call 0x4700b4c0 */ /* not lifted */ 1976 RECOMP_FLAGS_IN(); 1977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1979 esp = esp + 4; /* 0x47010C4A: add esp, 4 */ 1980 _flag_k = FK_ADD; 1981 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010C4D: ret 4 */ 1982 RECOMP_REGS_OUT(); 1983 } 1984 1985 void sub_47010C50(void) { 1986 int _fpu_cmp = 0; 1987 uint32_t _cf = 0; 1988 int _df = 1; 1989 uint32_t _flag_k = FK_NONE; 1990 uint32_t _flag_a = 0, _flag_b = 0; 1991 uint32_t _itail_tgt = 0; 1992 RECOMP_REGS_LOCALS 1993 RECOMP_ENTER(0x47010C50u); 1994 1995 L_47010C50: 1996 eax = MEM32(esp + 0x4); /* 0x47010C50: mov eax, dword ptr [esp + 4] */ 1997 PUSH32(esp, eax); /* 0x47010C54: push eax */ 1998 RECOMP_ICALL(0x4700B560u); /* 0x47010C55: call 0x4700b560 */ /* not lifted */ 1999 RECOMP_FLAGS_IN(); 2000 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2001 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2002 esp = esp + 4; /* 0x47010C5A: add esp, 4 */ 2003 _flag_k = FK_ADD; 2004 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010C5D: ret 4 */ 2005 RECOMP_REGS_OUT(); 2006 } 2007 2008 void sub_47010C60(void) { 2009 int _fpu_cmp = 0; 2010 uint32_t _cf = 0; 2011 int _df = 1; 2012 uint32_t _flag_k = FK_NONE; 2013 uint32_t _flag_a = 0, _flag_b = 0; 2014 uint32_t _itail_tgt = 0; 2015 RECOMP_REGS_LOCALS 2016 RECOMP_ENTER(0x47010C60u); 2017 2018 L_47010C60: 2019 eax = MEM32(esp + 0x4); /* 0x47010C60: mov eax, dword ptr [esp + 4] */ 2020 PUSH32(esp, ebx); /* 0x47010C64: push ebx */ 2021 PUSH32(esp, esi); /* 0x47010C65: push esi */ 2022 esi = MEM32(esp + 0x10); /* 0x47010C66: mov esi, dword ptr [esp + 0x10] */ 2023 L_47010C6A: 2024 SET_LO8(edx, MEM8(eax)); /* 0x47010C6A: mov dl, byte ptr [eax] */ 2025 SET_LO8(ebx, MEM8(esi)); /* 0x47010C6C: mov bl, byte ptr [esi] */ 2026 SET_LO8(ecx, LO8(edx)); /* 0x47010C6E: mov cl, dl */ 2027 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010C70: cmp dl, bl */ 2028 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2030 _flag_k = FK_NARROW(FK_CMP, 24); 2031 if (CMP_NE(_flag_a, _flag_b)) goto L_47010C9E; /* 0x47010C72: jne 0x47010c9e */ 2032 L_47010C74: 2033 /* test LO8(ecx), LO8(ecx) */ /* 0x47010C74: test cl, cl */ 2034 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2035 _cf = 0; 2036 _flag_k = FK_NARROW(FK_TEST, 24); 2037 if (TEST_Z(_flag_a, _flag_b)) goto L_47010C8E; /* 0x47010C76: je 0x47010c8e */ 2038 L_47010C78: 2039 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47010C78: mov dl, byte ptr [eax + 1] */ 2040 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47010C7B: mov bl, byte ptr [esi + 1] */ 2041 SET_LO8(ecx, LO8(edx)); /* 0x47010C7E: mov cl, dl */ 2042 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010C80: cmp dl, bl */ 2043 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2045 _flag_k = FK_NARROW(FK_CMP, 24); 2046 if (CMP_NE(_flag_a, _flag_b)) goto L_47010C9E; /* 0x47010C82: jne 0x47010c9e */ 2047 L_47010C84: 2048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2049 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2050 eax = eax + 2; /* 0x47010C84: add eax, 2 */ 2051 _flag_k = FK_ADD; 2052 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2053 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2054 esi = esi + 2; /* 0x47010C87: add esi, 2 */ 2055 _flag_k = FK_ADD; 2056 /* test LO8(ecx), LO8(ecx) */ /* 0x47010C8A: test cl, cl */ 2057 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2058 _cf = 0; 2059 _flag_k = FK_NARROW(FK_TEST, 24); 2060 RECOMP_BACKEDGE(); 2061 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010C6A; /* 0x47010C8C: jne 0x47010c6a */ 2062 L_47010C8E: 2063 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2064 eax = 0; /* 0x47010C8E: xor eax, eax */ 2065 _cf = 0; 2066 _flag_k = FK_TEST; 2067 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2068 ecx = 0; /* 0x47010C90: xor ecx, ecx */ 2069 _cf = 0; 2070 _flag_k = FK_TEST; 2071 /* test eax, eax */ /* 0x47010C92: test eax, eax */ 2072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2073 _cf = 0; 2074 _flag_k = FK_TEST; 2075 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010C94: sete cl */ 2076 esi = POP32_VAL(esp); /* 0x47010C97: pop esi */ 2077 ebx = POP32_VAL(esp); /* 0x47010C98: pop ebx */ 2078 eax = ecx; /* 0x47010C99: mov eax, ecx */ 2079 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010C9B: ret 8 */ 2080 L_47010C9E: 2081 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47010C9E: sbb eax, eax */ 2082 eax = _sc ? 0xFFFFFFFFu : 0; 2083 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2084 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2085 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47010CA0: sbb eax, -1 */ 2086 eax = _sa - _sb - _sc; 2087 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2088 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2089 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2090 ecx = 0; /* 0x47010CA3: xor ecx, ecx */ 2091 _cf = 0; 2092 _flag_k = FK_TEST; 2093 /* test eax, eax */ /* 0x47010CA5: test eax, eax */ 2094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2095 _cf = 0; 2096 _flag_k = FK_TEST; 2097 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010CA7: sete cl */ 2098 esi = POP32_VAL(esp); /* 0x47010CAA: pop esi */ 2099 ebx = POP32_VAL(esp); /* 0x47010CAB: pop ebx */ 2100 eax = ecx; /* 0x47010CAC: mov eax, ecx */ 2101 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010CAE: ret 8 */ 2102 RECOMP_REGS_OUT(); 2103 } 2104 2105 void sub_47010CC0(void) { 2106 int _fpu_cmp = 0; 2107 uint32_t _cf = 0; 2108 int _df = 1; 2109 uint32_t _flag_k = FK_NONE; 2110 uint32_t _flag_a = 0, _flag_b = 0; 2111 uint32_t _itail_tgt = 0; 2112 RECOMP_REGS_LOCALS 2113 RECOMP_ENTER(0x47010CC0u); 2114 2115 L_47010CC0: 2116 eax = MEM32(esp + 0x8); /* 0x47010CC0: mov eax, dword ptr [esp + 8] */ 2117 ecx = MEM32(esp + 0x4); /* 0x47010CC4: mov ecx, dword ptr [esp + 4] */ 2118 PUSH32(esp, eax); /* 0x47010CC8: push eax */ 2119 PUSH32(esp, ecx); /* 0x47010CC9: push ecx */ 2120 RECOMP_ICALL(MEM32(0x470AC278)); /* 0x47010CCA: call dword ptr [0x470ac278] */ 2121 RECOMP_FLAGS_IN(); 2122 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2124 esp = esp + 8; /* 0x47010CD0: add esp, 8 */ 2125 _flag_k = FK_ADD; 2126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2127 _cf = (eax) != 0; 2128 eax = (uint32_t)(-(int32_t)eax); /* 0x47010CD3: neg eax */ 2129 _flag_k = FK_CMP; 2130 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47010CD5: sbb eax, eax */ 2131 eax = _sc ? 0xFFFFFFFFu : 0; 2132 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2133 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2134 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2135 eax = eax + 1; /* 0x47010CD7: inc eax */ 2136 _flag_k = FK_INC; 2137 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010CD8: ret 8 */ 2138 RECOMP_REGS_OUT(); 2139 } 2140 2141 void sub_47010CE0(void) { 2142 int _fpu_cmp = 0; 2143 uint32_t _cf = 0; 2144 int _df = 1; 2145 uint32_t _flag_k = FK_NONE; 2146 uint32_t _flag_a = 0, _flag_b = 0; 2147 uint32_t _itail_tgt = 0; 2148 RECOMP_REGS_LOCALS 2149 RECOMP_ENTER(0x47010CE0u); 2150 2151 L_47010CE0: 2152 eax = MEM32(esp + 0x4); /* 0x47010CE0: mov eax, dword ptr [esp + 4] */ 2153 PUSH32(esp, ebx); /* 0x47010CE4: push ebx */ 2154 PUSH32(esp, esi); /* 0x47010CE5: push esi */ 2155 esi = MEM32(esp + 0x10); /* 0x47010CE6: mov esi, dword ptr [esp + 0x10] */ 2156 L_47010CEA: 2157 SET_LO8(edx, MEM8(eax)); /* 0x47010CEA: mov dl, byte ptr [eax] */ 2158 SET_LO8(ebx, MEM8(esi)); /* 0x47010CEC: mov bl, byte ptr [esi] */ 2159 SET_LO8(ecx, LO8(edx)); /* 0x47010CEE: mov cl, dl */ 2160 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010CF0: cmp dl, bl */ 2161 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2163 _flag_k = FK_NARROW(FK_CMP, 24); 2164 if (CMP_NE(_flag_a, _flag_b)) goto L_47010D1E; /* 0x47010CF2: jne 0x47010d1e */ 2165 L_47010CF4: 2166 /* test LO8(ecx), LO8(ecx) */ /* 0x47010CF4: test cl, cl */ 2167 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2168 _cf = 0; 2169 _flag_k = FK_NARROW(FK_TEST, 24); 2170 if (TEST_Z(_flag_a, _flag_b)) goto L_47010D0E; /* 0x47010CF6: je 0x47010d0e */ 2171 L_47010CF8: 2172 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47010CF8: mov dl, byte ptr [eax + 1] */ 2173 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47010CFB: mov bl, byte ptr [esi + 1] */ 2174 SET_LO8(ecx, LO8(edx)); /* 0x47010CFE: mov cl, dl */ 2175 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010D00: cmp dl, bl */ 2176 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2178 _flag_k = FK_NARROW(FK_CMP, 24); 2179 if (CMP_NE(_flag_a, _flag_b)) goto L_47010D1E; /* 0x47010D02: jne 0x47010d1e */ 2180 L_47010D04: 2181 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2183 eax = eax + 2; /* 0x47010D04: add eax, 2 */ 2184 _flag_k = FK_ADD; 2185 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2187 esi = esi + 2; /* 0x47010D07: add esi, 2 */ 2188 _flag_k = FK_ADD; 2189 /* test LO8(ecx), LO8(ecx) */ /* 0x47010D0A: test cl, cl */ 2190 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2191 _cf = 0; 2192 _flag_k = FK_NARROW(FK_TEST, 24); 2193 RECOMP_BACKEDGE(); 2194 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010CEA; /* 0x47010D0C: jne 0x47010cea */ 2195 L_47010D0E: 2196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2197 eax = 0; /* 0x47010D0E: xor eax, eax */ 2198 _cf = 0; 2199 _flag_k = FK_TEST; 2200 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2201 ecx = 0; /* 0x47010D10: xor ecx, ecx */ 2202 _cf = 0; 2203 _flag_k = FK_TEST; 2204 /* test eax, eax */ /* 0x47010D12: test eax, eax */ 2205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2206 _cf = 0; 2207 _flag_k = FK_TEST; 2208 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D14: setl cl */ 2209 esi = POP32_VAL(esp); /* 0x47010D17: pop esi */ 2210 ebx = POP32_VAL(esp); /* 0x47010D18: pop ebx */ 2211 eax = ecx; /* 0x47010D19: mov eax, ecx */ 2212 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D1B: ret 8 */ 2213 L_47010D1E: 2214 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47010D1E: sbb eax, eax */ 2215 eax = _sc ? 0xFFFFFFFFu : 0; 2216 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2217 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2218 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47010D20: sbb eax, -1 */ 2219 eax = _sa - _sb - _sc; 2220 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2221 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2222 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2223 ecx = 0; /* 0x47010D23: xor ecx, ecx */ 2224 _cf = 0; 2225 _flag_k = FK_TEST; 2226 /* test eax, eax */ /* 0x47010D25: test eax, eax */ 2227 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2228 _cf = 0; 2229 _flag_k = FK_TEST; 2230 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D27: setl cl */ 2231 esi = POP32_VAL(esp); /* 0x47010D2A: pop esi */ 2232 ebx = POP32_VAL(esp); /* 0x47010D2B: pop ebx */ 2233 eax = ecx; /* 0x47010D2C: mov eax, ecx */ 2234 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D2E: ret 8 */ 2235 RECOMP_REGS_OUT(); 2236 } 2237 2238 void sub_47010CEA(void) { 2239 int _fpu_cmp = 0; 2240 uint32_t _cf = 0; 2241 int _df = 1; 2242 uint32_t _flag_k = FK_NONE; 2243 uint32_t _flag_a = 0, _flag_b = 0; 2244 uint32_t _itail_tgt = 0; 2245 RECOMP_REGS_LOCALS 2246 RECOMP_ENTER(0x47010CEAu); 2247 2248 L_47010CEA: 2249 SET_LO8(edx, MEM8(eax)); /* 0x47010CEA: mov dl, byte ptr [eax] */ 2250 SET_LO8(ebx, MEM8(esi)); /* 0x47010CEC: mov bl, byte ptr [esi] */ 2251 SET_LO8(ecx, LO8(edx)); /* 0x47010CEE: mov cl, dl */ 2252 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010CF0: cmp dl, bl */ 2253 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2255 _flag_k = FK_NARROW(FK_CMP, 24); 2256 if (CMP_NE(_flag_a, _flag_b)) goto L_47010D1E; /* 0x47010CF2: jne 0x47010d1e */ 2257 L_47010CF4: 2258 /* test LO8(ecx), LO8(ecx) */ /* 0x47010CF4: test cl, cl */ 2259 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2260 _cf = 0; 2261 _flag_k = FK_NARROW(FK_TEST, 24); 2262 if (TEST_Z(_flag_a, _flag_b)) goto L_47010D0E; /* 0x47010CF6: je 0x47010d0e */ 2263 L_47010CF8: 2264 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47010CF8: mov dl, byte ptr [eax + 1] */ 2265 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47010CFB: mov bl, byte ptr [esi + 1] */ 2266 SET_LO8(ecx, LO8(edx)); /* 0x47010CFE: mov cl, dl */ 2267 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010D00: cmp dl, bl */ 2268 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2270 _flag_k = FK_NARROW(FK_CMP, 24); 2271 if (CMP_NE(_flag_a, _flag_b)) goto L_47010D1E; /* 0x47010D02: jne 0x47010d1e */ 2272 L_47010D04: 2273 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2275 eax = eax + 2; /* 0x47010D04: add eax, 2 */ 2276 _flag_k = FK_ADD; 2277 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2279 esi = esi + 2; /* 0x47010D07: add esi, 2 */ 2280 _flag_k = FK_ADD; 2281 /* test LO8(ecx), LO8(ecx) */ /* 0x47010D0A: test cl, cl */ 2282 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2283 _cf = 0; 2284 _flag_k = FK_NARROW(FK_TEST, 24); 2285 RECOMP_BACKEDGE(); 2286 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010CEA; /* 0x47010D0C: jne 0x47010cea */ 2287 L_47010D0E: 2288 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2289 eax = 0; /* 0x47010D0E: xor eax, eax */ 2290 _cf = 0; 2291 _flag_k = FK_TEST; 2292 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2293 ecx = 0; /* 0x47010D10: xor ecx, ecx */ 2294 _cf = 0; 2295 _flag_k = FK_TEST; 2296 /* test eax, eax */ /* 0x47010D12: test eax, eax */ 2297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2298 _cf = 0; 2299 _flag_k = FK_TEST; 2300 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D14: setl cl */ 2301 esi = POP32_VAL(esp); /* 0x47010D17: pop esi */ 2302 ebx = POP32_VAL(esp); /* 0x47010D18: pop ebx */ 2303 eax = ecx; /* 0x47010D19: mov eax, ecx */ 2304 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D1B: ret 8 */ 2305 L_47010D1E: 2306 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47010D1E: sbb eax, eax */ 2307 eax = _sc ? 0xFFFFFFFFu : 0; 2308 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2309 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2310 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47010D20: sbb eax, -1 */ 2311 eax = _sa - _sb - _sc; 2312 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2313 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2315 ecx = 0; /* 0x47010D23: xor ecx, ecx */ 2316 _cf = 0; 2317 _flag_k = FK_TEST; 2318 /* test eax, eax */ /* 0x47010D25: test eax, eax */ 2319 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2320 _cf = 0; 2321 _flag_k = FK_TEST; 2322 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D27: setl cl */ 2323 esi = POP32_VAL(esp); /* 0x47010D2A: pop esi */ 2324 ebx = POP32_VAL(esp); /* 0x47010D2B: pop ebx */ 2325 eax = ecx; /* 0x47010D2C: mov eax, ecx */ 2326 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D2E: ret 8 */ 2327 RECOMP_REGS_OUT(); 2328 } 2329 2330 void sub_47010CFB(void) { 2331 int _fpu_cmp = 0; 2332 uint32_t _cf = 0; 2333 int _df = 1; 2334 uint32_t _flag_k = FK_NONE; 2335 uint32_t _flag_a = 0, _flag_b = 0; 2336 uint32_t _itail_tgt = 0; 2337 RECOMP_REGS_LOCALS 2338 RECOMP_ENTER(0x47010CFBu); 2339 2340 goto L_47010CFB; 2341 L_47010CEA: 2342 SET_LO8(edx, MEM8(eax)); /* 0x47010CEA: mov dl, byte ptr [eax] */ 2343 SET_LO8(ebx, MEM8(esi)); /* 0x47010CEC: mov bl, byte ptr [esi] */ 2344 SET_LO8(ecx, LO8(edx)); /* 0x47010CEE: mov cl, dl */ 2345 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010CF0: cmp dl, bl */ 2346 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2348 _flag_k = FK_NARROW(FK_CMP, 24); 2349 if (CMP_NE(_flag_a, _flag_b)) goto L_47010D1E; /* 0x47010CF2: jne 0x47010d1e */ 2350 L_47010CF4: 2351 /* test LO8(ecx), LO8(ecx) */ /* 0x47010CF4: test cl, cl */ 2352 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2353 _cf = 0; 2354 _flag_k = FK_NARROW(FK_TEST, 24); 2355 if (TEST_Z(_flag_a, _flag_b)) goto L_47010D0E; /* 0x47010CF6: je 0x47010d0e */ 2356 L_47010CF8: 2357 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47010CF8: mov dl, byte ptr [eax + 1] */ 2358 L_47010CFB: 2359 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x47010CFB: mov bl, byte ptr [esi + 1] */ 2360 SET_LO8(ecx, LO8(edx)); /* 0x47010CFE: mov cl, dl */ 2361 /* cmp LO8(edx), LO8(ebx) */ /* 0x47010D00: cmp dl, bl */ 2362 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2364 _flag_k = FK_NARROW(FK_CMP, 24); 2365 if (CMP_NE(_flag_a, _flag_b)) goto L_47010D1E; /* 0x47010D02: jne 0x47010d1e */ 2366 L_47010D04: 2367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2369 eax = eax + 2; /* 0x47010D04: add eax, 2 */ 2370 _flag_k = FK_ADD; 2371 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2373 esi = esi + 2; /* 0x47010D07: add esi, 2 */ 2374 _flag_k = FK_ADD; 2375 /* test LO8(ecx), LO8(ecx) */ /* 0x47010D0A: test cl, cl */ 2376 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2377 _cf = 0; 2378 _flag_k = FK_NARROW(FK_TEST, 24); 2379 RECOMP_BACKEDGE(); 2380 if (TEST_NZ(_flag_a, _flag_b)) goto L_47010CEA; /* 0x47010D0C: jne 0x47010cea */ 2381 L_47010D0E: 2382 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2383 eax = 0; /* 0x47010D0E: xor eax, eax */ 2384 _cf = 0; 2385 _flag_k = FK_TEST; 2386 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2387 ecx = 0; /* 0x47010D10: xor ecx, ecx */ 2388 _cf = 0; 2389 _flag_k = FK_TEST; 2390 /* test eax, eax */ /* 0x47010D12: test eax, eax */ 2391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2392 _cf = 0; 2393 _flag_k = FK_TEST; 2394 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D14: setl cl */ 2395 esi = POP32_VAL(esp); /* 0x47010D17: pop esi */ 2396 ebx = POP32_VAL(esp); /* 0x47010D18: pop ebx */ 2397 eax = ecx; /* 0x47010D19: mov eax, ecx */ 2398 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D1B: ret 8 */ 2399 L_47010D1E: 2400 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47010D1E: sbb eax, eax */ 2401 eax = _sc ? 0xFFFFFFFFu : 0; 2402 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2403 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2404 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47010D20: sbb eax, -1 */ 2405 eax = _sa - _sb - _sc; 2406 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2407 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2408 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2409 ecx = 0; /* 0x47010D23: xor ecx, ecx */ 2410 _cf = 0; 2411 _flag_k = FK_TEST; 2412 /* test eax, eax */ /* 0x47010D25: test eax, eax */ 2413 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2414 _cf = 0; 2415 _flag_k = FK_TEST; 2416 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D27: setl cl */ 2417 esi = POP32_VAL(esp); /* 0x47010D2A: pop esi */ 2418 ebx = POP32_VAL(esp); /* 0x47010D2B: pop ebx */ 2419 eax = ecx; /* 0x47010D2C: mov eax, ecx */ 2420 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D2E: ret 8 */ 2421 RECOMP_REGS_OUT(); 2422 } 2423 2424 void sub_47010D0E(void) { 2425 int _fpu_cmp = 0; 2426 uint32_t _cf = 0; 2427 int _df = 1; 2428 uint32_t _flag_k = FK_NONE; 2429 uint32_t _flag_a = 0, _flag_b = 0; 2430 uint32_t _itail_tgt = 0; 2431 RECOMP_REGS_LOCALS 2432 RECOMP_ENTER(0x47010D0Eu); 2433 2434 L_47010D0E: 2435 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2436 eax = 0; /* 0x47010D0E: xor eax, eax */ 2437 _cf = 0; 2438 _flag_k = FK_TEST; 2439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2440 ecx = 0; /* 0x47010D10: xor ecx, ecx */ 2441 _cf = 0; 2442 _flag_k = FK_TEST; 2443 /* test eax, eax */ /* 0x47010D12: test eax, eax */ 2444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2445 _cf = 0; 2446 _flag_k = FK_TEST; 2447 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D14: setl cl */ 2448 esi = POP32_VAL(esp); /* 0x47010D17: pop esi */ 2449 ebx = POP32_VAL(esp); /* 0x47010D18: pop ebx */ 2450 eax = ecx; /* 0x47010D19: mov eax, ecx */ 2451 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D1B: ret 8 */ 2452 RECOMP_REGS_OUT(); 2453 } 2454 2455 void sub_47010D1E(void) { 2456 int _fpu_cmp = 0; 2457 uint32_t _cf = 0; 2458 int _df = 1; 2459 uint32_t _flag_k = FK_NONE; 2460 uint32_t _flag_a = 0, _flag_b = 0; 2461 uint32_t _itail_tgt = 0; 2462 RECOMP_REGS_LOCALS 2463 RECOMP_ENTER(0x47010D1Eu); 2464 2465 L_47010D1E: 2466 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47010D1E: sbb eax, eax */ 2467 eax = _sc ? 0xFFFFFFFFu : 0; 2468 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2469 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2470 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47010D20: sbb eax, -1 */ 2471 eax = _sa - _sb - _sc; 2472 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2473 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2474 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2475 ecx = 0; /* 0x47010D23: xor ecx, ecx */ 2476 _cf = 0; 2477 _flag_k = FK_TEST; 2478 /* test eax, eax */ /* 0x47010D25: test eax, eax */ 2479 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2480 _cf = 0; 2481 _flag_k = FK_TEST; 2482 SET_LO8(ecx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D27: setl cl */ 2483 esi = POP32_VAL(esp); /* 0x47010D2A: pop esi */ 2484 ebx = POP32_VAL(esp); /* 0x47010D2B: pop ebx */ 2485 eax = ecx; /* 0x47010D2C: mov eax, ecx */ 2486 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D2E: ret 8 */ 2487 RECOMP_REGS_OUT(); 2488 } 2489 2490 void sub_47010D40(void) { 2491 int _fpu_cmp = 0; 2492 uint32_t _cf = 0; 2493 int _df = 1; 2494 uint32_t _flag_k = FK_NONE; 2495 uint32_t _flag_a = 0, _flag_b = 0; 2496 uint32_t _itail_tgt = 0; 2497 RECOMP_REGS_LOCALS 2498 RECOMP_ENTER(0x47010D40u); 2499 2500 L_47010D40: 2501 eax = MEM32(esp + 0x8); /* 0x47010D40: mov eax, dword ptr [esp + 8] */ 2502 ecx = MEM32(esp + 0x4); /* 0x47010D44: mov ecx, dword ptr [esp + 4] */ 2503 PUSH32(esp, eax); /* 0x47010D48: push eax */ 2504 PUSH32(esp, ecx); /* 0x47010D49: push ecx */ 2505 RECOMP_ICALL(MEM32(0x470AC278)); /* 0x47010D4A: call dword ptr [0x470ac278] */ 2506 RECOMP_FLAGS_IN(); 2507 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2508 edx = 0; /* 0x47010D50: xor edx, edx */ 2509 _cf = 0; 2510 _flag_k = FK_TEST; 2511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2513 esp = esp + 8; /* 0x47010D52: add esp, 8 */ 2514 _flag_k = FK_ADD; 2515 /* test eax, eax */ /* 0x47010D55: test eax, eax */ 2516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2517 _cf = 0; 2518 _flag_k = FK_TEST; 2519 SET_LO8(edx, (TEST_S(_flag_a, _flag_b)) ? 1 : 0); /* 0x47010D57: setl dl */ 2520 eax = edx; /* 0x47010D5A: mov eax, edx */ 2521 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47010D5C: ret 8 */ 2522 RECOMP_REGS_OUT(); 2523 } 2524 2525 void sub_47010D60(void) { 2526 int _fpu_cmp = 0; 2527 uint32_t _cf = 0; 2528 int _df = 1; 2529 uint32_t _flag_k = FK_NONE; 2530 uint32_t _flag_a = 0, _flag_b = 0; 2531 uint32_t _itail_tgt = 0; 2532 RECOMP_REGS_LOCALS 2533 RECOMP_ENTER(0x47010D60u); 2534 2535 L_47010D60: 2536 MEM32(0x4710DEB0) = 0x47105158u; /* 0x47010D60: mov dword ptr [0x4710deb0], 0x47105158 */ 2537 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010D6A: ret */ 2538 RECOMP_REGS_OUT(); 2539 } 2540 2541 void sub_47010D70(void) { 2542 int _fpu_cmp = 0; 2543 uint32_t _cf = 0; 2544 int _df = 1; 2545 uint32_t _flag_k = FK_NONE; 2546 uint32_t _flag_a = 0, _flag_b = 0; 2547 uint32_t _itail_tgt = 0; 2548 RECOMP_REGS_LOCALS 2549 RECOMP_ENTER(0x47010D70u); 2550 2551 L_47010D70: 2552 MEM32(0x4710DEA0) = 0x4710518Cu; /* 0x47010D70: mov dword ptr [0x4710dea0], 0x4710518c */ 2553 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47010D7A: ret */ 2554 RECOMP_REGS_OUT(); 2555 } 2556 2557 void sub_47010D80(void) { 2558 int _fpu_cmp = 0; 2559 uint32_t _cf = 0; 2560 int _df = 1; 2561 uint32_t _flag_k = FK_NONE; 2562 uint32_t _flag_a = 0, _flag_b = 0; 2563 uint32_t _itail_tgt = 0; 2564 RECOMP_REGS_LOCALS 2565 RECOMP_ENTER(0x47010D80u); 2566 2567 L_47010D80: 2568 eax = ecx; /* 0x47010D80: mov eax, ecx */ 2569 ecx = MEM32(esp + 0x4); /* 0x47010D82: mov ecx, dword ptr [esp + 4] */ 2570 edx = MEM32(ecx + 0x4); /* 0x47010D86: mov edx, dword ptr [ecx + 4] */ 2571 MEM32(eax + 0x4) = edx; /* 0x47010D89: mov dword ptr [eax + 4], edx */ 2572 edx = MEM32(ecx + 0x8); /* 0x47010D8C: mov edx, dword ptr [ecx + 8] */ 2573 MEM32(eax + 0x8) = edx; /* 0x47010D8F: mov dword ptr [eax + 8], edx */ 2574 edx = MEM32(ecx + 0xC); /* 0x47010D92: mov edx, dword ptr [ecx + 0xc] */ 2575 MEM32(eax + 0xC) = edx; /* 0x47010D95: mov dword ptr [eax + 0xc], edx */ 2576 ecx = MEM32(ecx + 0x10); /* 0x47010D98: mov ecx, dword ptr [ecx + 0x10] */ 2577 MEM32(eax + 0x10) = ecx; /* 0x47010D9B: mov dword ptr [eax + 0x10], ecx */ 2578 MEM32(eax) = 0x470AC9D8u; /* 0x47010D9E: mov dword ptr [eax], 0x470ac9d8 */ 2579 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010DA4: ret 4 */ 2580 RECOMP_REGS_OUT(); 2581 } 2582 2583 void sub_47010DB0(void) { 2584 int _fpu_cmp = 0; 2585 uint32_t _cf = 0; 2586 int _df = 1; 2587 uint32_t _flag_k = FK_NONE; 2588 uint32_t _flag_a = 0, _flag_b = 0; 2589 uint32_t _itail_tgt = 0; 2590 RECOMP_REGS_LOCALS 2591 RECOMP_ENTER(0x47010DB0u); 2592 2593 L_47010DB0: 2594 PUSH32(esp, ebx); /* 0x47010DB0: push ebx */ 2595 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47010DB1: mov bl, byte ptr [esp + 8] */ 2596 /* test LO8(ebx), 2 */ /* 0x47010DB5: test bl, 2 */ 2597 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2598 _cf = 0; 2599 _flag_k = FK_NARROW(FK_TEST, 24); 2600 PUSH32(esp, esi); /* 0x47010DB8: push esi */ 2601 esi = ecx; /* 0x47010DB9: mov esi, ecx */ 2602 if (TEST_Z(_flag_a, _flag_b)) goto L_47010DE8; /* 0x47010DBB: je 0x47010de8 */ 2603 L_47010DBD: 2604 eax = MEM32(esi + (-0x4)); /* 0x47010DBD: mov eax, dword ptr [esi - 4] */ 2605 PUSH32(esp, edi); /* 0x47010DC0: push edi */ 2606 PUSH32(esp, 0x47077B70u); /* 0x47010DC1: push 0x47077b70 */ 2607 edi = esi + (-0x4); /* 0x47010DC6: lea edi, [esi - 4] */ 2608 PUSH32(esp, eax); /* 0x47010DC9: push eax */ 2609 PUSH32(esp, 0x14u); /* 0x47010DCA: push 0x14 */ 2610 PUSH32(esp, esi); /* 0x47010DCC: push esi */ 2611 RECOMP_ICALL(0x470A32EBu); /* 0x47010DCD: call 0x470a32eb */ /* not lifted */ 2612 RECOMP_FLAGS_IN(); 2613 /* test LO8(ebx), 1 */ /* 0x47010DD2: test bl, 1 */ 2614 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2615 _cf = 0; 2616 _flag_k = FK_NARROW(FK_TEST, 24); 2617 if (TEST_Z(_flag_a, _flag_b)) goto L_47010DE0; /* 0x47010DD5: je 0x47010de0 */ 2618 L_47010DD7: 2619 PUSH32(esp, edi); /* 0x47010DD7: push edi */ 2620 RECOMP_ICALL(0x470A32A2u); /* 0x47010DD8: call 0x470a32a2 */ /* not lifted */ 2621 RECOMP_FLAGS_IN(); 2622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2624 esp = esp + 4; /* 0x47010DDD: add esp, 4 */ 2625 _flag_k = FK_ADD; 2626 L_47010DE0: 2627 eax = edi; /* 0x47010DE0: mov eax, edi */ 2628 edi = POP32_VAL(esp); /* 0x47010DE2: pop edi */ 2629 esi = POP32_VAL(esp); /* 0x47010DE3: pop esi */ 2630 ebx = POP32_VAL(esp); /* 0x47010DE4: pop ebx */ 2631 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010DE5: ret 4 */ 2632 L_47010DE8: 2633 ecx = esi; /* 0x47010DE8: mov ecx, esi */ 2634 RECOMP_ICALL(0x47077B70u); /* 0x47010DEA: call 0x47077b70 */ /* not lifted */ 2635 RECOMP_FLAGS_IN(); 2636 /* test LO8(ebx), 1 */ /* 0x47010DEF: test bl, 1 */ 2637 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2638 _cf = 0; 2639 _flag_k = FK_NARROW(FK_TEST, 24); 2640 if (TEST_Z(_flag_a, _flag_b)) goto L_47010DFD; /* 0x47010DF2: je 0x47010dfd */ 2641 L_47010DF4: 2642 PUSH32(esp, esi); /* 0x47010DF4: push esi */ 2643 RECOMP_ICALL(0x470A32A2u); /* 0x47010DF5: call 0x470a32a2 */ /* not lifted */ 2644 RECOMP_FLAGS_IN(); 2645 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2647 esp = esp + 4; /* 0x47010DFA: add esp, 4 */ 2648 _flag_k = FK_ADD; 2649 L_47010DFD: 2650 eax = esi; /* 0x47010DFD: mov eax, esi */ 2651 esi = POP32_VAL(esp); /* 0x47010DFF: pop esi */ 2652 ebx = POP32_VAL(esp); /* 0x47010E00: pop ebx */ 2653 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010E01: ret 4 */ 2654 RECOMP_REGS_OUT(); 2655 } 2656 2657 void sub_47010E10(void) { 2658 int _fpu_cmp = 0; 2659 uint32_t _cf = 0; 2660 int _df = 1; 2661 uint32_t _flag_k = FK_NONE; 2662 uint32_t _flag_a = 0, _flag_b = 0; 2663 uint32_t _itail_tgt = 0; 2664 RECOMP_REGS_LOCALS 2665 RECOMP_ENTER(0x47010E10u); 2666 2667 L_47010E10: 2668 eax = ecx; /* 0x47010E10: mov eax, ecx */ 2669 ecx = MEM32(esp + 0x4); /* 0x47010E12: mov ecx, dword ptr [esp + 4] */ 2670 edx = MEM32(ecx + 0x4); /* 0x47010E16: mov edx, dword ptr [ecx + 4] */ 2671 MEM32(eax + 0x4) = edx; /* 0x47010E19: mov dword ptr [eax + 4], edx */ 2672 edx = MEM32(ecx + 0x8); /* 0x47010E1C: mov edx, dword ptr [ecx + 8] */ 2673 MEM32(eax + 0x8) = edx; /* 0x47010E1F: mov dword ptr [eax + 8], edx */ 2674 edx = MEM32(ecx + 0xC); /* 0x47010E22: mov edx, dword ptr [ecx + 0xc] */ 2675 MEM32(eax + 0xC) = edx; /* 0x47010E25: mov dword ptr [eax + 0xc], edx */ 2676 ecx = MEM32(ecx + 0x10); /* 0x47010E28: mov ecx, dword ptr [ecx + 0x10] */ 2677 MEM32(eax + 0x10) = ecx; /* 0x47010E2B: mov dword ptr [eax + 0x10], ecx */ 2678 MEM32(eax) = 0x470AC9F0u; /* 0x47010E2E: mov dword ptr [eax], 0x470ac9f0 */ 2679 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010E34: ret 4 */ 2680 RECOMP_REGS_OUT(); 2681 } 2682 2683 void sub_47010E40(void) { 2684 int _fpu_cmp = 0; 2685 uint32_t _cf = 0; 2686 int _df = 1; 2687 uint32_t _flag_k = FK_NONE; 2688 uint32_t _flag_a = 0, _flag_b = 0; 2689 uint32_t _itail_tgt = 0; 2690 RECOMP_REGS_LOCALS 2691 RECOMP_ENTER(0x47010E40u); 2692 2693 L_47010E40: 2694 PUSH32(esp, ebx); /* 0x47010E40: push ebx */ 2695 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47010E41: mov bl, byte ptr [esp + 8] */ 2696 /* test LO8(ebx), 2 */ /* 0x47010E45: test bl, 2 */ 2697 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2698 _cf = 0; 2699 _flag_k = FK_NARROW(FK_TEST, 24); 2700 PUSH32(esp, esi); /* 0x47010E48: push esi */ 2701 esi = ecx; /* 0x47010E49: mov esi, ecx */ 2702 if (TEST_Z(_flag_a, _flag_b)) goto L_47010E78; /* 0x47010E4B: je 0x47010e78 */ 2703 L_47010E4D: 2704 eax = MEM32(esi + (-0x4)); /* 0x47010E4D: mov eax, dword ptr [esi - 4] */ 2705 PUSH32(esp, edi); /* 0x47010E50: push edi */ 2706 PUSH32(esp, 0x47011050u); /* 0x47010E51: push 0x47011050 */ 2707 edi = esi + (-0x4); /* 0x47010E56: lea edi, [esi - 4] */ 2708 PUSH32(esp, eax); /* 0x47010E59: push eax */ 2709 PUSH32(esp, 0x14u); /* 0x47010E5A: push 0x14 */ 2710 PUSH32(esp, esi); /* 0x47010E5C: push esi */ 2711 RECOMP_ICALL(0x470A32EBu); /* 0x47010E5D: call 0x470a32eb */ /* not lifted */ 2712 RECOMP_FLAGS_IN(); 2713 /* test LO8(ebx), 1 */ /* 0x47010E62: test bl, 1 */ 2714 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2715 _cf = 0; 2716 _flag_k = FK_NARROW(FK_TEST, 24); 2717 if (TEST_Z(_flag_a, _flag_b)) goto L_47010E70; /* 0x47010E65: je 0x47010e70 */ 2718 L_47010E67: 2719 PUSH32(esp, edi); /* 0x47010E67: push edi */ 2720 RECOMP_ICALL(0x470A32A2u); /* 0x47010E68: call 0x470a32a2 */ /* not lifted */ 2721 RECOMP_FLAGS_IN(); 2722 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2724 esp = esp + 4; /* 0x47010E6D: add esp, 4 */ 2725 _flag_k = FK_ADD; 2726 L_47010E70: 2727 eax = edi; /* 0x47010E70: mov eax, edi */ 2728 edi = POP32_VAL(esp); /* 0x47010E72: pop edi */ 2729 esi = POP32_VAL(esp); /* 0x47010E73: pop esi */ 2730 ebx = POP32_VAL(esp); /* 0x47010E74: pop ebx */ 2731 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010E75: ret 4 */ 2732 L_47010E78: 2733 ecx = esi; /* 0x47010E78: mov ecx, esi */ 2734 RECOMP_ICALL(0x47011050u); /* 0x47010E7A: call 0x47011050 */ /* not lifted */ 2735 RECOMP_FLAGS_IN(); 2736 /* test LO8(ebx), 1 */ /* 0x47010E7F: test bl, 1 */ 2737 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2738 _cf = 0; 2739 _flag_k = FK_NARROW(FK_TEST, 24); 2740 if (TEST_Z(_flag_a, _flag_b)) goto L_47010E8D; /* 0x47010E82: je 0x47010e8d */ 2741 L_47010E84: 2742 PUSH32(esp, esi); /* 0x47010E84: push esi */ 2743 RECOMP_ICALL(0x470A32A2u); /* 0x47010E85: call 0x470a32a2 */ /* not lifted */ 2744 RECOMP_FLAGS_IN(); 2745 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2747 esp = esp + 4; /* 0x47010E8A: add esp, 4 */ 2748 _flag_k = FK_ADD; 2749 L_47010E8D: 2750 eax = esi; /* 0x47010E8D: mov eax, esi */ 2751 esi = POP32_VAL(esp); /* 0x47010E8F: pop esi */ 2752 ebx = POP32_VAL(esp); /* 0x47010E90: pop ebx */ 2753 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010E91: ret 4 */ 2754 RECOMP_REGS_OUT(); 2755 } 2756 2757 void sub_47010EA0(void) { 2758 int _fpu_cmp = 0; 2759 uint32_t _cf = 0; 2760 int _df = 1; 2761 uint32_t _flag_k = FK_NONE; 2762 uint32_t _flag_a = 0, _flag_b = 0; 2763 uint32_t _itail_tgt = 0; 2764 RECOMP_REGS_LOCALS 2765 RECOMP_ENTER(0x47010EA0u); 2766 2767 L_47010EA0: 2768 eax = ecx; /* 0x47010EA0: mov eax, ecx */ 2769 ecx = MEM32(esp + 0x4); /* 0x47010EA2: mov ecx, dword ptr [esp + 4] */ 2770 edx = MEM32(ecx + 0x4); /* 0x47010EA6: mov edx, dword ptr [ecx + 4] */ 2771 MEM32(eax + 0x4) = edx; /* 0x47010EA9: mov dword ptr [eax + 4], edx */ 2772 edx = MEM32(ecx + 0x8); /* 0x47010EAC: mov edx, dword ptr [ecx + 8] */ 2773 MEM32(eax + 0x8) = edx; /* 0x47010EAF: mov dword ptr [eax + 8], edx */ 2774 edx = MEM32(ecx + 0xC); /* 0x47010EB2: mov edx, dword ptr [ecx + 0xc] */ 2775 MEM32(eax + 0xC) = edx; /* 0x47010EB5: mov dword ptr [eax + 0xc], edx */ 2776 edx = MEM32(ecx + 0x10); /* 0x47010EB8: mov edx, dword ptr [ecx + 0x10] */ 2777 MEM32(eax) = 0x470AC9D8u; /* 0x47010EBB: mov dword ptr [eax], 0x470ac9d8 */ 2778 MEM32(eax + 0x10) = edx; /* 0x47010EC1: mov dword ptr [eax + 0x10], edx */ 2779 ecx = MEM32(ecx + 0x14); /* 0x47010EC4: mov ecx, dword ptr [ecx + 0x14] */ 2780 MEM32(eax + 0x14) = ecx; /* 0x47010EC7: mov dword ptr [eax + 0x14], ecx */ 2781 MEM32(eax) = 0x470ACA08u; /* 0x47010ECA: mov dword ptr [eax], 0x470aca08 */ 2782 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010ED0: ret 4 */ 2783 RECOMP_REGS_OUT(); 2784 } 2785 2786 void sub_47010EE0(void) { 2787 int _fpu_cmp = 0; 2788 uint32_t _cf = 0; 2789 int _df = 1; 2790 uint32_t _flag_k = FK_NONE; 2791 uint32_t _flag_a = 0, _flag_b = 0; 2792 uint32_t _itail_tgt = 0; 2793 RECOMP_REGS_LOCALS 2794 RECOMP_ENTER(0x47010EE0u); 2795 2796 L_47010EE0: 2797 PUSH32(esp, ebx); /* 0x47010EE0: push ebx */ 2798 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47010EE1: mov bl, byte ptr [esp + 8] */ 2799 /* test LO8(ebx), 2 */ /* 0x47010EE5: test bl, 2 */ 2800 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2801 _cf = 0; 2802 _flag_k = FK_NARROW(FK_TEST, 24); 2803 PUSH32(esp, esi); /* 0x47010EE8: push esi */ 2804 esi = ecx; /* 0x47010EE9: mov esi, ecx */ 2805 if (TEST_Z(_flag_a, _flag_b)) goto L_47010F18; /* 0x47010EEB: je 0x47010f18 */ 2806 L_47010EED: 2807 eax = MEM32(esi + (-0x4)); /* 0x47010EED: mov eax, dword ptr [esi - 4] */ 2808 PUSH32(esp, edi); /* 0x47010EF0: push edi */ 2809 PUSH32(esp, 0x470110A0u); /* 0x47010EF1: push 0x470110a0 */ 2810 edi = esi + (-0x4); /* 0x47010EF6: lea edi, [esi - 4] */ 2811 PUSH32(esp, eax); /* 0x47010EF9: push eax */ 2812 PUSH32(esp, 0x18u); /* 0x47010EFA: push 0x18 */ 2813 PUSH32(esp, esi); /* 0x47010EFC: push esi */ 2814 RECOMP_ICALL(0x470A32EBu); /* 0x47010EFD: call 0x470a32eb */ /* not lifted */ 2815 RECOMP_FLAGS_IN(); 2816 /* test LO8(ebx), 1 */ /* 0x47010F02: test bl, 1 */ 2817 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2818 _cf = 0; 2819 _flag_k = FK_NARROW(FK_TEST, 24); 2820 if (TEST_Z(_flag_a, _flag_b)) goto L_47010F10; /* 0x47010F05: je 0x47010f10 */ 2821 L_47010F07: 2822 PUSH32(esp, edi); /* 0x47010F07: push edi */ 2823 RECOMP_ICALL(0x470A32A2u); /* 0x47010F08: call 0x470a32a2 */ /* not lifted */ 2824 RECOMP_FLAGS_IN(); 2825 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2826 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2827 esp = esp + 4; /* 0x47010F0D: add esp, 4 */ 2828 _flag_k = FK_ADD; 2829 L_47010F10: 2830 eax = edi; /* 0x47010F10: mov eax, edi */ 2831 edi = POP32_VAL(esp); /* 0x47010F12: pop edi */ 2832 esi = POP32_VAL(esp); /* 0x47010F13: pop esi */ 2833 ebx = POP32_VAL(esp); /* 0x47010F14: pop ebx */ 2834 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010F15: ret 4 */ 2835 L_47010F18: 2836 ecx = esi; /* 0x47010F18: mov ecx, esi */ 2837 RECOMP_ICALL(0x470110A0u); /* 0x47010F1A: call 0x470110a0 */ /* not lifted */ 2838 RECOMP_FLAGS_IN(); 2839 /* test LO8(ebx), 1 */ /* 0x47010F1F: test bl, 1 */ 2840 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2841 _cf = 0; 2842 _flag_k = FK_NARROW(FK_TEST, 24); 2843 if (TEST_Z(_flag_a, _flag_b)) goto L_47010F2D; /* 0x47010F22: je 0x47010f2d */ 2844 L_47010F24: 2845 PUSH32(esp, esi); /* 0x47010F24: push esi */ 2846 RECOMP_ICALL(0x470A32A2u); /* 0x47010F25: call 0x470a32a2 */ /* not lifted */ 2847 RECOMP_FLAGS_IN(); 2848 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2850 esp = esp + 4; /* 0x47010F2A: add esp, 4 */ 2851 _flag_k = FK_ADD; 2852 L_47010F2D: 2853 eax = esi; /* 0x47010F2D: mov eax, esi */ 2854 esi = POP32_VAL(esp); /* 0x47010F2F: pop esi */ 2855 ebx = POP32_VAL(esp); /* 0x47010F30: pop ebx */ 2856 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010F31: ret 4 */ 2857 RECOMP_REGS_OUT(); 2858 } 2859 2860 void sub_47010F40(void) { 2861 int _fpu_cmp = 0; 2862 uint32_t _cf = 0; 2863 int _df = 1; 2864 uint32_t _flag_k = FK_NONE; 2865 uint32_t _flag_a = 0, _flag_b = 0; 2866 uint32_t _itail_tgt = 0; 2867 RECOMP_REGS_LOCALS 2868 RECOMP_ENTER(0x47010F40u); 2869 2870 L_47010F40: 2871 eax = ecx; /* 0x47010F40: mov eax, ecx */ 2872 ecx = MEM32(esp + 0x4); /* 0x47010F42: mov ecx, dword ptr [esp + 4] */ 2873 edx = MEM32(ecx + 0x4); /* 0x47010F46: mov edx, dword ptr [ecx + 4] */ 2874 MEM32(eax + 0x4) = edx; /* 0x47010F49: mov dword ptr [eax + 4], edx */ 2875 edx = MEM32(ecx + 0x8); /* 0x47010F4C: mov edx, dword ptr [ecx + 8] */ 2876 MEM32(eax + 0x8) = edx; /* 0x47010F4F: mov dword ptr [eax + 8], edx */ 2877 edx = MEM32(ecx + 0xC); /* 0x47010F52: mov edx, dword ptr [ecx + 0xc] */ 2878 MEM32(eax + 0xC) = edx; /* 0x47010F55: mov dword ptr [eax + 0xc], edx */ 2879 edx = MEM32(ecx + 0x10); /* 0x47010F58: mov edx, dword ptr [ecx + 0x10] */ 2880 MEM32(eax) = 0x470AC9D8u; /* 0x47010F5B: mov dword ptr [eax], 0x470ac9d8 */ 2881 MEM32(eax + 0x10) = edx; /* 0x47010F61: mov dword ptr [eax + 0x10], edx */ 2882 ecx = MEM32(ecx + 0x14); /* 0x47010F64: mov ecx, dword ptr [ecx + 0x14] */ 2883 MEM32(eax + 0x14) = ecx; /* 0x47010F67: mov dword ptr [eax + 0x14], ecx */ 2884 MEM32(eax) = 0x470ACA20u; /* 0x47010F6A: mov dword ptr [eax], 0x470aca20 */ 2885 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010F70: ret 4 */ 2886 RECOMP_REGS_OUT(); 2887 } 2888 2889 void sub_47010F80(void) { 2890 int _fpu_cmp = 0; 2891 uint32_t _cf = 0; 2892 int _df = 1; 2893 uint32_t _flag_k = FK_NONE; 2894 uint32_t _flag_a = 0, _flag_b = 0; 2895 uint32_t _itail_tgt = 0; 2896 RECOMP_REGS_LOCALS 2897 RECOMP_ENTER(0x47010F80u); 2898 2899 L_47010F80: 2900 PUSH32(esp, ebx); /* 0x47010F80: push ebx */ 2901 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47010F81: mov bl, byte ptr [esp + 8] */ 2902 /* test LO8(ebx), 2 */ /* 0x47010F85: test bl, 2 */ 2903 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2904 _cf = 0; 2905 _flag_k = FK_NARROW(FK_TEST, 24); 2906 PUSH32(esp, esi); /* 0x47010F88: push esi */ 2907 esi = ecx; /* 0x47010F89: mov esi, ecx */ 2908 if (TEST_Z(_flag_a, _flag_b)) goto L_47010FB8; /* 0x47010F8B: je 0x47010fb8 */ 2909 L_47010F8D: 2910 eax = MEM32(esi + (-0x4)); /* 0x47010F8D: mov eax, dword ptr [esi - 4] */ 2911 PUSH32(esp, edi); /* 0x47010F90: push edi */ 2912 PUSH32(esp, 0x470110B0u); /* 0x47010F91: push 0x470110b0 */ 2913 edi = esi + (-0x4); /* 0x47010F96: lea edi, [esi - 4] */ 2914 PUSH32(esp, eax); /* 0x47010F99: push eax */ 2915 PUSH32(esp, 0x18u); /* 0x47010F9A: push 0x18 */ 2916 PUSH32(esp, esi); /* 0x47010F9C: push esi */ 2917 RECOMP_ICALL(0x470A32EBu); /* 0x47010F9D: call 0x470a32eb */ /* not lifted */ 2918 RECOMP_FLAGS_IN(); 2919 /* test LO8(ebx), 1 */ /* 0x47010FA2: test bl, 1 */ 2920 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2921 _cf = 0; 2922 _flag_k = FK_NARROW(FK_TEST, 24); 2923 if (TEST_Z(_flag_a, _flag_b)) goto L_47010FB0; /* 0x47010FA5: je 0x47010fb0 */ 2924 L_47010FA7: 2925 PUSH32(esp, edi); /* 0x47010FA7: push edi */ 2926 RECOMP_ICALL(0x470A32A2u); /* 0x47010FA8: call 0x470a32a2 */ /* not lifted */ 2927 RECOMP_FLAGS_IN(); 2928 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2929 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2930 esp = esp + 4; /* 0x47010FAD: add esp, 4 */ 2931 _flag_k = FK_ADD; 2932 L_47010FB0: 2933 eax = edi; /* 0x47010FB0: mov eax, edi */ 2934 edi = POP32_VAL(esp); /* 0x47010FB2: pop edi */ 2935 esi = POP32_VAL(esp); /* 0x47010FB3: pop esi */ 2936 ebx = POP32_VAL(esp); /* 0x47010FB4: pop ebx */ 2937 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010FB5: ret 4 */ 2938 L_47010FB8: 2939 ecx = esi; /* 0x47010FB8: mov ecx, esi */ 2940 RECOMP_ICALL(0x470110B0u); /* 0x47010FBA: call 0x470110b0 */ /* not lifted */ 2941 RECOMP_FLAGS_IN(); 2942 /* test LO8(ebx), 1 */ /* 0x47010FBF: test bl, 1 */ 2943 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2944 _cf = 0; 2945 _flag_k = FK_NARROW(FK_TEST, 24); 2946 if (TEST_Z(_flag_a, _flag_b)) goto L_47010FCD; /* 0x47010FC2: je 0x47010fcd */ 2947 L_47010FC4: 2948 PUSH32(esp, esi); /* 0x47010FC4: push esi */ 2949 RECOMP_ICALL(0x470A32A2u); /* 0x47010FC5: call 0x470a32a2 */ /* not lifted */ 2950 RECOMP_FLAGS_IN(); 2951 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2953 esp = esp + 4; /* 0x47010FCA: add esp, 4 */ 2954 _flag_k = FK_ADD; 2955 L_47010FCD: 2956 eax = esi; /* 0x47010FCD: mov eax, esi */ 2957 esi = POP32_VAL(esp); /* 0x47010FCF: pop esi */ 2958 ebx = POP32_VAL(esp); /* 0x47010FD0: pop ebx */ 2959 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47010FD1: ret 4 */ 2960 RECOMP_REGS_OUT(); 2961 } 2962 2963 void sub_47010FE0(void) { 2964 int _fpu_cmp = 0; 2965 uint32_t _cf = 0; 2966 int _df = 1; 2967 uint32_t _flag_k = FK_NONE; 2968 uint32_t _flag_a = 0, _flag_b = 0; 2969 uint32_t _itail_tgt = 0; 2970 RECOMP_REGS_LOCALS 2971 RECOMP_ENTER(0x47010FE0u); 2972 2973 L_47010FE0: 2974 PUSH32(esp, ebx); /* 0x47010FE0: push ebx */ 2975 PUSH32(esp, esi); /* 0x47010FE1: push esi */ 2976 ebx = ecx; /* 0x47010FE2: mov ebx, ecx */ 2977 eax = MEM32(ebx + 0x4); /* 0x47010FE4: mov eax, dword ptr [ebx + 4] */ 2978 PUSH32(esp, edi); /* 0x47010FE7: push edi */ 2979 PUSH32(esp, eax); /* 0x47010FE8: push eax */ 2980 RECOMP_ICALL(0x470A32A2u); /* 0x47010FE9: call 0x470a32a2 */ /* not lifted */ 2981 RECOMP_FLAGS_IN(); 2982 esi = MEM32(esp + 0x14); /* 0x47010FEE: mov esi, dword ptr [esp + 0x14] */ 2983 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2984 ecx = ecx | 0xFFFFFFFFu; /* 0x47010FF2: or ecx, 0xffffffff */ 2985 _cf = 0; 2986 _flag_k = FK_TEST; 2987 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2988 eax = 0; /* 0x47010FF5: xor eax, eax */ 2989 _cf = 0; 2990 _flag_k = FK_TEST; 2991 edi = esi; /* 0x47010FF7: mov edi, esi */ 2992 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; } /* 0x47010FF9: repne scasb al, byte ptr es:[edi] */ 2993 ecx = ~ecx; /* 0x47010FFB: not ecx */ 2994 PUSH32(esp, ecx); /* 0x47010FFD: push ecx */ 2995 RECOMP_ICALL(0x470A33F2u); /* 0x47010FFE: call 0x470a33f2 */ /* not lifted */ 2996 RECOMP_FLAGS_IN(); 2997 edx = eax; /* 0x47011003: mov edx, eax */ 2998 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2999 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3000 esp = esp + 8; /* 0x47011005: add esp, 8 */ 3001 _flag_k = FK_ADD; 3002 /* test edx, edx */ /* 0x47011008: test edx, edx */ 3003 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3004 _cf = 0; 3005 _flag_k = FK_TEST; 3006 if (TEST_NZ(_flag_a, _flag_b)) goto L_47011015; /* 0x4701100A: jne 0x47011015 */ 3007 L_4701100C: 3008 edi = POP32_VAL(esp); /* 0x4701100C: pop edi */ 3009 esi = POP32_VAL(esp); /* 0x4701100D: pop esi */ 3010 MEM32(ebx + 0x4) = eax; /* 0x4701100E: mov dword ptr [ebx + 4], eax */ 3011 ebx = POP32_VAL(esp); /* 0x47011011: pop ebx */ 3012 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47011012: ret 4 */ 3013 L_47011015: 3014 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3015 ecx = ecx | 0xFFFFFFFFu; /* 0x47011015: or ecx, 0xffffffff */ 3016 _cf = 0; 3017 _flag_k = FK_TEST; 3018 edi = esi; /* 0x47011018: mov edi, esi */ 3019 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3020 eax = 0; /* 0x4701101A: xor eax, eax */ 3021 _cf = 0; 3022 _flag_k = FK_TEST; 3023 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; } /* 0x4701101C: repne scasb al, byte ptr es:[edi] */ 3024 ecx = ~ecx; /* 0x4701101E: not ecx */ 3025 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 3026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3027 edi = edi - ecx; /* 0x47011020: sub edi, ecx */ 3028 _flag_k = FK_CMP; 3029 PUSH32(esp, ebp); /* 0x47011022: push ebp */ 3030 ebp = ecx; /* 0x47011023: mov ebp, ecx */ 3031 esi = edi; /* 0x47011025: mov esi, edi */ 3032 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47011027: shr ecx, 2 */ 3033 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3034 ecx = ecx >> 2u; /* 0x47011027: shr ecx, 2 */ 3035 edi = edx; /* 0x4701102A: mov edi, edx */ 3036 eax = edi; /* 0x4701102C: mov eax, edi */ 3037 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4701102E: 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; } 3038 ecx = ebp; /* 0x47011030: mov ecx, ebp */ 3039 ebp = POP32_VAL(esp); /* 0x47011032: pop ebp */ 3040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 3041 ecx = ecx & 3; /* 0x47011033: and ecx, 3 */ 3042 _cf = 0; 3043 _flag_k = FK_TEST; 3044 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47011036: 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; } 3045 edi = POP32_VAL(esp); /* 0x47011038: pop edi */ 3046 esi = POP32_VAL(esp); /* 0x47011039: pop esi */ 3047 MEM32(ebx + 0x4) = eax; /* 0x4701103A: mov dword ptr [ebx + 4], eax */ 3048 ebx = POP32_VAL(esp); /* 0x4701103D: pop ebx */ 3049 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701103E: ret 4 */ 3050 RECOMP_REGS_OUT(); 3051 } 3052 3053 void sub_47011050(void) { 3054 int _fpu_cmp = 0; 3055 uint32_t _cf = 0; 3056 int _df = 1; 3057 uint32_t _flag_k = FK_NONE; 3058 uint32_t _flag_a = 0, _flag_b = 0; 3059 uint32_t _itail_tgt = 0; 3060 RECOMP_REGS_LOCALS 3061 RECOMP_ENTER(0x47011050u); 3062 3063 L_47011050: 3064 MEM32(ecx) = 0x470AC9F0u; /* 0x47011050: mov dword ptr [ecx], 0x470ac9f0 */ 3065 goto L_47077B70; /* 0x47011056: jmp 0x47077b70 */ 3066 L_47077B70: 3067 eax = MEM32(ecx + 0x4); /* 0x47077B70: mov eax, dword ptr [ecx + 4] */ 3068 PUSH32(esp, eax); /* 0x47077B73: push eax */ 3069 MEM32(ecx) = 0x470AC9D8u; /* 0x47077B74: mov dword ptr [ecx], 0x470ac9d8 */ 3070 RECOMP_ICALL(0x470A32A2u); /* 0x47077B7A: call 0x470a32a2 */ /* not lifted */ 3071 RECOMP_FLAGS_IN(); 3072 ecx = POP32_VAL(esp); /* 0x47077B7F: pop ecx */ 3073 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47077B80: ret */ 3074 RECOMP_REGS_OUT(); 3075 } 3076 3077 void sub_47011060(void) { 3078 int _fpu_cmp = 0; 3079 uint32_t _cf = 0; 3080 int _df = 1; 3081 uint32_t _flag_k = FK_NONE; 3082 uint32_t _flag_a = 0, _flag_b = 0; 3083 uint32_t _itail_tgt = 0; 3084 RECOMP_REGS_LOCALS 3085 RECOMP_ENTER(0x47011060u); 3086 3087 L_47011060: 3088 ecx = MEM32(ecx + 0x8); /* 0x47011060: mov ecx, dword ptr [ecx + 8] */ 3089 L_47011063: 3090 eax = MEM32(ecx); /* 0x47011063: mov eax, dword ptr [ecx] */ 3091 L_47011065: 3092 { _itail_tgt = (uint32_t)(MEM32(eax + 0x40)); goto _ljump; } 3093 { RECOMP_REGS_OUT(); return; } /* end of function */ 3094 _ljump: 3095 switch (_itail_tgt) { 3096 case 0x47011060u: goto L_47011060; 3097 case 0x47011063u: goto L_47011063; 3098 case 0x47011065u: goto L_47011065; 3099 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3100 } 3101 RECOMP_REGS_OUT(); 3102 } 3103 3104 void sub_47011070(void) { 3105 int _fpu_cmp = 0; 3106 uint32_t _cf = 0; 3107 int _df = 1; 3108 uint32_t _flag_k = FK_NONE; 3109 uint32_t _flag_a = 0, _flag_b = 0; 3110 uint32_t _itail_tgt = 0; 3111 RECOMP_REGS_LOCALS 3112 RECOMP_ENTER(0x47011070u); 3113 3114 L_47011070: 3115 ecx = MEM32(ecx + 0x8); /* 0x47011070: mov ecx, dword ptr [ecx + 8] */ 3116 L_47011073: 3117 eax = MEM32(ecx); /* 0x47011073: mov eax, dword ptr [ecx] */ 3118 L_47011075: 3119 { _itail_tgt = (uint32_t)(MEM32(eax + 0x44)); goto _ljump; } 3120 { RECOMP_REGS_OUT(); return; } /* end of function */ 3121 _ljump: 3122 switch (_itail_tgt) { 3123 case 0x47011070u: goto L_47011070; 3124 case 0x47011073u: goto L_47011073; 3125 case 0x47011075u: goto L_47011075; 3126 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3127 } 3128 RECOMP_REGS_OUT(); 3129 } 3130 3131 void sub_47011080(void) { 3132 int _fpu_cmp = 0; 3133 uint32_t _cf = 0; 3134 int _df = 1; 3135 uint32_t _flag_k = FK_NONE; 3136 uint32_t _flag_a = 0, _flag_b = 0; 3137 uint32_t _itail_tgt = 0; 3138 RECOMP_REGS_LOCALS 3139 RECOMP_ENTER(0x47011080u); 3140 3141 L_47011080: 3142 edx = MEM32(esp + 0x8); /* 0x47011080: mov edx, dword ptr [esp + 8] */ 3143 ecx = MEM32(ecx + 0x8); /* 0x47011084: mov ecx, dword ptr [ecx + 8] */ 3144 eax = MEM32(ecx + 0xC); /* 0x47011087: mov eax, dword ptr [ecx + 0xc] */ 3145 PUSH32(esp, edx); /* 0x4701108A: push edx */ 3146 edx = MEM32(esp + 0x8); /* 0x4701108B: mov edx, dword ptr [esp + 8] */ 3147 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3149 ecx = ecx + 0xCu; /* 0x4701108F: add ecx, 0xc */ 3150 _flag_k = FK_ADD; 3151 PUSH32(esp, edx); /* 0x47011092: push edx */ 3152 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47011093: call dword ptr [eax + 8] */ 3153 RECOMP_FLAGS_IN(); 3154 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47011096: ret 8 */ 3155 RECOMP_REGS_OUT(); 3156 } 3157 3158 void sub_470110A0(void) { 3159 int _fpu_cmp = 0; 3160 uint32_t _cf = 0; 3161 int _df = 1; 3162 uint32_t _flag_k = FK_NONE; 3163 uint32_t _flag_a = 0, _flag_b = 0; 3164 uint32_t _itail_tgt = 0; 3165 RECOMP_REGS_LOCALS 3166 RECOMP_ENTER(0x470110A0u); 3167 3168 L_470110A0: 3169 MEM32(ecx) = 0x470ACA08u; /* 0x470110A0: mov dword ptr [ecx], 0x470aca08 */ 3170 goto L_47077B70; /* 0x470110A6: jmp 0x47077b70 */ 3171 L_47077B70: 3172 eax = MEM32(ecx + 0x4); /* 0x47077B70: mov eax, dword ptr [ecx + 4] */ 3173 PUSH32(esp, eax); /* 0x47077B73: push eax */ 3174 MEM32(ecx) = 0x470AC9D8u; /* 0x47077B74: mov dword ptr [ecx], 0x470ac9d8 */ 3175 RECOMP_ICALL(0x470A32A2u); /* 0x47077B7A: call 0x470a32a2 */ /* not lifted */ 3176 RECOMP_FLAGS_IN(); 3177 ecx = POP32_VAL(esp); /* 0x47077B7F: pop ecx */ 3178 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47077B80: ret */ 3179 RECOMP_REGS_OUT(); 3180 } 3181 3182 void sub_470110B0(void) { 3183 int _fpu_cmp = 0; 3184 uint32_t _cf = 0; 3185 int _df = 1; 3186 uint32_t _flag_k = FK_NONE; 3187 uint32_t _flag_a = 0, _flag_b = 0; 3188 uint32_t _itail_tgt = 0; 3189 RECOMP_REGS_LOCALS 3190 RECOMP_ENTER(0x470110B0u); 3191 3192 L_470110B0: 3193 MEM32(ecx) = 0x470ACA20u; /* 0x470110B0: mov dword ptr [ecx], 0x470aca20 */ 3194 goto L_47077B70; /* 0x470110B6: jmp 0x47077b70 */ 3195 L_47077B70: 3196 eax = MEM32(ecx + 0x4); /* 0x47077B70: mov eax, dword ptr [ecx + 4] */ 3197 PUSH32(esp, eax); /* 0x47077B73: push eax */ 3198 MEM32(ecx) = 0x470AC9D8u; /* 0x47077B74: mov dword ptr [ecx], 0x470ac9d8 */ 3199 RECOMP_ICALL(0x470A32A2u); /* 0x47077B7A: call 0x470a32a2 */ /* not lifted */ 3200 RECOMP_FLAGS_IN(); 3201 ecx = POP32_VAL(esp); /* 0x47077B7F: pop ecx */ 3202 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47077B80: ret */ 3203 RECOMP_REGS_OUT(); 3204 } 3205 3206 void sub_470110C0(void) { 3207 int _fpu_cmp = 0; 3208 uint32_t _cf = 0; 3209 int _df = 1; 3210 uint32_t _flag_k = FK_NONE; 3211 uint32_t _flag_a = 0, _flag_b = 0; 3212 uint32_t _itail_tgt = 0; 3213 RECOMP_REGS_LOCALS 3214 RECOMP_ENTER(0x470110C0u); 3215 3216 L_470110C0: 3217 PUSH32(esp, esi); /* 0x470110C0: push esi */ 3218 PUSH32(esp, edi); /* 0x470110C1: push edi */ 3219 esi = ecx; /* 0x470110C2: mov esi, ecx */ 3220 edi = esi + 0xC; /* 0x470110C4: lea edi, [esi + 0xc] */ 3221 PUSH32(esp, edi); /* 0x470110C7: push edi */ 3222 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470110C8: call dword ptr [0x470ac180] */ 3223 RECOMP_FLAGS_IN(); 3224 esi = MEM32(esi + 0x4); /* 0x470110CE: mov esi, dword ptr [esi + 4] */ 3225 PUSH32(esp, edi); /* 0x470110D1: push edi */ 3226 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470110D2: call dword ptr [0x470ac190] */ 3227 RECOMP_FLAGS_IN(); 3228 edi = POP32_VAL(esp); /* 0x470110D8: pop edi */ 3229 eax = esi; /* 0x470110D9: mov eax, esi */ 3230 esi = POP32_VAL(esp); /* 0x470110DB: pop esi */ 3231 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470110DC: ret */ 3232 RECOMP_REGS_OUT(); 3233 } 3234 3235 void sub_470110E0(void) { 3236 int _fpu_cmp = 0; 3237 uint32_t _cf = 0; 3238 int _df = 1; 3239 uint32_t _flag_k = FK_NONE; 3240 uint32_t _flag_a = 0, _flag_b = 0; 3241 uint32_t _itail_tgt = 0; 3242 RECOMP_REGS_LOCALS 3243 RECOMP_ENTER(0x470110E0u); 3244 3245 L_470110E0: 3246 PUSH32(esp, esi); /* 0x470110E0: push esi */ 3247 PUSH32(esp, edi); /* 0x470110E1: push edi */ 3248 esi = ecx; /* 0x470110E2: mov esi, ecx */ 3249 edi = esi + 0xC; /* 0x470110E4: lea edi, [esi + 0xc] */ 3250 PUSH32(esp, edi); /* 0x470110E7: push edi */ 3251 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x470110E8: call dword ptr [0x470ac180] */ 3252 RECOMP_FLAGS_IN(); 3253 esi = MEM32(esi + 0x8); /* 0x470110EE: mov esi, dword ptr [esi + 8] */ 3254 PUSH32(esp, edi); /* 0x470110F1: push edi */ 3255 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x470110F2: call dword ptr [0x470ac190] */ 3256 RECOMP_FLAGS_IN(); 3257 edi = POP32_VAL(esp); /* 0x470110F8: pop edi */ 3258 eax = esi; /* 0x470110F9: mov eax, esi */ 3259 esi = POP32_VAL(esp); /* 0x470110FB: pop esi */ 3260 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470110FC: ret */ 3261 RECOMP_REGS_OUT(); 3262 } 3263 3264 void sub_47011100(void) { 3265 int _fpu_cmp = 0; 3266 uint32_t _cf = 0; 3267 int _df = 1; 3268 uint32_t _flag_k = FK_NONE; 3269 uint32_t _flag_a = 0, _flag_b = 0; 3270 uint32_t _itail_tgt = 0; 3271 RECOMP_REGS_LOCALS 3272 RECOMP_ENTER(0x47011100u); 3273 3274 L_47011100: 3275 PUSH32(esp, esi); /* 0x47011100: push esi */ 3276 PUSH32(esp, 0); /* 0x47011101: push 0 */ 3277 esi = ecx; /* 0x47011103: mov esi, ecx */ 3278 PUSH32(esp, 0); /* 0x47011105: push 0 */ 3279 RECOMP_ICALL(0x4702A790u); /* 0x47011107: call 0x4702a790 */ /* not lifted */ 3280 RECOMP_FLAGS_IN(); 3281 MEM32(esi) = 0x470ACA38u; /* 0x4701110C: mov dword ptr [esi], 0x470aca38 */ 3282 eax = esi; /* 0x47011112: mov eax, esi */ 3283 esi = POP32_VAL(esp); /* 0x47011114: pop esi */ 3284 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47011115: ret */ 3285 RECOMP_REGS_OUT(); 3286 } 3287 3288 void sub_47011120(void) { 3289 int _fpu_cmp = 0; 3290 uint32_t _cf = 0; 3291 int _df = 1; 3292 uint32_t _flag_k = FK_NONE; 3293 uint32_t _flag_a = 0, _flag_b = 0; 3294 uint32_t _itail_tgt = 0; 3295 RECOMP_REGS_LOCALS 3296 RECOMP_ENTER(0x47011120u); 3297 3298 L_47011120: 3299 eax = ecx; /* 0x47011120: mov eax, ecx */ 3300 ecx = MEM32(esp + 0x4); /* 0x47011122: mov ecx, dword ptr [esp + 4] */ 3301 edx = MEM32(ecx + 0x4); /* 0x47011126: mov edx, dword ptr [ecx + 4] */ 3302 MEM32(eax + 0x4) = edx; /* 0x47011129: mov dword ptr [eax + 4], edx */ 3303 ecx = MEM32(ecx + 0x8); /* 0x4701112C: mov ecx, dword ptr [ecx + 8] */ 3304 MEM32(eax + 0x8) = ecx; /* 0x4701112F: mov dword ptr [eax + 8], ecx */ 3305 MEM32(eax) = 0x470ACA38u; /* 0x47011132: mov dword ptr [eax], 0x470aca38 */ 3306 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47011138: ret 4 */ 3307 RECOMP_REGS_OUT(); 3308 } 3309 3310 void sub_47011140(void) { 3311 int _fpu_cmp = 0; 3312 uint32_t _cf = 0; 3313 int _df = 1; 3314 uint32_t _flag_k = FK_NONE; 3315 uint32_t _flag_a = 0, _flag_b = 0; 3316 uint32_t _itail_tgt = 0; 3317 RECOMP_REGS_LOCALS 3318 RECOMP_ENTER(0x47011140u); 3319 3320 L_47011140: 3321 goto L_4702A7B0; /* 0x47011140: jmp 0x4702a7b0 */ 3322 L_4702A7B0: 3323 MEM32(ecx) = 0x470AC5C0u; /* 0x4702A7B0: mov dword ptr [ecx], 0x470ac5c0 */ 3324 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702A7B6: ret */ 3325 RECOMP_REGS_OUT(); 3326 } 3327 3328 void sub_47011150(void) { 3329 int _fpu_cmp = 0; 3330 uint32_t _cf = 0; 3331 int _df = 1; 3332 uint32_t _flag_k = FK_NONE; 3333 uint32_t _flag_a = 0, _flag_b = 0; 3334 uint32_t _itail_tgt = 0; 3335 RECOMP_REGS_LOCALS 3336 RECOMP_ENTER(0x47011150u); 3337 3338 L_47011150: 3339 PUSH32(esp, ebx); /* 0x47011150: push ebx */ 3340 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47011151: mov bl, byte ptr [esp + 8] */ 3341 /* test LO8(ebx), 2 */ /* 0x47011155: test bl, 2 */ 3342 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3343 _cf = 0; 3344 _flag_k = FK_NARROW(FK_TEST, 24); 3345 PUSH32(esp, esi); /* 0x47011158: push esi */ 3346 esi = ecx; /* 0x47011159: mov esi, ecx */ 3347 if (TEST_Z(_flag_a, _flag_b)) goto L_47011188; /* 0x4701115B: je 0x47011188 */ 3348 L_4701115D: 3349 eax = MEM32(esi + (-0x4)); /* 0x4701115D: mov eax, dword ptr [esi - 4] */ 3350 PUSH32(esp, edi); /* 0x47011160: push edi */ 3351 PUSH32(esp, 0x47011140u); /* 0x47011161: push 0x47011140 */ 3352 edi = esi + (-0x4); /* 0x47011166: lea edi, [esi - 4] */ 3353 PUSH32(esp, eax); /* 0x47011169: push eax */ 3354 PUSH32(esp, 0xCu); /* 0x4701116A: push 0xc */ 3355 PUSH32(esp, esi); /* 0x4701116C: push esi */ 3356 RECOMP_ICALL(0x470A32EBu); /* 0x4701116D: call 0x470a32eb */ /* not lifted */ 3357 RECOMP_FLAGS_IN(); 3358 /* test LO8(ebx), 1 */ /* 0x47011172: test bl, 1 */ 3359 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3360 _cf = 0; 3361 _flag_k = FK_NARROW(FK_TEST, 24); 3362 if (TEST_Z(_flag_a, _flag_b)) goto L_47011180; /* 0x47011175: je 0x47011180 */ 3363 L_47011177: 3364 PUSH32(esp, edi); /* 0x47011177: push edi */ 3365 RECOMP_ICALL(0x470A32A2u); /* 0x47011178: call 0x470a32a2 */ /* not lifted */ 3366 RECOMP_FLAGS_IN(); 3367 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3369 esp = esp + 4; /* 0x4701117D: add esp, 4 */ 3370 _flag_k = FK_ADD; 3371 L_47011180: 3372 eax = edi; /* 0x47011180: mov eax, edi */ 3373 edi = POP32_VAL(esp); /* 0x47011182: pop edi */ 3374 esi = POP32_VAL(esp); /* 0x47011183: pop esi */ 3375 ebx = POP32_VAL(esp); /* 0x47011184: pop ebx */ 3376 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47011185: ret 4 */ 3377 L_47011188: 3378 ecx = esi; /* 0x47011188: mov ecx, esi */ 3379 RECOMP_ICALL(0x47011140u); /* 0x4701118A: call 0x47011140 */ /* not lifted */ 3380 RECOMP_FLAGS_IN(); 3381 /* test LO8(ebx), 1 */ /* 0x4701118F: test bl, 1 */ 3382 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3383 _cf = 0; 3384 _flag_k = FK_NARROW(FK_TEST, 24); 3385 if (TEST_Z(_flag_a, _flag_b)) goto L_4701119D; /* 0x47011192: je 0x4701119d */ 3386 L_47011194: 3387 PUSH32(esp, esi); /* 0x47011194: push esi */ 3388 RECOMP_ICALL(0x470A32A2u); /* 0x47011195: call 0x470a32a2 */ /* not lifted */ 3389 RECOMP_FLAGS_IN(); 3390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3392 esp = esp + 4; /* 0x4701119A: add esp, 4 */ 3393 _flag_k = FK_ADD; 3394 L_4701119D: 3395 eax = esi; /* 0x4701119D: mov eax, esi */ 3396 esi = POP32_VAL(esp); /* 0x4701119F: pop esi */ 3397 ebx = POP32_VAL(esp); /* 0x470111A0: pop ebx */ 3398 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470111A1: ret 4 */ 3399 RECOMP_REGS_OUT(); 3400 } 3401 3402 void sub_470111B0(void) { 3403 int _fpu_cmp = 0; 3404 uint32_t _cf = 0; 3405 int _df = 1; 3406 uint32_t _flag_k = FK_NONE; 3407 uint32_t _flag_a = 0, _flag_b = 0; 3408 uint32_t _itail_tgt = 0; 3409 RECOMP_REGS_LOCALS 3410 RECOMP_ENTER(0x470111B0u); 3411 3412 L_470111B0: 3413 eax = ecx; /* 0x470111B0: mov eax, ecx */ 3414 ecx = MEM32(esp + 0x4); /* 0x470111B2: mov ecx, dword ptr [esp + 4] */ 3415 edx = MEM32(ecx + 0x4); /* 0x470111B6: mov edx, dword ptr [ecx + 4] */ 3416 MEM32(eax + 0x4) = edx; /* 0x470111B9: mov dword ptr [eax + 4], edx */ 3417 edx = MEM32(ecx + 0x8); /* 0x470111BC: mov edx, dword ptr [ecx + 8] */ 3418 MEM32(eax + 0x8) = edx; /* 0x470111BF: mov dword ptr [eax + 8], edx */ 3419 edx = MEM32(ecx + 0xC); /* 0x470111C2: mov edx, dword ptr [ecx + 0xc] */ 3420 MEM32(eax + 0xC) = edx; /* 0x470111C5: mov dword ptr [eax + 0xc], edx */ 3421 edx = MEM32(ecx + 0x10); /* 0x470111C8: mov edx, dword ptr [ecx + 0x10] */ 3422 MEM32(eax + 0x10) = edx; /* 0x470111CB: mov dword ptr [eax + 0x10], edx */ 3423 edx = MEM32(ecx + 0x14); /* 0x470111CE: mov edx, dword ptr [ecx + 0x14] */ 3424 MEM32(eax + 0x14) = edx; /* 0x470111D1: mov dword ptr [eax + 0x14], edx */ 3425 edx = MEM32(ecx + 0x18); /* 0x470111D4: mov edx, dword ptr [ecx + 0x18] */ 3426 MEM32(eax + 0x18) = edx; /* 0x470111D7: mov dword ptr [eax + 0x18], edx */ 3427 edx = MEM32(ecx + 0x1C); /* 0x470111DA: mov edx, dword ptr [ecx + 0x1c] */ 3428 MEM32(eax + 0x1C) = edx; /* 0x470111DD: mov dword ptr [eax + 0x1c], edx */ 3429 edx = MEM32(ecx + 0x20); /* 0x470111E0: mov edx, dword ptr [ecx + 0x20] */ 3430 MEM32(eax + 0x20) = edx; /* 0x470111E3: mov dword ptr [eax + 0x20], edx */ 3431 edx = MEM32(ecx + 0x24); /* 0x470111E6: mov edx, dword ptr [ecx + 0x24] */ 3432 MEM32(eax + 0x24) = edx; /* 0x470111E9: mov dword ptr [eax + 0x24], edx */ 3433 edx = MEM32(ecx + 0x28); /* 0x470111EC: mov edx, dword ptr [ecx + 0x28] */ 3434 MEM32(eax + 0x28) = edx; /* 0x470111EF: mov dword ptr [eax + 0x28], edx */ 3435 edx = MEM32(ecx + 0x2C); /* 0x470111F2: mov edx, dword ptr [ecx + 0x2c] */ 3436 MEM32(eax + 0x2C) = edx; /* 0x470111F5: mov dword ptr [eax + 0x2c], edx */ 3437 ecx = MEM32(ecx + 0x30); /* 0x470111F8: mov ecx, dword ptr [ecx + 0x30] */ 3438 MEM32(eax + 0x30) = ecx; /* 0x470111FB: mov dword ptr [eax + 0x30], ecx */ 3439 MEM32(eax) = 0x470ACA78u; /* 0x470111FE: mov dword ptr [eax], 0x470aca78 */ 3440 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47011204: ret 4 */ 3441 RECOMP_REGS_OUT(); 3442 } 3443 3444 void sub_47011210(void) { 3445 int _fpu_cmp = 0; 3446 uint32_t _cf = 0; 3447 int _df = 1; 3448 uint32_t _flag_k = FK_NONE; 3449 uint32_t _flag_a = 0, _flag_b = 0; 3450 uint32_t _itail_tgt = 0; 3451 RECOMP_REGS_LOCALS 3452 RECOMP_ENTER(0x47011210u); 3453 3454 L_47011210: 3455 PUSH32(esp, ebx); /* 0x47011210: push ebx */ 3456 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47011211: mov bl, byte ptr [esp + 8] */ 3457 /* test LO8(ebx), 2 */ /* 0x47011215: test bl, 2 */ 3458 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 3459 _cf = 0; 3460 _flag_k = FK_NARROW(FK_TEST, 24); 3461 PUSH32(esp, esi); /* 0x47011218: push esi */ 3462 esi = ecx; /* 0x47011219: mov esi, ecx */ 3463 if (TEST_Z(_flag_a, _flag_b)) goto L_47011248; /* 0x4701121B: je 0x47011248 */ 3464 L_4701121D: 3465 eax = MEM32(esi + (-0x4)); /* 0x4701121D: mov eax, dword ptr [esi - 4] */ 3466 PUSH32(esp, edi); /* 0x47011220: push edi */ 3467 PUSH32(esp, 0x4709B570u); /* 0x47011221: push 0x4709b570 */ 3468 edi = esi + (-0x4); /* 0x47011226: lea edi, [esi - 4] */ 3469 PUSH32(esp, eax); /* 0x47011229: push eax */ 3470 PUSH32(esp, 0x34u); /* 0x4701122A: push 0x34 */ 3471 PUSH32(esp, esi); /* 0x4701122C: push esi */ 3472 RECOMP_ICALL(0x470A32EBu); /* 0x4701122D: call 0x470a32eb */ /* not lifted */ 3473 RECOMP_FLAGS_IN(); 3474 /* test LO8(ebx), 1 */ /* 0x47011232: test bl, 1 */ 3475 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3476 _cf = 0; 3477 _flag_k = FK_NARROW(FK_TEST, 24); 3478 if (TEST_Z(_flag_a, _flag_b)) goto L_47011240; /* 0x47011235: je 0x47011240 */ 3479 L_47011237: 3480 PUSH32(esp, edi); /* 0x47011237: push edi */ 3481 RECOMP_ICALL(0x470A32A2u); /* 0x47011238: call 0x470a32a2 */ /* not lifted */ 3482 RECOMP_FLAGS_IN(); 3483 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3485 esp = esp + 4; /* 0x4701123D: add esp, 4 */ 3486 _flag_k = FK_ADD; 3487 L_47011240: 3488 eax = edi; /* 0x47011240: mov eax, edi */ 3489 edi = POP32_VAL(esp); /* 0x47011242: pop edi */ 3490 esi = POP32_VAL(esp); /* 0x47011243: pop esi */ 3491 ebx = POP32_VAL(esp); /* 0x47011244: pop ebx */ 3492 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47011245: ret 4 */ 3493 L_47011248: 3494 ecx = esi; /* 0x47011248: mov ecx, esi */ 3495 RECOMP_ICALL(0x4709B570u); /* 0x4701124A: call 0x4709b570 */ /* not lifted */ 3496 RECOMP_FLAGS_IN(); 3497 /* test LO8(ebx), 1 */ /* 0x4701124F: test bl, 1 */ 3498 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 3499 _cf = 0; 3500 _flag_k = FK_NARROW(FK_TEST, 24); 3501 if (TEST_Z(_flag_a, _flag_b)) goto L_4701125D; /* 0x47011252: je 0x4701125d */ 3502 L_47011254: 3503 PUSH32(esp, esi); /* 0x47011254: push esi */ 3504 RECOMP_ICALL(0x470A32A2u); /* 0x47011255: call 0x470a32a2 */ /* not lifted */ 3505 RECOMP_FLAGS_IN(); 3506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3508 esp = esp + 4; /* 0x4701125A: add esp, 4 */ 3509 _flag_k = FK_ADD; 3510 L_4701125D: 3511 eax = esi; /* 0x4701125D: mov eax, esi */ 3512 esi = POP32_VAL(esp); /* 0x4701125F: pop esi */ 3513 ebx = POP32_VAL(esp); /* 0x47011260: pop ebx */ 3514 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47011261: ret 4 */ 3515 RECOMP_REGS_OUT(); 3516 } 3517 3518 void sub_47011270(void) { 3519 int _fpu_cmp = 0; 3520 uint32_t _cf = 0; 3521 int _df = 1; 3522 uint32_t _flag_k = FK_NONE; 3523 uint32_t _flag_a = 0, _flag_b = 0; 3524 uint32_t _itail_tgt = 0; 3525 RECOMP_REGS_LOCALS 3526 RECOMP_ENTER(0x47011270u); 3527 3528 L_47011270: 3529 PUSH32(esp, 0xFFFFFFFFu); /* 0x47011270: push -1 */ 3530 PUSH32(esp, 0x470A3A34u); /* 0x47011272: push 0x470a3a34 */ 3531 eax = MEM32(FS_BASE + (0)); /* 0x47011277: mov eax, dword ptr fs:[0] */ 3532 PUSH32(esp, eax); /* 0x4701127D: push eax */ 3533 MEM32(FS_BASE + (0)) = esp; /* 0x4701127E: mov dword ptr fs:[0], esp */ 3534 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3536 esp = esp - 0x10u; /* 0x47011285: sub esp, 0x10 */ 3537 _flag_k = FK_CMP; 3538 PUSH32(esp, ebx); /* 0x47011288: push ebx */ 3539 PUSH32(esp, ebp); /* 0x47011289: push ebp */ 3540 PUSH32(esp, esi); /* 0x4701128A: push esi */ 3541 ebx = ecx; /* 0x4701128B: mov ebx, ecx */ 3542 PUSH32(esp, edi); /* 0x4701128D: push edi */ 3543 MEM32(esp + 0x10) = ebx; /* 0x4701128E: mov dword ptr [esp + 0x10], ebx */ 3544 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3545 edi = 0; /* 0x47011292: xor edi, edi */ 3546 _cf = 0; 3547 _flag_k = FK_TEST; 3548 MEM32(esp + 0x28) = edi; /* 0x47011294: mov dword ptr [esp + 0x28], edi */ 3549 esi = ebx + 0x18; /* 0x47011298: lea esi, [ebx + 0x18] */ 3550 MEM32(esp + 0x14) = esi; /* 0x4701129B: mov dword ptr [esp + 0x14], esi */ 3551 MEM32(esi) = 0x470ACAC8u; /* 0x4701129F: mov dword ptr [esi], 0x470acac8 */ 3552 /* cmp MEM32(esi + 0x4), edi */ /* 0x470112A5: cmp dword ptr [esi + 4], edi */ 3553 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(edi); 3554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3555 _flag_k = FK_CMP; 3556 MEM8(esp + 0x28) = (uint8_t)(5); /* 0x470112A8: mov byte ptr [esp + 0x28], 5 */ 3557 if (CMP_EQ(_flag_a, _flag_b)) goto L_47011391; /* 0x470112AD: je 0x47011391 */ 3558 L_470112B3: 3559 eax = esi + 0x28; /* 0x470112B3: lea eax, [esi + 0x28] */ 3560 PUSH32(esp, eax); /* 0x470112B6: push eax */ 3561 ecx = esp + 0x1C; /* 0x470112B7: lea ecx, [esp + 0x1c] */ 3562 RECOMP_ICALL(0x470139A0u); /* 0x470112BB: call 0x470139a0 */ /* not lifted */ 3563 RECOMP_FLAGS_IN(); 3564 /* cmp MEM32(esp + 0x1C), 0xFFFFFFFFu */ /* 0x470112C0: cmp dword ptr [esp + 0x1c], -1 */ 3565 _flag_a = (uint32_t)(MEM32(esp + 0x1C)); _flag_b = (uint32_t)(0xFFFFFFFFu); 3566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3567 _flag_k = FK_CMP; 3568 MEM8(esp + 0x28) = (uint8_t)(6); /* 0x470112C5: mov byte ptr [esp + 0x28], 6 */ 3569 if (CMP_NE(_flag_a, _flag_b)) goto L_470112DC; /* 0x470112CA: jne 0x470112dc */ 3570 L_470112CC: 3571 ecx = esp + 0x18; /* 0x470112CC: lea ecx, [esp + 0x18] */ 3572 MEM8(esp + 0x28) = (uint8_t)(5); /* 0x470112D0: mov byte ptr [esp + 0x28], 5 */ 3573 RECOMP_ICALL(0x470559D0u); /* 0x470112D5: call 0x470559d0 */ /* not lifted */ 3574 RECOMP_FLAGS_IN(); 3575 goto L_47011335; /* 0x470112DA: jmp 0x47011335 */ 3576 L_470112DC: 3577 edx = MEM32(esi); /* 0x470112DC: mov edx, dword ptr [esi] */ 3578 ecx = esi; /* 0x470112DE: mov ecx, esi */ 3579 RECOMP_ICALL(MEM32(edx + 0x88)); /* 0x470112E0: call dword ptr [edx + 0x88] */ 3580 RECOMP_FLAGS_IN(); 3581 ecx = MEM32(esi + 0x4); /* 0x470112E6: mov ecx, dword ptr [esi + 4] */ 3582 /* cmp ecx, edi */ /* 0x470112E9: cmp ecx, edi */ 3583 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3585 _flag_k = FK_CMP; 3586 ebp = eax; /* 0x470112EB: mov ebp, eax */ 3587 MEM32(esi + 0x8) = edi; /* 0x470112ED: mov dword ptr [esi + 8], edi */ 3588 if (CMP_EQ(_flag_a, _flag_b)) goto L_47011322; /* 0x470112F0: je 0x47011322 */ 3589 L_470112F2: 3590 _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(1); 3591 MEM32(esi + 0x1C) = MEM32(esi + 0x1C) - 1; /* 0x470112F2: dec dword ptr [esi + 0x1c] */ 3592 _flag_k = FK_DEC; 3593 RECOMP_ICALL(0x47043FB0u); /* 0x470112F5: call 0x47043fb0 */ /* not lifted */ 3594 RECOMP_FLAGS_IN(); 3595 edx = MEM32(esi + 0x14); /* 0x470112FA: mov edx, dword ptr [esi + 0x14] */ 3596 ecx = MEM32(esi + 0x4); /* 0x470112FD: mov ecx, dword ptr [esi + 4] */ 3597 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3599 edx = edx - eax; /* 0x47011300: sub edx, eax */ 3600 _flag_k = FK_CMP; 3601 MEM32(esi + 0x14) = edx; /* 0x47011302: mov dword ptr [esi + 0x14], edx */ 3602 RECOMP_ICALL(0x47043FD0u); /* 0x47011305: call 0x47043fd0 */ /* not lifted */ 3603 RECOMP_FLAGS_IN(); 3604 _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax); 3605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3606 MEM32(esi + 0x18) = MEM32(esi + 0x18) - eax; /* 0x4701130A: sub dword ptr [esi + 0x18], eax */ 3607 _flag_k = FK_CMP; 3608 ecx = MEM32(esi + 0x4); /* 0x4701130D: mov ecx, dword ptr [esi + 4] */ 3609 eax = MEM32(ecx + 0x24); /* 0x47011310: mov eax, dword ptr [ecx + 0x24] */ 3610 MEM32(esi + 0x4) = eax; /* 0x47011313: mov dword ptr [esi + 4], eax */ 3611 RECOMP_ICALL(0x47044BD0u); /* 0x47011316: call 0x47044bd0 */ /* not lifted */ 3612 RECOMP_FLAGS_IN(); 3613 ecx = MEM32(esi + 0x4); /* 0x4701131B: mov ecx, dword ptr [esi + 4] */ 3614 /* cmp ecx, edi */ /* 0x4701131E: cmp ecx, edi */ 3615 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3616 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3617 _flag_k = FK_CMP; 3618 RECOMP_BACKEDGE(); 3619 if (CMP_NE(_flag_a, _flag_b)) goto L_470112F2; /* 0x47011320: jne 0x470112f2 */ 3620 L_47011322: 3621 ecx = esp + 0x18; /* 0x47011322: lea ecx, [esp + 0x18] */ 3622 MEM8(esp + 0x28) = (uint8_t)(5); /* 0x47011326: mov byte ptr [esp + 0x28], 5 */ 3623 RECOMP_ICALL(0x470559D0u); /* 0x4701132B: call 0x470559d0 */ /* not lifted */ 3624 RECOMP_FLAGS_IN(); 3625 /* cmp ebp, 0xFFFFFFFFu */ /* 0x47011330: cmp ebp, -1 */ 3626 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(0xFFFFFFFFu); 3627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3628 _flag_k = FK_CMP; 3629 if (CMP_NE(_flag_a, _flag_b)) goto L_47011391; /* 0x47011333: jne 0x47011391 */ 3630 L_47011335: 3631 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47011335: call dword ptr [0x470ac150] */ 3632 RECOMP_FLAGS_IN(); 3633 ebp = eax; /* 0x4701133B: mov ebp, eax */ 3634 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4701133D: call dword ptr [0x470ac3c8] */ 3635 RECOMP_FLAGS_IN(); 3636 eax = MEM32(eax); /* 0x47011343: mov eax, dword ptr [eax] */ 3637 /* cmp eax, edi */ /* 0x47011345: cmp eax, edi */ 3638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3640 _flag_k = FK_CMP; 3641 if (CMP_EQ(_flag_a, _flag_b)) goto L_4701134B; /* 0x47011347: je 0x4701134b */ 3642 L_47011349: 3643 ebp = eax; /* 0x47011349: mov ebp, eax */ 3644 L_4701134B: 3645 RECOMP_ICALL(0x47039020u); /* 0x4701134B: call 0x47039020 */ /* not lifted */ 3646 RECOMP_FLAGS_IN(); 3647 edi = eax; /* 0x47011350: mov edi, eax */ 3648 ecx = edi; /* 0x47011352: mov ecx, edi */ 3649 RECOMP_ICALL(0x4703B210u); /* 0x47011354: call 0x4703b210 */ /* not lifted */ 3650 RECOMP_FLAGS_IN(); 3651 PUSH32(esp, eax); /* 0x47011359: push eax */ 3652 ecx = edi; /* 0x4701135A: mov ecx, edi */ 3653 RECOMP_ICALL(0x4703B240u); /* 0x4701135C: call 0x4703b240 */ /* not lifted */ 3654 RECOMP_FLAGS_IN(); 3655 PUSH32(esp, eax); /* 0x47011361: push eax */ 3656 ecx = edi; /* 0x47011362: mov ecx, edi */ 3657 RECOMP_ICALL(0x4703B080u); /* 0x47011364: call 0x4703b080 */ /* not lifted */ 3658 RECOMP_FLAGS_IN(); 3659 PUSH32(esp, eax); /* 0x47011369: push eax */ 3660 PUSH32(esp, ebp); /* 0x4701136A: push ebp */ 3661 PUSH32(esp, 0xFFFFFFFFu); /* 0x4701136B: push -1 */ 3662 PUSH32(esp, 0xBFu); /* 0x4701136D: push 0xbf */ 3663 PUSH32(esp, 0x471051D0u); /* 0x47011372: push 0x471051d0 */ 3664 ecx = edi; /* 0x47011377: mov ecx, edi */ 3665 RECOMP_ICALL(0x4703A340u); /* 0x47011379: call 0x4703a340 */ /* not lifted */ 3666 RECOMP_FLAGS_IN(); 3667 PUSH32(esp, 0x471051C8u); /* 0x4701137E: push 0x471051c8 */ 3668 PUSH32(esp, 0x80u); /* 0x47011383: push 0x80 */ 3669 PUSH32(esp, edi); /* 0x47011388: push edi */ 3670 RECOMP_ICALL(0x47039830u); /* 0x47011389: call 0x47039830 */ /* not lifted */ 3671 RECOMP_FLAGS_IN(); 3672 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3674 esp = esp + 0xCu; /* 0x4701138E: add esp, 0xc */ 3675 _flag_k = FK_ADD; 3676 L_47011391: 3677 ecx = esi + 0x74; /* 0x47011391: lea ecx, [esi + 0x74] */ 3678 MEM8(esp + 0x28) = (uint8_t)(4); /* 0x47011394: mov byte ptr [esp + 0x28], 4 */ 3679 RECOMP_ICALL(0x47087480u); /* 0x47011399: call 0x47087480 */ /* not lifted */ 3680 RECOMP_FLAGS_IN(); 3681 ecx = esi + 0x44; /* 0x4701139E: lea ecx, [esi + 0x44] */ 3682 MEM8(esp + 0x28) = (uint8_t)(3); /* 0x470113A1: mov byte ptr [esp + 0x28], 3 */ 3683 RECOMP_ICALL(0x47087480u); /* 0x470113A6: call 0x47087480 */ /* not lifted */ 3684 RECOMP_FLAGS_IN(); 3685 ecx = esi + 0x28; /* 0x470113AB: lea ecx, [esi + 0x28] */ 3686 MEM8(esp + 0x28) = (uint8_t)(2); /* 0x470113AE: mov byte ptr [esp + 0x28], 2 */ 3687 RECOMP_ICALL(0x47087E30u); /* 0x470113B3: call 0x47087e30 */ /* not lifted */ 3688 RECOMP_FLAGS_IN(); 3689 ecx = ebx + 0x10; /* 0x470113B8: lea ecx, [ebx + 0x10] */ 3690 MEM32(esi) = 0x470ACA84u; /* 0x470113BB: mov dword ptr [esi], 0x470aca84 */ 3691 MEM8(esp + 0x28) = (uint8_t)(0); /* 0x470113C1: mov byte ptr [esp + 0x28], 0 */ 3692 RECOMP_ICALL(0x47086020u); /* 0x470113C6: call 0x47086020 */ /* not lifted */ 3693 RECOMP_FLAGS_IN(); 3694 ecx = ebx; /* 0x470113CB: mov ecx, ebx */ 3695 MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x470113CD: mov dword ptr [esp + 0x28], 0xffffffff */ 3696 RECOMP_ICALL(0x4702A7B0u); /* 0x470113D5: call 0x4702a7b0 */ /* not lifted */ 3697 RECOMP_FLAGS_IN(); 3698 ecx = MEM32(esp + 0x20); /* 0x470113DA: mov ecx, dword ptr [esp + 0x20] */ 3699 edi = POP32_VAL(esp); /* 0x470113DE: pop edi */ 3700 esi = POP32_VAL(esp); /* 0x470113DF: pop esi */ 3701 ebp = POP32_VAL(esp); /* 0x470113E0: pop ebp */ 3702 ebx = POP32_VAL(esp); /* 0x470113E1: pop ebx */ 3703 MEM32(FS_BASE + (0)) = ecx; /* 0x470113E2: mov dword ptr fs:[0], ecx */ 3704 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3705 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3706 esp = esp + 0x1Cu; /* 0x470113E9: add esp, 0x1c */ 3707 _flag_k = FK_ADD; 3708 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470113EC: ret */ 3709 RECOMP_REGS_OUT(); 3710 } 3711 3712 void sub_47011335(void) { 3713 int _fpu_cmp = 0; 3714 uint32_t _cf = 0; 3715 int _df = 1; 3716 uint32_t _flag_k = FK_NONE; 3717 uint32_t _flag_a = 0, _flag_b = 0; 3718 uint32_t _itail_tgt = 0; 3719 RECOMP_REGS_LOCALS 3720 RECOMP_ENTER(0x47011335u); 3721 3722 L_47011335: 3723 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47011335: call dword ptr [0x470ac150] */ 3724 RECOMP_FLAGS_IN(); 3725 ebp = eax; /* 0x4701133B: mov ebp, eax */ 3726 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4701133D: call dword ptr [0x470ac3c8] */ 3727 RECOMP_FLAGS_IN(); 3728 eax = MEM32(eax); /* 0x47011343: mov eax, dword ptr [eax] */ 3729 /* cmp eax, edi */ /* 0x47011345: cmp eax, edi */ 3730 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3731 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3732 _flag_k = FK_CMP; 3733 if (CMP_EQ(_flag_a, _flag_b)) goto L_4701134B; /* 0x47011347: je 0x4701134b */ 3734 L_47011349: 3735 ebp = eax; /* 0x47011349: mov ebp, eax */ 3736 L_4701134B: 3737 RECOMP_ICALL(0x47039020u); /* 0x4701134B: call 0x47039020 */ /* not lifted */ 3738 RECOMP_FLAGS_IN(); 3739 edi = eax; /* 0x47011350: mov edi, eax */ 3740 ecx = edi; /* 0x47011352: mov ecx, edi */ 3741 RECOMP_ICALL(0x4703B210u); /* 0x47011354: call 0x4703b210 */ /* not lifted */ 3742 RECOMP_FLAGS_IN(); 3743 PUSH32(esp, eax); /* 0x47011359: push eax */ 3744 ecx = edi; /* 0x4701135A: mov ecx, edi */ 3745 RECOMP_ICALL(0x4703B240u); /* 0x4701135C: call 0x4703b240 */ /* not lifted */ 3746 RECOMP_FLAGS_IN(); 3747 PUSH32(esp, eax); /* 0x47011361: push eax */ 3748 ecx = edi; /* 0x47011362: mov ecx, edi */ 3749 RECOMP_ICALL(0x4703B080u); /* 0x47011364: call 0x4703b080 */ /* not lifted */ 3750 RECOMP_FLAGS_IN(); 3751 PUSH32(esp, eax); /* 0x47011369: push eax */ 3752 PUSH32(esp, ebp); /* 0x4701136A: push ebp */ 3753 PUSH32(esp, 0xFFFFFFFFu); /* 0x4701136B: push -1 */ 3754 PUSH32(esp, 0xBFu); /* 0x4701136D: push 0xbf */ 3755 PUSH32(esp, 0x471051D0u); /* 0x47011372: push 0x471051d0 */ 3756 ecx = edi; /* 0x47011377: mov ecx, edi */ 3757 RECOMP_ICALL(0x4703A340u); /* 0x47011379: call 0x4703a340 */ /* not lifted */ 3758 RECOMP_FLAGS_IN(); 3759 PUSH32(esp, 0x471051C8u); /* 0x4701137E: push 0x471051c8 */ 3760 PUSH32(esp, 0x80u); /* 0x47011383: push 0x80 */ 3761 PUSH32(esp, edi); /* 0x47011388: push edi */ 3762 RECOMP_ICALL(0x47039830u); /* 0x47011389: call 0x47039830 */ /* not lifted */ 3763 RECOMP_FLAGS_IN(); 3764 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3765 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3766 esp = esp + 0xCu; /* 0x4701138E: add esp, 0xc */ 3767 _flag_k = FK_ADD; 3768 ecx = esi + 0x74; /* 0x47011391: lea ecx, [esi + 0x74] */ 3769 MEM8(esp + 0x28) = (uint8_t)(4); /* 0x47011394: mov byte ptr [esp + 0x28], 4 */ 3770 RECOMP_ICALL(0x47087480u); /* 0x47011399: call 0x47087480 */ /* not lifted */ 3771 RECOMP_FLAGS_IN(); 3772 ecx = esi + 0x44; /* 0x4701139E: lea ecx, [esi + 0x44] */ 3773 MEM8(esp + 0x28) = (uint8_t)(3); /* 0x470113A1: mov byte ptr [esp + 0x28], 3 */ 3774 RECOMP_ICALL(0x47087480u); /* 0x470113A6: call 0x47087480 */ /* not lifted */ 3775 RECOMP_FLAGS_IN(); 3776 ecx = esi + 0x28; /* 0x470113AB: lea ecx, [esi + 0x28] */ 3777 MEM8(esp + 0x28) = (uint8_t)(2); /* 0x470113AE: mov byte ptr [esp + 0x28], 2 */ 3778 RECOMP_ICALL(0x47087E30u); /* 0x470113B3: call 0x47087e30 */ /* not lifted */ 3779 RECOMP_FLAGS_IN(); 3780 ecx = ebx + 0x10; /* 0x470113B8: lea ecx, [ebx + 0x10] */ 3781 MEM32(esi) = 0x470ACA84u; /* 0x470113BB: mov dword ptr [esi], 0x470aca84 */ 3782 MEM8(esp + 0x28) = (uint8_t)(0); /* 0x470113C1: mov byte ptr [esp + 0x28], 0 */ 3783 RECOMP_ICALL(0x47086020u); /* 0x470113C6: call 0x47086020 */ /* not lifted */ 3784 RECOMP_FLAGS_IN(); 3785 ecx = ebx; /* 0x470113CB: mov ecx, ebx */ 3786 MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x470113CD: mov dword ptr [esp + 0x28], 0xffffffff */ 3787 RECOMP_ICALL(0x4702A7B0u); /* 0x470113D5: call 0x4702a7b0 */ /* not lifted */ 3788 RECOMP_FLAGS_IN(); 3789 ecx = MEM32(esp + 0x20); /* 0x470113DA: mov ecx, dword ptr [esp + 0x20] */ 3790 edi = POP32_VAL(esp); /* 0x470113DE: pop edi */ 3791 esi = POP32_VAL(esp); /* 0x470113DF: pop esi */ 3792 ebp = POP32_VAL(esp); /* 0x470113E0: pop ebp */ 3793 ebx = POP32_VAL(esp); /* 0x470113E1: pop ebx */ 3794 MEM32(FS_BASE + (0)) = ecx; /* 0x470113E2: mov dword ptr fs:[0], ecx */ 3795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 3796 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3797 esp = esp + 0x1Cu; /* 0x470113E9: add esp, 0x1c */ 3798 _flag_k = FK_ADD; 3799 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470113EC: ret */ 3800 RECOMP_REGS_OUT(); 3801 } 3802 3803 void sub_470113F0(void) { 3804 int _fpu_cmp = 0; 3805 uint32_t _cf = 0; 3806 int _df = 1; 3807 uint32_t _flag_k = FK_NONE; 3808 uint32_t _flag_a = 0, _flag_b = 0; 3809 uint32_t _itail_tgt = 0; 3810 RECOMP_REGS_LOCALS 3811 RECOMP_ENTER(0x470113F0u); 3812 3813 L_470113F0: 3814 PUSH32(esp, 0); /* 0x470113F0: push 0 */ 3815 PUSH32(esp, 0); /* 0x470113F2: push 0 */ 3816 RECOMP_ICALL(0x4709D010u); /* 0x470113F4: call 0x4709d010 */ /* not lifted */ 3817 RECOMP_FLAGS_IN(); 3818 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470113F9: ret */ 3819 RECOMP_REGS_OUT(); 3820 } 3821 3822 void sub_47011400(void) { 3823 int _fpu_cmp = 0; 3824 uint32_t _cf = 0; 3825 int _df = 1; 3826 uint32_t _flag_k = FK_NONE; 3827 uint32_t _flag_a = 0, _flag_b = 0; 3828 uint32_t _itail_tgt = 0; 3829 RECOMP_REGS_LOCALS 3830 RECOMP_ENTER(0x47011400u); 3831 3832 L_47011400: 3833 RECOMP_ICALL(0x4709BAF0u); /* 0x47011400: call 0x4709baf0 */ /* not lifted */ 3834 RECOMP_FLAGS_IN(); 3835 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3836 eax = 0; /* 0x47011405: xor eax, eax */ 3837 _cf = 0; 3838 _flag_k = FK_TEST; 3839 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47011407: ret */ 3840 RECOMP_REGS_OUT(); 3841 } 3842 3843 void sub_47011410(void) { 3844 int _fpu_cmp = 0; 3845 uint32_t _cf = 0; 3846 int _df = 1; 3847 uint32_t _flag_k = FK_NONE; 3848 uint32_t _flag_a = 0, _flag_b = 0; 3849 uint32_t _itail_tgt = 0; 3850 RECOMP_REGS_LOCALS 3851 RECOMP_ENTER(0x47011410u); 3852 3853 L_47011410: 3854 PUSH32(esp, esi); /* 0x47011410: push esi */ 3855 esi = ecx; /* 0x47011411: mov esi, ecx */ 3856 ecx = MEM32(esi + 0x4); /* 0x47011413: mov ecx, dword ptr [esi + 4] */ 3857 eax = MEM32(ecx); /* 0x47011416: mov eax, dword ptr [ecx] */ 3858 PUSH32(esp, edi); /* 0x47011418: push edi */ 3859 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47011419: call dword ptr [eax + 0x104] */ 3860 RECOMP_FLAGS_IN(); 3861 edi = eax; /* 0x4701141F: mov edi, eax */ 3862 RECOMP_ICALL(MEM32(0x470AC14C)); /* 0x47011421: call dword ptr [0x470ac14c] */ 3863 RECOMP_FLAGS_IN(); 3864 /* cmp eax, edi */ /* 0x47011427: cmp eax, edi */ 3865 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3867 _flag_k = FK_CMP; 3868 eax = MEM32(esi + 0xC); /* 0x47011429: mov eax, dword ptr [esi + 0xc] */ 3869 if (CMP_EQ(_flag_a, _flag_b)) goto L_47011431; /* 0x4701142C: je 0x47011431 */ 3870 L_4701142E: 3871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3873 eax = eax + 4; /* 0x4701142E: add eax, 4 */ 3874 _flag_k = FK_ADD; 3875 L_47011431: 3876 edi = POP32_VAL(esp); /* 0x47011431: pop edi */ 3877 esi = POP32_VAL(esp); /* 0x47011432: pop esi */ 3878 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47011433: ret */ 3879 RECOMP_REGS_OUT(); 3880 } 3881 3882 void sub_47011440(void) { 3883 int _fpu_cmp = 0; 3884 uint32_t _cf = 0; 3885 int _df = 1; 3886 uint32_t _flag_k = FK_NONE; 3887 uint32_t _flag_a = 0, _flag_b = 0; 3888 uint32_t _itail_tgt = 0; 3889 RECOMP_REGS_LOCALS 3890 RECOMP_ENTER(0x47011440u); 3891 3892 L_47011440: 3893 PUSH32(esp, esi); /* 0x47011440: push esi */ 3894 esi = ecx; /* 0x47011441: mov esi, ecx */ 3895 ecx = MEM32(esi + 0x4); /* 0x47011443: mov ecx, dword ptr [esi + 4] */ 3896 eax = MEM32(ecx); /* 0x47011446: mov eax, dword ptr [ecx] */ 3897 PUSH32(esp, edi); /* 0x47011448: push edi */ 3898 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47011449: call dword ptr [eax + 0x104] */ 3899 RECOMP_FLAGS_IN(); 3900 edi = eax; /* 0x4701144F: mov edi, eax */ 3901 RECOMP_ICALL(MEM32(0x470AC14C)); /* 0x47011451: call dword ptr [0x470ac14c] */ 3902 RECOMP_FLAGS_IN(); 3903 /* cmp eax, edi */ /* 0x47011457: cmp eax, edi */ 3904 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3906 _flag_k = FK_CMP; 3907 eax = MEM32(esi + 0x10); /* 0x47011459: mov eax, dword ptr [esi + 0x10] */ 3908 if (CMP_EQ(_flag_a, _flag_b)) goto L_47011461; /* 0x4701145C: je 0x47011461 */ 3909 L_4701145E: 3910 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x20u); 3911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3912 eax = eax + 0x20u; /* 0x4701145E: add eax, 0x20 */ 3913 _flag_k = FK_ADD; 3914 L_47011461: 3915 edi = POP32_VAL(esp); /* 0x47011461: pop edi */ 3916 esi = POP32_VAL(esp); /* 0x47011462: pop esi */ 3917 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47011463: ret */ 3918 RECOMP_REGS_OUT(); 3919 } 3920 3921 void sub_47011470(void) { 3922 int _fpu_cmp = 0; 3923 uint32_t _cf = 0; 3924 int _df = 1; 3925 uint32_t _flag_k = FK_NONE; 3926 uint32_t _flag_a = 0, _flag_b = 0; 3927 uint32_t _itail_tgt = 0; 3928 RECOMP_REGS_LOCALS 3929 RECOMP_ENTER(0x47011470u); 3930 3931 L_47011470: 3932 PUSH32(esp, esi); /* 0x47011470: push esi */ 3933 esi = ecx; /* 0x47011471: mov esi, ecx */ 3934 ecx = MEM32(esi + 0x4); /* 0x47011473: mov ecx, dword ptr [esi + 4] */ 3935 eax = MEM32(ecx); /* 0x47011476: mov eax, dword ptr [ecx] */ 3936 PUSH32(esp, edi); /* 0x47011478: push edi */ 3937 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x47011479: call dword ptr [eax + 0x104] */ 3938 RECOMP_FLAGS_IN(); 3939 edi = eax; /* 0x4701147F: mov edi, eax */ 3940 RECOMP_ICALL(MEM32(0x470AC14C)); /* 0x47011481: call dword ptr [0x470ac14c] */ 3941 RECOMP_FLAGS_IN(); 3942 /* cmp eax, edi */ /* 0x47011487: cmp eax, edi */ 3943 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3945 _flag_k = FK_CMP; 3946 eax = MEM32(esi + 0x14); /* 0x47011489: mov eax, dword ptr [esi + 0x14] */ 3947 if (CMP_EQ(_flag_a, _flag_b)) goto L_4701148F; /* 0x4701148C: je 0x4701148f */ 3948 L_4701148E: 3949 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3950 eax = eax - 1; /* 0x4701148E: dec eax */ 3951 _flag_k = FK_DEC; 3952 L_4701148F: 3953 edi = POP32_VAL(esp); /* 0x4701148F: pop edi */ 3954 esi = POP32_VAL(esp); /* 0x47011490: pop esi */ 3955 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47011491: ret */ 3956 RECOMP_REGS_OUT(); 3957 } 3958 3959 void sub_470114A0(void) { 3960 int _fpu_cmp = 0; 3961 uint32_t _cf = 0; 3962 int _df = 1; 3963 uint32_t _flag_k = FK_NONE; 3964 uint32_t _flag_a = 0, _flag_b = 0; 3965 uint32_t _itail_tgt = 0; 3966 RECOMP_REGS_LOCALS 3967 RECOMP_ENTER(0x470114A0u); 3968 3969 L_470114A0: 3970 PUSH32(esp, esi); /* 0x470114A0: push esi */ 3971 esi = ecx; /* 0x470114A1: mov esi, ecx */ 3972 ecx = MEM32(esi + 0x4); /* 0x470114A3: mov ecx, dword ptr [esi + 4] */ 3973 eax = MEM32(ecx); /* 0x470114A6: mov eax, dword ptr [ecx] */ 3974 PUSH32(esp, edi); /* 0x470114A8: push edi */ 3975 RECOMP_ICALL(MEM32(eax + 0x104)); /* 0x470114A9: call dword ptr [eax + 0x104] */ 3976 RECOMP_FLAGS_IN(); 3977 edi = eax; /* 0x470114AF: mov edi, eax */ 3978 RECOMP_ICALL(MEM32(0x470AC14C)); /* 0x470114B1: call dword ptr [0x470ac14c] */ 3979 RECOMP_FLAGS_IN(); 3980 /* cmp eax, edi */ /* 0x470114B7: cmp eax, edi */ 3981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3983 _flag_k = FK_CMP; 3984 if (CMP_NE(_flag_a, _flag_b)) goto L_470114D6; /* 0x470114B9: jne 0x470114d6 */ 3985 L_470114BB: 3986 ecx = MEM32(esp + 0xC); /* 0x470114BB: mov ecx, dword ptr [esp + 0xc] */ 3987 edx = MEM32(esi + 0x10); /* 0x470114BF: mov edx, dword ptr [esi + 0x10] */ 3988 if (5u) _cf = (((ecx) >> 27) & 1u); /* 0x470114C2: shl ecx, 5 */ 3989 if (5u) { _flag_a = recomp_flags_pack((ecx << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3990 ecx = ecx << 5u; /* 0x470114C2: shl ecx, 5 */ 3991 esi = MEM32(ecx + edx + 0x14); /* 0x470114C5: mov esi, dword ptr [ecx + edx + 0x14] */ 3992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3993 eax = 0; /* 0x470114C9: xor eax, eax */ 3994 _cf = 0; 3995 _flag_k = FK_TEST; 3996 /* cmp esi, 1 */ /* 0x470114CB: cmp esi, 1 */ 3997 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 3998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3999 _flag_k = FK_CMP; 4000 edi = POP32_VAL(esp); /* 0x470114CE: pop edi */ 4001 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x470114CF: sete al */ 4002 esi = POP32_VAL(esp); /* 0x470114D2: pop esi */ 4003 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470114D3: ret 4 */ 4004 L_470114D6: 4005 eax = MEM32(esp + 0xC); /* 0x470114D6: mov eax, dword ptr [esp + 0xc] */ 4006 ecx = MEM32(esi + 0x10); /* 0x470114DA: mov ecx, dword ptr [esi + 0x10] */ 4007 if (5u) _cf = (((eax) >> 27) & 1u); /* 0x470114DD: shl eax, 5 */ 4008 if (5u) { _flag_a = recomp_flags_pack((eax << 5u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4009 eax = eax << 5u; /* 0x470114DD: shl eax, 5 */ 4010 esi = MEM32(eax + ecx + 0x34); /* 0x470114E0: mov esi, dword ptr [eax + ecx + 0x34] */ 4011 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4012 edx = 0; /* 0x470114E4: xor edx, edx */ 4013 _cf = 0; 4014 _flag_k = FK_TEST; 4015 /* cmp esi, 1 */ /* 0x470114E6: cmp esi, 1 */ 4016 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 4017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4018 _flag_k = FK_CMP; 4019 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x470114E9: sete dl */ 4020 edi = POP32_VAL(esp); /* 0x470114EC: pop edi */ 4021 esi = POP32_VAL(esp); /* 0x470114ED: pop esi */ 4022 eax = edx; /* 0x470114EE: mov eax, edx */ 4023 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470114F0: ret 4 */ 4024 RECOMP_REGS_OUT(); 4025 } 4026 4027 void sub_47011500(void) { 4028 int _fpu_cmp = 0; 4029 uint32_t _cf = 0; 4030 int _df = 1; 4031 uint32_t _flag_k = FK_NONE; 4032 uint32_t _flag_a = 0, _flag_b = 0; 4033 uint32_t _itail_tgt = 0; 4034 RECOMP_REGS_LOCALS 4035 RECOMP_ENTER(0x47011500u); 4036 4037 L_47011500: 4038 /* cmp MEM32(esp + 0x4), 0xFFFFFFFFu */ /* 0x47011500: cmp dword ptr [esp + 4], -1 */ 4039 _flag_a = (uint32_t)(MEM32(esp + 0x4)); _flag_b = (uint32_t)(0xFFFFFFFFu); 4040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4041 _flag_k = FK_CMP; 4042 if (CMP_NE(_flag_a, _flag_b)) goto L_4701151B; /* 0x47011505: jne 0x4701151b */ 4043 L_47011507: 4044 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47011507: call dword ptr [0x470ac3c8] */ 4045 RECOMP_FLAGS_IN(); 4046 MEM32(eax) = 0x16u; /* 0x4701150D: mov dword ptr [eax], 0x16 */ 4047 eax = 1; /* 0x47011513: mov eax, 1 */ 4048 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47011518: ret 4 */ 4049 L_4701151B: 4050 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4051 eax = 0; /* 0x4701151B: xor eax, eax */ 4052 _cf = 0; 4053 _flag_k = FK_TEST; 4054 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4701151D: ret 4 */ 4055 RECOMP_REGS_OUT(); 4056 } 4057 4058 void sub_47011520(void) { 4059 int _fpu_cmp = 0; 4060 uint32_t _cf = 0; 4061 int _df = 1; 4062 uint32_t _flag_k = FK_NONE; 4063 uint32_t _flag_a = 0, _flag_b = 0; 4064 uint32_t _itail_tgt = 0; 4065 RECOMP_REGS_LOCALS 4066 RECOMP_ENTER(0x47011520u); 4067 4068 L_47011520: 4069 eax = MEM32(ecx + 0x1C); /* 0x47011520: mov eax, dword ptr [ecx + 0x1c] */ 4070 /* test eax, eax */ /* 0x47011523: test eax, eax */ 4071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4072 _cf = 0; 4073 _flag_k = FK_TEST; 4074 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701153F; /* 0x47011525: ja 0x4701153f */ 4075 L_47011527: 4076 eax = MEM32(ecx + 0x30); /* 0x47011527: mov eax, dword ptr [ecx + 0x30] */ 4077 /* test eax, eax */ /* 0x4701152A: test eax, eax */ 4078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4079 _cf = 0; 4080 _flag_k = FK_TEST; 4081 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701153F; /* 0x4701152C: ja 0x4701153f */ 4082 L_4701152E: 4083 eax = MEM32(ecx + 0x28); /* 0x4701152E: mov eax, dword ptr [ecx + 0x28] */ 4084 /* test eax, eax */ /* 0x47011531: test eax, eax */ 4085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4086 _cf = 0; 4087 _flag_k = FK_TEST; 4088 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701153F; /* 0x47011533: ja 0x4701153f */ 4089 L_47011535: 4090 eax = MEM32(ecx + 0x2C); /* 0x47011535: mov eax, dword ptr [ecx + 0x2c] */ 4091 /* test eax, eax */ /* 0x47011538: test eax, eax */ 4092 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4093 _cf = 0; 4094 _flag_k = FK_TEST; 4095 if (TEST_NZ(_flag_a, _flag_b)) goto L_4701153F; /* 0x4701153A: ja 0x4701153f */ 4096 L_4701153C: 4097 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4098 eax = 0; /* 0x4701153C: xor eax, eax */ 4099 _cf = 0; 4100 _flag_k = FK_TEST; 4101 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4701153E: ret */ 4102 L_4701153F: 4103 eax = 1; /* 0x4701153F: mov eax, 1 */ 4104 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47011544: ret */ 4105 RECOMP_REGS_OUT(); 4106 } 4107 4108 void sub_47011550(void) { 4109 int _fpu_cmp = 0; 4110 uint32_t _cf = 0; 4111 int _df = 1; 4112 uint32_t _flag_k = FK_NONE; 4113 uint32_t _flag_a = 0, _flag_b = 0; 4114 uint32_t _itail_tgt = 0; 4115 RECOMP_REGS_LOCALS 4116 RECOMP_ENTER(0x47011550u); 4117 4118 L_47011550: 4119 PUSH32(esp, esi); /* 0x47011550: push esi */ 4120 esi = ecx; /* 0x47011551: mov esi, ecx */ 4121 RECOMP_ICALL(0x4709BD20u); /* 0x47011553: call 0x4709bd20 */ /* not lifted */ 4122 RECOMP_FLAGS_IN(); 4123 ecx = esi; /* 0x47011558: mov ecx, esi */ 4124 RECOMP_ICALL(0x4709BEF0u); /* 0x4701155A: call 0x4709bef0 */ /* not lifted */ 4125 RECOMP_FLAGS_IN(); 4126 ecx = esi; /* 0x4701155F: mov ecx, esi */ 4127 RECOMP_ICALL(0x4709C0A0u); /* 0x47011561: call 0x4709c0a0 */ /* not lifted */ 4128 RECOMP_FLAGS_IN(); 4129 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4130 eax = 0; /* 0x47011566: xor eax, eax */ 4131 _cf = 0; 4132 _flag_k = FK_TEST; 4133 esi = POP32_VAL(esp); /* 0x47011568: pop esi */ 4134 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47011569: ret */ 4135 RECOMP_REGS_OUT(); 4136 }