client/vendor/ace/source/lifted-0018.c (603873B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 4 void sub_47022100(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(0x47022100u); 13 14 L_47022100: 15 PUSH32(esp, ecx); /* 0x47022100: push ecx */ 16 PUSH32(esp, ebx); /* 0x47022101: push ebx */ 17 ebx = MEM32(esp + 0x10); /* 0x47022102: mov ebx, dword ptr [esp + 0x10] */ 18 /* cmp MEM8(ebx), 0 */ /* 0x47022106: cmp byte ptr [ebx], 0 */ 19 _flag_a = (uint32_t)(MEM8(ebx)) << 24; _flag_b = (uint32_t)(0) << 24; 20 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 21 _flag_k = FK_NARROW(FK_CMP, 24); 22 PUSH32(esp, esi); /* 0x47022109: push esi */ 23 PUSH32(esp, edi); /* 0x4702210A: push edi */ 24 esi = ebx; /* 0x4702210B: mov esi, ebx */ 25 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702212F; /* 0x4702210D: je 0x4702212f */ 26 L_4702210F: 27 edi = MEM32(0x470AC380); /* 0x4702210F: mov edi, dword ptr [0x470ac380] */ 28 L_47022115: 29 eax = (int32_t)(int8_t)MEM8(esi); /* 0x47022115: movsx eax, byte ptr [esi] */ 30 PUSH32(esp, eax); /* 0x47022118: push eax */ 31 PUSH32(esp, 0x47105AACu); /* 0x47022119: push 0x47105aac */ 32 RECOMP_ICALL(edi); /* 0x4702211E: call edi */ 33 RECOMP_FLAGS_IN(); 34 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 35 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 36 esp = esp + 8; /* 0x47022120: add esp, 8 */ 37 _flag_k = FK_ADD; 38 /* test eax, eax */ /* 0x47022123: test eax, eax */ 39 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 40 _cf = 0; 41 _flag_k = FK_TEST; 42 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022139; /* 0x47022125: jne 0x47022139 */ 43 L_47022127: 44 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x47022127: mov al, byte ptr [esi + 1] */ 45 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 46 esi = esi + 1; /* 0x4702212A: inc esi */ 47 _flag_k = FK_INC; 48 /* test LO8(eax), LO8(eax) */ /* 0x4702212B: test al, al */ 49 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 50 _cf = 0; 51 _flag_k = FK_NARROW(FK_TEST, 24); 52 RECOMP_BACKEDGE(); 53 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022115; /* 0x4702212D: jne 0x47022115 */ 54 L_4702212F: 55 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 56 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 57 esi = esi - ebx; /* 0x4702212F: sub esi, ebx */ 58 _flag_k = FK_CMP; 59 /* cmp esi, 0xFFu */ /* 0x47022131: cmp esi, 0xff */ 60 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 61 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 62 _flag_k = FK_CMP; 63 if (CMP_LE(_flag_a, _flag_b)) goto L_47022143; /* 0x47022137: jle 0x47022143 */ 64 L_47022139: 65 edi = POP32_VAL(esp); /* 0x47022139: pop edi */ 66 esi = POP32_VAL(esp); /* 0x4702213A: pop esi */ 67 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 68 eax = eax | 0xFFFFFFFFu; /* 0x4702213B: or eax, 0xffffffff */ 69 _cf = 0; 70 _flag_k = FK_TEST; 71 ebx = POP32_VAL(esp); /* 0x4702213E: pop ebx */ 72 ecx = POP32_VAL(esp); /* 0x4702213F: pop ecx */ 73 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47022140: ret 0xc */ 74 L_47022143: 75 eax = MEM32(esp + 0x14); /* 0x47022143: mov eax, dword ptr [esp + 0x14] */ 76 eax = MEM32(eax); /* 0x47022147: mov eax, dword ptr [eax] */ 77 /* test eax, eax */ /* 0x47022149: test eax, eax */ 78 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 79 _cf = 0; 80 _flag_k = FK_TEST; 81 RECOMP_BACKEDGE(); 82 if (TEST_Z(_flag_a, _flag_b)) goto L_47022139; /* 0x4702214B: je 0x47022139 */ 83 L_4702214D: 84 edx = MEM32(esp + 0x1C); /* 0x4702214D: mov edx, dword ptr [esp + 0x1c] */ 85 eax = MEM32(eax + 0x8); /* 0x47022151: mov eax, dword ptr [eax + 8] */ 86 ecx = esp + 0x18; /* 0x47022154: lea ecx, [esp + 0x18] */ 87 PUSH32(esp, ecx); /* 0x47022158: push ecx */ 88 PUSH32(esp, edx); /* 0x47022159: push edx */ 89 ecx = esp + 0x14; /* 0x4702215A: lea ecx, [esp + 0x14] */ 90 PUSH32(esp, ecx); /* 0x4702215E: push ecx */ 91 PUSH32(esp, 0); /* 0x4702215F: push 0 */ 92 PUSH32(esp, ebx); /* 0x47022161: push ebx */ 93 esi = 4; /* 0x47022162: mov esi, 4 */ 94 PUSH32(esp, eax); /* 0x47022167: push eax */ 95 MEM32(esp + 0x30) = esi; /* 0x47022168: mov dword ptr [esp + 0x30], esi */ 96 RECOMP_ICALL(MEM32(0x470AC020)); /* 0x4702216C: call dword ptr [0x470ac020] */ 97 RECOMP_FLAGS_IN(); 98 /* test eax, eax */ /* 0x47022172: test eax, eax */ 99 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 100 _cf = 0; 101 _flag_k = FK_TEST; 102 if (TEST_Z(_flag_a, _flag_b)) goto L_47022182; /* 0x47022174: je 0x47022182 */ 103 L_47022176: 104 edi = POP32_VAL(esp); /* 0x47022176: pop edi */ 105 esi = POP32_VAL(esp); /* 0x47022177: pop esi */ 106 eax = 0xFFFFFFFEu; /* 0x47022178: mov eax, 0xfffffffe */ 107 ebx = POP32_VAL(esp); /* 0x4702217D: pop ebx */ 108 ecx = POP32_VAL(esp); /* 0x4702217E: pop ecx */ 109 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702217F: ret 0xc */ 110 L_47022182: 111 edi = MEM32(esp + 0xC); /* 0x47022182: mov edi, dword ptr [esp + 0xc] */ 112 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 113 eax = 0; /* 0x47022186: xor eax, eax */ 114 _cf = 0; 115 _flag_k = FK_TEST; 116 /* cmp edi, esi */ /* 0x47022188: cmp edi, esi */ 117 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 119 _flag_k = FK_CMP; 120 SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x4702218A: sete al */ 121 edi = POP32_VAL(esp); /* 0x4702218D: pop edi */ 122 esi = POP32_VAL(esp); /* 0x4702218E: pop esi */ 123 ebx = POP32_VAL(esp); /* 0x4702218F: pop ebx */ 124 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 125 eax = eax - 1; /* 0x47022190: dec eax */ 126 _flag_k = FK_DEC; 127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFDu); 128 eax = eax & 0xFFFFFFFDu; /* 0x47022191: and eax, 0xfffffffd */ 129 _cf = 0; 130 _flag_k = FK_TEST; 131 ecx = POP32_VAL(esp); /* 0x47022194: pop ecx */ 132 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47022195: ret 0xc */ 133 RECOMP_REGS_OUT(); 134 } 135 136 void sub_470221A0(void) { 137 int _fpu_cmp = 0; 138 uint32_t _cf = 0; 139 int _df = 1; 140 uint32_t _flag_k = FK_NONE; 141 uint32_t _flag_a = 0, _flag_b = 0; 142 uint32_t _itail_tgt = 0; 143 RECOMP_REGS_LOCALS 144 RECOMP_ENTER(0x470221A0u); 145 146 L_470221A0: 147 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x108u); 148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 149 esp = esp - 0x108u; /* 0x470221A0: sub esp, 0x108 */ 150 _flag_k = FK_CMP; 151 PUSH32(esp, ebx); /* 0x470221A6: push ebx */ 152 ebx = MEM32(esp + 0x114); /* 0x470221A7: mov ebx, dword ptr [esp + 0x114] */ 153 /* cmp MEM8(ebx), 0 */ /* 0x470221AE: cmp byte ptr [ebx], 0 */ 154 _flag_a = (uint32_t)(MEM8(ebx)) << 24; _flag_b = (uint32_t)(0) << 24; 155 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 156 _flag_k = FK_NARROW(FK_CMP, 24); 157 PUSH32(esp, esi); /* 0x470221B1: push esi */ 158 PUSH32(esp, edi); /* 0x470221B2: push edi */ 159 esi = ebx; /* 0x470221B3: mov esi, ebx */ 160 if (CMP_EQ(_flag_a, _flag_b)) goto L_470221D7; /* 0x470221B5: je 0x470221d7 */ 161 L_470221B7: 162 edi = MEM32(0x470AC380); /* 0x470221B7: mov edi, dword ptr [0x470ac380] */ 163 L_470221BD: 164 eax = (int32_t)(int8_t)MEM8(esi); /* 0x470221BD: movsx eax, byte ptr [esi] */ 165 PUSH32(esp, eax); /* 0x470221C0: push eax */ 166 PUSH32(esp, 0x47105AACu); /* 0x470221C1: push 0x47105aac */ 167 RECOMP_ICALL(edi); /* 0x470221C6: call edi */ 168 RECOMP_FLAGS_IN(); 169 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 170 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 171 esp = esp + 8; /* 0x470221C8: add esp, 8 */ 172 _flag_k = FK_ADD; 173 /* test eax, eax */ /* 0x470221CB: test eax, eax */ 174 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 175 _cf = 0; 176 _flag_k = FK_TEST; 177 if (TEST_NZ(_flag_a, _flag_b)) goto L_470221E1; /* 0x470221CD: jne 0x470221e1 */ 178 L_470221CF: 179 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x470221CF: mov al, byte ptr [esi + 1] */ 180 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 181 esi = esi + 1; /* 0x470221D2: inc esi */ 182 _flag_k = FK_INC; 183 /* test LO8(eax), LO8(eax) */ /* 0x470221D3: test al, al */ 184 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 185 _cf = 0; 186 _flag_k = FK_NARROW(FK_TEST, 24); 187 RECOMP_BACKEDGE(); 188 if (TEST_NZ(_flag_a, _flag_b)) goto L_470221BD; /* 0x470221D5: jne 0x470221bd */ 189 L_470221D7: 190 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 192 esi = esi - ebx; /* 0x470221D7: sub esi, ebx */ 193 _flag_k = FK_CMP; 194 /* cmp esi, 0xFFu */ /* 0x470221D9: cmp esi, 0xff */ 195 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 197 _flag_k = FK_CMP; 198 if (CMP_LE(_flag_a, _flag_b)) goto L_470221F0; /* 0x470221DF: jle 0x470221f0 */ 199 L_470221E1: 200 edi = POP32_VAL(esp); /* 0x470221E1: pop edi */ 201 esi = POP32_VAL(esp); /* 0x470221E2: pop esi */ 202 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 203 eax = eax | 0xFFFFFFFFu; /* 0x470221E3: or eax, 0xffffffff */ 204 _cf = 0; 205 _flag_k = FK_TEST; 206 ebx = POP32_VAL(esp); /* 0x470221E6: pop ebx */ 207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x108u); 208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 209 esp = esp + 0x108u; /* 0x470221E7: add esp, 0x108 */ 210 _flag_k = FK_ADD; 211 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470221ED: ret 0x10 */ 212 L_470221F0: 213 eax = MEM32(esp + 0x118); /* 0x470221F0: mov eax, dword ptr [esp + 0x118] */ 214 eax = MEM32(eax); /* 0x470221F7: mov eax, dword ptr [eax] */ 215 /* test eax, eax */ /* 0x470221F9: test eax, eax */ 216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 217 _cf = 0; 218 _flag_k = FK_TEST; 219 RECOMP_BACKEDGE(); 220 if (TEST_Z(_flag_a, _flag_b)) goto L_470221E1; /* 0x470221FB: je 0x470221e1 */ 221 L_470221FD: 222 eax = MEM32(eax + 0x8); /* 0x470221FD: mov eax, dword ptr [eax + 8] */ 223 ecx = esp + 0xC; /* 0x47022200: lea ecx, [esp + 0xc] */ 224 PUSH32(esp, ecx); /* 0x47022204: push ecx */ 225 edx = esp + 0x18; /* 0x47022205: lea edx, [esp + 0x18] */ 226 PUSH32(esp, edx); /* 0x47022209: push edx */ 227 ecx = esp + 0x18; /* 0x4702220A: lea ecx, [esp + 0x18] */ 228 PUSH32(esp, ecx); /* 0x4702220E: push ecx */ 229 PUSH32(esp, 0); /* 0x4702220F: push 0 */ 230 PUSH32(esp, ebx); /* 0x47022211: push ebx */ 231 PUSH32(esp, eax); /* 0x47022212: push eax */ 232 MEM32(esp + 0x24) = 0x100u; /* 0x47022213: mov dword ptr [esp + 0x24], 0x100 */ 233 RECOMP_ICALL(MEM32(0x470AC020)); /* 0x4702221B: call dword ptr [0x470ac020] */ 234 RECOMP_FLAGS_IN(); 235 /* test eax, eax */ /* 0x47022221: test eax, eax */ 236 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 237 _cf = 0; 238 _flag_k = FK_TEST; 239 if (TEST_Z(_flag_a, _flag_b)) goto L_47022236; /* 0x47022223: je 0x47022236 */ 240 L_47022225: 241 edi = POP32_VAL(esp); /* 0x47022225: pop edi */ 242 esi = POP32_VAL(esp); /* 0x47022226: pop esi */ 243 eax = 0xFFFFFFFEu; /* 0x47022227: mov eax, 0xfffffffe */ 244 ebx = POP32_VAL(esp); /* 0x4702222C: pop ebx */ 245 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x108u); 246 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 247 esp = esp + 0x108u; /* 0x4702222D: add esp, 0x108 */ 248 _flag_k = FK_ADD; 249 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47022233: ret 0x10 */ 250 L_47022236: 251 /* cmp MEM32(esp + 0x10), 3 */ /* 0x47022236: cmp dword ptr [esp + 0x10], 3 */ 252 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(3); 253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 254 _flag_k = FK_CMP; 255 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702224E; /* 0x4702223B: je 0x4702224e */ 256 L_4702223D: 257 edi = POP32_VAL(esp); /* 0x4702223D: pop edi */ 258 esi = POP32_VAL(esp); /* 0x4702223E: pop esi */ 259 eax = 0xFFFFFFFDu; /* 0x4702223F: mov eax, 0xfffffffd */ 260 ebx = POP32_VAL(esp); /* 0x47022244: pop ebx */ 261 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x108u); 262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 263 esp = esp + 0x108u; /* 0x47022245: add esp, 0x108 */ 264 _flag_k = FK_ADD; 265 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702224B: ret 0x10 */ 266 L_4702224E: 267 eax = MEM32(esp + 0xC); /* 0x4702224E: mov eax, dword ptr [esp + 0xc] */ 268 esi = MEM32(esp + 0x124); /* 0x47022252: mov esi, dword ptr [esp + 0x124] */ 269 PUSH32(esp, eax); /* 0x47022259: push eax */ 270 MEM32(esi) = eax; /* 0x4702225A: mov dword ptr [esi], eax */ 271 RECOMP_ICALL(0x470A33F2u); /* 0x4702225C: call 0x470a33f2 */ /* not lifted */ 272 RECOMP_FLAGS_IN(); 273 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 274 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 275 esp = esp + 4; /* 0x47022261: add esp, 4 */ 276 _flag_k = FK_ADD; 277 /* test eax, eax */ /* 0x47022264: test eax, eax */ 278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 279 _cf = 0; 280 _flag_k = FK_TEST; 281 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022285; /* 0x47022266: jne 0x47022285 */ 282 L_47022268: 283 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022268: call dword ptr [0x470ac3c8] */ 284 RECOMP_FLAGS_IN(); 285 edi = POP32_VAL(esp); /* 0x4702226E: pop edi */ 286 esi = POP32_VAL(esp); /* 0x4702226F: pop esi */ 287 MEM32(eax) = 0xCu; /* 0x47022270: mov dword ptr [eax], 0xc */ 288 eax = 0xFFFFFFFCu; /* 0x47022276: mov eax, 0xfffffffc */ 289 ebx = POP32_VAL(esp); /* 0x4702227B: pop ebx */ 290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x108u); 291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 292 esp = esp + 0x108u; /* 0x4702227C: add esp, 0x108 */ 293 _flag_k = FK_ADD; 294 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47022282: ret 0x10 */ 295 L_47022285: 296 ecx = MEM32(esi); /* 0x47022285: mov ecx, dword ptr [esi] */ 297 edx = ecx; /* 0x47022287: mov edx, ecx */ 298 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47022289: shr ecx, 2 */ 299 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 300 ecx = ecx >> 2u; /* 0x47022289: shr ecx, 2 */ 301 edi = eax; /* 0x4702228C: mov edi, eax */ 302 esi = esp + 0x14; /* 0x4702228E: lea esi, [esp + 0x14] */ 303 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47022292: 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; } 304 ecx = edx; /* 0x47022294: mov ecx, edx */ 305 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 306 ecx = ecx & 3; /* 0x47022296: and ecx, 3 */ 307 _cf = 0; 308 _flag_k = FK_TEST; 309 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47022299: 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; } 310 ecx = MEM32(esp + 0x120); /* 0x4702229B: mov ecx, dword ptr [esp + 0x120] */ 311 edi = POP32_VAL(esp); /* 0x470222A2: pop edi */ 312 esi = POP32_VAL(esp); /* 0x470222A3: pop esi */ 313 MEM32(ecx) = eax; /* 0x470222A4: mov dword ptr [ecx], eax */ 314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 315 eax = 0; /* 0x470222A6: xor eax, eax */ 316 _cf = 0; 317 _flag_k = FK_TEST; 318 ebx = POP32_VAL(esp); /* 0x470222A8: pop ebx */ 319 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x108u); 320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 321 esp = esp + 0x108u; /* 0x470222A9: add esp, 0x108 */ 322 _flag_k = FK_ADD; 323 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470222AF: ret 0x10 */ 324 RECOMP_REGS_OUT(); 325 } 326 327 void sub_470222C0(void) { 328 int _fpu_cmp = 0; 329 uint32_t _cf = 0; 330 int _df = 1; 331 uint32_t _flag_k = FK_NONE; 332 uint32_t _flag_a = 0, _flag_b = 0; 333 uint32_t _itail_tgt = 0; 334 RECOMP_REGS_LOCALS 335 RECOMP_ENTER(0x470222C0u); 336 337 L_470222C0: 338 PUSH32(esp, ebx); /* 0x470222C0: push ebx */ 339 ebx = MEM32(esp + 0xC); /* 0x470222C1: mov ebx, dword ptr [esp + 0xc] */ 340 /* cmp MEM8(ebx), 0 */ /* 0x470222C5: cmp byte ptr [ebx], 0 */ 341 _flag_a = (uint32_t)(MEM8(ebx)) << 24; _flag_b = (uint32_t)(0) << 24; 342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 343 _flag_k = FK_NARROW(FK_CMP, 24); 344 PUSH32(esp, esi); /* 0x470222C8: push esi */ 345 PUSH32(esp, edi); /* 0x470222C9: push edi */ 346 esi = ebx; /* 0x470222CA: mov esi, ebx */ 347 if (CMP_EQ(_flag_a, _flag_b)) goto L_470222EE; /* 0x470222CC: je 0x470222ee */ 348 L_470222CE: 349 edi = MEM32(0x470AC380); /* 0x470222CE: mov edi, dword ptr [0x470ac380] */ 350 L_470222D4: 351 eax = (int32_t)(int8_t)MEM8(esi); /* 0x470222D4: movsx eax, byte ptr [esi] */ 352 PUSH32(esp, eax); /* 0x470222D7: push eax */ 353 PUSH32(esp, 0x47105AACu); /* 0x470222D8: push 0x47105aac */ 354 RECOMP_ICALL(edi); /* 0x470222DD: call edi */ 355 RECOMP_FLAGS_IN(); 356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 358 esp = esp + 8; /* 0x470222DF: add esp, 8 */ 359 _flag_k = FK_ADD; 360 /* test eax, eax */ /* 0x470222E2: test eax, eax */ 361 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 362 _cf = 0; 363 _flag_k = FK_TEST; 364 if (TEST_NZ(_flag_a, _flag_b)) goto L_470222F8; /* 0x470222E4: jne 0x470222f8 */ 365 L_470222E6: 366 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x470222E6: mov al, byte ptr [esi + 1] */ 367 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 368 esi = esi + 1; /* 0x470222E9: inc esi */ 369 _flag_k = FK_INC; 370 /* test LO8(eax), LO8(eax) */ /* 0x470222EA: test al, al */ 371 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 372 _cf = 0; 373 _flag_k = FK_NARROW(FK_TEST, 24); 374 RECOMP_BACKEDGE(); 375 if (TEST_NZ(_flag_a, _flag_b)) goto L_470222D4; /* 0x470222EC: jne 0x470222d4 */ 376 L_470222EE: 377 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 378 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 379 esi = esi - ebx; /* 0x470222EE: sub esi, ebx */ 380 _flag_k = FK_CMP; 381 /* cmp esi, 0xFFu */ /* 0x470222F0: cmp esi, 0xff */ 382 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 383 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 384 _flag_k = FK_CMP; 385 if (CMP_LE(_flag_a, _flag_b)) goto L_47022301; /* 0x470222F6: jle 0x47022301 */ 386 L_470222F8: 387 edi = POP32_VAL(esp); /* 0x470222F8: pop edi */ 388 esi = POP32_VAL(esp); /* 0x470222F9: pop esi */ 389 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 390 eax = eax | 0xFFFFFFFFu; /* 0x470222FA: or eax, 0xffffffff */ 391 _cf = 0; 392 _flag_k = FK_TEST; 393 ebx = POP32_VAL(esp); /* 0x470222FD: pop ebx */ 394 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470222FE: ret 8 */ 395 L_47022301: 396 eax = MEM32(esp + 0x10); /* 0x47022301: mov eax, dword ptr [esp + 0x10] */ 397 eax = MEM32(eax); /* 0x47022305: mov eax, dword ptr [eax] */ 398 /* test eax, eax */ /* 0x47022307: test eax, eax */ 399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 400 _cf = 0; 401 _flag_k = FK_TEST; 402 RECOMP_BACKEDGE(); 403 if (TEST_Z(_flag_a, _flag_b)) goto L_470222F8; /* 0x47022309: je 0x470222f8 */ 404 L_4702230B: 405 eax = MEM32(eax + 0x8); /* 0x4702230B: mov eax, dword ptr [eax + 8] */ 406 PUSH32(esp, ebx); /* 0x4702230E: push ebx */ 407 PUSH32(esp, eax); /* 0x4702230F: push eax */ 408 RECOMP_ICALL(MEM32(0x470AC024)); /* 0x47022310: call dword ptr [0x470ac024] */ 409 RECOMP_FLAGS_IN(); 410 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 411 _cf = (eax) != 0; 412 eax = (uint32_t)(-(int32_t)eax); /* 0x47022316: neg eax */ 413 _flag_k = FK_CMP; 414 edi = POP32_VAL(esp); /* 0x47022318: pop edi */ 415 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47022319: sbb eax, eax */ 416 eax = _sc ? 0xFFFFFFFFu : 0; 417 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 418 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 419 esi = POP32_VAL(esp); /* 0x4702231B: pop esi */ 420 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFEu); 421 eax = eax & 0xFFFFFFFEu; /* 0x4702231C: and eax, 0xfffffffe */ 422 _cf = 0; 423 _flag_k = FK_TEST; 424 ebx = POP32_VAL(esp); /* 0x4702231F: pop ebx */ 425 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47022320: ret 8 */ 426 RECOMP_REGS_OUT(); 427 } 428 429 void sub_47022330(void) { 430 int _fpu_cmp = 0; 431 uint32_t _cf = 0; 432 int _df = 1; 433 uint32_t _flag_k = FK_NONE; 434 uint32_t _flag_a = 0, _flag_b = 0; 435 uint32_t _itail_tgt = 0; 436 RECOMP_REGS_LOCALS 437 RECOMP_ENTER(0x47022330u); 438 439 L_47022330: 440 eax = MEM32(esp + 0x4); /* 0x47022330: mov eax, dword ptr [esp + 4] */ 441 eax = MEM32(eax); /* 0x47022334: mov eax, dword ptr [eax] */ 442 /* test eax, eax */ /* 0x47022336: test eax, eax */ 443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 444 _cf = 0; 445 _flag_k = FK_TEST; 446 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022340; /* 0x47022338: jne 0x47022340 */ 447 L_4702233A: 448 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 449 eax = eax | 0xFFFFFFFFu; /* 0x4702233A: or eax, 0xffffffff */ 450 _cf = 0; 451 _flag_k = FK_TEST; 452 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702233D: ret 8 */ 453 L_47022340: 454 ecx = MEM32(eax + 0x8); /* 0x47022340: mov ecx, dword ptr [eax + 8] */ 455 edx = MEM32(esp + 0x8); /* 0x47022343: mov edx, dword ptr [esp + 8] */ 456 MEM32(edx) = ecx; /* 0x47022347: mov dword ptr [edx], ecx */ 457 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 458 eax = 0; /* 0x47022349: xor eax, eax */ 459 _cf = 0; 460 _flag_k = FK_TEST; 461 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702234B: ret 8 */ 462 RECOMP_REGS_OUT(); 463 } 464 465 void sub_47022350(void) { 466 int _fpu_cmp = 0; 467 uint32_t _cf = 0; 468 int _df = 1; 469 uint32_t _flag_k = FK_NONE; 470 uint32_t _flag_a = 0, _flag_b = 0; 471 uint32_t _itail_tgt = 0; 472 RECOMP_REGS_LOCALS 473 RECOMP_ENTER(0x47022350u); 474 475 L_47022350: 476 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022350: push -1 */ 477 PUSH32(esp, 0x470A4678u); /* 0x47022352: push 0x470a4678 */ 478 eax = MEM32(FS_BASE + (0)); /* 0x47022357: mov eax, dword ptr fs:[0] */ 479 PUSH32(esp, eax); /* 0x4702235D: push eax */ 480 MEM32(FS_BASE + (0)) = esp; /* 0x4702235E: mov dword ptr fs:[0], esp */ 481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 483 esp = esp - 0x18u; /* 0x47022365: sub esp, 0x18 */ 484 _flag_k = FK_CMP; 485 ecx = MEM32(esp + 0x28); /* 0x47022368: mov ecx, dword ptr [esp + 0x28] */ 486 PUSH32(esp, ebx); /* 0x4702236C: push ebx */ 487 PUSH32(esp, ebp); /* 0x4702236D: push ebp */ 488 ebp = MEM32(esp + 0x34); /* 0x4702236E: mov ebp, dword ptr [esp + 0x34] */ 489 PUSH32(esp, esi); /* 0x47022372: push esi */ 490 PUSH32(esp, edi); /* 0x47022373: push edi */ 491 eax = esp + 0x3C; /* 0x47022374: lea eax, [esp + 0x3c] */ 492 PUSH32(esp, eax); /* 0x47022378: push eax */ 493 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 494 ebx = 0; /* 0x47022379: xor ebx, ebx */ 495 _cf = 0; 496 _flag_k = FK_TEST; 497 PUSH32(esp, ebx); /* 0x4702237B: push ebx */ 498 PUSH32(esp, ecx); /* 0x4702237C: push ecx */ 499 MEM32(esp + 0x48) = ebx; /* 0x4702237D: mov dword ptr [esp + 0x48], ebx */ 500 RECOMP_ICALL(MEM32(0x470AC028)); /* 0x47022381: call dword ptr [0x470ac028] */ 501 RECOMP_FLAGS_IN(); 502 /* test eax, eax */ /* 0x47022387: test eax, eax */ 503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 504 _cf = 0; 505 _flag_k = FK_TEST; 506 if (TEST_Z(_flag_a, _flag_b)) goto L_470223A0; /* 0x47022389: je 0x470223a0 */ 507 L_4702238B: 508 edi = POP32_VAL(esp); /* 0x4702238B: pop edi */ 509 esi = POP32_VAL(esp); /* 0x4702238C: pop esi */ 510 ebp = POP32_VAL(esp); /* 0x4702238D: pop ebp */ 511 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 512 eax = 0; /* 0x4702238E: xor eax, eax */ 513 _cf = 0; 514 _flag_k = FK_TEST; 515 ebx = POP32_VAL(esp); /* 0x47022390: pop ebx */ 516 ecx = MEM32(esp + 0x18); /* 0x47022391: mov ecx, dword ptr [esp + 0x18] */ 517 MEM32(FS_BASE + (0)) = ecx; /* 0x47022395: mov dword ptr fs:[0], ecx */ 518 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 519 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 520 esp = esp + 0x24u; /* 0x4702239C: add esp, 0x24 */ 521 _flag_k = FK_ADD; 522 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702239F: ret */ 523 L_470223A0: 524 PUSH32(esp, 0x5Cu); /* 0x470223A0: push 0x5c */ 525 PUSH32(esp, ebp); /* 0x470223A2: push ebp */ 526 RECOMP_ICALL(MEM32(0x470AC380)); /* 0x470223A3: call dword ptr [0x470ac380] */ 527 RECOMP_FLAGS_IN(); 528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 530 esp = esp + 8; /* 0x470223A9: add esp, 8 */ 531 _flag_k = FK_ADD; 532 /* cmp eax, ebx */ /* 0x470223AC: cmp eax, ebx */ 533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 535 _flag_k = FK_CMP; 536 MEM32(esp + 0x10) = eax; /* 0x470223AE: mov dword ptr [esp + 0x10], eax */ 537 if (CMP_EQ(_flag_a, _flag_b)) goto L_470223BA; /* 0x470223B2: je 0x470223ba */ 538 L_470223B4: 539 esi = eax; /* 0x470223B4: mov esi, eax */ 540 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 542 esi = esi - ebp; /* 0x470223B6: sub esi, ebp */ 543 _flag_k = FK_CMP; 544 goto L_470223C8; /* 0x470223B8: jmp 0x470223c8 */ 545 L_470223BA: 546 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 547 ecx = ecx | 0xFFFFFFFFu; /* 0x470223BA: or ecx, 0xffffffff */ 548 _cf = 0; 549 _flag_k = FK_TEST; 550 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 551 eax = 0; /* 0x470223BD: xor eax, eax */ 552 _cf = 0; 553 _flag_k = FK_TEST; 554 edi = ebp; /* 0x470223BF: mov edi, ebp */ 555 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; } /* 0x470223C1: repne scasb al, byte ptr es:[edi] */ 556 ecx = ~ecx; /* 0x470223C3: not ecx */ 557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 558 ecx = ecx - 1; /* 0x470223C5: dec ecx */ 559 _flag_k = FK_DEC; 560 esi = ecx; /* 0x470223C6: mov esi, ecx */ 561 L_470223C8: 562 /* cmp esi, ebx */ /* 0x470223C8: cmp esi, ebx */ 563 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 565 _flag_k = FK_CMP; 566 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702250A; /* 0x470223CA: je 0x4702250a */ 567 L_470223D0: 568 RECOMP_ICALL(0x4703DAC0u); /* 0x470223D0: call 0x4703dac0 */ /* not lifted */ 569 RECOMP_FLAGS_IN(); 570 PUSH32(esp, 1); /* 0x470223D5: push 1 */ 571 PUSH32(esp, esi); /* 0x470223D7: push esi */ 572 PUSH32(esp, ebp); /* 0x470223D8: push ebp */ 573 ecx = esp + 0x20; /* 0x470223D9: lea ecx, [esp + 0x20] */ 574 MEM32(esp + 0x20) = eax; /* 0x470223DD: mov dword ptr [esp + 0x20], eax */ 575 MEM32(esp + 0x24) = ebx; /* 0x470223E1: mov dword ptr [esp + 0x24], ebx */ 576 MEM32(esp + 0x28) = ebx; /* 0x470223E5: mov dword ptr [esp + 0x28], ebx */ 577 MEM32(esp + 0x2C) = ebx; /* 0x470223E9: mov dword ptr [esp + 0x2c], ebx */ 578 MEM32(esp + 0x30) = ebx; /* 0x470223ED: mov dword ptr [esp + 0x30], ebx */ 579 RECOMP_ICALL(0x470802D0u); /* 0x470223F1: call 0x470802d0 */ /* not lifted */ 580 RECOMP_FLAGS_IN(); 581 edx = MEM32(esp + 0x18); /* 0x470223F6: mov edx, dword ptr [esp + 0x18] */ 582 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 583 edx = edx + 1; /* 0x470223FA: inc edx */ 584 _flag_k = FK_INC; 585 PUSH32(esp, edx); /* 0x470223FB: push edx */ 586 MEM32(esp + 0x34) = ebx; /* 0x470223FC: mov dword ptr [esp + 0x34], ebx */ 587 RECOMP_ICALL(0x470A33F2u); /* 0x47022400: call 0x470a33f2 */ /* not lifted */ 588 RECOMP_FLAGS_IN(); 589 esi = eax; /* 0x47022405: mov esi, eax */ 590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 592 esp = esp + 4; /* 0x47022407: add esp, 4 */ 593 _flag_k = FK_ADD; 594 /* cmp esi, ebx */ /* 0x4702240A: cmp esi, ebx */ 595 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 597 _flag_k = FK_CMP; 598 if (CMP_NE(_flag_a, _flag_b)) goto L_4702241E; /* 0x4702240C: jne 0x4702241e */ 599 L_4702240E: 600 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702240E: call dword ptr [0x470ac3c8] */ 601 RECOMP_FLAGS_IN(); 602 MEM32(eax) = 0xCu; /* 0x47022414: mov dword ptr [eax], 0xc */ 603 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 604 esi = 0; /* 0x4702241A: xor esi, esi */ 605 _cf = 0; 606 _flag_k = FK_TEST; 607 goto L_47022439; /* 0x4702241C: jmp 0x47022439 */ 608 L_4702241E: 609 eax = MEM32(esp + 0x18); /* 0x4702241E: mov eax, dword ptr [esp + 0x18] */ 610 ecx = MEM32(esp + 0x20); /* 0x47022422: mov ecx, dword ptr [esp + 0x20] */ 611 PUSH32(esp, eax); /* 0x47022426: push eax */ 612 PUSH32(esp, ecx); /* 0x47022427: push ecx */ 613 PUSH32(esp, esi); /* 0x47022428: push esi */ 614 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022429: call dword ptr [0x470ac22c] */ 615 RECOMP_FLAGS_IN(); 616 edx = MEM32(esp + 0x24); /* 0x4702242F: mov edx, dword ptr [esp + 0x24] */ 617 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 618 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 619 esp = esp + 0xCu; /* 0x47022433: add esp, 0xc */ 620 _flag_k = FK_ADD; 621 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022436: mov byte ptr [edx + esi], bl */ 622 L_47022439: 623 ecx = MEM32(esp + 0x3C); /* 0x47022439: mov ecx, dword ptr [esp + 0x3c] */ 624 eax = esp + 0x38; /* 0x4702243D: lea eax, [esp + 0x38] */ 625 PUSH32(esp, eax); /* 0x47022441: push eax */ 626 PUSH32(esp, esi); /* 0x47022442: push esi */ 627 PUSH32(esp, ecx); /* 0x47022443: push ecx */ 628 RECOMP_ICALL(MEM32(0x470AC028)); /* 0x47022444: call dword ptr [0x470ac028] */ 629 RECOMP_FLAGS_IN(); 630 /* test eax, eax */ /* 0x4702244A: test eax, eax */ 631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 632 _cf = 0; 633 _flag_k = FK_TEST; 634 if (TEST_Z(_flag_a, _flag_b)) goto L_470224B6; /* 0x4702244C: je 0x470224b6 */ 635 L_4702244E: 636 /* cmp MEM32(esp + 0x40), ebx */ /* 0x4702244E: cmp dword ptr [esp + 0x40], ebx */ 637 _flag_a = (uint32_t)(MEM32(esp + 0x40)); _flag_b = (uint32_t)(ebx); 638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 639 _flag_k = FK_CMP; 640 if (CMP_EQ(_flag_a, _flag_b)) goto L_470224EB; /* 0x47022452: je 0x470224eb */ 641 L_47022458: 642 edx = MEM32(esp + 0x18); /* 0x47022458: mov edx, dword ptr [esp + 0x18] */ 643 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 644 edx = edx + 1; /* 0x4702245C: inc edx */ 645 _flag_k = FK_INC; 646 PUSH32(esp, edx); /* 0x4702245D: push edx */ 647 RECOMP_ICALL(0x470A33F2u); /* 0x4702245E: call 0x470a33f2 */ /* not lifted */ 648 RECOMP_FLAGS_IN(); 649 esi = eax; /* 0x47022463: mov esi, eax */ 650 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 652 esp = esp + 4; /* 0x47022465: add esp, 4 */ 653 _flag_k = FK_ADD; 654 /* cmp esi, ebx */ /* 0x47022468: cmp esi, ebx */ 655 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 657 _flag_k = FK_CMP; 658 if (CMP_NE(_flag_a, _flag_b)) goto L_4702247C; /* 0x4702246A: jne 0x4702247c */ 659 L_4702246C: 660 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702246C: call dword ptr [0x470ac3c8] */ 661 RECOMP_FLAGS_IN(); 662 MEM32(eax) = 0xCu; /* 0x47022472: mov dword ptr [eax], 0xc */ 663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 664 esi = 0; /* 0x47022478: xor esi, esi */ 665 _cf = 0; 666 _flag_k = FK_TEST; 667 goto L_47022497; /* 0x4702247A: jmp 0x47022497 */ 668 L_4702247C: 669 eax = MEM32(esp + 0x18); /* 0x4702247C: mov eax, dword ptr [esp + 0x18] */ 670 ecx = MEM32(esp + 0x20); /* 0x47022480: mov ecx, dword ptr [esp + 0x20] */ 671 PUSH32(esp, eax); /* 0x47022484: push eax */ 672 PUSH32(esp, ecx); /* 0x47022485: push ecx */ 673 PUSH32(esp, esi); /* 0x47022486: push esi */ 674 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022487: call dword ptr [0x470ac22c] */ 675 RECOMP_FLAGS_IN(); 676 edx = MEM32(esp + 0x24); /* 0x4702248D: mov edx, dword ptr [esp + 0x24] */ 677 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 678 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 679 esp = esp + 0xCu; /* 0x47022491: add esp, 0xc */ 680 _flag_k = FK_ADD; 681 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022494: mov byte ptr [edx + esi], bl */ 682 L_47022497: 683 ecx = MEM32(esp + 0x3C); /* 0x47022497: mov ecx, dword ptr [esp + 0x3c] */ 684 PUSH32(esp, ebx); /* 0x4702249B: push ebx */ 685 eax = esp + 0x3C; /* 0x4702249C: lea eax, [esp + 0x3c] */ 686 PUSH32(esp, eax); /* 0x470224A0: push eax */ 687 PUSH32(esp, ebx); /* 0x470224A1: push ebx */ 688 PUSH32(esp, 0x000F003Fu); /* 0x470224A2: push 0xf003f */ 689 PUSH32(esp, ebx); /* 0x470224A7: push ebx */ 690 PUSH32(esp, ebx); /* 0x470224A8: push ebx */ 691 PUSH32(esp, ebx); /* 0x470224A9: push ebx */ 692 PUSH32(esp, esi); /* 0x470224AA: push esi */ 693 PUSH32(esp, ecx); /* 0x470224AB: push ecx */ 694 RECOMP_ICALL(MEM32(0x470AC008)); /* 0x470224AC: call dword ptr [0x470ac008] */ 695 RECOMP_FLAGS_IN(); 696 /* test eax, eax */ /* 0x470224B2: test eax, eax */ 697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 698 _cf = 0; 699 _flag_k = FK_TEST; 700 if (TEST_NZ(_flag_a, _flag_b)) goto L_470224EB; /* 0x470224B4: jne 0x470224eb */ 701 L_470224B6: 702 edx = MEM32(esp + 0x3C); /* 0x470224B6: mov edx, dword ptr [esp + 0x3c] */ 703 PUSH32(esp, edx); /* 0x470224BA: push edx */ 704 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224BB: call dword ptr [0x470ac004] */ 705 RECOMP_FLAGS_IN(); 706 ebp = MEM32(esp + 0x10); /* 0x470224C1: mov ebp, dword ptr [esp + 0x10] */ 707 /* cmp ebp, ebx */ /* 0x470224C5: cmp ebp, ebx */ 708 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 710 _flag_k = FK_CMP; 711 eax = MEM32(esp + 0x38); /* 0x470224C7: mov eax, dword ptr [esp + 0x38] */ 712 MEM32(esp + 0x3C) = eax; /* 0x470224CB: mov dword ptr [esp + 0x3c], eax */ 713 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702251F; /* 0x470224CF: je 0x4702251f */ 714 L_470224D1: 715 PUSH32(esp, ebx); /* 0x470224D1: push ebx */ 716 PUSH32(esp, ebx); /* 0x470224D2: push ebx */ 717 PUSH32(esp, ebx); /* 0x470224D3: push ebx */ 718 ecx = esp + 0x20; /* 0x470224D4: lea ecx, [esp + 0x20] */ 719 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1); 720 ebp = ebp + 1; /* 0x470224D8: inc ebp */ 721 _flag_k = FK_INC; 722 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224D9: mov dword ptr [esp + 0x3c], 0xffffffff */ 723 RECOMP_ICALL(0x470802D0u); /* 0x470224E1: call 0x470802d0 */ /* not lifted */ 724 RECOMP_FLAGS_IN(); 725 RECOMP_BACKEDGE(); 726 goto L_470223A0; /* 0x470224E6: jmp 0x470223a0 */ 727 L_470224EB: 728 eax = MEM32(esp + 0x3C); /* 0x470224EB: mov eax, dword ptr [esp + 0x3c] */ 729 PUSH32(esp, eax); /* 0x470224EF: push eax */ 730 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224F0: call dword ptr [0x470ac004] */ 731 RECOMP_FLAGS_IN(); 732 PUSH32(esp, ebx); /* 0x470224F6: push ebx */ 733 PUSH32(esp, ebx); /* 0x470224F7: push ebx */ 734 PUSH32(esp, ebx); /* 0x470224F8: push ebx */ 735 ecx = esp + 0x20; /* 0x470224F9: lea ecx, [esp + 0x20] */ 736 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224FD: mov dword ptr [esp + 0x3c], 0xffffffff */ 737 RECOMP_ICALL(0x470802D0u); /* 0x47022505: call 0x470802d0 */ /* not lifted */ 738 RECOMP_FLAGS_IN(); 739 L_4702250A: 740 edi = POP32_VAL(esp); /* 0x4702250A: pop edi */ 741 esi = POP32_VAL(esp); /* 0x4702250B: pop esi */ 742 ebp = POP32_VAL(esp); /* 0x4702250C: pop ebp */ 743 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 744 eax = 0; /* 0x4702250D: xor eax, eax */ 745 _cf = 0; 746 _flag_k = FK_TEST; 747 ebx = POP32_VAL(esp); /* 0x4702250F: pop ebx */ 748 ecx = MEM32(esp + 0x18); /* 0x47022510: mov ecx, dword ptr [esp + 0x18] */ 749 MEM32(FS_BASE + (0)) = ecx; /* 0x47022514: mov dword ptr fs:[0], ecx */ 750 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 752 esp = esp + 0x24u; /* 0x4702251B: add esp, 0x24 */ 753 _flag_k = FK_ADD; 754 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702251E: ret */ 755 L_4702251F: 756 PUSH32(esp, ebx); /* 0x4702251F: push ebx */ 757 PUSH32(esp, ebx); /* 0x47022520: push ebx */ 758 PUSH32(esp, ebx); /* 0x47022521: push ebx */ 759 ecx = esp + 0x20; /* 0x47022522: lea ecx, [esp + 0x20] */ 760 esi = eax; /* 0x47022526: mov esi, eax */ 761 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x47022528: mov dword ptr [esp + 0x3c], 0xffffffff */ 762 RECOMP_ICALL(0x470802D0u); /* 0x47022530: call 0x470802d0 */ /* not lifted */ 763 RECOMP_FLAGS_IN(); 764 ecx = MEM32(esp + 0x28); /* 0x47022535: mov ecx, dword ptr [esp + 0x28] */ 765 edi = POP32_VAL(esp); /* 0x47022539: pop edi */ 766 eax = esi; /* 0x4702253A: mov eax, esi */ 767 esi = POP32_VAL(esp); /* 0x4702253C: pop esi */ 768 ebp = POP32_VAL(esp); /* 0x4702253D: pop ebp */ 769 ebx = POP32_VAL(esp); /* 0x4702253E: pop ebx */ 770 MEM32(FS_BASE + (0)) = ecx; /* 0x4702253F: mov dword ptr fs:[0], ecx */ 771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 773 esp = esp + 0x24u; /* 0x47022546: add esp, 0x24 */ 774 _flag_k = FK_ADD; 775 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022549: ret */ 776 RECOMP_REGS_OUT(); 777 } 778 779 void sub_470223A0(void) { 780 int _fpu_cmp = 0; 781 uint32_t _cf = 0; 782 int _df = 1; 783 uint32_t _flag_k = FK_NONE; 784 uint32_t _flag_a = 0, _flag_b = 0; 785 uint32_t _itail_tgt = 0; 786 RECOMP_REGS_LOCALS 787 RECOMP_ENTER(0x470223A0u); 788 789 L_470223A0: 790 PUSH32(esp, 0x5Cu); /* 0x470223A0: push 0x5c */ 791 PUSH32(esp, ebp); /* 0x470223A2: push ebp */ 792 RECOMP_ICALL(MEM32(0x470AC380)); /* 0x470223A3: call dword ptr [0x470ac380] */ 793 RECOMP_FLAGS_IN(); 794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 795 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 796 esp = esp + 8; /* 0x470223A9: add esp, 8 */ 797 _flag_k = FK_ADD; 798 /* cmp eax, ebx */ /* 0x470223AC: cmp eax, ebx */ 799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 800 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 801 _flag_k = FK_CMP; 802 MEM32(esp + 0x10) = eax; /* 0x470223AE: mov dword ptr [esp + 0x10], eax */ 803 if (CMP_EQ(_flag_a, _flag_b)) goto L_470223BA; /* 0x470223B2: je 0x470223ba */ 804 L_470223B4: 805 esi = eax; /* 0x470223B4: mov esi, eax */ 806 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 808 esi = esi - ebp; /* 0x470223B6: sub esi, ebp */ 809 _flag_k = FK_CMP; 810 goto L_470223C8; /* 0x470223B8: jmp 0x470223c8 */ 811 L_470223BA: 812 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 813 ecx = ecx | 0xFFFFFFFFu; /* 0x470223BA: or ecx, 0xffffffff */ 814 _cf = 0; 815 _flag_k = FK_TEST; 816 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 817 eax = 0; /* 0x470223BD: xor eax, eax */ 818 _cf = 0; 819 _flag_k = FK_TEST; 820 edi = ebp; /* 0x470223BF: mov edi, ebp */ 821 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; } /* 0x470223C1: repne scasb al, byte ptr es:[edi] */ 822 ecx = ~ecx; /* 0x470223C3: not ecx */ 823 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 824 ecx = ecx - 1; /* 0x470223C5: dec ecx */ 825 _flag_k = FK_DEC; 826 esi = ecx; /* 0x470223C6: mov esi, ecx */ 827 L_470223C8: 828 /* cmp esi, ebx */ /* 0x470223C8: cmp esi, ebx */ 829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 831 _flag_k = FK_CMP; 832 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702250A; /* 0x470223CA: je 0x4702250a */ 833 L_470223D0: 834 RECOMP_ICALL(0x4703DAC0u); /* 0x470223D0: call 0x4703dac0 */ /* not lifted */ 835 RECOMP_FLAGS_IN(); 836 PUSH32(esp, 1); /* 0x470223D5: push 1 */ 837 PUSH32(esp, esi); /* 0x470223D7: push esi */ 838 PUSH32(esp, ebp); /* 0x470223D8: push ebp */ 839 ecx = esp + 0x20; /* 0x470223D9: lea ecx, [esp + 0x20] */ 840 MEM32(esp + 0x20) = eax; /* 0x470223DD: mov dword ptr [esp + 0x20], eax */ 841 MEM32(esp + 0x24) = ebx; /* 0x470223E1: mov dword ptr [esp + 0x24], ebx */ 842 MEM32(esp + 0x28) = ebx; /* 0x470223E5: mov dword ptr [esp + 0x28], ebx */ 843 MEM32(esp + 0x2C) = ebx; /* 0x470223E9: mov dword ptr [esp + 0x2c], ebx */ 844 MEM32(esp + 0x30) = ebx; /* 0x470223ED: mov dword ptr [esp + 0x30], ebx */ 845 RECOMP_ICALL(0x470802D0u); /* 0x470223F1: call 0x470802d0 */ /* not lifted */ 846 RECOMP_FLAGS_IN(); 847 edx = MEM32(esp + 0x18); /* 0x470223F6: mov edx, dword ptr [esp + 0x18] */ 848 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 849 edx = edx + 1; /* 0x470223FA: inc edx */ 850 _flag_k = FK_INC; 851 PUSH32(esp, edx); /* 0x470223FB: push edx */ 852 MEM32(esp + 0x34) = ebx; /* 0x470223FC: mov dword ptr [esp + 0x34], ebx */ 853 RECOMP_ICALL(0x470A33F2u); /* 0x47022400: call 0x470a33f2 */ /* not lifted */ 854 RECOMP_FLAGS_IN(); 855 esi = eax; /* 0x47022405: mov esi, eax */ 856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 858 esp = esp + 4; /* 0x47022407: add esp, 4 */ 859 _flag_k = FK_ADD; 860 /* cmp esi, ebx */ /* 0x4702240A: cmp esi, ebx */ 861 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 863 _flag_k = FK_CMP; 864 if (CMP_NE(_flag_a, _flag_b)) goto L_4702241E; /* 0x4702240C: jne 0x4702241e */ 865 L_4702240E: 866 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702240E: call dword ptr [0x470ac3c8] */ 867 RECOMP_FLAGS_IN(); 868 MEM32(eax) = 0xCu; /* 0x47022414: mov dword ptr [eax], 0xc */ 869 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 870 esi = 0; /* 0x4702241A: xor esi, esi */ 871 _cf = 0; 872 _flag_k = FK_TEST; 873 goto L_47022439; /* 0x4702241C: jmp 0x47022439 */ 874 L_4702241E: 875 eax = MEM32(esp + 0x18); /* 0x4702241E: mov eax, dword ptr [esp + 0x18] */ 876 ecx = MEM32(esp + 0x20); /* 0x47022422: mov ecx, dword ptr [esp + 0x20] */ 877 PUSH32(esp, eax); /* 0x47022426: push eax */ 878 PUSH32(esp, ecx); /* 0x47022427: push ecx */ 879 PUSH32(esp, esi); /* 0x47022428: push esi */ 880 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022429: call dword ptr [0x470ac22c] */ 881 RECOMP_FLAGS_IN(); 882 edx = MEM32(esp + 0x24); /* 0x4702242F: mov edx, dword ptr [esp + 0x24] */ 883 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 884 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 885 esp = esp + 0xCu; /* 0x47022433: add esp, 0xc */ 886 _flag_k = FK_ADD; 887 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022436: mov byte ptr [edx + esi], bl */ 888 L_47022439: 889 ecx = MEM32(esp + 0x3C); /* 0x47022439: mov ecx, dword ptr [esp + 0x3c] */ 890 eax = esp + 0x38; /* 0x4702243D: lea eax, [esp + 0x38] */ 891 PUSH32(esp, eax); /* 0x47022441: push eax */ 892 PUSH32(esp, esi); /* 0x47022442: push esi */ 893 PUSH32(esp, ecx); /* 0x47022443: push ecx */ 894 RECOMP_ICALL(MEM32(0x470AC028)); /* 0x47022444: call dword ptr [0x470ac028] */ 895 RECOMP_FLAGS_IN(); 896 /* test eax, eax */ /* 0x4702244A: test eax, eax */ 897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 898 _cf = 0; 899 _flag_k = FK_TEST; 900 if (TEST_Z(_flag_a, _flag_b)) goto L_470224B6; /* 0x4702244C: je 0x470224b6 */ 901 L_4702244E: 902 /* cmp MEM32(esp + 0x40), ebx */ /* 0x4702244E: cmp dword ptr [esp + 0x40], ebx */ 903 _flag_a = (uint32_t)(MEM32(esp + 0x40)); _flag_b = (uint32_t)(ebx); 904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 905 _flag_k = FK_CMP; 906 if (CMP_EQ(_flag_a, _flag_b)) goto L_470224EB; /* 0x47022452: je 0x470224eb */ 907 L_47022458: 908 edx = MEM32(esp + 0x18); /* 0x47022458: mov edx, dword ptr [esp + 0x18] */ 909 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 910 edx = edx + 1; /* 0x4702245C: inc edx */ 911 _flag_k = FK_INC; 912 PUSH32(esp, edx); /* 0x4702245D: push edx */ 913 RECOMP_ICALL(0x470A33F2u); /* 0x4702245E: call 0x470a33f2 */ /* not lifted */ 914 RECOMP_FLAGS_IN(); 915 esi = eax; /* 0x47022463: mov esi, eax */ 916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 918 esp = esp + 4; /* 0x47022465: add esp, 4 */ 919 _flag_k = FK_ADD; 920 /* cmp esi, ebx */ /* 0x47022468: cmp esi, ebx */ 921 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 923 _flag_k = FK_CMP; 924 if (CMP_NE(_flag_a, _flag_b)) goto L_4702247C; /* 0x4702246A: jne 0x4702247c */ 925 L_4702246C: 926 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702246C: call dword ptr [0x470ac3c8] */ 927 RECOMP_FLAGS_IN(); 928 MEM32(eax) = 0xCu; /* 0x47022472: mov dword ptr [eax], 0xc */ 929 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 930 esi = 0; /* 0x47022478: xor esi, esi */ 931 _cf = 0; 932 _flag_k = FK_TEST; 933 goto L_47022497; /* 0x4702247A: jmp 0x47022497 */ 934 L_4702247C: 935 eax = MEM32(esp + 0x18); /* 0x4702247C: mov eax, dword ptr [esp + 0x18] */ 936 ecx = MEM32(esp + 0x20); /* 0x47022480: mov ecx, dword ptr [esp + 0x20] */ 937 PUSH32(esp, eax); /* 0x47022484: push eax */ 938 PUSH32(esp, ecx); /* 0x47022485: push ecx */ 939 PUSH32(esp, esi); /* 0x47022486: push esi */ 940 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022487: call dword ptr [0x470ac22c] */ 941 RECOMP_FLAGS_IN(); 942 edx = MEM32(esp + 0x24); /* 0x4702248D: mov edx, dword ptr [esp + 0x24] */ 943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 944 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 945 esp = esp + 0xCu; /* 0x47022491: add esp, 0xc */ 946 _flag_k = FK_ADD; 947 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022494: mov byte ptr [edx + esi], bl */ 948 L_47022497: 949 ecx = MEM32(esp + 0x3C); /* 0x47022497: mov ecx, dword ptr [esp + 0x3c] */ 950 PUSH32(esp, ebx); /* 0x4702249B: push ebx */ 951 eax = esp + 0x3C; /* 0x4702249C: lea eax, [esp + 0x3c] */ 952 PUSH32(esp, eax); /* 0x470224A0: push eax */ 953 PUSH32(esp, ebx); /* 0x470224A1: push ebx */ 954 PUSH32(esp, 0x000F003Fu); /* 0x470224A2: push 0xf003f */ 955 PUSH32(esp, ebx); /* 0x470224A7: push ebx */ 956 PUSH32(esp, ebx); /* 0x470224A8: push ebx */ 957 PUSH32(esp, ebx); /* 0x470224A9: push ebx */ 958 PUSH32(esp, esi); /* 0x470224AA: push esi */ 959 PUSH32(esp, ecx); /* 0x470224AB: push ecx */ 960 RECOMP_ICALL(MEM32(0x470AC008)); /* 0x470224AC: call dword ptr [0x470ac008] */ 961 RECOMP_FLAGS_IN(); 962 /* test eax, eax */ /* 0x470224B2: test eax, eax */ 963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 964 _cf = 0; 965 _flag_k = FK_TEST; 966 if (TEST_NZ(_flag_a, _flag_b)) goto L_470224EB; /* 0x470224B4: jne 0x470224eb */ 967 L_470224B6: 968 edx = MEM32(esp + 0x3C); /* 0x470224B6: mov edx, dword ptr [esp + 0x3c] */ 969 PUSH32(esp, edx); /* 0x470224BA: push edx */ 970 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224BB: call dword ptr [0x470ac004] */ 971 RECOMP_FLAGS_IN(); 972 ebp = MEM32(esp + 0x10); /* 0x470224C1: mov ebp, dword ptr [esp + 0x10] */ 973 /* cmp ebp, ebx */ /* 0x470224C5: cmp ebp, ebx */ 974 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 976 _flag_k = FK_CMP; 977 eax = MEM32(esp + 0x38); /* 0x470224C7: mov eax, dword ptr [esp + 0x38] */ 978 MEM32(esp + 0x3C) = eax; /* 0x470224CB: mov dword ptr [esp + 0x3c], eax */ 979 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702251F; /* 0x470224CF: je 0x4702251f */ 980 L_470224D1: 981 PUSH32(esp, ebx); /* 0x470224D1: push ebx */ 982 PUSH32(esp, ebx); /* 0x470224D2: push ebx */ 983 PUSH32(esp, ebx); /* 0x470224D3: push ebx */ 984 ecx = esp + 0x20; /* 0x470224D4: lea ecx, [esp + 0x20] */ 985 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1); 986 ebp = ebp + 1; /* 0x470224D8: inc ebp */ 987 _flag_k = FK_INC; 988 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224D9: mov dword ptr [esp + 0x3c], 0xffffffff */ 989 RECOMP_ICALL(0x470802D0u); /* 0x470224E1: call 0x470802d0 */ /* not lifted */ 990 RECOMP_FLAGS_IN(); 991 RECOMP_BACKEDGE(); 992 goto L_470223A0; /* 0x470224E6: jmp 0x470223a0 */ 993 L_470224EB: 994 eax = MEM32(esp + 0x3C); /* 0x470224EB: mov eax, dword ptr [esp + 0x3c] */ 995 PUSH32(esp, eax); /* 0x470224EF: push eax */ 996 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224F0: call dword ptr [0x470ac004] */ 997 RECOMP_FLAGS_IN(); 998 PUSH32(esp, ebx); /* 0x470224F6: push ebx */ 999 PUSH32(esp, ebx); /* 0x470224F7: push ebx */ 1000 PUSH32(esp, ebx); /* 0x470224F8: push ebx */ 1001 ecx = esp + 0x20; /* 0x470224F9: lea ecx, [esp + 0x20] */ 1002 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224FD: mov dword ptr [esp + 0x3c], 0xffffffff */ 1003 RECOMP_ICALL(0x470802D0u); /* 0x47022505: call 0x470802d0 */ /* not lifted */ 1004 RECOMP_FLAGS_IN(); 1005 L_4702250A: 1006 edi = POP32_VAL(esp); /* 0x4702250A: pop edi */ 1007 esi = POP32_VAL(esp); /* 0x4702250B: pop esi */ 1008 ebp = POP32_VAL(esp); /* 0x4702250C: pop ebp */ 1009 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1010 eax = 0; /* 0x4702250D: xor eax, eax */ 1011 _cf = 0; 1012 _flag_k = FK_TEST; 1013 ebx = POP32_VAL(esp); /* 0x4702250F: pop ebx */ 1014 ecx = MEM32(esp + 0x18); /* 0x47022510: mov ecx, dword ptr [esp + 0x18] */ 1015 MEM32(FS_BASE + (0)) = ecx; /* 0x47022514: mov dword ptr fs:[0], ecx */ 1016 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1018 esp = esp + 0x24u; /* 0x4702251B: add esp, 0x24 */ 1019 _flag_k = FK_ADD; 1020 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702251E: ret */ 1021 L_4702251F: 1022 PUSH32(esp, ebx); /* 0x4702251F: push ebx */ 1023 PUSH32(esp, ebx); /* 0x47022520: push ebx */ 1024 PUSH32(esp, ebx); /* 0x47022521: push ebx */ 1025 ecx = esp + 0x20; /* 0x47022522: lea ecx, [esp + 0x20] */ 1026 esi = eax; /* 0x47022526: mov esi, eax */ 1027 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x47022528: mov dword ptr [esp + 0x3c], 0xffffffff */ 1028 RECOMP_ICALL(0x470802D0u); /* 0x47022530: call 0x470802d0 */ /* not lifted */ 1029 RECOMP_FLAGS_IN(); 1030 ecx = MEM32(esp + 0x28); /* 0x47022535: mov ecx, dword ptr [esp + 0x28] */ 1031 edi = POP32_VAL(esp); /* 0x47022539: pop edi */ 1032 eax = esi; /* 0x4702253A: mov eax, esi */ 1033 esi = POP32_VAL(esp); /* 0x4702253C: pop esi */ 1034 ebp = POP32_VAL(esp); /* 0x4702253D: pop ebp */ 1035 ebx = POP32_VAL(esp); /* 0x4702253E: pop ebx */ 1036 MEM32(FS_BASE + (0)) = ecx; /* 0x4702253F: mov dword ptr fs:[0], ecx */ 1037 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1038 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1039 esp = esp + 0x24u; /* 0x47022546: add esp, 0x24 */ 1040 _flag_k = FK_ADD; 1041 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022549: ret */ 1042 RECOMP_REGS_OUT(); 1043 } 1044 1045 void sub_470223C8(void) { 1046 int _fpu_cmp = 0; 1047 uint32_t _cf = 0; 1048 int _df = 1; 1049 uint32_t _flag_k = FK_NONE; 1050 uint32_t _flag_a = 0, _flag_b = 0; 1051 uint32_t _itail_tgt = 0; 1052 RECOMP_REGS_LOCALS 1053 RECOMP_ENTER(0x470223C8u); 1054 1055 goto L_470223C8; 1056 L_470223A0: 1057 PUSH32(esp, 0x5Cu); /* 0x470223A0: push 0x5c */ 1058 PUSH32(esp, ebp); /* 0x470223A2: push ebp */ 1059 RECOMP_ICALL(MEM32(0x470AC380)); /* 0x470223A3: call dword ptr [0x470ac380] */ 1060 RECOMP_FLAGS_IN(); 1061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1063 esp = esp + 8; /* 0x470223A9: add esp, 8 */ 1064 _flag_k = FK_ADD; 1065 /* cmp eax, ebx */ /* 0x470223AC: cmp eax, ebx */ 1066 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1068 _flag_k = FK_CMP; 1069 MEM32(esp + 0x10) = eax; /* 0x470223AE: mov dword ptr [esp + 0x10], eax */ 1070 if (CMP_EQ(_flag_a, _flag_b)) goto L_470223BA; /* 0x470223B2: je 0x470223ba */ 1071 L_470223B4: 1072 esi = eax; /* 0x470223B4: mov esi, eax */ 1073 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 1074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1075 esi = esi - ebp; /* 0x470223B6: sub esi, ebp */ 1076 _flag_k = FK_CMP; 1077 goto L_470223C8; /* 0x470223B8: jmp 0x470223c8 */ 1078 L_470223BA: 1079 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1080 ecx = ecx | 0xFFFFFFFFu; /* 0x470223BA: or ecx, 0xffffffff */ 1081 _cf = 0; 1082 _flag_k = FK_TEST; 1083 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1084 eax = 0; /* 0x470223BD: xor eax, eax */ 1085 _cf = 0; 1086 _flag_k = FK_TEST; 1087 edi = ebp; /* 0x470223BF: mov edi, ebp */ 1088 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; } /* 0x470223C1: repne scasb al, byte ptr es:[edi] */ 1089 ecx = ~ecx; /* 0x470223C3: not ecx */ 1090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1091 ecx = ecx - 1; /* 0x470223C5: dec ecx */ 1092 _flag_k = FK_DEC; 1093 esi = ecx; /* 0x470223C6: mov esi, ecx */ 1094 L_470223C8: 1095 /* cmp esi, ebx */ /* 0x470223C8: cmp esi, ebx */ 1096 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1098 _flag_k = FK_CMP; 1099 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702250A; /* 0x470223CA: je 0x4702250a */ 1100 L_470223D0: 1101 RECOMP_ICALL(0x4703DAC0u); /* 0x470223D0: call 0x4703dac0 */ /* not lifted */ 1102 RECOMP_FLAGS_IN(); 1103 PUSH32(esp, 1); /* 0x470223D5: push 1 */ 1104 PUSH32(esp, esi); /* 0x470223D7: push esi */ 1105 PUSH32(esp, ebp); /* 0x470223D8: push ebp */ 1106 ecx = esp + 0x20; /* 0x470223D9: lea ecx, [esp + 0x20] */ 1107 MEM32(esp + 0x20) = eax; /* 0x470223DD: mov dword ptr [esp + 0x20], eax */ 1108 MEM32(esp + 0x24) = ebx; /* 0x470223E1: mov dword ptr [esp + 0x24], ebx */ 1109 MEM32(esp + 0x28) = ebx; /* 0x470223E5: mov dword ptr [esp + 0x28], ebx */ 1110 MEM32(esp + 0x2C) = ebx; /* 0x470223E9: mov dword ptr [esp + 0x2c], ebx */ 1111 MEM32(esp + 0x30) = ebx; /* 0x470223ED: mov dword ptr [esp + 0x30], ebx */ 1112 RECOMP_ICALL(0x470802D0u); /* 0x470223F1: call 0x470802d0 */ /* not lifted */ 1113 RECOMP_FLAGS_IN(); 1114 edx = MEM32(esp + 0x18); /* 0x470223F6: mov edx, dword ptr [esp + 0x18] */ 1115 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1116 edx = edx + 1; /* 0x470223FA: inc edx */ 1117 _flag_k = FK_INC; 1118 PUSH32(esp, edx); /* 0x470223FB: push edx */ 1119 MEM32(esp + 0x34) = ebx; /* 0x470223FC: mov dword ptr [esp + 0x34], ebx */ 1120 RECOMP_ICALL(0x470A33F2u); /* 0x47022400: call 0x470a33f2 */ /* not lifted */ 1121 RECOMP_FLAGS_IN(); 1122 esi = eax; /* 0x47022405: mov esi, eax */ 1123 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1124 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1125 esp = esp + 4; /* 0x47022407: add esp, 4 */ 1126 _flag_k = FK_ADD; 1127 /* cmp esi, ebx */ /* 0x4702240A: cmp esi, ebx */ 1128 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1130 _flag_k = FK_CMP; 1131 if (CMP_NE(_flag_a, _flag_b)) goto L_4702241E; /* 0x4702240C: jne 0x4702241e */ 1132 L_4702240E: 1133 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702240E: call dword ptr [0x470ac3c8] */ 1134 RECOMP_FLAGS_IN(); 1135 MEM32(eax) = 0xCu; /* 0x47022414: mov dword ptr [eax], 0xc */ 1136 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1137 esi = 0; /* 0x4702241A: xor esi, esi */ 1138 _cf = 0; 1139 _flag_k = FK_TEST; 1140 goto L_47022439; /* 0x4702241C: jmp 0x47022439 */ 1141 L_4702241E: 1142 eax = MEM32(esp + 0x18); /* 0x4702241E: mov eax, dword ptr [esp + 0x18] */ 1143 ecx = MEM32(esp + 0x20); /* 0x47022422: mov ecx, dword ptr [esp + 0x20] */ 1144 PUSH32(esp, eax); /* 0x47022426: push eax */ 1145 PUSH32(esp, ecx); /* 0x47022427: push ecx */ 1146 PUSH32(esp, esi); /* 0x47022428: push esi */ 1147 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022429: call dword ptr [0x470ac22c] */ 1148 RECOMP_FLAGS_IN(); 1149 edx = MEM32(esp + 0x24); /* 0x4702242F: mov edx, dword ptr [esp + 0x24] */ 1150 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1151 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1152 esp = esp + 0xCu; /* 0x47022433: add esp, 0xc */ 1153 _flag_k = FK_ADD; 1154 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022436: mov byte ptr [edx + esi], bl */ 1155 L_47022439: 1156 ecx = MEM32(esp + 0x3C); /* 0x47022439: mov ecx, dword ptr [esp + 0x3c] */ 1157 eax = esp + 0x38; /* 0x4702243D: lea eax, [esp + 0x38] */ 1158 PUSH32(esp, eax); /* 0x47022441: push eax */ 1159 PUSH32(esp, esi); /* 0x47022442: push esi */ 1160 PUSH32(esp, ecx); /* 0x47022443: push ecx */ 1161 RECOMP_ICALL(MEM32(0x470AC028)); /* 0x47022444: call dword ptr [0x470ac028] */ 1162 RECOMP_FLAGS_IN(); 1163 /* test eax, eax */ /* 0x4702244A: test eax, eax */ 1164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1165 _cf = 0; 1166 _flag_k = FK_TEST; 1167 if (TEST_Z(_flag_a, _flag_b)) goto L_470224B6; /* 0x4702244C: je 0x470224b6 */ 1168 L_4702244E: 1169 /* cmp MEM32(esp + 0x40), ebx */ /* 0x4702244E: cmp dword ptr [esp + 0x40], ebx */ 1170 _flag_a = (uint32_t)(MEM32(esp + 0x40)); _flag_b = (uint32_t)(ebx); 1171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1172 _flag_k = FK_CMP; 1173 if (CMP_EQ(_flag_a, _flag_b)) goto L_470224EB; /* 0x47022452: je 0x470224eb */ 1174 L_47022458: 1175 edx = MEM32(esp + 0x18); /* 0x47022458: mov edx, dword ptr [esp + 0x18] */ 1176 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1177 edx = edx + 1; /* 0x4702245C: inc edx */ 1178 _flag_k = FK_INC; 1179 PUSH32(esp, edx); /* 0x4702245D: push edx */ 1180 RECOMP_ICALL(0x470A33F2u); /* 0x4702245E: call 0x470a33f2 */ /* not lifted */ 1181 RECOMP_FLAGS_IN(); 1182 esi = eax; /* 0x47022463: mov esi, eax */ 1183 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1185 esp = esp + 4; /* 0x47022465: add esp, 4 */ 1186 _flag_k = FK_ADD; 1187 /* cmp esi, ebx */ /* 0x47022468: cmp esi, ebx */ 1188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1190 _flag_k = FK_CMP; 1191 if (CMP_NE(_flag_a, _flag_b)) goto L_4702247C; /* 0x4702246A: jne 0x4702247c */ 1192 L_4702246C: 1193 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702246C: call dword ptr [0x470ac3c8] */ 1194 RECOMP_FLAGS_IN(); 1195 MEM32(eax) = 0xCu; /* 0x47022472: mov dword ptr [eax], 0xc */ 1196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1197 esi = 0; /* 0x47022478: xor esi, esi */ 1198 _cf = 0; 1199 _flag_k = FK_TEST; 1200 goto L_47022497; /* 0x4702247A: jmp 0x47022497 */ 1201 L_4702247C: 1202 eax = MEM32(esp + 0x18); /* 0x4702247C: mov eax, dword ptr [esp + 0x18] */ 1203 ecx = MEM32(esp + 0x20); /* 0x47022480: mov ecx, dword ptr [esp + 0x20] */ 1204 PUSH32(esp, eax); /* 0x47022484: push eax */ 1205 PUSH32(esp, ecx); /* 0x47022485: push ecx */ 1206 PUSH32(esp, esi); /* 0x47022486: push esi */ 1207 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022487: call dword ptr [0x470ac22c] */ 1208 RECOMP_FLAGS_IN(); 1209 edx = MEM32(esp + 0x24); /* 0x4702248D: mov edx, dword ptr [esp + 0x24] */ 1210 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1212 esp = esp + 0xCu; /* 0x47022491: add esp, 0xc */ 1213 _flag_k = FK_ADD; 1214 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022494: mov byte ptr [edx + esi], bl */ 1215 L_47022497: 1216 ecx = MEM32(esp + 0x3C); /* 0x47022497: mov ecx, dword ptr [esp + 0x3c] */ 1217 PUSH32(esp, ebx); /* 0x4702249B: push ebx */ 1218 eax = esp + 0x3C; /* 0x4702249C: lea eax, [esp + 0x3c] */ 1219 PUSH32(esp, eax); /* 0x470224A0: push eax */ 1220 PUSH32(esp, ebx); /* 0x470224A1: push ebx */ 1221 PUSH32(esp, 0x000F003Fu); /* 0x470224A2: push 0xf003f */ 1222 PUSH32(esp, ebx); /* 0x470224A7: push ebx */ 1223 PUSH32(esp, ebx); /* 0x470224A8: push ebx */ 1224 PUSH32(esp, ebx); /* 0x470224A9: push ebx */ 1225 PUSH32(esp, esi); /* 0x470224AA: push esi */ 1226 PUSH32(esp, ecx); /* 0x470224AB: push ecx */ 1227 RECOMP_ICALL(MEM32(0x470AC008)); /* 0x470224AC: call dword ptr [0x470ac008] */ 1228 RECOMP_FLAGS_IN(); 1229 /* test eax, eax */ /* 0x470224B2: test eax, eax */ 1230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1231 _cf = 0; 1232 _flag_k = FK_TEST; 1233 if (TEST_NZ(_flag_a, _flag_b)) goto L_470224EB; /* 0x470224B4: jne 0x470224eb */ 1234 L_470224B6: 1235 edx = MEM32(esp + 0x3C); /* 0x470224B6: mov edx, dword ptr [esp + 0x3c] */ 1236 PUSH32(esp, edx); /* 0x470224BA: push edx */ 1237 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224BB: call dword ptr [0x470ac004] */ 1238 RECOMP_FLAGS_IN(); 1239 ebp = MEM32(esp + 0x10); /* 0x470224C1: mov ebp, dword ptr [esp + 0x10] */ 1240 /* cmp ebp, ebx */ /* 0x470224C5: cmp ebp, ebx */ 1241 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 1242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1243 _flag_k = FK_CMP; 1244 eax = MEM32(esp + 0x38); /* 0x470224C7: mov eax, dword ptr [esp + 0x38] */ 1245 MEM32(esp + 0x3C) = eax; /* 0x470224CB: mov dword ptr [esp + 0x3c], eax */ 1246 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702251F; /* 0x470224CF: je 0x4702251f */ 1247 L_470224D1: 1248 PUSH32(esp, ebx); /* 0x470224D1: push ebx */ 1249 PUSH32(esp, ebx); /* 0x470224D2: push ebx */ 1250 PUSH32(esp, ebx); /* 0x470224D3: push ebx */ 1251 ecx = esp + 0x20; /* 0x470224D4: lea ecx, [esp + 0x20] */ 1252 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1); 1253 ebp = ebp + 1; /* 0x470224D8: inc ebp */ 1254 _flag_k = FK_INC; 1255 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224D9: mov dword ptr [esp + 0x3c], 0xffffffff */ 1256 RECOMP_ICALL(0x470802D0u); /* 0x470224E1: call 0x470802d0 */ /* not lifted */ 1257 RECOMP_FLAGS_IN(); 1258 RECOMP_BACKEDGE(); 1259 goto L_470223A0; /* 0x470224E6: jmp 0x470223a0 */ 1260 L_470224EB: 1261 eax = MEM32(esp + 0x3C); /* 0x470224EB: mov eax, dword ptr [esp + 0x3c] */ 1262 PUSH32(esp, eax); /* 0x470224EF: push eax */ 1263 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224F0: call dword ptr [0x470ac004] */ 1264 RECOMP_FLAGS_IN(); 1265 PUSH32(esp, ebx); /* 0x470224F6: push ebx */ 1266 PUSH32(esp, ebx); /* 0x470224F7: push ebx */ 1267 PUSH32(esp, ebx); /* 0x470224F8: push ebx */ 1268 ecx = esp + 0x20; /* 0x470224F9: lea ecx, [esp + 0x20] */ 1269 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224FD: mov dword ptr [esp + 0x3c], 0xffffffff */ 1270 RECOMP_ICALL(0x470802D0u); /* 0x47022505: call 0x470802d0 */ /* not lifted */ 1271 RECOMP_FLAGS_IN(); 1272 L_4702250A: 1273 edi = POP32_VAL(esp); /* 0x4702250A: pop edi */ 1274 esi = POP32_VAL(esp); /* 0x4702250B: pop esi */ 1275 ebp = POP32_VAL(esp); /* 0x4702250C: pop ebp */ 1276 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1277 eax = 0; /* 0x4702250D: xor eax, eax */ 1278 _cf = 0; 1279 _flag_k = FK_TEST; 1280 ebx = POP32_VAL(esp); /* 0x4702250F: pop ebx */ 1281 ecx = MEM32(esp + 0x18); /* 0x47022510: mov ecx, dword ptr [esp + 0x18] */ 1282 MEM32(FS_BASE + (0)) = ecx; /* 0x47022514: mov dword ptr fs:[0], ecx */ 1283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1285 esp = esp + 0x24u; /* 0x4702251B: add esp, 0x24 */ 1286 _flag_k = FK_ADD; 1287 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702251E: ret */ 1288 L_4702251F: 1289 PUSH32(esp, ebx); /* 0x4702251F: push ebx */ 1290 PUSH32(esp, ebx); /* 0x47022520: push ebx */ 1291 PUSH32(esp, ebx); /* 0x47022521: push ebx */ 1292 ecx = esp + 0x20; /* 0x47022522: lea ecx, [esp + 0x20] */ 1293 esi = eax; /* 0x47022526: mov esi, eax */ 1294 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x47022528: mov dword ptr [esp + 0x3c], 0xffffffff */ 1295 RECOMP_ICALL(0x470802D0u); /* 0x47022530: call 0x470802d0 */ /* not lifted */ 1296 RECOMP_FLAGS_IN(); 1297 ecx = MEM32(esp + 0x28); /* 0x47022535: mov ecx, dword ptr [esp + 0x28] */ 1298 edi = POP32_VAL(esp); /* 0x47022539: pop edi */ 1299 eax = esi; /* 0x4702253A: mov eax, esi */ 1300 esi = POP32_VAL(esp); /* 0x4702253C: pop esi */ 1301 ebp = POP32_VAL(esp); /* 0x4702253D: pop ebp */ 1302 ebx = POP32_VAL(esp); /* 0x4702253E: pop ebx */ 1303 MEM32(FS_BASE + (0)) = ecx; /* 0x4702253F: mov dword ptr fs:[0], ecx */ 1304 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1305 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1306 esp = esp + 0x24u; /* 0x47022546: add esp, 0x24 */ 1307 _flag_k = FK_ADD; 1308 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022549: ret */ 1309 RECOMP_REGS_OUT(); 1310 } 1311 1312 void sub_47022439(void) { 1313 int _fpu_cmp = 0; 1314 uint32_t _cf = 0; 1315 int _df = 1; 1316 uint32_t _flag_k = FK_NONE; 1317 uint32_t _flag_a = 0, _flag_b = 0; 1318 uint32_t _itail_tgt = 0; 1319 RECOMP_REGS_LOCALS 1320 RECOMP_ENTER(0x47022439u); 1321 1322 goto L_47022439; 1323 L_470223A0: 1324 PUSH32(esp, 0x5Cu); /* 0x470223A0: push 0x5c */ 1325 PUSH32(esp, ebp); /* 0x470223A2: push ebp */ 1326 RECOMP_ICALL(MEM32(0x470AC380)); /* 0x470223A3: call dword ptr [0x470ac380] */ 1327 RECOMP_FLAGS_IN(); 1328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1330 esp = esp + 8; /* 0x470223A9: add esp, 8 */ 1331 _flag_k = FK_ADD; 1332 /* cmp eax, ebx */ /* 0x470223AC: cmp eax, ebx */ 1333 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1335 _flag_k = FK_CMP; 1336 MEM32(esp + 0x10) = eax; /* 0x470223AE: mov dword ptr [esp + 0x10], eax */ 1337 if (CMP_EQ(_flag_a, _flag_b)) goto L_470223BA; /* 0x470223B2: je 0x470223ba */ 1338 L_470223B4: 1339 esi = eax; /* 0x470223B4: mov esi, eax */ 1340 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 1341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1342 esi = esi - ebp; /* 0x470223B6: sub esi, ebp */ 1343 _flag_k = FK_CMP; 1344 goto L_470223C8; /* 0x470223B8: jmp 0x470223c8 */ 1345 L_470223BA: 1346 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1347 ecx = ecx | 0xFFFFFFFFu; /* 0x470223BA: or ecx, 0xffffffff */ 1348 _cf = 0; 1349 _flag_k = FK_TEST; 1350 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1351 eax = 0; /* 0x470223BD: xor eax, eax */ 1352 _cf = 0; 1353 _flag_k = FK_TEST; 1354 edi = ebp; /* 0x470223BF: mov edi, ebp */ 1355 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; } /* 0x470223C1: repne scasb al, byte ptr es:[edi] */ 1356 ecx = ~ecx; /* 0x470223C3: not ecx */ 1357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1358 ecx = ecx - 1; /* 0x470223C5: dec ecx */ 1359 _flag_k = FK_DEC; 1360 esi = ecx; /* 0x470223C6: mov esi, ecx */ 1361 L_470223C8: 1362 /* cmp esi, ebx */ /* 0x470223C8: cmp esi, ebx */ 1363 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1365 _flag_k = FK_CMP; 1366 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702250A; /* 0x470223CA: je 0x4702250a */ 1367 L_470223D0: 1368 RECOMP_ICALL(0x4703DAC0u); /* 0x470223D0: call 0x4703dac0 */ /* not lifted */ 1369 RECOMP_FLAGS_IN(); 1370 PUSH32(esp, 1); /* 0x470223D5: push 1 */ 1371 PUSH32(esp, esi); /* 0x470223D7: push esi */ 1372 PUSH32(esp, ebp); /* 0x470223D8: push ebp */ 1373 ecx = esp + 0x20; /* 0x470223D9: lea ecx, [esp + 0x20] */ 1374 MEM32(esp + 0x20) = eax; /* 0x470223DD: mov dword ptr [esp + 0x20], eax */ 1375 MEM32(esp + 0x24) = ebx; /* 0x470223E1: mov dword ptr [esp + 0x24], ebx */ 1376 MEM32(esp + 0x28) = ebx; /* 0x470223E5: mov dword ptr [esp + 0x28], ebx */ 1377 MEM32(esp + 0x2C) = ebx; /* 0x470223E9: mov dword ptr [esp + 0x2c], ebx */ 1378 MEM32(esp + 0x30) = ebx; /* 0x470223ED: mov dword ptr [esp + 0x30], ebx */ 1379 RECOMP_ICALL(0x470802D0u); /* 0x470223F1: call 0x470802d0 */ /* not lifted */ 1380 RECOMP_FLAGS_IN(); 1381 edx = MEM32(esp + 0x18); /* 0x470223F6: mov edx, dword ptr [esp + 0x18] */ 1382 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1383 edx = edx + 1; /* 0x470223FA: inc edx */ 1384 _flag_k = FK_INC; 1385 PUSH32(esp, edx); /* 0x470223FB: push edx */ 1386 MEM32(esp + 0x34) = ebx; /* 0x470223FC: mov dword ptr [esp + 0x34], ebx */ 1387 RECOMP_ICALL(0x470A33F2u); /* 0x47022400: call 0x470a33f2 */ /* not lifted */ 1388 RECOMP_FLAGS_IN(); 1389 esi = eax; /* 0x47022405: mov esi, eax */ 1390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1392 esp = esp + 4; /* 0x47022407: add esp, 4 */ 1393 _flag_k = FK_ADD; 1394 /* cmp esi, ebx */ /* 0x4702240A: cmp esi, ebx */ 1395 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1397 _flag_k = FK_CMP; 1398 if (CMP_NE(_flag_a, _flag_b)) goto L_4702241E; /* 0x4702240C: jne 0x4702241e */ 1399 L_4702240E: 1400 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702240E: call dword ptr [0x470ac3c8] */ 1401 RECOMP_FLAGS_IN(); 1402 MEM32(eax) = 0xCu; /* 0x47022414: mov dword ptr [eax], 0xc */ 1403 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1404 esi = 0; /* 0x4702241A: xor esi, esi */ 1405 _cf = 0; 1406 _flag_k = FK_TEST; 1407 goto L_47022439; /* 0x4702241C: jmp 0x47022439 */ 1408 L_4702241E: 1409 eax = MEM32(esp + 0x18); /* 0x4702241E: mov eax, dword ptr [esp + 0x18] */ 1410 ecx = MEM32(esp + 0x20); /* 0x47022422: mov ecx, dword ptr [esp + 0x20] */ 1411 PUSH32(esp, eax); /* 0x47022426: push eax */ 1412 PUSH32(esp, ecx); /* 0x47022427: push ecx */ 1413 PUSH32(esp, esi); /* 0x47022428: push esi */ 1414 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022429: call dword ptr [0x470ac22c] */ 1415 RECOMP_FLAGS_IN(); 1416 edx = MEM32(esp + 0x24); /* 0x4702242F: mov edx, dword ptr [esp + 0x24] */ 1417 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1418 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1419 esp = esp + 0xCu; /* 0x47022433: add esp, 0xc */ 1420 _flag_k = FK_ADD; 1421 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022436: mov byte ptr [edx + esi], bl */ 1422 L_47022439: 1423 ecx = MEM32(esp + 0x3C); /* 0x47022439: mov ecx, dword ptr [esp + 0x3c] */ 1424 eax = esp + 0x38; /* 0x4702243D: lea eax, [esp + 0x38] */ 1425 PUSH32(esp, eax); /* 0x47022441: push eax */ 1426 PUSH32(esp, esi); /* 0x47022442: push esi */ 1427 PUSH32(esp, ecx); /* 0x47022443: push ecx */ 1428 RECOMP_ICALL(MEM32(0x470AC028)); /* 0x47022444: call dword ptr [0x470ac028] */ 1429 RECOMP_FLAGS_IN(); 1430 /* test eax, eax */ /* 0x4702244A: test eax, eax */ 1431 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1432 _cf = 0; 1433 _flag_k = FK_TEST; 1434 if (TEST_Z(_flag_a, _flag_b)) goto L_470224B6; /* 0x4702244C: je 0x470224b6 */ 1435 L_4702244E: 1436 /* cmp MEM32(esp + 0x40), ebx */ /* 0x4702244E: cmp dword ptr [esp + 0x40], ebx */ 1437 _flag_a = (uint32_t)(MEM32(esp + 0x40)); _flag_b = (uint32_t)(ebx); 1438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1439 _flag_k = FK_CMP; 1440 if (CMP_EQ(_flag_a, _flag_b)) goto L_470224EB; /* 0x47022452: je 0x470224eb */ 1441 L_47022458: 1442 edx = MEM32(esp + 0x18); /* 0x47022458: mov edx, dword ptr [esp + 0x18] */ 1443 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1444 edx = edx + 1; /* 0x4702245C: inc edx */ 1445 _flag_k = FK_INC; 1446 PUSH32(esp, edx); /* 0x4702245D: push edx */ 1447 RECOMP_ICALL(0x470A33F2u); /* 0x4702245E: call 0x470a33f2 */ /* not lifted */ 1448 RECOMP_FLAGS_IN(); 1449 esi = eax; /* 0x47022463: mov esi, eax */ 1450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1451 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1452 esp = esp + 4; /* 0x47022465: add esp, 4 */ 1453 _flag_k = FK_ADD; 1454 /* cmp esi, ebx */ /* 0x47022468: cmp esi, ebx */ 1455 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1457 _flag_k = FK_CMP; 1458 if (CMP_NE(_flag_a, _flag_b)) goto L_4702247C; /* 0x4702246A: jne 0x4702247c */ 1459 L_4702246C: 1460 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702246C: call dword ptr [0x470ac3c8] */ 1461 RECOMP_FLAGS_IN(); 1462 MEM32(eax) = 0xCu; /* 0x47022472: mov dword ptr [eax], 0xc */ 1463 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1464 esi = 0; /* 0x47022478: xor esi, esi */ 1465 _cf = 0; 1466 _flag_k = FK_TEST; 1467 goto L_47022497; /* 0x4702247A: jmp 0x47022497 */ 1468 L_4702247C: 1469 eax = MEM32(esp + 0x18); /* 0x4702247C: mov eax, dword ptr [esp + 0x18] */ 1470 ecx = MEM32(esp + 0x20); /* 0x47022480: mov ecx, dword ptr [esp + 0x20] */ 1471 PUSH32(esp, eax); /* 0x47022484: push eax */ 1472 PUSH32(esp, ecx); /* 0x47022485: push ecx */ 1473 PUSH32(esp, esi); /* 0x47022486: push esi */ 1474 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022487: call dword ptr [0x470ac22c] */ 1475 RECOMP_FLAGS_IN(); 1476 edx = MEM32(esp + 0x24); /* 0x4702248D: mov edx, dword ptr [esp + 0x24] */ 1477 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1478 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1479 esp = esp + 0xCu; /* 0x47022491: add esp, 0xc */ 1480 _flag_k = FK_ADD; 1481 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022494: mov byte ptr [edx + esi], bl */ 1482 L_47022497: 1483 ecx = MEM32(esp + 0x3C); /* 0x47022497: mov ecx, dword ptr [esp + 0x3c] */ 1484 PUSH32(esp, ebx); /* 0x4702249B: push ebx */ 1485 eax = esp + 0x3C; /* 0x4702249C: lea eax, [esp + 0x3c] */ 1486 PUSH32(esp, eax); /* 0x470224A0: push eax */ 1487 PUSH32(esp, ebx); /* 0x470224A1: push ebx */ 1488 PUSH32(esp, 0x000F003Fu); /* 0x470224A2: push 0xf003f */ 1489 PUSH32(esp, ebx); /* 0x470224A7: push ebx */ 1490 PUSH32(esp, ebx); /* 0x470224A8: push ebx */ 1491 PUSH32(esp, ebx); /* 0x470224A9: push ebx */ 1492 PUSH32(esp, esi); /* 0x470224AA: push esi */ 1493 PUSH32(esp, ecx); /* 0x470224AB: push ecx */ 1494 RECOMP_ICALL(MEM32(0x470AC008)); /* 0x470224AC: call dword ptr [0x470ac008] */ 1495 RECOMP_FLAGS_IN(); 1496 /* test eax, eax */ /* 0x470224B2: test eax, eax */ 1497 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1498 _cf = 0; 1499 _flag_k = FK_TEST; 1500 if (TEST_NZ(_flag_a, _flag_b)) goto L_470224EB; /* 0x470224B4: jne 0x470224eb */ 1501 L_470224B6: 1502 edx = MEM32(esp + 0x3C); /* 0x470224B6: mov edx, dword ptr [esp + 0x3c] */ 1503 PUSH32(esp, edx); /* 0x470224BA: push edx */ 1504 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224BB: call dword ptr [0x470ac004] */ 1505 RECOMP_FLAGS_IN(); 1506 ebp = MEM32(esp + 0x10); /* 0x470224C1: mov ebp, dword ptr [esp + 0x10] */ 1507 /* cmp ebp, ebx */ /* 0x470224C5: cmp ebp, ebx */ 1508 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 1509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1510 _flag_k = FK_CMP; 1511 eax = MEM32(esp + 0x38); /* 0x470224C7: mov eax, dword ptr [esp + 0x38] */ 1512 MEM32(esp + 0x3C) = eax; /* 0x470224CB: mov dword ptr [esp + 0x3c], eax */ 1513 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702251F; /* 0x470224CF: je 0x4702251f */ 1514 L_470224D1: 1515 PUSH32(esp, ebx); /* 0x470224D1: push ebx */ 1516 PUSH32(esp, ebx); /* 0x470224D2: push ebx */ 1517 PUSH32(esp, ebx); /* 0x470224D3: push ebx */ 1518 ecx = esp + 0x20; /* 0x470224D4: lea ecx, [esp + 0x20] */ 1519 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1); 1520 ebp = ebp + 1; /* 0x470224D8: inc ebp */ 1521 _flag_k = FK_INC; 1522 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224D9: mov dword ptr [esp + 0x3c], 0xffffffff */ 1523 RECOMP_ICALL(0x470802D0u); /* 0x470224E1: call 0x470802d0 */ /* not lifted */ 1524 RECOMP_FLAGS_IN(); 1525 RECOMP_BACKEDGE(); 1526 goto L_470223A0; /* 0x470224E6: jmp 0x470223a0 */ 1527 L_470224EB: 1528 eax = MEM32(esp + 0x3C); /* 0x470224EB: mov eax, dword ptr [esp + 0x3c] */ 1529 PUSH32(esp, eax); /* 0x470224EF: push eax */ 1530 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224F0: call dword ptr [0x470ac004] */ 1531 RECOMP_FLAGS_IN(); 1532 PUSH32(esp, ebx); /* 0x470224F6: push ebx */ 1533 PUSH32(esp, ebx); /* 0x470224F7: push ebx */ 1534 PUSH32(esp, ebx); /* 0x470224F8: push ebx */ 1535 ecx = esp + 0x20; /* 0x470224F9: lea ecx, [esp + 0x20] */ 1536 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224FD: mov dword ptr [esp + 0x3c], 0xffffffff */ 1537 RECOMP_ICALL(0x470802D0u); /* 0x47022505: call 0x470802d0 */ /* not lifted */ 1538 RECOMP_FLAGS_IN(); 1539 L_4702250A: 1540 edi = POP32_VAL(esp); /* 0x4702250A: pop edi */ 1541 esi = POP32_VAL(esp); /* 0x4702250B: pop esi */ 1542 ebp = POP32_VAL(esp); /* 0x4702250C: pop ebp */ 1543 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1544 eax = 0; /* 0x4702250D: xor eax, eax */ 1545 _cf = 0; 1546 _flag_k = FK_TEST; 1547 ebx = POP32_VAL(esp); /* 0x4702250F: pop ebx */ 1548 ecx = MEM32(esp + 0x18); /* 0x47022510: mov ecx, dword ptr [esp + 0x18] */ 1549 MEM32(FS_BASE + (0)) = ecx; /* 0x47022514: mov dword ptr fs:[0], ecx */ 1550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1551 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1552 esp = esp + 0x24u; /* 0x4702251B: add esp, 0x24 */ 1553 _flag_k = FK_ADD; 1554 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702251E: ret */ 1555 L_4702251F: 1556 PUSH32(esp, ebx); /* 0x4702251F: push ebx */ 1557 PUSH32(esp, ebx); /* 0x47022520: push ebx */ 1558 PUSH32(esp, ebx); /* 0x47022521: push ebx */ 1559 ecx = esp + 0x20; /* 0x47022522: lea ecx, [esp + 0x20] */ 1560 esi = eax; /* 0x47022526: mov esi, eax */ 1561 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x47022528: mov dword ptr [esp + 0x3c], 0xffffffff */ 1562 RECOMP_ICALL(0x470802D0u); /* 0x47022530: call 0x470802d0 */ /* not lifted */ 1563 RECOMP_FLAGS_IN(); 1564 ecx = MEM32(esp + 0x28); /* 0x47022535: mov ecx, dword ptr [esp + 0x28] */ 1565 edi = POP32_VAL(esp); /* 0x47022539: pop edi */ 1566 eax = esi; /* 0x4702253A: mov eax, esi */ 1567 esi = POP32_VAL(esp); /* 0x4702253C: pop esi */ 1568 ebp = POP32_VAL(esp); /* 0x4702253D: pop ebp */ 1569 ebx = POP32_VAL(esp); /* 0x4702253E: pop ebx */ 1570 MEM32(FS_BASE + (0)) = ecx; /* 0x4702253F: mov dword ptr fs:[0], ecx */ 1571 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1573 esp = esp + 0x24u; /* 0x47022546: add esp, 0x24 */ 1574 _flag_k = FK_ADD; 1575 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022549: ret */ 1576 RECOMP_REGS_OUT(); 1577 } 1578 1579 void sub_47022497(void) { 1580 int _fpu_cmp = 0; 1581 uint32_t _cf = 0; 1582 int _df = 1; 1583 uint32_t _flag_k = FK_NONE; 1584 uint32_t _flag_a = 0, _flag_b = 0; 1585 uint32_t _itail_tgt = 0; 1586 RECOMP_REGS_LOCALS 1587 RECOMP_ENTER(0x47022497u); 1588 1589 goto L_47022497; 1590 L_470223A0: 1591 PUSH32(esp, 0x5Cu); /* 0x470223A0: push 0x5c */ 1592 PUSH32(esp, ebp); /* 0x470223A2: push ebp */ 1593 RECOMP_ICALL(MEM32(0x470AC380)); /* 0x470223A3: call dword ptr [0x470ac380] */ 1594 RECOMP_FLAGS_IN(); 1595 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1596 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1597 esp = esp + 8; /* 0x470223A9: add esp, 8 */ 1598 _flag_k = FK_ADD; 1599 /* cmp eax, ebx */ /* 0x470223AC: cmp eax, ebx */ 1600 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1602 _flag_k = FK_CMP; 1603 MEM32(esp + 0x10) = eax; /* 0x470223AE: mov dword ptr [esp + 0x10], eax */ 1604 if (CMP_EQ(_flag_a, _flag_b)) goto L_470223BA; /* 0x470223B2: je 0x470223ba */ 1605 L_470223B4: 1606 esi = eax; /* 0x470223B4: mov esi, eax */ 1607 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 1608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1609 esi = esi - ebp; /* 0x470223B6: sub esi, ebp */ 1610 _flag_k = FK_CMP; 1611 goto L_470223C8; /* 0x470223B8: jmp 0x470223c8 */ 1612 L_470223BA: 1613 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1614 ecx = ecx | 0xFFFFFFFFu; /* 0x470223BA: or ecx, 0xffffffff */ 1615 _cf = 0; 1616 _flag_k = FK_TEST; 1617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1618 eax = 0; /* 0x470223BD: xor eax, eax */ 1619 _cf = 0; 1620 _flag_k = FK_TEST; 1621 edi = ebp; /* 0x470223BF: mov edi, ebp */ 1622 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; } /* 0x470223C1: repne scasb al, byte ptr es:[edi] */ 1623 ecx = ~ecx; /* 0x470223C3: not ecx */ 1624 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1625 ecx = ecx - 1; /* 0x470223C5: dec ecx */ 1626 _flag_k = FK_DEC; 1627 esi = ecx; /* 0x470223C6: mov esi, ecx */ 1628 L_470223C8: 1629 /* cmp esi, ebx */ /* 0x470223C8: cmp esi, ebx */ 1630 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1632 _flag_k = FK_CMP; 1633 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702250A; /* 0x470223CA: je 0x4702250a */ 1634 L_470223D0: 1635 RECOMP_ICALL(0x4703DAC0u); /* 0x470223D0: call 0x4703dac0 */ /* not lifted */ 1636 RECOMP_FLAGS_IN(); 1637 PUSH32(esp, 1); /* 0x470223D5: push 1 */ 1638 PUSH32(esp, esi); /* 0x470223D7: push esi */ 1639 PUSH32(esp, ebp); /* 0x470223D8: push ebp */ 1640 ecx = esp + 0x20; /* 0x470223D9: lea ecx, [esp + 0x20] */ 1641 MEM32(esp + 0x20) = eax; /* 0x470223DD: mov dword ptr [esp + 0x20], eax */ 1642 MEM32(esp + 0x24) = ebx; /* 0x470223E1: mov dword ptr [esp + 0x24], ebx */ 1643 MEM32(esp + 0x28) = ebx; /* 0x470223E5: mov dword ptr [esp + 0x28], ebx */ 1644 MEM32(esp + 0x2C) = ebx; /* 0x470223E9: mov dword ptr [esp + 0x2c], ebx */ 1645 MEM32(esp + 0x30) = ebx; /* 0x470223ED: mov dword ptr [esp + 0x30], ebx */ 1646 RECOMP_ICALL(0x470802D0u); /* 0x470223F1: call 0x470802d0 */ /* not lifted */ 1647 RECOMP_FLAGS_IN(); 1648 edx = MEM32(esp + 0x18); /* 0x470223F6: mov edx, dword ptr [esp + 0x18] */ 1649 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1650 edx = edx + 1; /* 0x470223FA: inc edx */ 1651 _flag_k = FK_INC; 1652 PUSH32(esp, edx); /* 0x470223FB: push edx */ 1653 MEM32(esp + 0x34) = ebx; /* 0x470223FC: mov dword ptr [esp + 0x34], ebx */ 1654 RECOMP_ICALL(0x470A33F2u); /* 0x47022400: call 0x470a33f2 */ /* not lifted */ 1655 RECOMP_FLAGS_IN(); 1656 esi = eax; /* 0x47022405: mov esi, eax */ 1657 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1659 esp = esp + 4; /* 0x47022407: add esp, 4 */ 1660 _flag_k = FK_ADD; 1661 /* cmp esi, ebx */ /* 0x4702240A: cmp esi, ebx */ 1662 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1664 _flag_k = FK_CMP; 1665 if (CMP_NE(_flag_a, _flag_b)) goto L_4702241E; /* 0x4702240C: jne 0x4702241e */ 1666 L_4702240E: 1667 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702240E: call dword ptr [0x470ac3c8] */ 1668 RECOMP_FLAGS_IN(); 1669 MEM32(eax) = 0xCu; /* 0x47022414: mov dword ptr [eax], 0xc */ 1670 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1671 esi = 0; /* 0x4702241A: xor esi, esi */ 1672 _cf = 0; 1673 _flag_k = FK_TEST; 1674 goto L_47022439; /* 0x4702241C: jmp 0x47022439 */ 1675 L_4702241E: 1676 eax = MEM32(esp + 0x18); /* 0x4702241E: mov eax, dword ptr [esp + 0x18] */ 1677 ecx = MEM32(esp + 0x20); /* 0x47022422: mov ecx, dword ptr [esp + 0x20] */ 1678 PUSH32(esp, eax); /* 0x47022426: push eax */ 1679 PUSH32(esp, ecx); /* 0x47022427: push ecx */ 1680 PUSH32(esp, esi); /* 0x47022428: push esi */ 1681 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022429: call dword ptr [0x470ac22c] */ 1682 RECOMP_FLAGS_IN(); 1683 edx = MEM32(esp + 0x24); /* 0x4702242F: mov edx, dword ptr [esp + 0x24] */ 1684 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1686 esp = esp + 0xCu; /* 0x47022433: add esp, 0xc */ 1687 _flag_k = FK_ADD; 1688 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022436: mov byte ptr [edx + esi], bl */ 1689 L_47022439: 1690 ecx = MEM32(esp + 0x3C); /* 0x47022439: mov ecx, dword ptr [esp + 0x3c] */ 1691 eax = esp + 0x38; /* 0x4702243D: lea eax, [esp + 0x38] */ 1692 PUSH32(esp, eax); /* 0x47022441: push eax */ 1693 PUSH32(esp, esi); /* 0x47022442: push esi */ 1694 PUSH32(esp, ecx); /* 0x47022443: push ecx */ 1695 RECOMP_ICALL(MEM32(0x470AC028)); /* 0x47022444: call dword ptr [0x470ac028] */ 1696 RECOMP_FLAGS_IN(); 1697 /* test eax, eax */ /* 0x4702244A: test eax, eax */ 1698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1699 _cf = 0; 1700 _flag_k = FK_TEST; 1701 if (TEST_Z(_flag_a, _flag_b)) goto L_470224B6; /* 0x4702244C: je 0x470224b6 */ 1702 L_4702244E: 1703 /* cmp MEM32(esp + 0x40), ebx */ /* 0x4702244E: cmp dword ptr [esp + 0x40], ebx */ 1704 _flag_a = (uint32_t)(MEM32(esp + 0x40)); _flag_b = (uint32_t)(ebx); 1705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1706 _flag_k = FK_CMP; 1707 if (CMP_EQ(_flag_a, _flag_b)) goto L_470224EB; /* 0x47022452: je 0x470224eb */ 1708 L_47022458: 1709 edx = MEM32(esp + 0x18); /* 0x47022458: mov edx, dword ptr [esp + 0x18] */ 1710 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 1711 edx = edx + 1; /* 0x4702245C: inc edx */ 1712 _flag_k = FK_INC; 1713 PUSH32(esp, edx); /* 0x4702245D: push edx */ 1714 RECOMP_ICALL(0x470A33F2u); /* 0x4702245E: call 0x470a33f2 */ /* not lifted */ 1715 RECOMP_FLAGS_IN(); 1716 esi = eax; /* 0x47022463: mov esi, eax */ 1717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1719 esp = esp + 4; /* 0x47022465: add esp, 4 */ 1720 _flag_k = FK_ADD; 1721 /* cmp esi, ebx */ /* 0x47022468: cmp esi, ebx */ 1722 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 1723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1724 _flag_k = FK_CMP; 1725 if (CMP_NE(_flag_a, _flag_b)) goto L_4702247C; /* 0x4702246A: jne 0x4702247c */ 1726 L_4702246C: 1727 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702246C: call dword ptr [0x470ac3c8] */ 1728 RECOMP_FLAGS_IN(); 1729 MEM32(eax) = 0xCu; /* 0x47022472: mov dword ptr [eax], 0xc */ 1730 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1731 esi = 0; /* 0x47022478: xor esi, esi */ 1732 _cf = 0; 1733 _flag_k = FK_TEST; 1734 goto L_47022497; /* 0x4702247A: jmp 0x47022497 */ 1735 L_4702247C: 1736 eax = MEM32(esp + 0x18); /* 0x4702247C: mov eax, dword ptr [esp + 0x18] */ 1737 ecx = MEM32(esp + 0x20); /* 0x47022480: mov ecx, dword ptr [esp + 0x20] */ 1738 PUSH32(esp, eax); /* 0x47022484: push eax */ 1739 PUSH32(esp, ecx); /* 0x47022485: push ecx */ 1740 PUSH32(esp, esi); /* 0x47022486: push esi */ 1741 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47022487: call dword ptr [0x470ac22c] */ 1742 RECOMP_FLAGS_IN(); 1743 edx = MEM32(esp + 0x24); /* 0x4702248D: mov edx, dword ptr [esp + 0x24] */ 1744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1746 esp = esp + 0xCu; /* 0x47022491: add esp, 0xc */ 1747 _flag_k = FK_ADD; 1748 MEM8(edx + esi) = (uint8_t)(LO8(ebx)); /* 0x47022494: mov byte ptr [edx + esi], bl */ 1749 L_47022497: 1750 ecx = MEM32(esp + 0x3C); /* 0x47022497: mov ecx, dword ptr [esp + 0x3c] */ 1751 PUSH32(esp, ebx); /* 0x4702249B: push ebx */ 1752 eax = esp + 0x3C; /* 0x4702249C: lea eax, [esp + 0x3c] */ 1753 PUSH32(esp, eax); /* 0x470224A0: push eax */ 1754 PUSH32(esp, ebx); /* 0x470224A1: push ebx */ 1755 PUSH32(esp, 0x000F003Fu); /* 0x470224A2: push 0xf003f */ 1756 PUSH32(esp, ebx); /* 0x470224A7: push ebx */ 1757 PUSH32(esp, ebx); /* 0x470224A8: push ebx */ 1758 PUSH32(esp, ebx); /* 0x470224A9: push ebx */ 1759 PUSH32(esp, esi); /* 0x470224AA: push esi */ 1760 PUSH32(esp, ecx); /* 0x470224AB: push ecx */ 1761 RECOMP_ICALL(MEM32(0x470AC008)); /* 0x470224AC: call dword ptr [0x470ac008] */ 1762 RECOMP_FLAGS_IN(); 1763 /* test eax, eax */ /* 0x470224B2: test eax, eax */ 1764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1765 _cf = 0; 1766 _flag_k = FK_TEST; 1767 if (TEST_NZ(_flag_a, _flag_b)) goto L_470224EB; /* 0x470224B4: jne 0x470224eb */ 1768 L_470224B6: 1769 edx = MEM32(esp + 0x3C); /* 0x470224B6: mov edx, dword ptr [esp + 0x3c] */ 1770 PUSH32(esp, edx); /* 0x470224BA: push edx */ 1771 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224BB: call dword ptr [0x470ac004] */ 1772 RECOMP_FLAGS_IN(); 1773 ebp = MEM32(esp + 0x10); /* 0x470224C1: mov ebp, dword ptr [esp + 0x10] */ 1774 /* cmp ebp, ebx */ /* 0x470224C5: cmp ebp, ebx */ 1775 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 1776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1777 _flag_k = FK_CMP; 1778 eax = MEM32(esp + 0x38); /* 0x470224C7: mov eax, dword ptr [esp + 0x38] */ 1779 MEM32(esp + 0x3C) = eax; /* 0x470224CB: mov dword ptr [esp + 0x3c], eax */ 1780 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702251F; /* 0x470224CF: je 0x4702251f */ 1781 L_470224D1: 1782 PUSH32(esp, ebx); /* 0x470224D1: push ebx */ 1783 PUSH32(esp, ebx); /* 0x470224D2: push ebx */ 1784 PUSH32(esp, ebx); /* 0x470224D3: push ebx */ 1785 ecx = esp + 0x20; /* 0x470224D4: lea ecx, [esp + 0x20] */ 1786 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1); 1787 ebp = ebp + 1; /* 0x470224D8: inc ebp */ 1788 _flag_k = FK_INC; 1789 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224D9: mov dword ptr [esp + 0x3c], 0xffffffff */ 1790 RECOMP_ICALL(0x470802D0u); /* 0x470224E1: call 0x470802d0 */ /* not lifted */ 1791 RECOMP_FLAGS_IN(); 1792 RECOMP_BACKEDGE(); 1793 goto L_470223A0; /* 0x470224E6: jmp 0x470223a0 */ 1794 L_470224EB: 1795 eax = MEM32(esp + 0x3C); /* 0x470224EB: mov eax, dword ptr [esp + 0x3c] */ 1796 PUSH32(esp, eax); /* 0x470224EF: push eax */ 1797 RECOMP_ICALL(MEM32(0x470AC004)); /* 0x470224F0: call dword ptr [0x470ac004] */ 1798 RECOMP_FLAGS_IN(); 1799 PUSH32(esp, ebx); /* 0x470224F6: push ebx */ 1800 PUSH32(esp, ebx); /* 0x470224F7: push ebx */ 1801 PUSH32(esp, ebx); /* 0x470224F8: push ebx */ 1802 ecx = esp + 0x20; /* 0x470224F9: lea ecx, [esp + 0x20] */ 1803 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x470224FD: mov dword ptr [esp + 0x3c], 0xffffffff */ 1804 RECOMP_ICALL(0x470802D0u); /* 0x47022505: call 0x470802d0 */ /* not lifted */ 1805 RECOMP_FLAGS_IN(); 1806 L_4702250A: 1807 edi = POP32_VAL(esp); /* 0x4702250A: pop edi */ 1808 esi = POP32_VAL(esp); /* 0x4702250B: pop esi */ 1809 ebp = POP32_VAL(esp); /* 0x4702250C: pop ebp */ 1810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1811 eax = 0; /* 0x4702250D: xor eax, eax */ 1812 _cf = 0; 1813 _flag_k = FK_TEST; 1814 ebx = POP32_VAL(esp); /* 0x4702250F: pop ebx */ 1815 ecx = MEM32(esp + 0x18); /* 0x47022510: mov ecx, dword ptr [esp + 0x18] */ 1816 MEM32(FS_BASE + (0)) = ecx; /* 0x47022514: mov dword ptr fs:[0], ecx */ 1817 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1819 esp = esp + 0x24u; /* 0x4702251B: add esp, 0x24 */ 1820 _flag_k = FK_ADD; 1821 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702251E: ret */ 1822 L_4702251F: 1823 PUSH32(esp, ebx); /* 0x4702251F: push ebx */ 1824 PUSH32(esp, ebx); /* 0x47022520: push ebx */ 1825 PUSH32(esp, ebx); /* 0x47022521: push ebx */ 1826 ecx = esp + 0x20; /* 0x47022522: lea ecx, [esp + 0x20] */ 1827 esi = eax; /* 0x47022526: mov esi, eax */ 1828 MEM32(esp + 0x3C) = 0xFFFFFFFFu; /* 0x47022528: mov dword ptr [esp + 0x3c], 0xffffffff */ 1829 RECOMP_ICALL(0x470802D0u); /* 0x47022530: call 0x470802d0 */ /* not lifted */ 1830 RECOMP_FLAGS_IN(); 1831 ecx = MEM32(esp + 0x28); /* 0x47022535: mov ecx, dword ptr [esp + 0x28] */ 1832 edi = POP32_VAL(esp); /* 0x47022539: pop edi */ 1833 eax = esi; /* 0x4702253A: mov eax, esi */ 1834 esi = POP32_VAL(esp); /* 0x4702253C: pop esi */ 1835 ebp = POP32_VAL(esp); /* 0x4702253D: pop ebp */ 1836 ebx = POP32_VAL(esp); /* 0x4702253E: pop ebx */ 1837 MEM32(FS_BASE + (0)) = ecx; /* 0x4702253F: mov dword ptr fs:[0], ecx */ 1838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 1839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1840 esp = esp + 0x24u; /* 0x47022546: add esp, 0x24 */ 1841 _flag_k = FK_ADD; 1842 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022549: ret */ 1843 RECOMP_REGS_OUT(); 1844 } 1845 1846 void sub_47022550(void) { 1847 int _fpu_cmp = 0; 1848 uint32_t _cf = 0; 1849 int _df = 1; 1850 uint32_t _flag_k = FK_NONE; 1851 uint32_t _flag_a = 0, _flag_b = 0; 1852 uint32_t _itail_tgt = 0; 1853 RECOMP_REGS_LOCALS 1854 RECOMP_ENTER(0x47022550u); 1855 1856 L_47022550: 1857 eax = ecx; /* 0x47022550: mov eax, ecx */ 1858 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1859 ecx = 0; /* 0x47022552: xor ecx, ecx */ 1860 _cf = 0; 1861 _flag_k = FK_TEST; 1862 MEM32(eax) = 3; /* 0x47022554: mov dword ptr [eax], 3 */ 1863 MEM32(eax + 0x4) = ecx; /* 0x4702255A: mov dword ptr [eax + 4], ecx */ 1864 MEM32(eax + 0x8) = ecx; /* 0x4702255D: mov dword ptr [eax + 8], ecx */ 1865 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022560: ret */ 1866 RECOMP_REGS_OUT(); 1867 } 1868 1869 void sub_47022570(void) { 1870 int _fpu_cmp = 0; 1871 uint32_t _cf = 0; 1872 int _df = 1; 1873 uint32_t _flag_k = FK_NONE; 1874 uint32_t _flag_a = 0, _flag_b = 0; 1875 uint32_t _itail_tgt = 0; 1876 RECOMP_REGS_LOCALS 1877 RECOMP_ENTER(0x47022570u); 1878 1879 L_47022570: 1880 eax = ecx; /* 0x47022570: mov eax, ecx */ 1881 ecx = MEM32(esp + 0x4); /* 0x47022572: mov ecx, dword ptr [esp + 4] */ 1882 MEM32(eax) = 0; /* 0x47022576: mov dword ptr [eax], 0 */ 1883 MEM32(eax + 0x4) = ecx; /* 0x4702257C: mov dword ptr [eax + 4], ecx */ 1884 MEM32(eax + 0x8) = 0; /* 0x4702257F: mov dword ptr [eax + 8], 0 */ 1885 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022586: ret 4 */ 1886 RECOMP_REGS_OUT(); 1887 } 1888 1889 void sub_47022590(void) { 1890 int _fpu_cmp = 0; 1891 uint32_t _cf = 0; 1892 int _df = 1; 1893 uint32_t _flag_k = FK_NONE; 1894 uint32_t _flag_a = 0, _flag_b = 0; 1895 uint32_t _itail_tgt = 0; 1896 RECOMP_REGS_LOCALS 1897 RECOMP_ENTER(0x47022590u); 1898 1899 L_47022590: 1900 eax = ecx; /* 0x47022590: mov eax, ecx */ 1901 ecx = MEM32(esp + 0x4); /* 0x47022592: mov ecx, dword ptr [esp + 4] */ 1902 MEM32(eax) = 1; /* 0x47022596: mov dword ptr [eax], 1 */ 1903 MEM32(eax + 0x4) = ecx; /* 0x4702259C: mov dword ptr [eax + 4], ecx */ 1904 MEM32(eax + 0x8) = 0; /* 0x4702259F: mov dword ptr [eax + 8], 0 */ 1905 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470225A6: ret 4 */ 1906 RECOMP_REGS_OUT(); 1907 } 1908 1909 void sub_470225B0(void) { 1910 int _fpu_cmp = 0; 1911 uint32_t _cf = 0; 1912 int _df = 1; 1913 uint32_t _flag_k = FK_NONE; 1914 uint32_t _flag_a = 0, _flag_b = 0; 1915 uint32_t _itail_tgt = 0; 1916 RECOMP_REGS_LOCALS 1917 RECOMP_ENTER(0x470225B0u); 1918 1919 L_470225B0: 1920 edx = MEM32(esp + 0x8); /* 0x470225B0: mov edx, dword ptr [esp + 8] */ 1921 eax = ecx; /* 0x470225B4: mov eax, ecx */ 1922 ecx = MEM32(esp + 0x4); /* 0x470225B6: mov ecx, dword ptr [esp + 4] */ 1923 MEM32(eax) = 2; /* 0x470225BA: mov dword ptr [eax], 2 */ 1924 MEM32(eax + 0x4) = ecx; /* 0x470225C0: mov dword ptr [eax + 4], ecx */ 1925 MEM32(eax + 0x8) = edx; /* 0x470225C3: mov dword ptr [eax + 8], edx */ 1926 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470225C6: ret 8 */ 1927 RECOMP_REGS_OUT(); 1928 } 1929 1930 void sub_470225D0(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(0x470225D0u); 1939 1940 L_470225D0: 1941 eax = ecx; /* 0x470225D0: mov eax, ecx */ 1942 ecx = MEM32(esp + 0x4); /* 0x470225D2: mov ecx, dword ptr [esp + 4] */ 1943 edx = MEM32(ecx); /* 0x470225D6: mov edx, dword ptr [ecx] */ 1944 MEM32(eax) = edx; /* 0x470225D8: mov dword ptr [eax], edx */ 1945 edx = MEM32(ecx + 0x4); /* 0x470225DA: mov edx, dword ptr [ecx + 4] */ 1946 MEM32(eax + 0x4) = edx; /* 0x470225DD: mov dword ptr [eax + 4], edx */ 1947 ecx = MEM32(ecx + 0x8); /* 0x470225E0: mov ecx, dword ptr [ecx + 8] */ 1948 MEM32(eax + 0x8) = ecx; /* 0x470225E3: mov dword ptr [eax + 8], ecx */ 1949 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470225E6: ret 4 */ 1950 RECOMP_REGS_OUT(); 1951 } 1952 1953 void sub_470225F0(void) { 1954 int _fpu_cmp = 0; 1955 uint32_t _cf = 0; 1956 int _df = 1; 1957 uint32_t _flag_k = FK_NONE; 1958 uint32_t _flag_a = 0, _flag_b = 0; 1959 uint32_t _itail_tgt = 0; 1960 RECOMP_REGS_LOCALS 1961 RECOMP_ENTER(0x470225F0u); 1962 1963 L_470225F0: 1964 eax = ecx; /* 0x470225F0: mov eax, ecx */ 1965 ecx = MEM32(esp + 0x4); /* 0x470225F2: mov ecx, dword ptr [esp + 4] */ 1966 /* cmp eax, ecx */ /* 0x470225F6: cmp eax, ecx */ 1967 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1969 _flag_k = FK_CMP; 1970 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702260A; /* 0x470225F8: je 0x4702260a */ 1971 L_470225FA: 1972 edx = MEM32(ecx); /* 0x470225FA: mov edx, dword ptr [ecx] */ 1973 MEM32(eax) = edx; /* 0x470225FC: mov dword ptr [eax], edx */ 1974 edx = MEM32(ecx + 0x4); /* 0x470225FE: mov edx, dword ptr [ecx + 4] */ 1975 MEM32(eax + 0x4) = edx; /* 0x47022601: mov dword ptr [eax + 4], edx */ 1976 ecx = MEM32(ecx + 0x8); /* 0x47022604: mov ecx, dword ptr [ecx + 8] */ 1977 MEM32(eax + 0x8) = ecx; /* 0x47022607: mov dword ptr [eax + 8], ecx */ 1978 L_4702260A: 1979 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702260A: ret 4 */ 1980 RECOMP_REGS_OUT(); 1981 } 1982 1983 void sub_47022610(void) { 1984 int _fpu_cmp = 0; 1985 uint32_t _cf = 0; 1986 int _df = 1; 1987 uint32_t _flag_k = FK_NONE; 1988 uint32_t _flag_a = 0, _flag_b = 0; 1989 uint32_t _itail_tgt = 0; 1990 RECOMP_REGS_LOCALS 1991 RECOMP_ENTER(0x47022610u); 1992 1993 L_47022610: 1994 eax = MEM32(ecx); /* 0x47022610: mov eax, dword ptr [ecx] */ 1995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0); 1996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1997 eax = eax - 0; /* 0x47022612: sub eax, 0 */ 1998 _flag_k = FK_CMP; 1999 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702261C; /* 0x47022615: je 0x4702261c */ 2000 L_47022617: 2001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2003 eax = eax - 2; /* 0x47022617: sub eax, 2 */ 2004 _flag_k = FK_CMP; 2005 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_4702262B; /* 0x4702261A: jne 0x4702262b */ 2006 L_4702261C: 2007 ecx = MEM32(ecx + 0x4); /* 0x4702261C: mov ecx, dword ptr [ecx + 4] */ 2008 eax = MEM32(esp + 0x4); /* 0x4702261F: mov eax, dword ptr [esp + 4] */ 2009 edx = MEM32(eax); /* 0x47022623: mov edx, dword ptr [eax] */ 2010 PUSH32(esp, ecx); /* 0x47022625: push ecx */ 2011 ecx = eax; /* 0x47022626: mov ecx, eax */ 2012 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47022628: call dword ptr [edx + 0xc] */ 2013 RECOMP_FLAGS_IN(); 2014 L_4702262B: 2015 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702262B: ret 4 */ 2016 RECOMP_REGS_OUT(); 2017 } 2018 2019 void sub_47022630(void) { 2020 int _fpu_cmp = 0; 2021 uint32_t _cf = 0; 2022 int _df = 1; 2023 uint32_t _flag_k = FK_NONE; 2024 uint32_t _flag_a = 0, _flag_b = 0; 2025 uint32_t _itail_tgt = 0; 2026 RECOMP_REGS_LOCALS 2027 RECOMP_ENTER(0x47022630u); 2028 2029 L_47022630: 2030 eax = ecx; /* 0x47022630: mov eax, ecx */ 2031 ecx = MEM32(esp + 0x4); /* 0x47022632: mov ecx, dword ptr [esp + 4] */ 2032 MEM32(eax) = ecx; /* 0x47022636: mov dword ptr [eax], ecx */ 2033 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022638: ret 4 */ 2034 RECOMP_REGS_OUT(); 2035 } 2036 2037 void sub_47022640(void) { 2038 int _fpu_cmp = 0; 2039 uint32_t _cf = 0; 2040 int _df = 1; 2041 uint32_t _flag_k = FK_NONE; 2042 uint32_t _flag_a = 0, _flag_b = 0; 2043 uint32_t _itail_tgt = 0; 2044 RECOMP_REGS_LOCALS 2045 RECOMP_ENTER(0x47022640u); 2046 2047 L_47022640: 2048 eax = ecx; /* 0x47022640: mov eax, ecx */ 2049 ecx = MEM32(esp + 0x4); /* 0x47022642: mov ecx, dword ptr [esp + 4] */ 2050 /* cmp eax, ecx */ /* 0x47022646: cmp eax, ecx */ 2051 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2053 _flag_k = FK_CMP; 2054 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702264E; /* 0x47022648: je 0x4702264e */ 2055 L_4702264A: 2056 ecx = MEM32(ecx); /* 0x4702264A: mov ecx, dword ptr [ecx] */ 2057 MEM32(eax) = ecx; /* 0x4702264C: mov dword ptr [eax], ecx */ 2058 L_4702264E: 2059 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702264E: ret 4 */ 2060 RECOMP_REGS_OUT(); 2061 } 2062 2063 void sub_47022660(void) { 2064 int _fpu_cmp = 0; 2065 uint32_t _cf = 0; 2066 int _df = 1; 2067 uint32_t _flag_k = FK_NONE; 2068 uint32_t _flag_a = 0, _flag_b = 0; 2069 uint32_t _itail_tgt = 0; 2070 RECOMP_REGS_LOCALS 2071 RECOMP_ENTER(0x47022660u); 2072 2073 L_47022660: 2074 eax = MEM32(esp + 0x4); /* 0x47022660: mov eax, dword ptr [esp + 4] */ 2075 PUSH32(esp, ebx); /* 0x47022664: push ebx */ 2076 PUSH32(esp, esi); /* 0x47022665: push esi */ 2077 esi = MEM32(eax); /* 0x47022666: mov esi, dword ptr [eax] */ 2078 eax = MEM32(ecx); /* 0x47022668: mov eax, dword ptr [ecx] */ 2079 L_4702266A: 2080 SET_LO8(edx, MEM8(eax)); /* 0x4702266A: mov dl, byte ptr [eax] */ 2081 SET_LO8(ebx, MEM8(esi)); /* 0x4702266C: mov bl, byte ptr [esi] */ 2082 SET_LO8(ecx, LO8(edx)); /* 0x4702266E: mov cl, dl */ 2083 /* cmp LO8(edx), LO8(ebx) */ /* 0x47022670: cmp dl, bl */ 2084 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2086 _flag_k = FK_NARROW(FK_CMP, 24); 2087 if (CMP_NE(_flag_a, _flag_b)) goto L_4702269E; /* 0x47022672: jne 0x4702269e */ 2088 L_47022674: 2089 /* test LO8(ecx), LO8(ecx) */ /* 0x47022674: test cl, cl */ 2090 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2091 _cf = 0; 2092 _flag_k = FK_NARROW(FK_TEST, 24); 2093 if (TEST_Z(_flag_a, _flag_b)) goto L_4702268E; /* 0x47022676: je 0x4702268e */ 2094 L_47022678: 2095 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x47022678: mov dl, byte ptr [eax + 1] */ 2096 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x4702267B: mov bl, byte ptr [esi + 1] */ 2097 SET_LO8(ecx, LO8(edx)); /* 0x4702267E: mov cl, dl */ 2098 /* cmp LO8(edx), LO8(ebx) */ /* 0x47022680: cmp dl, bl */ 2099 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2101 _flag_k = FK_NARROW(FK_CMP, 24); 2102 if (CMP_NE(_flag_a, _flag_b)) goto L_4702269E; /* 0x47022682: jne 0x4702269e */ 2103 L_47022684: 2104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2106 eax = eax + 2; /* 0x47022684: add eax, 2 */ 2107 _flag_k = FK_ADD; 2108 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2110 esi = esi + 2; /* 0x47022687: add esi, 2 */ 2111 _flag_k = FK_ADD; 2112 /* test LO8(ecx), LO8(ecx) */ /* 0x4702268A: test cl, cl */ 2113 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2114 _cf = 0; 2115 _flag_k = FK_NARROW(FK_TEST, 24); 2116 RECOMP_BACKEDGE(); 2117 if (TEST_NZ(_flag_a, _flag_b)) goto L_4702266A; /* 0x4702268C: jne 0x4702266a */ 2118 L_4702268E: 2119 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2120 eax = 0; /* 0x4702268E: xor eax, eax */ 2121 _cf = 0; 2122 _flag_k = FK_TEST; 2123 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2124 ecx = 0; /* 0x47022690: xor ecx, ecx */ 2125 _cf = 0; 2126 _flag_k = FK_TEST; 2127 /* test eax, eax */ /* 0x47022692: test eax, eax */ 2128 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2129 _cf = 0; 2130 _flag_k = FK_TEST; 2131 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47022694: sete cl */ 2132 esi = POP32_VAL(esp); /* 0x47022697: pop esi */ 2133 ebx = POP32_VAL(esp); /* 0x47022698: pop ebx */ 2134 eax = ecx; /* 0x47022699: mov eax, ecx */ 2135 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702269B: ret 4 */ 2136 L_4702269E: 2137 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4702269E: sbb eax, eax */ 2138 eax = _sc ? 0xFFFFFFFFu : 0; 2139 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2140 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2141 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x470226A0: sbb eax, -1 */ 2142 eax = _sa - _sb - _sc; 2143 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2144 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2145 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2146 ecx = 0; /* 0x470226A3: xor ecx, ecx */ 2147 _cf = 0; 2148 _flag_k = FK_TEST; 2149 /* test eax, eax */ /* 0x470226A5: test eax, eax */ 2150 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2151 _cf = 0; 2152 _flag_k = FK_TEST; 2153 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x470226A7: sete cl */ 2154 esi = POP32_VAL(esp); /* 0x470226AA: pop esi */ 2155 ebx = POP32_VAL(esp); /* 0x470226AB: pop ebx */ 2156 eax = ecx; /* 0x470226AC: mov eax, ecx */ 2157 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470226AE: ret 4 */ 2158 RECOMP_REGS_OUT(); 2159 } 2160 2161 void sub_470226C0(void) { 2162 int _fpu_cmp = 0; 2163 uint32_t _cf = 0; 2164 int _df = 1; 2165 uint32_t _flag_k = FK_NONE; 2166 uint32_t _flag_a = 0, _flag_b = 0; 2167 uint32_t _itail_tgt = 0; 2168 RECOMP_REGS_LOCALS 2169 RECOMP_ENTER(0x470226C0u); 2170 2171 L_470226C0: 2172 eax = MEM32(esp + 0x4); /* 0x470226C0: mov eax, dword ptr [esp + 4] */ 2173 PUSH32(esp, ebx); /* 0x470226C4: push ebx */ 2174 PUSH32(esp, esi); /* 0x470226C5: push esi */ 2175 esi = MEM32(eax); /* 0x470226C6: mov esi, dword ptr [eax] */ 2176 eax = MEM32(ecx); /* 0x470226C8: mov eax, dword ptr [ecx] */ 2177 L_470226CA: 2178 SET_LO8(edx, MEM8(eax)); /* 0x470226CA: mov dl, byte ptr [eax] */ 2179 SET_LO8(ebx, MEM8(esi)); /* 0x470226CC: mov bl, byte ptr [esi] */ 2180 SET_LO8(ecx, LO8(edx)); /* 0x470226CE: mov cl, dl */ 2181 /* cmp LO8(edx), LO8(ebx) */ /* 0x470226D0: cmp dl, bl */ 2182 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2183 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2184 _flag_k = FK_NARROW(FK_CMP, 24); 2185 if (CMP_NE(_flag_a, _flag_b)) goto L_470226FE; /* 0x470226D2: jne 0x470226fe */ 2186 L_470226D4: 2187 /* test LO8(ecx), LO8(ecx) */ /* 0x470226D4: test cl, cl */ 2188 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2189 _cf = 0; 2190 _flag_k = FK_NARROW(FK_TEST, 24); 2191 if (TEST_Z(_flag_a, _flag_b)) goto L_470226EE; /* 0x470226D6: je 0x470226ee */ 2192 L_470226D8: 2193 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x470226D8: mov dl, byte ptr [eax + 1] */ 2194 SET_LO8(ebx, MEM8(esi + 0x1)); /* 0x470226DB: mov bl, byte ptr [esi + 1] */ 2195 SET_LO8(ecx, LO8(edx)); /* 0x470226DE: mov cl, dl */ 2196 /* cmp LO8(edx), LO8(ebx) */ /* 0x470226E0: cmp dl, bl */ 2197 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2199 _flag_k = FK_NARROW(FK_CMP, 24); 2200 if (CMP_NE(_flag_a, _flag_b)) goto L_470226FE; /* 0x470226E2: jne 0x470226fe */ 2201 L_470226E4: 2202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 2203 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2204 eax = eax + 2; /* 0x470226E4: add eax, 2 */ 2205 _flag_k = FK_ADD; 2206 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 2207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2208 esi = esi + 2; /* 0x470226E7: add esi, 2 */ 2209 _flag_k = FK_ADD; 2210 /* test LO8(ecx), LO8(ecx) */ /* 0x470226EA: test cl, cl */ 2211 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2212 _cf = 0; 2213 _flag_k = FK_NARROW(FK_TEST, 24); 2214 RECOMP_BACKEDGE(); 2215 if (TEST_NZ(_flag_a, _flag_b)) goto L_470226CA; /* 0x470226EC: jne 0x470226ca */ 2216 L_470226EE: 2217 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2218 eax = 0; /* 0x470226EE: xor eax, eax */ 2219 _cf = 0; 2220 _flag_k = FK_TEST; 2221 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2222 ecx = 0; /* 0x470226F0: xor ecx, ecx */ 2223 _cf = 0; 2224 _flag_k = FK_TEST; 2225 /* test eax, eax */ /* 0x470226F2: test eax, eax */ 2226 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2227 _cf = 0; 2228 _flag_k = FK_TEST; 2229 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x470226F4: setne cl */ 2230 esi = POP32_VAL(esp); /* 0x470226F7: pop esi */ 2231 ebx = POP32_VAL(esp); /* 0x470226F8: pop ebx */ 2232 eax = ecx; /* 0x470226F9: mov eax, ecx */ 2233 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470226FB: ret 4 */ 2234 L_470226FE: 2235 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x470226FE: sbb eax, eax */ 2236 eax = _sc ? 0xFFFFFFFFu : 0; 2237 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2238 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2239 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x47022700: sbb eax, -1 */ 2240 eax = _sa - _sb - _sc; 2241 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2242 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2243 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2244 ecx = 0; /* 0x47022703: xor ecx, ecx */ 2245 _cf = 0; 2246 _flag_k = FK_TEST; 2247 /* test eax, eax */ /* 0x47022705: test eax, eax */ 2248 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2249 _cf = 0; 2250 _flag_k = FK_TEST; 2251 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47022707: setne cl */ 2252 esi = POP32_VAL(esp); /* 0x4702270A: pop esi */ 2253 ebx = POP32_VAL(esp); /* 0x4702270B: pop ebx */ 2254 eax = ecx; /* 0x4702270C: mov eax, ecx */ 2255 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702270E: ret 4 */ 2256 RECOMP_REGS_OUT(); 2257 } 2258 2259 void sub_47022720(void) { 2260 int _fpu_cmp = 0; 2261 uint32_t _cf = 0; 2262 int _df = 1; 2263 uint32_t _flag_k = FK_NONE; 2264 uint32_t _flag_a = 0, _flag_b = 0; 2265 uint32_t _itail_tgt = 0; 2266 RECOMP_REGS_LOCALS 2267 RECOMP_ENTER(0x47022720u); 2268 2269 L_47022720: 2270 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022720: push -1 */ 2271 PUSH32(esp, 0x470A4698u); /* 0x47022722: push 0x470a4698 */ 2272 eax = MEM32(FS_BASE + (0)); /* 0x47022727: mov eax, dword ptr fs:[0] */ 2273 PUSH32(esp, eax); /* 0x4702272D: push eax */ 2274 MEM32(FS_BASE + (0)) = esp; /* 0x4702272E: mov dword ptr fs:[0], esp */ 2275 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2277 esp = esp - 0x14u; /* 0x47022735: sub esp, 0x14 */ 2278 _flag_k = FK_CMP; 2279 PUSH32(esp, ebx); /* 0x47022738: push ebx */ 2280 PUSH32(esp, esi); /* 0x47022739: push esi */ 2281 esi = MEM32(ecx); /* 0x4702273A: mov esi, dword ptr [ecx] */ 2282 RECOMP_ICALL(0x4703DAC0u); /* 0x4702273C: call 0x4703dac0 */ /* not lifted */ 2283 RECOMP_FLAGS_IN(); 2284 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2285 ebx = 0; /* 0x47022741: xor ebx, ebx */ 2286 _cf = 0; 2287 _flag_k = FK_TEST; 2288 /* cmp esi, ebx */ /* 0x47022743: cmp esi, ebx */ 2289 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2291 _flag_k = FK_CMP; 2292 MEM32(esp + 0x8) = eax; /* 0x47022745: mov dword ptr [esp + 8], eax */ 2293 MEM32(esp + 0xC) = ebx; /* 0x47022749: mov dword ptr [esp + 0xc], ebx */ 2294 MEM32(esp + 0x10) = ebx; /* 0x4702274D: mov dword ptr [esp + 0x10], ebx */ 2295 MEM32(esp + 0x14) = ebx; /* 0x47022751: mov dword ptr [esp + 0x14], ebx */ 2296 MEM32(esp + 0x18) = ebx; /* 0x47022755: mov dword ptr [esp + 0x18], ebx */ 2297 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702276B; /* 0x47022759: je 0x4702276b */ 2298 L_4702275B: 2299 PUSH32(esp, edi); /* 0x4702275B: push edi */ 2300 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2301 ecx = ecx | 0xFFFFFFFFu; /* 0x4702275C: or ecx, 0xffffffff */ 2302 _cf = 0; 2303 _flag_k = FK_TEST; 2304 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2305 eax = 0; /* 0x4702275F: xor eax, eax */ 2306 _cf = 0; 2307 _flag_k = FK_TEST; 2308 edi = esi; /* 0x47022761: mov edi, esi */ 2309 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; } /* 0x47022763: repne scasb al, byte ptr es:[edi] */ 2310 ecx = ~ecx; /* 0x47022765: not ecx */ 2311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2312 ecx = ecx - 1; /* 0x47022767: dec ecx */ 2313 _flag_k = FK_DEC; 2314 edi = POP32_VAL(esp); /* 0x47022768: pop edi */ 2315 goto L_4702276D; /* 0x47022769: jmp 0x4702276d */ 2316 L_4702276B: 2317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2318 ecx = 0; /* 0x4702276B: xor ecx, ecx */ 2319 _cf = 0; 2320 _flag_k = FK_TEST; 2321 L_4702276D: 2322 PUSH32(esp, 1); /* 0x4702276D: push 1 */ 2323 PUSH32(esp, ecx); /* 0x4702276F: push ecx */ 2324 PUSH32(esp, esi); /* 0x47022770: push esi */ 2325 ecx = esp + 0x14; /* 0x47022771: lea ecx, [esp + 0x14] */ 2326 RECOMP_ICALL(0x470802D0u); /* 0x47022775: call 0x470802d0 */ /* not lifted */ 2327 RECOMP_FLAGS_IN(); 2328 eax = MEM32(esp + 0xC); /* 0x4702277A: mov eax, dword ptr [esp + 0xc] */ 2329 ecx = MEM32(esp + 0x14); /* 0x4702277E: mov ecx, dword ptr [esp + 0x14] */ 2330 PUSH32(esp, eax); /* 0x47022782: push eax */ 2331 PUSH32(esp, ecx); /* 0x47022783: push ecx */ 2332 MEM32(esp + 0x2C) = ebx; /* 0x47022784: mov dword ptr [esp + 0x2c], ebx */ 2333 RECOMP_ICALL(0x4700B480u); /* 0x47022788: call 0x4700b480 */ /* not lifted */ 2334 RECOMP_FLAGS_IN(); 2335 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2337 esp = esp + 8; /* 0x4702278D: add esp, 8 */ 2338 _flag_k = FK_ADD; 2339 PUSH32(esp, ebx); /* 0x47022790: push ebx */ 2340 PUSH32(esp, ebx); /* 0x47022791: push ebx */ 2341 PUSH32(esp, ebx); /* 0x47022792: push ebx */ 2342 ecx = esp + 0x14; /* 0x47022793: lea ecx, [esp + 0x14] */ 2343 esi = eax; /* 0x47022797: mov esi, eax */ 2344 MEM32(esp + 0x30) = 0xFFFFFFFFu; /* 0x47022799: mov dword ptr [esp + 0x30], 0xffffffff */ 2345 RECOMP_ICALL(0x470802D0u); /* 0x470227A1: call 0x470802d0 */ /* not lifted */ 2346 RECOMP_FLAGS_IN(); 2347 ecx = MEM32(esp + 0x1C); /* 0x470227A6: mov ecx, dword ptr [esp + 0x1c] */ 2348 eax = esi; /* 0x470227AA: mov eax, esi */ 2349 esi = POP32_VAL(esp); /* 0x470227AC: pop esi */ 2350 ebx = POP32_VAL(esp); /* 0x470227AD: pop ebx */ 2351 MEM32(FS_BASE + (0)) = ecx; /* 0x470227AE: mov dword ptr fs:[0], ecx */ 2352 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 2353 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2354 esp = esp + 0x20u; /* 0x470227B5: add esp, 0x20 */ 2355 _flag_k = FK_ADD; 2356 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470227B8: ret */ 2357 RECOMP_REGS_OUT(); 2358 } 2359 2360 void sub_470227C0(void) { 2361 int _fpu_cmp = 0; 2362 uint32_t _cf = 0; 2363 int _df = 1; 2364 uint32_t _flag_k = FK_NONE; 2365 uint32_t _flag_a = 0, _flag_b = 0; 2366 uint32_t _itail_tgt = 0; 2367 RECOMP_REGS_LOCALS 2368 RECOMP_ENTER(0x470227C0u); 2369 2370 L_470227C0: 2371 eax = ecx; /* 0x470227C0: mov eax, ecx */ 2372 ecx = MEM32(esp + 0x4); /* 0x470227C2: mov ecx, dword ptr [esp + 4] */ 2373 eax = MEM32(eax); /* 0x470227C6: mov eax, dword ptr [eax] */ 2374 edx = MEM32(ecx); /* 0x470227C8: mov edx, dword ptr [ecx] */ 2375 PUSH32(esp, eax); /* 0x470227CA: push eax */ 2376 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470227CB: call dword ptr [edx + 0xc] */ 2377 RECOMP_FLAGS_IN(); 2378 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470227CE: ret 4 */ 2379 RECOMP_REGS_OUT(); 2380 } 2381 2382 void sub_470227E0(void) { 2383 int _fpu_cmp = 0; 2384 uint32_t _cf = 0; 2385 int _df = 1; 2386 uint32_t _flag_k = FK_NONE; 2387 uint32_t _flag_a = 0, _flag_b = 0; 2388 uint32_t _itail_tgt = 0; 2389 RECOMP_REGS_LOCALS 2390 RECOMP_ENTER(0x470227E0u); 2391 2392 L_470227E0: 2393 edx = MEM32(esp + 0x8); /* 0x470227E0: mov edx, dword ptr [esp + 8] */ 2394 eax = ecx; /* 0x470227E4: mov eax, ecx */ 2395 ecx = MEM32(esp + 0x4); /* 0x470227E6: mov ecx, dword ptr [esp + 4] */ 2396 MEM32(eax) = ecx; /* 0x470227EA: mov dword ptr [eax], ecx */ 2397 MEM32(eax + 0x4) = edx; /* 0x470227EC: mov dword ptr [eax + 4], edx */ 2398 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470227EF: ret 8 */ 2399 RECOMP_REGS_OUT(); 2400 } 2401 2402 void sub_47022800(void) { 2403 int _fpu_cmp = 0; 2404 uint32_t _cf = 0; 2405 int _df = 1; 2406 uint32_t _flag_k = FK_NONE; 2407 uint32_t _flag_a = 0, _flag_b = 0; 2408 uint32_t _itail_tgt = 0; 2409 RECOMP_REGS_LOCALS 2410 RECOMP_ENTER(0x47022800u); 2411 2412 L_47022800: 2413 eax = ecx; /* 0x47022800: mov eax, ecx */ 2414 ecx = MEM32(esp + 0x4); /* 0x47022802: mov ecx, dword ptr [esp + 4] */ 2415 /* cmp eax, ecx */ /* 0x47022806: cmp eax, ecx */ 2416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2418 _flag_k = FK_CMP; 2419 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022814; /* 0x47022808: je 0x47022814 */ 2420 L_4702280A: 2421 edx = MEM32(ecx); /* 0x4702280A: mov edx, dword ptr [ecx] */ 2422 MEM32(eax) = edx; /* 0x4702280C: mov dword ptr [eax], edx */ 2423 ecx = MEM32(ecx + 0x4); /* 0x4702280E: mov ecx, dword ptr [ecx + 4] */ 2424 MEM32(eax + 0x4) = ecx; /* 0x47022811: mov dword ptr [eax + 4], ecx */ 2425 L_47022814: 2426 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022814: ret 4 */ 2427 RECOMP_REGS_OUT(); 2428 } 2429 2430 void sub_47022820(void) { 2431 int _fpu_cmp = 0; 2432 uint32_t _cf = 0; 2433 int _df = 1; 2434 uint32_t _flag_k = FK_NONE; 2435 uint32_t _flag_a = 0, _flag_b = 0; 2436 uint32_t _itail_tgt = 0; 2437 RECOMP_REGS_LOCALS 2438 RECOMP_ENTER(0x47022820u); 2439 2440 L_47022820: 2441 PUSH32(esp, esi); /* 0x47022820: push esi */ 2442 esi = MEM32(esp + 0x8); /* 0x47022821: mov esi, dword ptr [esp + 8] */ 2443 eax = MEM32(esi); /* 0x47022825: mov eax, dword ptr [esi] */ 2444 PUSH32(esp, edi); /* 0x47022827: push edi */ 2445 edi = ecx; /* 0x47022828: mov edi, ecx */ 2446 ecx = MEM32(edi); /* 0x4702282A: mov ecx, dword ptr [edi] */ 2447 PUSH32(esp, ecx); /* 0x4702282C: push ecx */ 2448 ecx = esi; /* 0x4702282D: mov ecx, esi */ 2449 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4702282F: call dword ptr [eax + 0xc] */ 2450 RECOMP_FLAGS_IN(); 2451 eax = MEM32(edi + 0x4); /* 0x47022832: mov eax, dword ptr [edi + 4] */ 2452 edx = MEM32(esi); /* 0x47022835: mov edx, dword ptr [esi] */ 2453 PUSH32(esp, eax); /* 0x47022837: push eax */ 2454 ecx = esi; /* 0x47022838: mov ecx, esi */ 2455 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4702283A: call dword ptr [edx + 0xc] */ 2456 RECOMP_FLAGS_IN(); 2457 edi = POP32_VAL(esp); /* 0x4702283D: pop edi */ 2458 esi = POP32_VAL(esp); /* 0x4702283E: pop esi */ 2459 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702283F: ret 4 */ 2460 RECOMP_REGS_OUT(); 2461 } 2462 2463 void sub_47022850(void) { 2464 int _fpu_cmp = 0; 2465 uint32_t _cf = 0; 2466 int _df = 1; 2467 uint32_t _flag_k = FK_NONE; 2468 uint32_t _flag_a = 0, _flag_b = 0; 2469 uint32_t _itail_tgt = 0; 2470 RECOMP_REGS_LOCALS 2471 RECOMP_ENTER(0x47022850u); 2472 2473 L_47022850: 2474 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2475 eax = 0; /* 0x47022850: xor eax, eax */ 2476 _cf = 0; 2477 _flag_k = FK_TEST; 2478 PUSH32(esp, esi); /* 0x47022852: push esi */ 2479 esi = ecx; /* 0x47022853: mov esi, ecx */ 2480 MEM32(esi + 0x4) = eax; /* 0x47022855: mov dword ptr [esi + 4], eax */ 2481 MEM32(esi + 0x8) = eax; /* 0x47022858: mov dword ptr [esi + 8], eax */ 2482 MEM32(esi + 0xC) = eax; /* 0x4702285B: mov dword ptr [esi + 0xc], eax */ 2483 MEM32(esi + 0x10) = eax; /* 0x4702285E: mov dword ptr [esi + 0x10], eax */ 2484 eax = MEM32(esp + 0x8); /* 0x47022861: mov eax, dword ptr [esp + 8] */ 2485 PUSH32(esp, eax); /* 0x47022865: push eax */ 2486 MEM32(esi) = 0x470ACFDCu; /* 0x47022866: mov dword ptr [esi], 0x470acfdc */ 2487 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x4702286C: call dword ptr [0x470ac3f4] */ 2488 RECOMP_FLAGS_IN(); 2489 MEM32(esi + 0x8) = eax; /* 0x47022872: mov dword ptr [esi + 8], eax */ 2490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2492 esp = esp + 4; /* 0x47022875: add esp, 4 */ 2493 _flag_k = FK_ADD; 2494 eax = esi; /* 0x47022878: mov eax, esi */ 2495 esi = POP32_VAL(esp); /* 0x4702287A: pop esi */ 2496 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702287B: ret 4 */ 2497 RECOMP_REGS_OUT(); 2498 } 2499 2500 void sub_47022880(void) { 2501 int _fpu_cmp = 0; 2502 uint32_t _cf = 0; 2503 int _df = 1; 2504 uint32_t _flag_k = FK_NONE; 2505 uint32_t _flag_a = 0, _flag_b = 0; 2506 uint32_t _itail_tgt = 0; 2507 RECOMP_REGS_LOCALS 2508 RECOMP_ENTER(0x47022880u); 2509 2510 L_47022880: 2511 PUSH32(esp, ebx); /* 0x47022880: push ebx */ 2512 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47022881: mov bl, byte ptr [esp + 8] */ 2513 /* test LO8(ebx), 2 */ /* 0x47022885: test bl, 2 */ 2514 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2515 _cf = 0; 2516 _flag_k = FK_NARROW(FK_TEST, 24); 2517 PUSH32(esp, esi); /* 0x47022888: push esi */ 2518 esi = ecx; /* 0x47022889: mov esi, ecx */ 2519 if (TEST_Z(_flag_a, _flag_b)) goto L_470228B8; /* 0x4702288B: je 0x470228b8 */ 2520 L_4702288D: 2521 eax = MEM32(esi + (-0x4)); /* 0x4702288D: mov eax, dword ptr [esi - 4] */ 2522 PUSH32(esp, edi); /* 0x47022890: push edi */ 2523 PUSH32(esp, 0x470228E0u); /* 0x47022891: push 0x470228e0 */ 2524 edi = esi + (-0x4); /* 0x47022896: lea edi, [esi - 4] */ 2525 PUSH32(esp, eax); /* 0x47022899: push eax */ 2526 PUSH32(esp, 0x14u); /* 0x4702289A: push 0x14 */ 2527 PUSH32(esp, esi); /* 0x4702289C: push esi */ 2528 RECOMP_ICALL(0x470A32EBu); /* 0x4702289D: call 0x470a32eb */ /* not lifted */ 2529 RECOMP_FLAGS_IN(); 2530 /* test LO8(ebx), 1 */ /* 0x470228A2: test bl, 1 */ 2531 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2532 _cf = 0; 2533 _flag_k = FK_NARROW(FK_TEST, 24); 2534 if (TEST_Z(_flag_a, _flag_b)) goto L_470228B0; /* 0x470228A5: je 0x470228b0 */ 2535 L_470228A7: 2536 PUSH32(esp, edi); /* 0x470228A7: push edi */ 2537 RECOMP_ICALL(0x470A32A2u); /* 0x470228A8: call 0x470a32a2 */ /* not lifted */ 2538 RECOMP_FLAGS_IN(); 2539 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2540 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2541 esp = esp + 4; /* 0x470228AD: add esp, 4 */ 2542 _flag_k = FK_ADD; 2543 L_470228B0: 2544 eax = edi; /* 0x470228B0: mov eax, edi */ 2545 edi = POP32_VAL(esp); /* 0x470228B2: pop edi */ 2546 esi = POP32_VAL(esp); /* 0x470228B3: pop esi */ 2547 ebx = POP32_VAL(esp); /* 0x470228B4: pop ebx */ 2548 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470228B5: ret 4 */ 2549 L_470228B8: 2550 ecx = esi; /* 0x470228B8: mov ecx, esi */ 2551 RECOMP_ICALL(0x470228E0u); /* 0x470228BA: call 0x470228e0 */ /* not lifted */ 2552 RECOMP_FLAGS_IN(); 2553 /* test LO8(ebx), 1 */ /* 0x470228BF: test bl, 1 */ 2554 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2555 _cf = 0; 2556 _flag_k = FK_NARROW(FK_TEST, 24); 2557 if (TEST_Z(_flag_a, _flag_b)) goto L_470228CD; /* 0x470228C2: je 0x470228cd */ 2558 L_470228C4: 2559 PUSH32(esp, esi); /* 0x470228C4: push esi */ 2560 RECOMP_ICALL(0x470A32A2u); /* 0x470228C5: call 0x470a32a2 */ /* not lifted */ 2561 RECOMP_FLAGS_IN(); 2562 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2563 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2564 esp = esp + 4; /* 0x470228CA: add esp, 4 */ 2565 _flag_k = FK_ADD; 2566 L_470228CD: 2567 eax = esi; /* 0x470228CD: mov eax, esi */ 2568 esi = POP32_VAL(esp); /* 0x470228CF: pop esi */ 2569 ebx = POP32_VAL(esp); /* 0x470228D0: pop ebx */ 2570 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470228D1: ret 4 */ 2571 RECOMP_REGS_OUT(); 2572 } 2573 2574 void sub_470228E0(void) { 2575 int _fpu_cmp = 0; 2576 uint32_t _cf = 0; 2577 int _df = 1; 2578 uint32_t _flag_k = FK_NONE; 2579 uint32_t _flag_a = 0, _flag_b = 0; 2580 uint32_t _itail_tgt = 0; 2581 RECOMP_REGS_LOCALS 2582 RECOMP_ENTER(0x470228E0u); 2583 2584 L_470228E0: 2585 PUSH32(esp, esi); /* 0x470228E0: push esi */ 2586 esi = ecx; /* 0x470228E1: mov esi, ecx */ 2587 eax = MEM32(esi + 0xC); /* 0x470228E3: mov eax, dword ptr [esi + 0xc] */ 2588 PUSH32(esp, eax); /* 0x470228E6: push eax */ 2589 MEM32(esi) = 0x470ACFDCu; /* 0x470228E7: mov dword ptr [esi], 0x470acfdc */ 2590 RECOMP_ICALL(0x470A32A2u); /* 0x470228ED: call 0x470a32a2 */ /* not lifted */ 2591 RECOMP_FLAGS_IN(); 2592 ecx = MEM32(esi + 0x10); /* 0x470228F2: mov ecx, dword ptr [esi + 0x10] */ 2593 PUSH32(esp, ecx); /* 0x470228F5: push ecx */ 2594 RECOMP_ICALL(0x470A32A2u); /* 0x470228F6: call 0x470a32a2 */ /* not lifted */ 2595 RECOMP_FLAGS_IN(); 2596 edx = MEM32(esi + 0x8); /* 0x470228FB: mov edx, dword ptr [esi + 8] */ 2597 PUSH32(esp, edx); /* 0x470228FE: push edx */ 2598 RECOMP_ICALL(MEM32(0x470AC390)); /* 0x470228FF: call dword ptr [0x470ac390] */ 2599 RECOMP_FLAGS_IN(); 2600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2601 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2602 esp = esp + 0xCu; /* 0x47022905: add esp, 0xc */ 2603 _flag_k = FK_ADD; 2604 MEM32(esi) = 0x470ACF5Cu; /* 0x47022908: mov dword ptr [esi], 0x470acf5c */ 2605 esi = POP32_VAL(esp); /* 0x4702290E: pop esi */ 2606 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702290F: ret */ 2607 RECOMP_REGS_OUT(); 2608 } 2609 2610 void sub_47022910(void) { 2611 int _fpu_cmp = 0; 2612 uint32_t _cf = 0; 2613 int _df = 1; 2614 uint32_t _flag_k = FK_NONE; 2615 uint32_t _flag_a = 0, _flag_b = 0; 2616 uint32_t _itail_tgt = 0; 2617 RECOMP_REGS_LOCALS 2618 RECOMP_ENTER(0x47022910u); 2619 2620 L_47022910: 2621 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022910: push -1 */ 2622 PUSH32(esp, 0x470A46C0u); /* 0x47022912: push 0x470a46c0 */ 2623 eax = MEM32(FS_BASE + (0)); /* 0x47022917: mov eax, dword ptr fs:[0] */ 2624 PUSH32(esp, eax); /* 0x4702291D: push eax */ 2625 MEM32(FS_BASE + (0)) = esp; /* 0x4702291E: mov dword ptr fs:[0], esp */ 2626 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2628 esp = esp - 8; /* 0x47022925: sub esp, 8 */ 2629 _flag_k = FK_CMP; 2630 PUSH32(esp, ebx); /* 0x47022928: push ebx */ 2631 PUSH32(esp, ebp); /* 0x47022929: push ebp */ 2632 PUSH32(esp, esi); /* 0x4702292A: push esi */ 2633 PUSH32(esp, edi); /* 0x4702292B: push edi */ 2634 edi = ecx; /* 0x4702292C: mov edi, ecx */ 2635 ebp = edi + 0x4; /* 0x4702292E: lea ebp, [edi + 4] */ 2636 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2637 ebx = 0; /* 0x47022931: xor ebx, ebx */ 2638 _cf = 0; 2639 _flag_k = FK_TEST; 2640 MEM32(esp + 0x14) = edi; /* 0x47022933: mov dword ptr [esp + 0x14], edi */ 2641 MEM32(ebp) = ebx; /* 0x47022937: mov dword ptr [ebp], ebx */ 2642 PUSH32(esp, 0x14u); /* 0x4702293A: push 0x14 */ 2643 MEM32(esp + 0x24) = ebx; /* 0x4702293C: mov dword ptr [esp + 0x24], ebx */ 2644 MEM32(edi + 0x8) = ebx; /* 0x47022940: mov dword ptr [edi + 8], ebx */ 2645 MEM32(edi + 0xC) = ebx; /* 0x47022943: mov dword ptr [edi + 0xc], ebx */ 2646 MEM32(edi + 0x10) = ebx; /* 0x47022946: mov dword ptr [edi + 0x10], ebx */ 2647 MEM32(edi) = 0x470ACFE8u; /* 0x47022949: mov dword ptr [edi], 0x470acfe8 */ 2648 RECOMP_ICALL(0x470A33F2u); /* 0x4702294F: call 0x470a33f2 */ /* not lifted */ 2649 RECOMP_FLAGS_IN(); 2650 esi = eax; /* 0x47022954: mov esi, eax */ 2651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2653 esp = esp + 4; /* 0x47022956: add esp, 4 */ 2654 _flag_k = FK_ADD; 2655 /* cmp esi, ebx */ /* 0x47022959: cmp esi, ebx */ 2656 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2658 _flag_k = FK_CMP; 2659 if (CMP_EQ(_flag_a, _flag_b)) goto L_470229CE; /* 0x4702295B: je 0x470229ce */ 2660 L_4702295D: 2661 PUSH32(esp, 0x4710DE90u); /* 0x4702295D: push 0x4710de90 */ 2662 MEM32(esi + 0x4) = ebx; /* 0x47022962: mov dword ptr [esi + 4], ebx */ 2663 MEM32(esi + 0x8) = ebx; /* 0x47022965: mov dword ptr [esi + 8], ebx */ 2664 MEM32(esi + 0xC) = ebx; /* 0x47022968: mov dword ptr [esi + 0xc], ebx */ 2665 MEM32(esi + 0x10) = ebx; /* 0x4702296B: mov dword ptr [esi + 0x10], ebx */ 2666 MEM32(esi) = 0x470ACFDCu; /* 0x4702296E: mov dword ptr [esi], 0x470acfdc */ 2667 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47022974: call dword ptr [0x470ac3f4] */ 2668 RECOMP_FLAGS_IN(); 2669 MEM32(esi + 0x8) = eax; /* 0x4702297A: mov dword ptr [esi + 8], eax */ 2670 eax = MEM32(esi); /* 0x4702297D: mov eax, dword ptr [esi] */ 2671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2673 esp = esp + 4; /* 0x4702297F: add esp, 4 */ 2674 _flag_k = FK_ADD; 2675 ecx = esi; /* 0x47022982: mov ecx, esi */ 2676 MEM32(esp + 0x10) = esi; /* 0x47022984: mov dword ptr [esp + 0x10], esi */ 2677 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47022988: call dword ptr [eax + 4] */ 2678 RECOMP_FLAGS_IN(); 2679 ecx = esp + 0x10; /* 0x4702298B: lea ecx, [esp + 0x10] */ 2680 /* cmp ebp, ecx */ /* 0x4702298F: cmp ebp, ecx */ 2681 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ecx); 2682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2683 _flag_k = FK_CMP; 2684 MEM8(esp + 0x20) = (uint8_t)(1); /* 0x47022991: mov byte ptr [esp + 0x20], 1 */ 2685 if (CMP_EQ(_flag_a, _flag_b)) goto L_470229AE; /* 0x47022996: je 0x470229ae */ 2686 L_47022998: 2687 ecx = MEM32(ebp); /* 0x47022998: mov ecx, dword ptr [ebp] */ 2688 /* cmp ecx, ebx */ /* 0x4702299B: cmp ecx, ebx */ 2689 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2691 _flag_k = FK_CMP; 2692 if (CMP_EQ(_flag_a, _flag_b)) goto L_470229A4; /* 0x4702299D: je 0x470229a4 */ 2693 L_4702299F: 2694 edx = MEM32(ecx); /* 0x4702299F: mov edx, dword ptr [ecx] */ 2695 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470229A1: call dword ptr [edx + 8] */ 2696 RECOMP_FLAGS_IN(); 2697 L_470229A4: 2698 MEM32(ebp) = esi; /* 0x470229A4: mov dword ptr [ebp], esi */ 2699 eax = MEM32(esi); /* 0x470229A7: mov eax, dword ptr [esi] */ 2700 ecx = esi; /* 0x470229A9: mov ecx, esi */ 2701 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470229AB: call dword ptr [eax + 4] */ 2702 RECOMP_FLAGS_IN(); 2703 L_470229AE: 2704 edx = MEM32(esi); /* 0x470229AE: mov edx, dword ptr [esi] */ 2705 ecx = esi; /* 0x470229B0: mov ecx, esi */ 2706 MEM8(esp + 0x20) = (uint8_t)(LO8(ebx)); /* 0x470229B2: mov byte ptr [esp + 0x20], bl */ 2707 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470229B6: call dword ptr [edx + 8] */ 2708 RECOMP_FLAGS_IN(); 2709 L_470229B9: 2710 ecx = MEM32(esp + 0x18); /* 0x470229B9: mov ecx, dword ptr [esp + 0x18] */ 2711 eax = edi; /* 0x470229BD: mov eax, edi */ 2712 edi = POP32_VAL(esp); /* 0x470229BF: pop edi */ 2713 esi = POP32_VAL(esp); /* 0x470229C0: pop esi */ 2714 ebp = POP32_VAL(esp); /* 0x470229C1: pop ebp */ 2715 ebx = POP32_VAL(esp); /* 0x470229C2: pop ebx */ 2716 MEM32(FS_BASE + (0)) = ecx; /* 0x470229C3: mov dword ptr fs:[0], ecx */ 2717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2719 esp = esp + 0x14u; /* 0x470229CA: add esp, 0x14 */ 2720 _flag_k = FK_ADD; 2721 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470229CD: ret */ 2722 L_470229CE: 2723 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470229CE: call dword ptr [0x470ac3c8] */ 2724 RECOMP_FLAGS_IN(); 2725 MEM32(eax) = 0xCu; /* 0x470229D4: mov dword ptr [eax], 0xc */ 2726 RECOMP_BACKEDGE(); 2727 goto L_470229B9; /* 0x470229DA: jmp 0x470229b9 */ 2728 { RECOMP_REGS_OUT(); return; } /* end of function */ 2729 RECOMP_REGS_OUT(); 2730 } 2731 2732 void sub_470229E0(void) { 2733 int _fpu_cmp = 0; 2734 uint32_t _cf = 0; 2735 int _df = 1; 2736 uint32_t _flag_k = FK_NONE; 2737 uint32_t _flag_a = 0, _flag_b = 0; 2738 uint32_t _itail_tgt = 0; 2739 RECOMP_REGS_LOCALS 2740 RECOMP_ENTER(0x470229E0u); 2741 2742 L_470229E0: 2743 PUSH32(esp, ebx); /* 0x470229E0: push ebx */ 2744 SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470229E1: mov bl, byte ptr [esp + 8] */ 2745 /* test LO8(ebx), 2 */ /* 0x470229E5: test bl, 2 */ 2746 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 2747 _cf = 0; 2748 _flag_k = FK_NARROW(FK_TEST, 24); 2749 PUSH32(esp, esi); /* 0x470229E8: push esi */ 2750 esi = ecx; /* 0x470229E9: mov esi, ecx */ 2751 if (TEST_Z(_flag_a, _flag_b)) goto L_47022A18; /* 0x470229EB: je 0x47022a18 */ 2752 L_470229ED: 2753 eax = MEM32(esi + (-0x4)); /* 0x470229ED: mov eax, dword ptr [esi - 4] */ 2754 PUSH32(esp, edi); /* 0x470229F0: push edi */ 2755 PUSH32(esp, 0x47022A40u); /* 0x470229F1: push 0x47022a40 */ 2756 edi = esi + (-0x4); /* 0x470229F6: lea edi, [esi - 4] */ 2757 PUSH32(esp, eax); /* 0x470229F9: push eax */ 2758 PUSH32(esp, 0x14u); /* 0x470229FA: push 0x14 */ 2759 PUSH32(esp, esi); /* 0x470229FC: push esi */ 2760 RECOMP_ICALL(0x470A32EBu); /* 0x470229FD: call 0x470a32eb */ /* not lifted */ 2761 RECOMP_FLAGS_IN(); 2762 /* test LO8(ebx), 1 */ /* 0x47022A02: test bl, 1 */ 2763 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2764 _cf = 0; 2765 _flag_k = FK_NARROW(FK_TEST, 24); 2766 if (TEST_Z(_flag_a, _flag_b)) goto L_47022A10; /* 0x47022A05: je 0x47022a10 */ 2767 L_47022A07: 2768 PUSH32(esp, edi); /* 0x47022A07: push edi */ 2769 RECOMP_ICALL(0x470A32A2u); /* 0x47022A08: call 0x470a32a2 */ /* not lifted */ 2770 RECOMP_FLAGS_IN(); 2771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2773 esp = esp + 4; /* 0x47022A0D: add esp, 4 */ 2774 _flag_k = FK_ADD; 2775 L_47022A10: 2776 eax = edi; /* 0x47022A10: mov eax, edi */ 2777 edi = POP32_VAL(esp); /* 0x47022A12: pop edi */ 2778 esi = POP32_VAL(esp); /* 0x47022A13: pop esi */ 2779 ebx = POP32_VAL(esp); /* 0x47022A14: pop ebx */ 2780 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022A15: ret 4 */ 2781 L_47022A18: 2782 ecx = esi; /* 0x47022A18: mov ecx, esi */ 2783 RECOMP_ICALL(0x47022A40u); /* 0x47022A1A: call 0x47022a40 */ /* not lifted */ 2784 RECOMP_FLAGS_IN(); 2785 /* test LO8(ebx), 1 */ /* 0x47022A1F: test bl, 1 */ 2786 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 2787 _cf = 0; 2788 _flag_k = FK_NARROW(FK_TEST, 24); 2789 if (TEST_Z(_flag_a, _flag_b)) goto L_47022A2D; /* 0x47022A22: je 0x47022a2d */ 2790 L_47022A24: 2791 PUSH32(esp, esi); /* 0x47022A24: push esi */ 2792 RECOMP_ICALL(0x470A32A2u); /* 0x47022A25: call 0x470a32a2 */ /* not lifted */ 2793 RECOMP_FLAGS_IN(); 2794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2795 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2796 esp = esp + 4; /* 0x47022A2A: add esp, 4 */ 2797 _flag_k = FK_ADD; 2798 L_47022A2D: 2799 eax = esi; /* 0x47022A2D: mov eax, esi */ 2800 esi = POP32_VAL(esp); /* 0x47022A2F: pop esi */ 2801 ebx = POP32_VAL(esp); /* 0x47022A30: pop ebx */ 2802 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022A31: ret 4 */ 2803 RECOMP_REGS_OUT(); 2804 } 2805 2806 void sub_47022A40(void) { 2807 int _fpu_cmp = 0; 2808 uint32_t _cf = 0; 2809 int _df = 1; 2810 uint32_t _flag_k = FK_NONE; 2811 uint32_t _flag_a = 0, _flag_b = 0; 2812 uint32_t _itail_tgt = 0; 2813 RECOMP_REGS_LOCALS 2814 RECOMP_ENTER(0x47022A40u); 2815 2816 L_47022A40: 2817 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022A40: push -1 */ 2818 PUSH32(esp, 0x470A46D8u); /* 0x47022A42: push 0x470a46d8 */ 2819 eax = MEM32(FS_BASE + (0)); /* 0x47022A47: mov eax, dword ptr fs:[0] */ 2820 PUSH32(esp, eax); /* 0x47022A4D: push eax */ 2821 MEM32(FS_BASE + (0)) = esp; /* 0x47022A4E: mov dword ptr fs:[0], esp */ 2822 PUSH32(esp, ecx); /* 0x47022A55: push ecx */ 2823 PUSH32(esp, esi); /* 0x47022A56: push esi */ 2824 esi = ecx; /* 0x47022A57: mov esi, ecx */ 2825 MEM32(esp + 0x4) = esi; /* 0x47022A59: mov dword ptr [esp + 4], esi */ 2826 MEM32(esi) = 0x470ACFE8u; /* 0x47022A5D: mov dword ptr [esi], 0x470acfe8 */ 2827 ecx = MEM32(esi + 0x8); /* 0x47022A63: mov ecx, dword ptr [esi + 8] */ 2828 /* test ecx, ecx */ /* 0x47022A66: test ecx, ecx */ 2829 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2830 _cf = 0; 2831 _flag_k = FK_TEST; 2832 MEM32(esp + 0x10) = 0; /* 0x47022A68: mov dword ptr [esp + 0x10], 0 */ 2833 if (TEST_Z(_flag_a, _flag_b)) goto L_47022A7B; /* 0x47022A70: je 0x47022a7b */ 2834 L_47022A72: 2835 eax = MEM32(ecx); /* 0x47022A72: mov eax, dword ptr [ecx] */ 2836 PUSH32(esp, 0); /* 0x47022A74: push 0 */ 2837 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022A76: push -1 */ 2838 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47022A78: call dword ptr [eax + 0x30] */ 2839 RECOMP_FLAGS_IN(); 2840 L_47022A7B: 2841 ecx = MEM32(esi + 0x8); /* 0x47022A7B: mov ecx, dword ptr [esi + 8] */ 2842 /* test ecx, ecx */ /* 0x47022A7E: test ecx, ecx */ 2843 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2844 _cf = 0; 2845 _flag_k = FK_TEST; 2846 if (TEST_Z(_flag_a, _flag_b)) goto L_47022A88; /* 0x47022A80: je 0x47022a88 */ 2847 L_47022A82: 2848 edx = MEM32(ecx); /* 0x47022A82: mov edx, dword ptr [ecx] */ 2849 PUSH32(esp, 1); /* 0x47022A84: push 1 */ 2850 RECOMP_ICALL(MEM32(edx)); /* 0x47022A86: call dword ptr [edx] */ 2851 RECOMP_FLAGS_IN(); 2852 L_47022A88: 2853 MEM32(esi) = 0x470ACF68u; /* 0x47022A88: mov dword ptr [esi], 0x470acf68 */ 2854 ecx = MEM32(esi + 0x4); /* 0x47022A8E: mov ecx, dword ptr [esi + 4] */ 2855 /* test ecx, ecx */ /* 0x47022A91: test ecx, ecx */ 2856 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2857 _cf = 0; 2858 _flag_k = FK_TEST; 2859 MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47022A93: mov dword ptr [esp + 0x10], 0xffffffff */ 2860 esi = POP32_VAL(esp); /* 0x47022A9B: pop esi */ 2861 if (TEST_Z(_flag_a, _flag_b)) goto L_47022AA3; /* 0x47022A9C: je 0x47022aa3 */ 2862 L_47022A9E: 2863 eax = MEM32(ecx); /* 0x47022A9E: mov eax, dword ptr [ecx] */ 2864 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47022AA0: call dword ptr [eax + 8] */ 2865 RECOMP_FLAGS_IN(); 2866 L_47022AA3: 2867 ecx = MEM32(esp + 0x4); /* 0x47022AA3: mov ecx, dword ptr [esp + 4] */ 2868 MEM32(FS_BASE + (0)) = ecx; /* 0x47022AA7: mov dword ptr fs:[0], ecx */ 2869 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2871 esp = esp + 0x10u; /* 0x47022AAE: add esp, 0x10 */ 2872 _flag_k = FK_ADD; 2873 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022AB1: ret */ 2874 RECOMP_REGS_OUT(); 2875 } 2876 2877 void sub_47022AC0(void) { 2878 int _fpu_cmp = 0; 2879 uint32_t _cf = 0; 2880 int _df = 1; 2881 uint32_t _flag_k = FK_NONE; 2882 uint32_t _flag_a = 0, _flag_b = 0; 2883 uint32_t _itail_tgt = 0; 2884 RECOMP_REGS_LOCALS 2885 RECOMP_ENTER(0x47022AC0u); 2886 2887 L_47022AC0: 2888 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022AC0: push -1 */ 2889 PUSH32(esp, 0x470A4721u); /* 0x47022AC2: push 0x470a4721 */ 2890 eax = MEM32(FS_BASE + (0)); /* 0x47022AC7: mov eax, dword ptr fs:[0] */ 2891 PUSH32(esp, eax); /* 0x47022ACD: push eax */ 2892 MEM32(FS_BASE + (0)) = esp; /* 0x47022ACE: mov dword ptr fs:[0], esp */ 2893 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2895 esp = esp - 0x18u; /* 0x47022AD5: sub esp, 0x18 */ 2896 _flag_k = FK_CMP; 2897 eax = MEM32(esp + 0x28); /* 0x47022AD8: mov eax, dword ptr [esp + 0x28] */ 2898 PUSH32(esp, ebp); /* 0x47022ADC: push ebp */ 2899 PUSH32(esp, esi); /* 0x47022ADD: push esi */ 2900 esi = ecx; /* 0x47022ADE: mov esi, ecx */ 2901 PUSH32(esp, 0x34u); /* 0x47022AE0: push 0x34 */ 2902 MEM32(esp + 0x10) = esi; /* 0x47022AE2: mov dword ptr [esp + 0x10], esi */ 2903 MEM32(esi + 0x10) = eax; /* 0x47022AE6: mov dword ptr [esi + 0x10], eax */ 2904 RECOMP_ICALL(0x470A33F2u); /* 0x47022AE9: call 0x470a33f2 */ /* not lifted */ 2905 RECOMP_FLAGS_IN(); 2906 ebp = eax; /* 0x47022AEE: mov ebp, eax */ 2907 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2908 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2909 esp = esp + 4; /* 0x47022AF0: add esp, 4 */ 2910 _flag_k = FK_ADD; 2911 MEM32(esp + 0x10) = ebp; /* 0x47022AF3: mov dword ptr [esp + 0x10], ebp */ 2912 /* test ebp, ebp */ /* 0x47022AF7: test ebp, ebp */ 2913 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 2914 _cf = 0; 2915 _flag_k = FK_TEST; 2916 MEM32(esp + 0x28) = 0; /* 0x47022AF9: mov dword ptr [esp + 0x28], 0 */ 2917 if (TEST_Z(_flag_a, _flag_b)) goto L_47022CEA; /* 0x47022B01: je 0x47022cea */ 2918 L_47022B07: 2919 PUSH32(esp, ebx); /* 0x47022B07: push ebx */ 2920 PUSH32(esp, edi); /* 0x47022B08: push edi */ 2921 ecx = ebp; /* 0x47022B09: mov ecx, ebp */ 2922 RECOMP_ICALL(0x4703DCB0u); /* 0x47022B0B: call 0x4703dcb0 */ /* not lifted */ 2923 RECOMP_FLAGS_IN(); 2924 esi = ebp + 0x4; /* 0x47022B10: lea esi, [ebp + 4] */ 2925 PUSH32(esp, 0); /* 0x47022B13: push 0 */ 2926 edi = esi + 0x4; /* 0x47022B15: lea edi, [esi + 4] */ 2927 PUSH32(esp, 0); /* 0x47022B18: push 0 */ 2928 ecx = edi; /* 0x47022B1A: mov ecx, edi */ 2929 MEM8(esp + 0x38) = (uint8_t)(1); /* 0x47022B1C: mov byte ptr [esp + 0x38], 1 */ 2930 MEM32(esp + 0x24) = esi; /* 0x47022B21: mov dword ptr [esp + 0x24], esi */ 2931 RECOMP_ICALL(0x47042980u); /* 0x47022B25: call 0x47042980 */ /* not lifted */ 2932 RECOMP_FLAGS_IN(); 2933 PUSH32(esp, 0); /* 0x47022B2A: push 0 */ 2934 ebx = esi + 0x14; /* 0x47022B2C: lea ebx, [esi + 0x14] */ 2935 PUSH32(esp, 0); /* 0x47022B2F: push 0 */ 2936 ecx = ebx; /* 0x47022B31: mov ecx, ebx */ 2937 MEM8(esp + 0x38) = (uint8_t)(2); /* 0x47022B33: mov byte ptr [esp + 0x38], 2 */ 2938 RECOMP_ICALL(0x47087E50u); /* 0x47022B38: call 0x47087e50 */ /* not lifted */ 2939 RECOMP_FLAGS_IN(); 2940 PUSH32(esp, ebx); /* 0x47022B3D: push ebx */ 2941 MEM32(esp + 0x24) = ebx; /* 0x47022B3E: mov dword ptr [esp + 0x24], ebx */ 2942 MEM32(esp + 0x28) = 0; /* 0x47022B42: mov dword ptr [esp + 0x28], 0 */ 2943 RECOMP_ICALL(MEM32(0x470AC180)); /* 0x47022B4A: call dword ptr [0x470ac180] */ 2944 RECOMP_FLAGS_IN(); 2945 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2946 ebx = 0; /* 0x47022B50: xor ebx, ebx */ 2947 _cf = 0; 2948 _flag_k = FK_TEST; 2949 MEM32(esp + 0x24) = ebx; /* 0x47022B52: mov dword ptr [esp + 0x24], ebx */ 2950 edx = MEM32(edi); /* 0x47022B56: mov edx, dword ptr [edi] */ 2951 eax = esp + 0x10; /* 0x47022B58: lea eax, [esp + 0x10] */ 2952 PUSH32(esp, eax); /* 0x47022B5C: push eax */ 2953 ecx = esp + 0x3C; /* 0x47022B5D: lea ecx, [esp + 0x3c] */ 2954 PUSH32(esp, ecx); /* 0x47022B61: push ecx */ 2955 PUSH32(esp, 0x11Cu); /* 0x47022B62: push 0x11c */ 2956 ecx = edi; /* 0x47022B67: mov ecx, edi */ 2957 MEM8(esp + 0x3C) = (uint8_t)(4); /* 0x47022B69: mov byte ptr [esp + 0x3c], 4 */ 2958 MEM32(esp + 0x44) = ebx; /* 0x47022B6E: mov dword ptr [esp + 0x44], ebx */ 2959 MEM32(esp + 0x1C) = ebx; /* 0x47022B72: mov dword ptr [esp + 0x1c], ebx */ 2960 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47022B76: call dword ptr [edx + 4] */ 2961 RECOMP_FLAGS_IN(); 2962 /* cmp eax, ebx */ /* 0x47022B79: cmp eax, ebx */ 2963 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2965 _flag_k = FK_CMP; 2966 MEM32(esi) = eax; /* 0x47022B7B: mov dword ptr [esi], eax */ 2967 if (CMP_NE(_flag_a, _flag_b)) goto L_47022C67; /* 0x47022B7D: jne 0x47022c67 */ 2968 L_47022B83: 2969 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47022B83: call dword ptr [0x470ac150] */ 2970 RECOMP_FLAGS_IN(); 2971 edi = eax; /* 0x47022B89: mov edi, eax */ 2972 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022B8B: call dword ptr [0x470ac3c8] */ 2973 RECOMP_FLAGS_IN(); 2974 eax = MEM32(eax); /* 0x47022B91: mov eax, dword ptr [eax] */ 2975 /* cmp eax, ebx */ /* 0x47022B93: cmp eax, ebx */ 2976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2978 _flag_k = FK_CMP; 2979 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022B99; /* 0x47022B95: je 0x47022b99 */ 2980 L_47022B97: 2981 edi = eax; /* 0x47022B97: mov edi, eax */ 2982 L_47022B99: 2983 RECOMP_ICALL(0x47039020u); /* 0x47022B99: call 0x47039020 */ /* not lifted */ 2984 RECOMP_FLAGS_IN(); 2985 esi = eax; /* 0x47022B9E: mov esi, eax */ 2986 ecx = esi; /* 0x47022BA0: mov ecx, esi */ 2987 RECOMP_ICALL(0x4703B210u); /* 0x47022BA2: call 0x4703b210 */ /* not lifted */ 2988 RECOMP_FLAGS_IN(); 2989 PUSH32(esp, eax); /* 0x47022BA7: push eax */ 2990 ecx = esi; /* 0x47022BA8: mov ecx, esi */ 2991 RECOMP_ICALL(0x4703B240u); /* 0x47022BAA: call 0x4703b240 */ /* not lifted */ 2992 RECOMP_FLAGS_IN(); 2993 PUSH32(esp, eax); /* 0x47022BAF: push eax */ 2994 ecx = esi; /* 0x47022BB0: mov ecx, esi */ 2995 RECOMP_ICALL(0x4703B080u); /* 0x47022BB2: call 0x4703b080 */ /* not lifted */ 2996 RECOMP_FLAGS_IN(); 2997 PUSH32(esp, eax); /* 0x47022BB7: push eax */ 2998 PUSH32(esp, edi); /* 0x47022BB8: push edi */ 2999 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022BB9: push -1 */ 3000 PUSH32(esp, 0x9Du); /* 0x47022BBB: push 0x9d */ 3001 PUSH32(esp, 0x47105B2Cu); /* 0x47022BC0: push 0x47105b2c */ 3002 ecx = esi; /* 0x47022BC5: mov ecx, esi */ 3003 RECOMP_ICALL(0x4703A340u); /* 0x47022BC7: call 0x4703a340 */ /* not lifted */ 3004 RECOMP_FLAGS_IN(); 3005 PUSH32(esp, 0x47105B18u); /* 0x47022BCC: push 0x47105b18 */ 3006 PUSH32(esp, 0x47105B0Cu); /* 0x47022BD1: push 0x47105b0c */ 3007 PUSH32(esp, 0x80u); /* 0x47022BD6: push 0x80 */ 3008 PUSH32(esp, esi); /* 0x47022BDB: push esi */ 3009 RECOMP_ICALL(0x47039830u); /* 0x47022BDC: call 0x47039830 */ /* not lifted */ 3010 RECOMP_FLAGS_IN(); 3011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3013 esp = esp + 0x10u; /* 0x47022BE1: add esp, 0x10 */ 3014 _flag_k = FK_ADD; 3015 ecx = esp + 0x20; /* 0x47022BE4: lea ecx, [esp + 0x20] */ 3016 MEM8(esp + 0x30) = (uint8_t)(3); /* 0x47022BE8: mov byte ptr [esp + 0x30], 3 */ 3017 RECOMP_ICALL(0x470559D0u); /* 0x47022BED: call 0x470559d0 */ /* not lifted */ 3018 RECOMP_FLAGS_IN(); 3019 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47022BF2: call dword ptr [0x470ac150] */ 3020 RECOMP_FLAGS_IN(); 3021 edi = eax; /* 0x47022BF8: mov edi, eax */ 3022 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022BFA: call dword ptr [0x470ac3c8] */ 3023 RECOMP_FLAGS_IN(); 3024 eax = MEM32(eax); /* 0x47022C00: mov eax, dword ptr [eax] */ 3025 /* cmp eax, ebx */ /* 0x47022C02: cmp eax, ebx */ 3026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3028 _flag_k = FK_CMP; 3029 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022C08; /* 0x47022C04: je 0x47022c08 */ 3030 L_47022C06: 3031 edi = eax; /* 0x47022C06: mov edi, eax */ 3032 L_47022C08: 3033 RECOMP_ICALL(0x47039020u); /* 0x47022C08: call 0x47039020 */ /* not lifted */ 3034 RECOMP_FLAGS_IN(); 3035 esi = eax; /* 0x47022C0D: mov esi, eax */ 3036 ecx = esi; /* 0x47022C0F: mov ecx, esi */ 3037 RECOMP_ICALL(0x4703B210u); /* 0x47022C11: call 0x4703b210 */ /* not lifted */ 3038 RECOMP_FLAGS_IN(); 3039 PUSH32(esp, eax); /* 0x47022C16: push eax */ 3040 ecx = esi; /* 0x47022C17: mov ecx, esi */ 3041 RECOMP_ICALL(0x4703B240u); /* 0x47022C19: call 0x4703b240 */ /* not lifted */ 3042 RECOMP_FLAGS_IN(); 3043 PUSH32(esp, eax); /* 0x47022C1E: push eax */ 3044 ecx = esi; /* 0x47022C1F: mov ecx, esi */ 3045 RECOMP_ICALL(0x4703B080u); /* 0x47022C21: call 0x4703b080 */ /* not lifted */ 3046 RECOMP_FLAGS_IN(); 3047 PUSH32(esp, eax); /* 0x47022C26: push eax */ 3048 PUSH32(esp, edi); /* 0x47022C27: push edi */ 3049 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022C28: push -1 */ 3050 PUSH32(esp, 0xE4u); /* 0x47022C2A: push 0xe4 */ 3051 PUSH32(esp, 0x47105B2Cu); /* 0x47022C2F: push 0x47105b2c */ 3052 ecx = esi; /* 0x47022C34: mov ecx, esi */ 3053 RECOMP_ICALL(0x4703A340u); /* 0x47022C36: call 0x4703a340 */ /* not lifted */ 3054 RECOMP_FLAGS_IN(); 3055 PUSH32(esp, 0x47105ACCu); /* 0x47022C3B: push 0x47105acc */ 3056 PUSH32(esp, 0x471055F0u); /* 0x47022C40: push 0x471055f0 */ 3057 PUSH32(esp, 0x80u); /* 0x47022C45: push 0x80 */ 3058 PUSH32(esp, esi); /* 0x47022C4A: push esi */ 3059 RECOMP_ICALL(0x47039830u); /* 0x47022C4B: call 0x47039830 */ /* not lifted */ 3060 RECOMP_FLAGS_IN(); 3061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3063 esp = esp + 0x10u; /* 0x47022C50: add esp, 0x10 */ 3064 _flag_k = FK_ADD; 3065 L_47022C53: 3066 esi = MEM32(esp + 0x14); /* 0x47022C53: mov esi, dword ptr [esp + 0x14] */ 3067 edi = POP32_VAL(esp); /* 0x47022C57: pop edi */ 3068 MEM32(ebp) = 0x470AD01Cu; /* 0x47022C58: mov dword ptr [ebp], 0x470ad01c */ 3069 eax = ebp; /* 0x47022C5F: mov eax, ebp */ 3070 ebx = POP32_VAL(esp); /* 0x47022C61: pop ebx */ 3071 goto L_47022CEC; /* 0x47022C62: jmp 0x47022cec */ 3072 L_47022C67: 3073 /* cmp MEM32(esp + 0x10), ebx */ /* 0x47022C67: cmp dword ptr [esp + 0x10], ebx */ 3074 _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(ebx); 3075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3076 _flag_k = FK_CMP; 3077 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022CBF; /* 0x47022C6B: je 0x47022cbf */ 3078 L_47022C6D: 3079 ecx = eax + 0x110; /* 0x47022C6D: lea ecx, [eax + 0x110] */ 3080 MEM32(eax + 0x4) = ecx; /* 0x47022C73: mov dword ptr [eax + 4], ecx */ 3081 edx = MEM32(esi); /* 0x47022C76: mov edx, dword ptr [esi] */ 3082 eax = MEM32(edx + 0x4); /* 0x47022C78: mov eax, dword ptr [edx + 4] */ 3083 MEM32(eax) = eax; /* 0x47022C7B: mov dword ptr [eax], eax */ 3084 eax = MEM32(esi); /* 0x47022C7D: mov eax, dword ptr [esi] */ 3085 MEM32(eax) = ebx; /* 0x47022C7F: mov dword ptr [eax], ebx */ 3086 eax = MEM32(esi); /* 0x47022C81: mov eax, dword ptr [esi] */ 3087 ecx = MEM32(eax + 0x4); /* 0x47022C83: mov ecx, dword ptr [eax + 4] */ 3088 MEM32(ecx + 0x4) = ebx; /* 0x47022C86: mov dword ptr [ecx + 4], ebx */ 3089 /* cmp MEM32(esp + 0x38), 0x128u */ /* 0x47022C89: cmp dword ptr [esp + 0x38], 0x128 */ 3090 _flag_a = (uint32_t)(MEM32(esp + 0x38)); _flag_b = (uint32_t)(0x128u); 3091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3092 _flag_k = FK_CMP; 3093 if (CMP_BE(_flag_a, _flag_b)) goto L_47022CBF; /* 0x47022C91: jbe 0x47022cbf */ 3094 L_47022C93: 3095 edx = MEM32(esi); /* 0x47022C93: mov edx, dword ptr [esi] */ 3096 ecx = MEM32(edx + 0x4); /* 0x47022C95: mov ecx, dword ptr [edx + 4] */ 3097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3098 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3099 ecx = ecx + 0xCu; /* 0x47022C98: add ecx, 0xc */ 3100 _flag_k = FK_ADD; 3101 MEM32(ecx) = ebx; /* 0x47022C9B: mov dword ptr [ecx], ebx */ 3102 eax = MEM32(esp + 0x38); /* 0x47022C9D: mov eax, dword ptr [esp + 0x38] */ 3103 edx = eax + (-0x11C); /* 0x47022CA1: lea edx, [eax - 0x11c] */ 3104 eax = 0xAAAAAAABu; /* 0x47022CA7: mov eax, 0xaaaaaaab */ 3105 { uint64_t _r = (uint64_t)eax * (uint32_t)(edx); /* 0x47022CAC: mul edx */ 3106 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = edx != 0; 3107 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3108 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x47022CAE: shr edx, 3 */ 3109 if (3u) { _flag_a = recomp_flags_pack((edx >> 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3110 edx = edx >> 3u; /* 0x47022CAE: shr edx, 3 */ 3111 MEM32(ecx + 0x4) = edx; /* 0x47022CB1: mov dword ptr [ecx + 4], edx */ 3112 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3114 ecx = ecx + 0xCu; /* 0x47022CB4: add ecx, 0xc */ 3115 _flag_k = FK_ADD; 3116 PUSH32(esp, ecx); /* 0x47022CB7: push ecx */ 3117 ecx = esi; /* 0x47022CB8: mov ecx, esi */ 3118 RECOMP_ICALL(0x47027C80u); /* 0x47022CBA: call 0x47027c80 */ /* not lifted */ 3119 RECOMP_FLAGS_IN(); 3120 L_47022CBF: 3121 /* cmp MEM32(esp + 0x24), 0xFFFFFFFFu */ /* 0x47022CBF: cmp dword ptr [esp + 0x24], -1 */ 3122 _flag_a = (uint32_t)(MEM32(esp + 0x24)); _flag_b = (uint32_t)(0xFFFFFFFFu); 3123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3124 _flag_k = FK_CMP; 3125 RECOMP_BACKEDGE(); 3126 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022C53; /* 0x47022CC4: je 0x47022c53 */ 3127 L_47022CC6: 3128 eax = MEM32(esp + 0x20); /* 0x47022CC6: mov eax, dword ptr [esp + 0x20] */ 3129 PUSH32(esp, eax); /* 0x47022CCA: push eax */ 3130 MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47022CCB: mov dword ptr [esp + 0x28], 0xffffffff */ 3131 RECOMP_ICALL(MEM32(0x470AC190)); /* 0x47022CD3: call dword ptr [0x470ac190] */ 3132 RECOMP_FLAGS_IN(); 3133 esi = MEM32(esp + 0x14); /* 0x47022CD9: mov esi, dword ptr [esp + 0x14] */ 3134 edi = POP32_VAL(esp); /* 0x47022CDD: pop edi */ 3135 MEM32(ebp) = 0x470AD01Cu; /* 0x47022CDE: mov dword ptr [ebp], 0x470ad01c */ 3136 eax = ebp; /* 0x47022CE5: mov eax, ebp */ 3137 ebx = POP32_VAL(esp); /* 0x47022CE7: pop ebx */ 3138 goto L_47022CEC; /* 0x47022CE8: jmp 0x47022cec */ 3139 L_47022CEA: 3140 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3141 eax = 0; /* 0x47022CEA: xor eax, eax */ 3142 _cf = 0; 3143 _flag_k = FK_TEST; 3144 L_47022CEC: 3145 /* test eax, eax */ /* 0x47022CEC: test eax, eax */ 3146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3147 _cf = 0; 3148 _flag_k = FK_TEST; 3149 MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47022CEE: mov dword ptr [esp + 0x28], 0xffffffff */ 3150 MEM32(esi + 0x8) = eax; /* 0x47022CF6: mov dword ptr [esi + 8], eax */ 3151 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022D1D; /* 0x47022CF9: jne 0x47022d1d */ 3152 L_47022CFB: 3153 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022CFB: call dword ptr [0x470ac3c8] */ 3154 RECOMP_FLAGS_IN(); 3155 esi = POP32_VAL(esp); /* 0x47022D01: pop esi */ 3156 MEM32(eax) = 0xCu; /* 0x47022D02: mov dword ptr [eax], 0xc */ 3157 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3158 eax = eax | 0xFFFFFFFFu; /* 0x47022D08: or eax, 0xffffffff */ 3159 _cf = 0; 3160 _flag_k = FK_TEST; 3161 ebp = POP32_VAL(esp); /* 0x47022D0B: pop ebp */ 3162 ecx = MEM32(esp + 0x18); /* 0x47022D0C: mov ecx, dword ptr [esp + 0x18] */ 3163 MEM32(FS_BASE + (0)) = ecx; /* 0x47022D10: mov dword ptr fs:[0], ecx */ 3164 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3166 esp = esp + 0x24u; /* 0x47022D17: add esp, 0x24 */ 3167 _flag_k = FK_ADD; 3168 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022D1A: ret 4 */ 3169 L_47022D1D: 3170 ecx = esi; /* 0x47022D1D: mov ecx, esi */ 3171 RECOMP_ICALL(0x47022F40u); /* 0x47022D1F: call 0x47022f40 */ /* not lifted */ 3172 RECOMP_FLAGS_IN(); 3173 ecx = MEM32(esp + 0x20); /* 0x47022D24: mov ecx, dword ptr [esp + 0x20] */ 3174 esi = POP32_VAL(esp); /* 0x47022D28: pop esi */ 3175 ebp = POP32_VAL(esp); /* 0x47022D29: pop ebp */ 3176 MEM32(FS_BASE + (0)) = ecx; /* 0x47022D2A: mov dword ptr fs:[0], ecx */ 3177 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3178 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3179 esp = esp + 0x24u; /* 0x47022D31: add esp, 0x24 */ 3180 _flag_k = FK_ADD; 3181 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022D34: ret 4 */ 3182 RECOMP_REGS_OUT(); 3183 } 3184 3185 void sub_47022CEC(void) { 3186 int _fpu_cmp = 0; 3187 uint32_t _cf = 0; 3188 int _df = 1; 3189 uint32_t _flag_k = FK_NONE; 3190 uint32_t _flag_a = 0, _flag_b = 0; 3191 uint32_t _itail_tgt = 0; 3192 RECOMP_REGS_LOCALS 3193 RECOMP_ENTER(0x47022CECu); 3194 3195 L_47022CEC: 3196 /* test eax, eax */ /* 0x47022CEC: test eax, eax */ 3197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3198 _cf = 0; 3199 _flag_k = FK_TEST; 3200 MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47022CEE: mov dword ptr [esp + 0x28], 0xffffffff */ 3201 MEM32(esi + 0x8) = eax; /* 0x47022CF6: mov dword ptr [esi + 8], eax */ 3202 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022D1D; /* 0x47022CF9: jne 0x47022d1d */ 3203 L_47022CFB: 3204 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022CFB: call dword ptr [0x470ac3c8] */ 3205 RECOMP_FLAGS_IN(); 3206 esi = POP32_VAL(esp); /* 0x47022D01: pop esi */ 3207 MEM32(eax) = 0xCu; /* 0x47022D02: mov dword ptr [eax], 0xc */ 3208 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3209 eax = eax | 0xFFFFFFFFu; /* 0x47022D08: or eax, 0xffffffff */ 3210 _cf = 0; 3211 _flag_k = FK_TEST; 3212 ebp = POP32_VAL(esp); /* 0x47022D0B: pop ebp */ 3213 ecx = MEM32(esp + 0x18); /* 0x47022D0C: mov ecx, dword ptr [esp + 0x18] */ 3214 MEM32(FS_BASE + (0)) = ecx; /* 0x47022D10: mov dword ptr fs:[0], ecx */ 3215 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3217 esp = esp + 0x24u; /* 0x47022D17: add esp, 0x24 */ 3218 _flag_k = FK_ADD; 3219 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022D1A: ret 4 */ 3220 L_47022D1D: 3221 ecx = esi; /* 0x47022D1D: mov ecx, esi */ 3222 RECOMP_ICALL(0x47022F40u); /* 0x47022D1F: call 0x47022f40 */ /* not lifted */ 3223 RECOMP_FLAGS_IN(); 3224 ecx = MEM32(esp + 0x20); /* 0x47022D24: mov ecx, dword ptr [esp + 0x20] */ 3225 esi = POP32_VAL(esp); /* 0x47022D28: pop esi */ 3226 ebp = POP32_VAL(esp); /* 0x47022D29: pop ebp */ 3227 MEM32(FS_BASE + (0)) = ecx; /* 0x47022D2A: mov dword ptr fs:[0], ecx */ 3228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 3229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3230 esp = esp + 0x24u; /* 0x47022D31: add esp, 0x24 */ 3231 _flag_k = FK_ADD; 3232 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47022D34: ret 4 */ 3233 RECOMP_REGS_OUT(); 3234 } 3235 3236 void sub_47022D40(void) { 3237 int _fpu_cmp = 0; 3238 uint32_t _cf = 0; 3239 int _df = 1; 3240 uint32_t _flag_k = FK_NONE; 3241 uint32_t _flag_a = 0, _flag_b = 0; 3242 uint32_t _itail_tgt = 0; 3243 RECOMP_REGS_LOCALS 3244 RECOMP_ENTER(0x47022D40u); 3245 3246 L_47022D40: 3247 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022D40: push -1 */ 3248 PUSH32(esp, 0x470A475Cu); /* 0x47022D42: push 0x470a475c */ 3249 eax = MEM32(FS_BASE + (0)); /* 0x47022D47: mov eax, dword ptr fs:[0] */ 3250 PUSH32(esp, eax); /* 0x47022D4D: push eax */ 3251 MEM32(FS_BASE + (0)) = esp; /* 0x47022D4E: mov dword ptr fs:[0], esp */ 3252 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3254 esp = esp - 0x20u; /* 0x47022D55: sub esp, 0x20 */ 3255 _flag_k = FK_CMP; 3256 eax = MEM32(esp + 0x38); /* 0x47022D58: mov eax, dword ptr [esp + 0x38] */ 3257 PUSH32(esp, ebx); /* 0x47022D5C: push ebx */ 3258 ebx = ecx; /* 0x47022D5D: mov ebx, ecx */ 3259 PUSH32(esp, ebp); /* 0x47022D5F: push ebp */ 3260 ebp = MEM32(esp + 0x38); /* 0x47022D60: mov ebp, dword ptr [esp + 0x38] */ 3261 PUSH32(esp, esi); /* 0x47022D64: push esi */ 3262 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3263 ecx = ecx | 0xFFFFFFFFu; /* 0x47022D65: or ecx, 0xffffffff */ 3264 _cf = 0; 3265 _flag_k = FK_TEST; 3266 PUSH32(esp, edi); /* 0x47022D68: push edi */ 3267 MEM32(ebx + 0x10) = eax; /* 0x47022D69: mov dword ptr [ebx + 0x10], eax */ 3268 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3269 eax = 0; /* 0x47022D6C: xor eax, eax */ 3270 _cf = 0; 3271 _flag_k = FK_TEST; 3272 edi = ebp; /* 0x47022D6E: mov edi, ebp */ 3273 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; } /* 0x47022D70: repne scasb al, byte ptr es:[edi] */ 3274 ecx = ~ecx; /* 0x47022D72: not ecx */ 3275 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3276 ecx = ecx - 1; /* 0x47022D74: dec ecx */ 3277 _flag_k = FK_DEC; 3278 /* cmp ecx, 0x208u */ /* 0x47022D75: cmp ecx, 0x208 */ 3279 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x208u); 3280 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3281 _flag_k = FK_CMP; 3282 MEM32(esp + 0x10) = ebx; /* 0x47022D7B: mov dword ptr [esp + 0x10], ebx */ 3283 if (CMP_B(_flag_a, _flag_b)) goto L_47022D95; /* 0x47022D7F: jb 0x47022d95 */ 3284 L_47022D81: 3285 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022D81: call dword ptr [0x470ac3c8] */ 3286 RECOMP_FLAGS_IN(); 3287 MEM32(eax) = 0x26u; /* 0x47022D87: mov dword ptr [eax], 0x26 */ 3288 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3289 eax = eax | 0xFFFFFFFFu; /* 0x47022D8D: or eax, 0xffffffff */ 3290 _cf = 0; 3291 _flag_k = FK_TEST; 3292 goto L_47022F1E; /* 0x47022D90: jmp 0x47022f1e */ 3293 L_47022D95: 3294 ecx = MEM32(esp + 0x44); /* 0x47022D95: mov ecx, dword ptr [esp + 0x44] */ 3295 PUSH32(esp, 0); /* 0x47022D99: push 0 */ 3296 PUSH32(esp, 1); /* 0x47022D9B: push 1 */ 3297 PUSH32(esp, 0); /* 0x47022D9D: push 0 */ 3298 PUSH32(esp, 0); /* 0x47022D9F: push 0 */ 3299 PUSH32(esp, 1); /* 0x47022DA1: push 1 */ 3300 PUSH32(esp, 1); /* 0x47022DA3: push 1 */ 3301 PUSH32(esp, ecx); /* 0x47022DA5: push ecx */ 3302 ecx = esp + 0x30; /* 0x47022DA6: lea ecx, [esp + 0x30] */ 3303 RECOMP_ICALL(0x47043560u); /* 0x47022DAA: call 0x47043560 */ /* not lifted */ 3304 RECOMP_FLAGS_IN(); 3305 PUSH32(esp, 0x270u); /* 0x47022DAF: push 0x270 */ 3306 RECOMP_ICALL(0x470A33F2u); /* 0x47022DB4: call 0x470a33f2 */ /* not lifted */ 3307 RECOMP_FLAGS_IN(); 3308 edi = eax; /* 0x47022DB9: mov edi, eax */ 3309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3311 esp = esp + 4; /* 0x47022DBB: add esp, 4 */ 3312 _flag_k = FK_ADD; 3313 MEM32(esp + 0x48) = edi; /* 0x47022DBE: mov dword ptr [esp + 0x48], edi */ 3314 /* test edi, edi */ /* 0x47022DC2: test edi, edi */ 3315 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3316 _cf = 0; 3317 _flag_k = FK_TEST; 3318 MEM32(esp + 0x38) = 0; /* 0x47022DC4: mov dword ptr [esp + 0x38], 0 */ 3319 if (TEST_Z(_flag_a, _flag_b)) goto L_47022E84; /* 0x47022DCC: je 0x47022e84 */ 3320 L_47022DD2: 3321 ecx = edi; /* 0x47022DD2: mov ecx, edi */ 3322 RECOMP_ICALL(0x4703DCB0u); /* 0x47022DD4: call 0x4703dcb0 */ /* not lifted */ 3323 RECOMP_FLAGS_IN(); 3324 edx = esp + 0x14; /* 0x47022DD9: lea edx, [esp + 0x14] */ 3325 esi = edi + 0x4; /* 0x47022DDD: lea esi, [edi + 4] */ 3326 PUSH32(esp, edx); /* 0x47022DE0: push edx */ 3327 PUSH32(esp, ebp); /* 0x47022DE1: push ebp */ 3328 ecx = esi + 0x4; /* 0x47022DE2: lea ecx, [esi + 4] */ 3329 MEM8(esp + 0x40) = (uint8_t)(1); /* 0x47022DE5: mov byte ptr [esp + 0x40], 1 */ 3330 MEM32(esp + 0x48) = esi; /* 0x47022DEA: mov dword ptr [esp + 0x48], esi */ 3331 RECOMP_ICALL(0x47042EA0u); /* 0x47022DEE: call 0x47042ea0 */ /* not lifted */ 3332 RECOMP_FLAGS_IN(); 3333 PUSH32(esp, 0); /* 0x47022DF3: push 0 */ 3334 PUSH32(esp, ebp); /* 0x47022DF5: push ebp */ 3335 ecx = esi + 0x250; /* 0x47022DF6: lea ecx, [esi + 0x250] */ 3336 MEM8(esp + 0x40) = (uint8_t)(2); /* 0x47022DFC: mov byte ptr [esp + 0x40], 2 */ 3337 RECOMP_ICALL(0x47087E50u); /* 0x47022E01: call 0x47087e50 */ /* not lifted */ 3338 RECOMP_FLAGS_IN(); 3339 ecx = esi; /* 0x47022E06: mov ecx, esi */ 3340 MEM8(esp + 0x38) = (uint8_t)(3); /* 0x47022E08: mov byte ptr [esp + 0x38], 3 */ 3341 RECOMP_ICALL(0x47027D60u); /* 0x47022E0D: call 0x47027d60 */ /* not lifted */ 3342 RECOMP_FLAGS_IN(); 3343 /* cmp eax, 0xFFFFFFFFu */ /* 0x47022E12: cmp eax, -1 */ 3344 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3346 _flag_k = FK_CMP; 3347 if (CMP_NE(_flag_a, _flag_b)) goto L_47022E7C; /* 0x47022E15: jne 0x47022e7c */ 3348 L_47022E17: 3349 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47022E17: call dword ptr [0x470ac150] */ 3350 RECOMP_FLAGS_IN(); 3351 ebx = eax; /* 0x47022E1D: mov ebx, eax */ 3352 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022E1F: call dword ptr [0x470ac3c8] */ 3353 RECOMP_FLAGS_IN(); 3354 eax = MEM32(eax); /* 0x47022E25: mov eax, dword ptr [eax] */ 3355 /* test eax, eax */ /* 0x47022E27: test eax, eax */ 3356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3357 _cf = 0; 3358 _flag_k = FK_TEST; 3359 if (TEST_Z(_flag_a, _flag_b)) goto L_47022E2D; /* 0x47022E29: je 0x47022e2d */ 3360 L_47022E2B: 3361 ebx = eax; /* 0x47022E2B: mov ebx, eax */ 3362 L_47022E2D: 3363 RECOMP_ICALL(0x47039020u); /* 0x47022E2D: call 0x47039020 */ /* not lifted */ 3364 RECOMP_FLAGS_IN(); 3365 esi = eax; /* 0x47022E32: mov esi, eax */ 3366 ecx = esi; /* 0x47022E34: mov ecx, esi */ 3367 RECOMP_ICALL(0x4703B210u); /* 0x47022E36: call 0x4703b210 */ /* not lifted */ 3368 RECOMP_FLAGS_IN(); 3369 PUSH32(esp, eax); /* 0x47022E3B: push eax */ 3370 ecx = esi; /* 0x47022E3C: mov ecx, esi */ 3371 RECOMP_ICALL(0x4703B240u); /* 0x47022E3E: call 0x4703b240 */ /* not lifted */ 3372 RECOMP_FLAGS_IN(); 3373 PUSH32(esp, eax); /* 0x47022E43: push eax */ 3374 ecx = esi; /* 0x47022E44: mov ecx, esi */ 3375 RECOMP_ICALL(0x4703B080u); /* 0x47022E46: call 0x4703b080 */ /* not lifted */ 3376 RECOMP_FLAGS_IN(); 3377 PUSH32(esp, eax); /* 0x47022E4B: push eax */ 3378 PUSH32(esp, ebx); /* 0x47022E4C: push ebx */ 3379 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022E4D: push -1 */ 3380 PUSH32(esp, 0x103u); /* 0x47022E4F: push 0x103 */ 3381 PUSH32(esp, 0x47105B2Cu); /* 0x47022E54: push 0x47105b2c */ 3382 ecx = esi; /* 0x47022E59: mov ecx, esi */ 3383 RECOMP_ICALL(0x4703A340u); /* 0x47022E5B: call 0x4703a340 */ /* not lifted */ 3384 RECOMP_FLAGS_IN(); 3385 PUSH32(esp, 0x47105ACCu); /* 0x47022E60: push 0x47105acc */ 3386 PUSH32(esp, 0x47105B8Cu); /* 0x47022E65: push 0x47105b8c */ 3387 PUSH32(esp, 0x80u); /* 0x47022E6A: push 0x80 */ 3388 PUSH32(esp, esi); /* 0x47022E6F: push esi */ 3389 RECOMP_ICALL(0x47039830u); /* 0x47022E70: call 0x47039830 */ /* not lifted */ 3390 RECOMP_FLAGS_IN(); 3391 ebx = MEM32(esp + 0x20); /* 0x47022E75: mov ebx, dword ptr [esp + 0x20] */ 3392 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3393 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3394 esp = esp + 0x10u; /* 0x47022E79: add esp, 0x10 */ 3395 _flag_k = FK_ADD; 3396 L_47022E7C: 3397 MEM32(edi) = 0x470AD05Cu; /* 0x47022E7C: mov dword ptr [edi], 0x470ad05c */ 3398 goto L_47022E86; /* 0x47022E82: jmp 0x47022e86 */ 3399 L_47022E84: 3400 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3401 edi = 0; /* 0x47022E84: xor edi, edi */ 3402 _cf = 0; 3403 _flag_k = FK_TEST; 3404 L_47022E86: 3405 /* test edi, edi */ /* 0x47022E86: test edi, edi */ 3406 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3407 _cf = 0; 3408 _flag_k = FK_TEST; 3409 MEM32(esp + 0x38) = 0xFFFFFFFFu; /* 0x47022E88: mov dword ptr [esp + 0x38], 0xffffffff */ 3410 MEM32(ebx + 0x8) = edi; /* 0x47022E90: mov dword ptr [ebx + 8], edi */ 3411 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022EA6; /* 0x47022E93: jne 0x47022ea6 */ 3412 L_47022E95: 3413 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022E95: call dword ptr [0x470ac3c8] */ 3414 RECOMP_FLAGS_IN(); 3415 MEM32(eax) = 0xCu; /* 0x47022E9B: mov dword ptr [eax], 0xc */ 3416 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3417 eax = eax | 0xFFFFFFFFu; /* 0x47022EA1: or eax, 0xffffffff */ 3418 _cf = 0; 3419 _flag_k = FK_TEST; 3420 goto L_47022F1E; /* 0x47022EA4: jmp 0x47022f1e */ 3421 L_47022EA6: 3422 PUSH32(esp, 0); /* 0x47022EA6: push 0 */ 3423 PUSH32(esp, ebp); /* 0x47022EA8: push ebp */ 3424 RECOMP_ICALL(MEM32(0x470AC220)); /* 0x47022EA9: call dword ptr [0x470ac220] */ 3425 RECOMP_FLAGS_IN(); 3426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3428 esp = esp + 8; /* 0x47022EAF: add esp, 8 */ 3429 _flag_k = FK_ADD; 3430 /* test eax, eax */ /* 0x47022EB2: test eax, eax */ 3431 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3432 _cf = 0; 3433 _flag_k = FK_TEST; 3434 if (TEST_Z(_flag_a, _flag_b)) goto L_47022F17; /* 0x47022EB4: je 0x47022f17 */ 3435 L_47022EB6: 3436 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47022EB6: call dword ptr [0x470ac150] */ 3437 RECOMP_FLAGS_IN(); 3438 edi = eax; /* 0x47022EBC: mov edi, eax */ 3439 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022EBE: call dword ptr [0x470ac3c8] */ 3440 RECOMP_FLAGS_IN(); 3441 eax = MEM32(eax); /* 0x47022EC4: mov eax, dword ptr [eax] */ 3442 /* test eax, eax */ /* 0x47022EC6: test eax, eax */ 3443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3444 _cf = 0; 3445 _flag_k = FK_TEST; 3446 if (TEST_Z(_flag_a, _flag_b)) goto L_47022ECC; /* 0x47022EC8: je 0x47022ecc */ 3447 L_47022ECA: 3448 edi = eax; /* 0x47022ECA: mov edi, eax */ 3449 L_47022ECC: 3450 RECOMP_ICALL(0x47039020u); /* 0x47022ECC: call 0x47039020 */ /* not lifted */ 3451 RECOMP_FLAGS_IN(); 3452 esi = eax; /* 0x47022ED1: mov esi, eax */ 3453 ecx = esi; /* 0x47022ED3: mov ecx, esi */ 3454 RECOMP_ICALL(0x4703B210u); /* 0x47022ED5: call 0x4703b210 */ /* not lifted */ 3455 RECOMP_FLAGS_IN(); 3456 PUSH32(esp, eax); /* 0x47022EDA: push eax */ 3457 ecx = esi; /* 0x47022EDB: mov ecx, esi */ 3458 RECOMP_ICALL(0x4703B240u); /* 0x47022EDD: call 0x4703b240 */ /* not lifted */ 3459 RECOMP_FLAGS_IN(); 3460 PUSH32(esp, eax); /* 0x47022EE2: push eax */ 3461 ecx = esi; /* 0x47022EE3: mov ecx, esi */ 3462 RECOMP_ICALL(0x4703B080u); /* 0x47022EE5: call 0x4703b080 */ /* not lifted */ 3463 RECOMP_FLAGS_IN(); 3464 PUSH32(esp, eax); /* 0x47022EEA: push eax */ 3465 PUSH32(esp, edi); /* 0x47022EEB: push edi */ 3466 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022EEC: push -1 */ 3467 PUSH32(esp, 0x417u); /* 0x47022EEE: push 0x417 */ 3468 PUSH32(esp, 0x47105B50u); /* 0x47022EF3: push 0x47105b50 */ 3469 ecx = esi; /* 0x47022EF8: mov ecx, esi */ 3470 RECOMP_ICALL(0x4703A340u); /* 0x47022EFA: call 0x4703a340 */ /* not lifted */ 3471 RECOMP_FLAGS_IN(); 3472 PUSH32(esp, 0x47105B40u); /* 0x47022EFF: push 0x47105b40 */ 3473 PUSH32(esp, 0x80u); /* 0x47022F04: push 0x80 */ 3474 PUSH32(esp, esi); /* 0x47022F09: push esi */ 3475 RECOMP_ICALL(0x47039830u); /* 0x47022F0A: call 0x47039830 */ /* not lifted */ 3476 RECOMP_FLAGS_IN(); 3477 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3478 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3479 esp = esp + 0xCu; /* 0x47022F0F: add esp, 0xc */ 3480 _flag_k = FK_ADD; 3481 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3482 eax = eax | 0xFFFFFFFFu; /* 0x47022F12: or eax, 0xffffffff */ 3483 _cf = 0; 3484 _flag_k = FK_TEST; 3485 goto L_47022F1E; /* 0x47022F15: jmp 0x47022f1e */ 3486 L_47022F17: 3487 ecx = ebx; /* 0x47022F17: mov ecx, ebx */ 3488 RECOMP_ICALL(0x47022F40u); /* 0x47022F19: call 0x47022f40 */ /* not lifted */ 3489 RECOMP_FLAGS_IN(); 3490 L_47022F1E: 3491 ecx = MEM32(esp + 0x30); /* 0x47022F1E: mov ecx, dword ptr [esp + 0x30] */ 3492 edi = POP32_VAL(esp); /* 0x47022F22: pop edi */ 3493 esi = POP32_VAL(esp); /* 0x47022F23: pop esi */ 3494 ebp = POP32_VAL(esp); /* 0x47022F24: pop ebp */ 3495 ebx = POP32_VAL(esp); /* 0x47022F25: pop ebx */ 3496 MEM32(FS_BASE + (0)) = ecx; /* 0x47022F26: mov dword ptr fs:[0], ecx */ 3497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 3498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3499 esp = esp + 0x2Cu; /* 0x47022F2D: add esp, 0x2c */ 3500 _flag_k = FK_ADD; 3501 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47022F30: ret 0xc */ 3502 RECOMP_REGS_OUT(); 3503 } 3504 3505 void sub_47022F1E(void) { 3506 int _fpu_cmp = 0; 3507 uint32_t _cf = 0; 3508 int _df = 1; 3509 uint32_t _flag_k = FK_NONE; 3510 uint32_t _flag_a = 0, _flag_b = 0; 3511 uint32_t _itail_tgt = 0; 3512 RECOMP_REGS_LOCALS 3513 RECOMP_ENTER(0x47022F1Eu); 3514 3515 L_47022F1E: 3516 ecx = MEM32(esp + 0x30); /* 0x47022F1E: mov ecx, dword ptr [esp + 0x30] */ 3517 edi = POP32_VAL(esp); /* 0x47022F22: pop edi */ 3518 esi = POP32_VAL(esp); /* 0x47022F23: pop esi */ 3519 ebp = POP32_VAL(esp); /* 0x47022F24: pop ebp */ 3520 ebx = POP32_VAL(esp); /* 0x47022F25: pop ebx */ 3521 MEM32(FS_BASE + (0)) = ecx; /* 0x47022F26: mov dword ptr fs:[0], ecx */ 3522 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 3523 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3524 esp = esp + 0x2Cu; /* 0x47022F2D: add esp, 0x2c */ 3525 _flag_k = FK_ADD; 3526 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47022F30: ret 0xc */ 3527 RECOMP_REGS_OUT(); 3528 } 3529 3530 void sub_47022F40(void) { 3531 int _fpu_cmp = 0; 3532 uint32_t _cf = 0; 3533 int _df = 1; 3534 uint32_t _flag_k = FK_NONE; 3535 uint32_t _flag_a = 0, _flag_b = 0; 3536 uint32_t _itail_tgt = 0; 3537 RECOMP_REGS_LOCALS 3538 RECOMP_ENTER(0x47022F40u); 3539 3540 L_47022F40: 3541 PUSH32(esp, 0xFFFFFFFFu); /* 0x47022F40: push -1 */ 3542 PUSH32(esp, 0x470A4789u); /* 0x47022F42: push 0x470a4789 */ 3543 eax = MEM32(FS_BASE + (0)); /* 0x47022F47: mov eax, dword ptr fs:[0] */ 3544 PUSH32(esp, eax); /* 0x47022F4D: push eax */ 3545 MEM32(FS_BASE + (0)) = esp; /* 0x47022F4E: mov dword ptr fs:[0], esp */ 3546 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3548 esp = esp - 0x20u; /* 0x47022F55: sub esp, 0x20 */ 3549 _flag_k = FK_CMP; 3550 PUSH32(esp, ebx); /* 0x47022F58: push ebx */ 3551 PUSH32(esp, esi); /* 0x47022F59: push esi */ 3552 PUSH32(esp, edi); /* 0x47022F5A: push edi */ 3553 esi = ecx; /* 0x47022F5B: mov esi, ecx */ 3554 ecx = MEM32(esi + 0x8); /* 0x47022F5D: mov ecx, dword ptr [esi + 8] */ 3555 edx = esp + 0xC; /* 0x47022F60: lea edx, [esp + 0xc] */ 3556 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3557 ebx = 0; /* 0x47022F64: xor ebx, ebx */ 3558 _cf = 0; 3559 _flag_k = FK_TEST; 3560 PUSH32(esp, edx); /* 0x47022F66: push edx */ 3561 MEM32(esp + 0x10) = ebx; /* 0x47022F67: mov dword ptr [esp + 0x10], ebx */ 3562 eax = MEM32(ecx); /* 0x47022F6B: mov eax, dword ptr [ecx] */ 3563 PUSH32(esp, 0x47105B90u); /* 0x47022F6D: push 0x47105b90 */ 3564 RECOMP_ICALL(MEM32(eax + 0x20)); /* 0x47022F72: call dword ptr [eax + 0x20] */ 3565 RECOMP_FLAGS_IN(); 3566 /* test eax, eax */ /* 0x47022F75: test eax, eax */ 3567 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3568 _cf = 0; 3569 _flag_k = FK_TEST; 3570 if (TEST_NZ(_flag_a, _flag_b)) goto L_47022F94; /* 0x47022F77: jne 0x47022f94 */ 3571 L_47022F79: 3572 eax = MEM32(esp + 0xC); /* 0x47022F79: mov eax, dword ptr [esp + 0xc] */ 3573 edi = POP32_VAL(esp); /* 0x47022F7D: pop edi */ 3574 MEM32(esi + 0xC) = eax; /* 0x47022F7E: mov dword ptr [esi + 0xc], eax */ 3575 esi = POP32_VAL(esp); /* 0x47022F81: pop esi */ 3576 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3577 eax = 0; /* 0x47022F82: xor eax, eax */ 3578 _cf = 0; 3579 _flag_k = FK_TEST; 3580 ebx = POP32_VAL(esp); /* 0x47022F84: pop ebx */ 3581 ecx = MEM32(esp + 0x20); /* 0x47022F85: mov ecx, dword ptr [esp + 0x20] */ 3582 MEM32(FS_BASE + (0)) = ecx; /* 0x47022F89: mov dword ptr fs:[0], ecx */ 3583 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 3584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3585 esp = esp + 0x2Cu; /* 0x47022F90: add esp, 0x2c */ 3586 _flag_k = FK_ADD; 3587 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47022F93: ret */ 3588 L_47022F94: 3589 ecx = MEM32(esi + 0x8); /* 0x47022F94: mov ecx, dword ptr [esi + 8] */ 3590 edx = MEM32(ecx); /* 0x47022F97: mov edx, dword ptr [ecx] */ 3591 PUSH32(esp, 0x14u); /* 0x47022F99: push 0x14 */ 3592 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47022F9B: call dword ptr [edx + 4] */ 3593 RECOMP_FLAGS_IN(); 3594 /* cmp eax, ebx */ /* 0x47022F9E: cmp eax, ebx */ 3595 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3597 _flag_k = FK_CMP; 3598 MEM32(esp + 0xC) = eax; /* 0x47022FA0: mov dword ptr [esp + 0xc], eax */ 3599 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022FDE; /* 0x47022FA4: je 0x47022fde */ 3600 L_47022FA6: 3601 edi = eax; /* 0x47022FA6: mov edi, eax */ 3602 MEM32(esp + 0x10) = eax; /* 0x47022FA8: mov dword ptr [esp + 0x10], eax */ 3603 MEM32(esp + 0x14) = edi; /* 0x47022FAC: mov dword ptr [esp + 0x14], edi */ 3604 ecx = MEM32(esi + 0x8); /* 0x47022FB0: mov ecx, dword ptr [esi + 8] */ 3605 PUSH32(esp, ecx); /* 0x47022FB3: push ecx */ 3606 ecx = eax; /* 0x47022FB4: mov ecx, eax */ 3607 MEM32(esp + 0x38) = ebx; /* 0x47022FB6: mov dword ptr [esp + 0x38], ebx */ 3608 RECOMP_ICALL(0x47028280u); /* 0x47022FBA: call 0x47028280 */ /* not lifted */ 3609 RECOMP_FLAGS_IN(); 3610 /* cmp edi, ebx */ /* 0x47022FBF: cmp edi, ebx */ 3611 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3613 _flag_k = FK_CMP; 3614 MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x47022FC1: mov dword ptr [esp + 0x34], 0xffffffff */ 3615 MEM32(esi + 0xC) = edi; /* 0x47022FC9: mov dword ptr [esi + 0xc], edi */ 3616 if (CMP_NE(_flag_a, _flag_b)) goto L_47023059; /* 0x47022FCC: jne 0x47023059 */ 3617 L_47022FD2: 3618 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022FD2: call dword ptr [0x470ac3c8] */ 3619 RECOMP_FLAGS_IN(); 3620 MEM32(eax) = 0xCu; /* 0x47022FD8: mov dword ptr [eax], 0xc */ 3621 L_47022FDE: 3622 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47022FDE: call dword ptr [0x470ac150] */ 3623 RECOMP_FLAGS_IN(); 3624 edi = eax; /* 0x47022FE4: mov edi, eax */ 3625 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47022FE6: call dword ptr [0x470ac3c8] */ 3626 RECOMP_FLAGS_IN(); 3627 eax = MEM32(eax); /* 0x47022FEC: mov eax, dword ptr [eax] */ 3628 /* cmp eax, ebx */ /* 0x47022FEE: cmp eax, ebx */ 3629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3631 _flag_k = FK_CMP; 3632 ebx = edi; /* 0x47022FF0: mov ebx, edi */ 3633 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022FF6; /* 0x47022FF2: je 0x47022ff6 */ 3634 L_47022FF4: 3635 ebx = eax; /* 0x47022FF4: mov ebx, eax */ 3636 L_47022FF6: 3637 RECOMP_ICALL(0x47039020u); /* 0x47022FF6: call 0x47039020 */ /* not lifted */ 3638 RECOMP_FLAGS_IN(); 3639 edi = eax; /* 0x47022FFB: mov edi, eax */ 3640 ecx = edi; /* 0x47022FFD: mov ecx, edi */ 3641 RECOMP_ICALL(0x4703B210u); /* 0x47022FFF: call 0x4703b210 */ /* not lifted */ 3642 RECOMP_FLAGS_IN(); 3643 PUSH32(esp, eax); /* 0x47023004: push eax */ 3644 ecx = edi; /* 0x47023005: mov ecx, edi */ 3645 RECOMP_ICALL(0x4703B240u); /* 0x47023007: call 0x4703b240 */ /* not lifted */ 3646 RECOMP_FLAGS_IN(); 3647 PUSH32(esp, eax); /* 0x4702300C: push eax */ 3648 ecx = edi; /* 0x4702300D: mov ecx, edi */ 3649 RECOMP_ICALL(0x4703B080u); /* 0x4702300F: call 0x4703b080 */ /* not lifted */ 3650 RECOMP_FLAGS_IN(); 3651 PUSH32(esp, eax); /* 0x47023014: push eax */ 3652 PUSH32(esp, ebx); /* 0x47023015: push ebx */ 3653 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023016: push -1 */ 3654 PUSH32(esp, 0x435u); /* 0x47023018: push 0x435 */ 3655 PUSH32(esp, 0x47105B50u); /* 0x4702301D: push 0x47105b50 */ 3656 ecx = edi; /* 0x47023022: mov ecx, edi */ 3657 RECOMP_ICALL(0x4703A340u); /* 0x47023024: call 0x4703a340 */ /* not lifted */ 3658 RECOMP_FLAGS_IN(); 3659 PUSH32(esp, 0x47105B40u); /* 0x47023029: push 0x47105b40 */ 3660 PUSH32(esp, 0x80u); /* 0x4702302E: push 0x80 */ 3661 PUSH32(esp, edi); /* 0x47023033: push edi */ 3662 RECOMP_ICALL(0x47039830u); /* 0x47023034: call 0x47039830 */ /* not lifted */ 3663 RECOMP_FLAGS_IN(); 3664 ecx = MEM32(esi + 0x8); /* 0x47023039: mov ecx, dword ptr [esi + 8] */ 3665 eax = MEM32(ecx); /* 0x4702303C: mov eax, dword ptr [ecx] */ 3666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3668 esp = esp + 0xCu; /* 0x4702303E: add esp, 0xc */ 3669 _flag_k = FK_ADD; 3670 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47023041: call dword ptr [eax + 0x10] */ 3671 RECOMP_FLAGS_IN(); 3672 edi = POP32_VAL(esp); /* 0x47023044: pop edi */ 3673 esi = POP32_VAL(esp); /* 0x47023045: pop esi */ 3674 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3675 eax = eax | 0xFFFFFFFFu; /* 0x47023046: or eax, 0xffffffff */ 3676 _cf = 0; 3677 _flag_k = FK_TEST; 3678 ebx = POP32_VAL(esp); /* 0x47023049: pop ebx */ 3679 ecx = MEM32(esp + 0x20); /* 0x4702304A: mov ecx, dword ptr [esp + 0x20] */ 3680 MEM32(FS_BASE + (0)) = ecx; /* 0x4702304E: mov dword ptr fs:[0], ecx */ 3681 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 3682 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3683 esp = esp + 0x2Cu; /* 0x47023055: add esp, 0x2c */ 3684 _flag_k = FK_ADD; 3685 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47023058: ret */ 3686 L_47023059: 3687 edx = MEM32(esp + 0xC); /* 0x47023059: mov edx, dword ptr [esp + 0xc] */ 3688 ecx = MEM32(esi + 0x8); /* 0x4702305D: mov ecx, dword ptr [esi + 8] */ 3689 eax = MEM32(ecx); /* 0x47023060: mov eax, dword ptr [ecx] */ 3690 PUSH32(esp, ebx); /* 0x47023062: push ebx */ 3691 PUSH32(esp, edx); /* 0x47023063: push edx */ 3692 PUSH32(esp, 0x47105B90u); /* 0x47023064: push 0x47105b90 */ 3693 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x47023069: call dword ptr [eax + 0x14] */ 3694 RECOMP_FLAGS_IN(); 3695 /* cmp eax, 0xFFFFFFFFu */ /* 0x4702306C: cmp eax, -1 */ 3696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3698 _flag_k = FK_CMP; 3699 RECOMP_BACKEDGE(); 3700 if (CMP_EQ(_flag_a, _flag_b)) goto L_47022FDE; /* 0x4702306F: je 0x47022fde */ 3701 L_47023075: 3702 RECOMP_ICALL(0x4703DAC0u); /* 0x47023075: call 0x4703dac0 */ /* not lifted */ 3703 RECOMP_FLAGS_IN(); 3704 MEM32(esp + 0x18) = eax; /* 0x4702307A: mov dword ptr [esp + 0x18], eax */ 3705 eax = 0x4710DE90u; /* 0x4702307E: mov eax, 0x4710de90 */ 3706 /* test eax, eax */ /* 0x47023083: test eax, eax */ 3707 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3708 _cf = 0; 3709 _flag_k = FK_TEST; 3710 MEM32(esp + 0x1C) = ebx; /* 0x47023085: mov dword ptr [esp + 0x1c], ebx */ 3711 MEM32(esp + 0x20) = ebx; /* 0x47023089: mov dword ptr [esp + 0x20], ebx */ 3712 MEM32(esp + 0x24) = ebx; /* 0x4702308D: mov dword ptr [esp + 0x24], ebx */ 3713 MEM32(esp + 0x28) = ebx; /* 0x47023091: mov dword ptr [esp + 0x28], ebx */ 3714 if (TEST_Z(_flag_a, _flag_b)) goto L_470230A5; /* 0x47023095: je 0x470230a5 */ 3715 L_47023097: 3716 edi = eax; /* 0x47023097: mov edi, eax */ 3717 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3718 ecx = ecx | 0xFFFFFFFFu; /* 0x47023099: or ecx, 0xffffffff */ 3719 _cf = 0; 3720 _flag_k = FK_TEST; 3721 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3722 eax = 0; /* 0x4702309C: xor eax, eax */ 3723 _cf = 0; 3724 _flag_k = FK_TEST; 3725 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; } /* 0x4702309E: repne scasb al, byte ptr es:[edi] */ 3726 ecx = ~ecx; /* 0x470230A0: not ecx */ 3727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3728 ecx = ecx - 1; /* 0x470230A2: dec ecx */ 3729 _flag_k = FK_DEC; 3730 goto L_470230A7; /* 0x470230A3: jmp 0x470230a7 */ 3731 L_470230A5: 3732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3733 ecx = 0; /* 0x470230A5: xor ecx, ecx */ 3734 _cf = 0; 3735 _flag_k = FK_TEST; 3736 L_470230A7: 3737 PUSH32(esp, 1); /* 0x470230A7: push 1 */ 3738 PUSH32(esp, ecx); /* 0x470230A9: push ecx */ 3739 PUSH32(esp, 0x4710DE90u); /* 0x470230AA: push 0x4710de90 */ 3740 ecx = esp + 0x24; /* 0x470230AF: lea ecx, [esp + 0x24] */ 3741 RECOMP_ICALL(0x470802D0u); /* 0x470230B3: call 0x470802d0 */ /* not lifted */ 3742 RECOMP_FLAGS_IN(); 3743 ecx = esi + 0x4; /* 0x470230B8: lea ecx, [esi + 4] */ 3744 PUSH32(esp, ecx); /* 0x470230BB: push ecx */ 3745 edx = esp + 0x1C; /* 0x470230BC: lea edx, [esp + 0x1c] */ 3746 PUSH32(esp, edx); /* 0x470230C0: push edx */ 3747 ecx = esi; /* 0x470230C1: mov ecx, esi */ 3748 MEM32(esp + 0x3C) = 1; /* 0x470230C3: mov dword ptr [esp + 0x3c], 1 */ 3749 RECOMP_ICALL(0x47023630u); /* 0x470230CB: call 0x47023630 */ /* not lifted */ 3750 RECOMP_FLAGS_IN(); 3751 PUSH32(esp, ebx); /* 0x470230D0: push ebx */ 3752 PUSH32(esp, ebx); /* 0x470230D1: push ebx */ 3753 PUSH32(esp, ebx); /* 0x470230D2: push ebx */ 3754 ecx = esp + 0x24; /* 0x470230D3: lea ecx, [esp + 0x24] */ 3755 esi = eax; /* 0x470230D7: mov esi, eax */ 3756 MEM32(esp + 0x40) = 0xFFFFFFFFu; /* 0x470230D9: mov dword ptr [esp + 0x40], 0xffffffff */ 3757 RECOMP_ICALL(0x470802D0u); /* 0x470230E1: call 0x470802d0 */ /* not lifted */ 3758 RECOMP_FLAGS_IN(); 3759 ecx = MEM32(esp + 0x2C); /* 0x470230E6: mov ecx, dword ptr [esp + 0x2c] */ 3760 edi = POP32_VAL(esp); /* 0x470230EA: pop edi */ 3761 eax = esi; /* 0x470230EB: mov eax, esi */ 3762 esi = POP32_VAL(esp); /* 0x470230ED: pop esi */ 3763 ebx = POP32_VAL(esp); /* 0x470230EE: pop ebx */ 3764 MEM32(FS_BASE + (0)) = ecx; /* 0x470230EF: mov dword ptr fs:[0], ecx */ 3765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 3766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3767 esp = esp + 0x2Cu; /* 0x470230F6: add esp, 0x2c */ 3768 _flag_k = FK_ADD; 3769 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470230F9: ret */ 3770 RECOMP_REGS_OUT(); 3771 } 3772 3773 void sub_47023100(void) { 3774 int _fpu_cmp = 0; 3775 uint32_t _cf = 0; 3776 int _df = 1; 3777 uint32_t _flag_k = FK_NONE; 3778 uint32_t _flag_a = 0, _flag_b = 0; 3779 uint32_t _itail_tgt = 0; 3780 RECOMP_REGS_LOCALS 3781 RECOMP_ENTER(0x47023100u); 3782 3783 L_47023100: 3784 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023100: push -1 */ 3785 PUSH32(esp, 0x470A47C4u); /* 0x47023102: push 0x470a47c4 */ 3786 eax = MEM32(FS_BASE + (0)); /* 0x47023107: mov eax, dword ptr fs:[0] */ 3787 PUSH32(esp, eax); /* 0x4702310D: push eax */ 3788 MEM32(FS_BASE + (0)) = esp; /* 0x4702310E: mov dword ptr fs:[0], esp */ 3789 PUSH32(esp, ecx); /* 0x47023115: push ecx */ 3790 PUSH32(esp, ebx); /* 0x47023116: push ebx */ 3791 PUSH32(esp, ebp); /* 0x47023117: push ebp */ 3792 PUSH32(esp, esi); /* 0x47023118: push esi */ 3793 esi = MEM32(esp + 0x20); /* 0x47023119: mov esi, dword ptr [esp + 0x20] */ 3794 ebp = ecx; /* 0x4702311D: mov ebp, ecx */ 3795 MEM32(esp + 0xC) = esi; /* 0x4702311F: mov dword ptr [esp + 0xc], esi */ 3796 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3797 ebx = 0; /* 0x47023123: xor ebx, ebx */ 3798 _cf = 0; 3799 _flag_k = FK_TEST; 3800 /* cmp esi, ebx */ /* 0x47023125: cmp esi, ebx */ 3801 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3802 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3803 _flag_k = FK_CMP; 3804 MEM32(esp + 0x18) = ebx; /* 0x47023127: mov dword ptr [esp + 0x18], ebx */ 3805 if (CMP_EQ(_flag_a, _flag_b)) goto L_470231CD; /* 0x4702312B: je 0x470231cd */ 3806 L_47023131: 3807 PUSH32(esp, edi); /* 0x47023131: push edi */ 3808 edi = MEM32(ebp + 0x8); /* 0x47023132: mov edi, dword ptr [ebp + 8] */ 3809 MEM32(esi) = edi; /* 0x47023135: mov dword ptr [esi], edi */ 3810 MEM32(esi + 0x8) = ebx; /* 0x47023137: mov dword ptr [esi + 8], ebx */ 3811 MEM32(esi + 0xC) = ebx; /* 0x4702313A: mov dword ptr [esi + 0xc], ebx */ 3812 MEM32(esi + 0x10) = ebx; /* 0x4702313D: mov dword ptr [esi + 0x10], ebx */ 3813 ecx = esi; /* 0x47023140: mov ecx, esi */ 3814 MEM8(esp + 0x1C) = (uint8_t)(2); /* 0x47023142: mov byte ptr [esp + 0x1c], 2 */ 3815 RECOMP_ICALL(0x47028680u); /* 0x47023147: call 0x47028680 */ /* not lifted */ 3816 RECOMP_FLAGS_IN(); 3817 /* cmp edi, ebx */ /* 0x4702314C: cmp edi, ebx */ 3818 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 3819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3820 _flag_k = FK_CMP; 3821 if (CMP_NE(_flag_a, _flag_b)) goto L_47023157; /* 0x4702314E: jne 0x47023157 */ 3822 L_47023150: 3823 RECOMP_ICALL(0x4703DAC0u); /* 0x47023150: call 0x4703dac0 */ /* not lifted */ 3824 RECOMP_FLAGS_IN(); 3825 edi = eax; /* 0x47023155: mov edi, eax */ 3826 L_47023157: 3827 PUSH32(esp, 0x400u); /* 0x47023157: push 0x400 */ 3828 ecx = esi; /* 0x4702315C: mov ecx, esi */ 3829 MEM32(esi) = edi; /* 0x4702315E: mov dword ptr [esi], edi */ 3830 RECOMP_ICALL(0x470287E0u); /* 0x47023160: call 0x470287e0 */ /* not lifted */ 3831 RECOMP_FLAGS_IN(); 3832 /* cmp eax, 0xFFFFFFFFu */ /* 0x47023165: cmp eax, -1 */ 3833 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 3834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3835 _flag_k = FK_CMP; 3836 MEM8(esp + 0x1C) = (uint8_t)(1); /* 0x47023168: mov byte ptr [esp + 0x1c], 1 */ 3837 if (CMP_NE(_flag_a, _flag_b)) goto L_470231CA; /* 0x4702316D: jne 0x470231ca */ 3838 L_4702316F: 3839 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702316F: call dword ptr [0x470ac150] */ 3840 RECOMP_FLAGS_IN(); 3841 ebx = eax; /* 0x47023175: mov ebx, eax */ 3842 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023177: call dword ptr [0x470ac3c8] */ 3843 RECOMP_FLAGS_IN(); 3844 eax = MEM32(eax); /* 0x4702317D: mov eax, dword ptr [eax] */ 3845 /* test eax, eax */ /* 0x4702317F: test eax, eax */ 3846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3847 _cf = 0; 3848 _flag_k = FK_TEST; 3849 if (TEST_Z(_flag_a, _flag_b)) goto L_47023185; /* 0x47023181: je 0x47023185 */ 3850 L_47023183: 3851 ebx = eax; /* 0x47023183: mov ebx, eax */ 3852 L_47023185: 3853 RECOMP_ICALL(0x47039020u); /* 0x47023185: call 0x47039020 */ /* not lifted */ 3854 RECOMP_FLAGS_IN(); 3855 edi = eax; /* 0x4702318A: mov edi, eax */ 3856 ecx = edi; /* 0x4702318C: mov ecx, edi */ 3857 RECOMP_ICALL(0x4703B210u); /* 0x4702318E: call 0x4703b210 */ /* not lifted */ 3858 RECOMP_FLAGS_IN(); 3859 PUSH32(esp, eax); /* 0x47023193: push eax */ 3860 ecx = edi; /* 0x47023194: mov ecx, edi */ 3861 RECOMP_ICALL(0x4703B240u); /* 0x47023196: call 0x4703b240 */ /* not lifted */ 3862 RECOMP_FLAGS_IN(); 3863 PUSH32(esp, eax); /* 0x4702319B: push eax */ 3864 ecx = edi; /* 0x4702319C: mov ecx, edi */ 3865 RECOMP_ICALL(0x4703B080u); /* 0x4702319E: call 0x4703b080 */ /* not lifted */ 3866 RECOMP_FLAGS_IN(); 3867 PUSH32(esp, eax); /* 0x470231A3: push eax */ 3868 PUSH32(esp, ebx); /* 0x470231A4: push ebx */ 3869 PUSH32(esp, 0xFFFFFFFFu); /* 0x470231A5: push -1 */ 3870 PUSH32(esp, 0x19u); /* 0x470231A7: push 0x19 */ 3871 PUSH32(esp, 0x471059C8u); /* 0x470231A9: push 0x471059c8 */ 3872 ecx = edi; /* 0x470231AE: mov ecx, edi */ 3873 RECOMP_ICALL(0x4703A340u); /* 0x470231B0: call 0x4703a340 */ /* not lifted */ 3874 RECOMP_FLAGS_IN(); 3875 PUSH32(esp, 0x471059ACu); /* 0x470231B5: push 0x471059ac */ 3876 PUSH32(esp, 0x80u); /* 0x470231BA: push 0x80 */ 3877 PUSH32(esp, edi); /* 0x470231BF: push edi */ 3878 RECOMP_ICALL(0x47039830u); /* 0x470231C0: call 0x47039830 */ /* not lifted */ 3879 RECOMP_FLAGS_IN(); 3880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3882 esp = esp + 0xCu; /* 0x470231C5: add esp, 0xc */ 3883 _flag_k = FK_ADD; 3884 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3885 ebx = 0; /* 0x470231C8: xor ebx, ebx */ 3886 _cf = 0; 3887 _flag_k = FK_TEST; 3888 L_470231CA: 3889 edi = POP32_VAL(esp); /* 0x470231CA: pop edi */ 3890 goto L_470231CF; /* 0x470231CB: jmp 0x470231cf */ 3891 L_470231CD: 3892 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3893 esi = 0; /* 0x470231CD: xor esi, esi */ 3894 _cf = 0; 3895 _flag_k = FK_TEST; 3896 L_470231CF: 3897 MEM32(ebp + 0xC) = esi; /* 0x470231CF: mov dword ptr [ebp + 0xc], esi */ 3898 /* cmp esi, ebx */ /* 0x470231D2: cmp esi, ebx */ 3899 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3901 _flag_k = FK_CMP; 3902 esi = POP32_VAL(esp); /* 0x470231D4: pop esi */ 3903 ebp = POP32_VAL(esp); /* 0x470231D5: pop ebp */ 3904 ebx = POP32_VAL(esp); /* 0x470231D6: pop ebx */ 3905 if (CMP_NE(_flag_a, _flag_b)) goto L_470231F9; /* 0x470231D7: jne 0x470231f9 */ 3906 L_470231D9: 3907 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470231D9: call dword ptr [0x470ac3c8] */ 3908 RECOMP_FLAGS_IN(); 3909 MEM32(eax) = 0xCu; /* 0x470231DF: mov dword ptr [eax], 0xc */ 3910 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3911 eax = eax | 0xFFFFFFFFu; /* 0x470231E5: or eax, 0xffffffff */ 3912 _cf = 0; 3913 _flag_k = FK_TEST; 3914 ecx = MEM32(esp + 0x4); /* 0x470231E8: mov ecx, dword ptr [esp + 4] */ 3915 MEM32(FS_BASE + (0)) = ecx; /* 0x470231EC: mov dword ptr fs:[0], ecx */ 3916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3918 esp = esp + 0x10u; /* 0x470231F3: add esp, 0x10 */ 3919 _flag_k = FK_ADD; 3920 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470231F6: ret 4 */ 3921 L_470231F9: 3922 ecx = MEM32(esp + 0x4); /* 0x470231F9: mov ecx, dword ptr [esp + 4] */ 3923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3924 eax = 0; /* 0x470231FD: xor eax, eax */ 3925 _cf = 0; 3926 _flag_k = FK_TEST; 3927 MEM32(FS_BASE + (0)) = ecx; /* 0x470231FF: mov dword ptr fs:[0], ecx */ 3928 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3929 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3930 esp = esp + 0x10u; /* 0x47023206: add esp, 0x10 */ 3931 _flag_k = FK_ADD; 3932 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47023209: ret 4 */ 3933 RECOMP_REGS_OUT(); 3934 } 3935 3936 void sub_47023210(void) { 3937 int _fpu_cmp = 0; 3938 uint32_t _cf = 0; 3939 int _df = 1; 3940 uint32_t _flag_k = FK_NONE; 3941 uint32_t _flag_a = 0, _flag_b = 0; 3942 uint32_t _itail_tgt = 0; 3943 RECOMP_REGS_LOCALS 3944 RECOMP_ENTER(0x47023210u); 3945 3946 L_47023210: 3947 eax = MEM32(FS_BASE + (0)); /* 0x47023210: mov eax, dword ptr fs:[0] */ 3948 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023216: push -1 */ 3949 PUSH32(esp, 0x470A47D8u); /* 0x47023218: push 0x470a47d8 */ 3950 PUSH32(esp, eax); /* 0x4702321D: push eax */ 3951 eax = MEM32(esp + 0x10); /* 0x4702321E: mov eax, dword ptr [esp + 0x10] */ 3952 MEM32(FS_BASE + (0)) = esp; /* 0x47023222: mov dword ptr fs:[0], esp */ 3953 eax = MEM32(eax); /* 0x47023229: mov eax, dword ptr [eax] */ 3954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3955 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3956 esp = esp - 0x14u; /* 0x4702322B: sub esp, 0x14 */ 3957 _flag_k = FK_CMP; 3958 PUSH32(esp, ebx); /* 0x4702322E: push ebx */ 3959 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3960 ebx = 0; /* 0x4702322F: xor ebx, ebx */ 3961 _cf = 0; 3962 _flag_k = FK_TEST; 3963 /* cmp eax, ebx */ /* 0x47023231: cmp eax, ebx */ 3964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3966 _flag_k = FK_CMP; 3967 if (CMP_NE(_flag_a, _flag_b)) goto L_4702324A; /* 0x47023233: jne 0x4702324a */ 3968 L_47023235: 3969 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 3970 eax = eax | 0xFFFFFFFFu; /* 0x47023235: or eax, 0xffffffff */ 3971 _cf = 0; 3972 _flag_k = FK_TEST; 3973 ebx = POP32_VAL(esp); /* 0x47023238: pop ebx */ 3974 ecx = MEM32(esp + 0x14); /* 0x47023239: mov ecx, dword ptr [esp + 0x14] */ 3975 MEM32(FS_BASE + (0)) = ecx; /* 0x4702323D: mov dword ptr fs:[0], ecx */ 3976 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 3977 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3978 esp = esp + 0x20u; /* 0x47023244: add esp, 0x20 */ 3979 _flag_k = FK_ADD; 3980 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47023247: ret 8 */ 3981 L_4702324A: 3982 PUSH32(esp, esi); /* 0x4702324A: push esi */ 3983 esi = MEM32(eax + 0x8); /* 0x4702324B: mov esi, dword ptr [eax + 8] */ 3984 RECOMP_ICALL(0x4703DAC0u); /* 0x4702324E: call 0x4703dac0 */ /* not lifted */ 3985 RECOMP_FLAGS_IN(); 3986 /* cmp esi, ebx */ /* 0x47023253: cmp esi, ebx */ 3987 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3988 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3989 _flag_k = FK_CMP; 3990 MEM32(esp + 0x8) = eax; /* 0x47023255: mov dword ptr [esp + 8], eax */ 3991 MEM32(esp + 0xC) = ebx; /* 0x47023259: mov dword ptr [esp + 0xc], ebx */ 3992 MEM32(esp + 0x10) = ebx; /* 0x4702325D: mov dword ptr [esp + 0x10], ebx */ 3993 MEM32(esp + 0x14) = ebx; /* 0x47023261: mov dword ptr [esp + 0x14], ebx */ 3994 MEM32(esp + 0x18) = ebx; /* 0x47023265: mov dword ptr [esp + 0x18], ebx */ 3995 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702327B; /* 0x47023269: je 0x4702327b */ 3996 L_4702326B: 3997 PUSH32(esp, edi); /* 0x4702326B: push edi */ 3998 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 3999 ecx = ecx | 0xFFFFFFFFu; /* 0x4702326C: or ecx, 0xffffffff */ 4000 _cf = 0; 4001 _flag_k = FK_TEST; 4002 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4003 eax = 0; /* 0x4702326F: xor eax, eax */ 4004 _cf = 0; 4005 _flag_k = FK_TEST; 4006 edi = esi; /* 0x47023271: mov edi, esi */ 4007 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; } /* 0x47023273: repne scasb al, byte ptr es:[edi] */ 4008 ecx = ~ecx; /* 0x47023275: not ecx */ 4009 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4010 ecx = ecx - 1; /* 0x47023277: dec ecx */ 4011 _flag_k = FK_DEC; 4012 edi = POP32_VAL(esp); /* 0x47023278: pop edi */ 4013 goto L_4702327D; /* 0x47023279: jmp 0x4702327d */ 4014 L_4702327B: 4015 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4016 ecx = 0; /* 0x4702327B: xor ecx, ecx */ 4017 _cf = 0; 4018 _flag_k = FK_TEST; 4019 L_4702327D: 4020 PUSH32(esp, 1); /* 0x4702327D: push 1 */ 4021 PUSH32(esp, ecx); /* 0x4702327F: push ecx */ 4022 PUSH32(esp, esi); /* 0x47023280: push esi */ 4023 ecx = esp + 0x14; /* 0x47023281: lea ecx, [esp + 0x14] */ 4024 RECOMP_ICALL(0x470802D0u); /* 0x47023285: call 0x470802d0 */ /* not lifted */ 4025 RECOMP_FLAGS_IN(); 4026 ecx = MEM32(esp + 0x30); /* 0x4702328A: mov ecx, dword ptr [esp + 0x30] */ 4027 edx = esp + 0x8; /* 0x4702328E: lea edx, [esp + 8] */ 4028 /* cmp ecx, edx */ /* 0x47023292: cmp ecx, edx */ 4029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4031 _flag_k = FK_CMP; 4032 MEM32(esp + 0x24) = ebx; /* 0x47023294: mov dword ptr [esp + 0x24], ebx */ 4033 esi = POP32_VAL(esp); /* 0x47023298: pop esi */ 4034 if (CMP_EQ(_flag_a, _flag_b)) goto L_470232AC; /* 0x47023299: je 0x470232ac */ 4035 L_4702329B: 4036 eax = MEM32(esp + 0x8); /* 0x4702329B: mov eax, dword ptr [esp + 8] */ 4037 edx = MEM32(esp + 0x10); /* 0x4702329F: mov edx, dword ptr [esp + 0x10] */ 4038 PUSH32(esp, 1); /* 0x470232A3: push 1 */ 4039 PUSH32(esp, eax); /* 0x470232A5: push eax */ 4040 PUSH32(esp, edx); /* 0x470232A6: push edx */ 4041 RECOMP_ICALL(0x470802D0u); /* 0x470232A7: call 0x470802d0 */ /* not lifted */ 4042 RECOMP_FLAGS_IN(); 4043 L_470232AC: 4044 PUSH32(esp, ebx); /* 0x470232AC: push ebx */ 4045 PUSH32(esp, ebx); /* 0x470232AD: push ebx */ 4046 PUSH32(esp, ebx); /* 0x470232AE: push ebx */ 4047 ecx = esp + 0x10; /* 0x470232AF: lea ecx, [esp + 0x10] */ 4048 MEM32(esp + 0x2C) = 0xFFFFFFFFu; /* 0x470232B3: mov dword ptr [esp + 0x2c], 0xffffffff */ 4049 RECOMP_ICALL(0x470802D0u); /* 0x470232BB: call 0x470802d0 */ /* not lifted */ 4050 RECOMP_FLAGS_IN(); 4051 ecx = MEM32(esp + 0x18); /* 0x470232C0: mov ecx, dword ptr [esp + 0x18] */ 4052 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4053 eax = 0; /* 0x470232C4: xor eax, eax */ 4054 _cf = 0; 4055 _flag_k = FK_TEST; 4056 ebx = POP32_VAL(esp); /* 0x470232C6: pop ebx */ 4057 MEM32(FS_BASE + (0)) = ecx; /* 0x470232C7: mov dword ptr fs:[0], ecx */ 4058 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4060 esp = esp + 0x20u; /* 0x470232CE: add esp, 0x20 */ 4061 _flag_k = FK_ADD; 4062 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470232D1: ret 8 */ 4063 RECOMP_REGS_OUT(); 4064 } 4065 4066 void sub_470232E0(void) { 4067 int _fpu_cmp = 0; 4068 uint32_t _cf = 0; 4069 int _df = 1; 4070 uint32_t _flag_k = FK_NONE; 4071 uint32_t _flag_a = 0, _flag_b = 0; 4072 uint32_t _itail_tgt = 0; 4073 RECOMP_REGS_LOCALS 4074 RECOMP_ENTER(0x470232E0u); 4075 4076 L_470232E0: 4077 PUSH32(esp, 0xFFFFFFFFu); /* 0x470232E0: push -1 */ 4078 PUSH32(esp, 0x470A4830u); /* 0x470232E2: push 0x470a4830 */ 4079 eax = MEM32(FS_BASE + (0)); /* 0x470232E7: mov eax, dword ptr fs:[0] */ 4080 PUSH32(esp, eax); /* 0x470232ED: push eax */ 4081 MEM32(FS_BASE + (0)) = esp; /* 0x470232EE: mov dword ptr fs:[0], esp */ 4082 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 4083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4084 esp = esp - 0x40u; /* 0x470232F5: sub esp, 0x40 */ 4085 _flag_k = FK_CMP; 4086 PUSH32(esp, ebx); /* 0x470232F8: push ebx */ 4087 PUSH32(esp, ebp); /* 0x470232F9: push ebp */ 4088 PUSH32(esp, esi); /* 0x470232FA: push esi */ 4089 ebx = ecx; /* 0x470232FB: mov ebx, ecx */ 4090 RECOMP_ICALL(0x4703DAC0u); /* 0x470232FD: call 0x4703dac0 */ /* not lifted */ 4091 RECOMP_FLAGS_IN(); 4092 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4093 ebp = 0; /* 0x47023302: xor ebp, ebp */ 4094 _cf = 0; 4095 _flag_k = FK_TEST; 4096 MEM32(esp + 0x24) = eax; /* 0x47023304: mov dword ptr [esp + 0x24], eax */ 4097 MEM32(esp + 0x28) = ebp; /* 0x47023308: mov dword ptr [esp + 0x28], ebp */ 4098 MEM32(esp + 0x2C) = ebp; /* 0x4702330C: mov dword ptr [esp + 0x2c], ebp */ 4099 MEM32(esp + 0x30) = 0x4710F078u; /* 0x47023310: mov dword ptr [esp + 0x30], 0x4710f078 */ 4100 MEM32(esp + 0x34) = ebp; /* 0x47023318: mov dword ptr [esp + 0x34], ebp */ 4101 eax = MEM32(esp + 0x5C); /* 0x4702331C: mov eax, dword ptr [esp + 0x5c] */ 4102 eax = MEM32(eax); /* 0x47023320: mov eax, dword ptr [eax] */ 4103 /* cmp eax, ebp */ /* 0x47023322: cmp eax, ebp */ 4104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 4105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4106 _flag_k = FK_CMP; 4107 MEM32(esp + 0x54) = ebp; /* 0x47023324: mov dword ptr [esp + 0x54], ebp */ 4108 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023382; /* 0x47023328: je 0x47023382 */ 4109 L_4702332A: 4110 ecx = MEM32(eax + 0x8); /* 0x4702332A: mov ecx, dword ptr [eax + 8] */ 4111 PUSH32(esp, 1); /* 0x4702332D: push 1 */ 4112 PUSH32(esp, ebp); /* 0x4702332F: push ebp */ 4113 PUSH32(esp, ecx); /* 0x47023330: push ecx */ 4114 ecx = esp + 0x44; /* 0x47023331: lea ecx, [esp + 0x44] */ 4115 RECOMP_ICALL(0x47007130u); /* 0x47023335: call 0x47007130 */ /* not lifted */ 4116 RECOMP_FLAGS_IN(); 4117 edx = esp + 0x38; /* 0x4702333A: lea edx, [esp + 0x38] */ 4118 PUSH32(esp, edx); /* 0x4702333E: push edx */ 4119 ecx = esp + 0x28; /* 0x4702333F: lea ecx, [esp + 0x28] */ 4120 MEM8(esp + 0x58) = (uint8_t)(1); /* 0x47023343: mov byte ptr [esp + 0x58], 1 */ 4121 RECOMP_ICALL(0x47007250u); /* 0x47023348: call 0x47007250 */ /* not lifted */ 4122 RECOMP_FLAGS_IN(); 4123 PUSH32(esp, ebp); /* 0x4702334D: push ebp */ 4124 PUSH32(esp, ebp); /* 0x4702334E: push ebp */ 4125 PUSH32(esp, ebp); /* 0x4702334F: push ebp */ 4126 ecx = esp + 0x44; /* 0x47023350: lea ecx, [esp + 0x44] */ 4127 MEM8(esp + 0x60) = (uint8_t)(0); /* 0x47023354: mov byte ptr [esp + 0x60], 0 */ 4128 RECOMP_ICALL(0x470802D0u); /* 0x47023359: call 0x470802d0 */ /* not lifted */ 4129 RECOMP_FLAGS_IN(); 4130 eax = MEM32(esp + 0x28); /* 0x4702335E: mov eax, dword ptr [esp + 0x28] */ 4131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4132 eax = eax + 1; /* 0x47023362: inc eax */ 4133 _flag_k = FK_INC; 4134 PUSH32(esp, eax); /* 0x47023363: push eax */ 4135 RECOMP_ICALL(0x470A33F2u); /* 0x47023364: call 0x470a33f2 */ /* not lifted */ 4136 RECOMP_FLAGS_IN(); 4137 esi = eax; /* 0x47023369: mov esi, eax */ 4138 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4139 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4140 esp = esp + 4; /* 0x4702336B: add esp, 4 */ 4141 _flag_k = FK_ADD; 4142 /* cmp esi, ebp */ /* 0x4702336E: cmp esi, ebp */ 4143 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 4144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4145 _flag_k = FK_CMP; 4146 if (CMP_NE(_flag_a, _flag_b)) goto L_470233AD; /* 0x47023370: jne 0x470233ad */ 4147 L_47023372: 4148 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023372: call dword ptr [0x470ac3c8] */ 4149 RECOMP_FLAGS_IN(); 4150 MEM32(eax) = 0xCu; /* 0x47023378: mov dword ptr [eax], 0xc */ 4151 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4152 esi = 0; /* 0x4702337E: xor esi, esi */ 4153 _cf = 0; 4154 _flag_k = FK_TEST; 4155 goto L_470233C9; /* 0x47023380: jmp 0x470233c9 */ 4156 L_47023382: 4157 PUSH32(esp, ebp); /* 0x47023382: push ebp */ 4158 PUSH32(esp, ebp); /* 0x47023383: push ebp */ 4159 PUSH32(esp, ebp); /* 0x47023384: push ebp */ 4160 ecx = esp + 0x30; /* 0x47023385: lea ecx, [esp + 0x30] */ 4161 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x47023389: mov dword ptr [esp + 0x60], 0xffffffff */ 4162 RECOMP_ICALL(0x470802D0u); /* 0x47023391: call 0x470802d0 */ /* not lifted */ 4163 RECOMP_FLAGS_IN(); 4164 esi = POP32_VAL(esp); /* 0x47023396: pop esi */ 4165 ebp = POP32_VAL(esp); /* 0x47023397: pop ebp */ 4166 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4167 eax = eax | 0xFFFFFFFFu; /* 0x47023398: or eax, 0xffffffff */ 4168 _cf = 0; 4169 _flag_k = FK_TEST; 4170 ebx = POP32_VAL(esp); /* 0x4702339B: pop ebx */ 4171 ecx = MEM32(esp + 0x40); /* 0x4702339C: mov ecx, dword ptr [esp + 0x40] */ 4172 MEM32(FS_BASE + (0)) = ecx; /* 0x470233A0: mov dword ptr fs:[0], ecx */ 4173 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 4174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4175 esp = esp + 0x4Cu; /* 0x470233A7: add esp, 0x4c */ 4176 _flag_k = FK_ADD; 4177 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470233AA: ret 0xc */ 4178 L_470233AD: 4179 ecx = MEM32(esp + 0x28); /* 0x470233AD: mov ecx, dword ptr [esp + 0x28] */ 4180 edx = MEM32(esp + 0x30); /* 0x470233B1: mov edx, dword ptr [esp + 0x30] */ 4181 PUSH32(esp, ecx); /* 0x470233B5: push ecx */ 4182 PUSH32(esp, edx); /* 0x470233B6: push edx */ 4183 PUSH32(esp, esi); /* 0x470233B7: push esi */ 4184 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470233B8: call dword ptr [0x470ac22c] */ 4185 RECOMP_FLAGS_IN(); 4186 eax = MEM32(esp + 0x34); /* 0x470233BE: mov eax, dword ptr [esp + 0x34] */ 4187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4189 esp = esp + 0xCu; /* 0x470233C2: add esp, 0xc */ 4190 _flag_k = FK_ADD; 4191 MEM8(eax + esi) = (uint8_t)(0); /* 0x470233C5: mov byte ptr [eax + esi], 0 */ 4192 L_470233C9: 4193 MEM32(esp + 0x10) = esi; /* 0x470233C9: mov dword ptr [esp + 0x10], esi */ 4194 MEM32(esp + 0x1C) = ebp; /* 0x470233CD: mov dword ptr [esp + 0x1c], ebp */ 4195 MEM32(esp + 0x20) = ebp; /* 0x470233D1: mov dword ptr [esp + 0x20], ebp */ 4196 eax = MEM32(ebx + 0x8); /* 0x470233D5: mov eax, dword ptr [ebx + 8] */ 4197 ecx = MEM32(ebx + 0xC); /* 0x470233D8: mov ecx, dword ptr [ebx + 0xc] */ 4198 edx = esp + 0x1C; /* 0x470233DB: lea edx, [esp + 0x1c] */ 4199 MEM32(ecx) = eax; /* 0x470233DF: mov dword ptr [ecx], eax */ 4200 PUSH32(esp, edx); /* 0x470233E1: push edx */ 4201 eax = esp + 0x14; /* 0x470233E2: lea eax, [esp + 0x14] */ 4202 PUSH32(esp, eax); /* 0x470233E6: push eax */ 4203 MEM8(esp + 0x5C) = (uint8_t)(3); /* 0x470233E7: mov byte ptr [esp + 0x5c], 3 */ 4204 RECOMP_ICALL(0x47027020u); /* 0x470233EC: call 0x47027020 */ /* not lifted */ 4205 RECOMP_FLAGS_IN(); 4206 /* test eax, eax */ /* 0x470233F1: test eax, eax */ 4207 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4208 _cf = 0; 4209 _flag_k = FK_TEST; 4210 if (TEST_Z(_flag_a, _flag_b)) goto L_47023422; /* 0x470233F3: je 0x47023422 */ 4211 L_470233F5: 4212 PUSH32(esp, ebp); /* 0x470233F5: push ebp */ 4213 PUSH32(esp, ebp); /* 0x470233F6: push ebp */ 4214 PUSH32(esp, ebp); /* 0x470233F7: push ebp */ 4215 ecx = esp + 0x30; /* 0x470233F8: lea ecx, [esp + 0x30] */ 4216 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x470233FC: mov dword ptr [esp + 0x60], 0xffffffff */ 4217 RECOMP_ICALL(0x470802D0u); /* 0x47023404: call 0x470802d0 */ /* not lifted */ 4218 RECOMP_FLAGS_IN(); 4219 esi = POP32_VAL(esp); /* 0x47023409: pop esi */ 4220 ebp = POP32_VAL(esp); /* 0x4702340A: pop ebp */ 4221 eax = 0xFFFFFFFEu; /* 0x4702340B: mov eax, 0xfffffffe */ 4222 ebx = POP32_VAL(esp); /* 0x47023410: pop ebx */ 4223 ecx = MEM32(esp + 0x40); /* 0x47023411: mov ecx, dword ptr [esp + 0x40] */ 4224 MEM32(FS_BASE + (0)) = ecx; /* 0x47023415: mov dword ptr fs:[0], ecx */ 4225 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 4226 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4227 esp = esp + 0x4Cu; /* 0x4702341C: add esp, 0x4c */ 4228 _flag_k = FK_ADD; 4229 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702341F: ret 0xc */ 4230 L_47023422: 4231 esi = MEM32(esp + 0x60); /* 0x47023422: mov esi, dword ptr [esp + 0x60] */ 4232 MEM32(esp + 0x14) = esi; /* 0x47023426: mov dword ptr [esp + 0x14], esi */ 4233 eax = MEM32(ebx + 0x8); /* 0x4702342A: mov eax, dword ptr [ebx + 8] */ 4234 ecx = MEM32(esp + 0x20); /* 0x4702342D: mov ecx, dword ptr [esp + 0x20] */ 4235 MEM32(esp + 0xC) = ebp; /* 0x47023431: mov dword ptr [esp + 0xc], ebp */ 4236 edx = esp + 0xC; /* 0x47023435: lea edx, [esp + 0xc] */ 4237 MEM32(ecx) = eax; /* 0x47023439: mov dword ptr [ecx], eax */ 4238 PUSH32(esp, edx); /* 0x4702343B: push edx */ 4239 eax = esp + 0x18; /* 0x4702343C: lea eax, [esp + 0x18] */ 4240 PUSH32(esp, eax); /* 0x47023440: push eax */ 4241 MEM8(esp + 0x5C) = (uint8_t)(4); /* 0x47023441: mov byte ptr [esp + 0x5c], 4 */ 4242 RECOMP_ICALL(0x470264C0u); /* 0x47023446: call 0x470264c0 */ /* not lifted */ 4243 RECOMP_FLAGS_IN(); 4244 /* test eax, eax */ /* 0x4702344B: test eax, eax */ 4245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4246 _cf = 0; 4247 _flag_k = FK_TEST; 4248 if (TEST_NZ(_flag_a, _flag_b)) goto L_4702347C; /* 0x4702344D: jne 0x4702347c */ 4249 L_4702344F: 4250 PUSH32(esp, ebp); /* 0x4702344F: push ebp */ 4251 PUSH32(esp, ebp); /* 0x47023450: push ebp */ 4252 PUSH32(esp, ebp); /* 0x47023451: push ebp */ 4253 ecx = esp + 0x30; /* 0x47023452: lea ecx, [esp + 0x30] */ 4254 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x47023456: mov dword ptr [esp + 0x60], 0xffffffff */ 4255 RECOMP_ICALL(0x470802D0u); /* 0x4702345E: call 0x470802d0 */ /* not lifted */ 4256 RECOMP_FLAGS_IN(); 4257 esi = POP32_VAL(esp); /* 0x47023463: pop esi */ 4258 ebp = POP32_VAL(esp); /* 0x47023464: pop ebp */ 4259 eax = 0xFFFFFFFDu; /* 0x47023465: mov eax, 0xfffffffd */ 4260 ebx = POP32_VAL(esp); /* 0x4702346A: pop ebx */ 4261 ecx = MEM32(esp + 0x40); /* 0x4702346B: mov ecx, dword ptr [esp + 0x40] */ 4262 MEM32(FS_BASE + (0)) = ecx; /* 0x4702346F: mov dword ptr fs:[0], ecx */ 4263 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 4264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4265 esp = esp + 0x4Cu; /* 0x47023476: add esp, 0x4c */ 4266 _flag_k = FK_ADD; 4267 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47023479: ret 0xc */ 4268 L_4702347C: 4269 /* cmp MEM32(esp + 0x28), ebp */ /* 0x4702347C: cmp dword ptr [esp + 0x28], ebp */ 4270 _flag_a = (uint32_t)(MEM32(esp + 0x28)); _flag_b = (uint32_t)(ebp); 4271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4272 _flag_k = FK_CMP; 4273 PUSH32(esp, edi); /* 0x47023480: push edi */ 4274 if (CMP_EQ(_flag_a, _flag_b)) goto L_470234EA; /* 0x47023481: je 0x470234ea */ 4275 L_47023483: 4276 RECOMP_ICALL(0x4703DAC0u); /* 0x47023483: call 0x4703dac0 */ /* not lifted */ 4277 RECOMP_FLAGS_IN(); 4278 ecx = 0x47105AB0u; /* 0x47023488: mov ecx, 0x47105ab0 */ 4279 /* test ecx, ecx */ /* 0x4702348D: test ecx, ecx */ 4280 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4281 _cf = 0; 4282 _flag_k = FK_TEST; 4283 MEM32(esp + 0x3C) = eax; /* 0x4702348F: mov dword ptr [esp + 0x3c], eax */ 4284 MEM32(esp + 0x40) = ebp; /* 0x47023493: mov dword ptr [esp + 0x40], ebp */ 4285 MEM32(esp + 0x44) = ebp; /* 0x47023497: mov dword ptr [esp + 0x44], ebp */ 4286 MEM32(esp + 0x48) = ebp; /* 0x4702349B: mov dword ptr [esp + 0x48], ebp */ 4287 MEM32(esp + 0x4C) = ebp; /* 0x4702349F: mov dword ptr [esp + 0x4c], ebp */ 4288 if (TEST_Z(_flag_a, _flag_b)) goto L_470234B3; /* 0x470234A3: je 0x470234b3 */ 4289 L_470234A5: 4290 edi = ecx; /* 0x470234A5: mov edi, ecx */ 4291 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4292 ecx = ecx | 0xFFFFFFFFu; /* 0x470234A7: or ecx, 0xffffffff */ 4293 _cf = 0; 4294 _flag_k = FK_TEST; 4295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4296 eax = 0; /* 0x470234AA: xor eax, eax */ 4297 _cf = 0; 4298 _flag_k = FK_TEST; 4299 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; } /* 0x470234AC: repne scasb al, byte ptr es:[edi] */ 4300 ecx = ~ecx; /* 0x470234AE: not ecx */ 4301 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4302 ecx = ecx - 1; /* 0x470234B0: dec ecx */ 4303 _flag_k = FK_DEC; 4304 goto L_470234B5; /* 0x470234B1: jmp 0x470234b5 */ 4305 L_470234B3: 4306 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4307 ecx = 0; /* 0x470234B3: xor ecx, ecx */ 4308 _cf = 0; 4309 _flag_k = FK_TEST; 4310 L_470234B5: 4311 PUSH32(esp, 1); /* 0x470234B5: push 1 */ 4312 PUSH32(esp, ecx); /* 0x470234B7: push ecx */ 4313 PUSH32(esp, 0x47105AB0u); /* 0x470234B8: push 0x47105ab0 */ 4314 ecx = esp + 0x48; /* 0x470234BD: lea ecx, [esp + 0x48] */ 4315 RECOMP_ICALL(0x470802D0u); /* 0x470234C1: call 0x470802d0 */ /* not lifted */ 4316 RECOMP_FLAGS_IN(); 4317 edx = esp + 0x3C; /* 0x470234C6: lea edx, [esp + 0x3c] */ 4318 PUSH32(esp, edx); /* 0x470234CA: push edx */ 4319 ecx = esp + 0x2C; /* 0x470234CB: lea ecx, [esp + 0x2c] */ 4320 MEM8(esp + 0x5C) = (uint8_t)(5); /* 0x470234CF: mov byte ptr [esp + 0x5c], 5 */ 4321 RECOMP_ICALL(0x47080540u); /* 0x470234D4: call 0x47080540 */ /* not lifted */ 4322 RECOMP_FLAGS_IN(); 4323 PUSH32(esp, ebp); /* 0x470234D9: push ebp */ 4324 PUSH32(esp, ebp); /* 0x470234DA: push ebp */ 4325 PUSH32(esp, ebp); /* 0x470234DB: push ebp */ 4326 ecx = esp + 0x48; /* 0x470234DC: lea ecx, [esp + 0x48] */ 4327 MEM8(esp + 0x64) = (uint8_t)(4); /* 0x470234E0: mov byte ptr [esp + 0x64], 4 */ 4328 RECOMP_ICALL(0x470802D0u); /* 0x470234E5: call 0x470802d0 */ /* not lifted */ 4329 RECOMP_FLAGS_IN(); 4330 L_470234EA: 4331 RECOMP_ICALL(0x4703DAC0u); /* 0x470234EA: call 0x4703dac0 */ /* not lifted */ 4332 RECOMP_FLAGS_IN(); 4333 /* cmp esi, ebp */ /* 0x470234EF: cmp esi, ebp */ 4334 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 4335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4336 _flag_k = FK_CMP; 4337 MEM32(esp + 0x3C) = eax; /* 0x470234F1: mov dword ptr [esp + 0x3c], eax */ 4338 MEM32(esp + 0x40) = ebp; /* 0x470234F5: mov dword ptr [esp + 0x40], ebp */ 4339 MEM32(esp + 0x44) = ebp; /* 0x470234F9: mov dword ptr [esp + 0x44], ebp */ 4340 MEM32(esp + 0x48) = ebp; /* 0x470234FD: mov dword ptr [esp + 0x48], ebp */ 4341 MEM32(esp + 0x4C) = ebp; /* 0x47023501: mov dword ptr [esp + 0x4c], ebp */ 4342 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023515; /* 0x47023505: je 0x47023515 */ 4343 L_47023507: 4344 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4345 ecx = ecx | 0xFFFFFFFFu; /* 0x47023507: or ecx, 0xffffffff */ 4346 _cf = 0; 4347 _flag_k = FK_TEST; 4348 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4349 eax = 0; /* 0x4702350A: xor eax, eax */ 4350 _cf = 0; 4351 _flag_k = FK_TEST; 4352 edi = esi; /* 0x4702350C: mov edi, esi */ 4353 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; } /* 0x4702350E: repne scasb al, byte ptr es:[edi] */ 4354 ecx = ~ecx; /* 0x47023510: not ecx */ 4355 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4356 ecx = ecx - 1; /* 0x47023512: dec ecx */ 4357 _flag_k = FK_DEC; 4358 goto L_47023517; /* 0x47023513: jmp 0x47023517 */ 4359 L_47023515: 4360 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4361 ecx = 0; /* 0x47023515: xor ecx, ecx */ 4362 _cf = 0; 4363 _flag_k = FK_TEST; 4364 L_47023517: 4365 PUSH32(esp, 1); /* 0x47023517: push 1 */ 4366 PUSH32(esp, ecx); /* 0x47023519: push ecx */ 4367 PUSH32(esp, esi); /* 0x4702351A: push esi */ 4368 ecx = esp + 0x48; /* 0x4702351B: lea ecx, [esp + 0x48] */ 4369 RECOMP_ICALL(0x470802D0u); /* 0x4702351F: call 0x470802d0 */ /* not lifted */ 4370 RECOMP_FLAGS_IN(); 4371 eax = esp + 0x3C; /* 0x47023524: lea eax, [esp + 0x3c] */ 4372 PUSH32(esp, eax); /* 0x47023528: push eax */ 4373 ecx = esp + 0x2C; /* 0x47023529: lea ecx, [esp + 0x2c] */ 4374 MEM8(esp + 0x5C) = (uint8_t)(6); /* 0x4702352D: mov byte ptr [esp + 0x5c], 6 */ 4375 RECOMP_ICALL(0x47080540u); /* 0x47023532: call 0x47080540 */ /* not lifted */ 4376 RECOMP_FLAGS_IN(); 4377 PUSH32(esp, ebp); /* 0x47023537: push ebp */ 4378 PUSH32(esp, ebp); /* 0x47023538: push ebp */ 4379 PUSH32(esp, ebp); /* 0x47023539: push ebp */ 4380 ecx = esp + 0x48; /* 0x4702353A: lea ecx, [esp + 0x48] */ 4381 MEM8(esp + 0x64) = (uint8_t)(4); /* 0x4702353E: mov byte ptr [esp + 0x64], 4 */ 4382 RECOMP_ICALL(0x470802D0u); /* 0x47023543: call 0x470802d0 */ /* not lifted */ 4383 RECOMP_FLAGS_IN(); 4384 edx = MEM32(ebx + 0x8); /* 0x47023548: mov edx, dword ptr [ebx + 8] */ 4385 ebp = MEM32(edx); /* 0x4702354B: mov ebp, dword ptr [edx] */ 4386 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4387 ecx = ecx | 0xFFFFFFFFu; /* 0x4702354D: or ecx, 0xffffffff */ 4388 _cf = 0; 4389 _flag_k = FK_TEST; 4390 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4391 eax = 0; /* 0x47023550: xor eax, eax */ 4392 _cf = 0; 4393 _flag_k = FK_TEST; 4394 edi = esi; /* 0x47023552: mov edi, esi */ 4395 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; } /* 0x47023554: repne scasb al, byte ptr es:[edi] */ 4396 ecx = ~ecx; /* 0x47023556: not ecx */ 4397 PUSH32(esp, ecx); /* 0x47023558: push ecx */ 4398 ecx = edx; /* 0x47023559: mov ecx, edx */ 4399 RECOMP_ICALL(MEM32(ebp + 0x4)); /* 0x4702355B: call dword ptr [ebp + 4] */ 4400 RECOMP_FLAGS_IN(); 4401 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4402 ecx = ecx | 0xFFFFFFFFu; /* 0x4702355E: or ecx, 0xffffffff */ 4403 _cf = 0; 4404 _flag_k = FK_TEST; 4405 ebp = eax; /* 0x47023561: mov ebp, eax */ 4406 edi = esi; /* 0x47023563: mov edi, esi */ 4407 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4408 eax = 0; /* 0x47023565: xor eax, eax */ 4409 _cf = 0; 4410 _flag_k = FK_TEST; 4411 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; } /* 0x47023567: repne scasb al, byte ptr es:[edi] */ 4412 ecx = ~ecx; /* 0x47023569: not ecx */ 4413 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4415 edi = edi - ecx; /* 0x4702356B: sub edi, ecx */ 4416 _flag_k = FK_CMP; 4417 edx = ecx; /* 0x4702356D: mov edx, ecx */ 4418 esi = edi; /* 0x4702356F: mov esi, edi */ 4419 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47023571: shr ecx, 2 */ 4420 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4421 ecx = ecx >> 2u; /* 0x47023571: shr ecx, 2 */ 4422 edi = ebp; /* 0x47023574: mov edi, ebp */ 4423 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47023576: 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; } 4424 ecx = edx; /* 0x47023578: mov ecx, edx */ 4425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4426 ecx = ecx & 3; /* 0x4702357A: and ecx, 3 */ 4427 _cf = 0; 4428 _flag_k = FK_TEST; 4429 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4702357D: 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; } 4430 MEM32(esp + 0x1C) = ebp; /* 0x4702357F: mov dword ptr [esp + 0x1c], ebp */ 4431 eax = MEM32(ebx + 0x8); /* 0x47023583: mov eax, dword ptr [ebx + 8] */ 4432 ecx = MEM32(esp + 0x24); /* 0x47023586: mov ecx, dword ptr [esp + 0x24] */ 4433 MEM32(ecx) = eax; /* 0x4702358A: mov dword ptr [ecx], eax */ 4434 eax = esp + 0x60; /* 0x4702358C: lea eax, [esp + 0x60] */ 4435 PUSH32(esp, eax); /* 0x47023590: push eax */ 4436 edx = esp + 0x14; /* 0x47023591: lea edx, [esp + 0x14] */ 4437 PUSH32(esp, edx); /* 0x47023595: push edx */ 4438 eax = esp + 0x24; /* 0x47023596: lea eax, [esp + 0x24] */ 4439 PUSH32(esp, eax); /* 0x4702359A: push eax */ 4440 MEM8(esp + 0x64) = (uint8_t)(7); /* 0x4702359B: mov byte ptr [esp + 0x64], 7 */ 4441 RECOMP_ICALL(0x47027670u); /* 0x470235A0: call 0x47027670 */ /* not lifted */ 4442 RECOMP_FLAGS_IN(); 4443 /* test eax, eax */ /* 0x470235A5: test eax, eax */ 4444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4445 _cf = 0; 4446 _flag_k = FK_TEST; 4447 edi = POP32_VAL(esp); /* 0x470235A7: pop edi */ 4448 if (TEST_Z(_flag_a, _flag_b)) goto L_470235E5; /* 0x470235A8: je 0x470235e5 */ 4449 L_470235AA: 4450 ebx = MEM32(ebx + 0x8); /* 0x470235AA: mov ebx, dword ptr [ebx + 8] */ 4451 edx = MEM32(ebx); /* 0x470235AD: mov edx, dword ptr [ebx] */ 4452 PUSH32(esp, ebp); /* 0x470235AF: push ebp */ 4453 ecx = ebx; /* 0x470235B0: mov ecx, ebx */ 4454 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470235B2: call dword ptr [edx + 0xc] */ 4455 RECOMP_FLAGS_IN(); 4456 PUSH32(esp, 0); /* 0x470235B5: push 0 */ 4457 PUSH32(esp, 0); /* 0x470235B7: push 0 */ 4458 PUSH32(esp, 0); /* 0x470235B9: push 0 */ 4459 ecx = esp + 0x30; /* 0x470235BB: lea ecx, [esp + 0x30] */ 4460 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x470235BF: mov dword ptr [esp + 0x60], 0xffffffff */ 4461 RECOMP_ICALL(0x470802D0u); /* 0x470235C7: call 0x470802d0 */ /* not lifted */ 4462 RECOMP_FLAGS_IN(); 4463 esi = POP32_VAL(esp); /* 0x470235CC: pop esi */ 4464 ebp = POP32_VAL(esp); /* 0x470235CD: pop ebp */ 4465 eax = 0xFFFFFFFCu; /* 0x470235CE: mov eax, 0xfffffffc */ 4466 ebx = POP32_VAL(esp); /* 0x470235D3: pop ebx */ 4467 ecx = MEM32(esp + 0x40); /* 0x470235D4: mov ecx, dword ptr [esp + 0x40] */ 4468 MEM32(FS_BASE + (0)) = ecx; /* 0x470235D8: mov dword ptr fs:[0], ecx */ 4469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 4470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4471 esp = esp + 0x4Cu; /* 0x470235DF: add esp, 0x4c */ 4472 _flag_k = FK_ADD; 4473 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470235E2: ret 0xc */ 4474 L_470235E5: 4475 eax = MEM32(esp + 0x64); /* 0x470235E5: mov eax, dword ptr [esp + 0x64] */ 4476 PUSH32(esp, eax); /* 0x470235E9: push eax */ 4477 ecx = esp + 0x28; /* 0x470235EA: lea ecx, [esp + 0x28] */ 4478 PUSH32(esp, ecx); /* 0x470235EE: push ecx */ 4479 ecx = ebx; /* 0x470235EF: mov ecx, ebx */ 4480 RECOMP_ICALL(0x47023630u); /* 0x470235F1: call 0x47023630 */ /* not lifted */ 4481 RECOMP_FLAGS_IN(); 4482 PUSH32(esp, 0); /* 0x470235F6: push 0 */ 4483 PUSH32(esp, 0); /* 0x470235F8: push 0 */ 4484 PUSH32(esp, 0); /* 0x470235FA: push 0 */ 4485 ecx = esp + 0x30; /* 0x470235FC: lea ecx, [esp + 0x30] */ 4486 esi = eax; /* 0x47023600: mov esi, eax */ 4487 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x47023602: mov dword ptr [esp + 0x60], 0xffffffff */ 4488 RECOMP_ICALL(0x470802D0u); /* 0x4702360A: call 0x470802d0 */ /* not lifted */ 4489 RECOMP_FLAGS_IN(); 4490 ecx = MEM32(esp + 0x4C); /* 0x4702360F: mov ecx, dword ptr [esp + 0x4c] */ 4491 eax = esi; /* 0x47023613: mov eax, esi */ 4492 esi = POP32_VAL(esp); /* 0x47023615: pop esi */ 4493 ebp = POP32_VAL(esp); /* 0x47023616: pop ebp */ 4494 ebx = POP32_VAL(esp); /* 0x47023617: pop ebx */ 4495 MEM32(FS_BASE + (0)) = ecx; /* 0x47023618: mov dword ptr fs:[0], ecx */ 4496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 4497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4498 esp = esp + 0x4Cu; /* 0x4702361F: add esp, 0x4c */ 4499 _flag_k = FK_ADD; 4500 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47023622: ret 0xc */ 4501 RECOMP_REGS_OUT(); 4502 } 4503 4504 void sub_47023630(void) { 4505 int _fpu_cmp = 0; 4506 uint32_t _cf = 0; 4507 int _df = 1; 4508 uint32_t _flag_k = FK_NONE; 4509 uint32_t _flag_a = 0, _flag_b = 0; 4510 uint32_t _itail_tgt = 0; 4511 RECOMP_REGS_LOCALS 4512 RECOMP_ENTER(0x47023630u); 4513 4514 L_47023630: 4515 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023630: push -1 */ 4516 PUSH32(esp, 0x470A4885u); /* 0x47023632: push 0x470a4885 */ 4517 eax = MEM32(FS_BASE + (0)); /* 0x47023637: mov eax, dword ptr fs:[0] */ 4518 PUSH32(esp, eax); /* 0x4702363D: push eax */ 4519 MEM32(FS_BASE + (0)) = esp; /* 0x4702363E: mov dword ptr fs:[0], esp */ 4520 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 4521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4522 esp = esp - 0x18u; /* 0x47023645: sub esp, 0x18 */ 4523 _flag_k = FK_CMP; 4524 PUSH32(esp, ebx); /* 0x47023648: push ebx */ 4525 ebx = MEM32(esp + 0x2C); /* 0x47023649: mov ebx, dword ptr [esp + 0x2c] */ 4526 eax = MEM32(ebx + 0x4); /* 0x4702364D: mov eax, dword ptr [ebx + 4] */ 4527 PUSH32(esp, ebp); /* 0x47023650: push ebp */ 4528 PUSH32(esp, esi); /* 0x47023651: push esi */ 4529 ebp = ecx; /* 0x47023652: mov ebp, ecx */ 4530 ecx = MEM32(ebp + 0x8); /* 0x47023654: mov ecx, dword ptr [ebp + 8] */ 4531 edx = MEM32(ecx); /* 0x47023657: mov edx, dword ptr [ecx] */ 4532 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4533 eax = eax + 1; /* 0x47023659: inc eax */ 4534 _flag_k = FK_INC; 4535 PUSH32(esp, edi); /* 0x4702365A: push edi */ 4536 PUSH32(esp, eax); /* 0x4702365B: push eax */ 4537 MEM32(esp + 0x18) = eax; /* 0x4702365C: mov dword ptr [esp + 0x18], eax */ 4538 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47023660: call dword ptr [edx + 4] */ 4539 RECOMP_FLAGS_IN(); 4540 /* test eax, eax */ /* 0x47023663: test eax, eax */ 4541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4542 _cf = 0; 4543 _flag_k = FK_TEST; 4544 MEM32(esp + 0x38) = eax; /* 0x47023665: mov dword ptr [esp + 0x38], eax */ 4545 if (TEST_NZ(_flag_a, _flag_b)) goto L_47023673; /* 0x47023669: jne 0x47023673 */ 4546 L_4702366B: 4547 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4548 eax = eax | 0xFFFFFFFFu; /* 0x4702366B: or eax, 0xffffffff */ 4549 _cf = 0; 4550 _flag_k = FK_TEST; 4551 goto L_470238A6; /* 0x4702366E: jmp 0x470238a6 */ 4552 L_47023673: 4553 eax = MEM32(ebx + 0x4); /* 0x47023673: mov eax, dword ptr [ebx + 4] */ 4554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4555 eax = eax + 1; /* 0x47023676: inc eax */ 4556 _flag_k = FK_INC; 4557 PUSH32(esp, eax); /* 0x47023677: push eax */ 4558 RECOMP_ICALL(0x470A33F2u); /* 0x47023678: call 0x470a33f2 */ /* not lifted */ 4559 RECOMP_FLAGS_IN(); 4560 esi = eax; /* 0x4702367D: mov esi, eax */ 4561 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4563 esp = esp + 4; /* 0x4702367F: add esp, 4 */ 4564 _flag_k = FK_ADD; 4565 /* test esi, esi */ /* 0x47023682: test esi, esi */ 4566 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4567 _cf = 0; 4568 _flag_k = FK_TEST; 4569 if (TEST_NZ(_flag_a, _flag_b)) goto L_47023694; /* 0x47023684: jne 0x47023694 */ 4570 L_47023686: 4571 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023686: call dword ptr [0x470ac3c8] */ 4572 RECOMP_FLAGS_IN(); 4573 MEM32(eax) = 0xCu; /* 0x4702368C: mov dword ptr [eax], 0xc */ 4574 goto L_470236AD; /* 0x47023692: jmp 0x470236ad */ 4575 L_47023694: 4576 eax = MEM32(ebx + 0x4); /* 0x47023694: mov eax, dword ptr [ebx + 4] */ 4577 ecx = MEM32(ebx + 0xC); /* 0x47023697: mov ecx, dword ptr [ebx + 0xc] */ 4578 PUSH32(esp, eax); /* 0x4702369A: push eax */ 4579 PUSH32(esp, ecx); /* 0x4702369B: push ecx */ 4580 PUSH32(esp, esi); /* 0x4702369C: push esi */ 4581 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4702369D: call dword ptr [0x470ac22c] */ 4582 RECOMP_FLAGS_IN(); 4583 ecx = MEM32(ebx + 0x4); /* 0x470236A3: mov ecx, dword ptr [ebx + 4] */ 4584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4586 esp = esp + 0xCu; /* 0x470236A6: add esp, 0xc */ 4587 _flag_k = FK_ADD; 4588 MEM8(esi + ecx) = (uint8_t)(0); /* 0x470236A9: mov byte ptr [esi + ecx], 0 */ 4589 L_470236AD: 4590 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4591 ecx = ecx | 0xFFFFFFFFu; /* 0x470236AD: or ecx, 0xffffffff */ 4592 _cf = 0; 4593 _flag_k = FK_TEST; 4594 edi = esi; /* 0x470236B0: mov edi, esi */ 4595 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4596 eax = 0; /* 0x470236B2: xor eax, eax */ 4597 _cf = 0; 4598 _flag_k = FK_TEST; 4599 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; } /* 0x470236B4: repne scasb al, byte ptr es:[edi] */ 4600 ecx = ~ecx; /* 0x470236B6: not ecx */ 4601 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4603 edi = edi - ecx; /* 0x470236B8: sub edi, ecx */ 4604 _flag_k = FK_CMP; 4605 edx = ecx; /* 0x470236BA: mov edx, ecx */ 4606 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x470236BC: shr ecx, 2 */ 4607 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4608 ecx = ecx >> 2u; /* 0x470236BC: shr ecx, 2 */ 4609 esi = edi; /* 0x470236BF: mov esi, edi */ 4610 edi = MEM32(esp + 0x38); /* 0x470236C1: mov edi, dword ptr [esp + 0x38] */ 4611 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x470236C5: 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; } 4612 ecx = edx; /* 0x470236C7: mov ecx, edx */ 4613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4614 ecx = ecx & 3; /* 0x470236C9: and ecx, 3 */ 4615 _cf = 0; 4616 _flag_k = FK_TEST; 4617 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x470236CC: 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; } 4618 ecx = MEM32(ebp + 0x8); /* 0x470236CE: mov ecx, dword ptr [ebp + 8] */ 4619 eax = MEM32(ecx); /* 0x470236D1: mov eax, dword ptr [ecx] */ 4620 PUSH32(esp, 0x14u); /* 0x470236D3: push 0x14 */ 4621 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470236D5: call dword ptr [eax + 4] */ 4622 RECOMP_FLAGS_IN(); 4623 edi = eax; /* 0x470236D8: mov edi, eax */ 4624 /* test edi, edi */ /* 0x470236DA: test edi, edi */ 4625 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4626 _cf = 0; 4627 _flag_k = FK_TEST; 4628 if (TEST_NZ(_flag_a, _flag_b)) goto L_470236E6; /* 0x470236DC: jne 0x470236e6 */ 4629 L_470236DE: 4630 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4631 eax = eax | 0xFFFFFFFFu; /* 0x470236DE: or eax, 0xffffffff */ 4632 _cf = 0; 4633 _flag_k = FK_TEST; 4634 goto L_470238A6; /* 0x470236E1: jmp 0x470238a6 */ 4635 L_470236E6: 4636 eax = MEM32(ebp + 0x10); /* 0x470236E6: mov eax, dword ptr [ebp + 0x10] */ 4637 MEM32(esp + 0x18) = edi; /* 0x470236E9: mov dword ptr [esp + 0x18], edi */ 4638 MEM32(esp + 0x1C) = edi; /* 0x470236ED: mov dword ptr [esp + 0x1c], edi */ 4639 ecx = MEM32(ebp + 0x8); /* 0x470236F1: mov ecx, dword ptr [ebp + 8] */ 4640 PUSH32(esp, ecx); /* 0x470236F4: push ecx */ 4641 PUSH32(esp, eax); /* 0x470236F5: push eax */ 4642 ecx = edi; /* 0x470236F6: mov ecx, edi */ 4643 MEM32(esp + 0x38) = 0; /* 0x470236F8: mov dword ptr [esp + 0x38], 0 */ 4644 RECOMP_ICALL(0x47027300u); /* 0x47023700: call 0x47027300 */ /* not lifted */ 4645 RECOMP_FLAGS_IN(); 4646 ecx = MEM32(ebp + 0x8); /* 0x47023705: mov ecx, dword ptr [ebp + 8] */ 4647 edx = MEM32(ecx); /* 0x47023708: mov edx, dword ptr [ecx] */ 4648 PUSH32(esp, 0x14u); /* 0x4702370A: push 0x14 */ 4649 MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x4702370C: mov dword ptr [esp + 0x34], 0xffffffff */ 4650 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47023714: call dword ptr [edx + 4] */ 4651 RECOMP_FLAGS_IN(); 4652 esi = eax; /* 0x47023717: mov esi, eax */ 4653 /* test esi, esi */ /* 0x47023719: test esi, esi */ 4654 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4655 _cf = 0; 4656 _flag_k = FK_TEST; 4657 if (TEST_NZ(_flag_a, _flag_b)) goto L_47023725; /* 0x4702371B: jne 0x47023725 */ 4658 L_4702371D: 4659 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 4660 eax = eax | 0xFFFFFFFFu; /* 0x4702371D: or eax, 0xffffffff */ 4661 _cf = 0; 4662 _flag_k = FK_TEST; 4663 goto L_470238A6; /* 0x47023720: jmp 0x470238a6 */ 4664 L_47023725: 4665 eax = MEM32(ebp + 0x10); /* 0x47023725: mov eax, dword ptr [ebp + 0x10] */ 4666 MEM32(esp + 0x1C) = esi; /* 0x47023728: mov dword ptr [esp + 0x1c], esi */ 4667 MEM32(esp + 0x18) = esi; /* 0x4702372C: mov dword ptr [esp + 0x18], esi */ 4668 ecx = MEM32(ebp + 0x8); /* 0x47023730: mov ecx, dword ptr [ebp + 8] */ 4669 PUSH32(esp, ecx); /* 0x47023733: push ecx */ 4670 PUSH32(esp, eax); /* 0x47023734: push eax */ 4671 ecx = esi; /* 0x47023735: mov ecx, esi */ 4672 MEM32(esp + 0x38) = 1; /* 0x47023737: mov dword ptr [esp + 0x38], 1 */ 4673 RECOMP_ICALL(0x470271C0u); /* 0x4702373F: call 0x470271c0 */ /* not lifted */ 4674 RECOMP_FLAGS_IN(); 4675 eax = MEM32(esp + 0x38); /* 0x47023744: mov eax, dword ptr [esp + 0x38] */ 4676 MEM32(esp + 0x10) = eax; /* 0x47023748: mov dword ptr [esp + 0x10], eax */ 4677 MEM32(esp + 0x30) = 2; /* 0x4702374C: mov dword ptr [esp + 0x30], 2 */ 4678 MEM32(esp + 0x20) = edi; /* 0x47023754: mov dword ptr [esp + 0x20], edi */ 4679 MEM32(esp + 0x24) = esi; /* 0x47023758: mov dword ptr [esp + 0x24], esi */ 4680 eax = MEM32(ebp + 0x8); /* 0x4702375C: mov eax, dword ptr [ebp + 8] */ 4681 ecx = MEM32(ebp + 0xC); /* 0x4702375F: mov ecx, dword ptr [ebp + 0xc] */ 4682 edx = esp + 0x1C; /* 0x47023762: lea edx, [esp + 0x1c] */ 4683 PUSH32(esp, edx); /* 0x47023766: push edx */ 4684 MEM32(ecx) = eax; /* 0x47023767: mov dword ptr [ecx], eax */ 4685 eax = esp + 0x24; /* 0x47023769: lea eax, [esp + 0x24] */ 4686 PUSH32(esp, eax); /* 0x4702376D: push eax */ 4687 edx = esp + 0x18; /* 0x4702376E: lea edx, [esp + 0x18] */ 4688 PUSH32(esp, edx); /* 0x47023772: push edx */ 4689 MEM8(esp + 0x3C) = (uint8_t)(3); /* 0x47023773: mov byte ptr [esp + 0x3c], 3 */ 4690 RECOMP_ICALL(0x47028360u); /* 0x47023778: call 0x47028360 */ /* not lifted */ 4691 RECOMP_FLAGS_IN(); 4692 edi = eax; /* 0x4702377D: mov edi, eax */ 4693 /* cmp edi, 1 */ /* 0x4702377F: cmp edi, 1 */ 4694 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4696 _flag_k = FK_CMP; 4697 if (CMP_NE(_flag_a, _flag_b)) goto L_4702379B; /* 0x47023782: jne 0x4702379b */ 4698 L_47023784: 4699 ebp = MEM32(ebp + 0x8); /* 0x47023784: mov ebp, dword ptr [ebp + 8] */ 4700 ecx = MEM32(esp + 0x38); /* 0x47023787: mov ecx, dword ptr [esp + 0x38] */ 4701 eax = MEM32(ebp); /* 0x4702378B: mov eax, dword ptr [ebp] */ 4702 PUSH32(esp, ecx); /* 0x4702378E: push ecx */ 4703 ecx = ebp; /* 0x4702378F: mov ecx, ebp */ 4704 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47023791: call dword ptr [eax + 0xc] */ 4705 RECOMP_FLAGS_IN(); 4706 eax = edi; /* 0x47023794: mov eax, edi */ 4707 goto L_470238A6; /* 0x47023796: jmp 0x470238a6 */ 4708 L_4702379B: 4709 /* cmp edi, 0xFFFFFFFFu */ /* 0x4702379B: cmp edi, -1 */ 4710 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu); 4711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4712 _flag_k = FK_CMP; 4713 ebp = MEM32(ebp + 0x8); /* 0x4702379E: mov ebp, dword ptr [ebp + 8] */ 4714 edx = MEM32(ebp); /* 0x470237A1: mov edx, dword ptr [ebp] */ 4715 if (CMP_NE(_flag_a, _flag_b)) goto L_470237B2; /* 0x470237A4: jne 0x470237b2 */ 4716 L_470237A6: 4717 eax = MEM32(esp + 0x38); /* 0x470237A6: mov eax, dword ptr [esp + 0x38] */ 4718 PUSH32(esp, eax); /* 0x470237AA: push eax */ 4719 ecx = ebp; /* 0x470237AB: mov ecx, ebp */ 4720 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470237AD: call dword ptr [edx + 0xc] */ 4721 RECOMP_FLAGS_IN(); 4722 goto L_470237C3; /* 0x470237B0: jmp 0x470237c3 */ 4723 L_470237B2: 4724 eax = MEM32(esp + 0x14); /* 0x470237B2: mov eax, dword ptr [esp + 0x14] */ 4725 ecx = MEM32(esp + 0x38); /* 0x470237B6: mov ecx, dword ptr [esp + 0x38] */ 4726 PUSH32(esp, 0); /* 0x470237BA: push 0 */ 4727 PUSH32(esp, eax); /* 0x470237BC: push eax */ 4728 PUSH32(esp, ecx); /* 0x470237BD: push ecx */ 4729 ecx = ebp; /* 0x470237BE: mov ecx, ebp */ 4730 RECOMP_ICALL(MEM32(edx + 0x2C)); /* 0x470237C0: call dword ptr [edx + 0x2c] */ 4731 RECOMP_FLAGS_IN(); 4732 L_470237C3: 4733 PUSH32(esp, 0x14u); /* 0x470237C3: push 0x14 */ 4734 MEM32(esp + 0x34) = 0xFFFFFFFFu; /* 0x470237C5: mov dword ptr [esp + 0x34], 0xffffffff */ 4735 RECOMP_ICALL(0x470A33F2u); /* 0x470237CD: call 0x470a33f2 */ /* not lifted */ 4736 RECOMP_FLAGS_IN(); 4737 esi = eax; /* 0x470237D2: mov esi, eax */ 4738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4740 esp = esp + 4; /* 0x470237D4: add esp, 4 */ 4741 _flag_k = FK_ADD; 4742 MEM32(esp + 0x38) = esi; /* 0x470237D7: mov dword ptr [esp + 0x38], esi */ 4743 /* test esi, esi */ /* 0x470237DB: test esi, esi */ 4744 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4745 _cf = 0; 4746 _flag_k = FK_TEST; 4747 MEM32(esp + 0x30) = 4; /* 0x470237DD: mov dword ptr [esp + 0x30], 4 */ 4748 if (TEST_Z(_flag_a, _flag_b)) goto L_47023846; /* 0x470237E5: je 0x47023846 */ 4749 L_470237E7: 4750 edx = MEM32(ebx + 0x4); /* 0x470237E7: mov edx, dword ptr [ebx + 4] */ 4751 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4752 edx = edx + 1; /* 0x470237EA: inc edx */ 4753 _flag_k = FK_INC; 4754 PUSH32(esp, edx); /* 0x470237EB: push edx */ 4755 RECOMP_ICALL(0x470A33F2u); /* 0x470237EC: call 0x470a33f2 */ /* not lifted */ 4756 RECOMP_FLAGS_IN(); 4757 ebp = eax; /* 0x470237F1: mov ebp, eax */ 4758 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4760 esp = esp + 4; /* 0x470237F3: add esp, 4 */ 4761 _flag_k = FK_ADD; 4762 /* test ebp, ebp */ /* 0x470237F6: test ebp, ebp */ 4763 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp); 4764 _cf = 0; 4765 _flag_k = FK_TEST; 4766 if (TEST_NZ(_flag_a, _flag_b)) goto L_4702380A; /* 0x470237F8: jne 0x4702380a */ 4767 L_470237FA: 4768 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470237FA: call dword ptr [0x470ac3c8] */ 4769 RECOMP_FLAGS_IN(); 4770 MEM32(eax) = 0xCu; /* 0x47023800: mov dword ptr [eax], 0xc */ 4771 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4772 eax = 0; /* 0x47023806: xor eax, eax */ 4773 _cf = 0; 4774 _flag_k = FK_TEST; 4775 goto L_47023825; /* 0x47023808: jmp 0x47023825 */ 4776 L_4702380A: 4777 eax = MEM32(ebx + 0x4); /* 0x4702380A: mov eax, dword ptr [ebx + 4] */ 4778 ecx = MEM32(ebx + 0xC); /* 0x4702380D: mov ecx, dword ptr [ebx + 0xc] */ 4779 PUSH32(esp, eax); /* 0x47023810: push eax */ 4780 PUSH32(esp, ecx); /* 0x47023811: push ecx */ 4781 PUSH32(esp, ebp); /* 0x47023812: push ebp */ 4782 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47023813: call dword ptr [0x470ac22c] */ 4783 RECOMP_FLAGS_IN(); 4784 eax = MEM32(ebx + 0x4); /* 0x47023819: mov eax, dword ptr [ebx + 4] */ 4785 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4786 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4787 esp = esp + 0xCu; /* 0x4702381C: add esp, 0xc */ 4788 _flag_k = FK_ADD; 4789 MEM8(eax + ebp) = (uint8_t)(0); /* 0x4702381F: mov byte ptr [eax + ebp], 0 */ 4790 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4791 eax = 0; /* 0x47023823: xor eax, eax */ 4792 _cf = 0; 4793 _flag_k = FK_TEST; 4794 L_47023825: 4795 PUSH32(esp, ebp); /* 0x47023825: push ebp */ 4796 MEM32(esi + 0x4) = eax; /* 0x47023826: mov dword ptr [esi + 4], eax */ 4797 MEM32(esi + 0x8) = eax; /* 0x47023829: mov dword ptr [esi + 8], eax */ 4798 MEM32(esi + 0xC) = eax; /* 0x4702382C: mov dword ptr [esi + 0xc], eax */ 4799 MEM32(esi + 0x10) = eax; /* 0x4702382F: mov dword ptr [esi + 0x10], eax */ 4800 MEM32(esi) = 0x470ACFDCu; /* 0x47023832: mov dword ptr [esi], 0x470acfdc */ 4801 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47023838: call dword ptr [0x470ac3f4] */ 4802 RECOMP_FLAGS_IN(); 4803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4805 esp = esp + 4; /* 0x4702383E: add esp, 4 */ 4806 _flag_k = FK_ADD; 4807 MEM32(esi + 0x8) = eax; /* 0x47023841: mov dword ptr [esi + 8], eax */ 4808 goto L_47023848; /* 0x47023844: jmp 0x47023848 */ 4809 L_47023846: 4810 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4811 esi = 0; /* 0x47023846: xor esi, esi */ 4812 _cf = 0; 4813 _flag_k = FK_TEST; 4814 L_47023848: 4815 _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu)); 4816 ebp = ebp | 0xFFFFFFFFu; /* 0x47023848: or ebp, 0xffffffff */ 4817 _cf = 0; 4818 _flag_k = FK_TEST; 4819 /* test esi, esi */ /* 0x4702384B: test esi, esi */ 4820 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4821 _cf = 0; 4822 _flag_k = FK_TEST; 4823 MEM32(esp + 0x30) = ebp; /* 0x4702384D: mov dword ptr [esp + 0x30], ebp */ 4824 if (TEST_NZ(_flag_a, _flag_b)) goto L_47023866; /* 0x47023851: jne 0x47023866 */ 4825 L_47023853: 4826 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023853: call dword ptr [0x470ac3c8] */ 4827 RECOMP_FLAGS_IN(); 4828 MEM32(eax) = 0xCu; /* 0x47023859: mov dword ptr [eax], 0xc */ 4829 eax = 0xFFFFFFFEu; /* 0x4702385F: mov eax, 0xfffffffe */ 4830 goto L_470238A6; /* 0x47023864: jmp 0x470238a6 */ 4831 L_47023866: 4832 edx = MEM32(esi); /* 0x47023866: mov edx, dword ptr [esi] */ 4833 ecx = esi; /* 0x47023868: mov ecx, esi */ 4834 MEM32(esp + 0x38) = esi; /* 0x4702386A: mov dword ptr [esp + 0x38], esi */ 4835 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x4702386E: call dword ptr [edx + 4] */ 4836 RECOMP_FLAGS_IN(); 4837 ebx = MEM32(esp + 0x3C); /* 0x47023871: mov ebx, dword ptr [esp + 0x3c] */ 4838 eax = esp + 0x38; /* 0x47023875: lea eax, [esp + 0x38] */ 4839 /* cmp ebx, eax */ /* 0x47023879: cmp ebx, eax */ 4840 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4842 _flag_k = FK_CMP; 4843 MEM32(esp + 0x30) = 5; /* 0x4702387B: mov dword ptr [esp + 0x30], 5 */ 4844 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023899; /* 0x47023883: je 0x47023899 */ 4845 L_47023885: 4846 ecx = MEM32(ebx); /* 0x47023885: mov ecx, dword ptr [ebx] */ 4847 /* test ecx, ecx */ /* 0x47023887: test ecx, ecx */ 4848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4849 _cf = 0; 4850 _flag_k = FK_TEST; 4851 if (TEST_Z(_flag_a, _flag_b)) goto L_47023890; /* 0x47023889: je 0x47023890 */ 4852 L_4702388B: 4853 edx = MEM32(ecx); /* 0x4702388B: mov edx, dword ptr [ecx] */ 4854 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4702388D: call dword ptr [edx + 8] */ 4855 RECOMP_FLAGS_IN(); 4856 L_47023890: 4857 MEM32(ebx) = esi; /* 0x47023890: mov dword ptr [ebx], esi */ 4858 eax = MEM32(esi); /* 0x47023892: mov eax, dword ptr [esi] */ 4859 ecx = esi; /* 0x47023894: mov ecx, esi */ 4860 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47023896: call dword ptr [eax + 4] */ 4861 RECOMP_FLAGS_IN(); 4862 L_47023899: 4863 edx = MEM32(esi); /* 0x47023899: mov edx, dword ptr [esi] */ 4864 ecx = esi; /* 0x4702389B: mov ecx, esi */ 4865 MEM32(esp + 0x30) = ebp; /* 0x4702389D: mov dword ptr [esp + 0x30], ebp */ 4866 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x470238A1: call dword ptr [edx + 8] */ 4867 RECOMP_FLAGS_IN(); 4868 eax = edi; /* 0x470238A4: mov eax, edi */ 4869 L_470238A6: 4870 ecx = MEM32(esp + 0x28); /* 0x470238A6: mov ecx, dword ptr [esp + 0x28] */ 4871 edi = POP32_VAL(esp); /* 0x470238AA: pop edi */ 4872 esi = POP32_VAL(esp); /* 0x470238AB: pop esi */ 4873 ebp = POP32_VAL(esp); /* 0x470238AC: pop ebp */ 4874 ebx = POP32_VAL(esp); /* 0x470238AD: pop ebx */ 4875 MEM32(FS_BASE + (0)) = ecx; /* 0x470238AE: mov dword ptr fs:[0], ecx */ 4876 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 4877 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4878 esp = esp + 0x24u; /* 0x470238B5: add esp, 0x24 */ 4879 _flag_k = FK_ADD; 4880 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470238B8: ret 8 */ 4881 RECOMP_REGS_OUT(); 4882 } 4883 4884 void sub_470238A6(void) { 4885 int _fpu_cmp = 0; 4886 uint32_t _cf = 0; 4887 int _df = 1; 4888 uint32_t _flag_k = FK_NONE; 4889 uint32_t _flag_a = 0, _flag_b = 0; 4890 uint32_t _itail_tgt = 0; 4891 RECOMP_REGS_LOCALS 4892 RECOMP_ENTER(0x470238A6u); 4893 4894 L_470238A6: 4895 ecx = MEM32(esp + 0x28); /* 0x470238A6: mov ecx, dword ptr [esp + 0x28] */ 4896 edi = POP32_VAL(esp); /* 0x470238AA: pop edi */ 4897 esi = POP32_VAL(esp); /* 0x470238AB: pop esi */ 4898 ebp = POP32_VAL(esp); /* 0x470238AC: pop ebp */ 4899 ebx = POP32_VAL(esp); /* 0x470238AD: pop ebx */ 4900 MEM32(FS_BASE + (0)) = ecx; /* 0x470238AE: mov dword ptr fs:[0], ecx */ 4901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u); 4902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4903 esp = esp + 0x24u; /* 0x470238B5: add esp, 0x24 */ 4904 _flag_k = FK_ADD; 4905 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470238B8: ret 8 */ 4906 RECOMP_REGS_OUT(); 4907 } 4908 4909 void sub_470238C0(void) { 4910 int _fpu_cmp = 0; 4911 uint32_t _cf = 0; 4912 int _df = 1; 4913 uint32_t _flag_k = FK_NONE; 4914 uint32_t _flag_a = 0, _flag_b = 0; 4915 uint32_t _itail_tgt = 0; 4916 RECOMP_REGS_LOCALS 4917 RECOMP_ENTER(0x470238C0u); 4918 4919 L_470238C0: 4920 PUSH32(esp, 0xFFFFFFFFu); /* 0x470238C0: push -1 */ 4921 PUSH32(esp, 0x470A48B4u); /* 0x470238C2: push 0x470a48b4 */ 4922 eax = MEM32(FS_BASE + (0)); /* 0x470238C7: mov eax, dword ptr fs:[0] */ 4923 PUSH32(esp, eax); /* 0x470238CD: push eax */ 4924 MEM32(FS_BASE + (0)) = esp; /* 0x470238CE: mov dword ptr fs:[0], esp */ 4925 PUSH32(esp, ecx); /* 0x470238D5: push ecx */ 4926 PUSH32(esp, ebx); /* 0x470238D6: push ebx */ 4927 PUSH32(esp, esi); /* 0x470238D7: push esi */ 4928 esi = MEM32(esp + 0x20); /* 0x470238D8: mov esi, dword ptr [esp + 0x20] */ 4929 MEM32(esp + 0x8) = esi; /* 0x470238DC: mov dword ptr [esp + 8], esi */ 4930 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4931 ebx = 0; /* 0x470238E0: xor ebx, ebx */ 4932 _cf = 0; 4933 _flag_k = FK_TEST; 4934 /* cmp esi, ebx */ /* 0x470238E2: cmp esi, ebx */ 4935 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4937 _flag_k = FK_CMP; 4938 MEM32(esp + 0x14) = ebx; /* 0x470238E4: mov dword ptr [esp + 0x14], ebx */ 4939 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023A06; /* 0x470238E8: je 0x47023a06 */ 4940 L_470238EE: 4941 PUSH32(esp, edi); /* 0x470238EE: push edi */ 4942 edi = MEM32(ecx + 0x8); /* 0x470238EF: mov edi, dword ptr [ecx + 8] */ 4943 MEM32(esi) = edi; /* 0x470238F2: mov dword ptr [esi], edi */ 4944 MEM32(esi + 0x8) = ebx; /* 0x470238F4: mov dword ptr [esi + 8], ebx */ 4945 MEM32(esi + 0xC) = ebx; /* 0x470238F7: mov dword ptr [esi + 0xc], ebx */ 4946 MEM32(esi + 0x10) = ebx; /* 0x470238FA: mov dword ptr [esi + 0x10], ebx */ 4947 ecx = esi; /* 0x470238FD: mov ecx, esi */ 4948 MEM8(esp + 0x18) = (uint8_t)(2); /* 0x470238FF: mov byte ptr [esp + 0x18], 2 */ 4949 RECOMP_ICALL(0x47028560u); /* 0x47023904: call 0x47028560 */ /* not lifted */ 4950 RECOMP_FLAGS_IN(); 4951 /* cmp edi, ebx */ /* 0x47023909: cmp edi, ebx */ 4952 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 4953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4954 _flag_k = FK_CMP; 4955 if (CMP_NE(_flag_a, _flag_b)) goto L_47023914; /* 0x4702390B: jne 0x47023914 */ 4956 L_4702390D: 4957 RECOMP_ICALL(0x4703DAC0u); /* 0x4702390D: call 0x4703dac0 */ /* not lifted */ 4958 RECOMP_FLAGS_IN(); 4959 edi = eax; /* 0x47023912: mov edi, eax */ 4960 L_47023914: 4961 PUSH32(esp, ebp); /* 0x47023914: push ebp */ 4962 ebp = MEM32(esp + 0x24); /* 0x47023915: mov ebp, dword ptr [esp + 0x24] */ 4963 /* cmp ebp, ebx */ /* 0x47023919: cmp ebp, ebx */ 4964 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 4965 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4966 _flag_k = FK_CMP; 4967 MEM32(esi) = edi; /* 0x4702391B: mov dword ptr [esi], edi */ 4968 if (CMP_NE(_flag_a, _flag_b)) goto L_47023984; /* 0x4702391D: jne 0x47023984 */ 4969 L_4702391F: 4970 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4702391F: call dword ptr [0x470ac150] */ 4971 RECOMP_FLAGS_IN(); 4972 ebx = eax; /* 0x47023925: mov ebx, eax */ 4973 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023927: call dword ptr [0x470ac3c8] */ 4974 RECOMP_FLAGS_IN(); 4975 eax = MEM32(eax); /* 0x4702392D: mov eax, dword ptr [eax] */ 4976 /* test eax, eax */ /* 0x4702392F: test eax, eax */ 4977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4978 _cf = 0; 4979 _flag_k = FK_TEST; 4980 if (TEST_Z(_flag_a, _flag_b)) goto L_47023935; /* 0x47023931: je 0x47023935 */ 4981 L_47023933: 4982 ebx = eax; /* 0x47023933: mov ebx, eax */ 4983 L_47023935: 4984 RECOMP_ICALL(0x47039020u); /* 0x47023935: call 0x47039020 */ /* not lifted */ 4985 RECOMP_FLAGS_IN(); 4986 edi = eax; /* 0x4702393A: mov edi, eax */ 4987 ecx = edi; /* 0x4702393C: mov ecx, edi */ 4988 RECOMP_ICALL(0x4703B210u); /* 0x4702393E: call 0x4703b210 */ /* not lifted */ 4989 RECOMP_FLAGS_IN(); 4990 PUSH32(esp, eax); /* 0x47023943: push eax */ 4991 ecx = edi; /* 0x47023944: mov ecx, edi */ 4992 RECOMP_ICALL(0x4703B240u); /* 0x47023946: call 0x4703b240 */ /* not lifted */ 4993 RECOMP_FLAGS_IN(); 4994 PUSH32(esp, eax); /* 0x4702394B: push eax */ 4995 ecx = edi; /* 0x4702394C: mov ecx, edi */ 4996 RECOMP_ICALL(0x4703B080u); /* 0x4702394E: call 0x4703b080 */ /* not lifted */ 4997 RECOMP_FLAGS_IN(); 4998 PUSH32(esp, eax); /* 0x47023953: push eax */ 4999 PUSH32(esp, ebx); /* 0x47023954: push ebx */ 5000 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023955: push -1 */ 5001 PUSH32(esp, 0x86u); /* 0x47023957: push 0x86 */ 5002 PUSH32(esp, 0x47105A54u); /* 0x4702395C: push 0x47105a54 */ 5003 ecx = edi; /* 0x47023961: mov ecx, edi */ 5004 RECOMP_ICALL(0x4703A340u); /* 0x47023963: call 0x4703a340 */ /* not lifted */ 5005 RECOMP_FLAGS_IN(); 5006 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023968: push -1 */ 5007 PUSH32(esp, 0x47105A48u); /* 0x4702396A: push 0x47105a48 */ 5008 PUSH32(esp, 0x47104AA4u); /* 0x4702396F: push 0x47104aa4 */ 5009 PUSH32(esp, 0x80u); /* 0x47023974: push 0x80 */ 5010 PUSH32(esp, edi); /* 0x47023979: push edi */ 5011 RECOMP_ICALL(0x47039830u); /* 0x4702397A: call 0x47039830 */ /* not lifted */ 5012 RECOMP_FLAGS_IN(); 5013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5014 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5015 esp = esp + 0x14u; /* 0x4702397F: add esp, 0x14 */ 5016 _flag_k = FK_ADD; 5017 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5018 ebx = 0; /* 0x47023982: xor ebx, ebx */ 5019 _cf = 0; 5020 _flag_k = FK_TEST; 5021 L_47023984: 5022 PUSH32(esp, ebp); /* 0x47023984: push ebp */ 5023 ecx = esi; /* 0x47023985: mov ecx, esi */ 5024 RECOMP_ICALL(0x47028710u); /* 0x47023987: call 0x47028710 */ /* not lifted */ 5025 RECOMP_FLAGS_IN(); 5026 /* cmp eax, 0xFFFFFFFFu */ /* 0x4702398C: cmp eax, -1 */ 5027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5029 _flag_k = FK_CMP; 5030 MEM8(esp + 0x1C) = (uint8_t)(1); /* 0x4702398F: mov byte ptr [esp + 0x1c], 1 */ 5031 ebp = POP32_VAL(esp); /* 0x47023994: pop ebp */ 5032 if (CMP_NE(_flag_a, _flag_b)) goto L_470239F0; /* 0x47023995: jne 0x470239f0 */ 5033 L_47023997: 5034 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47023997: call dword ptr [0x470ac150] */ 5035 RECOMP_FLAGS_IN(); 5036 edi = eax; /* 0x4702399D: mov edi, eax */ 5037 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702399F: call dword ptr [0x470ac3c8] */ 5038 RECOMP_FLAGS_IN(); 5039 eax = MEM32(eax); /* 0x470239A5: mov eax, dword ptr [eax] */ 5040 /* cmp eax, ebx */ /* 0x470239A7: cmp eax, ebx */ 5041 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5043 _flag_k = FK_CMP; 5044 if (CMP_EQ(_flag_a, _flag_b)) goto L_470239AD; /* 0x470239A9: je 0x470239ad */ 5045 L_470239AB: 5046 edi = eax; /* 0x470239AB: mov edi, eax */ 5047 L_470239AD: 5048 RECOMP_ICALL(0x47039020u); /* 0x470239AD: call 0x47039020 */ /* not lifted */ 5049 RECOMP_FLAGS_IN(); 5050 esi = eax; /* 0x470239B2: mov esi, eax */ 5051 ecx = esi; /* 0x470239B4: mov ecx, esi */ 5052 RECOMP_ICALL(0x4703B210u); /* 0x470239B6: call 0x4703b210 */ /* not lifted */ 5053 RECOMP_FLAGS_IN(); 5054 PUSH32(esp, eax); /* 0x470239BB: push eax */ 5055 ecx = esi; /* 0x470239BC: mov ecx, esi */ 5056 RECOMP_ICALL(0x4703B240u); /* 0x470239BE: call 0x4703b240 */ /* not lifted */ 5057 RECOMP_FLAGS_IN(); 5058 PUSH32(esp, eax); /* 0x470239C3: push eax */ 5059 ecx = esi; /* 0x470239C4: mov ecx, esi */ 5060 RECOMP_ICALL(0x4703B080u); /* 0x470239C6: call 0x4703b080 */ /* not lifted */ 5061 RECOMP_FLAGS_IN(); 5062 PUSH32(esp, eax); /* 0x470239CB: push eax */ 5063 PUSH32(esp, edi); /* 0x470239CC: push edi */ 5064 PUSH32(esp, 0xFFFFFFFFu); /* 0x470239CD: push -1 */ 5065 PUSH32(esp, 0xEu); /* 0x470239CF: push 0xe */ 5066 PUSH32(esp, 0x471059C8u); /* 0x470239D1: push 0x471059c8 */ 5067 ecx = esi; /* 0x470239D6: mov ecx, esi */ 5068 RECOMP_ICALL(0x4703A340u); /* 0x470239D8: call 0x4703a340 */ /* not lifted */ 5069 RECOMP_FLAGS_IN(); 5070 PUSH32(esp, 0x471059ACu); /* 0x470239DD: push 0x471059ac */ 5071 PUSH32(esp, 0x80u); /* 0x470239E2: push 0x80 */ 5072 PUSH32(esp, esi); /* 0x470239E7: push esi */ 5073 RECOMP_ICALL(0x47039830u); /* 0x470239E8: call 0x47039830 */ /* not lifted */ 5074 RECOMP_FLAGS_IN(); 5075 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5076 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5077 esp = esp + 0xCu; /* 0x470239ED: add esp, 0xc */ 5078 _flag_k = FK_ADD; 5079 L_470239F0: 5080 edi = POP32_VAL(esp); /* 0x470239F0: pop edi */ 5081 esi = POP32_VAL(esp); /* 0x470239F1: pop esi */ 5082 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5083 eax = 0; /* 0x470239F2: xor eax, eax */ 5084 _cf = 0; 5085 _flag_k = FK_TEST; 5086 ebx = POP32_VAL(esp); /* 0x470239F4: pop ebx */ 5087 ecx = MEM32(esp + 0x4); /* 0x470239F5: mov ecx, dword ptr [esp + 4] */ 5088 MEM32(FS_BASE + (0)) = ecx; /* 0x470239F9: mov dword ptr fs:[0], ecx */ 5089 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5091 esp = esp + 0x10u; /* 0x47023A00: add esp, 0x10 */ 5092 _flag_k = FK_ADD; 5093 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47023A03: ret 8 */ 5094 L_47023A06: 5095 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023A06: call dword ptr [0x470ac3c8] */ 5096 RECOMP_FLAGS_IN(); 5097 ecx = MEM32(esp + 0xC); /* 0x47023A0C: mov ecx, dword ptr [esp + 0xc] */ 5098 MEM32(eax) = 0xCu; /* 0x47023A10: mov dword ptr [eax], 0xc */ 5099 esi = POP32_VAL(esp); /* 0x47023A16: pop esi */ 5100 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5101 eax = eax | 0xFFFFFFFFu; /* 0x47023A17: or eax, 0xffffffff */ 5102 _cf = 0; 5103 _flag_k = FK_TEST; 5104 ebx = POP32_VAL(esp); /* 0x47023A1A: pop ebx */ 5105 MEM32(FS_BASE + (0)) = ecx; /* 0x47023A1B: mov dword ptr fs:[0], ecx */ 5106 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5107 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5108 esp = esp + 0x10u; /* 0x47023A22: add esp, 0x10 */ 5109 _flag_k = FK_ADD; 5110 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47023A25: ret 8 */ 5111 RECOMP_REGS_OUT(); 5112 } 5113 5114 void sub_47023A30(void) { 5115 int _fpu_cmp = 0; 5116 uint32_t _cf = 0; 5117 int _df = 1; 5118 uint32_t _flag_k = FK_NONE; 5119 uint32_t _flag_a = 0, _flag_b = 0; 5120 uint32_t _itail_tgt = 0; 5121 RECOMP_REGS_LOCALS 5122 RECOMP_ENTER(0x47023A30u); 5123 5124 L_47023A30: 5125 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023A30: push -1 */ 5126 PUSH32(esp, 0x470A48E4u); /* 0x47023A32: push 0x470a48e4 */ 5127 eax = MEM32(FS_BASE + (0)); /* 0x47023A37: mov eax, dword ptr fs:[0] */ 5128 PUSH32(esp, eax); /* 0x47023A3D: push eax */ 5129 MEM32(FS_BASE + (0)) = esp; /* 0x47023A3E: mov dword ptr fs:[0], esp */ 5130 PUSH32(esp, ecx); /* 0x47023A45: push ecx */ 5131 PUSH32(esp, ebx); /* 0x47023A46: push ebx */ 5132 PUSH32(esp, esi); /* 0x47023A47: push esi */ 5133 esi = MEM32(esp + 0x20); /* 0x47023A48: mov esi, dword ptr [esp + 0x20] */ 5134 MEM32(esp + 0x8) = esi; /* 0x47023A4C: mov dword ptr [esp + 8], esi */ 5135 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5136 ebx = 0; /* 0x47023A50: xor ebx, ebx */ 5137 _cf = 0; 5138 _flag_k = FK_TEST; 5139 /* cmp esi, ebx */ /* 0x47023A52: cmp esi, ebx */ 5140 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5142 _flag_k = FK_CMP; 5143 MEM32(esp + 0x14) = ebx; /* 0x47023A54: mov dword ptr [esp + 0x14], ebx */ 5144 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023B76; /* 0x47023A58: je 0x47023b76 */ 5145 L_47023A5E: 5146 PUSH32(esp, edi); /* 0x47023A5E: push edi */ 5147 edi = MEM32(ecx + 0x8); /* 0x47023A5F: mov edi, dword ptr [ecx + 8] */ 5148 MEM32(esi) = edi; /* 0x47023A62: mov dword ptr [esi], edi */ 5149 MEM32(esi + 0x8) = ebx; /* 0x47023A64: mov dword ptr [esi + 8], ebx */ 5150 MEM32(esi + 0xC) = ebx; /* 0x47023A67: mov dword ptr [esi + 0xc], ebx */ 5151 MEM32(esi + 0x10) = ebx; /* 0x47023A6A: mov dword ptr [esi + 0x10], ebx */ 5152 ecx = esi; /* 0x47023A6D: mov ecx, esi */ 5153 MEM8(esp + 0x18) = (uint8_t)(2); /* 0x47023A6F: mov byte ptr [esp + 0x18], 2 */ 5154 RECOMP_ICALL(0x470285F0u); /* 0x47023A74: call 0x470285f0 */ /* not lifted */ 5155 RECOMP_FLAGS_IN(); 5156 /* cmp edi, ebx */ /* 0x47023A79: cmp edi, ebx */ 5157 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5159 _flag_k = FK_CMP; 5160 if (CMP_NE(_flag_a, _flag_b)) goto L_47023A84; /* 0x47023A7B: jne 0x47023a84 */ 5161 L_47023A7D: 5162 RECOMP_ICALL(0x4703DAC0u); /* 0x47023A7D: call 0x4703dac0 */ /* not lifted */ 5163 RECOMP_FLAGS_IN(); 5164 edi = eax; /* 0x47023A82: mov edi, eax */ 5165 L_47023A84: 5166 PUSH32(esp, ebp); /* 0x47023A84: push ebp */ 5167 ebp = MEM32(esp + 0x24); /* 0x47023A85: mov ebp, dword ptr [esp + 0x24] */ 5168 /* cmp ebp, ebx */ /* 0x47023A89: cmp ebp, ebx */ 5169 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 5170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5171 _flag_k = FK_CMP; 5172 MEM32(esi) = edi; /* 0x47023A8B: mov dword ptr [esi], edi */ 5173 if (CMP_NE(_flag_a, _flag_b)) goto L_47023AF4; /* 0x47023A8D: jne 0x47023af4 */ 5174 L_47023A8F: 5175 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47023A8F: call dword ptr [0x470ac150] */ 5176 RECOMP_FLAGS_IN(); 5177 ebx = eax; /* 0x47023A95: mov ebx, eax */ 5178 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023A97: call dword ptr [0x470ac3c8] */ 5179 RECOMP_FLAGS_IN(); 5180 eax = MEM32(eax); /* 0x47023A9D: mov eax, dword ptr [eax] */ 5181 /* test eax, eax */ /* 0x47023A9F: test eax, eax */ 5182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5183 _cf = 0; 5184 _flag_k = FK_TEST; 5185 if (TEST_Z(_flag_a, _flag_b)) goto L_47023AA5; /* 0x47023AA1: je 0x47023aa5 */ 5186 L_47023AA3: 5187 ebx = eax; /* 0x47023AA3: mov ebx, eax */ 5188 L_47023AA5: 5189 RECOMP_ICALL(0x47039020u); /* 0x47023AA5: call 0x47039020 */ /* not lifted */ 5190 RECOMP_FLAGS_IN(); 5191 edi = eax; /* 0x47023AAA: mov edi, eax */ 5192 ecx = edi; /* 0x47023AAC: mov ecx, edi */ 5193 RECOMP_ICALL(0x4703B210u); /* 0x47023AAE: call 0x4703b210 */ /* not lifted */ 5194 RECOMP_FLAGS_IN(); 5195 PUSH32(esp, eax); /* 0x47023AB3: push eax */ 5196 ecx = edi; /* 0x47023AB4: mov ecx, edi */ 5197 RECOMP_ICALL(0x4703B240u); /* 0x47023AB6: call 0x4703b240 */ /* not lifted */ 5198 RECOMP_FLAGS_IN(); 5199 PUSH32(esp, eax); /* 0x47023ABB: push eax */ 5200 ecx = edi; /* 0x47023ABC: mov ecx, edi */ 5201 RECOMP_ICALL(0x4703B080u); /* 0x47023ABE: call 0x4703b080 */ /* not lifted */ 5202 RECOMP_FLAGS_IN(); 5203 PUSH32(esp, eax); /* 0x47023AC3: push eax */ 5204 PUSH32(esp, ebx); /* 0x47023AC4: push ebx */ 5205 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023AC5: push -1 */ 5206 PUSH32(esp, 0x86u); /* 0x47023AC7: push 0x86 */ 5207 PUSH32(esp, 0x47105A54u); /* 0x47023ACC: push 0x47105a54 */ 5208 ecx = edi; /* 0x47023AD1: mov ecx, edi */ 5209 RECOMP_ICALL(0x4703A340u); /* 0x47023AD3: call 0x4703a340 */ /* not lifted */ 5210 RECOMP_FLAGS_IN(); 5211 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023AD8: push -1 */ 5212 PUSH32(esp, 0x47105A48u); /* 0x47023ADA: push 0x47105a48 */ 5213 PUSH32(esp, 0x47104AA4u); /* 0x47023ADF: push 0x47104aa4 */ 5214 PUSH32(esp, 0x80u); /* 0x47023AE4: push 0x80 */ 5215 PUSH32(esp, edi); /* 0x47023AE9: push edi */ 5216 RECOMP_ICALL(0x47039830u); /* 0x47023AEA: call 0x47039830 */ /* not lifted */ 5217 RECOMP_FLAGS_IN(); 5218 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5220 esp = esp + 0x14u; /* 0x47023AEF: add esp, 0x14 */ 5221 _flag_k = FK_ADD; 5222 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5223 ebx = 0; /* 0x47023AF2: xor ebx, ebx */ 5224 _cf = 0; 5225 _flag_k = FK_TEST; 5226 L_47023AF4: 5227 PUSH32(esp, ebp); /* 0x47023AF4: push ebp */ 5228 ecx = esi; /* 0x47023AF5: mov ecx, esi */ 5229 RECOMP_ICALL(0x47028780u); /* 0x47023AF7: call 0x47028780 */ /* not lifted */ 5230 RECOMP_FLAGS_IN(); 5231 /* cmp eax, 0xFFFFFFFFu */ /* 0x47023AFC: cmp eax, -1 */ 5232 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5233 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5234 _flag_k = FK_CMP; 5235 MEM8(esp + 0x1C) = (uint8_t)(1); /* 0x47023AFF: mov byte ptr [esp + 0x1c], 1 */ 5236 ebp = POP32_VAL(esp); /* 0x47023B04: pop ebp */ 5237 if (CMP_NE(_flag_a, _flag_b)) goto L_47023B60; /* 0x47023B05: jne 0x47023b60 */ 5238 L_47023B07: 5239 RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47023B07: call dword ptr [0x470ac150] */ 5240 RECOMP_FLAGS_IN(); 5241 edi = eax; /* 0x47023B0D: mov edi, eax */ 5242 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023B0F: call dword ptr [0x470ac3c8] */ 5243 RECOMP_FLAGS_IN(); 5244 eax = MEM32(eax); /* 0x47023B15: mov eax, dword ptr [eax] */ 5245 /* cmp eax, ebx */ /* 0x47023B17: cmp eax, ebx */ 5246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5248 _flag_k = FK_CMP; 5249 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023B1D; /* 0x47023B19: je 0x47023b1d */ 5250 L_47023B1B: 5251 edi = eax; /* 0x47023B1B: mov edi, eax */ 5252 L_47023B1D: 5253 RECOMP_ICALL(0x47039020u); /* 0x47023B1D: call 0x47039020 */ /* not lifted */ 5254 RECOMP_FLAGS_IN(); 5255 esi = eax; /* 0x47023B22: mov esi, eax */ 5256 ecx = esi; /* 0x47023B24: mov ecx, esi */ 5257 RECOMP_ICALL(0x4703B210u); /* 0x47023B26: call 0x4703b210 */ /* not lifted */ 5258 RECOMP_FLAGS_IN(); 5259 PUSH32(esp, eax); /* 0x47023B2B: push eax */ 5260 ecx = esi; /* 0x47023B2C: mov ecx, esi */ 5261 RECOMP_ICALL(0x4703B240u); /* 0x47023B2E: call 0x4703b240 */ /* not lifted */ 5262 RECOMP_FLAGS_IN(); 5263 PUSH32(esp, eax); /* 0x47023B33: push eax */ 5264 ecx = esi; /* 0x47023B34: mov ecx, esi */ 5265 RECOMP_ICALL(0x4703B080u); /* 0x47023B36: call 0x4703b080 */ /* not lifted */ 5266 RECOMP_FLAGS_IN(); 5267 PUSH32(esp, eax); /* 0x47023B3B: push eax */ 5268 PUSH32(esp, edi); /* 0x47023B3C: push edi */ 5269 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023B3D: push -1 */ 5270 PUSH32(esp, 0xEu); /* 0x47023B3F: push 0xe */ 5271 PUSH32(esp, 0x471059C8u); /* 0x47023B41: push 0x471059c8 */ 5272 ecx = esi; /* 0x47023B46: mov ecx, esi */ 5273 RECOMP_ICALL(0x4703A340u); /* 0x47023B48: call 0x4703a340 */ /* not lifted */ 5274 RECOMP_FLAGS_IN(); 5275 PUSH32(esp, 0x471059ACu); /* 0x47023B4D: push 0x471059ac */ 5276 PUSH32(esp, 0x80u); /* 0x47023B52: push 0x80 */ 5277 PUSH32(esp, esi); /* 0x47023B57: push esi */ 5278 RECOMP_ICALL(0x47039830u); /* 0x47023B58: call 0x47039830 */ /* not lifted */ 5279 RECOMP_FLAGS_IN(); 5280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5282 esp = esp + 0xCu; /* 0x47023B5D: add esp, 0xc */ 5283 _flag_k = FK_ADD; 5284 L_47023B60: 5285 edi = POP32_VAL(esp); /* 0x47023B60: pop edi */ 5286 esi = POP32_VAL(esp); /* 0x47023B61: pop esi */ 5287 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5288 eax = 0; /* 0x47023B62: xor eax, eax */ 5289 _cf = 0; 5290 _flag_k = FK_TEST; 5291 ebx = POP32_VAL(esp); /* 0x47023B64: pop ebx */ 5292 ecx = MEM32(esp + 0x4); /* 0x47023B65: mov ecx, dword ptr [esp + 4] */ 5293 MEM32(FS_BASE + (0)) = ecx; /* 0x47023B69: mov dword ptr fs:[0], ecx */ 5294 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5295 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5296 esp = esp + 0x10u; /* 0x47023B70: add esp, 0x10 */ 5297 _flag_k = FK_ADD; 5298 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47023B73: ret 8 */ 5299 L_47023B76: 5300 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023B76: call dword ptr [0x470ac3c8] */ 5301 RECOMP_FLAGS_IN(); 5302 ecx = MEM32(esp + 0xC); /* 0x47023B7C: mov ecx, dword ptr [esp + 0xc] */ 5303 MEM32(eax) = 0xCu; /* 0x47023B80: mov dword ptr [eax], 0xc */ 5304 esi = POP32_VAL(esp); /* 0x47023B86: pop esi */ 5305 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5306 eax = eax | 0xFFFFFFFFu; /* 0x47023B87: or eax, 0xffffffff */ 5307 _cf = 0; 5308 _flag_k = FK_TEST; 5309 ebx = POP32_VAL(esp); /* 0x47023B8A: pop ebx */ 5310 MEM32(FS_BASE + (0)) = ecx; /* 0x47023B8B: mov dword ptr fs:[0], ecx */ 5311 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5313 esp = esp + 0x10u; /* 0x47023B92: add esp, 0x10 */ 5314 _flag_k = FK_ADD; 5315 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47023B95: ret 8 */ 5316 RECOMP_REGS_OUT(); 5317 } 5318 5319 void sub_47023BA0(void) { 5320 int _fpu_cmp = 0; 5321 uint32_t _cf = 0; 5322 int _df = 1; 5323 uint32_t _flag_k = FK_NONE; 5324 uint32_t _flag_a = 0, _flag_b = 0; 5325 uint32_t _itail_tgt = 0; 5326 RECOMP_REGS_LOCALS 5327 RECOMP_ENTER(0x47023BA0u); 5328 5329 L_47023BA0: 5330 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023BA0: push -1 */ 5331 PUSH32(esp, 0x470A4933u); /* 0x47023BA2: push 0x470a4933 */ 5332 eax = MEM32(FS_BASE + (0)); /* 0x47023BA7: mov eax, dword ptr fs:[0] */ 5333 PUSH32(esp, eax); /* 0x47023BAD: push eax */ 5334 MEM32(FS_BASE + (0)) = esp; /* 0x47023BAE: mov dword ptr fs:[0], esp */ 5335 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 5336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5337 esp = esp - 0x34u; /* 0x47023BB5: sub esp, 0x34 */ 5338 _flag_k = FK_CMP; 5339 PUSH32(esp, ebx); /* 0x47023BB8: push ebx */ 5340 PUSH32(esp, ebp); /* 0x47023BB9: push ebp */ 5341 ebp = MEM32(esp + 0x50); /* 0x47023BBA: mov ebp, dword ptr [esp + 0x50] */ 5342 SET_LO8(eax, MEM8(ebp)); /* 0x47023BBE: mov al, byte ptr [ebp] */ 5343 PUSH32(esp, esi); /* 0x47023BC1: push esi */ 5344 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5345 ebx = 0; /* 0x47023BC2: xor ebx, ebx */ 5346 _cf = 0; 5347 _flag_k = FK_TEST; 5348 /* cmp LO8(eax), LO8(ebx) */ /* 0x47023BC4: cmp al, bl */ 5349 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5351 _flag_k = FK_NARROW(FK_CMP, 24); 5352 PUSH32(esp, edi); /* 0x47023BC6: push edi */ 5353 MEM32(esp + 0x10) = ecx; /* 0x47023BC7: mov dword ptr [esp + 0x10], ecx */ 5354 esi = ebp; /* 0x47023BCB: mov esi, ebp */ 5355 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023BEF; /* 0x47023BCD: je 0x47023bef */ 5356 L_47023BCF: 5357 edi = MEM32(0x470AC380); /* 0x47023BCF: mov edi, dword ptr [0x470ac380] */ 5358 L_47023BD5: 5359 eax = (int32_t)(int8_t)MEM8(esi); /* 0x47023BD5: movsx eax, byte ptr [esi] */ 5360 PUSH32(esp, eax); /* 0x47023BD8: push eax */ 5361 PUSH32(esp, 0x47105AACu); /* 0x47023BD9: push 0x47105aac */ 5362 RECOMP_ICALL(edi); /* 0x47023BDE: call edi */ 5363 RECOMP_FLAGS_IN(); 5364 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5365 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5366 esp = esp + 8; /* 0x47023BE0: add esp, 8 */ 5367 _flag_k = FK_ADD; 5368 /* test eax, eax */ /* 0x47023BE3: test eax, eax */ 5369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5370 _cf = 0; 5371 _flag_k = FK_TEST; 5372 if (TEST_NZ(_flag_a, _flag_b)) goto L_47023BF9; /* 0x47023BE5: jne 0x47023bf9 */ 5373 L_47023BE7: 5374 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x47023BE7: mov al, byte ptr [esi + 1] */ 5375 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 5376 esi = esi + 1; /* 0x47023BEA: inc esi */ 5377 _flag_k = FK_INC; 5378 /* cmp LO8(eax), LO8(ebx) */ /* 0x47023BEB: cmp al, bl */ 5379 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5381 _flag_k = FK_NARROW(FK_CMP, 24); 5382 RECOMP_BACKEDGE(); 5383 if (CMP_NE(_flag_a, _flag_b)) goto L_47023BD5; /* 0x47023BED: jne 0x47023bd5 */ 5384 L_47023BEF: 5385 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 5386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5387 esi = esi - ebp; /* 0x47023BEF: sub esi, ebp */ 5388 _flag_k = FK_CMP; 5389 /* cmp esi, 0xFFu */ /* 0x47023BF1: cmp esi, 0xff */ 5390 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 5391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5392 _flag_k = FK_CMP; 5393 if (CMP_LE(_flag_a, _flag_b)) goto L_47023C01; /* 0x47023BF7: jle 0x47023c01 */ 5394 L_47023BF9: 5395 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5396 eax = eax | 0xFFFFFFFFu; /* 0x47023BF9: or eax, 0xffffffff */ 5397 _cf = 0; 5398 _flag_k = FK_TEST; 5399 goto L_47023F07; /* 0x47023BFC: jmp 0x47023f07 */ 5400 L_47023C01: 5401 RECOMP_ICALL(0x4703DAC0u); /* 0x47023C01: call 0x4703dac0 */ /* not lifted */ 5402 RECOMP_FLAGS_IN(); 5403 MEM32(esp + 0x1C) = eax; /* 0x47023C06: mov dword ptr [esp + 0x1c], eax */ 5404 MEM32(esp + 0x20) = ebx; /* 0x47023C0A: mov dword ptr [esp + 0x20], ebx */ 5405 MEM32(esp + 0x24) = ebx; /* 0x47023C0E: mov dword ptr [esp + 0x24], ebx */ 5406 MEM32(esp + 0x28) = 0x4710F078u; /* 0x47023C12: mov dword ptr [esp + 0x28], 0x4710f078 */ 5407 MEM32(esp + 0x2C) = ebx; /* 0x47023C1A: mov dword ptr [esp + 0x2c], ebx */ 5408 eax = MEM32(esp + 0x54); /* 0x47023C1E: mov eax, dword ptr [esp + 0x54] */ 5409 eax = MEM32(eax); /* 0x47023C22: mov eax, dword ptr [eax] */ 5410 /* cmp eax, ebx */ /* 0x47023C24: cmp eax, ebx */ 5411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 5412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5413 _flag_k = FK_CMP; 5414 MEM32(esp + 0x4C) = ebx; /* 0x47023C26: mov dword ptr [esp + 0x4c], ebx */ 5415 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023C99; /* 0x47023C2A: je 0x47023c99 */ 5416 L_47023C2C: 5417 ecx = MEM32(eax + 0x8); /* 0x47023C2C: mov ecx, dword ptr [eax + 8] */ 5418 PUSH32(esp, 1); /* 0x47023C2F: push 1 */ 5419 PUSH32(esp, ebx); /* 0x47023C31: push ebx */ 5420 PUSH32(esp, ecx); /* 0x47023C32: push ecx */ 5421 ecx = esp + 0x3C; /* 0x47023C33: lea ecx, [esp + 0x3c] */ 5422 RECOMP_ICALL(0x47007130u); /* 0x47023C37: call 0x47007130 */ /* not lifted */ 5423 RECOMP_FLAGS_IN(); 5424 edx = esp + 0x30; /* 0x47023C3C: lea edx, [esp + 0x30] */ 5425 PUSH32(esp, edx); /* 0x47023C40: push edx */ 5426 ecx = esp + 0x20; /* 0x47023C41: lea ecx, [esp + 0x20] */ 5427 MEM8(esp + 0x50) = (uint8_t)(1); /* 0x47023C45: mov byte ptr [esp + 0x50], 1 */ 5428 RECOMP_ICALL(0x47007250u); /* 0x47023C4A: call 0x47007250 */ /* not lifted */ 5429 RECOMP_FLAGS_IN(); 5430 PUSH32(esp, ebx); /* 0x47023C4F: push ebx */ 5431 PUSH32(esp, ebx); /* 0x47023C50: push ebx */ 5432 PUSH32(esp, ebx); /* 0x47023C51: push ebx */ 5433 ecx = esp + 0x3C; /* 0x47023C52: lea ecx, [esp + 0x3c] */ 5434 MEM8(esp + 0x58) = (uint8_t)(LO8(ebx)); /* 0x47023C56: mov byte ptr [esp + 0x58], bl */ 5435 RECOMP_ICALL(0x470802D0u); /* 0x47023C5A: call 0x470802d0 */ /* not lifted */ 5436 RECOMP_FLAGS_IN(); 5437 /* cmp MEM32(esp + 0x20), ebx */ /* 0x47023C5F: cmp dword ptr [esp + 0x20], ebx */ 5438 _flag_a = (uint32_t)(MEM32(esp + 0x20)); _flag_b = (uint32_t)(ebx); 5439 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5440 _flag_k = FK_CMP; 5441 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023CEB; /* 0x47023C63: je 0x47023ceb */ 5442 L_47023C69: 5443 RECOMP_ICALL(0x4703DAC0u); /* 0x47023C69: call 0x4703dac0 */ /* not lifted */ 5444 RECOMP_FLAGS_IN(); 5445 MEM32(esp + 0x30) = eax; /* 0x47023C6E: mov dword ptr [esp + 0x30], eax */ 5446 eax = 0x47105AB0u; /* 0x47023C72: mov eax, 0x47105ab0 */ 5447 /* test eax, eax */ /* 0x47023C77: test eax, eax */ 5448 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5449 _cf = 0; 5450 _flag_k = FK_TEST; 5451 MEM32(esp + 0x34) = ebx; /* 0x47023C79: mov dword ptr [esp + 0x34], ebx */ 5452 MEM32(esp + 0x38) = ebx; /* 0x47023C7D: mov dword ptr [esp + 0x38], ebx */ 5453 MEM32(esp + 0x3C) = ebx; /* 0x47023C81: mov dword ptr [esp + 0x3c], ebx */ 5454 MEM32(esp + 0x40) = ebx; /* 0x47023C85: mov dword ptr [esp + 0x40], ebx */ 5455 if (TEST_Z(_flag_a, _flag_b)) goto L_47023CB5; /* 0x47023C89: je 0x47023cb5 */ 5456 L_47023C8B: 5457 edi = eax; /* 0x47023C8B: mov edi, eax */ 5458 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5459 ecx = ecx | 0xFFFFFFFFu; /* 0x47023C8D: or ecx, 0xffffffff */ 5460 _cf = 0; 5461 _flag_k = FK_TEST; 5462 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5463 eax = 0; /* 0x47023C90: xor eax, eax */ 5464 _cf = 0; 5465 _flag_k = FK_TEST; 5466 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; } /* 0x47023C92: repne scasb al, byte ptr es:[edi] */ 5467 ecx = ~ecx; /* 0x47023C94: not ecx */ 5468 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5469 ecx = ecx - 1; /* 0x47023C96: dec ecx */ 5470 _flag_k = FK_DEC; 5471 goto L_47023CB7; /* 0x47023C97: jmp 0x47023cb7 */ 5472 L_47023C99: 5473 PUSH32(esp, ebx); /* 0x47023C99: push ebx */ 5474 PUSH32(esp, ebx); /* 0x47023C9A: push ebx */ 5475 PUSH32(esp, ebx); /* 0x47023C9B: push ebx */ 5476 ecx = esp + 0x28; /* 0x47023C9C: lea ecx, [esp + 0x28] */ 5477 MEM32(esp + 0x58) = 0xFFFFFFFFu; /* 0x47023CA0: mov dword ptr [esp + 0x58], 0xffffffff */ 5478 RECOMP_ICALL(0x470802D0u); /* 0x47023CA8: call 0x470802d0 */ /* not lifted */ 5479 RECOMP_FLAGS_IN(); 5480 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5481 eax = eax | 0xFFFFFFFFu; /* 0x47023CAD: or eax, 0xffffffff */ 5482 _cf = 0; 5483 _flag_k = FK_TEST; 5484 goto L_47023F07; /* 0x47023CB0: jmp 0x47023f07 */ 5485 L_47023CB5: 5486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5487 ecx = 0; /* 0x47023CB5: xor ecx, ecx */ 5488 _cf = 0; 5489 _flag_k = FK_TEST; 5490 L_47023CB7: 5491 PUSH32(esp, 1); /* 0x47023CB7: push 1 */ 5492 PUSH32(esp, ecx); /* 0x47023CB9: push ecx */ 5493 PUSH32(esp, 0x47105AB0u); /* 0x47023CBA: push 0x47105ab0 */ 5494 ecx = esp + 0x3C; /* 0x47023CBF: lea ecx, [esp + 0x3c] */ 5495 RECOMP_ICALL(0x470802D0u); /* 0x47023CC3: call 0x470802d0 */ /* not lifted */ 5496 RECOMP_FLAGS_IN(); 5497 ecx = esp + 0x30; /* 0x47023CC8: lea ecx, [esp + 0x30] */ 5498 PUSH32(esp, ecx); /* 0x47023CCC: push ecx */ 5499 ecx = esp + 0x20; /* 0x47023CCD: lea ecx, [esp + 0x20] */ 5500 MEM8(esp + 0x50) = (uint8_t)(2); /* 0x47023CD1: mov byte ptr [esp + 0x50], 2 */ 5501 RECOMP_ICALL(0x47080540u); /* 0x47023CD6: call 0x47080540 */ /* not lifted */ 5502 RECOMP_FLAGS_IN(); 5503 PUSH32(esp, ebx); /* 0x47023CDB: push ebx */ 5504 PUSH32(esp, ebx); /* 0x47023CDC: push ebx */ 5505 PUSH32(esp, ebx); /* 0x47023CDD: push ebx */ 5506 ecx = esp + 0x3C; /* 0x47023CDE: lea ecx, [esp + 0x3c] */ 5507 MEM8(esp + 0x58) = (uint8_t)(LO8(ebx)); /* 0x47023CE2: mov byte ptr [esp + 0x58], bl */ 5508 RECOMP_ICALL(0x470802D0u); /* 0x47023CE6: call 0x470802d0 */ /* not lifted */ 5509 RECOMP_FLAGS_IN(); 5510 L_47023CEB: 5511 RECOMP_ICALL(0x4703DAC0u); /* 0x47023CEB: call 0x4703dac0 */ /* not lifted */ 5512 RECOMP_FLAGS_IN(); 5513 /* cmp ebp, ebx */ /* 0x47023CF0: cmp ebp, ebx */ 5514 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 5515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5516 _flag_k = FK_CMP; 5517 MEM32(esp + 0x30) = eax; /* 0x47023CF2: mov dword ptr [esp + 0x30], eax */ 5518 MEM32(esp + 0x34) = ebx; /* 0x47023CF6: mov dword ptr [esp + 0x34], ebx */ 5519 MEM32(esp + 0x38) = ebx; /* 0x47023CFA: mov dword ptr [esp + 0x38], ebx */ 5520 MEM32(esp + 0x3C) = ebx; /* 0x47023CFE: mov dword ptr [esp + 0x3c], ebx */ 5521 MEM32(esp + 0x40) = ebx; /* 0x47023D02: mov dword ptr [esp + 0x40], ebx */ 5522 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023D16; /* 0x47023D06: je 0x47023d16 */ 5523 L_47023D08: 5524 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 5525 ecx = ecx | 0xFFFFFFFFu; /* 0x47023D08: or ecx, 0xffffffff */ 5526 _cf = 0; 5527 _flag_k = FK_TEST; 5528 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5529 eax = 0; /* 0x47023D0B: xor eax, eax */ 5530 _cf = 0; 5531 _flag_k = FK_TEST; 5532 edi = ebp; /* 0x47023D0D: mov edi, ebp */ 5533 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; } /* 0x47023D0F: repne scasb al, byte ptr es:[edi] */ 5534 ecx = ~ecx; /* 0x47023D11: not ecx */ 5535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5536 ecx = ecx - 1; /* 0x47023D13: dec ecx */ 5537 _flag_k = FK_DEC; 5538 goto L_47023D18; /* 0x47023D14: jmp 0x47023d18 */ 5539 L_47023D16: 5540 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5541 ecx = 0; /* 0x47023D16: xor ecx, ecx */ 5542 _cf = 0; 5543 _flag_k = FK_TEST; 5544 L_47023D18: 5545 PUSH32(esp, 1); /* 0x47023D18: push 1 */ 5546 PUSH32(esp, ecx); /* 0x47023D1A: push ecx */ 5547 PUSH32(esp, ebp); /* 0x47023D1B: push ebp */ 5548 ecx = esp + 0x3C; /* 0x47023D1C: lea ecx, [esp + 0x3c] */ 5549 RECOMP_ICALL(0x470802D0u); /* 0x47023D20: call 0x470802d0 */ /* not lifted */ 5550 RECOMP_FLAGS_IN(); 5551 edx = esp + 0x30; /* 0x47023D25: lea edx, [esp + 0x30] */ 5552 PUSH32(esp, edx); /* 0x47023D29: push edx */ 5553 ecx = esp + 0x20; /* 0x47023D2A: lea ecx, [esp + 0x20] */ 5554 MEM8(esp + 0x50) = (uint8_t)(3); /* 0x47023D2E: mov byte ptr [esp + 0x50], 3 */ 5555 RECOMP_ICALL(0x47080540u); /* 0x47023D33: call 0x47080540 */ /* not lifted */ 5556 RECOMP_FLAGS_IN(); 5557 PUSH32(esp, ebx); /* 0x47023D38: push ebx */ 5558 PUSH32(esp, ebx); /* 0x47023D39: push ebx */ 5559 PUSH32(esp, ebx); /* 0x47023D3A: push ebx */ 5560 ecx = esp + 0x3C; /* 0x47023D3B: lea ecx, [esp + 0x3c] */ 5561 MEM8(esp + 0x58) = (uint8_t)(LO8(ebx)); /* 0x47023D3F: mov byte ptr [esp + 0x58], bl */ 5562 RECOMP_ICALL(0x470802D0u); /* 0x47023D43: call 0x470802d0 */ /* not lifted */ 5563 RECOMP_FLAGS_IN(); 5564 eax = MEM32(esp + 0x20); /* 0x47023D48: mov eax, dword ptr [esp + 0x20] */ 5565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5566 eax = eax + 1; /* 0x47023D4C: inc eax */ 5567 _flag_k = FK_INC; 5568 PUSH32(esp, eax); /* 0x47023D4D: push eax */ 5569 RECOMP_ICALL(0x470A33F2u); /* 0x47023D4E: call 0x470a33f2 */ /* not lifted */ 5570 RECOMP_FLAGS_IN(); 5571 esi = eax; /* 0x47023D53: mov esi, eax */ 5572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5574 esp = esp + 4; /* 0x47023D55: add esp, 4 */ 5575 _flag_k = FK_ADD; 5576 /* cmp esi, ebx */ /* 0x47023D58: cmp esi, ebx */ 5577 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5579 _flag_k = FK_CMP; 5580 if (CMP_NE(_flag_a, _flag_b)) goto L_47023D6C; /* 0x47023D5A: jne 0x47023d6c */ 5581 L_47023D5C: 5582 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023D5C: call dword ptr [0x470ac3c8] */ 5583 RECOMP_FLAGS_IN(); 5584 MEM32(eax) = 0xCu; /* 0x47023D62: mov dword ptr [eax], 0xc */ 5585 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5586 esi = 0; /* 0x47023D68: xor esi, esi */ 5587 _cf = 0; 5588 _flag_k = FK_TEST; 5589 goto L_47023D87; /* 0x47023D6A: jmp 0x47023d87 */ 5590 L_47023D6C: 5591 ecx = MEM32(esp + 0x20); /* 0x47023D6C: mov ecx, dword ptr [esp + 0x20] */ 5592 edx = MEM32(esp + 0x28); /* 0x47023D70: mov edx, dword ptr [esp + 0x28] */ 5593 PUSH32(esp, ecx); /* 0x47023D74: push ecx */ 5594 PUSH32(esp, edx); /* 0x47023D75: push edx */ 5595 PUSH32(esp, esi); /* 0x47023D76: push esi */ 5596 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47023D77: call dword ptr [0x470ac22c] */ 5597 RECOMP_FLAGS_IN(); 5598 eax = MEM32(esp + 0x2C); /* 0x47023D7D: mov eax, dword ptr [esp + 0x2c] */ 5599 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5600 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5601 esp = esp + 0xCu; /* 0x47023D81: add esp, 0xc */ 5602 _flag_k = FK_ADD; 5603 MEM8(eax + esi) = (uint8_t)(LO8(ebx)); /* 0x47023D84: mov byte ptr [eax + esi], bl */ 5604 L_47023D87: 5605 MEM32(esp + 0x58) = esi; /* 0x47023D87: mov dword ptr [esp + 0x58], esi */ 5606 MEM32(esp + 0x14) = ebx; /* 0x47023D8B: mov dword ptr [esp + 0x14], ebx */ 5607 MEM32(esp + 0x18) = ebx; /* 0x47023D8F: mov dword ptr [esp + 0x18], ebx */ 5608 esi = MEM32(esp + 0x10); /* 0x47023D93: mov esi, dword ptr [esp + 0x10] */ 5609 eax = MEM32(esi + 0x8); /* 0x47023D97: mov eax, dword ptr [esi + 8] */ 5610 ecx = MEM32(esi + 0xC); /* 0x47023D9A: mov ecx, dword ptr [esi + 0xc] */ 5611 edx = esp + 0x14; /* 0x47023D9D: lea edx, [esp + 0x14] */ 5612 MEM32(ecx) = eax; /* 0x47023DA1: mov dword ptr [ecx], eax */ 5613 PUSH32(esp, edx); /* 0x47023DA3: push edx */ 5614 eax = esp + 0x5C; /* 0x47023DA4: lea eax, [esp + 0x5c] */ 5615 PUSH32(esp, eax); /* 0x47023DA8: push eax */ 5616 MEM8(esp + 0x54) = (uint8_t)(5); /* 0x47023DA9: mov byte ptr [esp + 0x54], 5 */ 5617 RECOMP_ICALL(0x47027020u); /* 0x47023DAE: call 0x47027020 */ /* not lifted */ 5618 RECOMP_FLAGS_IN(); 5619 /* test eax, eax */ /* 0x47023DB3: test eax, eax */ 5620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5621 _cf = 0; 5622 _flag_k = FK_TEST; 5623 if (TEST_Z(_flag_a, _flag_b)) goto L_47023E0A; /* 0x47023DB5: je 0x47023e0a */ 5624 L_47023DB7: 5625 /* cmp MEM32(esp + 0x5C), ebx */ /* 0x47023DB7: cmp dword ptr [esp + 0x5c], ebx */ 5626 _flag_a = (uint32_t)(MEM32(esp + 0x5C)); _flag_b = (uint32_t)(ebx); 5627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5628 _flag_k = FK_CMP; 5629 if (CMP_NE(_flag_a, _flag_b)) goto L_47023DDB; /* 0x47023DBB: jne 0x47023ddb */ 5630 L_47023DBD: 5631 PUSH32(esp, ebx); /* 0x47023DBD: push ebx */ 5632 PUSH32(esp, ebx); /* 0x47023DBE: push ebx */ 5633 PUSH32(esp, ebx); /* 0x47023DBF: push ebx */ 5634 ecx = esp + 0x28; /* 0x47023DC0: lea ecx, [esp + 0x28] */ 5635 MEM32(esp + 0x58) = 0xFFFFFFFFu; /* 0x47023DC4: mov dword ptr [esp + 0x58], 0xffffffff */ 5636 RECOMP_ICALL(0x470802D0u); /* 0x47023DCC: call 0x470802d0 */ /* not lifted */ 5637 RECOMP_FLAGS_IN(); 5638 eax = 0xFFFFFFFEu; /* 0x47023DD1: mov eax, 0xfffffffe */ 5639 goto L_47023F07; /* 0x47023DD6: jmp 0x47023f07 */ 5640 L_47023DDB: 5641 ecx = MEM32(esp + 0x60); /* 0x47023DDB: mov ecx, dword ptr [esp + 0x60] */ 5642 edx = MEM32(esp + 0x54); /* 0x47023DDF: mov edx, dword ptr [esp + 0x54] */ 5643 PUSH32(esp, ecx); /* 0x47023DE3: push ecx */ 5644 PUSH32(esp, ebp); /* 0x47023DE4: push ebp */ 5645 PUSH32(esp, edx); /* 0x47023DE5: push edx */ 5646 ecx = esi; /* 0x47023DE6: mov ecx, esi */ 5647 RECOMP_ICALL(0x470232E0u); /* 0x47023DE8: call 0x470232e0 */ /* not lifted */ 5648 RECOMP_FLAGS_IN(); 5649 PUSH32(esp, ebx); /* 0x47023DED: push ebx */ 5650 PUSH32(esp, ebx); /* 0x47023DEE: push ebx */ 5651 PUSH32(esp, ebx); /* 0x47023DEF: push ebx */ 5652 ecx = esp + 0x28; /* 0x47023DF0: lea ecx, [esp + 0x28] */ 5653 esi = eax; /* 0x47023DF4: mov esi, eax */ 5654 MEM32(esp + 0x58) = 0xFFFFFFFFu; /* 0x47023DF6: mov dword ptr [esp + 0x58], 0xffffffff */ 5655 RECOMP_ICALL(0x470802D0u); /* 0x47023DFE: call 0x470802d0 */ /* not lifted */ 5656 RECOMP_FLAGS_IN(); 5657 eax = esi; /* 0x47023E03: mov eax, esi */ 5658 goto L_47023F07; /* 0x47023E05: jmp 0x47023f07 */ 5659 L_47023E0A: 5660 PUSH32(esp, 0x14u); /* 0x47023E0A: push 0x14 */ 5661 RECOMP_ICALL(0x470A33F2u); /* 0x47023E0C: call 0x470a33f2 */ /* not lifted */ 5662 RECOMP_FLAGS_IN(); 5663 esi = eax; /* 0x47023E11: mov esi, eax */ 5664 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5665 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5666 esp = esp + 4; /* 0x47023E13: add esp, 4 */ 5667 _flag_k = FK_ADD; 5668 MEM32(esp + 0x54) = esi; /* 0x47023E16: mov dword ptr [esp + 0x54], esi */ 5669 /* cmp esi, ebx */ /* 0x47023E1A: cmp esi, ebx */ 5670 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5672 _flag_k = FK_CMP; 5673 MEM8(esp + 0x4C) = (uint8_t)(6); /* 0x47023E1C: mov byte ptr [esp + 0x4c], 6 */ 5674 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023E83; /* 0x47023E21: je 0x47023e83 */ 5675 L_47023E23: 5676 eax = MEM32(esp + 0x20); /* 0x47023E23: mov eax, dword ptr [esp + 0x20] */ 5677 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5678 eax = eax + 1; /* 0x47023E27: inc eax */ 5679 _flag_k = FK_INC; 5680 PUSH32(esp, eax); /* 0x47023E28: push eax */ 5681 RECOMP_ICALL(0x470A33F2u); /* 0x47023E29: call 0x470a33f2 */ /* not lifted */ 5682 RECOMP_FLAGS_IN(); 5683 edi = eax; /* 0x47023E2E: mov edi, eax */ 5684 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5685 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5686 esp = esp + 4; /* 0x47023E30: add esp, 4 */ 5687 _flag_k = FK_ADD; 5688 /* cmp edi, ebx */ /* 0x47023E33: cmp edi, ebx */ 5689 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5691 _flag_k = FK_CMP; 5692 if (CMP_NE(_flag_a, _flag_b)) goto L_47023E47; /* 0x47023E35: jne 0x47023e47 */ 5693 L_47023E37: 5694 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023E37: call dword ptr [0x470ac3c8] */ 5695 RECOMP_FLAGS_IN(); 5696 MEM32(eax) = 0xCu; /* 0x47023E3D: mov dword ptr [eax], 0xc */ 5697 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5698 edi = 0; /* 0x47023E43: xor edi, edi */ 5699 _cf = 0; 5700 _flag_k = FK_TEST; 5701 goto L_47023E62; /* 0x47023E45: jmp 0x47023e62 */ 5702 L_47023E47: 5703 ecx = MEM32(esp + 0x20); /* 0x47023E47: mov ecx, dword ptr [esp + 0x20] */ 5704 edx = MEM32(esp + 0x28); /* 0x47023E4B: mov edx, dword ptr [esp + 0x28] */ 5705 PUSH32(esp, ecx); /* 0x47023E4F: push ecx */ 5706 PUSH32(esp, edx); /* 0x47023E50: push edx */ 5707 PUSH32(esp, edi); /* 0x47023E51: push edi */ 5708 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47023E52: call dword ptr [0x470ac22c] */ 5709 RECOMP_FLAGS_IN(); 5710 eax = MEM32(esp + 0x2C); /* 0x47023E58: mov eax, dword ptr [esp + 0x2c] */ 5711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5713 esp = esp + 0xCu; /* 0x47023E5C: add esp, 0xc */ 5714 _flag_k = FK_ADD; 5715 MEM8(eax + edi) = (uint8_t)(LO8(ebx)); /* 0x47023E5F: mov byte ptr [eax + edi], bl */ 5716 L_47023E62: 5717 PUSH32(esp, edi); /* 0x47023E62: push edi */ 5718 MEM32(esi + 0x4) = ebx; /* 0x47023E63: mov dword ptr [esi + 4], ebx */ 5719 MEM32(esi + 0x8) = ebx; /* 0x47023E66: mov dword ptr [esi + 8], ebx */ 5720 MEM32(esi + 0xC) = ebx; /* 0x47023E69: mov dword ptr [esi + 0xc], ebx */ 5721 MEM32(esi + 0x10) = ebx; /* 0x47023E6C: mov dword ptr [esi + 0x10], ebx */ 5722 MEM32(esi) = 0x470ACFDCu; /* 0x47023E6F: mov dword ptr [esi], 0x470acfdc */ 5723 RECOMP_ICALL(MEM32(0x470AC3F4)); /* 0x47023E75: call dword ptr [0x470ac3f4] */ 5724 RECOMP_FLAGS_IN(); 5725 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5726 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5727 esp = esp + 4; /* 0x47023E7B: add esp, 4 */ 5728 _flag_k = FK_ADD; 5729 MEM32(esi + 0x8) = eax; /* 0x47023E7E: mov dword ptr [esi + 8], eax */ 5730 goto L_47023E85; /* 0x47023E81: jmp 0x47023e85 */ 5731 L_47023E83: 5732 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5733 esi = 0; /* 0x47023E83: xor esi, esi */ 5734 _cf = 0; 5735 _flag_k = FK_TEST; 5736 L_47023E85: 5737 /* cmp esi, ebx */ /* 0x47023E85: cmp esi, ebx */ 5738 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5740 _flag_k = FK_CMP; 5741 MEM8(esp + 0x4C) = (uint8_t)(5); /* 0x47023E87: mov byte ptr [esp + 0x4c], 5 */ 5742 if (CMP_NE(_flag_a, _flag_b)) goto L_47023EB5; /* 0x47023E8C: jne 0x47023eb5 */ 5743 L_47023E8E: 5744 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023E8E: call dword ptr [0x470ac3c8] */ 5745 RECOMP_FLAGS_IN(); 5746 PUSH32(esp, ebx); /* 0x47023E94: push ebx */ 5747 PUSH32(esp, ebx); /* 0x47023E95: push ebx */ 5748 PUSH32(esp, ebx); /* 0x47023E96: push ebx */ 5749 ecx = esp + 0x28; /* 0x47023E97: lea ecx, [esp + 0x28] */ 5750 MEM32(eax) = 0xCu; /* 0x47023E9B: mov dword ptr [eax], 0xc */ 5751 MEM32(esp + 0x58) = 0xFFFFFFFFu; /* 0x47023EA1: mov dword ptr [esp + 0x58], 0xffffffff */ 5752 RECOMP_ICALL(0x470802D0u); /* 0x47023EA9: call 0x470802d0 */ /* not lifted */ 5753 RECOMP_FLAGS_IN(); 5754 eax = 0xFFFFFFFDu; /* 0x47023EAE: mov eax, 0xfffffffd */ 5755 goto L_47023F07; /* 0x47023EB3: jmp 0x47023f07 */ 5756 L_47023EB5: 5757 edx = MEM32(esi); /* 0x47023EB5: mov edx, dword ptr [esi] */ 5758 ecx = esi; /* 0x47023EB7: mov ecx, esi */ 5759 MEM32(esp + 0x54) = esi; /* 0x47023EB9: mov dword ptr [esp + 0x54], esi */ 5760 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47023EBD: call dword ptr [edx + 4] */ 5761 RECOMP_FLAGS_IN(); 5762 edi = MEM32(esp + 0x60); /* 0x47023EC0: mov edi, dword ptr [esp + 0x60] */ 5763 eax = esp + 0x54; /* 0x47023EC4: lea eax, [esp + 0x54] */ 5764 /* cmp edi, eax */ /* 0x47023EC8: cmp edi, eax */ 5765 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5767 _flag_k = FK_CMP; 5768 MEM8(esp + 0x4C) = (uint8_t)(7); /* 0x47023ECA: mov byte ptr [esp + 0x4c], 7 */ 5769 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023EE5; /* 0x47023ECF: je 0x47023ee5 */ 5770 L_47023ED1: 5771 ecx = MEM32(edi); /* 0x47023ED1: mov ecx, dword ptr [edi] */ 5772 /* cmp ecx, ebx */ /* 0x47023ED3: cmp ecx, ebx */ 5773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 5774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5775 _flag_k = FK_CMP; 5776 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023EDC; /* 0x47023ED5: je 0x47023edc */ 5777 L_47023ED7: 5778 edx = MEM32(ecx); /* 0x47023ED7: mov edx, dword ptr [ecx] */ 5779 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47023ED9: call dword ptr [edx + 8] */ 5780 RECOMP_FLAGS_IN(); 5781 L_47023EDC: 5782 MEM32(edi) = esi; /* 0x47023EDC: mov dword ptr [edi], esi */ 5783 eax = MEM32(esi); /* 0x47023EDE: mov eax, dword ptr [esi] */ 5784 ecx = esi; /* 0x47023EE0: mov ecx, esi */ 5785 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47023EE2: call dword ptr [eax + 4] */ 5786 RECOMP_FLAGS_IN(); 5787 L_47023EE5: 5788 edx = MEM32(esi); /* 0x47023EE5: mov edx, dword ptr [esi] */ 5789 ecx = esi; /* 0x47023EE7: mov ecx, esi */ 5790 MEM8(esp + 0x4C) = (uint8_t)(5); /* 0x47023EE9: mov byte ptr [esp + 0x4c], 5 */ 5791 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47023EEE: call dword ptr [edx + 8] */ 5792 RECOMP_FLAGS_IN(); 5793 PUSH32(esp, ebx); /* 0x47023EF1: push ebx */ 5794 PUSH32(esp, ebx); /* 0x47023EF2: push ebx */ 5795 PUSH32(esp, ebx); /* 0x47023EF3: push ebx */ 5796 ecx = esp + 0x28; /* 0x47023EF4: lea ecx, [esp + 0x28] */ 5797 MEM32(esp + 0x58) = 0xFFFFFFFFu; /* 0x47023EF8: mov dword ptr [esp + 0x58], 0xffffffff */ 5798 RECOMP_ICALL(0x470802D0u); /* 0x47023F00: call 0x470802d0 */ /* not lifted */ 5799 RECOMP_FLAGS_IN(); 5800 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5801 eax = 0; /* 0x47023F05: xor eax, eax */ 5802 _cf = 0; 5803 _flag_k = FK_TEST; 5804 L_47023F07: 5805 ecx = MEM32(esp + 0x44); /* 0x47023F07: mov ecx, dword ptr [esp + 0x44] */ 5806 edi = POP32_VAL(esp); /* 0x47023F0B: pop edi */ 5807 esi = POP32_VAL(esp); /* 0x47023F0C: pop esi */ 5808 ebp = POP32_VAL(esp); /* 0x47023F0D: pop ebp */ 5809 ebx = POP32_VAL(esp); /* 0x47023F0E: pop ebx */ 5810 MEM32(FS_BASE + (0)) = ecx; /* 0x47023F0F: mov dword ptr fs:[0], ecx */ 5811 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 5812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5813 esp = esp + 0x40u; /* 0x47023F16: add esp, 0x40 */ 5814 _flag_k = FK_ADD; 5815 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47023F19: ret 0x10 */ 5816 RECOMP_REGS_OUT(); 5817 } 5818 5819 void sub_47023F07(void) { 5820 int _fpu_cmp = 0; 5821 uint32_t _cf = 0; 5822 int _df = 1; 5823 uint32_t _flag_k = FK_NONE; 5824 uint32_t _flag_a = 0, _flag_b = 0; 5825 uint32_t _itail_tgt = 0; 5826 RECOMP_REGS_LOCALS 5827 RECOMP_ENTER(0x47023F07u); 5828 5829 L_47023F07: 5830 ecx = MEM32(esp + 0x44); /* 0x47023F07: mov ecx, dword ptr [esp + 0x44] */ 5831 edi = POP32_VAL(esp); /* 0x47023F0B: pop edi */ 5832 esi = POP32_VAL(esp); /* 0x47023F0C: pop esi */ 5833 ebp = POP32_VAL(esp); /* 0x47023F0D: pop ebp */ 5834 ebx = POP32_VAL(esp); /* 0x47023F0E: pop ebx */ 5835 MEM32(FS_BASE + (0)) = ecx; /* 0x47023F0F: mov dword ptr fs:[0], ecx */ 5836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 5837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5838 esp = esp + 0x40u; /* 0x47023F16: add esp, 0x40 */ 5839 _flag_k = FK_ADD; 5840 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47023F19: ret 0x10 */ 5841 RECOMP_REGS_OUT(); 5842 } 5843 5844 void sub_47023F20(void) { 5845 int _fpu_cmp = 0; 5846 uint32_t _cf = 0; 5847 int _df = 1; 5848 uint32_t _flag_k = FK_NONE; 5849 uint32_t _flag_a = 0, _flag_b = 0; 5850 uint32_t _itail_tgt = 0; 5851 RECOMP_REGS_LOCALS 5852 RECOMP_ENTER(0x47023F20u); 5853 5854 L_47023F20: 5855 eax = MEM32(FS_BASE + (0)); /* 0x47023F20: mov eax, dword ptr fs:[0] */ 5856 PUSH32(esp, 0xFFFFFFFFu); /* 0x47023F26: push -1 */ 5857 PUSH32(esp, 0x470A49B0u); /* 0x47023F28: push 0x470a49b0 */ 5858 PUSH32(esp, eax); /* 0x47023F2D: push eax */ 5859 MEM32(FS_BASE + (0)) = esp; /* 0x47023F2E: mov dword ptr fs:[0], esp */ 5860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x68u); 5861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5862 esp = esp - 0x68u; /* 0x47023F35: sub esp, 0x68 */ 5863 _flag_k = FK_CMP; 5864 PUSH32(esp, ebx); /* 0x47023F38: push ebx */ 5865 ebx = MEM32(esp + 0x80); /* 0x47023F39: mov ebx, dword ptr [esp + 0x80] */ 5866 /* cmp MEM8(ebx), 0 */ /* 0x47023F40: cmp byte ptr [ebx], 0 */ 5867 _flag_a = (uint32_t)(MEM8(ebx)) << 24; _flag_b = (uint32_t)(0) << 24; 5868 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5869 _flag_k = FK_NARROW(FK_CMP, 24); 5870 PUSH32(esp, ebp); /* 0x47023F43: push ebp */ 5871 PUSH32(esp, esi); /* 0x47023F44: push esi */ 5872 PUSH32(esp, edi); /* 0x47023F45: push edi */ 5873 esi = ecx; /* 0x47023F46: mov esi, ecx */ 5874 edi = ebx; /* 0x47023F48: mov edi, ebx */ 5875 if (CMP_EQ(_flag_a, _flag_b)) goto L_47023F6C; /* 0x47023F4A: je 0x47023f6c */ 5876 L_47023F4C: 5877 ebp = MEM32(0x470AC380); /* 0x47023F4C: mov ebp, dword ptr [0x470ac380] */ 5878 L_47023F52: 5879 eax = (int32_t)(int8_t)MEM8(edi); /* 0x47023F52: movsx eax, byte ptr [edi] */ 5880 PUSH32(esp, eax); /* 0x47023F55: push eax */ 5881 PUSH32(esp, 0x47105AACu); /* 0x47023F56: push 0x47105aac */ 5882 RECOMP_ICALL(ebp); /* 0x47023F5B: call ebp */ 5883 RECOMP_FLAGS_IN(); 5884 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5885 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5886 esp = esp + 8; /* 0x47023F5D: add esp, 8 */ 5887 _flag_k = FK_ADD; 5888 /* test eax, eax */ /* 0x47023F60: test eax, eax */ 5889 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5890 _cf = 0; 5891 _flag_k = FK_TEST; 5892 if (TEST_NZ(_flag_a, _flag_b)) goto L_47023F76; /* 0x47023F62: jne 0x47023f76 */ 5893 L_47023F64: 5894 SET_LO8(eax, MEM8(edi + 0x1)); /* 0x47023F64: mov al, byte ptr [edi + 1] */ 5895 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 5896 edi = edi + 1; /* 0x47023F67: inc edi */ 5897 _flag_k = FK_INC; 5898 /* test LO8(eax), LO8(eax) */ /* 0x47023F68: test al, al */ 5899 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5900 _cf = 0; 5901 _flag_k = FK_NARROW(FK_TEST, 24); 5902 RECOMP_BACKEDGE(); 5903 if (TEST_NZ(_flag_a, _flag_b)) goto L_47023F52; /* 0x47023F6A: jne 0x47023f52 */ 5904 L_47023F6C: 5905 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5907 edi = edi - ebx; /* 0x47023F6C: sub edi, ebx */ 5908 _flag_k = FK_CMP; 5909 /* cmp edi, 0xFFu */ /* 0x47023F6E: cmp edi, 0xff */ 5910 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFu); 5911 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5912 _flag_k = FK_CMP; 5913 if (CMP_LE(_flag_a, _flag_b)) goto L_47023F7E; /* 0x47023F74: jle 0x47023f7e */ 5914 L_47023F76: 5915 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5916 eax = eax | 0xFFFFFFFFu; /* 0x47023F76: or eax, 0xffffffff */ 5917 _cf = 0; 5918 _flag_k = FK_TEST; 5919 goto L_47024553; /* 0x47023F79: jmp 0x47024553 */ 5920 L_47023F7E: 5921 RECOMP_ICALL(0x4703DAC0u); /* 0x47023F7E: call 0x4703dac0 */ /* not lifted */ 5922 RECOMP_FLAGS_IN(); 5923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5924 ebp = 0; /* 0x47023F83: xor ebp, ebp */ 5925 _cf = 0; 5926 _flag_k = FK_TEST; 5927 MEM32(esp + 0x50) = eax; /* 0x47023F85: mov dword ptr [esp + 0x50], eax */ 5928 MEM32(esp + 0x54) = ebp; /* 0x47023F89: mov dword ptr [esp + 0x54], ebp */ 5929 MEM32(esp + 0x58) = ebp; /* 0x47023F8D: mov dword ptr [esp + 0x58], ebp */ 5930 MEM32(esp + 0x5C) = 0x4710F078u; /* 0x47023F91: mov dword ptr [esp + 0x5c], 0x4710f078 */ 5931 MEM32(esp + 0x60) = ebp; /* 0x47023F99: mov dword ptr [esp + 0x60], ebp */ 5932 eax = MEM32(esp + 0x88); /* 0x47023F9D: mov eax, dword ptr [esp + 0x88] */ 5933 eax = MEM32(eax); /* 0x47023FA4: mov eax, dword ptr [eax] */ 5934 /* cmp eax, ebp */ /* 0x47023FA6: cmp eax, ebp */ 5935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 5936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5937 _flag_k = FK_CMP; 5938 MEM32(esp + 0x80) = ebp; /* 0x47023FA8: mov dword ptr [esp + 0x80], ebp */ 5939 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702400F; /* 0x47023FAF: je 0x4702400f */ 5940 L_47023FB1: 5941 ecx = MEM32(eax + 0x8); /* 0x47023FB1: mov ecx, dword ptr [eax + 8] */ 5942 PUSH32(esp, 1); /* 0x47023FB4: push 1 */ 5943 PUSH32(esp, ebp); /* 0x47023FB6: push ebp */ 5944 PUSH32(esp, ecx); /* 0x47023FB7: push ecx */ 5945 ecx = esp + 0x70; /* 0x47023FB8: lea ecx, [esp + 0x70] */ 5946 RECOMP_ICALL(0x47007130u); /* 0x47023FBC: call 0x47007130 */ /* not lifted */ 5947 RECOMP_FLAGS_IN(); 5948 edx = esp + 0x64; /* 0x47023FC1: lea edx, [esp + 0x64] */ 5949 PUSH32(esp, edx); /* 0x47023FC5: push edx */ 5950 ecx = esp + 0x54; /* 0x47023FC6: lea ecx, [esp + 0x54] */ 5951 MEM8(esp + 0x84) = (uint8_t)(1); /* 0x47023FCA: mov byte ptr [esp + 0x84], 1 */ 5952 RECOMP_ICALL(0x47007250u); /* 0x47023FD2: call 0x47007250 */ /* not lifted */ 5953 RECOMP_FLAGS_IN(); 5954 PUSH32(esp, ebp); /* 0x47023FD7: push ebp */ 5955 PUSH32(esp, ebp); /* 0x47023FD8: push ebp */ 5956 PUSH32(esp, ebp); /* 0x47023FD9: push ebp */ 5957 ecx = esp + 0x70; /* 0x47023FDA: lea ecx, [esp + 0x70] */ 5958 MEM8(esp + 0x8C) = (uint8_t)(0); /* 0x47023FDE: mov byte ptr [esp + 0x8c], 0 */ 5959 RECOMP_ICALL(0x470802D0u); /* 0x47023FE6: call 0x470802d0 */ /* not lifted */ 5960 RECOMP_FLAGS_IN(); 5961 eax = MEM32(esp + 0x54); /* 0x47023FEB: mov eax, dword ptr [esp + 0x54] */ 5962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5963 eax = eax + 1; /* 0x47023FEF: inc eax */ 5964 _flag_k = FK_INC; 5965 PUSH32(esp, eax); /* 0x47023FF0: push eax */ 5966 RECOMP_ICALL(0x470A33F2u); /* 0x47023FF1: call 0x470a33f2 */ /* not lifted */ 5967 RECOMP_FLAGS_IN(); 5968 edi = eax; /* 0x47023FF6: mov edi, eax */ 5969 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5970 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5971 esp = esp + 4; /* 0x47023FF8: add esp, 4 */ 5972 _flag_k = FK_ADD; 5973 /* cmp edi, ebp */ /* 0x47023FFB: cmp edi, ebp */ 5974 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 5975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5976 _flag_k = FK_CMP; 5977 if (CMP_NE(_flag_a, _flag_b)) goto L_4702402E; /* 0x47023FFD: jne 0x4702402e */ 5978 L_47023FFF: 5979 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47023FFF: call dword ptr [0x470ac3c8] */ 5980 RECOMP_FLAGS_IN(); 5981 MEM32(eax) = 0xCu; /* 0x47024005: mov dword ptr [eax], 0xc */ 5982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5983 edi = 0; /* 0x4702400B: xor edi, edi */ 5984 _cf = 0; 5985 _flag_k = FK_TEST; 5986 goto L_4702404A; /* 0x4702400D: jmp 0x4702404a */ 5987 L_4702400F: 5988 PUSH32(esp, ebp); /* 0x4702400F: push ebp */ 5989 PUSH32(esp, ebp); /* 0x47024010: push ebp */ 5990 PUSH32(esp, ebp); /* 0x47024011: push ebp */ 5991 ecx = esp + 0x5C; /* 0x47024012: lea ecx, [esp + 0x5c] */ 5992 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x47024016: mov dword ptr [esp + 0x8c], 0xffffffff */ 5993 RECOMP_ICALL(0x470802D0u); /* 0x47024021: call 0x470802d0 */ /* not lifted */ 5994 RECOMP_FLAGS_IN(); 5995 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 5996 eax = eax | 0xFFFFFFFFu; /* 0x47024026: or eax, 0xffffffff */ 5997 _cf = 0; 5998 _flag_k = FK_TEST; 5999 goto L_47024553; /* 0x47024029: jmp 0x47024553 */ 6000 L_4702402E: 6001 ecx = MEM32(esp + 0x54); /* 0x4702402E: mov ecx, dword ptr [esp + 0x54] */ 6002 edx = MEM32(esp + 0x5C); /* 0x47024032: mov edx, dword ptr [esp + 0x5c] */ 6003 PUSH32(esp, ecx); /* 0x47024036: push ecx */ 6004 PUSH32(esp, edx); /* 0x47024037: push edx */ 6005 PUSH32(esp, edi); /* 0x47024038: push edi */ 6006 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024039: call dword ptr [0x470ac22c] */ 6007 RECOMP_FLAGS_IN(); 6008 eax = MEM32(esp + 0x60); /* 0x4702403F: mov eax, dword ptr [esp + 0x60] */ 6009 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6011 esp = esp + 0xCu; /* 0x47024043: add esp, 0xc */ 6012 _flag_k = FK_ADD; 6013 MEM8(eax + edi) = (uint8_t)(0); /* 0x47024046: mov byte ptr [eax + edi], 0 */ 6014 L_4702404A: 6015 MEM32(esp + 0x1C) = edi; /* 0x4702404A: mov dword ptr [esp + 0x1c], edi */ 6016 MEM32(esp + 0x30) = ebp; /* 0x4702404E: mov dword ptr [esp + 0x30], ebp */ 6017 MEM32(esp + 0x34) = ebp; /* 0x47024052: mov dword ptr [esp + 0x34], ebp */ 6018 eax = MEM32(esi + 0x8); /* 0x47024056: mov eax, dword ptr [esi + 8] */ 6019 ecx = MEM32(esi + 0xC); /* 0x47024059: mov ecx, dword ptr [esi + 0xc] */ 6020 edx = esp + 0x30; /* 0x4702405C: lea edx, [esp + 0x30] */ 6021 MEM32(ecx) = eax; /* 0x47024060: mov dword ptr [ecx], eax */ 6022 PUSH32(esp, edx); /* 0x47024062: push edx */ 6023 eax = esp + 0x20; /* 0x47024063: lea eax, [esp + 0x20] */ 6024 SET_LO8(ebx, 3); /* 0x47024067: mov bl, 3 */ 6025 PUSH32(esp, eax); /* 0x47024069: push eax */ 6026 MEM8(esp + 0x88) = (uint8_t)(LO8(ebx)); /* 0x4702406A: mov byte ptr [esp + 0x88], bl */ 6027 RECOMP_ICALL(0x47027020u); /* 0x47024071: call 0x47027020 */ /* not lifted */ 6028 RECOMP_FLAGS_IN(); 6029 /* test eax, eax */ /* 0x47024076: test eax, eax */ 6030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6031 _cf = 0; 6032 _flag_k = FK_TEST; 6033 if (TEST_NZ(_flag_a, _flag_b)) goto L_470241D0; /* 0x47024078: jne 0x470241d0 */ 6034 L_4702407E: 6035 /* cmp MEM32(esp + 0x54), ebp */ /* 0x4702407E: cmp dword ptr [esp + 0x54], ebp */ 6036 _flag_a = (uint32_t)(MEM32(esp + 0x54)); _flag_b = (uint32_t)(ebp); 6037 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6038 _flag_k = FK_CMP; 6039 if (CMP_EQ(_flag_a, _flag_b)) goto L_470240F0; /* 0x47024082: je 0x470240f0 */ 6040 L_47024084: 6041 RECOMP_ICALL(0x4703DAC0u); /* 0x47024084: call 0x4703dac0 */ /* not lifted */ 6042 RECOMP_FLAGS_IN(); 6043 ecx = 0x47105AB0u; /* 0x47024089: mov ecx, 0x47105ab0 */ 6044 /* test ecx, ecx */ /* 0x4702408E: test ecx, ecx */ 6045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6046 _cf = 0; 6047 _flag_k = FK_TEST; 6048 MEM32(esp + 0x64) = eax; /* 0x47024090: mov dword ptr [esp + 0x64], eax */ 6049 MEM32(esp + 0x68) = ebp; /* 0x47024094: mov dword ptr [esp + 0x68], ebp */ 6050 MEM32(esp + 0x6C) = ebp; /* 0x47024098: mov dword ptr [esp + 0x6c], ebp */ 6051 MEM32(esp + 0x70) = ebp; /* 0x4702409C: mov dword ptr [esp + 0x70], ebp */ 6052 MEM32(esp + 0x74) = ebp; /* 0x470240A0: mov dword ptr [esp + 0x74], ebp */ 6053 if (TEST_Z(_flag_a, _flag_b)) goto L_470240B4; /* 0x470240A4: je 0x470240b4 */ 6054 L_470240A6: 6055 edi = ecx; /* 0x470240A6: mov edi, ecx */ 6056 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6057 ecx = ecx | 0xFFFFFFFFu; /* 0x470240A8: or ecx, 0xffffffff */ 6058 _cf = 0; 6059 _flag_k = FK_TEST; 6060 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6061 eax = 0; /* 0x470240AB: xor eax, eax */ 6062 _cf = 0; 6063 _flag_k = FK_TEST; 6064 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; } /* 0x470240AD: repne scasb al, byte ptr es:[edi] */ 6065 ecx = ~ecx; /* 0x470240AF: not ecx */ 6066 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6067 ecx = ecx - 1; /* 0x470240B1: dec ecx */ 6068 _flag_k = FK_DEC; 6069 goto L_470240B6; /* 0x470240B2: jmp 0x470240b6 */ 6070 L_470240B4: 6071 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6072 ecx = 0; /* 0x470240B4: xor ecx, ecx */ 6073 _cf = 0; 6074 _flag_k = FK_TEST; 6075 L_470240B6: 6076 PUSH32(esp, 1); /* 0x470240B6: push 1 */ 6077 PUSH32(esp, ecx); /* 0x470240B8: push ecx */ 6078 PUSH32(esp, 0x47105AB0u); /* 0x470240B9: push 0x47105ab0 */ 6079 ecx = esp + 0x70; /* 0x470240BE: lea ecx, [esp + 0x70] */ 6080 RECOMP_ICALL(0x470802D0u); /* 0x470240C2: call 0x470802d0 */ /* not lifted */ 6081 RECOMP_FLAGS_IN(); 6082 edx = esp + 0x64; /* 0x470240C7: lea edx, [esp + 0x64] */ 6083 PUSH32(esp, edx); /* 0x470240CB: push edx */ 6084 ecx = esp + 0x54; /* 0x470240CC: lea ecx, [esp + 0x54] */ 6085 MEM8(esp + 0x84) = (uint8_t)(4); /* 0x470240D0: mov byte ptr [esp + 0x84], 4 */ 6086 RECOMP_ICALL(0x47080540u); /* 0x470240D8: call 0x47080540 */ /* not lifted */ 6087 RECOMP_FLAGS_IN(); 6088 PUSH32(esp, ebp); /* 0x470240DD: push ebp */ 6089 PUSH32(esp, ebp); /* 0x470240DE: push ebp */ 6090 PUSH32(esp, ebp); /* 0x470240DF: push ebp */ 6091 ecx = esp + 0x70; /* 0x470240E0: lea ecx, [esp + 0x70] */ 6092 MEM8(esp + 0x8C) = (uint8_t)(LO8(ebx)); /* 0x470240E4: mov byte ptr [esp + 0x8c], bl */ 6093 RECOMP_ICALL(0x470802D0u); /* 0x470240EB: call 0x470802d0 */ /* not lifted */ 6094 RECOMP_FLAGS_IN(); 6095 L_470240F0: 6096 RECOMP_ICALL(0x4703DAC0u); /* 0x470240F0: call 0x4703dac0 */ /* not lifted */ 6097 RECOMP_FLAGS_IN(); 6098 edx = MEM32(esp + 0x8C); /* 0x470240F5: mov edx, dword ptr [esp + 0x8c] */ 6099 /* cmp edx, ebp */ /* 0x470240FC: cmp edx, ebp */ 6100 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp); 6101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6102 _flag_k = FK_CMP; 6103 MEM32(esp + 0x64) = eax; /* 0x470240FE: mov dword ptr [esp + 0x64], eax */ 6104 MEM32(esp + 0x68) = ebp; /* 0x47024102: mov dword ptr [esp + 0x68], ebp */ 6105 MEM32(esp + 0x6C) = ebp; /* 0x47024106: mov dword ptr [esp + 0x6c], ebp */ 6106 MEM32(esp + 0x70) = ebp; /* 0x4702410A: mov dword ptr [esp + 0x70], ebp */ 6107 MEM32(esp + 0x74) = ebp; /* 0x4702410E: mov dword ptr [esp + 0x74], ebp */ 6108 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024122; /* 0x47024112: je 0x47024122 */ 6109 L_47024114: 6110 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6111 ecx = ecx | 0xFFFFFFFFu; /* 0x47024114: or ecx, 0xffffffff */ 6112 _cf = 0; 6113 _flag_k = FK_TEST; 6114 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6115 eax = 0; /* 0x47024117: xor eax, eax */ 6116 _cf = 0; 6117 _flag_k = FK_TEST; 6118 edi = edx; /* 0x47024119: mov edi, edx */ 6119 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; } /* 0x4702411B: repne scasb al, byte ptr es:[edi] */ 6120 ecx = ~ecx; /* 0x4702411D: not ecx */ 6121 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6122 ecx = ecx - 1; /* 0x4702411F: dec ecx */ 6123 _flag_k = FK_DEC; 6124 goto L_47024124; /* 0x47024120: jmp 0x47024124 */ 6125 L_47024122: 6126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6127 ecx = 0; /* 0x47024122: xor ecx, ecx */ 6128 _cf = 0; 6129 _flag_k = FK_TEST; 6130 L_47024124: 6131 PUSH32(esp, 1); /* 0x47024124: push 1 */ 6132 PUSH32(esp, ecx); /* 0x47024126: push ecx */ 6133 PUSH32(esp, edx); /* 0x47024127: push edx */ 6134 ecx = esp + 0x70; /* 0x47024128: lea ecx, [esp + 0x70] */ 6135 RECOMP_ICALL(0x470802D0u); /* 0x4702412C: call 0x470802d0 */ /* not lifted */ 6136 RECOMP_FLAGS_IN(); 6137 eax = esp + 0x64; /* 0x47024131: lea eax, [esp + 0x64] */ 6138 PUSH32(esp, eax); /* 0x47024135: push eax */ 6139 ecx = esp + 0x54; /* 0x47024136: lea ecx, [esp + 0x54] */ 6140 MEM8(esp + 0x84) = (uint8_t)(5); /* 0x4702413A: mov byte ptr [esp + 0x84], 5 */ 6141 RECOMP_ICALL(0x47080540u); /* 0x47024142: call 0x47080540 */ /* not lifted */ 6142 RECOMP_FLAGS_IN(); 6143 PUSH32(esp, ebp); /* 0x47024147: push ebp */ 6144 PUSH32(esp, ebp); /* 0x47024148: push ebp */ 6145 PUSH32(esp, ebp); /* 0x47024149: push ebp */ 6146 ecx = esp + 0x70; /* 0x4702414A: lea ecx, [esp + 0x70] */ 6147 MEM8(esp + 0x8C) = (uint8_t)(LO8(ebx)); /* 0x4702414E: mov byte ptr [esp + 0x8c], bl */ 6148 RECOMP_ICALL(0x470802D0u); /* 0x47024155: call 0x470802d0 */ /* not lifted */ 6149 RECOMP_FLAGS_IN(); 6150 ecx = MEM32(esp + 0x54); /* 0x4702415A: mov ecx, dword ptr [esp + 0x54] */ 6151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6152 ecx = ecx + 1; /* 0x4702415E: inc ecx */ 6153 _flag_k = FK_INC; 6154 PUSH32(esp, ecx); /* 0x4702415F: push ecx */ 6155 RECOMP_ICALL(0x470A33F2u); /* 0x47024160: call 0x470a33f2 */ /* not lifted */ 6156 RECOMP_FLAGS_IN(); 6157 edi = eax; /* 0x47024165: mov edi, eax */ 6158 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6159 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6160 esp = esp + 4; /* 0x47024167: add esp, 4 */ 6161 _flag_k = FK_ADD; 6162 /* cmp edi, ebp */ /* 0x4702416A: cmp edi, ebp */ 6163 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 6164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6165 _flag_k = FK_CMP; 6166 if (CMP_NE(_flag_a, _flag_b)) goto L_4702417E; /* 0x4702416C: jne 0x4702417e */ 6167 L_4702416E: 6168 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702416E: call dword ptr [0x470ac3c8] */ 6169 RECOMP_FLAGS_IN(); 6170 MEM32(eax) = 0xCu; /* 0x47024174: mov dword ptr [eax], 0xc */ 6171 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6172 edi = 0; /* 0x4702417A: xor edi, edi */ 6173 _cf = 0; 6174 _flag_k = FK_TEST; 6175 goto L_4702419A; /* 0x4702417C: jmp 0x4702419a */ 6176 L_4702417E: 6177 edx = MEM32(esp + 0x54); /* 0x4702417E: mov edx, dword ptr [esp + 0x54] */ 6178 eax = MEM32(esp + 0x5C); /* 0x47024182: mov eax, dword ptr [esp + 0x5c] */ 6179 PUSH32(esp, edx); /* 0x47024186: push edx */ 6180 PUSH32(esp, eax); /* 0x47024187: push eax */ 6181 PUSH32(esp, edi); /* 0x47024188: push edi */ 6182 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024189: call dword ptr [0x470ac22c] */ 6183 RECOMP_FLAGS_IN(); 6184 ecx = MEM32(esp + 0x60); /* 0x4702418F: mov ecx, dword ptr [esp + 0x60] */ 6185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6186 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6187 esp = esp + 0xCu; /* 0x47024193: add esp, 0xc */ 6188 _flag_k = FK_ADD; 6189 MEM8(ecx + edi) = (uint8_t)(0); /* 0x47024196: mov byte ptr [ecx + edi], 0 */ 6190 L_4702419A: 6191 MEM32(esp + 0x18) = edi; /* 0x4702419A: mov dword ptr [esp + 0x18], edi */ 6192 edi = MEM32(esi + 0xC); /* 0x4702419E: mov edi, dword ptr [esi + 0xc] */ 6193 edx = edi + 0x4; /* 0x470241A1: lea edx, [edi + 4] */ 6194 PUSH32(esp, edx); /* 0x470241A4: push edx */ 6195 ecx = esp + 0x28; /* 0x470241A5: lea ecx, [esp + 0x28] */ 6196 RECOMP_ICALL(0x470010E0u); /* 0x470241A9: call 0x470010e0 */ /* not lifted */ 6197 RECOMP_FLAGS_IN(); 6198 eax = esp + 0x28; /* 0x470241AE: lea eax, [esp + 0x28] */ 6199 PUSH32(esp, eax); /* 0x470241B2: push eax */ 6200 ecx = esp + 0x18; /* 0x470241B3: lea ecx, [esp + 0x18] */ 6201 PUSH32(esp, ecx); /* 0x470241B7: push ecx */ 6202 edx = esp + 0x20; /* 0x470241B8: lea edx, [esp + 0x20] */ 6203 PUSH32(esp, edx); /* 0x470241BC: push edx */ 6204 ecx = edi; /* 0x470241BD: mov ecx, edi */ 6205 MEM8(esp + 0x8C) = (uint8_t)(7); /* 0x470241BF: mov byte ptr [esp + 0x8c], 7 */ 6206 RECOMP_ICALL(0x470284C0u); /* 0x470241C7: call 0x470284c0 */ /* not lifted */ 6207 RECOMP_FLAGS_IN(); 6208 /* cmp eax, ebp */ /* 0x470241CC: cmp eax, ebp */ 6209 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6211 _flag_k = FK_CMP; 6212 if (CMP_EQ(_flag_a, _flag_b)) goto L_470241F1; /* 0x470241CE: je 0x470241f1 */ 6213 L_470241D0: 6214 PUSH32(esp, ebp); /* 0x470241D0: push ebp */ 6215 PUSH32(esp, ebp); /* 0x470241D1: push ebp */ 6216 PUSH32(esp, ebp); /* 0x470241D2: push ebp */ 6217 ecx = esp + 0x5C; /* 0x470241D3: lea ecx, [esp + 0x5c] */ 6218 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x470241D7: mov dword ptr [esp + 0x8c], 0xffffffff */ 6219 RECOMP_ICALL(0x470802D0u); /* 0x470241E2: call 0x470802d0 */ /* not lifted */ 6220 RECOMP_FLAGS_IN(); 6221 eax = 0xFFFFFFFEu; /* 0x470241E7: mov eax, 0xfffffffe */ 6222 goto L_47024553; /* 0x470241EC: jmp 0x47024553 */ 6223 L_470241F1: 6224 /* cmp MEM32(esp + 0x90), ebp */ /* 0x470241F1: cmp dword ptr [esp + 0x90], ebp */ 6225 _flag_a = (uint32_t)(MEM32(esp + 0x90)); _flag_b = (uint32_t)(ebp); 6226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6227 _flag_k = FK_CMP; 6228 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702432E; /* 0x470241F8: je 0x4702432e */ 6229 L_470241FE: 6230 MEM32(esp + 0x90) = ebp; /* 0x470241FE: mov dword ptr [esp + 0x90], ebp */ 6231 edx = MEM32(esp + 0x8C); /* 0x47024205: mov edx, dword ptr [esp + 0x8c] */ 6232 eax = MEM32(esi); /* 0x4702420C: mov eax, dword ptr [esi] */ 6233 ecx = esp + 0x90; /* 0x4702420E: lea ecx, [esp + 0x90] */ 6234 PUSH32(esp, ecx); /* 0x47024215: push ecx */ 6235 ecx = MEM32(esp + 0x8C); /* 0x47024216: mov ecx, dword ptr [esp + 0x8c] */ 6236 PUSH32(esp, ebp); /* 0x4702421D: push ebp */ 6237 PUSH32(esp, edx); /* 0x4702421E: push edx */ 6238 PUSH32(esp, ecx); /* 0x4702421F: push ecx */ 6239 ecx = esi; /* 0x47024220: mov ecx, esi */ 6240 MEM8(esp + 0x90) = (uint8_t)(8); /* 0x47024222: mov byte ptr [esp + 0x90], 8 */ 6241 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4702422A: call dword ptr [eax + 8] */ 6242 RECOMP_FLAGS_IN(); 6243 /* test eax, eax */ /* 0x4702422D: test eax, eax */ 6244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6245 _cf = 0; 6246 _flag_k = FK_TEST; 6247 if (TEST_Z(_flag_a, _flag_b)) goto L_47024252; /* 0x4702422F: je 0x47024252 */ 6248 L_47024231: 6249 ecx = MEM32(esp + 0x90); /* 0x47024231: mov ecx, dword ptr [esp + 0x90] */ 6250 /* cmp ecx, ebp */ /* 0x47024238: cmp ecx, ebp */ 6251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 6252 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6253 _flag_k = FK_CMP; 6254 MEM8(esp + 0x80) = (uint8_t)(6); /* 0x4702423A: mov byte ptr [esp + 0x80], 6 */ 6255 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702433A; /* 0x47024242: je 0x4702433a */ 6256 L_47024248: 6257 edx = MEM32(ecx); /* 0x47024248: mov edx, dword ptr [ecx] */ 6258 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x4702424A: call dword ptr [edx + 8] */ 6259 RECOMP_FLAGS_IN(); 6260 goto L_4702433A; /* 0x4702424D: jmp 0x4702433a */ 6261 L_47024252: 6262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6263 ebx = 0; /* 0x47024252: xor ebx, ebx */ 6264 _cf = 0; 6265 _flag_k = FK_TEST; 6266 RECOMP_ICALL(0x4703DAC0u); /* 0x47024254: call 0x4703dac0 */ /* not lifted */ 6267 RECOMP_FLAGS_IN(); 6268 MEM32(esp + 0x64) = eax; /* 0x47024259: mov dword ptr [esp + 0x64], eax */ 6269 MEM32(esp + 0x68) = ebp; /* 0x4702425D: mov dword ptr [esp + 0x68], ebp */ 6270 MEM32(esp + 0x6C) = ebp; /* 0x47024261: mov dword ptr [esp + 0x6c], ebp */ 6271 MEM32(esp + 0x70) = 0x4710F078u; /* 0x47024265: mov dword ptr [esp + 0x70], 0x4710f078 */ 6272 MEM32(esp + 0x74) = ebp; /* 0x4702426D: mov dword ptr [esp + 0x74], ebp */ 6273 eax = MEM32(esi); /* 0x47024271: mov eax, dword ptr [esi] */ 6274 ecx = esp + 0x64; /* 0x47024273: lea ecx, [esp + 0x64] */ 6275 PUSH32(esp, ecx); /* 0x47024277: push ecx */ 6276 PUSH32(esp, ebp); /* 0x47024278: push ebp */ 6277 edx = esp + 0x98; /* 0x47024279: lea edx, [esp + 0x98] */ 6278 PUSH32(esp, edx); /* 0x47024280: push edx */ 6279 ecx = esi; /* 0x47024281: mov ecx, esi */ 6280 MEM8(esp + 0x8C) = (uint8_t)(9); /* 0x47024283: mov byte ptr [esp + 0x8c], 9 */ 6281 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x4702428B: call dword ptr [eax + 0x14] */ 6282 RECOMP_FLAGS_IN(); 6283 /* test eax, eax */ /* 0x4702428E: test eax, eax */ 6284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6285 _cf = 0; 6286 _flag_k = FK_TEST; 6287 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024302; /* 0x47024290: jne 0x47024302 */ 6288 L_47024292: 6289 eax = MEM32(esp + 0x68); /* 0x47024292: mov eax, dword ptr [esp + 0x68] */ 6290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6291 eax = eax + 1; /* 0x47024296: inc eax */ 6292 _flag_k = FK_INC; 6293 PUSH32(esp, eax); /* 0x47024297: push eax */ 6294 RECOMP_ICALL(0x470A33F2u); /* 0x47024298: call 0x470a33f2 */ /* not lifted */ 6295 RECOMP_FLAGS_IN(); 6296 edi = eax; /* 0x4702429D: mov edi, eax */ 6297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6299 esp = esp + 4; /* 0x4702429F: add esp, 4 */ 6300 _flag_k = FK_ADD; 6301 /* cmp edi, ebp */ /* 0x470242A2: cmp edi, ebp */ 6302 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 6303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6304 _flag_k = FK_CMP; 6305 if (CMP_NE(_flag_a, _flag_b)) goto L_470242B6; /* 0x470242A4: jne 0x470242b6 */ 6306 L_470242A6: 6307 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470242A6: call dword ptr [0x470ac3c8] */ 6308 RECOMP_FLAGS_IN(); 6309 MEM32(eax) = 0xCu; /* 0x470242AC: mov dword ptr [eax], 0xc */ 6310 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6311 edi = 0; /* 0x470242B2: xor edi, edi */ 6312 _cf = 0; 6313 _flag_k = FK_TEST; 6314 goto L_470242D2; /* 0x470242B4: jmp 0x470242d2 */ 6315 L_470242B6: 6316 ecx = MEM32(esp + 0x68); /* 0x470242B6: mov ecx, dword ptr [esp + 0x68] */ 6317 edx = MEM32(esp + 0x70); /* 0x470242BA: mov edx, dword ptr [esp + 0x70] */ 6318 PUSH32(esp, ecx); /* 0x470242BE: push ecx */ 6319 PUSH32(esp, edx); /* 0x470242BF: push edx */ 6320 PUSH32(esp, edi); /* 0x470242C0: push edi */ 6321 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470242C1: call dword ptr [0x470ac22c] */ 6322 RECOMP_FLAGS_IN(); 6323 eax = MEM32(esp + 0x74); /* 0x470242C7: mov eax, dword ptr [esp + 0x74] */ 6324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6326 esp = esp + 0xCu; /* 0x470242CB: add esp, 0xc */ 6327 _flag_k = FK_ADD; 6328 MEM8(eax + edi) = (uint8_t)(0); /* 0x470242CE: mov byte ptr [eax + edi], 0 */ 6329 L_470242D2: 6330 edx = MEM32(esi); /* 0x470242D2: mov edx, dword ptr [esi] */ 6331 PUSH32(esp, 1); /* 0x470242D4: push 1 */ 6332 PUSH32(esp, edi); /* 0x470242D6: push edi */ 6333 eax = esp + 0x98; /* 0x470242D7: lea eax, [esp + 0x98] */ 6334 PUSH32(esp, eax); /* 0x470242DE: push eax */ 6335 ecx = esi; /* 0x470242DF: mov ecx, esi */ 6336 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470242E1: call dword ptr [edx + 0xc] */ 6337 RECOMP_FLAGS_IN(); 6338 /* test eax, eax */ /* 0x470242E4: test eax, eax */ 6339 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6340 _cf = 0; 6341 _flag_k = FK_TEST; 6342 if (TEST_NZ(_flag_a, _flag_b)) goto L_4702435B; /* 0x470242E6: jne 0x4702435b */ 6343 L_470242E8: 6344 edx = MEM32(esi); /* 0x470242E8: mov edx, dword ptr [esi] */ 6345 eax = esp + 0x64; /* 0x470242EA: lea eax, [esp + 0x64] */ 6346 PUSH32(esp, eax); /* 0x470242EE: push eax */ 6347 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6348 ebx = ebx + 1; /* 0x470242EF: inc ebx */ 6349 _flag_k = FK_INC; 6350 PUSH32(esp, ebx); /* 0x470242F0: push ebx */ 6351 ecx = esp + 0x98; /* 0x470242F1: lea ecx, [esp + 0x98] */ 6352 PUSH32(esp, ecx); /* 0x470242F8: push ecx */ 6353 ecx = esi; /* 0x470242F9: mov ecx, esi */ 6354 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x470242FB: call dword ptr [edx + 0x14] */ 6355 RECOMP_FLAGS_IN(); 6356 /* test eax, eax */ /* 0x470242FE: test eax, eax */ 6357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6358 _cf = 0; 6359 _flag_k = FK_TEST; 6360 RECOMP_BACKEDGE(); 6361 if (TEST_Z(_flag_a, _flag_b)) goto L_47024292; /* 0x47024300: je 0x47024292 */ 6362 L_47024302: 6363 PUSH32(esp, ebp); /* 0x47024302: push ebp */ 6364 PUSH32(esp, ebp); /* 0x47024303: push ebp */ 6365 PUSH32(esp, ebp); /* 0x47024304: push ebp */ 6366 ecx = esp + 0x70; /* 0x47024305: lea ecx, [esp + 0x70] */ 6367 MEM8(esp + 0x8C) = (uint8_t)(8); /* 0x47024309: mov byte ptr [esp + 0x8c], 8 */ 6368 RECOMP_ICALL(0x470802D0u); /* 0x47024311: call 0x470802d0 */ /* not lifted */ 6369 RECOMP_FLAGS_IN(); 6370 ecx = MEM32(esp + 0x90); /* 0x47024316: mov ecx, dword ptr [esp + 0x90] */ 6371 /* cmp ecx, ebp */ /* 0x4702431D: cmp ecx, ebp */ 6372 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 6373 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6374 _flag_k = FK_CMP; 6375 MEM8(esp + 0x80) = (uint8_t)(6); /* 0x4702431F: mov byte ptr [esp + 0x80], 6 */ 6376 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702432E; /* 0x47024327: je 0x4702432e */ 6377 L_47024329: 6378 eax = MEM32(ecx); /* 0x47024329: mov eax, dword ptr [ecx] */ 6379 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x4702432B: call dword ptr [eax + 8] */ 6380 RECOMP_FLAGS_IN(); 6381 L_4702432E: 6382 ecx = MEM32(esp + 0x14); /* 0x4702432E: mov ecx, dword ptr [esp + 0x14] */ 6383 edx = MEM32(ecx + 0x8); /* 0x47024332: mov edx, dword ptr [ecx + 8] */ 6384 /* cmp MEM32(edx + 0x10), ebp */ /* 0x47024335: cmp dword ptr [edx + 0x10], ebp */ 6385 _flag_a = (uint32_t)(MEM32(edx + 0x10)); _flag_b = (uint32_t)(ebp); 6386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6387 _flag_k = FK_CMP; 6388 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024389; /* 0x47024338: je 0x47024389 */ 6389 L_4702433A: 6390 PUSH32(esp, ebp); /* 0x4702433A: push ebp */ 6391 PUSH32(esp, ebp); /* 0x4702433B: push ebp */ 6392 PUSH32(esp, ebp); /* 0x4702433C: push ebp */ 6393 ecx = esp + 0x5C; /* 0x4702433D: lea ecx, [esp + 0x5c] */ 6394 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x47024341: mov dword ptr [esp + 0x8c], 0xffffffff */ 6395 RECOMP_ICALL(0x470802D0u); /* 0x4702434C: call 0x470802d0 */ /* not lifted */ 6396 RECOMP_FLAGS_IN(); 6397 eax = 0xFFFFFFFDu; /* 0x47024351: mov eax, 0xfffffffd */ 6398 goto L_47024553; /* 0x47024356: jmp 0x47024553 */ 6399 L_4702435B: 6400 PUSH32(esp, ebp); /* 0x4702435B: push ebp */ 6401 PUSH32(esp, ebp); /* 0x4702435C: push ebp */ 6402 PUSH32(esp, ebp); /* 0x4702435D: push ebp */ 6403 ecx = esp + 0x70; /* 0x4702435E: lea ecx, [esp + 0x70] */ 6404 MEM8(esp + 0x8C) = (uint8_t)(8); /* 0x47024362: mov byte ptr [esp + 0x8c], 8 */ 6405 RECOMP_ICALL(0x470802D0u); /* 0x4702436A: call 0x470802d0 */ /* not lifted */ 6406 RECOMP_FLAGS_IN(); 6407 ecx = MEM32(esp + 0x90); /* 0x4702436F: mov ecx, dword ptr [esp + 0x90] */ 6408 /* cmp ecx, ebp */ /* 0x47024376: cmp ecx, ebp */ 6409 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 6410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6411 _flag_k = FK_CMP; 6412 MEM8(esp + 0x80) = (uint8_t)(6); /* 0x47024378: mov byte ptr [esp + 0x80], 6 */ 6413 if (CMP_EQ(_flag_a, _flag_b)) goto L_470243D7; /* 0x47024380: je 0x470243d7 */ 6414 L_47024382: 6415 edx = MEM32(ecx); /* 0x47024382: mov edx, dword ptr [ecx] */ 6416 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47024384: call dword ptr [edx + 8] */ 6417 RECOMP_FLAGS_IN(); 6418 goto L_470243D7; /* 0x47024387: jmp 0x470243d7 */ 6419 L_47024389: 6420 eax = MEM32(esp + 0x8C); /* 0x47024389: mov eax, dword ptr [esp + 0x8c] */ 6421 MEM32(esp + 0x10) = eax; /* 0x47024390: mov dword ptr [esp + 0x10], eax */ 6422 eax = MEM32(esp + 0x34); /* 0x47024394: mov eax, dword ptr [esp + 0x34] */ 6423 edi = eax; /* 0x47024398: mov edi, eax */ 6424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6425 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6426 eax = eax + 4; /* 0x4702439A: add eax, 4 */ 6427 _flag_k = FK_ADD; 6428 PUSH32(esp, eax); /* 0x4702439D: push eax */ 6429 ecx = esp + 0x90; /* 0x4702439E: lea ecx, [esp + 0x90] */ 6430 RECOMP_ICALL(0x470010E0u); /* 0x470243A5: call 0x470010e0 */ /* not lifted */ 6431 RECOMP_FLAGS_IN(); 6432 ecx = esp + 0x88; /* 0x470243AA: lea ecx, [esp + 0x88] */ 6433 PUSH32(esp, ecx); /* 0x470243B1: push ecx */ 6434 edx = esp + 0x24; /* 0x470243B2: lea edx, [esp + 0x24] */ 6435 PUSH32(esp, edx); /* 0x470243B6: push edx */ 6436 eax = esp + 0x18; /* 0x470243B7: lea eax, [esp + 0x18] */ 6437 PUSH32(esp, eax); /* 0x470243BB: push eax */ 6438 ecx = edi; /* 0x470243BC: mov ecx, edi */ 6439 MEM8(esp + 0x8C) = (uint8_t)(0xBu); /* 0x470243BE: mov byte ptr [esp + 0x8c], 0xb */ 6440 RECOMP_ICALL(0x470278A0u); /* 0x470243C6: call 0x470278a0 */ /* not lifted */ 6441 RECOMP_FLAGS_IN(); 6442 /* cmp eax, ebp */ /* 0x470243CB: cmp eax, ebp */ 6443 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6445 _flag_k = FK_CMP; 6446 MEM8(esp + 0x80) = (uint8_t)(0xAu); /* 0x470243CD: mov byte ptr [esp + 0x80], 0xa */ 6447 if (CMP_EQ(_flag_a, _flag_b)) goto L_470243F8; /* 0x470243D5: je 0x470243f8 */ 6448 L_470243D7: 6449 PUSH32(esp, ebp); /* 0x470243D7: push ebp */ 6450 PUSH32(esp, ebp); /* 0x470243D8: push ebp */ 6451 PUSH32(esp, ebp); /* 0x470243D9: push ebp */ 6452 ecx = esp + 0x5C; /* 0x470243DA: lea ecx, [esp + 0x5c] */ 6453 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x470243DE: mov dword ptr [esp + 0x8c], 0xffffffff */ 6454 RECOMP_ICALL(0x470802D0u); /* 0x470243E9: call 0x470802d0 */ /* not lifted */ 6455 RECOMP_FLAGS_IN(); 6456 eax = 0xFFFFFFFCu; /* 0x470243EE: mov eax, 0xfffffffc */ 6457 goto L_47024553; /* 0x470243F3: jmp 0x47024553 */ 6458 L_470243F8: 6459 eax = MEM32(esi + 0x8); /* 0x470243F8: mov eax, dword ptr [esi + 8] */ 6460 ecx = MEM32(esp + 0x34); /* 0x470243FB: mov ecx, dword ptr [esp + 0x34] */ 6461 edx = esp + 0x8C; /* 0x470243FF: lea edx, [esp + 0x8c] */ 6462 MEM32(ecx) = eax; /* 0x47024406: mov dword ptr [ecx], eax */ 6463 PUSH32(esp, edx); /* 0x47024408: push edx */ 6464 eax = esp + 0x14; /* 0x47024409: lea eax, [esp + 0x14] */ 6465 PUSH32(esp, eax); /* 0x4702440D: push eax */ 6466 RECOMP_ICALL(0x470277D0u); /* 0x4702440E: call 0x470277d0 */ /* not lifted */ 6467 RECOMP_FLAGS_IN(); 6468 /* test eax, eax */ /* 0x47024413: test eax, eax */ 6469 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6470 _cf = 0; 6471 _flag_k = FK_TEST; 6472 if (TEST_NZ(_flag_a, _flag_b)) goto L_470244F8; /* 0x47024415: jne 0x470244f8 */ 6473 L_4702441B: 6474 eax = MEM32(esp + 0x20); /* 0x4702441B: mov eax, dword ptr [esp + 0x20] */ 6475 ecx = MEM32(esi + 0x8); /* 0x4702441F: mov ecx, dword ptr [esi + 8] */ 6476 eax = MEM32(eax); /* 0x47024422: mov eax, dword ptr [eax] */ 6477 edx = MEM32(ecx); /* 0x47024424: mov edx, dword ptr [ecx] */ 6478 PUSH32(esp, eax); /* 0x47024426: push eax */ 6479 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024427: call dword ptr [edx + 0xc] */ 6480 RECOMP_FLAGS_IN(); 6481 eax = MEM32(esp + 0x14); /* 0x4702442A: mov eax, dword ptr [esp + 0x14] */ 6482 ebx = MEM32(eax); /* 0x4702442E: mov ebx, dword ptr [eax] */ 6483 MEM32(esp + 0x8C) = ebx; /* 0x47024430: mov dword ptr [esp + 0x8c], ebx */ 6484 ecx = MEM32(eax + 0x4); /* 0x47024437: mov ecx, dword ptr [eax + 4] */ 6485 edx = MEM32(eax + 0x8); /* 0x4702443A: mov edx, dword ptr [eax + 8] */ 6486 MEM32(esp + 0x28) = ecx; /* 0x4702443D: mov dword ptr [esp + 0x28], ecx */ 6487 MEM32(esp + 0x2C) = edx; /* 0x47024441: mov dword ptr [esp + 0x2c], edx */ 6488 eax = ecx; /* 0x47024445: mov eax, ecx */ 6489 PUSH32(esp, ebp); /* 0x47024447: push ebp */ 6490 PUSH32(esp, eax); /* 0x47024448: push eax */ 6491 ecx = esp + 0x4C; /* 0x47024449: lea ecx, [esp + 0x4c] */ 6492 MEM8(esp + 0x88) = (uint8_t)(0xDu); /* 0x4702444D: mov byte ptr [esp + 0x88], 0xd */ 6493 RECOMP_ICALL(0x47026400u); /* 0x47024455: call 0x47026400 */ /* not lifted */ 6494 RECOMP_FLAGS_IN(); 6495 edx = MEM32(eax); /* 0x4702445A: mov edx, dword ptr [eax] */ 6496 MEM32(esp + 0x38) = edx; /* 0x4702445C: mov dword ptr [esp + 0x38], edx */ 6497 ecx = MEM32(eax + 0x4); /* 0x47024460: mov ecx, dword ptr [eax + 4] */ 6498 MEM32(esp + 0x3C) = ecx; /* 0x47024463: mov dword ptr [esp + 0x3c], ecx */ 6499 eax = MEM32(eax + 0x8); /* 0x47024467: mov eax, dword ptr [eax + 8] */ 6500 MEM32(esp + 0x40) = eax; /* 0x4702446A: mov dword ptr [esp + 0x40], eax */ 6501 L_4702446E: 6502 edi = MEM32(edx + 0x8); /* 0x4702446E: mov edi, dword ptr [edx + 8] */ 6503 /* cmp edi, ebp */ /* 0x47024471: cmp edi, ebp */ 6504 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 6505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6506 _flag_k = FK_CMP; 6507 if (CMP_EQ(_flag_a, _flag_b)) goto L_470244E2; /* 0x47024473: je 0x470244e2 */ 6508 L_47024475: 6509 /* cmp ecx, MEM32(edx + 0xC) */ /* 0x47024475: cmp ecx, dword ptr [edx + 0xc] */ 6510 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edx + 0xC)); 6511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6512 _flag_k = FK_CMP; 6513 if (CMP_GE(_flag_a, _flag_b)) goto L_470244E2; /* 0x47024478: jge 0x470244e2 */ 6514 L_4702447A: 6515 /* cmp ecx, ebp */ /* 0x4702447A: cmp ecx, ebp */ 6516 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebp); 6517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6518 _flag_k = FK_CMP; 6519 if (CMP_L(_flag_a, _flag_b)) goto L_470244E2; /* 0x4702447C: jl 0x470244e2 */ 6520 L_4702447E: 6521 ecx = ecx + ecx * 2; /* 0x4702447E: lea ecx, [ecx + ecx*2] */ 6522 edx = edi + ecx * 8; /* 0x47024481: lea edx, [edi + ecx*8] */ 6523 /* cmp eax, edx */ /* 0x47024484: cmp eax, edx */ 6524 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6526 _flag_k = FK_CMP; 6527 if (CMP_EQ(_flag_a, _flag_b)) goto L_470244C4; /* 0x47024486: je 0x470244c4 */ 6528 L_47024488: 6529 ecx = MEM32(esi + 0x8); /* 0x47024488: mov ecx, dword ptr [esi + 8] */ 6530 edx = MEM32(ecx); /* 0x4702448B: mov edx, dword ptr [ecx] */ 6531 edi = eax; /* 0x4702448D: mov edi, eax */ 6532 eax = MEM32(eax); /* 0x4702448F: mov eax, dword ptr [eax] */ 6533 PUSH32(esp, eax); /* 0x47024491: push eax */ 6534 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024492: call dword ptr [edx + 0xc] */ 6535 RECOMP_FLAGS_IN(); 6536 eax = MEM32(edi + 0x4); /* 0x47024495: mov eax, dword ptr [edi + 4] */ 6537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 6538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6539 eax = eax - ebp; /* 0x47024498: sub eax, ebp */ 6540 _flag_k = FK_CMP; 6541 ecx = MEM32(esi + 0x8); /* 0x4702449A: mov ecx, dword ptr [esi + 8] */ 6542 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_470244A4; /* 0x4702449D: je 0x470244a4 */ 6543 L_4702449F: 6544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 6545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6546 eax = eax - 2; /* 0x4702449F: sub eax, 2 */ 6547 _flag_k = FK_CMP; 6548 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_470244AD; /* 0x470244A2: jne 0x470244ad */ 6549 L_470244A4: 6550 eax = MEM32(edi + 0x8); /* 0x470244A4: mov eax, dword ptr [edi + 8] */ 6551 edx = MEM32(ecx); /* 0x470244A7: mov edx, dword ptr [ecx] */ 6552 PUSH32(esp, eax); /* 0x470244A9: push eax */ 6553 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470244AA: call dword ptr [edx + 0xc] */ 6554 RECOMP_FLAGS_IN(); 6555 L_470244AD: 6556 ecx = esp + 0x38; /* 0x470244AD: lea ecx, [esp + 0x38] */ 6557 RECOMP_ICALL(0x47026550u); /* 0x470244B1: call 0x47026550 */ /* not lifted */ 6558 RECOMP_FLAGS_IN(); 6559 ecx = MEM32(esp + 0x3C); /* 0x470244B6: mov ecx, dword ptr [esp + 0x3c] */ 6560 eax = MEM32(esp + 0x40); /* 0x470244BA: mov eax, dword ptr [esp + 0x40] */ 6561 edx = MEM32(esp + 0x38); /* 0x470244BE: mov edx, dword ptr [esp + 0x38] */ 6562 RECOMP_BACKEDGE(); 6563 goto L_4702446E; /* 0x470244C2: jmp 0x4702446e */ 6564 L_470244C4: 6565 PUSH32(esp, ebp); /* 0x470244C4: push ebp */ 6566 PUSH32(esp, ebp); /* 0x470244C5: push ebp */ 6567 PUSH32(esp, ebp); /* 0x470244C6: push ebp */ 6568 ecx = esp + 0x5C; /* 0x470244C7: lea ecx, [esp + 0x5c] */ 6569 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x470244CB: mov dword ptr [esp + 0x8c], 0xffffffff */ 6570 RECOMP_ICALL(0x470802D0u); /* 0x470244D6: call 0x470802d0 */ /* not lifted */ 6571 RECOMP_FLAGS_IN(); 6572 eax = 1; /* 0x470244DB: mov eax, 1 */ 6573 goto L_47024553; /* 0x470244E0: jmp 0x47024553 */ 6574 L_470244E2: 6575 eax = MEM32(esi + 0x8); /* 0x470244E2: mov eax, dword ptr [esi + 8] */ 6576 ecx = MEM32(esi + 0xC); /* 0x470244E5: mov ecx, dword ptr [esi + 0xc] */ 6577 edx = esp + 0x18; /* 0x470244E8: lea edx, [esp + 0x18] */ 6578 PUSH32(esp, edx); /* 0x470244EC: push edx */ 6579 MEM32(ecx) = eax; /* 0x470244ED: mov dword ptr [ecx], eax */ 6580 RECOMP_ICALL(0x470270C0u); /* 0x470244EF: call 0x470270c0 */ /* not lifted */ 6581 RECOMP_FLAGS_IN(); 6582 /* test eax, eax */ /* 0x470244F4: test eax, eax */ 6583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6584 _cf = 0; 6585 _flag_k = FK_TEST; 6586 if (TEST_Z(_flag_a, _flag_b)) goto L_47024516; /* 0x470244F6: je 0x47024516 */ 6587 L_470244F8: 6588 PUSH32(esp, ebp); /* 0x470244F8: push ebp */ 6589 PUSH32(esp, ebp); /* 0x470244F9: push ebp */ 6590 PUSH32(esp, ebp); /* 0x470244FA: push ebp */ 6591 ecx = esp + 0x5C; /* 0x470244FB: lea ecx, [esp + 0x5c] */ 6592 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x470244FF: mov dword ptr [esp + 0x8c], 0xffffffff */ 6593 RECOMP_ICALL(0x470802D0u); /* 0x4702450A: call 0x470802d0 */ /* not lifted */ 6594 RECOMP_FLAGS_IN(); 6595 eax = 0xFFFFFFFBu; /* 0x4702450F: mov eax, 0xfffffffb */ 6596 goto L_47024553; /* 0x47024514: jmp 0x47024553 */ 6597 L_47024516: 6598 ecx = MEM32(esi + 0x8); /* 0x47024516: mov ecx, dword ptr [esi + 8] */ 6599 eax = MEM32(ecx); /* 0x47024519: mov eax, dword ptr [ecx] */ 6600 PUSH32(esp, ebx); /* 0x4702451B: push ebx */ 6601 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x4702451C: call dword ptr [eax + 0xc] */ 6602 RECOMP_FLAGS_IN(); 6603 esi = MEM32(esi + 0x8); /* 0x4702451F: mov esi, dword ptr [esi + 8] */ 6604 eax = MEM32(esp + 0x28); /* 0x47024522: mov eax, dword ptr [esp + 0x28] */ 6605 edx = MEM32(esi); /* 0x47024526: mov edx, dword ptr [esi] */ 6606 PUSH32(esp, eax); /* 0x47024528: push eax */ 6607 ecx = esi; /* 0x47024529: mov ecx, esi */ 6608 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4702452B: call dword ptr [edx + 0xc] */ 6609 RECOMP_FLAGS_IN(); 6610 eax = MEM32(esp + 0x2C); /* 0x4702452E: mov eax, dword ptr [esp + 0x2c] */ 6611 edx = MEM32(esi); /* 0x47024532: mov edx, dword ptr [esi] */ 6612 PUSH32(esp, eax); /* 0x47024534: push eax */ 6613 ecx = esi; /* 0x47024535: mov ecx, esi */ 6614 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024537: call dword ptr [edx + 0xc] */ 6615 RECOMP_FLAGS_IN(); 6616 PUSH32(esp, ebp); /* 0x4702453A: push ebp */ 6617 PUSH32(esp, ebp); /* 0x4702453B: push ebp */ 6618 PUSH32(esp, ebp); /* 0x4702453C: push ebp */ 6619 ecx = esp + 0x5C; /* 0x4702453D: lea ecx, [esp + 0x5c] */ 6620 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x47024541: mov dword ptr [esp + 0x8c], 0xffffffff */ 6621 RECOMP_ICALL(0x470802D0u); /* 0x4702454C: call 0x470802d0 */ /* not lifted */ 6622 RECOMP_FLAGS_IN(); 6623 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6624 eax = 0; /* 0x47024551: xor eax, eax */ 6625 _cf = 0; 6626 _flag_k = FK_TEST; 6627 L_47024553: 6628 ecx = MEM32(esp + 0x78); /* 0x47024553: mov ecx, dword ptr [esp + 0x78] */ 6629 edi = POP32_VAL(esp); /* 0x47024557: pop edi */ 6630 esi = POP32_VAL(esp); /* 0x47024558: pop esi */ 6631 ebp = POP32_VAL(esp); /* 0x47024559: pop ebp */ 6632 ebx = POP32_VAL(esp); /* 0x4702455A: pop ebx */ 6633 MEM32(FS_BASE + (0)) = ecx; /* 0x4702455B: mov dword ptr fs:[0], ecx */ 6634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x74u); 6635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6636 esp = esp + 0x74u; /* 0x47024562: add esp, 0x74 */ 6637 _flag_k = FK_ADD; 6638 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024565: ret 0xc */ 6639 RECOMP_REGS_OUT(); 6640 } 6641 6642 void sub_4702433A(void) { 6643 int _fpu_cmp = 0; 6644 uint32_t _cf = 0; 6645 int _df = 1; 6646 uint32_t _flag_k = FK_NONE; 6647 uint32_t _flag_a = 0, _flag_b = 0; 6648 uint32_t _itail_tgt = 0; 6649 RECOMP_REGS_LOCALS 6650 RECOMP_ENTER(0x4702433Au); 6651 6652 L_4702433A: 6653 PUSH32(esp, ebp); /* 0x4702433A: push ebp */ 6654 PUSH32(esp, ebp); /* 0x4702433B: push ebp */ 6655 PUSH32(esp, ebp); /* 0x4702433C: push ebp */ 6656 ecx = esp + 0x5C; /* 0x4702433D: lea ecx, [esp + 0x5c] */ 6657 MEM32(esp + 0x8C) = 0xFFFFFFFFu; /* 0x47024341: mov dword ptr [esp + 0x8c], 0xffffffff */ 6658 RECOMP_ICALL(0x470802D0u); /* 0x4702434C: call 0x470802d0 */ /* not lifted */ 6659 RECOMP_FLAGS_IN(); 6660 eax = 0xFFFFFFFDu; /* 0x47024351: mov eax, 0xfffffffd */ 6661 goto L_47024553; /* 0x47024356: jmp 0x47024553 */ 6662 L_47024553: 6663 ecx = MEM32(esp + 0x78); /* 0x47024553: mov ecx, dword ptr [esp + 0x78] */ 6664 edi = POP32_VAL(esp); /* 0x47024557: pop edi */ 6665 esi = POP32_VAL(esp); /* 0x47024558: pop esi */ 6666 ebp = POP32_VAL(esp); /* 0x47024559: pop ebp */ 6667 ebx = POP32_VAL(esp); /* 0x4702455A: pop ebx */ 6668 MEM32(FS_BASE + (0)) = ecx; /* 0x4702455B: mov dword ptr fs:[0], ecx */ 6669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x74u); 6670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6671 esp = esp + 0x74u; /* 0x47024562: add esp, 0x74 */ 6672 _flag_k = FK_ADD; 6673 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024565: ret 0xc */ 6674 RECOMP_REGS_OUT(); 6675 } 6676 6677 void sub_47024553(void) { 6678 int _fpu_cmp = 0; 6679 uint32_t _cf = 0; 6680 int _df = 1; 6681 uint32_t _flag_k = FK_NONE; 6682 uint32_t _flag_a = 0, _flag_b = 0; 6683 uint32_t _itail_tgt = 0; 6684 RECOMP_REGS_LOCALS 6685 RECOMP_ENTER(0x47024553u); 6686 6687 L_47024553: 6688 ecx = MEM32(esp + 0x78); /* 0x47024553: mov ecx, dword ptr [esp + 0x78] */ 6689 edi = POP32_VAL(esp); /* 0x47024557: pop edi */ 6690 esi = POP32_VAL(esp); /* 0x47024558: pop esi */ 6691 ebp = POP32_VAL(esp); /* 0x47024559: pop ebp */ 6692 ebx = POP32_VAL(esp); /* 0x4702455A: pop ebx */ 6693 MEM32(FS_BASE + (0)) = ecx; /* 0x4702455B: mov dword ptr fs:[0], ecx */ 6694 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x74u); 6695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6696 esp = esp + 0x74u; /* 0x47024562: add esp, 0x74 */ 6697 _flag_k = FK_ADD; 6698 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024565: ret 0xc */ 6699 RECOMP_REGS_OUT(); 6700 } 6701 6702 void sub_47024570(void) { 6703 int _fpu_cmp = 0; 6704 uint32_t _cf = 0; 6705 int _df = 1; 6706 uint32_t _flag_k = FK_NONE; 6707 uint32_t _flag_a = 0, _flag_b = 0; 6708 uint32_t _itail_tgt = 0; 6709 RECOMP_REGS_LOCALS 6710 RECOMP_ENTER(0x47024570u); 6711 6712 L_47024570: 6713 PUSH32(esp, 0xFFFFFFFFu); /* 0x47024570: push -1 */ 6714 PUSH32(esp, 0x470A49EBu); /* 0x47024572: push 0x470a49eb */ 6715 eax = MEM32(FS_BASE + (0)); /* 0x47024577: mov eax, dword ptr fs:[0] */ 6716 PUSH32(esp, eax); /* 0x4702457D: push eax */ 6717 MEM32(FS_BASE + (0)) = esp; /* 0x4702457E: mov dword ptr fs:[0], esp */ 6718 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 6719 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6720 esp = esp - 0x34u; /* 0x47024585: sub esp, 0x34 */ 6721 _flag_k = FK_CMP; 6722 eax = MEM32(esp + 0x44); /* 0x47024588: mov eax, dword ptr [esp + 0x44] */ 6723 PUSH32(esp, ebx); /* 0x4702458C: push ebx */ 6724 PUSH32(esp, ebp); /* 0x4702458D: push ebp */ 6725 ebp = MEM32(eax); /* 0x4702458E: mov ebp, dword ptr [eax] */ 6726 PUSH32(esp, esi); /* 0x47024590: push esi */ 6727 PUSH32(esp, edi); /* 0x47024591: push edi */ 6728 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6729 ebx = 0; /* 0x47024592: xor ebx, ebx */ 6730 _cf = 0; 6731 _flag_k = FK_TEST; 6732 /* cmp ebp, ebx */ /* 0x47024594: cmp ebp, ebx */ 6733 _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx); 6734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6735 _flag_k = FK_CMP; 6736 edi = ecx; /* 0x47024596: mov edi, ecx */ 6737 MEM32(esp + 0x10) = edi; /* 0x47024598: mov dword ptr [esp + 0x10], edi */ 6738 if (CMP_NE(_flag_a, _flag_b)) goto L_470245A6; /* 0x4702459C: jne 0x470245a6 */ 6739 L_4702459E: 6740 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 6741 eax = eax | 0xFFFFFFFFu; /* 0x4702459E: or eax, 0xffffffff */ 6742 _cf = 0; 6743 _flag_k = FK_TEST; 6744 goto L_47024785; /* 0x470245A1: jmp 0x47024785 */ 6745 L_470245A6: 6746 esi = MEM32(ebp + 0x8); /* 0x470245A6: mov esi, dword ptr [ebp + 8] */ 6747 RECOMP_ICALL(0x4703DAC0u); /* 0x470245A9: call 0x4703dac0 */ /* not lifted */ 6748 RECOMP_FLAGS_IN(); 6749 /* cmp esi, ebx */ /* 0x470245AE: cmp esi, ebx */ 6750 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6752 _flag_k = FK_CMP; 6753 MEM32(esp + 0x1C) = eax; /* 0x470245B0: mov dword ptr [esp + 0x1c], eax */ 6754 MEM32(esp + 0x20) = ebx; /* 0x470245B4: mov dword ptr [esp + 0x20], ebx */ 6755 MEM32(esp + 0x24) = ebx; /* 0x470245B8: mov dword ptr [esp + 0x24], ebx */ 6756 MEM32(esp + 0x28) = ebx; /* 0x470245BC: mov dword ptr [esp + 0x28], ebx */ 6757 MEM32(esp + 0x2C) = ebx; /* 0x470245C0: mov dword ptr [esp + 0x2c], ebx */ 6758 if (CMP_EQ(_flag_a, _flag_b)) goto L_470245D8; /* 0x470245C4: je 0x470245d8 */ 6759 L_470245C6: 6760 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6761 ecx = ecx | 0xFFFFFFFFu; /* 0x470245C6: or ecx, 0xffffffff */ 6762 _cf = 0; 6763 _flag_k = FK_TEST; 6764 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6765 eax = 0; /* 0x470245C9: xor eax, eax */ 6766 _cf = 0; 6767 _flag_k = FK_TEST; 6768 edi = esi; /* 0x470245CB: mov edi, esi */ 6769 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; } /* 0x470245CD: repne scasb al, byte ptr es:[edi] */ 6770 edi = MEM32(esp + 0x10); /* 0x470245CF: mov edi, dword ptr [esp + 0x10] */ 6771 ecx = ~ecx; /* 0x470245D3: not ecx */ 6772 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6773 ecx = ecx - 1; /* 0x470245D5: dec ecx */ 6774 _flag_k = FK_DEC; 6775 goto L_470245DA; /* 0x470245D6: jmp 0x470245da */ 6776 L_470245D8: 6777 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6778 ecx = 0; /* 0x470245D8: xor ecx, ecx */ 6779 _cf = 0; 6780 _flag_k = FK_TEST; 6781 L_470245DA: 6782 PUSH32(esp, 1); /* 0x470245DA: push 1 */ 6783 PUSH32(esp, ecx); /* 0x470245DC: push ecx */ 6784 PUSH32(esp, esi); /* 0x470245DD: push esi */ 6785 ecx = esp + 0x28; /* 0x470245DE: lea ecx, [esp + 0x28] */ 6786 RECOMP_ICALL(0x470802D0u); /* 0x470245E2: call 0x470802d0 */ /* not lifted */ 6787 RECOMP_FLAGS_IN(); 6788 ecx = MEM32(esp + 0x5C); /* 0x470245E7: mov ecx, dword ptr [esp + 0x5c] */ 6789 edx = esp + 0x1C; /* 0x470245EB: lea edx, [esp + 0x1c] */ 6790 /* cmp ecx, edx */ /* 0x470245EF: cmp ecx, edx */ 6791 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 6792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6793 _flag_k = FK_CMP; 6794 MEM32(esp + 0x4C) = ebx; /* 0x470245F1: mov dword ptr [esp + 0x4c], ebx */ 6795 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024608; /* 0x470245F5: je 0x47024608 */ 6796 L_470245F7: 6797 eax = MEM32(esp + 0x20); /* 0x470245F7: mov eax, dword ptr [esp + 0x20] */ 6798 edx = MEM32(esp + 0x28); /* 0x470245FB: mov edx, dword ptr [esp + 0x28] */ 6799 PUSH32(esp, 1); /* 0x470245FF: push 1 */ 6800 PUSH32(esp, eax); /* 0x47024601: push eax */ 6801 PUSH32(esp, edx); /* 0x47024602: push edx */ 6802 RECOMP_ICALL(0x470802D0u); /* 0x47024603: call 0x470802d0 */ /* not lifted */ 6803 RECOMP_FLAGS_IN(); 6804 L_47024608: 6805 PUSH32(esp, ebx); /* 0x47024608: push ebx */ 6806 PUSH32(esp, ebx); /* 0x47024609: push ebx */ 6807 PUSH32(esp, ebx); /* 0x4702460A: push ebx */ 6808 ecx = esp + 0x28; /* 0x4702460B: lea ecx, [esp + 0x28] */ 6809 MEM32(esp + 0x58) = 0xFFFFFFFFu; /* 0x4702460F: mov dword ptr [esp + 0x58], 0xffffffff */ 6810 RECOMP_ICALL(0x470802D0u); /* 0x47024617: call 0x470802d0 */ /* not lifted */ 6811 RECOMP_FLAGS_IN(); 6812 eax = MEM32(ebp + 0x8); /* 0x4702461C: mov eax, dword ptr [ebp + 8] */ 6813 MEM32(esp + 0x54) = eax; /* 0x4702461F: mov dword ptr [esp + 0x54], eax */ 6814 MEM32(esp + 0x4C) = 1; /* 0x47024623: mov dword ptr [esp + 0x4c], 1 */ 6815 MEM32(esp + 0x14) = ebx; /* 0x4702462B: mov dword ptr [esp + 0x14], ebx */ 6816 MEM32(esp + 0x18) = ebx; /* 0x4702462F: mov dword ptr [esp + 0x18], ebx */ 6817 eax = MEM32(edi + 0x8); /* 0x47024633: mov eax, dword ptr [edi + 8] */ 6818 ecx = MEM32(edi + 0xC); /* 0x47024636: mov ecx, dword ptr [edi + 0xc] */ 6819 MEM32(ecx) = eax; /* 0x47024639: mov dword ptr [ecx], eax */ 6820 eax = esp + 0x14; /* 0x4702463B: lea eax, [esp + 0x14] */ 6821 PUSH32(esp, eax); /* 0x4702463F: push eax */ 6822 edx = esp + 0x58; /* 0x47024640: lea edx, [esp + 0x58] */ 6823 PUSH32(esp, edx); /* 0x47024644: push edx */ 6824 MEM8(esp + 0x54) = (uint8_t)(2); /* 0x47024645: mov byte ptr [esp + 0x54], 2 */ 6825 RECOMP_ICALL(0x47027020u); /* 0x4702464A: call 0x47027020 */ /* not lifted */ 6826 RECOMP_FLAGS_IN(); 6827 /* test eax, eax */ /* 0x4702464F: test eax, eax */ 6828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6829 _cf = 0; 6830 _flag_k = FK_TEST; 6831 if (TEST_Z(_flag_a, _flag_b)) goto L_4702465D; /* 0x47024651: je 0x4702465d */ 6832 L_47024653: 6833 eax = 0xFFFFFFFEu; /* 0x47024653: mov eax, 0xfffffffe */ 6834 goto L_47024785; /* 0x47024658: jmp 0x47024785 */ 6835 L_4702465D: 6836 /* cmp MEM32(esp + 0x58), ebx */ /* 0x4702465D: cmp dword ptr [esp + 0x58], ebx */ 6837 _flag_a = (uint32_t)(MEM32(esp + 0x58)); _flag_b = (uint32_t)(ebx); 6838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6839 _flag_k = FK_CMP; 6840 if (CMP_NE(_flag_a, _flag_b)) goto L_470246CC; /* 0x47024661: jne 0x470246cc */ 6841 L_47024663: 6842 eax = MEM32(ebp + 0xC); /* 0x47024663: mov eax, dword ptr [ebp + 0xc] */ 6843 edi = MEM32(esp + 0x14); /* 0x47024666: mov edi, dword ptr [esp + 0x14] */ 6844 PUSH32(esp, eax); /* 0x4702466A: push eax */ 6845 RECOMP_ICALL(0x470A32A2u); /* 0x4702466B: call 0x470a32a2 */ /* not lifted */ 6846 RECOMP_FLAGS_IN(); 6847 PUSH32(esp, 0xCu); /* 0x47024670: push 0xc */ 6848 RECOMP_ICALL(0x470A33F2u); /* 0x47024672: call 0x470a33f2 */ /* not lifted */ 6849 RECOMP_FLAGS_IN(); 6850 esi = eax; /* 0x47024677: mov esi, eax */ 6851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6853 esp = esp + 8; /* 0x47024679: add esp, 8 */ 6854 _flag_k = FK_ADD; 6855 MEM32(esp + 0x58) = esi; /* 0x4702467C: mov dword ptr [esp + 0x58], esi */ 6856 /* cmp esi, ebx */ /* 0x47024680: cmp esi, ebx */ 6857 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6859 _flag_k = FK_CMP; 6860 MEM8(esp + 0x4C) = (uint8_t)(3); /* 0x47024682: mov byte ptr [esp + 0x4c], 3 */ 6861 if (CMP_EQ(_flag_a, _flag_b)) goto L_470246A8; /* 0x47024687: je 0x470246a8 */ 6862 L_47024689: 6863 PUSH32(esp, ebx); /* 0x47024689: push ebx */ 6864 PUSH32(esp, edi); /* 0x4702468A: push edi */ 6865 ecx = esp + 0x24; /* 0x4702468B: lea ecx, [esp + 0x24] */ 6866 RECOMP_ICALL(0x47026400u); /* 0x4702468F: call 0x47026400 */ /* not lifted */ 6867 RECOMP_FLAGS_IN(); 6868 edx = MEM32(eax); /* 0x47024694: mov edx, dword ptr [eax] */ 6869 ecx = esi; /* 0x47024696: mov ecx, esi */ 6870 MEM32(ecx) = edx; /* 0x47024698: mov dword ptr [ecx], edx */ 6871 edx = MEM32(eax + 0x4); /* 0x4702469A: mov edx, dword ptr [eax + 4] */ 6872 MEM32(ecx + 0x4) = edx; /* 0x4702469D: mov dword ptr [ecx + 4], edx */ 6873 eax = MEM32(eax + 0x8); /* 0x470246A0: mov eax, dword ptr [eax + 8] */ 6874 MEM32(ecx + 0x8) = eax; /* 0x470246A3: mov dword ptr [ecx + 8], eax */ 6875 goto L_470246AA; /* 0x470246A6: jmp 0x470246aa */ 6876 L_470246A8: 6877 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6878 esi = 0; /* 0x470246A8: xor esi, esi */ 6879 _cf = 0; 6880 _flag_k = FK_TEST; 6881 L_470246AA: 6882 /* cmp esi, ebx */ /* 0x470246AA: cmp esi, ebx */ 6883 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6885 _flag_k = FK_CMP; 6886 MEM8(esp + 0x4C) = (uint8_t)(2); /* 0x470246AC: mov byte ptr [esp + 0x4c], 2 */ 6887 MEM32(ebp + 0xC) = esi; /* 0x470246B1: mov dword ptr [ebp + 0xc], esi */ 6888 if (CMP_NE(_flag_a, _flag_b)) goto L_470246CC; /* 0x470246B4: jne 0x470246cc */ 6889 L_470246B6: 6890 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470246B6: call dword ptr [0x470ac3c8] */ 6891 RECOMP_FLAGS_IN(); 6892 MEM32(eax) = 0xCu; /* 0x470246BC: mov dword ptr [eax], 0xc */ 6893 eax = 0xFFFFFFFDu; /* 0x470246C2: mov eax, 0xfffffffd */ 6894 goto L_47024785; /* 0x470246C7: jmp 0x47024785 */ 6895 L_470246CC: 6896 ecx = MEM32(ebp + 0xC); /* 0x470246CC: mov ecx, dword ptr [ebp + 0xc] */ 6897 edx = MEM32(ecx); /* 0x470246CF: mov edx, dword ptr [ecx] */ 6898 esi = MEM32(edx + 0x8); /* 0x470246D1: mov esi, dword ptr [edx + 8] */ 6899 /* cmp esi, ebx */ /* 0x470246D4: cmp esi, ebx */ 6900 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6902 _flag_k = FK_CMP; 6903 if (CMP_EQ(_flag_a, _flag_b)) goto L_470246F5; /* 0x470246D6: je 0x470246f5 */ 6904 L_470246D8: 6905 eax = MEM32(ecx + 0x4); /* 0x470246D8: mov eax, dword ptr [ecx + 4] */ 6906 /* cmp eax, MEM32(edx + 0xC) */ /* 0x470246DB: cmp eax, dword ptr [edx + 0xc] */ 6907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0xC)); 6908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6909 _flag_k = FK_CMP; 6910 if (CMP_GE(_flag_a, _flag_b)) goto L_470246F5; /* 0x470246DE: jge 0x470246f5 */ 6911 L_470246E0: 6912 /* cmp eax, ebx */ /* 0x470246E0: cmp eax, ebx */ 6913 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6914 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6915 _flag_k = FK_CMP; 6916 if (CMP_L(_flag_a, _flag_b)) goto L_470246F5; /* 0x470246E2: jl 0x470246f5 */ 6917 L_470246E4: 6918 edi = MEM32(ecx + 0x8); /* 0x470246E4: mov edi, dword ptr [ecx + 8] */ 6919 ecx = eax + eax * 2; /* 0x470246E7: lea ecx, [eax + eax*2] */ 6920 edx = esi + ecx * 8; /* 0x470246EA: lea edx, [esi + ecx*8] */ 6921 /* cmp edi, edx */ /* 0x470246ED: cmp edi, edx */ 6922 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 6923 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6924 _flag_k = FK_CMP; 6925 MEM32(esp + 0x58) = edi; /* 0x470246EF: mov dword ptr [esp + 0x58], edi */ 6926 if (CMP_NE(_flag_a, _flag_b)) goto L_470246FF; /* 0x470246F3: jne 0x470246ff */ 6927 L_470246F5: 6928 eax = 1; /* 0x470246F5: mov eax, 1 */ 6929 goto L_47024785; /* 0x470246FA: jmp 0x47024785 */ 6930 L_470246FF: 6931 esi = MEM32(edi); /* 0x470246FF: mov esi, dword ptr [edi] */ 6932 RECOMP_ICALL(0x4703DAC0u); /* 0x47024701: call 0x4703dac0 */ /* not lifted */ 6933 RECOMP_FLAGS_IN(); 6934 /* cmp esi, ebx */ /* 0x47024706: cmp esi, ebx */ 6935 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6937 _flag_k = FK_CMP; 6938 MEM32(esp + 0x30) = eax; /* 0x47024708: mov dword ptr [esp + 0x30], eax */ 6939 MEM32(esp + 0x34) = ebx; /* 0x4702470C: mov dword ptr [esp + 0x34], ebx */ 6940 MEM32(esp + 0x38) = ebx; /* 0x47024710: mov dword ptr [esp + 0x38], ebx */ 6941 MEM32(esp + 0x3C) = ebx; /* 0x47024714: mov dword ptr [esp + 0x3c], ebx */ 6942 MEM32(esp + 0x40) = ebx; /* 0x47024718: mov dword ptr [esp + 0x40], ebx */ 6943 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024730; /* 0x4702471C: je 0x47024730 */ 6944 L_4702471E: 6945 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6946 ecx = ecx | 0xFFFFFFFFu; /* 0x4702471E: or ecx, 0xffffffff */ 6947 _cf = 0; 6948 _flag_k = FK_TEST; 6949 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6950 eax = 0; /* 0x47024721: xor eax, eax */ 6951 _cf = 0; 6952 _flag_k = FK_TEST; 6953 edi = esi; /* 0x47024723: mov edi, esi */ 6954 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; } /* 0x47024725: repne scasb al, byte ptr es:[edi] */ 6955 edi = MEM32(esp + 0x58); /* 0x47024727: mov edi, dword ptr [esp + 0x58] */ 6956 ecx = ~ecx; /* 0x4702472B: not ecx */ 6957 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6958 ecx = ecx - 1; /* 0x4702472D: dec ecx */ 6959 _flag_k = FK_DEC; 6960 goto L_47024732; /* 0x4702472E: jmp 0x47024732 */ 6961 L_47024730: 6962 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6963 ecx = 0; /* 0x47024730: xor ecx, ecx */ 6964 _cf = 0; 6965 _flag_k = FK_TEST; 6966 L_47024732: 6967 PUSH32(esp, 1); /* 0x47024732: push 1 */ 6968 PUSH32(esp, ecx); /* 0x47024734: push ecx */ 6969 PUSH32(esp, esi); /* 0x47024735: push esi */ 6970 ecx = esp + 0x3C; /* 0x47024736: lea ecx, [esp + 0x3c] */ 6971 RECOMP_ICALL(0x470802D0u); /* 0x4702473A: call 0x470802d0 */ /* not lifted */ 6972 RECOMP_FLAGS_IN(); 6973 ecx = MEM32(esp + 0x5C); /* 0x4702473F: mov ecx, dword ptr [esp + 0x5c] */ 6974 eax = esp + 0x30; /* 0x47024743: lea eax, [esp + 0x30] */ 6975 /* cmp ecx, eax */ /* 0x47024747: cmp ecx, eax */ 6976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6978 _flag_k = FK_CMP; 6979 MEM8(esp + 0x4C) = (uint8_t)(4); /* 0x47024749: mov byte ptr [esp + 0x4c], 4 */ 6980 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024761; /* 0x4702474E: je 0x47024761 */ 6981 L_47024750: 6982 edx = MEM32(esp + 0x34); /* 0x47024750: mov edx, dword ptr [esp + 0x34] */ 6983 eax = MEM32(esp + 0x3C); /* 0x47024754: mov eax, dword ptr [esp + 0x3c] */ 6984 PUSH32(esp, 1); /* 0x47024758: push 1 */ 6985 PUSH32(esp, edx); /* 0x4702475A: push edx */ 6986 PUSH32(esp, eax); /* 0x4702475B: push eax */ 6987 RECOMP_ICALL(0x470802D0u); /* 0x4702475C: call 0x470802d0 */ /* not lifted */ 6988 RECOMP_FLAGS_IN(); 6989 L_47024761: 6990 PUSH32(esp, ebx); /* 0x47024761: push ebx */ 6991 PUSH32(esp, ebx); /* 0x47024762: push ebx */ 6992 PUSH32(esp, ebx); /* 0x47024763: push ebx */ 6993 ecx = esp + 0x3C; /* 0x47024764: lea ecx, [esp + 0x3c] */ 6994 MEM8(esp + 0x58) = (uint8_t)(2); /* 0x47024768: mov byte ptr [esp + 0x58], 2 */ 6995 RECOMP_ICALL(0x470802D0u); /* 0x4702476D: call 0x470802d0 */ /* not lifted */ 6996 RECOMP_FLAGS_IN(); 6997 ecx = MEM32(edi + 0x4); /* 0x47024772: mov ecx, dword ptr [edi + 4] */ 6998 edx = MEM32(esp + 0x60); /* 0x47024775: mov edx, dword ptr [esp + 0x60] */ 6999 MEM32(edx) = ecx; /* 0x47024779: mov dword ptr [edx], ecx */ 7000 ecx = MEM32(ebp + 0xC); /* 0x4702477B: mov ecx, dword ptr [ebp + 0xc] */ 7001 RECOMP_ICALL(0x47026550u); /* 0x4702477E: call 0x47026550 */ /* not lifted */ 7002 RECOMP_FLAGS_IN(); 7003 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7004 eax = 0; /* 0x47024783: xor eax, eax */ 7005 _cf = 0; 7006 _flag_k = FK_TEST; 7007 L_47024785: 7008 ecx = MEM32(esp + 0x44); /* 0x47024785: mov ecx, dword ptr [esp + 0x44] */ 7009 edi = POP32_VAL(esp); /* 0x47024789: pop edi */ 7010 esi = POP32_VAL(esp); /* 0x4702478A: pop esi */ 7011 ebp = POP32_VAL(esp); /* 0x4702478B: pop ebp */ 7012 ebx = POP32_VAL(esp); /* 0x4702478C: pop ebx */ 7013 MEM32(FS_BASE + (0)) = ecx; /* 0x4702478D: mov dword ptr fs:[0], ecx */ 7014 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 7015 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7016 esp = esp + 0x40u; /* 0x47024794: add esp, 0x40 */ 7017 _flag_k = FK_ADD; 7018 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47024797: ret 0x10 */ 7019 RECOMP_REGS_OUT(); 7020 } 7021 7022 void sub_47024785(void) { 7023 int _fpu_cmp = 0; 7024 uint32_t _cf = 0; 7025 int _df = 1; 7026 uint32_t _flag_k = FK_NONE; 7027 uint32_t _flag_a = 0, _flag_b = 0; 7028 uint32_t _itail_tgt = 0; 7029 RECOMP_REGS_LOCALS 7030 RECOMP_ENTER(0x47024785u); 7031 7032 L_47024785: 7033 ecx = MEM32(esp + 0x44); /* 0x47024785: mov ecx, dword ptr [esp + 0x44] */ 7034 edi = POP32_VAL(esp); /* 0x47024789: pop edi */ 7035 esi = POP32_VAL(esp); /* 0x4702478A: pop esi */ 7036 ebp = POP32_VAL(esp); /* 0x4702478B: pop ebp */ 7037 ebx = POP32_VAL(esp); /* 0x4702478C: pop ebx */ 7038 MEM32(FS_BASE + (0)) = ecx; /* 0x4702478D: mov dword ptr fs:[0], ecx */ 7039 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 7040 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7041 esp = esp + 0x40u; /* 0x47024794: add esp, 0x40 */ 7042 _flag_k = FK_ADD; 7043 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47024797: ret 0x10 */ 7044 RECOMP_REGS_OUT(); 7045 } 7046 7047 void sub_470247A0(void) { 7048 int _fpu_cmp = 0; 7049 uint32_t _cf = 0; 7050 int _df = 1; 7051 uint32_t _flag_k = FK_NONE; 7052 uint32_t _flag_a = 0, _flag_b = 0; 7053 uint32_t _itail_tgt = 0; 7054 RECOMP_REGS_LOCALS 7055 RECOMP_ENTER(0x470247A0u); 7056 7057 L_470247A0: 7058 eax = MEM32(FS_BASE + (0)); /* 0x470247A0: mov eax, dword ptr fs:[0] */ 7059 PUSH32(esp, 0xFFFFFFFFu); /* 0x470247A6: push -1 */ 7060 PUSH32(esp, 0x470A4A23u); /* 0x470247A8: push 0x470a4a23 */ 7061 PUSH32(esp, eax); /* 0x470247AD: push eax */ 7062 eax = MEM32(esp + 0x10); /* 0x470247AE: mov eax, dword ptr [esp + 0x10] */ 7063 MEM32(FS_BASE + (0)) = esp; /* 0x470247B2: mov dword ptr fs:[0], esp */ 7064 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 7065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7066 esp = esp - 0x1Cu; /* 0x470247B9: sub esp, 0x1c */ 7067 _flag_k = FK_CMP; 7068 PUSH32(esp, ebp); /* 0x470247BC: push ebp */ 7069 PUSH32(esp, esi); /* 0x470247BD: push esi */ 7070 esi = MEM32(eax); /* 0x470247BE: mov esi, dword ptr [eax] */ 7071 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7072 ebp = 0; /* 0x470247C0: xor ebp, ebp */ 7073 _cf = 0; 7074 _flag_k = FK_TEST; 7075 /* cmp esi, ebp */ /* 0x470247C2: cmp esi, ebp */ 7076 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 7077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7078 _flag_k = FK_CMP; 7079 PUSH32(esp, edi); /* 0x470247C4: push edi */ 7080 if (CMP_NE(_flag_a, _flag_b)) goto L_470247DE; /* 0x470247C5: jne 0x470247de */ 7081 L_470247C7: 7082 edi = POP32_VAL(esp); /* 0x470247C7: pop edi */ 7083 esi = POP32_VAL(esp); /* 0x470247C8: pop esi */ 7084 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7085 eax = eax | 0xFFFFFFFFu; /* 0x470247C9: or eax, 0xffffffff */ 7086 _cf = 0; 7087 _flag_k = FK_TEST; 7088 ebp = POP32_VAL(esp); /* 0x470247CC: pop ebp */ 7089 ecx = MEM32(esp + 0x1C); /* 0x470247CD: mov ecx, dword ptr [esp + 0x1c] */ 7090 MEM32(FS_BASE + (0)) = ecx; /* 0x470247D1: mov dword ptr fs:[0], ecx */ 7091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 7092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7093 esp = esp + 0x28u; /* 0x470247D8: add esp, 0x28 */ 7094 _flag_k = FK_ADD; 7095 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470247DB: ret 0xc */ 7096 L_470247DE: 7097 eax = MEM32(esi + 0x8); /* 0x470247DE: mov eax, dword ptr [esi + 8] */ 7098 MEM32(esp + 0x38) = eax; /* 0x470247E1: mov dword ptr [esp + 0x38], eax */ 7099 MEM32(esp + 0x30) = ebp; /* 0x470247E5: mov dword ptr [esp + 0x30], ebp */ 7100 MEM32(esp + 0xC) = ebp; /* 0x470247E9: mov dword ptr [esp + 0xc], ebp */ 7101 MEM32(esp + 0x10) = ebp; /* 0x470247ED: mov dword ptr [esp + 0x10], ebp */ 7102 eax = MEM32(ecx + 0x8); /* 0x470247F1: mov eax, dword ptr [ecx + 8] */ 7103 ecx = MEM32(ecx + 0xC); /* 0x470247F4: mov ecx, dword ptr [ecx + 0xc] */ 7104 edx = esp + 0xC; /* 0x470247F7: lea edx, [esp + 0xc] */ 7105 MEM32(ecx) = eax; /* 0x470247FB: mov dword ptr [ecx], eax */ 7106 PUSH32(esp, edx); /* 0x470247FD: push edx */ 7107 eax = esp + 0x3C; /* 0x470247FE: lea eax, [esp + 0x3c] */ 7108 PUSH32(esp, eax); /* 0x47024802: push eax */ 7109 MEM8(esp + 0x38) = (uint8_t)(1); /* 0x47024803: mov byte ptr [esp + 0x38], 1 */ 7110 RECOMP_ICALL(0x47027020u); /* 0x47024808: call 0x47027020 */ /* not lifted */ 7111 RECOMP_FLAGS_IN(); 7112 /* test eax, eax */ /* 0x4702480D: test eax, eax */ 7113 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7114 _cf = 0; 7115 _flag_k = FK_TEST; 7116 if (TEST_Z(_flag_a, _flag_b)) goto L_4702482A; /* 0x4702480F: je 0x4702482a */ 7117 L_47024811: 7118 edi = POP32_VAL(esp); /* 0x47024811: pop edi */ 7119 esi = POP32_VAL(esp); /* 0x47024812: pop esi */ 7120 eax = 0xFFFFFFFEu; /* 0x47024813: mov eax, 0xfffffffe */ 7121 ebp = POP32_VAL(esp); /* 0x47024818: pop ebp */ 7122 ecx = MEM32(esp + 0x1C); /* 0x47024819: mov ecx, dword ptr [esp + 0x1c] */ 7123 MEM32(FS_BASE + (0)) = ecx; /* 0x4702481D: mov dword ptr fs:[0], ecx */ 7124 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 7125 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7126 esp = esp + 0x28u; /* 0x47024824: add esp, 0x28 */ 7127 _flag_k = FK_ADD; 7128 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024827: ret 0xc */ 7129 L_4702482A: 7130 /* cmp MEM32(esp + 0x3C), ebp */ /* 0x4702482A: cmp dword ptr [esp + 0x3c], ebp */ 7131 _flag_a = (uint32_t)(MEM32(esp + 0x3C)); _flag_b = (uint32_t)(ebp); 7132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7133 _flag_k = FK_CMP; 7134 if (CMP_NE(_flag_a, _flag_b)) goto L_470248C3; /* 0x4702482E: jne 0x470248c3 */ 7135 L_47024834: 7136 eax = MEM32(esi + 0x10); /* 0x47024834: mov eax, dword ptr [esi + 0x10] */ 7137 /* cmp eax, ebp */ /* 0x47024837: cmp eax, ebp */ 7138 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 7139 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7140 _flag_k = FK_CMP; 7141 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024844; /* 0x47024839: je 0x47024844 */ 7142 L_4702483B: 7143 PUSH32(esp, eax); /* 0x4702483B: push eax */ 7144 RECOMP_ICALL(0x470A32A2u); /* 0x4702483C: call 0x470a32a2 */ /* not lifted */ 7145 RECOMP_FLAGS_IN(); 7146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7148 esp = esp + 4; /* 0x47024841: add esp, 4 */ 7149 _flag_k = FK_ADD; 7150 L_47024844: 7151 PUSH32(esp, 0xCu); /* 0x47024844: push 0xc */ 7152 RECOMP_ICALL(0x470A33F2u); /* 0x47024846: call 0x470a33f2 */ /* not lifted */ 7153 RECOMP_FLAGS_IN(); 7154 edi = eax; /* 0x4702484B: mov edi, eax */ 7155 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7157 esp = esp + 4; /* 0x4702484D: add esp, 4 */ 7158 _flag_k = FK_ADD; 7159 MEM32(esp + 0x3C) = edi; /* 0x47024850: mov dword ptr [esp + 0x3c], edi */ 7160 /* cmp edi, ebp */ /* 0x47024854: cmp edi, ebp */ 7161 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 7162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7163 _flag_k = FK_CMP; 7164 MEM8(esp + 0x30) = (uint8_t)(2); /* 0x47024856: mov byte ptr [esp + 0x30], 2 */ 7165 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024890; /* 0x4702485B: je 0x47024890 */ 7166 L_4702485D: 7167 ecx = MEM32(esp + 0x10); /* 0x4702485D: mov ecx, dword ptr [esp + 0x10] */ 7168 PUSH32(esp, 1); /* 0x47024861: push 1 */ 7169 PUSH32(esp, ecx); /* 0x47024863: push ecx */ 7170 ecx = esp + 0x1C; /* 0x47024864: lea ecx, [esp + 0x1c] */ 7171 RECOMP_ICALL(0x47027940u); /* 0x47024868: call 0x47027940 */ /* not lifted */ 7172 RECOMP_FLAGS_IN(); 7173 ecx = esp + 0x14; /* 0x4702486D: lea ecx, [esp + 0x14] */ 7174 RECOMP_ICALL(0x470265E0u); /* 0x47024871: call 0x470265e0 */ /* not lifted */ 7175 RECOMP_FLAGS_IN(); 7176 eax = MEM32(esp + 0x14); /* 0x47024876: mov eax, dword ptr [esp + 0x14] */ 7177 ecx = MEM32(esp + 0x18); /* 0x4702487A: mov ecx, dword ptr [esp + 0x18] */ 7178 edx = edi; /* 0x4702487E: mov edx, edi */ 7179 MEM32(edx) = eax; /* 0x47024880: mov dword ptr [edx], eax */ 7180 eax = MEM32(esp + 0x1C); /* 0x47024882: mov eax, dword ptr [esp + 0x1c] */ 7181 MEM32(edx + 0x4) = ecx; /* 0x47024886: mov dword ptr [edx + 4], ecx */ 7182 MEM32(edx + 0x8) = eax; /* 0x47024889: mov dword ptr [edx + 8], eax */ 7183 eax = edi; /* 0x4702488C: mov eax, edi */ 7184 goto L_47024892; /* 0x4702488E: jmp 0x47024892 */ 7185 L_47024890: 7186 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7187 eax = 0; /* 0x47024890: xor eax, eax */ 7188 _cf = 0; 7189 _flag_k = FK_TEST; 7190 L_47024892: 7191 /* cmp eax, ebp */ /* 0x47024892: cmp eax, ebp */ 7192 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 7193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7194 _flag_k = FK_CMP; 7195 MEM8(esp + 0x30) = (uint8_t)(1); /* 0x47024894: mov byte ptr [esp + 0x30], 1 */ 7196 MEM32(esi + 0x10) = eax; /* 0x47024899: mov dword ptr [esi + 0x10], eax */ 7197 if (CMP_NE(_flag_a, _flag_b)) goto L_470248C3; /* 0x4702489C: jne 0x470248c3 */ 7198 L_4702489E: 7199 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702489E: call dword ptr [0x470ac3c8] */ 7200 RECOMP_FLAGS_IN(); 7201 edi = POP32_VAL(esp); /* 0x470248A4: pop edi */ 7202 esi = POP32_VAL(esp); /* 0x470248A5: pop esi */ 7203 MEM32(eax) = 0xCu; /* 0x470248A6: mov dword ptr [eax], 0xc */ 7204 eax = 0xFFFFFFFDu; /* 0x470248AC: mov eax, 0xfffffffd */ 7205 ebp = POP32_VAL(esp); /* 0x470248B1: pop ebp */ 7206 ecx = MEM32(esp + 0x1C); /* 0x470248B2: mov ecx, dword ptr [esp + 0x1c] */ 7207 MEM32(FS_BASE + (0)) = ecx; /* 0x470248B6: mov dword ptr fs:[0], ecx */ 7208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 7209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7210 esp = esp + 0x28u; /* 0x470248BD: add esp, 0x28 */ 7211 _flag_k = FK_ADD; 7212 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470248C0: ret 0xc */ 7213 L_470248C3: 7214 ecx = MEM32(esi + 0x10); /* 0x470248C3: mov ecx, dword ptr [esi + 0x10] */ 7215 edx = MEM32(ecx); /* 0x470248C6: mov edx, dword ptr [ecx] */ 7216 edi = MEM32(edx + 0x8); /* 0x470248C8: mov edi, dword ptr [edx + 8] */ 7217 /* cmp edi, ebp */ /* 0x470248CB: cmp edi, ebp */ 7218 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebp); 7219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7220 _flag_k = FK_CMP; 7221 if (CMP_EQ(_flag_a, _flag_b)) goto L_470248E7; /* 0x470248CD: je 0x470248e7 */ 7222 L_470248CF: 7223 eax = MEM32(ecx + 0x4); /* 0x470248CF: mov eax, dword ptr [ecx + 4] */ 7224 /* cmp eax, MEM32(edx + 0xC) */ /* 0x470248D2: cmp eax, dword ptr [edx + 0xc] */ 7225 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0xC)); 7226 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7227 _flag_k = FK_CMP; 7228 if (CMP_GE(_flag_a, _flag_b)) goto L_470248E7; /* 0x470248D5: jge 0x470248e7 */ 7229 L_470248D7: 7230 /* cmp eax, ebp */ /* 0x470248D7: cmp eax, ebp */ 7231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp); 7232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7233 _flag_k = FK_CMP; 7234 if (CMP_L(_flag_a, _flag_b)) goto L_470248E7; /* 0x470248D9: jl 0x470248e7 */ 7235 L_470248DB: 7236 esi = MEM32(ecx + 0x8); /* 0x470248DB: mov esi, dword ptr [ecx + 8] */ 7237 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x470248DE: shl eax, 4 */ 7238 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7239 eax = eax << 4u; /* 0x470248DE: shl eax, 4 */ 7240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7241 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7242 eax = eax + edi; /* 0x470248E1: add eax, edi */ 7243 _flag_k = FK_ADD; 7244 /* cmp esi, eax */ /* 0x470248E3: cmp esi, eax */ 7245 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7247 _flag_k = FK_CMP; 7248 if (CMP_NE(_flag_a, _flag_b)) goto L_47024900; /* 0x470248E5: jne 0x47024900 */ 7249 L_470248E7: 7250 edi = POP32_VAL(esp); /* 0x470248E7: pop edi */ 7251 esi = POP32_VAL(esp); /* 0x470248E8: pop esi */ 7252 eax = 1; /* 0x470248E9: mov eax, 1 */ 7253 ebp = POP32_VAL(esp); /* 0x470248EE: pop ebp */ 7254 ecx = MEM32(esp + 0x1C); /* 0x470248EF: mov ecx, dword ptr [esp + 0x1c] */ 7255 MEM32(FS_BASE + (0)) = ecx; /* 0x470248F3: mov dword ptr fs:[0], ecx */ 7256 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 7257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7258 esp = esp + 0x28u; /* 0x470248FA: add esp, 0x28 */ 7259 _flag_k = FK_ADD; 7260 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470248FD: ret 0xc */ 7261 L_47024900: 7262 RECOMP_ICALL(0x470265E0u); /* 0x47024900: call 0x470265e0 */ /* not lifted */ 7263 RECOMP_FLAGS_IN(); 7264 esi = MEM32(esi); /* 0x47024905: mov esi, dword ptr [esi] */ 7265 RECOMP_ICALL(0x4703DAC0u); /* 0x47024907: call 0x4703dac0 */ /* not lifted */ 7266 RECOMP_FLAGS_IN(); 7267 /* cmp esi, ebp */ /* 0x4702490C: cmp esi, ebp */ 7268 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebp); 7269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7270 _flag_k = FK_CMP; 7271 MEM32(esp + 0x14) = eax; /* 0x4702490E: mov dword ptr [esp + 0x14], eax */ 7272 MEM32(esp + 0x18) = ebp; /* 0x47024912: mov dword ptr [esp + 0x18], ebp */ 7273 MEM32(esp + 0x1C) = ebp; /* 0x47024916: mov dword ptr [esp + 0x1c], ebp */ 7274 MEM32(esp + 0x20) = ebp; /* 0x4702491A: mov dword ptr [esp + 0x20], ebp */ 7275 MEM32(esp + 0x24) = ebp; /* 0x4702491E: mov dword ptr [esp + 0x24], ebp */ 7276 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024932; /* 0x47024922: je 0x47024932 */ 7277 L_47024924: 7278 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7279 ecx = ecx | 0xFFFFFFFFu; /* 0x47024924: or ecx, 0xffffffff */ 7280 _cf = 0; 7281 _flag_k = FK_TEST; 7282 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7283 eax = 0; /* 0x47024927: xor eax, eax */ 7284 _cf = 0; 7285 _flag_k = FK_TEST; 7286 edi = esi; /* 0x47024929: mov edi, esi */ 7287 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; } /* 0x4702492B: repne scasb al, byte ptr es:[edi] */ 7288 ecx = ~ecx; /* 0x4702492D: not ecx */ 7289 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7290 ecx = ecx - 1; /* 0x4702492F: dec ecx */ 7291 _flag_k = FK_DEC; 7292 goto L_47024934; /* 0x47024930: jmp 0x47024934 */ 7293 L_47024932: 7294 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7295 ecx = 0; /* 0x47024932: xor ecx, ecx */ 7296 _cf = 0; 7297 _flag_k = FK_TEST; 7298 L_47024934: 7299 PUSH32(esp, 1); /* 0x47024934: push 1 */ 7300 PUSH32(esp, ecx); /* 0x47024936: push ecx */ 7301 PUSH32(esp, esi); /* 0x47024937: push esi */ 7302 ecx = esp + 0x20; /* 0x47024938: lea ecx, [esp + 0x20] */ 7303 RECOMP_ICALL(0x470802D0u); /* 0x4702493C: call 0x470802d0 */ /* not lifted */ 7304 RECOMP_FLAGS_IN(); 7305 ecx = MEM32(esp + 0x40); /* 0x47024941: mov ecx, dword ptr [esp + 0x40] */ 7306 edx = esp + 0x14; /* 0x47024945: lea edx, [esp + 0x14] */ 7307 /* cmp ecx, edx */ /* 0x47024949: cmp ecx, edx */ 7308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7310 _flag_k = FK_CMP; 7311 MEM8(esp + 0x30) = (uint8_t)(3); /* 0x4702494B: mov byte ptr [esp + 0x30], 3 */ 7312 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024963; /* 0x47024950: je 0x47024963 */ 7313 L_47024952: 7314 eax = MEM32(esp + 0x18); /* 0x47024952: mov eax, dword ptr [esp + 0x18] */ 7315 edx = MEM32(esp + 0x20); /* 0x47024956: mov edx, dword ptr [esp + 0x20] */ 7316 PUSH32(esp, 1); /* 0x4702495A: push 1 */ 7317 PUSH32(esp, eax); /* 0x4702495C: push eax */ 7318 PUSH32(esp, edx); /* 0x4702495D: push edx */ 7319 RECOMP_ICALL(0x470802D0u); /* 0x4702495E: call 0x470802d0 */ /* not lifted */ 7320 RECOMP_FLAGS_IN(); 7321 L_47024963: 7322 PUSH32(esp, ebp); /* 0x47024963: push ebp */ 7323 PUSH32(esp, ebp); /* 0x47024964: push ebp */ 7324 PUSH32(esp, ebp); /* 0x47024965: push ebp */ 7325 ecx = esp + 0x20; /* 0x47024966: lea ecx, [esp + 0x20] */ 7326 MEM8(esp + 0x3C) = (uint8_t)(1); /* 0x4702496A: mov byte ptr [esp + 0x3c], 1 */ 7327 RECOMP_ICALL(0x470802D0u); /* 0x4702496F: call 0x470802d0 */ /* not lifted */ 7328 RECOMP_FLAGS_IN(); 7329 ecx = MEM32(esp + 0x28); /* 0x47024974: mov ecx, dword ptr [esp + 0x28] */ 7330 edi = POP32_VAL(esp); /* 0x47024978: pop edi */ 7331 esi = POP32_VAL(esp); /* 0x47024979: pop esi */ 7332 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7333 eax = 0; /* 0x4702497A: xor eax, eax */ 7334 _cf = 0; 7335 _flag_k = FK_TEST; 7336 ebp = POP32_VAL(esp); /* 0x4702497C: pop ebp */ 7337 MEM32(FS_BASE + (0)) = ecx; /* 0x4702497D: mov dword ptr fs:[0], ecx */ 7338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 7339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7340 esp = esp + 0x28u; /* 0x47024984: add esp, 0x28 */ 7341 _flag_k = FK_ADD; 7342 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024987: ret 0xc */ 7343 RECOMP_REGS_OUT(); 7344 } 7345 7346 void sub_47024990(void) { 7347 int _fpu_cmp = 0; 7348 uint32_t _cf = 0; 7349 int _df = 1; 7350 uint32_t _flag_k = FK_NONE; 7351 uint32_t _flag_a = 0, _flag_b = 0; 7352 uint32_t _itail_tgt = 0; 7353 RECOMP_REGS_LOCALS 7354 RECOMP_ENTER(0x47024990u); 7355 7356 L_47024990: 7357 eax = MEM32(FS_BASE + (0)); /* 0x47024990: mov eax, dword ptr fs:[0] */ 7358 PUSH32(esp, 0xFFFFFFFFu); /* 0x47024996: push -1 */ 7359 PUSH32(esp, 0x470A4A70u); /* 0x47024998: push 0x470a4a70 */ 7360 PUSH32(esp, eax); /* 0x4702499D: push eax */ 7361 MEM32(FS_BASE + (0)) = esp; /* 0x4702499E: mov dword ptr fs:[0], esp */ 7362 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 7363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7364 esp = esp - 0x44u; /* 0x470249A5: sub esp, 0x44 */ 7365 _flag_k = FK_CMP; 7366 PUSH32(esp, ebx); /* 0x470249A8: push ebx */ 7367 PUSH32(esp, ebp); /* 0x470249A9: push ebp */ 7368 PUSH32(esp, esi); /* 0x470249AA: push esi */ 7369 esi = MEM32(esp + 0x64); /* 0x470249AB: mov esi, dword ptr [esp + 0x64] */ 7370 /* cmp MEM8(esi), 0 */ /* 0x470249AF: cmp byte ptr [esi], 0 */ 7371 _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0) << 24; 7372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7373 _flag_k = FK_NARROW(FK_CMP, 24); 7374 PUSH32(esp, edi); /* 0x470249B2: push edi */ 7375 ebp = ecx; /* 0x470249B3: mov ebp, ecx */ 7376 edi = esi; /* 0x470249B5: mov edi, esi */ 7377 if (CMP_EQ(_flag_a, _flag_b)) goto L_470249D9; /* 0x470249B7: je 0x470249d9 */ 7378 L_470249B9: 7379 ebx = MEM32(0x470AC380); /* 0x470249B9: mov ebx, dword ptr [0x470ac380] */ 7380 L_470249BF: 7381 eax = (int32_t)(int8_t)MEM8(edi); /* 0x470249BF: movsx eax, byte ptr [edi] */ 7382 PUSH32(esp, eax); /* 0x470249C2: push eax */ 7383 PUSH32(esp, 0x47105AACu); /* 0x470249C3: push 0x47105aac */ 7384 RECOMP_ICALL(ebx); /* 0x470249C8: call ebx */ 7385 RECOMP_FLAGS_IN(); 7386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7388 esp = esp + 8; /* 0x470249CA: add esp, 8 */ 7389 _flag_k = FK_ADD; 7390 /* test eax, eax */ /* 0x470249CD: test eax, eax */ 7391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7392 _cf = 0; 7393 _flag_k = FK_TEST; 7394 if (TEST_NZ(_flag_a, _flag_b)) goto L_470249E3; /* 0x470249CF: jne 0x470249e3 */ 7395 L_470249D1: 7396 SET_LO8(eax, MEM8(edi + 0x1)); /* 0x470249D1: mov al, byte ptr [edi + 1] */ 7397 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 7398 edi = edi + 1; /* 0x470249D4: inc edi */ 7399 _flag_k = FK_INC; 7400 /* test LO8(eax), LO8(eax) */ /* 0x470249D5: test al, al */ 7401 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7402 _cf = 0; 7403 _flag_k = FK_NARROW(FK_TEST, 24); 7404 RECOMP_BACKEDGE(); 7405 if (TEST_NZ(_flag_a, _flag_b)) goto L_470249BF; /* 0x470249D7: jne 0x470249bf */ 7406 L_470249D9: 7407 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7409 edi = edi - esi; /* 0x470249D9: sub edi, esi */ 7410 _flag_k = FK_CMP; 7411 /* cmp edi, 0xFFu */ /* 0x470249DB: cmp edi, 0xff */ 7412 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFu); 7413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7414 _flag_k = FK_CMP; 7415 if (CMP_LE(_flag_a, _flag_b)) goto L_470249EB; /* 0x470249E1: jle 0x470249eb */ 7416 L_470249E3: 7417 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7418 eax = eax | 0xFFFFFFFFu; /* 0x470249E3: or eax, 0xffffffff */ 7419 _cf = 0; 7420 _flag_k = FK_TEST; 7421 goto L_47024D01; /* 0x470249E6: jmp 0x47024d01 */ 7422 L_470249EB: 7423 RECOMP_ICALL(0x4703DAC0u); /* 0x470249EB: call 0x4703dac0 */ /* not lifted */ 7424 RECOMP_FLAGS_IN(); 7425 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7426 ebx = 0; /* 0x470249F0: xor ebx, ebx */ 7427 _cf = 0; 7428 _flag_k = FK_TEST; 7429 MEM32(esp + 0x40) = eax; /* 0x470249F2: mov dword ptr [esp + 0x40], eax */ 7430 MEM32(esp + 0x44) = ebx; /* 0x470249F6: mov dword ptr [esp + 0x44], ebx */ 7431 MEM32(esp + 0x48) = ebx; /* 0x470249FA: mov dword ptr [esp + 0x48], ebx */ 7432 MEM32(esp + 0x4C) = 0x4710F078u; /* 0x470249FE: mov dword ptr [esp + 0x4c], 0x4710f078 */ 7433 MEM32(esp + 0x50) = ebx; /* 0x47024A06: mov dword ptr [esp + 0x50], ebx */ 7434 eax = MEM32(esp + 0x64); /* 0x47024A0A: mov eax, dword ptr [esp + 0x64] */ 7435 eax = MEM32(eax); /* 0x47024A0E: mov eax, dword ptr [eax] */ 7436 /* cmp eax, ebx */ /* 0x47024A10: cmp eax, ebx */ 7437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7439 _flag_k = FK_CMP; 7440 MEM32(esp + 0x5C) = ebx; /* 0x47024A12: mov dword ptr [esp + 0x5c], ebx */ 7441 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024A6F; /* 0x47024A16: je 0x47024a6f */ 7442 L_47024A18: 7443 ecx = MEM32(eax + 0x8); /* 0x47024A18: mov ecx, dword ptr [eax + 8] */ 7444 PUSH32(esp, 1); /* 0x47024A1B: push 1 */ 7445 PUSH32(esp, ebx); /* 0x47024A1D: push ebx */ 7446 PUSH32(esp, ecx); /* 0x47024A1E: push ecx */ 7447 ecx = esp + 0x38; /* 0x47024A1F: lea ecx, [esp + 0x38] */ 7448 RECOMP_ICALL(0x47007130u); /* 0x47024A23: call 0x47007130 */ /* not lifted */ 7449 RECOMP_FLAGS_IN(); 7450 edx = esp + 0x2C; /* 0x47024A28: lea edx, [esp + 0x2c] */ 7451 PUSH32(esp, edx); /* 0x47024A2C: push edx */ 7452 ecx = esp + 0x44; /* 0x47024A2D: lea ecx, [esp + 0x44] */ 7453 MEM8(esp + 0x60) = (uint8_t)(1); /* 0x47024A31: mov byte ptr [esp + 0x60], 1 */ 7454 RECOMP_ICALL(0x47007250u); /* 0x47024A36: call 0x47007250 */ /* not lifted */ 7455 RECOMP_FLAGS_IN(); 7456 PUSH32(esp, ebx); /* 0x47024A3B: push ebx */ 7457 PUSH32(esp, ebx); /* 0x47024A3C: push ebx */ 7458 PUSH32(esp, ebx); /* 0x47024A3D: push ebx */ 7459 ecx = esp + 0x38; /* 0x47024A3E: lea ecx, [esp + 0x38] */ 7460 MEM8(esp + 0x68) = (uint8_t)(LO8(ebx)); /* 0x47024A42: mov byte ptr [esp + 0x68], bl */ 7461 RECOMP_ICALL(0x470802D0u); /* 0x47024A46: call 0x470802d0 */ /* not lifted */ 7462 RECOMP_FLAGS_IN(); 7463 eax = MEM32(esp + 0x44); /* 0x47024A4B: mov eax, dword ptr [esp + 0x44] */ 7464 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7465 eax = eax + 1; /* 0x47024A4F: inc eax */ 7466 _flag_k = FK_INC; 7467 PUSH32(esp, eax); /* 0x47024A50: push eax */ 7468 RECOMP_ICALL(0x470A33F2u); /* 0x47024A51: call 0x470a33f2 */ /* not lifted */ 7469 RECOMP_FLAGS_IN(); 7470 edi = eax; /* 0x47024A56: mov edi, eax */ 7471 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7472 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7473 esp = esp + 4; /* 0x47024A58: add esp, 4 */ 7474 _flag_k = FK_ADD; 7475 /* cmp edi, ebx */ /* 0x47024A5B: cmp edi, ebx */ 7476 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7478 _flag_k = FK_CMP; 7479 if (CMP_NE(_flag_a, _flag_b)) goto L_47024A8B; /* 0x47024A5D: jne 0x47024a8b */ 7480 L_47024A5F: 7481 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024A5F: call dword ptr [0x470ac3c8] */ 7482 RECOMP_FLAGS_IN(); 7483 MEM32(eax) = 0xCu; /* 0x47024A65: mov dword ptr [eax], 0xc */ 7484 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7485 edi = 0; /* 0x47024A6B: xor edi, edi */ 7486 _cf = 0; 7487 _flag_k = FK_TEST; 7488 goto L_47024AA7; /* 0x47024A6D: jmp 0x47024aa7 */ 7489 L_47024A6F: 7490 PUSH32(esp, ebx); /* 0x47024A6F: push ebx */ 7491 PUSH32(esp, ebx); /* 0x47024A70: push ebx */ 7492 PUSH32(esp, ebx); /* 0x47024A71: push ebx */ 7493 ecx = esp + 0x4C; /* 0x47024A72: lea ecx, [esp + 0x4c] */ 7494 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47024A76: mov dword ptr [esp + 0x68], 0xffffffff */ 7495 RECOMP_ICALL(0x470802D0u); /* 0x47024A7E: call 0x470802d0 */ /* not lifted */ 7496 RECOMP_FLAGS_IN(); 7497 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7498 eax = eax | 0xFFFFFFFFu; /* 0x47024A83: or eax, 0xffffffff */ 7499 _cf = 0; 7500 _flag_k = FK_TEST; 7501 goto L_47024D01; /* 0x47024A86: jmp 0x47024d01 */ 7502 L_47024A8B: 7503 ecx = MEM32(esp + 0x44); /* 0x47024A8B: mov ecx, dword ptr [esp + 0x44] */ 7504 edx = MEM32(esp + 0x4C); /* 0x47024A8F: mov edx, dword ptr [esp + 0x4c] */ 7505 PUSH32(esp, ecx); /* 0x47024A93: push ecx */ 7506 PUSH32(esp, edx); /* 0x47024A94: push edx */ 7507 PUSH32(esp, edi); /* 0x47024A95: push edi */ 7508 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024A96: call dword ptr [0x470ac22c] */ 7509 RECOMP_FLAGS_IN(); 7510 eax = MEM32(esp + 0x50); /* 0x47024A9C: mov eax, dword ptr [esp + 0x50] */ 7511 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7513 esp = esp + 0xCu; /* 0x47024AA0: add esp, 0xc */ 7514 _flag_k = FK_ADD; 7515 MEM8(eax + edi) = (uint8_t)(0); /* 0x47024AA3: mov byte ptr [eax + edi], 0 */ 7516 L_47024AA7: 7517 MEM32(esp + 0x68) = edi; /* 0x47024AA7: mov dword ptr [esp + 0x68], edi */ 7518 MEM32(esp + 0x18) = ebx; /* 0x47024AAB: mov dword ptr [esp + 0x18], ebx */ 7519 MEM32(esp + 0x1C) = ebx; /* 0x47024AAF: mov dword ptr [esp + 0x1c], ebx */ 7520 eax = MEM32(ebp + 0x8); /* 0x47024AB3: mov eax, dword ptr [ebp + 8] */ 7521 ecx = MEM32(ebp + 0xC); /* 0x47024AB6: mov ecx, dword ptr [ebp + 0xc] */ 7522 edx = esp + 0x18; /* 0x47024AB9: lea edx, [esp + 0x18] */ 7523 MEM32(ecx) = eax; /* 0x47024ABD: mov dword ptr [ecx], eax */ 7524 PUSH32(esp, edx); /* 0x47024ABF: push edx */ 7525 eax = esp + 0x6C; /* 0x47024AC0: lea eax, [esp + 0x6c] */ 7526 PUSH32(esp, eax); /* 0x47024AC4: push eax */ 7527 MEM8(esp + 0x64) = (uint8_t)(3); /* 0x47024AC5: mov byte ptr [esp + 0x64], 3 */ 7528 RECOMP_ICALL(0x47027020u); /* 0x47024ACA: call 0x47027020 */ /* not lifted */ 7529 RECOMP_FLAGS_IN(); 7530 /* test eax, eax */ /* 0x47024ACF: test eax, eax */ 7531 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7532 _cf = 0; 7533 _flag_k = FK_TEST; 7534 if (TEST_Z(_flag_a, _flag_b)) goto L_47024AF1; /* 0x47024AD1: je 0x47024af1 */ 7535 L_47024AD3: 7536 PUSH32(esp, ebx); /* 0x47024AD3: push ebx */ 7537 PUSH32(esp, ebx); /* 0x47024AD4: push ebx */ 7538 PUSH32(esp, ebx); /* 0x47024AD5: push ebx */ 7539 ecx = esp + 0x4C; /* 0x47024AD6: lea ecx, [esp + 0x4c] */ 7540 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47024ADA: mov dword ptr [esp + 0x68], 0xffffffff */ 7541 RECOMP_ICALL(0x470802D0u); /* 0x47024AE2: call 0x470802d0 */ /* not lifted */ 7542 RECOMP_FLAGS_IN(); 7543 eax = 0xFFFFFFFEu; /* 0x47024AE7: mov eax, 0xfffffffe */ 7544 goto L_47024D01; /* 0x47024AEC: jmp 0x47024d01 */ 7545 L_47024AF1: 7546 MEM32(esp + 0x10) = esi; /* 0x47024AF1: mov dword ptr [esp + 0x10], esi */ 7547 MEM32(esp + 0x20) = 3; /* 0x47024AF5: mov dword ptr [esp + 0x20], 3 */ 7548 MEM32(esp + 0x24) = ebx; /* 0x47024AFD: mov dword ptr [esp + 0x24], ebx */ 7549 MEM32(esp + 0x28) = ebx; /* 0x47024B01: mov dword ptr [esp + 0x28], ebx */ 7550 eax = MEM32(ebp + 0x8); /* 0x47024B05: mov eax, dword ptr [ebp + 8] */ 7551 ecx = MEM32(esp + 0x18); /* 0x47024B08: mov ecx, dword ptr [esp + 0x18] */ 7552 edx = esp + 0x20; /* 0x47024B0C: lea edx, [esp + 0x20] */ 7553 MEM32(ecx) = eax; /* 0x47024B10: mov dword ptr [ecx], eax */ 7554 PUSH32(esp, edx); /* 0x47024B12: push edx */ 7555 eax = esp + 0x14; /* 0x47024B13: lea eax, [esp + 0x14] */ 7556 PUSH32(esp, eax); /* 0x47024B17: push eax */ 7557 MEM8(esp + 0x64) = (uint8_t)(5); /* 0x47024B18: mov byte ptr [esp + 0x64], 5 */ 7558 RECOMP_ICALL(0x47026250u); /* 0x47024B1D: call 0x47026250 */ /* not lifted */ 7559 RECOMP_FLAGS_IN(); 7560 /* test eax, eax */ /* 0x47024B22: test eax, eax */ 7561 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7562 _cf = 0; 7563 _flag_k = FK_TEST; 7564 if (TEST_Z(_flag_a, _flag_b)) goto L_47024C56; /* 0x47024B24: je 0x47024c56 */ 7565 L_47024B2A: 7566 edx = MEM32(ebp + 0x8); /* 0x47024B2A: mov edx, dword ptr [ebp + 8] */ 7567 ebx = MEM32(edx); /* 0x47024B2D: mov ebx, dword ptr [edx] */ 7568 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7569 ecx = ecx | 0xFFFFFFFFu; /* 0x47024B2F: or ecx, 0xffffffff */ 7570 _cf = 0; 7571 _flag_k = FK_TEST; 7572 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7573 eax = 0; /* 0x47024B32: xor eax, eax */ 7574 _cf = 0; 7575 _flag_k = FK_TEST; 7576 edi = esi; /* 0x47024B34: mov edi, esi */ 7577 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; } /* 0x47024B36: repne scasb al, byte ptr es:[edi] */ 7578 ecx = ~ecx; /* 0x47024B38: not ecx */ 7579 PUSH32(esp, ecx); /* 0x47024B3A: push ecx */ 7580 ecx = edx; /* 0x47024B3B: mov ecx, edx */ 7581 RECOMP_ICALL(MEM32(ebx + 0x4)); /* 0x47024B3D: call dword ptr [ebx + 4] */ 7582 RECOMP_FLAGS_IN(); 7583 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7584 ecx = ecx | 0xFFFFFFFFu; /* 0x47024B40: or ecx, 0xffffffff */ 7585 _cf = 0; 7586 _flag_k = FK_TEST; 7587 ebx = eax; /* 0x47024B43: mov ebx, eax */ 7588 edi = esi; /* 0x47024B45: mov edi, esi */ 7589 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7590 eax = 0; /* 0x47024B47: xor eax, eax */ 7591 _cf = 0; 7592 _flag_k = FK_TEST; 7593 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; } /* 0x47024B49: repne scasb al, byte ptr es:[edi] */ 7594 ecx = ~ecx; /* 0x47024B4B: not ecx */ 7595 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 7596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7597 edi = edi - ecx; /* 0x47024B4D: sub edi, ecx */ 7598 _flag_k = FK_CMP; 7599 edx = ecx; /* 0x47024B4F: mov edx, ecx */ 7600 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024B51: shr ecx, 2 */ 7601 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7602 ecx = ecx >> 2u; /* 0x47024B51: shr ecx, 2 */ 7603 esi = edi; /* 0x47024B54: mov esi, edi */ 7604 edi = ebx; /* 0x47024B56: mov edi, ebx */ 7605 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024B58: 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; } 7606 ecx = edx; /* 0x47024B5A: mov ecx, edx */ 7607 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7608 ecx = ecx & 3; /* 0x47024B5C: and ecx, 3 */ 7609 _cf = 0; 7610 _flag_k = FK_TEST; 7611 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024B5F: 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; } 7612 esi = MEM32(esp + 0x6C); /* 0x47024B61: mov esi, dword ptr [esp + 0x6c] */ 7613 eax = MEM32(esi + 0x4); /* 0x47024B65: mov eax, dword ptr [esi + 4] */ 7614 ecx = MEM32(ebp + 0x8); /* 0x47024B68: mov ecx, dword ptr [ebp + 8] */ 7615 edx = MEM32(ecx); /* 0x47024B6B: mov edx, dword ptr [ecx] */ 7616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7617 eax = eax + 1; /* 0x47024B6D: inc eax */ 7618 _flag_k = FK_INC; 7619 PUSH32(esp, eax); /* 0x47024B6E: push eax */ 7620 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47024B6F: call dword ptr [edx + 4] */ 7621 RECOMP_FLAGS_IN(); 7622 MEM32(esp + 0x6C) = eax; /* 0x47024B72: mov dword ptr [esp + 0x6c], eax */ 7623 eax = MEM32(esi + 0x4); /* 0x47024B76: mov eax, dword ptr [esi + 4] */ 7624 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7625 eax = eax + 1; /* 0x47024B79: inc eax */ 7626 _flag_k = FK_INC; 7627 PUSH32(esp, eax); /* 0x47024B7A: push eax */ 7628 RECOMP_ICALL(0x470A33F2u); /* 0x47024B7B: call 0x470a33f2 */ /* not lifted */ 7629 RECOMP_FLAGS_IN(); 7630 edi = eax; /* 0x47024B80: mov edi, eax */ 7631 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7632 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7633 esp = esp + 4; /* 0x47024B82: add esp, 4 */ 7634 _flag_k = FK_ADD; 7635 /* test edi, edi */ /* 0x47024B85: test edi, edi */ 7636 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7637 _cf = 0; 7638 _flag_k = FK_TEST; 7639 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024B97; /* 0x47024B87: jne 0x47024b97 */ 7640 L_47024B89: 7641 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024B89: call dword ptr [0x470ac3c8] */ 7642 RECOMP_FLAGS_IN(); 7643 MEM32(eax) = 0xCu; /* 0x47024B8F: mov dword ptr [eax], 0xc */ 7644 goto L_47024BB0; /* 0x47024B95: jmp 0x47024bb0 */ 7645 L_47024B97: 7646 eax = MEM32(esi + 0x4); /* 0x47024B97: mov eax, dword ptr [esi + 4] */ 7647 ecx = MEM32(esi + 0xC); /* 0x47024B9A: mov ecx, dword ptr [esi + 0xc] */ 7648 PUSH32(esp, eax); /* 0x47024B9D: push eax */ 7649 PUSH32(esp, ecx); /* 0x47024B9E: push ecx */ 7650 PUSH32(esp, edi); /* 0x47024B9F: push edi */ 7651 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024BA0: call dword ptr [0x470ac22c] */ 7652 RECOMP_FLAGS_IN(); 7653 ecx = MEM32(esi + 0x4); /* 0x47024BA6: mov ecx, dword ptr [esi + 4] */ 7654 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7655 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7656 esp = esp + 0xCu; /* 0x47024BA9: add esp, 0xc */ 7657 _flag_k = FK_ADD; 7658 MEM8(ecx + edi) = (uint8_t)(0); /* 0x47024BAC: mov byte ptr [ecx + edi], 0 */ 7659 L_47024BB0: 7660 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7661 ecx = ecx | 0xFFFFFFFFu; /* 0x47024BB0: or ecx, 0xffffffff */ 7662 _cf = 0; 7663 _flag_k = FK_TEST; 7664 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7665 eax = 0; /* 0x47024BB3: xor eax, eax */ 7666 _cf = 0; 7667 _flag_k = FK_TEST; 7668 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; } /* 0x47024BB5: repne scasb al, byte ptr es:[edi] */ 7669 eax = MEM32(esp + 0x6C); /* 0x47024BB7: mov eax, dword ptr [esp + 0x6c] */ 7670 ecx = ~ecx; /* 0x47024BBB: not ecx */ 7671 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 7672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7673 edi = edi - ecx; /* 0x47024BBD: sub edi, ecx */ 7674 _flag_k = FK_CMP; 7675 edx = ecx; /* 0x47024BBF: mov edx, ecx */ 7676 esi = edi; /* 0x47024BC1: mov esi, edi */ 7677 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024BC3: shr ecx, 2 */ 7678 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7679 ecx = ecx >> 2u; /* 0x47024BC3: shr ecx, 2 */ 7680 edi = eax; /* 0x47024BC6: mov edi, eax */ 7681 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024BC8: 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; } 7682 ecx = edx; /* 0x47024BCA: mov ecx, edx */ 7683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7684 ecx = ecx & 3; /* 0x47024BCC: and ecx, 3 */ 7685 _cf = 0; 7686 _flag_k = FK_TEST; 7687 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024BCF: 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; } 7688 MEM32(esp + 0x64) = ebx; /* 0x47024BD1: mov dword ptr [esp + 0x64], ebx */ 7689 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7690 ecx = 0; /* 0x47024BD5: xor ecx, ecx */ 7691 _cf = 0; 7692 _flag_k = FK_TEST; 7693 MEM32(esp + 0x2C) = ecx; /* 0x47024BD7: mov dword ptr [esp + 0x2c], ecx */ 7694 MEM32(esp + 0x30) = eax; /* 0x47024BDB: mov dword ptr [esp + 0x30], eax */ 7695 MEM32(esp + 0x34) = ecx; /* 0x47024BDF: mov dword ptr [esp + 0x34], ecx */ 7696 eax = MEM32(ebp + 0x8); /* 0x47024BE3: mov eax, dword ptr [ebp + 8] */ 7697 ecx = MEM32(esp + 0x18); /* 0x47024BE6: mov ecx, dword ptr [esp + 0x18] */ 7698 MEM32(ecx) = eax; /* 0x47024BEA: mov dword ptr [ecx], eax */ 7699 eax = esp + 0x14; /* 0x47024BEC: lea eax, [esp + 0x14] */ 7700 PUSH32(esp, eax); /* 0x47024BF0: push eax */ 7701 edx = esp + 0x30; /* 0x47024BF1: lea edx, [esp + 0x30] */ 7702 PUSH32(esp, edx); /* 0x47024BF5: push edx */ 7703 eax = esp + 0x6C; /* 0x47024BF6: lea eax, [esp + 0x6c] */ 7704 PUSH32(esp, eax); /* 0x47024BFA: push eax */ 7705 MEM8(esp + 0x68) = (uint8_t)(7); /* 0x47024BFB: mov byte ptr [esp + 0x68], 7 */ 7706 RECOMP_ICALL(0x47027460u); /* 0x47024C00: call 0x47027460 */ /* not lifted */ 7707 RECOMP_FLAGS_IN(); 7708 /* test eax, eax */ /* 0x47024C05: test eax, eax */ 7709 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7710 _cf = 0; 7711 _flag_k = FK_TEST; 7712 if (TEST_Z(_flag_a, _flag_b)) goto L_47024C43; /* 0x47024C07: je 0x47024c43 */ 7713 L_47024C09: 7714 ecx = MEM32(ebp + 0x8); /* 0x47024C09: mov ecx, dword ptr [ebp + 8] */ 7715 eax = MEM32(esp + 0x6C); /* 0x47024C0C: mov eax, dword ptr [esp + 0x6c] */ 7716 edx = MEM32(ecx); /* 0x47024C10: mov edx, dword ptr [ecx] */ 7717 PUSH32(esp, eax); /* 0x47024C12: push eax */ 7718 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024C13: call dword ptr [edx + 0xc] */ 7719 RECOMP_FLAGS_IN(); 7720 ebp = MEM32(ebp + 0x8); /* 0x47024C16: mov ebp, dword ptr [ebp + 8] */ 7721 edx = MEM32(ebp); /* 0x47024C19: mov edx, dword ptr [ebp] */ 7722 PUSH32(esp, ebx); /* 0x47024C1C: push ebx */ 7723 ecx = ebp; /* 0x47024C1D: mov ecx, ebp */ 7724 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024C1F: call dword ptr [edx + 0xc] */ 7725 RECOMP_FLAGS_IN(); 7726 PUSH32(esp, 0); /* 0x47024C22: push 0 */ 7727 PUSH32(esp, 0); /* 0x47024C24: push 0 */ 7728 PUSH32(esp, 0); /* 0x47024C26: push 0 */ 7729 ecx = esp + 0x4C; /* 0x47024C28: lea ecx, [esp + 0x4c] */ 7730 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47024C2C: mov dword ptr [esp + 0x68], 0xffffffff */ 7731 RECOMP_ICALL(0x470802D0u); /* 0x47024C34: call 0x470802d0 */ /* not lifted */ 7732 RECOMP_FLAGS_IN(); 7733 eax = 0xFFFFFFFDu; /* 0x47024C39: mov eax, 0xfffffffd */ 7734 goto L_47024D01; /* 0x47024C3E: jmp 0x47024d01 */ 7735 L_47024C43: 7736 PUSH32(esp, 0); /* 0x47024C43: push 0 */ 7737 PUSH32(esp, 0); /* 0x47024C45: push 0 */ 7738 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024C47: mov dword ptr [esp + 0x64], 0xffffffff */ 7739 PUSH32(esp, 0); /* 0x47024C4F: push 0 */ 7740 goto L_47024CF6; /* 0x47024C51: jmp 0x47024cf6 */ 7741 L_47024C56: 7742 eax = MEM32(esp + 0x20); /* 0x47024C56: mov eax, dword ptr [esp + 0x20] */ 7743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 7744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7745 eax = eax - ebx; /* 0x47024C5A: sub eax, ebx */ 7746 _flag_k = FK_CMP; 7747 ecx = MEM32(ebp + 0x8); /* 0x47024C5C: mov ecx, dword ptr [ebp + 8] */ 7748 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47024C66; /* 0x47024C5F: je 0x47024c66 */ 7749 L_47024C61: 7750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7752 eax = eax - 2; /* 0x47024C61: sub eax, 2 */ 7753 _flag_k = FK_CMP; 7754 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_47024C70; /* 0x47024C64: jne 0x47024c70 */ 7755 L_47024C66: 7756 edx = MEM32(esp + 0x24); /* 0x47024C66: mov edx, dword ptr [esp + 0x24] */ 7757 eax = MEM32(ecx); /* 0x47024C6A: mov eax, dword ptr [ecx] */ 7758 PUSH32(esp, edx); /* 0x47024C6C: push edx */ 7759 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47024C6D: call dword ptr [eax + 0xc] */ 7760 RECOMP_FLAGS_IN(); 7761 L_47024C70: 7762 esi = MEM32(esp + 0x6C); /* 0x47024C70: mov esi, dword ptr [esp + 0x6c] */ 7763 eax = MEM32(esi + 0x4); /* 0x47024C74: mov eax, dword ptr [esi + 4] */ 7764 ebp = MEM32(ebp + 0x8); /* 0x47024C77: mov ebp, dword ptr [ebp + 8] */ 7765 edx = MEM32(ebp); /* 0x47024C7A: mov edx, dword ptr [ebp] */ 7766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7767 eax = eax + 1; /* 0x47024C7D: inc eax */ 7768 _flag_k = FK_INC; 7769 PUSH32(esp, eax); /* 0x47024C7E: push eax */ 7770 ecx = ebp; /* 0x47024C7F: mov ecx, ebp */ 7771 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47024C81: call dword ptr [edx + 4] */ 7772 RECOMP_FLAGS_IN(); 7773 ebp = eax; /* 0x47024C84: mov ebp, eax */ 7774 eax = MEM32(esi + 0x4); /* 0x47024C86: mov eax, dword ptr [esi + 4] */ 7775 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7776 eax = eax + 1; /* 0x47024C89: inc eax */ 7777 _flag_k = FK_INC; 7778 PUSH32(esp, eax); /* 0x47024C8A: push eax */ 7779 RECOMP_ICALL(0x470A33F2u); /* 0x47024C8B: call 0x470a33f2 */ /* not lifted */ 7780 RECOMP_FLAGS_IN(); 7781 edi = eax; /* 0x47024C90: mov edi, eax */ 7782 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7784 esp = esp + 4; /* 0x47024C92: add esp, 4 */ 7785 _flag_k = FK_ADD; 7786 /* cmp edi, ebx */ /* 0x47024C95: cmp edi, ebx */ 7787 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7789 _flag_k = FK_CMP; 7790 if (CMP_NE(_flag_a, _flag_b)) goto L_47024CA9; /* 0x47024C97: jne 0x47024ca9 */ 7791 L_47024C99: 7792 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024C99: call dword ptr [0x470ac3c8] */ 7793 RECOMP_FLAGS_IN(); 7794 MEM32(eax) = 0xCu; /* 0x47024C9F: mov dword ptr [eax], 0xc */ 7795 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7796 edi = 0; /* 0x47024CA5: xor edi, edi */ 7797 _cf = 0; 7798 _flag_k = FK_TEST; 7799 goto L_47024CC2; /* 0x47024CA7: jmp 0x47024cc2 */ 7800 L_47024CA9: 7801 eax = MEM32(esi + 0x4); /* 0x47024CA9: mov eax, dword ptr [esi + 4] */ 7802 ecx = MEM32(esi + 0xC); /* 0x47024CAC: mov ecx, dword ptr [esi + 0xc] */ 7803 PUSH32(esp, eax); /* 0x47024CAF: push eax */ 7804 PUSH32(esp, ecx); /* 0x47024CB0: push ecx */ 7805 PUSH32(esp, edi); /* 0x47024CB1: push edi */ 7806 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024CB2: call dword ptr [0x470ac22c] */ 7807 RECOMP_FLAGS_IN(); 7808 ecx = MEM32(esi + 0x4); /* 0x47024CB8: mov ecx, dword ptr [esi + 4] */ 7809 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7811 esp = esp + 0xCu; /* 0x47024CBB: add esp, 0xc */ 7812 _flag_k = FK_ADD; 7813 MEM8(ecx + edi) = (uint8_t)(0); /* 0x47024CBE: mov byte ptr [ecx + edi], 0 */ 7814 L_47024CC2: 7815 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7816 ecx = ecx | 0xFFFFFFFFu; /* 0x47024CC2: or ecx, 0xffffffff */ 7817 _cf = 0; 7818 _flag_k = FK_TEST; 7819 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7820 eax = 0; /* 0x47024CC5: xor eax, eax */ 7821 _cf = 0; 7822 _flag_k = FK_TEST; 7823 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; } /* 0x47024CC7: repne scasb al, byte ptr es:[edi] */ 7824 ecx = ~ecx; /* 0x47024CC9: not ecx */ 7825 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 7826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7827 edi = edi - ecx; /* 0x47024CCB: sub edi, ecx */ 7828 _flag_k = FK_CMP; 7829 edx = ecx; /* 0x47024CCD: mov edx, ecx */ 7830 esi = edi; /* 0x47024CCF: mov esi, edi */ 7831 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024CD1: shr ecx, 2 */ 7832 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7833 ecx = ecx >> 2u; /* 0x47024CD1: shr ecx, 2 */ 7834 edi = ebp; /* 0x47024CD4: mov edi, ebp */ 7835 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024CD6: 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; } 7836 ecx = edx; /* 0x47024CD8: mov ecx, edx */ 7837 PUSH32(esp, ebx); /* 0x47024CDA: push ebx */ 7838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7839 ecx = ecx & 3; /* 0x47024CDB: and ecx, 3 */ 7840 _cf = 0; 7841 _flag_k = FK_TEST; 7842 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024CDE: 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; } 7843 PUSH32(esp, ebx); /* 0x47024CE0: push ebx */ 7844 MEM32(esp + 0x28) = ebx; /* 0x47024CE1: mov dword ptr [esp + 0x28], ebx */ 7845 MEM32(esp + 0x2C) = ebp; /* 0x47024CE5: mov dword ptr [esp + 0x2c], ebp */ 7846 MEM32(esp + 0x30) = ebx; /* 0x47024CE9: mov dword ptr [esp + 0x30], ebx */ 7847 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024CED: mov dword ptr [esp + 0x64], 0xffffffff */ 7848 PUSH32(esp, ebx); /* 0x47024CF5: push ebx */ 7849 L_47024CF6: 7850 ecx = esp + 0x4C; /* 0x47024CF6: lea ecx, [esp + 0x4c] */ 7851 RECOMP_ICALL(0x470802D0u); /* 0x47024CFA: call 0x470802d0 */ /* not lifted */ 7852 RECOMP_FLAGS_IN(); 7853 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7854 eax = 0; /* 0x47024CFF: xor eax, eax */ 7855 _cf = 0; 7856 _flag_k = FK_TEST; 7857 L_47024D01: 7858 ecx = MEM32(esp + 0x54); /* 0x47024D01: mov ecx, dword ptr [esp + 0x54] */ 7859 edi = POP32_VAL(esp); /* 0x47024D05: pop edi */ 7860 esi = POP32_VAL(esp); /* 0x47024D06: pop esi */ 7861 ebp = POP32_VAL(esp); /* 0x47024D07: pop ebp */ 7862 ebx = POP32_VAL(esp); /* 0x47024D08: pop ebx */ 7863 MEM32(FS_BASE + (0)) = ecx; /* 0x47024D09: mov dword ptr fs:[0], ecx */ 7864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 7865 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7866 esp = esp + 0x50u; /* 0x47024D10: add esp, 0x50 */ 7867 _flag_k = FK_ADD; 7868 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024D13: ret 0xc */ 7869 RECOMP_REGS_OUT(); 7870 } 7871 7872 void sub_47024A83(void) { 7873 int _fpu_cmp = 0; 7874 uint32_t _cf = 0; 7875 int _df = 1; 7876 uint32_t _flag_k = FK_NONE; 7877 uint32_t _flag_a = 0, _flag_b = 0; 7878 uint32_t _itail_tgt = 0; 7879 RECOMP_REGS_LOCALS 7880 RECOMP_ENTER(0x47024A83u); 7881 7882 L_47024A83: 7883 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 7884 eax = eax | 0xFFFFFFFFu; /* 0x47024A83: or eax, 0xffffffff */ 7885 _cf = 0; 7886 _flag_k = FK_TEST; 7887 goto L_47024D01; /* 0x47024A86: jmp 0x47024d01 */ 7888 L_47024D01: 7889 ecx = MEM32(esp + 0x54); /* 0x47024D01: mov ecx, dword ptr [esp + 0x54] */ 7890 edi = POP32_VAL(esp); /* 0x47024D05: pop edi */ 7891 esi = POP32_VAL(esp); /* 0x47024D06: pop esi */ 7892 ebp = POP32_VAL(esp); /* 0x47024D07: pop ebp */ 7893 ebx = POP32_VAL(esp); /* 0x47024D08: pop ebx */ 7894 MEM32(FS_BASE + (0)) = ecx; /* 0x47024D09: mov dword ptr fs:[0], ecx */ 7895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 7896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7897 esp = esp + 0x50u; /* 0x47024D10: add esp, 0x50 */ 7898 _flag_k = FK_ADD; 7899 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024D13: ret 0xc */ 7900 RECOMP_REGS_OUT(); 7901 } 7902 7903 void sub_47024A8B(void) { 7904 int _fpu_cmp = 0; 7905 uint32_t _cf = 0; 7906 int _df = 1; 7907 uint32_t _flag_k = FK_NONE; 7908 uint32_t _flag_a = 0, _flag_b = 0; 7909 uint32_t _itail_tgt = 0; 7910 RECOMP_REGS_LOCALS 7911 RECOMP_ENTER(0x47024A8Bu); 7912 7913 L_47024A8B: 7914 ecx = MEM32(esp + 0x44); /* 0x47024A8B: mov ecx, dword ptr [esp + 0x44] */ 7915 edx = MEM32(esp + 0x4C); /* 0x47024A8F: mov edx, dword ptr [esp + 0x4c] */ 7916 PUSH32(esp, ecx); /* 0x47024A93: push ecx */ 7917 PUSH32(esp, edx); /* 0x47024A94: push edx */ 7918 PUSH32(esp, edi); /* 0x47024A95: push edi */ 7919 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024A96: call dword ptr [0x470ac22c] */ 7920 RECOMP_FLAGS_IN(); 7921 eax = MEM32(esp + 0x50); /* 0x47024A9C: mov eax, dword ptr [esp + 0x50] */ 7922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7924 esp = esp + 0xCu; /* 0x47024AA0: add esp, 0xc */ 7925 _flag_k = FK_ADD; 7926 MEM8(eax + edi) = (uint8_t)(0); /* 0x47024AA3: mov byte ptr [eax + edi], 0 */ 7927 MEM32(esp + 0x68) = edi; /* 0x47024AA7: mov dword ptr [esp + 0x68], edi */ 7928 MEM32(esp + 0x18) = ebx; /* 0x47024AAB: mov dword ptr [esp + 0x18], ebx */ 7929 MEM32(esp + 0x1C) = ebx; /* 0x47024AAF: mov dword ptr [esp + 0x1c], ebx */ 7930 eax = MEM32(ebp + 0x8); /* 0x47024AB3: mov eax, dword ptr [ebp + 8] */ 7931 ecx = MEM32(ebp + 0xC); /* 0x47024AB6: mov ecx, dword ptr [ebp + 0xc] */ 7932 edx = esp + 0x18; /* 0x47024AB9: lea edx, [esp + 0x18] */ 7933 MEM32(ecx) = eax; /* 0x47024ABD: mov dword ptr [ecx], eax */ 7934 PUSH32(esp, edx); /* 0x47024ABF: push edx */ 7935 eax = esp + 0x6C; /* 0x47024AC0: lea eax, [esp + 0x6c] */ 7936 PUSH32(esp, eax); /* 0x47024AC4: push eax */ 7937 MEM8(esp + 0x64) = (uint8_t)(3); /* 0x47024AC5: mov byte ptr [esp + 0x64], 3 */ 7938 RECOMP_ICALL(0x47027020u); /* 0x47024ACA: call 0x47027020 */ /* not lifted */ 7939 RECOMP_FLAGS_IN(); 7940 /* test eax, eax */ /* 0x47024ACF: test eax, eax */ 7941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7942 _cf = 0; 7943 _flag_k = FK_TEST; 7944 if (TEST_Z(_flag_a, _flag_b)) goto L_47024AF1; /* 0x47024AD1: je 0x47024af1 */ 7945 L_47024AD3: 7946 PUSH32(esp, ebx); /* 0x47024AD3: push ebx */ 7947 PUSH32(esp, ebx); /* 0x47024AD4: push ebx */ 7948 PUSH32(esp, ebx); /* 0x47024AD5: push ebx */ 7949 ecx = esp + 0x4C; /* 0x47024AD6: lea ecx, [esp + 0x4c] */ 7950 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47024ADA: mov dword ptr [esp + 0x68], 0xffffffff */ 7951 RECOMP_ICALL(0x470802D0u); /* 0x47024AE2: call 0x470802d0 */ /* not lifted */ 7952 RECOMP_FLAGS_IN(); 7953 eax = 0xFFFFFFFEu; /* 0x47024AE7: mov eax, 0xfffffffe */ 7954 goto L_47024D01; /* 0x47024AEC: jmp 0x47024d01 */ 7955 L_47024AF1: 7956 MEM32(esp + 0x10) = esi; /* 0x47024AF1: mov dword ptr [esp + 0x10], esi */ 7957 MEM32(esp + 0x20) = 3; /* 0x47024AF5: mov dword ptr [esp + 0x20], 3 */ 7958 MEM32(esp + 0x24) = ebx; /* 0x47024AFD: mov dword ptr [esp + 0x24], ebx */ 7959 MEM32(esp + 0x28) = ebx; /* 0x47024B01: mov dword ptr [esp + 0x28], ebx */ 7960 eax = MEM32(ebp + 0x8); /* 0x47024B05: mov eax, dword ptr [ebp + 8] */ 7961 ecx = MEM32(esp + 0x18); /* 0x47024B08: mov ecx, dword ptr [esp + 0x18] */ 7962 edx = esp + 0x20; /* 0x47024B0C: lea edx, [esp + 0x20] */ 7963 MEM32(ecx) = eax; /* 0x47024B10: mov dword ptr [ecx], eax */ 7964 PUSH32(esp, edx); /* 0x47024B12: push edx */ 7965 eax = esp + 0x14; /* 0x47024B13: lea eax, [esp + 0x14] */ 7966 PUSH32(esp, eax); /* 0x47024B17: push eax */ 7967 MEM8(esp + 0x64) = (uint8_t)(5); /* 0x47024B18: mov byte ptr [esp + 0x64], 5 */ 7968 RECOMP_ICALL(0x47026250u); /* 0x47024B1D: call 0x47026250 */ /* not lifted */ 7969 RECOMP_FLAGS_IN(); 7970 /* test eax, eax */ /* 0x47024B22: test eax, eax */ 7971 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7972 _cf = 0; 7973 _flag_k = FK_TEST; 7974 if (TEST_Z(_flag_a, _flag_b)) goto L_47024C56; /* 0x47024B24: je 0x47024c56 */ 7975 L_47024B2A: 7976 edx = MEM32(ebp + 0x8); /* 0x47024B2A: mov edx, dword ptr [ebp + 8] */ 7977 ebx = MEM32(edx); /* 0x47024B2D: mov ebx, dword ptr [edx] */ 7978 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7979 ecx = ecx | 0xFFFFFFFFu; /* 0x47024B2F: or ecx, 0xffffffff */ 7980 _cf = 0; 7981 _flag_k = FK_TEST; 7982 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7983 eax = 0; /* 0x47024B32: xor eax, eax */ 7984 _cf = 0; 7985 _flag_k = FK_TEST; 7986 edi = esi; /* 0x47024B34: mov edi, esi */ 7987 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; } /* 0x47024B36: repne scasb al, byte ptr es:[edi] */ 7988 ecx = ~ecx; /* 0x47024B38: not ecx */ 7989 PUSH32(esp, ecx); /* 0x47024B3A: push ecx */ 7990 ecx = edx; /* 0x47024B3B: mov ecx, edx */ 7991 RECOMP_ICALL(MEM32(ebx + 0x4)); /* 0x47024B3D: call dword ptr [ebx + 4] */ 7992 RECOMP_FLAGS_IN(); 7993 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7994 ecx = ecx | 0xFFFFFFFFu; /* 0x47024B40: or ecx, 0xffffffff */ 7995 _cf = 0; 7996 _flag_k = FK_TEST; 7997 ebx = eax; /* 0x47024B43: mov ebx, eax */ 7998 edi = esi; /* 0x47024B45: mov edi, esi */ 7999 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8000 eax = 0; /* 0x47024B47: xor eax, eax */ 8001 _cf = 0; 8002 _flag_k = FK_TEST; 8003 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; } /* 0x47024B49: repne scasb al, byte ptr es:[edi] */ 8004 ecx = ~ecx; /* 0x47024B4B: not ecx */ 8005 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8007 edi = edi - ecx; /* 0x47024B4D: sub edi, ecx */ 8008 _flag_k = FK_CMP; 8009 edx = ecx; /* 0x47024B4F: mov edx, ecx */ 8010 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024B51: shr ecx, 2 */ 8011 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8012 ecx = ecx >> 2u; /* 0x47024B51: shr ecx, 2 */ 8013 esi = edi; /* 0x47024B54: mov esi, edi */ 8014 edi = ebx; /* 0x47024B56: mov edi, ebx */ 8015 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024B58: 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; } 8016 ecx = edx; /* 0x47024B5A: mov ecx, edx */ 8017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8018 ecx = ecx & 3; /* 0x47024B5C: and ecx, 3 */ 8019 _cf = 0; 8020 _flag_k = FK_TEST; 8021 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024B5F: 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; } 8022 esi = MEM32(esp + 0x6C); /* 0x47024B61: mov esi, dword ptr [esp + 0x6c] */ 8023 eax = MEM32(esi + 0x4); /* 0x47024B65: mov eax, dword ptr [esi + 4] */ 8024 ecx = MEM32(ebp + 0x8); /* 0x47024B68: mov ecx, dword ptr [ebp + 8] */ 8025 edx = MEM32(ecx); /* 0x47024B6B: mov edx, dword ptr [ecx] */ 8026 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8027 eax = eax + 1; /* 0x47024B6D: inc eax */ 8028 _flag_k = FK_INC; 8029 PUSH32(esp, eax); /* 0x47024B6E: push eax */ 8030 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47024B6F: call dword ptr [edx + 4] */ 8031 RECOMP_FLAGS_IN(); 8032 MEM32(esp + 0x6C) = eax; /* 0x47024B72: mov dword ptr [esp + 0x6c], eax */ 8033 eax = MEM32(esi + 0x4); /* 0x47024B76: mov eax, dword ptr [esi + 4] */ 8034 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8035 eax = eax + 1; /* 0x47024B79: inc eax */ 8036 _flag_k = FK_INC; 8037 PUSH32(esp, eax); /* 0x47024B7A: push eax */ 8038 RECOMP_ICALL(0x470A33F2u); /* 0x47024B7B: call 0x470a33f2 */ /* not lifted */ 8039 RECOMP_FLAGS_IN(); 8040 edi = eax; /* 0x47024B80: mov edi, eax */ 8041 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8042 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8043 esp = esp + 4; /* 0x47024B82: add esp, 4 */ 8044 _flag_k = FK_ADD; 8045 /* test edi, edi */ /* 0x47024B85: test edi, edi */ 8046 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8047 _cf = 0; 8048 _flag_k = FK_TEST; 8049 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024B97; /* 0x47024B87: jne 0x47024b97 */ 8050 L_47024B89: 8051 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024B89: call dword ptr [0x470ac3c8] */ 8052 RECOMP_FLAGS_IN(); 8053 MEM32(eax) = 0xCu; /* 0x47024B8F: mov dword ptr [eax], 0xc */ 8054 goto L_47024BB0; /* 0x47024B95: jmp 0x47024bb0 */ 8055 L_47024B97: 8056 eax = MEM32(esi + 0x4); /* 0x47024B97: mov eax, dword ptr [esi + 4] */ 8057 ecx = MEM32(esi + 0xC); /* 0x47024B9A: mov ecx, dword ptr [esi + 0xc] */ 8058 PUSH32(esp, eax); /* 0x47024B9D: push eax */ 8059 PUSH32(esp, ecx); /* 0x47024B9E: push ecx */ 8060 PUSH32(esp, edi); /* 0x47024B9F: push edi */ 8061 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024BA0: call dword ptr [0x470ac22c] */ 8062 RECOMP_FLAGS_IN(); 8063 ecx = MEM32(esi + 0x4); /* 0x47024BA6: mov ecx, dword ptr [esi + 4] */ 8064 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8066 esp = esp + 0xCu; /* 0x47024BA9: add esp, 0xc */ 8067 _flag_k = FK_ADD; 8068 MEM8(ecx + edi) = (uint8_t)(0); /* 0x47024BAC: mov byte ptr [ecx + edi], 0 */ 8069 L_47024BB0: 8070 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8071 ecx = ecx | 0xFFFFFFFFu; /* 0x47024BB0: or ecx, 0xffffffff */ 8072 _cf = 0; 8073 _flag_k = FK_TEST; 8074 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8075 eax = 0; /* 0x47024BB3: xor eax, eax */ 8076 _cf = 0; 8077 _flag_k = FK_TEST; 8078 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; } /* 0x47024BB5: repne scasb al, byte ptr es:[edi] */ 8079 eax = MEM32(esp + 0x6C); /* 0x47024BB7: mov eax, dword ptr [esp + 0x6c] */ 8080 ecx = ~ecx; /* 0x47024BBB: not ecx */ 8081 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8083 edi = edi - ecx; /* 0x47024BBD: sub edi, ecx */ 8084 _flag_k = FK_CMP; 8085 edx = ecx; /* 0x47024BBF: mov edx, ecx */ 8086 esi = edi; /* 0x47024BC1: mov esi, edi */ 8087 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024BC3: shr ecx, 2 */ 8088 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8089 ecx = ecx >> 2u; /* 0x47024BC3: shr ecx, 2 */ 8090 edi = eax; /* 0x47024BC6: mov edi, eax */ 8091 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024BC8: 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; } 8092 ecx = edx; /* 0x47024BCA: mov ecx, edx */ 8093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8094 ecx = ecx & 3; /* 0x47024BCC: and ecx, 3 */ 8095 _cf = 0; 8096 _flag_k = FK_TEST; 8097 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024BCF: 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; } 8098 MEM32(esp + 0x64) = ebx; /* 0x47024BD1: mov dword ptr [esp + 0x64], ebx */ 8099 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8100 ecx = 0; /* 0x47024BD5: xor ecx, ecx */ 8101 _cf = 0; 8102 _flag_k = FK_TEST; 8103 MEM32(esp + 0x2C) = ecx; /* 0x47024BD7: mov dword ptr [esp + 0x2c], ecx */ 8104 MEM32(esp + 0x30) = eax; /* 0x47024BDB: mov dword ptr [esp + 0x30], eax */ 8105 MEM32(esp + 0x34) = ecx; /* 0x47024BDF: mov dword ptr [esp + 0x34], ecx */ 8106 eax = MEM32(ebp + 0x8); /* 0x47024BE3: mov eax, dword ptr [ebp + 8] */ 8107 ecx = MEM32(esp + 0x18); /* 0x47024BE6: mov ecx, dword ptr [esp + 0x18] */ 8108 MEM32(ecx) = eax; /* 0x47024BEA: mov dword ptr [ecx], eax */ 8109 eax = esp + 0x14; /* 0x47024BEC: lea eax, [esp + 0x14] */ 8110 PUSH32(esp, eax); /* 0x47024BF0: push eax */ 8111 edx = esp + 0x30; /* 0x47024BF1: lea edx, [esp + 0x30] */ 8112 PUSH32(esp, edx); /* 0x47024BF5: push edx */ 8113 eax = esp + 0x6C; /* 0x47024BF6: lea eax, [esp + 0x6c] */ 8114 PUSH32(esp, eax); /* 0x47024BFA: push eax */ 8115 MEM8(esp + 0x68) = (uint8_t)(7); /* 0x47024BFB: mov byte ptr [esp + 0x68], 7 */ 8116 RECOMP_ICALL(0x47027460u); /* 0x47024C00: call 0x47027460 */ /* not lifted */ 8117 RECOMP_FLAGS_IN(); 8118 /* test eax, eax */ /* 0x47024C05: test eax, eax */ 8119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8120 _cf = 0; 8121 _flag_k = FK_TEST; 8122 if (TEST_Z(_flag_a, _flag_b)) goto L_47024C43; /* 0x47024C07: je 0x47024c43 */ 8123 L_47024C09: 8124 ecx = MEM32(ebp + 0x8); /* 0x47024C09: mov ecx, dword ptr [ebp + 8] */ 8125 eax = MEM32(esp + 0x6C); /* 0x47024C0C: mov eax, dword ptr [esp + 0x6c] */ 8126 edx = MEM32(ecx); /* 0x47024C10: mov edx, dword ptr [ecx] */ 8127 PUSH32(esp, eax); /* 0x47024C12: push eax */ 8128 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024C13: call dword ptr [edx + 0xc] */ 8129 RECOMP_FLAGS_IN(); 8130 ebp = MEM32(ebp + 0x8); /* 0x47024C16: mov ebp, dword ptr [ebp + 8] */ 8131 edx = MEM32(ebp); /* 0x47024C19: mov edx, dword ptr [ebp] */ 8132 PUSH32(esp, ebx); /* 0x47024C1C: push ebx */ 8133 ecx = ebp; /* 0x47024C1D: mov ecx, ebp */ 8134 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024C1F: call dword ptr [edx + 0xc] */ 8135 RECOMP_FLAGS_IN(); 8136 PUSH32(esp, 0); /* 0x47024C22: push 0 */ 8137 PUSH32(esp, 0); /* 0x47024C24: push 0 */ 8138 PUSH32(esp, 0); /* 0x47024C26: push 0 */ 8139 ecx = esp + 0x4C; /* 0x47024C28: lea ecx, [esp + 0x4c] */ 8140 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47024C2C: mov dword ptr [esp + 0x68], 0xffffffff */ 8141 RECOMP_ICALL(0x470802D0u); /* 0x47024C34: call 0x470802d0 */ /* not lifted */ 8142 RECOMP_FLAGS_IN(); 8143 eax = 0xFFFFFFFDu; /* 0x47024C39: mov eax, 0xfffffffd */ 8144 goto L_47024D01; /* 0x47024C3E: jmp 0x47024d01 */ 8145 L_47024C43: 8146 PUSH32(esp, 0); /* 0x47024C43: push 0 */ 8147 PUSH32(esp, 0); /* 0x47024C45: push 0 */ 8148 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024C47: mov dword ptr [esp + 0x64], 0xffffffff */ 8149 PUSH32(esp, 0); /* 0x47024C4F: push 0 */ 8150 goto L_47024CF6; /* 0x47024C51: jmp 0x47024cf6 */ 8151 L_47024C56: 8152 eax = MEM32(esp + 0x20); /* 0x47024C56: mov eax, dword ptr [esp + 0x20] */ 8153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8155 eax = eax - ebx; /* 0x47024C5A: sub eax, ebx */ 8156 _flag_k = FK_CMP; 8157 ecx = MEM32(ebp + 0x8); /* 0x47024C5C: mov ecx, dword ptr [ebp + 8] */ 8158 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47024C66; /* 0x47024C5F: je 0x47024c66 */ 8159 L_47024C61: 8160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8162 eax = eax - 2; /* 0x47024C61: sub eax, 2 */ 8163 _flag_k = FK_CMP; 8164 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_47024C70; /* 0x47024C64: jne 0x47024c70 */ 8165 L_47024C66: 8166 edx = MEM32(esp + 0x24); /* 0x47024C66: mov edx, dword ptr [esp + 0x24] */ 8167 eax = MEM32(ecx); /* 0x47024C6A: mov eax, dword ptr [ecx] */ 8168 PUSH32(esp, edx); /* 0x47024C6C: push edx */ 8169 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47024C6D: call dword ptr [eax + 0xc] */ 8170 RECOMP_FLAGS_IN(); 8171 L_47024C70: 8172 esi = MEM32(esp + 0x6C); /* 0x47024C70: mov esi, dword ptr [esp + 0x6c] */ 8173 eax = MEM32(esi + 0x4); /* 0x47024C74: mov eax, dword ptr [esi + 4] */ 8174 ebp = MEM32(ebp + 0x8); /* 0x47024C77: mov ebp, dword ptr [ebp + 8] */ 8175 edx = MEM32(ebp); /* 0x47024C7A: mov edx, dword ptr [ebp] */ 8176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8177 eax = eax + 1; /* 0x47024C7D: inc eax */ 8178 _flag_k = FK_INC; 8179 PUSH32(esp, eax); /* 0x47024C7E: push eax */ 8180 ecx = ebp; /* 0x47024C7F: mov ecx, ebp */ 8181 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47024C81: call dword ptr [edx + 4] */ 8182 RECOMP_FLAGS_IN(); 8183 ebp = eax; /* 0x47024C84: mov ebp, eax */ 8184 eax = MEM32(esi + 0x4); /* 0x47024C86: mov eax, dword ptr [esi + 4] */ 8185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8186 eax = eax + 1; /* 0x47024C89: inc eax */ 8187 _flag_k = FK_INC; 8188 PUSH32(esp, eax); /* 0x47024C8A: push eax */ 8189 RECOMP_ICALL(0x470A33F2u); /* 0x47024C8B: call 0x470a33f2 */ /* not lifted */ 8190 RECOMP_FLAGS_IN(); 8191 edi = eax; /* 0x47024C90: mov edi, eax */ 8192 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8194 esp = esp + 4; /* 0x47024C92: add esp, 4 */ 8195 _flag_k = FK_ADD; 8196 /* cmp edi, ebx */ /* 0x47024C95: cmp edi, ebx */ 8197 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8199 _flag_k = FK_CMP; 8200 if (CMP_NE(_flag_a, _flag_b)) goto L_47024CA9; /* 0x47024C97: jne 0x47024ca9 */ 8201 L_47024C99: 8202 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024C99: call dword ptr [0x470ac3c8] */ 8203 RECOMP_FLAGS_IN(); 8204 MEM32(eax) = 0xCu; /* 0x47024C9F: mov dword ptr [eax], 0xc */ 8205 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8206 edi = 0; /* 0x47024CA5: xor edi, edi */ 8207 _cf = 0; 8208 _flag_k = FK_TEST; 8209 goto L_47024CC2; /* 0x47024CA7: jmp 0x47024cc2 */ 8210 L_47024CA9: 8211 eax = MEM32(esi + 0x4); /* 0x47024CA9: mov eax, dword ptr [esi + 4] */ 8212 ecx = MEM32(esi + 0xC); /* 0x47024CAC: mov ecx, dword ptr [esi + 0xc] */ 8213 PUSH32(esp, eax); /* 0x47024CAF: push eax */ 8214 PUSH32(esp, ecx); /* 0x47024CB0: push ecx */ 8215 PUSH32(esp, edi); /* 0x47024CB1: push edi */ 8216 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024CB2: call dword ptr [0x470ac22c] */ 8217 RECOMP_FLAGS_IN(); 8218 ecx = MEM32(esi + 0x4); /* 0x47024CB8: mov ecx, dword ptr [esi + 4] */ 8219 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8220 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8221 esp = esp + 0xCu; /* 0x47024CBB: add esp, 0xc */ 8222 _flag_k = FK_ADD; 8223 MEM8(ecx + edi) = (uint8_t)(0); /* 0x47024CBE: mov byte ptr [ecx + edi], 0 */ 8224 L_47024CC2: 8225 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8226 ecx = ecx | 0xFFFFFFFFu; /* 0x47024CC2: or ecx, 0xffffffff */ 8227 _cf = 0; 8228 _flag_k = FK_TEST; 8229 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8230 eax = 0; /* 0x47024CC5: xor eax, eax */ 8231 _cf = 0; 8232 _flag_k = FK_TEST; 8233 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; } /* 0x47024CC7: repne scasb al, byte ptr es:[edi] */ 8234 ecx = ~ecx; /* 0x47024CC9: not ecx */ 8235 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8237 edi = edi - ecx; /* 0x47024CCB: sub edi, ecx */ 8238 _flag_k = FK_CMP; 8239 edx = ecx; /* 0x47024CCD: mov edx, ecx */ 8240 esi = edi; /* 0x47024CCF: mov esi, edi */ 8241 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024CD1: shr ecx, 2 */ 8242 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8243 ecx = ecx >> 2u; /* 0x47024CD1: shr ecx, 2 */ 8244 edi = ebp; /* 0x47024CD4: mov edi, ebp */ 8245 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024CD6: 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; } 8246 ecx = edx; /* 0x47024CD8: mov ecx, edx */ 8247 PUSH32(esp, ebx); /* 0x47024CDA: push ebx */ 8248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8249 ecx = ecx & 3; /* 0x47024CDB: and ecx, 3 */ 8250 _cf = 0; 8251 _flag_k = FK_TEST; 8252 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024CDE: 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; } 8253 PUSH32(esp, ebx); /* 0x47024CE0: push ebx */ 8254 MEM32(esp + 0x28) = ebx; /* 0x47024CE1: mov dword ptr [esp + 0x28], ebx */ 8255 MEM32(esp + 0x2C) = ebp; /* 0x47024CE5: mov dword ptr [esp + 0x2c], ebp */ 8256 MEM32(esp + 0x30) = ebx; /* 0x47024CE9: mov dword ptr [esp + 0x30], ebx */ 8257 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024CED: mov dword ptr [esp + 0x64], 0xffffffff */ 8258 PUSH32(esp, ebx); /* 0x47024CF5: push ebx */ 8259 L_47024CF6: 8260 ecx = esp + 0x4C; /* 0x47024CF6: lea ecx, [esp + 0x4c] */ 8261 RECOMP_ICALL(0x470802D0u); /* 0x47024CFA: call 0x470802d0 */ /* not lifted */ 8262 RECOMP_FLAGS_IN(); 8263 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8264 eax = 0; /* 0x47024CFF: xor eax, eax */ 8265 _cf = 0; 8266 _flag_k = FK_TEST; 8267 L_47024D01: 8268 ecx = MEM32(esp + 0x54); /* 0x47024D01: mov ecx, dword ptr [esp + 0x54] */ 8269 edi = POP32_VAL(esp); /* 0x47024D05: pop edi */ 8270 esi = POP32_VAL(esp); /* 0x47024D06: pop esi */ 8271 ebp = POP32_VAL(esp); /* 0x47024D07: pop ebp */ 8272 ebx = POP32_VAL(esp); /* 0x47024D08: pop ebx */ 8273 MEM32(FS_BASE + (0)) = ecx; /* 0x47024D09: mov dword ptr fs:[0], ecx */ 8274 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 8275 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8276 esp = esp + 0x50u; /* 0x47024D10: add esp, 0x50 */ 8277 _flag_k = FK_ADD; 8278 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024D13: ret 0xc */ 8279 RECOMP_REGS_OUT(); 8280 } 8281 8282 void sub_47024AA7(void) { 8283 int _fpu_cmp = 0; 8284 uint32_t _cf = 0; 8285 int _df = 1; 8286 uint32_t _flag_k = FK_NONE; 8287 uint32_t _flag_a = 0, _flag_b = 0; 8288 uint32_t _itail_tgt = 0; 8289 RECOMP_REGS_LOCALS 8290 RECOMP_ENTER(0x47024AA7u); 8291 8292 L_47024AA7: 8293 MEM32(esp + 0x68) = edi; /* 0x47024AA7: mov dword ptr [esp + 0x68], edi */ 8294 MEM32(esp + 0x18) = ebx; /* 0x47024AAB: mov dword ptr [esp + 0x18], ebx */ 8295 MEM32(esp + 0x1C) = ebx; /* 0x47024AAF: mov dword ptr [esp + 0x1c], ebx */ 8296 eax = MEM32(ebp + 0x8); /* 0x47024AB3: mov eax, dword ptr [ebp + 8] */ 8297 ecx = MEM32(ebp + 0xC); /* 0x47024AB6: mov ecx, dword ptr [ebp + 0xc] */ 8298 edx = esp + 0x18; /* 0x47024AB9: lea edx, [esp + 0x18] */ 8299 MEM32(ecx) = eax; /* 0x47024ABD: mov dword ptr [ecx], eax */ 8300 PUSH32(esp, edx); /* 0x47024ABF: push edx */ 8301 eax = esp + 0x6C; /* 0x47024AC0: lea eax, [esp + 0x6c] */ 8302 PUSH32(esp, eax); /* 0x47024AC4: push eax */ 8303 MEM8(esp + 0x64) = (uint8_t)(3); /* 0x47024AC5: mov byte ptr [esp + 0x64], 3 */ 8304 RECOMP_ICALL(0x47027020u); /* 0x47024ACA: call 0x47027020 */ /* not lifted */ 8305 RECOMP_FLAGS_IN(); 8306 /* test eax, eax */ /* 0x47024ACF: test eax, eax */ 8307 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8308 _cf = 0; 8309 _flag_k = FK_TEST; 8310 if (TEST_Z(_flag_a, _flag_b)) goto L_47024AF1; /* 0x47024AD1: je 0x47024af1 */ 8311 L_47024AD3: 8312 PUSH32(esp, ebx); /* 0x47024AD3: push ebx */ 8313 PUSH32(esp, ebx); /* 0x47024AD4: push ebx */ 8314 PUSH32(esp, ebx); /* 0x47024AD5: push ebx */ 8315 ecx = esp + 0x4C; /* 0x47024AD6: lea ecx, [esp + 0x4c] */ 8316 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47024ADA: mov dword ptr [esp + 0x68], 0xffffffff */ 8317 RECOMP_ICALL(0x470802D0u); /* 0x47024AE2: call 0x470802d0 */ /* not lifted */ 8318 RECOMP_FLAGS_IN(); 8319 eax = 0xFFFFFFFEu; /* 0x47024AE7: mov eax, 0xfffffffe */ 8320 goto L_47024D01; /* 0x47024AEC: jmp 0x47024d01 */ 8321 L_47024AF1: 8322 MEM32(esp + 0x10) = esi; /* 0x47024AF1: mov dword ptr [esp + 0x10], esi */ 8323 MEM32(esp + 0x20) = 3; /* 0x47024AF5: mov dword ptr [esp + 0x20], 3 */ 8324 MEM32(esp + 0x24) = ebx; /* 0x47024AFD: mov dword ptr [esp + 0x24], ebx */ 8325 MEM32(esp + 0x28) = ebx; /* 0x47024B01: mov dword ptr [esp + 0x28], ebx */ 8326 eax = MEM32(ebp + 0x8); /* 0x47024B05: mov eax, dword ptr [ebp + 8] */ 8327 ecx = MEM32(esp + 0x18); /* 0x47024B08: mov ecx, dword ptr [esp + 0x18] */ 8328 edx = esp + 0x20; /* 0x47024B0C: lea edx, [esp + 0x20] */ 8329 MEM32(ecx) = eax; /* 0x47024B10: mov dword ptr [ecx], eax */ 8330 PUSH32(esp, edx); /* 0x47024B12: push edx */ 8331 eax = esp + 0x14; /* 0x47024B13: lea eax, [esp + 0x14] */ 8332 PUSH32(esp, eax); /* 0x47024B17: push eax */ 8333 MEM8(esp + 0x64) = (uint8_t)(5); /* 0x47024B18: mov byte ptr [esp + 0x64], 5 */ 8334 RECOMP_ICALL(0x47026250u); /* 0x47024B1D: call 0x47026250 */ /* not lifted */ 8335 RECOMP_FLAGS_IN(); 8336 /* test eax, eax */ /* 0x47024B22: test eax, eax */ 8337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8338 _cf = 0; 8339 _flag_k = FK_TEST; 8340 if (TEST_Z(_flag_a, _flag_b)) goto L_47024C56; /* 0x47024B24: je 0x47024c56 */ 8341 L_47024B2A: 8342 edx = MEM32(ebp + 0x8); /* 0x47024B2A: mov edx, dword ptr [ebp + 8] */ 8343 ebx = MEM32(edx); /* 0x47024B2D: mov ebx, dword ptr [edx] */ 8344 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8345 ecx = ecx | 0xFFFFFFFFu; /* 0x47024B2F: or ecx, 0xffffffff */ 8346 _cf = 0; 8347 _flag_k = FK_TEST; 8348 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8349 eax = 0; /* 0x47024B32: xor eax, eax */ 8350 _cf = 0; 8351 _flag_k = FK_TEST; 8352 edi = esi; /* 0x47024B34: mov edi, esi */ 8353 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; } /* 0x47024B36: repne scasb al, byte ptr es:[edi] */ 8354 ecx = ~ecx; /* 0x47024B38: not ecx */ 8355 PUSH32(esp, ecx); /* 0x47024B3A: push ecx */ 8356 ecx = edx; /* 0x47024B3B: mov ecx, edx */ 8357 RECOMP_ICALL(MEM32(ebx + 0x4)); /* 0x47024B3D: call dword ptr [ebx + 4] */ 8358 RECOMP_FLAGS_IN(); 8359 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8360 ecx = ecx | 0xFFFFFFFFu; /* 0x47024B40: or ecx, 0xffffffff */ 8361 _cf = 0; 8362 _flag_k = FK_TEST; 8363 ebx = eax; /* 0x47024B43: mov ebx, eax */ 8364 edi = esi; /* 0x47024B45: mov edi, esi */ 8365 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8366 eax = 0; /* 0x47024B47: xor eax, eax */ 8367 _cf = 0; 8368 _flag_k = FK_TEST; 8369 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; } /* 0x47024B49: repne scasb al, byte ptr es:[edi] */ 8370 ecx = ~ecx; /* 0x47024B4B: not ecx */ 8371 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8373 edi = edi - ecx; /* 0x47024B4D: sub edi, ecx */ 8374 _flag_k = FK_CMP; 8375 edx = ecx; /* 0x47024B4F: mov edx, ecx */ 8376 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024B51: shr ecx, 2 */ 8377 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8378 ecx = ecx >> 2u; /* 0x47024B51: shr ecx, 2 */ 8379 esi = edi; /* 0x47024B54: mov esi, edi */ 8380 edi = ebx; /* 0x47024B56: mov edi, ebx */ 8381 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024B58: 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; } 8382 ecx = edx; /* 0x47024B5A: mov ecx, edx */ 8383 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8384 ecx = ecx & 3; /* 0x47024B5C: and ecx, 3 */ 8385 _cf = 0; 8386 _flag_k = FK_TEST; 8387 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024B5F: 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; } 8388 esi = MEM32(esp + 0x6C); /* 0x47024B61: mov esi, dword ptr [esp + 0x6c] */ 8389 eax = MEM32(esi + 0x4); /* 0x47024B65: mov eax, dword ptr [esi + 4] */ 8390 ecx = MEM32(ebp + 0x8); /* 0x47024B68: mov ecx, dword ptr [ebp + 8] */ 8391 edx = MEM32(ecx); /* 0x47024B6B: mov edx, dword ptr [ecx] */ 8392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8393 eax = eax + 1; /* 0x47024B6D: inc eax */ 8394 _flag_k = FK_INC; 8395 PUSH32(esp, eax); /* 0x47024B6E: push eax */ 8396 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47024B6F: call dword ptr [edx + 4] */ 8397 RECOMP_FLAGS_IN(); 8398 MEM32(esp + 0x6C) = eax; /* 0x47024B72: mov dword ptr [esp + 0x6c], eax */ 8399 eax = MEM32(esi + 0x4); /* 0x47024B76: mov eax, dword ptr [esi + 4] */ 8400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8401 eax = eax + 1; /* 0x47024B79: inc eax */ 8402 _flag_k = FK_INC; 8403 PUSH32(esp, eax); /* 0x47024B7A: push eax */ 8404 RECOMP_ICALL(0x470A33F2u); /* 0x47024B7B: call 0x470a33f2 */ /* not lifted */ 8405 RECOMP_FLAGS_IN(); 8406 edi = eax; /* 0x47024B80: mov edi, eax */ 8407 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8408 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8409 esp = esp + 4; /* 0x47024B82: add esp, 4 */ 8410 _flag_k = FK_ADD; 8411 /* test edi, edi */ /* 0x47024B85: test edi, edi */ 8412 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8413 _cf = 0; 8414 _flag_k = FK_TEST; 8415 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024B97; /* 0x47024B87: jne 0x47024b97 */ 8416 L_47024B89: 8417 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024B89: call dword ptr [0x470ac3c8] */ 8418 RECOMP_FLAGS_IN(); 8419 MEM32(eax) = 0xCu; /* 0x47024B8F: mov dword ptr [eax], 0xc */ 8420 goto L_47024BB0; /* 0x47024B95: jmp 0x47024bb0 */ 8421 L_47024B97: 8422 eax = MEM32(esi + 0x4); /* 0x47024B97: mov eax, dword ptr [esi + 4] */ 8423 ecx = MEM32(esi + 0xC); /* 0x47024B9A: mov ecx, dword ptr [esi + 0xc] */ 8424 PUSH32(esp, eax); /* 0x47024B9D: push eax */ 8425 PUSH32(esp, ecx); /* 0x47024B9E: push ecx */ 8426 PUSH32(esp, edi); /* 0x47024B9F: push edi */ 8427 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024BA0: call dword ptr [0x470ac22c] */ 8428 RECOMP_FLAGS_IN(); 8429 ecx = MEM32(esi + 0x4); /* 0x47024BA6: mov ecx, dword ptr [esi + 4] */ 8430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8432 esp = esp + 0xCu; /* 0x47024BA9: add esp, 0xc */ 8433 _flag_k = FK_ADD; 8434 MEM8(ecx + edi) = (uint8_t)(0); /* 0x47024BAC: mov byte ptr [ecx + edi], 0 */ 8435 L_47024BB0: 8436 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8437 ecx = ecx | 0xFFFFFFFFu; /* 0x47024BB0: or ecx, 0xffffffff */ 8438 _cf = 0; 8439 _flag_k = FK_TEST; 8440 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8441 eax = 0; /* 0x47024BB3: xor eax, eax */ 8442 _cf = 0; 8443 _flag_k = FK_TEST; 8444 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; } /* 0x47024BB5: repne scasb al, byte ptr es:[edi] */ 8445 eax = MEM32(esp + 0x6C); /* 0x47024BB7: mov eax, dword ptr [esp + 0x6c] */ 8446 ecx = ~ecx; /* 0x47024BBB: not ecx */ 8447 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8449 edi = edi - ecx; /* 0x47024BBD: sub edi, ecx */ 8450 _flag_k = FK_CMP; 8451 edx = ecx; /* 0x47024BBF: mov edx, ecx */ 8452 esi = edi; /* 0x47024BC1: mov esi, edi */ 8453 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024BC3: shr ecx, 2 */ 8454 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8455 ecx = ecx >> 2u; /* 0x47024BC3: shr ecx, 2 */ 8456 edi = eax; /* 0x47024BC6: mov edi, eax */ 8457 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024BC8: 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; } 8458 ecx = edx; /* 0x47024BCA: mov ecx, edx */ 8459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8460 ecx = ecx & 3; /* 0x47024BCC: and ecx, 3 */ 8461 _cf = 0; 8462 _flag_k = FK_TEST; 8463 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024BCF: 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; } 8464 MEM32(esp + 0x64) = ebx; /* 0x47024BD1: mov dword ptr [esp + 0x64], ebx */ 8465 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8466 ecx = 0; /* 0x47024BD5: xor ecx, ecx */ 8467 _cf = 0; 8468 _flag_k = FK_TEST; 8469 MEM32(esp + 0x2C) = ecx; /* 0x47024BD7: mov dword ptr [esp + 0x2c], ecx */ 8470 MEM32(esp + 0x30) = eax; /* 0x47024BDB: mov dword ptr [esp + 0x30], eax */ 8471 MEM32(esp + 0x34) = ecx; /* 0x47024BDF: mov dword ptr [esp + 0x34], ecx */ 8472 eax = MEM32(ebp + 0x8); /* 0x47024BE3: mov eax, dword ptr [ebp + 8] */ 8473 ecx = MEM32(esp + 0x18); /* 0x47024BE6: mov ecx, dword ptr [esp + 0x18] */ 8474 MEM32(ecx) = eax; /* 0x47024BEA: mov dword ptr [ecx], eax */ 8475 eax = esp + 0x14; /* 0x47024BEC: lea eax, [esp + 0x14] */ 8476 PUSH32(esp, eax); /* 0x47024BF0: push eax */ 8477 edx = esp + 0x30; /* 0x47024BF1: lea edx, [esp + 0x30] */ 8478 PUSH32(esp, edx); /* 0x47024BF5: push edx */ 8479 eax = esp + 0x6C; /* 0x47024BF6: lea eax, [esp + 0x6c] */ 8480 PUSH32(esp, eax); /* 0x47024BFA: push eax */ 8481 MEM8(esp + 0x68) = (uint8_t)(7); /* 0x47024BFB: mov byte ptr [esp + 0x68], 7 */ 8482 RECOMP_ICALL(0x47027460u); /* 0x47024C00: call 0x47027460 */ /* not lifted */ 8483 RECOMP_FLAGS_IN(); 8484 /* test eax, eax */ /* 0x47024C05: test eax, eax */ 8485 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8486 _cf = 0; 8487 _flag_k = FK_TEST; 8488 if (TEST_Z(_flag_a, _flag_b)) goto L_47024C43; /* 0x47024C07: je 0x47024c43 */ 8489 L_47024C09: 8490 ecx = MEM32(ebp + 0x8); /* 0x47024C09: mov ecx, dword ptr [ebp + 8] */ 8491 eax = MEM32(esp + 0x6C); /* 0x47024C0C: mov eax, dword ptr [esp + 0x6c] */ 8492 edx = MEM32(ecx); /* 0x47024C10: mov edx, dword ptr [ecx] */ 8493 PUSH32(esp, eax); /* 0x47024C12: push eax */ 8494 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024C13: call dword ptr [edx + 0xc] */ 8495 RECOMP_FLAGS_IN(); 8496 ebp = MEM32(ebp + 0x8); /* 0x47024C16: mov ebp, dword ptr [ebp + 8] */ 8497 edx = MEM32(ebp); /* 0x47024C19: mov edx, dword ptr [ebp] */ 8498 PUSH32(esp, ebx); /* 0x47024C1C: push ebx */ 8499 ecx = ebp; /* 0x47024C1D: mov ecx, ebp */ 8500 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47024C1F: call dword ptr [edx + 0xc] */ 8501 RECOMP_FLAGS_IN(); 8502 PUSH32(esp, 0); /* 0x47024C22: push 0 */ 8503 PUSH32(esp, 0); /* 0x47024C24: push 0 */ 8504 PUSH32(esp, 0); /* 0x47024C26: push 0 */ 8505 ecx = esp + 0x4C; /* 0x47024C28: lea ecx, [esp + 0x4c] */ 8506 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47024C2C: mov dword ptr [esp + 0x68], 0xffffffff */ 8507 RECOMP_ICALL(0x470802D0u); /* 0x47024C34: call 0x470802d0 */ /* not lifted */ 8508 RECOMP_FLAGS_IN(); 8509 eax = 0xFFFFFFFDu; /* 0x47024C39: mov eax, 0xfffffffd */ 8510 goto L_47024D01; /* 0x47024C3E: jmp 0x47024d01 */ 8511 L_47024C43: 8512 PUSH32(esp, 0); /* 0x47024C43: push 0 */ 8513 PUSH32(esp, 0); /* 0x47024C45: push 0 */ 8514 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024C47: mov dword ptr [esp + 0x64], 0xffffffff */ 8515 PUSH32(esp, 0); /* 0x47024C4F: push 0 */ 8516 goto L_47024CF6; /* 0x47024C51: jmp 0x47024cf6 */ 8517 L_47024C56: 8518 eax = MEM32(esp + 0x20); /* 0x47024C56: mov eax, dword ptr [esp + 0x20] */ 8519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 8520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8521 eax = eax - ebx; /* 0x47024C5A: sub eax, ebx */ 8522 _flag_k = FK_CMP; 8523 ecx = MEM32(ebp + 0x8); /* 0x47024C5C: mov ecx, dword ptr [ebp + 8] */ 8524 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47024C66; /* 0x47024C5F: je 0x47024c66 */ 8525 L_47024C61: 8526 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8528 eax = eax - 2; /* 0x47024C61: sub eax, 2 */ 8529 _flag_k = FK_CMP; 8530 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_47024C70; /* 0x47024C64: jne 0x47024c70 */ 8531 L_47024C66: 8532 edx = MEM32(esp + 0x24); /* 0x47024C66: mov edx, dword ptr [esp + 0x24] */ 8533 eax = MEM32(ecx); /* 0x47024C6A: mov eax, dword ptr [ecx] */ 8534 PUSH32(esp, edx); /* 0x47024C6C: push edx */ 8535 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47024C6D: call dword ptr [eax + 0xc] */ 8536 RECOMP_FLAGS_IN(); 8537 L_47024C70: 8538 esi = MEM32(esp + 0x6C); /* 0x47024C70: mov esi, dword ptr [esp + 0x6c] */ 8539 eax = MEM32(esi + 0x4); /* 0x47024C74: mov eax, dword ptr [esi + 4] */ 8540 ebp = MEM32(ebp + 0x8); /* 0x47024C77: mov ebp, dword ptr [ebp + 8] */ 8541 edx = MEM32(ebp); /* 0x47024C7A: mov edx, dword ptr [ebp] */ 8542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8543 eax = eax + 1; /* 0x47024C7D: inc eax */ 8544 _flag_k = FK_INC; 8545 PUSH32(esp, eax); /* 0x47024C7E: push eax */ 8546 ecx = ebp; /* 0x47024C7F: mov ecx, ebp */ 8547 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47024C81: call dword ptr [edx + 4] */ 8548 RECOMP_FLAGS_IN(); 8549 ebp = eax; /* 0x47024C84: mov ebp, eax */ 8550 eax = MEM32(esi + 0x4); /* 0x47024C86: mov eax, dword ptr [esi + 4] */ 8551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8552 eax = eax + 1; /* 0x47024C89: inc eax */ 8553 _flag_k = FK_INC; 8554 PUSH32(esp, eax); /* 0x47024C8A: push eax */ 8555 RECOMP_ICALL(0x470A33F2u); /* 0x47024C8B: call 0x470a33f2 */ /* not lifted */ 8556 RECOMP_FLAGS_IN(); 8557 edi = eax; /* 0x47024C90: mov edi, eax */ 8558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8560 esp = esp + 4; /* 0x47024C92: add esp, 4 */ 8561 _flag_k = FK_ADD; 8562 /* cmp edi, ebx */ /* 0x47024C95: cmp edi, ebx */ 8563 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 8564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8565 _flag_k = FK_CMP; 8566 if (CMP_NE(_flag_a, _flag_b)) goto L_47024CA9; /* 0x47024C97: jne 0x47024ca9 */ 8567 L_47024C99: 8568 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024C99: call dword ptr [0x470ac3c8] */ 8569 RECOMP_FLAGS_IN(); 8570 MEM32(eax) = 0xCu; /* 0x47024C9F: mov dword ptr [eax], 0xc */ 8571 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8572 edi = 0; /* 0x47024CA5: xor edi, edi */ 8573 _cf = 0; 8574 _flag_k = FK_TEST; 8575 goto L_47024CC2; /* 0x47024CA7: jmp 0x47024cc2 */ 8576 L_47024CA9: 8577 eax = MEM32(esi + 0x4); /* 0x47024CA9: mov eax, dword ptr [esi + 4] */ 8578 ecx = MEM32(esi + 0xC); /* 0x47024CAC: mov ecx, dword ptr [esi + 0xc] */ 8579 PUSH32(esp, eax); /* 0x47024CAF: push eax */ 8580 PUSH32(esp, ecx); /* 0x47024CB0: push ecx */ 8581 PUSH32(esp, edi); /* 0x47024CB1: push edi */ 8582 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024CB2: call dword ptr [0x470ac22c] */ 8583 RECOMP_FLAGS_IN(); 8584 ecx = MEM32(esi + 0x4); /* 0x47024CB8: mov ecx, dword ptr [esi + 4] */ 8585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8587 esp = esp + 0xCu; /* 0x47024CBB: add esp, 0xc */ 8588 _flag_k = FK_ADD; 8589 MEM8(ecx + edi) = (uint8_t)(0); /* 0x47024CBE: mov byte ptr [ecx + edi], 0 */ 8590 L_47024CC2: 8591 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8592 ecx = ecx | 0xFFFFFFFFu; /* 0x47024CC2: or ecx, 0xffffffff */ 8593 _cf = 0; 8594 _flag_k = FK_TEST; 8595 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8596 eax = 0; /* 0x47024CC5: xor eax, eax */ 8597 _cf = 0; 8598 _flag_k = FK_TEST; 8599 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; } /* 0x47024CC7: repne scasb al, byte ptr es:[edi] */ 8600 ecx = ~ecx; /* 0x47024CC9: not ecx */ 8601 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8603 edi = edi - ecx; /* 0x47024CCB: sub edi, ecx */ 8604 _flag_k = FK_CMP; 8605 edx = ecx; /* 0x47024CCD: mov edx, ecx */ 8606 esi = edi; /* 0x47024CCF: mov esi, edi */ 8607 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024CD1: shr ecx, 2 */ 8608 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8609 ecx = ecx >> 2u; /* 0x47024CD1: shr ecx, 2 */ 8610 edi = ebp; /* 0x47024CD4: mov edi, ebp */ 8611 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024CD6: 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; } 8612 ecx = edx; /* 0x47024CD8: mov ecx, edx */ 8613 PUSH32(esp, ebx); /* 0x47024CDA: push ebx */ 8614 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8615 ecx = ecx & 3; /* 0x47024CDB: and ecx, 3 */ 8616 _cf = 0; 8617 _flag_k = FK_TEST; 8618 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024CDE: 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; } 8619 PUSH32(esp, ebx); /* 0x47024CE0: push ebx */ 8620 MEM32(esp + 0x28) = ebx; /* 0x47024CE1: mov dword ptr [esp + 0x28], ebx */ 8621 MEM32(esp + 0x2C) = ebp; /* 0x47024CE5: mov dword ptr [esp + 0x2c], ebp */ 8622 MEM32(esp + 0x30) = ebx; /* 0x47024CE9: mov dword ptr [esp + 0x30], ebx */ 8623 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024CED: mov dword ptr [esp + 0x64], 0xffffffff */ 8624 PUSH32(esp, ebx); /* 0x47024CF5: push ebx */ 8625 L_47024CF6: 8626 ecx = esp + 0x4C; /* 0x47024CF6: lea ecx, [esp + 0x4c] */ 8627 RECOMP_ICALL(0x470802D0u); /* 0x47024CFA: call 0x470802d0 */ /* not lifted */ 8628 RECOMP_FLAGS_IN(); 8629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8630 eax = 0; /* 0x47024CFF: xor eax, eax */ 8631 _cf = 0; 8632 _flag_k = FK_TEST; 8633 L_47024D01: 8634 ecx = MEM32(esp + 0x54); /* 0x47024D01: mov ecx, dword ptr [esp + 0x54] */ 8635 edi = POP32_VAL(esp); /* 0x47024D05: pop edi */ 8636 esi = POP32_VAL(esp); /* 0x47024D06: pop esi */ 8637 ebp = POP32_VAL(esp); /* 0x47024D07: pop ebp */ 8638 ebx = POP32_VAL(esp); /* 0x47024D08: pop ebx */ 8639 MEM32(FS_BASE + (0)) = ecx; /* 0x47024D09: mov dword ptr fs:[0], ecx */ 8640 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 8641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8642 esp = esp + 0x50u; /* 0x47024D10: add esp, 0x50 */ 8643 _flag_k = FK_ADD; 8644 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024D13: ret 0xc */ 8645 RECOMP_REGS_OUT(); 8646 } 8647 8648 void sub_47024CF6(void) { 8649 int _fpu_cmp = 0; 8650 uint32_t _cf = 0; 8651 int _df = 1; 8652 uint32_t _flag_k = FK_NONE; 8653 uint32_t _flag_a = 0, _flag_b = 0; 8654 uint32_t _itail_tgt = 0; 8655 RECOMP_REGS_LOCALS 8656 RECOMP_ENTER(0x47024CF6u); 8657 8658 L_47024CF6: 8659 ecx = esp + 0x4C; /* 0x47024CF6: lea ecx, [esp + 0x4c] */ 8660 RECOMP_ICALL(0x470802D0u); /* 0x47024CFA: call 0x470802d0 */ /* not lifted */ 8661 RECOMP_FLAGS_IN(); 8662 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8663 eax = 0; /* 0x47024CFF: xor eax, eax */ 8664 _cf = 0; 8665 _flag_k = FK_TEST; 8666 ecx = MEM32(esp + 0x54); /* 0x47024D01: mov ecx, dword ptr [esp + 0x54] */ 8667 edi = POP32_VAL(esp); /* 0x47024D05: pop edi */ 8668 esi = POP32_VAL(esp); /* 0x47024D06: pop esi */ 8669 ebp = POP32_VAL(esp); /* 0x47024D07: pop ebp */ 8670 ebx = POP32_VAL(esp); /* 0x47024D08: pop ebx */ 8671 MEM32(FS_BASE + (0)) = ecx; /* 0x47024D09: mov dword ptr fs:[0], ecx */ 8672 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 8673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8674 esp = esp + 0x50u; /* 0x47024D10: add esp, 0x50 */ 8675 _flag_k = FK_ADD; 8676 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024D13: ret 0xc */ 8677 RECOMP_REGS_OUT(); 8678 } 8679 8680 void sub_47024D01(void) { 8681 int _fpu_cmp = 0; 8682 uint32_t _cf = 0; 8683 int _df = 1; 8684 uint32_t _flag_k = FK_NONE; 8685 uint32_t _flag_a = 0, _flag_b = 0; 8686 uint32_t _itail_tgt = 0; 8687 RECOMP_REGS_LOCALS 8688 RECOMP_ENTER(0x47024D01u); 8689 8690 L_47024D01: 8691 ecx = MEM32(esp + 0x54); /* 0x47024D01: mov ecx, dword ptr [esp + 0x54] */ 8692 edi = POP32_VAL(esp); /* 0x47024D05: pop edi */ 8693 esi = POP32_VAL(esp); /* 0x47024D06: pop esi */ 8694 ebp = POP32_VAL(esp); /* 0x47024D07: pop ebp */ 8695 ebx = POP32_VAL(esp); /* 0x47024D08: pop ebx */ 8696 MEM32(FS_BASE + (0)) = ecx; /* 0x47024D09: mov dword ptr fs:[0], ecx */ 8697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 8698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8699 esp = esp + 0x50u; /* 0x47024D10: add esp, 0x50 */ 8700 _flag_k = FK_ADD; 8701 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024D13: ret 0xc */ 8702 RECOMP_REGS_OUT(); 8703 } 8704 8705 void sub_47024D20(void) { 8706 int _fpu_cmp = 0; 8707 uint32_t _cf = 0; 8708 int _df = 1; 8709 uint32_t _flag_k = FK_NONE; 8710 uint32_t _flag_a = 0, _flag_b = 0; 8711 uint32_t _itail_tgt = 0; 8712 RECOMP_REGS_LOCALS 8713 RECOMP_ENTER(0x47024D20u); 8714 8715 L_47024D20: 8716 eax = MEM32(FS_BASE + (0)); /* 0x47024D20: mov eax, dword ptr fs:[0] */ 8717 PUSH32(esp, 0xFFFFFFFFu); /* 0x47024D26: push -1 */ 8718 PUSH32(esp, 0x470A4AC0u); /* 0x47024D28: push 0x470a4ac0 */ 8719 PUSH32(esp, eax); /* 0x47024D2D: push eax */ 8720 MEM32(FS_BASE + (0)) = esp; /* 0x47024D2E: mov dword ptr fs:[0], esp */ 8721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x40u); 8722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8723 esp = esp - 0x40u; /* 0x47024D35: sub esp, 0x40 */ 8724 _flag_k = FK_CMP; 8725 PUSH32(esp, ebx); /* 0x47024D38: push ebx */ 8726 ebx = MEM32(esp + 0x58); /* 0x47024D39: mov ebx, dword ptr [esp + 0x58] */ 8727 /* cmp MEM8(ebx), 0 */ /* 0x47024D3D: cmp byte ptr [ebx], 0 */ 8728 _flag_a = (uint32_t)(MEM8(ebx)) << 24; _flag_b = (uint32_t)(0) << 24; 8729 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8730 _flag_k = FK_NARROW(FK_CMP, 24); 8731 PUSH32(esp, ebp); /* 0x47024D40: push ebp */ 8732 PUSH32(esp, esi); /* 0x47024D41: push esi */ 8733 PUSH32(esp, edi); /* 0x47024D42: push edi */ 8734 ebp = ecx; /* 0x47024D43: mov ebp, ecx */ 8735 esi = ebx; /* 0x47024D45: mov esi, ebx */ 8736 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024D69; /* 0x47024D47: je 0x47024d69 */ 8737 L_47024D49: 8738 edi = MEM32(0x470AC380); /* 0x47024D49: mov edi, dword ptr [0x470ac380] */ 8739 L_47024D4F: 8740 eax = (int32_t)(int8_t)MEM8(esi); /* 0x47024D4F: movsx eax, byte ptr [esi] */ 8741 PUSH32(esp, eax); /* 0x47024D52: push eax */ 8742 PUSH32(esp, 0x47105AACu); /* 0x47024D53: push 0x47105aac */ 8743 RECOMP_ICALL(edi); /* 0x47024D58: call edi */ 8744 RECOMP_FLAGS_IN(); 8745 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8746 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8747 esp = esp + 8; /* 0x47024D5A: add esp, 8 */ 8748 _flag_k = FK_ADD; 8749 /* test eax, eax */ /* 0x47024D5D: test eax, eax */ 8750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8751 _cf = 0; 8752 _flag_k = FK_TEST; 8753 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024D73; /* 0x47024D5F: jne 0x47024d73 */ 8754 L_47024D61: 8755 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x47024D61: mov al, byte ptr [esi + 1] */ 8756 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 8757 esi = esi + 1; /* 0x47024D64: inc esi */ 8758 _flag_k = FK_INC; 8759 /* test LO8(eax), LO8(eax) */ /* 0x47024D65: test al, al */ 8760 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8761 _cf = 0; 8762 _flag_k = FK_NARROW(FK_TEST, 24); 8763 RECOMP_BACKEDGE(); 8764 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024D4F; /* 0x47024D67: jne 0x47024d4f */ 8765 L_47024D69: 8766 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8768 esi = esi - ebx; /* 0x47024D69: sub esi, ebx */ 8769 _flag_k = FK_CMP; 8770 /* cmp esi, 0xFFu */ /* 0x47024D6B: cmp esi, 0xff */ 8771 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 8772 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8773 _flag_k = FK_CMP; 8774 if (CMP_LE(_flag_a, _flag_b)) goto L_47024D7B; /* 0x47024D71: jle 0x47024d7b */ 8775 L_47024D73: 8776 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8777 eax = eax | 0xFFFFFFFFu; /* 0x47024D73: or eax, 0xffffffff */ 8778 _cf = 0; 8779 _flag_k = FK_TEST; 8780 goto L_47024F7C; /* 0x47024D76: jmp 0x47024f7c */ 8781 L_47024D7B: 8782 RECOMP_ICALL(0x4703DAC0u); /* 0x47024D7B: call 0x4703dac0 */ /* not lifted */ 8783 RECOMP_FLAGS_IN(); 8784 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8785 edi = 0; /* 0x47024D80: xor edi, edi */ 8786 _cf = 0; 8787 _flag_k = FK_TEST; 8788 MEM32(esp + 0x3C) = eax; /* 0x47024D82: mov dword ptr [esp + 0x3c], eax */ 8789 MEM32(esp + 0x40) = edi; /* 0x47024D86: mov dword ptr [esp + 0x40], edi */ 8790 MEM32(esp + 0x44) = edi; /* 0x47024D8A: mov dword ptr [esp + 0x44], edi */ 8791 MEM32(esp + 0x48) = 0x4710F078u; /* 0x47024D8E: mov dword ptr [esp + 0x48], 0x4710f078 */ 8792 MEM32(esp + 0x4C) = edi; /* 0x47024D96: mov dword ptr [esp + 0x4c], edi */ 8793 eax = MEM32(esp + 0x60); /* 0x47024D9A: mov eax, dword ptr [esp + 0x60] */ 8794 eax = MEM32(eax); /* 0x47024D9E: mov eax, dword ptr [eax] */ 8795 /* cmp eax, edi */ /* 0x47024DA0: cmp eax, edi */ 8796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8798 _flag_k = FK_CMP; 8799 MEM32(esp + 0x58) = edi; /* 0x47024DA2: mov dword ptr [esp + 0x58], edi */ 8800 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024E00; /* 0x47024DA6: je 0x47024e00 */ 8801 L_47024DA8: 8802 ecx = MEM32(eax + 0x8); /* 0x47024DA8: mov ecx, dword ptr [eax + 8] */ 8803 PUSH32(esp, 1); /* 0x47024DAB: push 1 */ 8804 PUSH32(esp, edi); /* 0x47024DAD: push edi */ 8805 PUSH32(esp, ecx); /* 0x47024DAE: push ecx */ 8806 ecx = esp + 0x34; /* 0x47024DAF: lea ecx, [esp + 0x34] */ 8807 RECOMP_ICALL(0x47007130u); /* 0x47024DB3: call 0x47007130 */ /* not lifted */ 8808 RECOMP_FLAGS_IN(); 8809 edx = esp + 0x28; /* 0x47024DB8: lea edx, [esp + 0x28] */ 8810 PUSH32(esp, edx); /* 0x47024DBC: push edx */ 8811 ecx = esp + 0x40; /* 0x47024DBD: lea ecx, [esp + 0x40] */ 8812 MEM8(esp + 0x5C) = (uint8_t)(1); /* 0x47024DC1: mov byte ptr [esp + 0x5c], 1 */ 8813 RECOMP_ICALL(0x47007250u); /* 0x47024DC6: call 0x47007250 */ /* not lifted */ 8814 RECOMP_FLAGS_IN(); 8815 PUSH32(esp, edi); /* 0x47024DCB: push edi */ 8816 PUSH32(esp, edi); /* 0x47024DCC: push edi */ 8817 PUSH32(esp, edi); /* 0x47024DCD: push edi */ 8818 ecx = esp + 0x34; /* 0x47024DCE: lea ecx, [esp + 0x34] */ 8819 MEM8(esp + 0x64) = (uint8_t)(0); /* 0x47024DD2: mov byte ptr [esp + 0x64], 0 */ 8820 RECOMP_ICALL(0x470802D0u); /* 0x47024DD7: call 0x470802d0 */ /* not lifted */ 8821 RECOMP_FLAGS_IN(); 8822 eax = MEM32(esp + 0x40); /* 0x47024DDC: mov eax, dword ptr [esp + 0x40] */ 8823 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8824 eax = eax + 1; /* 0x47024DE0: inc eax */ 8825 _flag_k = FK_INC; 8826 PUSH32(esp, eax); /* 0x47024DE1: push eax */ 8827 RECOMP_ICALL(0x470A33F2u); /* 0x47024DE2: call 0x470a33f2 */ /* not lifted */ 8828 RECOMP_FLAGS_IN(); 8829 esi = eax; /* 0x47024DE7: mov esi, eax */ 8830 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8831 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8832 esp = esp + 4; /* 0x47024DE9: add esp, 4 */ 8833 _flag_k = FK_ADD; 8834 /* cmp esi, edi */ /* 0x47024DEC: cmp esi, edi */ 8835 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 8836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8837 _flag_k = FK_CMP; 8838 if (CMP_NE(_flag_a, _flag_b)) goto L_47024E1C; /* 0x47024DEE: jne 0x47024e1c */ 8839 L_47024DF0: 8840 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47024DF0: call dword ptr [0x470ac3c8] */ 8841 RECOMP_FLAGS_IN(); 8842 MEM32(eax) = 0xCu; /* 0x47024DF6: mov dword ptr [eax], 0xc */ 8843 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8844 esi = 0; /* 0x47024DFC: xor esi, esi */ 8845 _cf = 0; 8846 _flag_k = FK_TEST; 8847 goto L_47024E38; /* 0x47024DFE: jmp 0x47024e38 */ 8848 L_47024E00: 8849 PUSH32(esp, edi); /* 0x47024E00: push edi */ 8850 PUSH32(esp, edi); /* 0x47024E01: push edi */ 8851 PUSH32(esp, edi); /* 0x47024E02: push edi */ 8852 ecx = esp + 0x48; /* 0x47024E03: lea ecx, [esp + 0x48] */ 8853 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024E07: mov dword ptr [esp + 0x64], 0xffffffff */ 8854 RECOMP_ICALL(0x470802D0u); /* 0x47024E0F: call 0x470802d0 */ /* not lifted */ 8855 RECOMP_FLAGS_IN(); 8856 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 8857 eax = eax | 0xFFFFFFFFu; /* 0x47024E14: or eax, 0xffffffff */ 8858 _cf = 0; 8859 _flag_k = FK_TEST; 8860 goto L_47024F7C; /* 0x47024E17: jmp 0x47024f7c */ 8861 L_47024E1C: 8862 ecx = MEM32(esp + 0x40); /* 0x47024E1C: mov ecx, dword ptr [esp + 0x40] */ 8863 edx = MEM32(esp + 0x48); /* 0x47024E20: mov edx, dword ptr [esp + 0x48] */ 8864 PUSH32(esp, ecx); /* 0x47024E24: push ecx */ 8865 PUSH32(esp, edx); /* 0x47024E25: push edx */ 8866 PUSH32(esp, esi); /* 0x47024E26: push esi */ 8867 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47024E27: call dword ptr [0x470ac22c] */ 8868 RECOMP_FLAGS_IN(); 8869 eax = MEM32(esp + 0x4C); /* 0x47024E2D: mov eax, dword ptr [esp + 0x4c] */ 8870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 8871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8872 esp = esp + 0xCu; /* 0x47024E31: add esp, 0xc */ 8873 _flag_k = FK_ADD; 8874 MEM8(eax + esi) = (uint8_t)(0); /* 0x47024E34: mov byte ptr [eax + esi], 0 */ 8875 L_47024E38: 8876 MEM32(esp + 0x64) = esi; /* 0x47024E38: mov dword ptr [esp + 0x64], esi */ 8877 MEM32(esp + 0x14) = edi; /* 0x47024E3C: mov dword ptr [esp + 0x14], edi */ 8878 MEM32(esp + 0x18) = edi; /* 0x47024E40: mov dword ptr [esp + 0x18], edi */ 8879 eax = MEM32(ebp + 0x8); /* 0x47024E44: mov eax, dword ptr [ebp + 8] */ 8880 ecx = MEM32(ebp + 0xC); /* 0x47024E47: mov ecx, dword ptr [ebp + 0xc] */ 8881 edx = esp + 0x14; /* 0x47024E4A: lea edx, [esp + 0x14] */ 8882 MEM32(ecx) = eax; /* 0x47024E4E: mov dword ptr [ecx], eax */ 8883 PUSH32(esp, edx); /* 0x47024E50: push edx */ 8884 eax = esp + 0x68; /* 0x47024E51: lea eax, [esp + 0x68] */ 8885 PUSH32(esp, eax); /* 0x47024E55: push eax */ 8886 MEM8(esp + 0x60) = (uint8_t)(3); /* 0x47024E56: mov byte ptr [esp + 0x60], 3 */ 8887 RECOMP_ICALL(0x47027020u); /* 0x47024E5B: call 0x47027020 */ /* not lifted */ 8888 RECOMP_FLAGS_IN(); 8889 /* test eax, eax */ /* 0x47024E60: test eax, eax */ 8890 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8891 _cf = 0; 8892 _flag_k = FK_TEST; 8893 if (TEST_Z(_flag_a, _flag_b)) goto L_47024E82; /* 0x47024E62: je 0x47024e82 */ 8894 L_47024E64: 8895 PUSH32(esp, edi); /* 0x47024E64: push edi */ 8896 PUSH32(esp, edi); /* 0x47024E65: push edi */ 8897 PUSH32(esp, edi); /* 0x47024E66: push edi */ 8898 ecx = esp + 0x48; /* 0x47024E67: lea ecx, [esp + 0x48] */ 8899 MEM32(esp + 0x64) = 0xFFFFFFFFu; /* 0x47024E6B: mov dword ptr [esp + 0x64], 0xffffffff */ 8900 RECOMP_ICALL(0x470802D0u); /* 0x47024E73: call 0x470802d0 */ /* not lifted */ 8901 RECOMP_FLAGS_IN(); 8902 eax = 0xFFFFFFFEu; /* 0x47024E78: mov eax, 0xfffffffe */ 8903 goto L_47024F7C; /* 0x47024E7D: jmp 0x47024f7c */ 8904 L_47024E82: 8905 MEM32(esp + 0x10) = ebx; /* 0x47024E82: mov dword ptr [esp + 0x10], ebx */ 8906 MEM32(esp + 0x1C) = 3; /* 0x47024E86: mov dword ptr [esp + 0x1c], 3 */ 8907 MEM32(esp + 0x20) = edi; /* 0x47024E8E: mov dword ptr [esp + 0x20], edi */ 8908 MEM32(esp + 0x24) = edi; /* 0x47024E92: mov dword ptr [esp + 0x24], edi */ 8909 eax = MEM32(ebp + 0x8); /* 0x47024E96: mov eax, dword ptr [ebp + 8] */ 8910 ecx = MEM32(esp + 0x14); /* 0x47024E99: mov ecx, dword ptr [esp + 0x14] */ 8911 edx = esp + 0x1C; /* 0x47024E9D: lea edx, [esp + 0x1c] */ 8912 MEM32(ecx) = eax; /* 0x47024EA1: mov dword ptr [ecx], eax */ 8913 PUSH32(esp, edx); /* 0x47024EA3: push edx */ 8914 eax = esp + 0x14; /* 0x47024EA4: lea eax, [esp + 0x14] */ 8915 PUSH32(esp, eax); /* 0x47024EA8: push eax */ 8916 MEM8(esp + 0x60) = (uint8_t)(5); /* 0x47024EA9: mov byte ptr [esp + 0x60], 5 */ 8917 RECOMP_ICALL(0x47026250u); /* 0x47024EAE: call 0x47026250 */ /* not lifted */ 8918 RECOMP_FLAGS_IN(); 8919 /* test eax, eax */ /* 0x47024EB3: test eax, eax */ 8920 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8921 _cf = 0; 8922 _flag_k = FK_TEST; 8923 if (TEST_Z(_flag_a, _flag_b)) goto L_47024F52; /* 0x47024EB5: je 0x47024f52 */ 8924 L_47024EBB: 8925 edx = MEM32(ebp + 0x8); /* 0x47024EBB: mov edx, dword ptr [ebp + 8] */ 8926 esi = MEM32(edx); /* 0x47024EBE: mov esi, dword ptr [edx] */ 8927 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8928 ecx = ecx | 0xFFFFFFFFu; /* 0x47024EC0: or ecx, 0xffffffff */ 8929 _cf = 0; 8930 _flag_k = FK_TEST; 8931 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8932 eax = 0; /* 0x47024EC3: xor eax, eax */ 8933 _cf = 0; 8934 _flag_k = FK_TEST; 8935 edi = ebx; /* 0x47024EC5: mov edi, ebx */ 8936 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; } /* 0x47024EC7: repne scasb al, byte ptr es:[edi] */ 8937 ecx = ~ecx; /* 0x47024EC9: not ecx */ 8938 PUSH32(esp, ecx); /* 0x47024ECB: push ecx */ 8939 ecx = edx; /* 0x47024ECC: mov ecx, edx */ 8940 RECOMP_ICALL(MEM32(esi + 0x4)); /* 0x47024ECE: call dword ptr [esi + 4] */ 8941 RECOMP_FLAGS_IN(); 8942 edx = eax; /* 0x47024ED1: mov edx, eax */ 8943 edi = ebx; /* 0x47024ED3: mov edi, ebx */ 8944 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 8945 ebx = ebx | 0xFFFFFFFFu; /* 0x47024ED5: or ebx, 0xffffffff */ 8946 _cf = 0; 8947 _flag_k = FK_TEST; 8948 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8949 eax = 0; /* 0x47024ED8: xor eax, eax */ 8950 _cf = 0; 8951 _flag_k = FK_TEST; 8952 ecx = ebx; /* 0x47024EDA: mov ecx, ebx */ 8953 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; } /* 0x47024EDC: repne scasb al, byte ptr es:[edi] */ 8954 ecx = ~ecx; /* 0x47024EDE: not ecx */ 8955 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 8956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8957 edi = edi - ecx; /* 0x47024EE0: sub edi, ecx */ 8958 _flag_k = FK_CMP; 8959 eax = ecx; /* 0x47024EE2: mov eax, ecx */ 8960 esi = edi; /* 0x47024EE4: mov esi, edi */ 8961 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47024EE6: shr ecx, 2 */ 8962 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8963 ecx = ecx >> 2u; /* 0x47024EE6: shr ecx, 2 */ 8964 edi = edx; /* 0x47024EE9: mov edi, edx */ 8965 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47024EEB: 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; } 8966 ecx = eax; /* 0x47024EED: mov ecx, eax */ 8967 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8968 ecx = ecx & 3; /* 0x47024EEF: and ecx, 3 */ 8969 _cf = 0; 8970 _flag_k = FK_TEST; 8971 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47024EF2: 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; } 8972 MEM32(esp + 0x60) = edx; /* 0x47024EF4: mov dword ptr [esp + 0x60], edx */ 8973 ecx = MEM32(esp + 0x68); /* 0x47024EF8: mov ecx, dword ptr [esp + 0x68] */ 8974 MEM32(esp + 0x28) = 1; /* 0x47024EFC: mov dword ptr [esp + 0x28], 1 */ 8975 MEM32(esp + 0x2C) = ecx; /* 0x47024F04: mov dword ptr [esp + 0x2c], ecx */ 8976 MEM32(esp + 0x30) = 0; /* 0x47024F08: mov dword ptr [esp + 0x30], 0 */ 8977 eax = MEM32(esp + 0x14); /* 0x47024F10: mov eax, dword ptr [esp + 0x14] */ 8978 ebp = MEM32(ebp + 0x8); /* 0x47024F14: mov ebp, dword ptr [ebp + 8] */ 8979 edx = esp + 0x68; /* 0x47024F17: lea edx, [esp + 0x68] */ 8980 PUSH32(esp, edx); /* 0x47024F1B: push edx */ 8981 ecx = eax; /* 0x47024F1C: mov ecx, eax */ 8982 MEM32(eax) = ebp; /* 0x47024F1E: mov dword ptr [eax], ebp */ 8983 eax = esp + 0x2C; /* 0x47024F20: lea eax, [esp + 0x2c] */ 8984 PUSH32(esp, eax); /* 0x47024F24: push eax */ 8985 edx = esp + 0x68; /* 0x47024F25: lea edx, [esp + 0x68] */ 8986 PUSH32(esp, edx); /* 0x47024F29: push edx */ 8987 MEM8(esp + 0x64) = (uint8_t)(7); /* 0x47024F2A: mov byte ptr [esp + 0x64], 7 */ 8988 RECOMP_ICALL(0x47027460u); /* 0x47024F2F: call 0x47027460 */ /* not lifted */ 8989 RECOMP_FLAGS_IN(); 8990 /* test eax, eax */ /* 0x47024F34: test eax, eax */ 8991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8992 _cf = 0; 8993 _flag_k = FK_TEST; 8994 PUSH32(esp, 0); /* 0x47024F36: push 0 */ 8995 PUSH32(esp, 0); /* 0x47024F38: push 0 */ 8996 MEM32(esp + 0x60) = ebx; /* 0x47024F3A: mov dword ptr [esp + 0x60], ebx */ 8997 PUSH32(esp, 0); /* 0x47024F3E: push 0 */ 8998 ecx = esp + 0x48; /* 0x47024F40: lea ecx, [esp + 0x48] */ 8999 if (TEST_Z(_flag_a, _flag_b)) goto L_47024F75; /* 0x47024F44: je 0x47024f75 */ 9000 L_47024F46: 9001 RECOMP_ICALL(0x470802D0u); /* 0x47024F46: call 0x470802d0 */ /* not lifted */ 9002 RECOMP_FLAGS_IN(); 9003 eax = 0xFFFFFFFDu; /* 0x47024F4B: mov eax, 0xfffffffd */ 9004 goto L_47024F7C; /* 0x47024F50: jmp 0x47024f7c */ 9005 L_47024F52: 9006 eax = MEM32(esp + 0x68); /* 0x47024F52: mov eax, dword ptr [esp + 0x68] */ 9007 PUSH32(esp, edi); /* 0x47024F56: push edi */ 9008 PUSH32(esp, edi); /* 0x47024F57: push edi */ 9009 MEM32(esp + 0x24) = 1; /* 0x47024F58: mov dword ptr [esp + 0x24], 1 */ 9010 MEM32(esp + 0x28) = eax; /* 0x47024F60: mov dword ptr [esp + 0x28], eax */ 9011 MEM32(esp + 0x2C) = edi; /* 0x47024F64: mov dword ptr [esp + 0x2c], edi */ 9012 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x47024F68: mov dword ptr [esp + 0x60], 0xffffffff */ 9013 PUSH32(esp, edi); /* 0x47024F70: push edi */ 9014 ecx = esp + 0x48; /* 0x47024F71: lea ecx, [esp + 0x48] */ 9015 L_47024F75: 9016 RECOMP_ICALL(0x470802D0u); /* 0x47024F75: call 0x470802d0 */ /* not lifted */ 9017 RECOMP_FLAGS_IN(); 9018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9019 eax = 0; /* 0x47024F7A: xor eax, eax */ 9020 _cf = 0; 9021 _flag_k = FK_TEST; 9022 L_47024F7C: 9023 ecx = MEM32(esp + 0x50); /* 0x47024F7C: mov ecx, dword ptr [esp + 0x50] */ 9024 edi = POP32_VAL(esp); /* 0x47024F80: pop edi */ 9025 esi = POP32_VAL(esp); /* 0x47024F81: pop esi */ 9026 ebp = POP32_VAL(esp); /* 0x47024F82: pop ebp */ 9027 ebx = POP32_VAL(esp); /* 0x47024F83: pop ebx */ 9028 MEM32(FS_BASE + (0)) = ecx; /* 0x47024F84: mov dword ptr fs:[0], ecx */ 9029 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 9030 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9031 esp = esp + 0x4Cu; /* 0x47024F8B: add esp, 0x4c */ 9032 _flag_k = FK_ADD; 9033 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024F8E: ret 0xc */ 9034 RECOMP_REGS_OUT(); 9035 } 9036 9037 void sub_47024F7C(void) { 9038 int _fpu_cmp = 0; 9039 uint32_t _cf = 0; 9040 int _df = 1; 9041 uint32_t _flag_k = FK_NONE; 9042 uint32_t _flag_a = 0, _flag_b = 0; 9043 uint32_t _itail_tgt = 0; 9044 RECOMP_REGS_LOCALS 9045 RECOMP_ENTER(0x47024F7Cu); 9046 9047 L_47024F7C: 9048 ecx = MEM32(esp + 0x50); /* 0x47024F7C: mov ecx, dword ptr [esp + 0x50] */ 9049 edi = POP32_VAL(esp); /* 0x47024F80: pop edi */ 9050 esi = POP32_VAL(esp); /* 0x47024F81: pop esi */ 9051 ebp = POP32_VAL(esp); /* 0x47024F82: pop ebp */ 9052 ebx = POP32_VAL(esp); /* 0x47024F83: pop ebx */ 9053 MEM32(FS_BASE + (0)) = ecx; /* 0x47024F84: mov dword ptr fs:[0], ecx */ 9054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 9055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9056 esp = esp + 0x4Cu; /* 0x47024F8B: add esp, 0x4c */ 9057 _flag_k = FK_ADD; 9058 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47024F8E: ret 0xc */ 9059 RECOMP_REGS_OUT(); 9060 } 9061 9062 void sub_47024FA0(void) { 9063 int _fpu_cmp = 0; 9064 uint32_t _cf = 0; 9065 int _df = 1; 9066 uint32_t _flag_k = FK_NONE; 9067 uint32_t _flag_a = 0, _flag_b = 0; 9068 uint32_t _itail_tgt = 0; 9069 RECOMP_REGS_LOCALS 9070 RECOMP_ENTER(0x47024FA0u); 9071 9072 L_47024FA0: 9073 eax = MEM32(FS_BASE + (0)); /* 0x47024FA0: mov eax, dword ptr fs:[0] */ 9074 PUSH32(esp, 0xFFFFFFFFu); /* 0x47024FA6: push -1 */ 9075 PUSH32(esp, 0x470A4B10u); /* 0x47024FA8: push 0x470a4b10 */ 9076 PUSH32(esp, eax); /* 0x47024FAD: push eax */ 9077 MEM32(FS_BASE + (0)) = esp; /* 0x47024FAE: mov dword ptr fs:[0], esp */ 9078 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 9079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9080 esp = esp - 0x44u; /* 0x47024FB5: sub esp, 0x44 */ 9081 _flag_k = FK_CMP; 9082 PUSH32(esp, ebx); /* 0x47024FB8: push ebx */ 9083 PUSH32(esp, ebp); /* 0x47024FB9: push ebp */ 9084 PUSH32(esp, esi); /* 0x47024FBA: push esi */ 9085 esi = MEM32(esp + 0x64); /* 0x47024FBB: mov esi, dword ptr [esp + 0x64] */ 9086 /* cmp MEM8(esi), 0 */ /* 0x47024FBF: cmp byte ptr [esi], 0 */ 9087 _flag_a = (uint32_t)(MEM8(esi)) << 24; _flag_b = (uint32_t)(0) << 24; 9088 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9089 _flag_k = FK_NARROW(FK_CMP, 24); 9090 PUSH32(esp, edi); /* 0x47024FC2: push edi */ 9091 ebp = ecx; /* 0x47024FC3: mov ebp, ecx */ 9092 edi = esi; /* 0x47024FC5: mov edi, esi */ 9093 if (CMP_EQ(_flag_a, _flag_b)) goto L_47024FE9; /* 0x47024FC7: je 0x47024fe9 */ 9094 L_47024FC9: 9095 ebx = MEM32(0x470AC380); /* 0x47024FC9: mov ebx, dword ptr [0x470ac380] */ 9096 L_47024FCF: 9097 eax = (int32_t)(int8_t)MEM8(edi); /* 0x47024FCF: movsx eax, byte ptr [edi] */ 9098 PUSH32(esp, eax); /* 0x47024FD2: push eax */ 9099 PUSH32(esp, 0x47105AACu); /* 0x47024FD3: push 0x47105aac */ 9100 RECOMP_ICALL(ebx); /* 0x47024FD8: call ebx */ 9101 RECOMP_FLAGS_IN(); 9102 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9104 esp = esp + 8; /* 0x47024FDA: add esp, 8 */ 9105 _flag_k = FK_ADD; 9106 /* test eax, eax */ /* 0x47024FDD: test eax, eax */ 9107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9108 _cf = 0; 9109 _flag_k = FK_TEST; 9110 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024FF3; /* 0x47024FDF: jne 0x47024ff3 */ 9111 L_47024FE1: 9112 SET_LO8(eax, MEM8(edi + 0x1)); /* 0x47024FE1: mov al, byte ptr [edi + 1] */ 9113 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 9114 edi = edi + 1; /* 0x47024FE4: inc edi */ 9115 _flag_k = FK_INC; 9116 /* test LO8(eax), LO8(eax) */ /* 0x47024FE5: test al, al */ 9117 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9118 _cf = 0; 9119 _flag_k = FK_NARROW(FK_TEST, 24); 9120 RECOMP_BACKEDGE(); 9121 if (TEST_NZ(_flag_a, _flag_b)) goto L_47024FCF; /* 0x47024FE7: jne 0x47024fcf */ 9122 L_47024FE9: 9123 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 9124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9125 edi = edi - esi; /* 0x47024FE9: sub edi, esi */ 9126 _flag_k = FK_CMP; 9127 /* cmp edi, 0xFFu */ /* 0x47024FEB: cmp edi, 0xff */ 9128 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFu); 9129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9130 _flag_k = FK_CMP; 9131 if (CMP_LE(_flag_a, _flag_b)) goto L_47024FFB; /* 0x47024FF1: jle 0x47024ffb */ 9132 L_47024FF3: 9133 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9134 eax = eax | 0xFFFFFFFFu; /* 0x47024FF3: or eax, 0xffffffff */ 9135 _cf = 0; 9136 _flag_k = FK_TEST; 9137 goto L_47025278; /* 0x47024FF6: jmp 0x47025278 */ 9138 L_47024FFB: 9139 RECOMP_ICALL(0x4703DAC0u); /* 0x47024FFB: call 0x4703dac0 */ /* not lifted */ 9140 RECOMP_FLAGS_IN(); 9141 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9142 ebx = 0; /* 0x47025000: xor ebx, ebx */ 9143 _cf = 0; 9144 _flag_k = FK_TEST; 9145 MEM32(esp + 0x40) = eax; /* 0x47025002: mov dword ptr [esp + 0x40], eax */ 9146 MEM32(esp + 0x44) = ebx; /* 0x47025006: mov dword ptr [esp + 0x44], ebx */ 9147 MEM32(esp + 0x48) = ebx; /* 0x4702500A: mov dword ptr [esp + 0x48], ebx */ 9148 MEM32(esp + 0x4C) = 0x4710F078u; /* 0x4702500E: mov dword ptr [esp + 0x4c], 0x4710f078 */ 9149 MEM32(esp + 0x50) = ebx; /* 0x47025016: mov dword ptr [esp + 0x50], ebx */ 9150 eax = MEM32(esp + 0x64); /* 0x4702501A: mov eax, dword ptr [esp + 0x64] */ 9151 eax = MEM32(eax); /* 0x4702501E: mov eax, dword ptr [eax] */ 9152 /* cmp eax, ebx */ /* 0x47025020: cmp eax, ebx */ 9153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9155 _flag_k = FK_CMP; 9156 MEM32(esp + 0x5C) = ebx; /* 0x47025022: mov dword ptr [esp + 0x5c], ebx */ 9157 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702507F; /* 0x47025026: je 0x4702507f */ 9158 L_47025028: 9159 ecx = MEM32(eax + 0x8); /* 0x47025028: mov ecx, dword ptr [eax + 8] */ 9160 PUSH32(esp, 1); /* 0x4702502B: push 1 */ 9161 PUSH32(esp, ebx); /* 0x4702502D: push ebx */ 9162 PUSH32(esp, ecx); /* 0x4702502E: push ecx */ 9163 ecx = esp + 0x38; /* 0x4702502F: lea ecx, [esp + 0x38] */ 9164 RECOMP_ICALL(0x47007130u); /* 0x47025033: call 0x47007130 */ /* not lifted */ 9165 RECOMP_FLAGS_IN(); 9166 edx = esp + 0x2C; /* 0x47025038: lea edx, [esp + 0x2c] */ 9167 PUSH32(esp, edx); /* 0x4702503C: push edx */ 9168 ecx = esp + 0x44; /* 0x4702503D: lea ecx, [esp + 0x44] */ 9169 MEM8(esp + 0x60) = (uint8_t)(1); /* 0x47025041: mov byte ptr [esp + 0x60], 1 */ 9170 RECOMP_ICALL(0x47007250u); /* 0x47025046: call 0x47007250 */ /* not lifted */ 9171 RECOMP_FLAGS_IN(); 9172 PUSH32(esp, ebx); /* 0x4702504B: push ebx */ 9173 PUSH32(esp, ebx); /* 0x4702504C: push ebx */ 9174 PUSH32(esp, ebx); /* 0x4702504D: push ebx */ 9175 ecx = esp + 0x38; /* 0x4702504E: lea ecx, [esp + 0x38] */ 9176 MEM8(esp + 0x68) = (uint8_t)(LO8(ebx)); /* 0x47025052: mov byte ptr [esp + 0x68], bl */ 9177 RECOMP_ICALL(0x470802D0u); /* 0x47025056: call 0x470802d0 */ /* not lifted */ 9178 RECOMP_FLAGS_IN(); 9179 eax = MEM32(esp + 0x44); /* 0x4702505B: mov eax, dword ptr [esp + 0x44] */ 9180 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9181 eax = eax + 1; /* 0x4702505F: inc eax */ 9182 _flag_k = FK_INC; 9183 PUSH32(esp, eax); /* 0x47025060: push eax */ 9184 RECOMP_ICALL(0x470A33F2u); /* 0x47025061: call 0x470a33f2 */ /* not lifted */ 9185 RECOMP_FLAGS_IN(); 9186 edi = eax; /* 0x47025066: mov edi, eax */ 9187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9188 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9189 esp = esp + 4; /* 0x47025068: add esp, 4 */ 9190 _flag_k = FK_ADD; 9191 /* cmp edi, ebx */ /* 0x4702506B: cmp edi, ebx */ 9192 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 9193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9194 _flag_k = FK_CMP; 9195 if (CMP_NE(_flag_a, _flag_b)) goto L_4702509B; /* 0x4702506D: jne 0x4702509b */ 9196 L_4702506F: 9197 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4702506F: call dword ptr [0x470ac3c8] */ 9198 RECOMP_FLAGS_IN(); 9199 MEM32(eax) = 0xCu; /* 0x47025075: mov dword ptr [eax], 0xc */ 9200 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9201 edi = 0; /* 0x4702507B: xor edi, edi */ 9202 _cf = 0; 9203 _flag_k = FK_TEST; 9204 goto L_470250B7; /* 0x4702507D: jmp 0x470250b7 */ 9205 L_4702507F: 9206 PUSH32(esp, ebx); /* 0x4702507F: push ebx */ 9207 PUSH32(esp, ebx); /* 0x47025080: push ebx */ 9208 PUSH32(esp, ebx); /* 0x47025081: push ebx */ 9209 ecx = esp + 0x4C; /* 0x47025082: lea ecx, [esp + 0x4c] */ 9210 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47025086: mov dword ptr [esp + 0x68], 0xffffffff */ 9211 RECOMP_ICALL(0x470802D0u); /* 0x4702508E: call 0x470802d0 */ /* not lifted */ 9212 RECOMP_FLAGS_IN(); 9213 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9214 eax = eax | 0xFFFFFFFFu; /* 0x47025093: or eax, 0xffffffff */ 9215 _cf = 0; 9216 _flag_k = FK_TEST; 9217 goto L_47025278; /* 0x47025096: jmp 0x47025278 */ 9218 L_4702509B: 9219 ecx = MEM32(esp + 0x44); /* 0x4702509B: mov ecx, dword ptr [esp + 0x44] */ 9220 edx = MEM32(esp + 0x4C); /* 0x4702509F: mov edx, dword ptr [esp + 0x4c] */ 9221 PUSH32(esp, ecx); /* 0x470250A3: push ecx */ 9222 PUSH32(esp, edx); /* 0x470250A4: push edx */ 9223 PUSH32(esp, edi); /* 0x470250A5: push edi */ 9224 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x470250A6: call dword ptr [0x470ac22c] */ 9225 RECOMP_FLAGS_IN(); 9226 eax = MEM32(esp + 0x50); /* 0x470250AC: mov eax, dword ptr [esp + 0x50] */ 9227 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9228 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9229 esp = esp + 0xCu; /* 0x470250B0: add esp, 0xc */ 9230 _flag_k = FK_ADD; 9231 MEM8(eax + edi) = (uint8_t)(0); /* 0x470250B3: mov byte ptr [eax + edi], 0 */ 9232 L_470250B7: 9233 MEM32(esp + 0x68) = edi; /* 0x470250B7: mov dword ptr [esp + 0x68], edi */ 9234 MEM32(esp + 0x18) = ebx; /* 0x470250BB: mov dword ptr [esp + 0x18], ebx */ 9235 MEM32(esp + 0x1C) = ebx; /* 0x470250BF: mov dword ptr [esp + 0x1c], ebx */ 9236 eax = MEM32(ebp + 0x8); /* 0x470250C3: mov eax, dword ptr [ebp + 8] */ 9237 ecx = MEM32(ebp + 0xC); /* 0x470250C6: mov ecx, dword ptr [ebp + 0xc] */ 9238 edx = esp + 0x18; /* 0x470250C9: lea edx, [esp + 0x18] */ 9239 MEM32(ecx) = eax; /* 0x470250CD: mov dword ptr [ecx], eax */ 9240 PUSH32(esp, edx); /* 0x470250CF: push edx */ 9241 eax = esp + 0x6C; /* 0x470250D0: lea eax, [esp + 0x6c] */ 9242 PUSH32(esp, eax); /* 0x470250D4: push eax */ 9243 MEM8(esp + 0x64) = (uint8_t)(3); /* 0x470250D5: mov byte ptr [esp + 0x64], 3 */ 9244 RECOMP_ICALL(0x47027020u); /* 0x470250DA: call 0x47027020 */ /* not lifted */ 9245 RECOMP_FLAGS_IN(); 9246 /* test eax, eax */ /* 0x470250DF: test eax, eax */ 9247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9248 _cf = 0; 9249 _flag_k = FK_TEST; 9250 if (TEST_Z(_flag_a, _flag_b)) goto L_47025101; /* 0x470250E1: je 0x47025101 */ 9251 L_470250E3: 9252 PUSH32(esp, ebx); /* 0x470250E3: push ebx */ 9253 PUSH32(esp, ebx); /* 0x470250E4: push ebx */ 9254 PUSH32(esp, ebx); /* 0x470250E5: push ebx */ 9255 ecx = esp + 0x4C; /* 0x470250E6: lea ecx, [esp + 0x4c] */ 9256 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470250EA: mov dword ptr [esp + 0x68], 0xffffffff */ 9257 RECOMP_ICALL(0x470802D0u); /* 0x470250F2: call 0x470802d0 */ /* not lifted */ 9258 RECOMP_FLAGS_IN(); 9259 eax = 0xFFFFFFFEu; /* 0x470250F7: mov eax, 0xfffffffe */ 9260 goto L_47025278; /* 0x470250FC: jmp 0x47025278 */ 9261 L_47025101: 9262 MEM32(esp + 0x10) = esi; /* 0x47025101: mov dword ptr [esp + 0x10], esi */ 9263 MEM32(esp + 0x20) = 3; /* 0x47025105: mov dword ptr [esp + 0x20], 3 */ 9264 MEM32(esp + 0x24) = ebx; /* 0x4702510D: mov dword ptr [esp + 0x24], ebx */ 9265 MEM32(esp + 0x28) = ebx; /* 0x47025111: mov dword ptr [esp + 0x28], ebx */ 9266 eax = MEM32(ebp + 0x8); /* 0x47025115: mov eax, dword ptr [ebp + 8] */ 9267 ecx = MEM32(esp + 0x18); /* 0x47025118: mov ecx, dword ptr [esp + 0x18] */ 9268 edx = esp + 0x20; /* 0x4702511C: lea edx, [esp + 0x20] */ 9269 MEM32(ecx) = eax; /* 0x47025120: mov dword ptr [ecx], eax */ 9270 PUSH32(esp, edx); /* 0x47025122: push edx */ 9271 eax = esp + 0x14; /* 0x47025123: lea eax, [esp + 0x14] */ 9272 PUSH32(esp, eax); /* 0x47025127: push eax */ 9273 MEM8(esp + 0x64) = (uint8_t)(5); /* 0x47025128: mov byte ptr [esp + 0x64], 5 */ 9274 RECOMP_ICALL(0x47026250u); /* 0x4702512D: call 0x47026250 */ /* not lifted */ 9275 RECOMP_FLAGS_IN(); 9276 /* test eax, eax */ /* 0x47025132: test eax, eax */ 9277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9278 _cf = 0; 9279 _flag_k = FK_TEST; 9280 if (TEST_Z(_flag_a, _flag_b)) goto L_4702520F; /* 0x47025134: je 0x4702520f */ 9281 L_4702513A: 9282 edx = MEM32(ebp + 0x8); /* 0x4702513A: mov edx, dword ptr [ebp + 8] */ 9283 ebx = MEM32(edx); /* 0x4702513D: mov ebx, dword ptr [edx] */ 9284 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9285 ecx = ecx | 0xFFFFFFFFu; /* 0x4702513F: or ecx, 0xffffffff */ 9286 _cf = 0; 9287 _flag_k = FK_TEST; 9288 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9289 eax = 0; /* 0x47025142: xor eax, eax */ 9290 _cf = 0; 9291 _flag_k = FK_TEST; 9292 edi = esi; /* 0x47025144: mov edi, esi */ 9293 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; } /* 0x47025146: repne scasb al, byte ptr es:[edi] */ 9294 ecx = ~ecx; /* 0x47025148: not ecx */ 9295 PUSH32(esp, ecx); /* 0x4702514A: push ecx */ 9296 ecx = edx; /* 0x4702514B: mov ecx, edx */ 9297 RECOMP_ICALL(MEM32(ebx + 0x4)); /* 0x4702514D: call dword ptr [ebx + 4] */ 9298 RECOMP_FLAGS_IN(); 9299 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9300 ecx = ecx | 0xFFFFFFFFu; /* 0x47025150: or ecx, 0xffffffff */ 9301 _cf = 0; 9302 _flag_k = FK_TEST; 9303 ebx = eax; /* 0x47025153: mov ebx, eax */ 9304 edi = esi; /* 0x47025155: mov edi, esi */ 9305 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9306 eax = 0; /* 0x47025157: xor eax, eax */ 9307 _cf = 0; 9308 _flag_k = FK_TEST; 9309 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; } /* 0x47025159: repne scasb al, byte ptr es:[edi] */ 9310 ecx = ~ecx; /* 0x4702515B: not ecx */ 9311 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 9312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9313 edi = edi - ecx; /* 0x4702515D: sub edi, ecx */ 9314 _flag_k = FK_CMP; 9315 edx = ecx; /* 0x4702515F: mov edx, ecx */ 9316 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47025161: shr ecx, 2 */ 9317 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9318 ecx = ecx >> 2u; /* 0x47025161: shr ecx, 2 */ 9319 esi = edi; /* 0x47025164: mov esi, edi */ 9320 edi = ebx; /* 0x47025166: mov edi, ebx */ 9321 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47025168: 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; } 9322 ecx = edx; /* 0x4702516A: mov ecx, edx */ 9323 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9324 ecx = ecx & 3; /* 0x4702516C: and ecx, 3 */ 9325 _cf = 0; 9326 _flag_k = FK_TEST; 9327 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4702516F: 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; } 9328 ecx = MEM32(ebp + 0x8); /* 0x47025171: mov ecx, dword ptr [ebp + 8] */ 9329 esi = MEM32(esp + 0x70); /* 0x47025174: mov esi, dword ptr [esp + 0x70] */ 9330 eax = MEM32(ecx); /* 0x47025178: mov eax, dword ptr [ecx] */ 9331 PUSH32(esp, esi); /* 0x4702517A: push esi */ 9332 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4702517B: call dword ptr [eax + 4] */ 9333 RECOMP_FLAGS_IN(); 9334 ecx = esi; /* 0x4702517E: mov ecx, esi */ 9335 esi = MEM32(esp + 0x6C); /* 0x47025180: mov esi, dword ptr [esp + 0x6c] */ 9336 edx = ecx; /* 0x47025184: mov edx, ecx */ 9337 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47025186: shr ecx, 2 */ 9338 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9339 ecx = ecx >> 2u; /* 0x47025186: shr ecx, 2 */ 9340 edi = eax; /* 0x47025189: mov edi, eax */ 9341 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x4702518B: 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; } 9342 ecx = edx; /* 0x4702518D: mov ecx, edx */ 9343 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9344 ecx = ecx & 3; /* 0x4702518F: and ecx, 3 */ 9345 _cf = 0; 9346 _flag_k = FK_TEST; 9347 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47025192: 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; } 9348 MEM32(esp + 0x14) = eax; /* 0x47025194: mov dword ptr [esp + 0x14], eax */ 9349 MEM32(esp + 0x64) = ebx; /* 0x47025198: mov dword ptr [esp + 0x64], ebx */ 9350 MEM32(esp + 0x30) = eax; /* 0x4702519C: mov dword ptr [esp + 0x30], eax */ 9351 eax = edx; /* 0x470251A0: mov eax, edx */ 9352 MEM32(esp + 0x2C) = 2; /* 0x470251A2: mov dword ptr [esp + 0x2c], 2 */ 9353 MEM32(esp + 0x34) = eax; /* 0x470251AA: mov dword ptr [esp + 0x34], eax */ 9354 eax = MEM32(ebp + 0x8); /* 0x470251AE: mov eax, dword ptr [ebp + 8] */ 9355 ecx = MEM32(esp + 0x18); /* 0x470251B1: mov ecx, dword ptr [esp + 0x18] */ 9356 edx = esp + 0x70; /* 0x470251B5: lea edx, [esp + 0x70] */ 9357 PUSH32(esp, edx); /* 0x470251B9: push edx */ 9358 MEM32(ecx) = eax; /* 0x470251BA: mov dword ptr [ecx], eax */ 9359 eax = esp + 0x30; /* 0x470251BC: lea eax, [esp + 0x30] */ 9360 PUSH32(esp, eax); /* 0x470251C0: push eax */ 9361 edx = esp + 0x6C; /* 0x470251C1: lea edx, [esp + 0x6c] */ 9362 PUSH32(esp, edx); /* 0x470251C5: push edx */ 9363 MEM8(esp + 0x68) = (uint8_t)(7); /* 0x470251C6: mov byte ptr [esp + 0x68], 7 */ 9364 RECOMP_ICALL(0x47027460u); /* 0x470251CB: call 0x47027460 */ /* not lifted */ 9365 RECOMP_FLAGS_IN(); 9366 /* test eax, eax */ /* 0x470251D0: test eax, eax */ 9367 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9368 _cf = 0; 9369 _flag_k = FK_TEST; 9370 if (TEST_Z(_flag_a, _flag_b)) goto L_4702525F; /* 0x470251D2: je 0x4702525f */ 9371 L_470251D8: 9372 ecx = MEM32(ebp + 0x8); /* 0x470251D8: mov ecx, dword ptr [ebp + 8] */ 9373 edx = MEM32(esp + 0x14); /* 0x470251DB: mov edx, dword ptr [esp + 0x14] */ 9374 eax = MEM32(ecx); /* 0x470251DF: mov eax, dword ptr [ecx] */ 9375 PUSH32(esp, edx); /* 0x470251E1: push edx */ 9376 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470251E2: call dword ptr [eax + 0xc] */ 9377 RECOMP_FLAGS_IN(); 9378 ebp = MEM32(ebp + 0x8); /* 0x470251E5: mov ebp, dword ptr [ebp + 8] */ 9379 eax = MEM32(ebp); /* 0x470251E8: mov eax, dword ptr [ebp] */ 9380 PUSH32(esp, ebx); /* 0x470251EB: push ebx */ 9381 ecx = ebp; /* 0x470251EC: mov ecx, ebp */ 9382 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x470251EE: call dword ptr [eax + 0xc] */ 9383 RECOMP_FLAGS_IN(); 9384 PUSH32(esp, 0); /* 0x470251F1: push 0 */ 9385 PUSH32(esp, 0); /* 0x470251F3: push 0 */ 9386 PUSH32(esp, 0); /* 0x470251F5: push 0 */ 9387 ecx = esp + 0x4C; /* 0x470251F7: lea ecx, [esp + 0x4c] */ 9388 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470251FB: mov dword ptr [esp + 0x68], 0xffffffff */ 9389 RECOMP_ICALL(0x470802D0u); /* 0x47025203: call 0x470802d0 */ /* not lifted */ 9390 RECOMP_FLAGS_IN(); 9391 eax = 0xFFFFFFFDu; /* 0x47025208: mov eax, 0xfffffffd */ 9392 goto L_47025278; /* 0x4702520D: jmp 0x47025278 */ 9393 L_4702520F: 9394 eax = MEM32(esp + 0x20); /* 0x4702520F: mov eax, dword ptr [esp + 0x20] */ 9395 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9397 eax = eax - ebx; /* 0x47025213: sub eax, ebx */ 9398 _flag_k = FK_CMP; 9399 ecx = MEM32(ebp + 0x8); /* 0x47025215: mov ecx, dword ptr [ebp + 8] */ 9400 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_4702521F; /* 0x47025218: je 0x4702521f */ 9401 L_4702521A: 9402 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 9403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9404 eax = eax - 2; /* 0x4702521A: sub eax, 2 */ 9405 _flag_k = FK_CMP; 9406 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_47025229; /* 0x4702521D: jne 0x47025229 */ 9407 L_4702521F: 9408 eax = MEM32(esp + 0x24); /* 0x4702521F: mov eax, dword ptr [esp + 0x24] */ 9409 edx = MEM32(ecx); /* 0x47025223: mov edx, dword ptr [ecx] */ 9410 PUSH32(esp, eax); /* 0x47025225: push eax */ 9411 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47025226: call dword ptr [edx + 0xc] */ 9412 RECOMP_FLAGS_IN(); 9413 L_47025229: 9414 ebp = MEM32(ebp + 0x8); /* 0x47025229: mov ebp, dword ptr [ebp + 8] */ 9415 ebx = MEM32(esp + 0x70); /* 0x4702522C: mov ebx, dword ptr [esp + 0x70] */ 9416 edx = MEM32(ebp); /* 0x47025230: mov edx, dword ptr [ebp] */ 9417 PUSH32(esp, ebx); /* 0x47025233: push ebx */ 9418 ecx = ebp; /* 0x47025234: mov ecx, ebp */ 9419 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47025236: call dword ptr [edx + 4] */ 9420 RECOMP_FLAGS_IN(); 9421 esi = MEM32(esp + 0x6C); /* 0x47025239: mov esi, dword ptr [esp + 0x6c] */ 9422 ecx = ebx; /* 0x4702523D: mov ecx, ebx */ 9423 edx = ecx; /* 0x4702523F: mov edx, ecx */ 9424 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47025241: shr ecx, 2 */ 9425 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9426 ecx = ecx >> 2u; /* 0x47025241: shr ecx, 2 */ 9427 edi = eax; /* 0x47025244: mov edi, eax */ 9428 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47025246: 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; } 9429 ecx = edx; /* 0x47025248: mov ecx, edx */ 9430 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9431 ecx = ecx & 3; /* 0x4702524A: and ecx, 3 */ 9432 _cf = 0; 9433 _flag_k = FK_TEST; 9434 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x4702524D: 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; } 9435 MEM32(esp + 0x20) = 2; /* 0x4702524F: mov dword ptr [esp + 0x20], 2 */ 9436 MEM32(esp + 0x24) = eax; /* 0x47025257: mov dword ptr [esp + 0x24], eax */ 9437 MEM32(esp + 0x28) = ebx; /* 0x4702525B: mov dword ptr [esp + 0x28], ebx */ 9438 L_4702525F: 9439 PUSH32(esp, 0); /* 0x4702525F: push 0 */ 9440 PUSH32(esp, 0); /* 0x47025261: push 0 */ 9441 PUSH32(esp, 0); /* 0x47025263: push 0 */ 9442 ecx = esp + 0x4C; /* 0x47025265: lea ecx, [esp + 0x4c] */ 9443 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47025269: mov dword ptr [esp + 0x68], 0xffffffff */ 9444 RECOMP_ICALL(0x470802D0u); /* 0x47025271: call 0x470802d0 */ /* not lifted */ 9445 RECOMP_FLAGS_IN(); 9446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9447 eax = 0; /* 0x47025276: xor eax, eax */ 9448 _cf = 0; 9449 _flag_k = FK_TEST; 9450 L_47025278: 9451 ecx = MEM32(esp + 0x54); /* 0x47025278: mov ecx, dword ptr [esp + 0x54] */ 9452 edi = POP32_VAL(esp); /* 0x4702527C: pop edi */ 9453 esi = POP32_VAL(esp); /* 0x4702527D: pop esi */ 9454 ebp = POP32_VAL(esp); /* 0x4702527E: pop ebp */ 9455 ebx = POP32_VAL(esp); /* 0x4702527F: pop ebx */ 9456 MEM32(FS_BASE + (0)) = ecx; /* 0x47025280: mov dword ptr fs:[0], ecx */ 9457 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 9458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9459 esp = esp + 0x50u; /* 0x47025287: add esp, 0x50 */ 9460 _flag_k = FK_ADD; 9461 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702528A: ret 0x10 */ 9462 RECOMP_REGS_OUT(); 9463 } 9464 9465 void sub_47025278(void) { 9466 int _fpu_cmp = 0; 9467 uint32_t _cf = 0; 9468 int _df = 1; 9469 uint32_t _flag_k = FK_NONE; 9470 uint32_t _flag_a = 0, _flag_b = 0; 9471 uint32_t _itail_tgt = 0; 9472 RECOMP_REGS_LOCALS 9473 RECOMP_ENTER(0x47025278u); 9474 9475 L_47025278: 9476 ecx = MEM32(esp + 0x54); /* 0x47025278: mov ecx, dword ptr [esp + 0x54] */ 9477 edi = POP32_VAL(esp); /* 0x4702527C: pop edi */ 9478 esi = POP32_VAL(esp); /* 0x4702527D: pop esi */ 9479 ebp = POP32_VAL(esp); /* 0x4702527E: pop ebp */ 9480 ebx = POP32_VAL(esp); /* 0x4702527F: pop ebx */ 9481 MEM32(FS_BASE + (0)) = ecx; /* 0x47025280: mov dword ptr fs:[0], ecx */ 9482 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 9483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9484 esp = esp + 0x50u; /* 0x47025287: add esp, 0x50 */ 9485 _flag_k = FK_ADD; 9486 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x4702528A: ret 0x10 */ 9487 RECOMP_REGS_OUT(); 9488 } 9489 9490 void sub_47025290(void) { 9491 int _fpu_cmp = 0; 9492 uint32_t _cf = 0; 9493 int _df = 1; 9494 uint32_t _flag_k = FK_NONE; 9495 uint32_t _flag_a = 0, _flag_b = 0; 9496 uint32_t _itail_tgt = 0; 9497 RECOMP_REGS_LOCALS 9498 RECOMP_ENTER(0x47025290u); 9499 9500 L_47025290: 9501 eax = MEM32(FS_BASE + (0)); /* 0x47025290: mov eax, dword ptr fs:[0] */ 9502 PUSH32(esp, 0xFFFFFFFFu); /* 0x47025296: push -1 */ 9503 PUSH32(esp, 0x470A4B58u); /* 0x47025298: push 0x470a4b58 */ 9504 PUSH32(esp, eax); /* 0x4702529D: push eax */ 9505 eax = MEM32(esp + 0x14); /* 0x4702529E: mov eax, dword ptr [esp + 0x14] */ 9506 MEM32(FS_BASE + (0)) = esp; /* 0x470252A2: mov dword ptr fs:[0], esp */ 9507 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 9508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9509 esp = esp - 0x44u; /* 0x470252A9: sub esp, 0x44 */ 9510 _flag_k = FK_CMP; 9511 PUSH32(esp, ebx); /* 0x470252AC: push ebx */ 9512 PUSH32(esp, ebp); /* 0x470252AD: push ebp */ 9513 PUSH32(esp, esi); /* 0x470252AE: push esi */ 9514 PUSH32(esp, edi); /* 0x470252AF: push edi */ 9515 edi = ecx; /* 0x470252B0: mov edi, ecx */ 9516 SET_LO8(ecx, MEM8(eax)); /* 0x470252B2: mov cl, byte ptr [eax] */ 9517 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9518 ebx = 0; /* 0x470252B4: xor ebx, ebx */ 9519 _cf = 0; 9520 _flag_k = FK_TEST; 9521 /* cmp LO8(ecx), LO8(ebx) */ /* 0x470252B6: cmp cl, bl */ 9522 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9524 _flag_k = FK_NARROW(FK_CMP, 24); 9525 esi = eax; /* 0x470252B8: mov esi, eax */ 9526 if (CMP_EQ(_flag_a, _flag_b)) goto L_470252E0; /* 0x470252BA: je 0x470252e0 */ 9527 L_470252BC: 9528 ebp = MEM32(0x470AC380); /* 0x470252BC: mov ebp, dword ptr [0x470ac380] */ 9529 L_470252C2: 9530 eax = (int32_t)(int8_t)MEM8(esi); /* 0x470252C2: movsx eax, byte ptr [esi] */ 9531 PUSH32(esp, eax); /* 0x470252C5: push eax */ 9532 PUSH32(esp, 0x47105AACu); /* 0x470252C6: push 0x47105aac */ 9533 RECOMP_ICALL(ebp); /* 0x470252CB: call ebp */ 9534 RECOMP_FLAGS_IN(); 9535 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9537 esp = esp + 8; /* 0x470252CD: add esp, 8 */ 9538 _flag_k = FK_ADD; 9539 /* test eax, eax */ /* 0x470252D0: test eax, eax */ 9540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9541 _cf = 0; 9542 _flag_k = FK_TEST; 9543 if (TEST_NZ(_flag_a, _flag_b)) goto L_470252EA; /* 0x470252D2: jne 0x470252ea */ 9544 L_470252D4: 9545 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x470252D4: mov al, byte ptr [esi + 1] */ 9546 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 9547 esi = esi + 1; /* 0x470252D7: inc esi */ 9548 _flag_k = FK_INC; 9549 /* cmp LO8(eax), LO8(ebx) */ /* 0x470252D8: cmp al, bl */ 9550 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9552 _flag_k = FK_NARROW(FK_CMP, 24); 9553 RECOMP_BACKEDGE(); 9554 if (CMP_NE(_flag_a, _flag_b)) goto L_470252C2; /* 0x470252DA: jne 0x470252c2 */ 9555 L_470252DC: 9556 eax = MEM32(esp + 0x68); /* 0x470252DC: mov eax, dword ptr [esp + 0x68] */ 9557 L_470252E0: 9558 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9560 esi = esi - eax; /* 0x470252E0: sub esi, eax */ 9561 _flag_k = FK_CMP; 9562 /* cmp esi, 0xFFu */ /* 0x470252E2: cmp esi, 0xff */ 9563 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 9564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9565 _flag_k = FK_CMP; 9566 if (CMP_LE(_flag_a, _flag_b)) goto L_470252F2; /* 0x470252E8: jle 0x470252f2 */ 9567 L_470252EA: 9568 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9569 eax = eax | 0xFFFFFFFFu; /* 0x470252EA: or eax, 0xffffffff */ 9570 _cf = 0; 9571 _flag_k = FK_TEST; 9572 goto L_470254F7; /* 0x470252ED: jmp 0x470254f7 */ 9573 L_470252F2: 9574 RECOMP_ICALL(0x4703DAC0u); /* 0x470252F2: call 0x4703dac0 */ /* not lifted */ 9575 RECOMP_FLAGS_IN(); 9576 MEM32(esp + 0x2C) = eax; /* 0x470252F7: mov dword ptr [esp + 0x2c], eax */ 9577 MEM32(esp + 0x30) = ebx; /* 0x470252FB: mov dword ptr [esp + 0x30], ebx */ 9578 MEM32(esp + 0x34) = ebx; /* 0x470252FF: mov dword ptr [esp + 0x34], ebx */ 9579 MEM32(esp + 0x38) = 0x4710F078u; /* 0x47025303: mov dword ptr [esp + 0x38], 0x4710f078 */ 9580 MEM32(esp + 0x3C) = ebx; /* 0x4702530B: mov dword ptr [esp + 0x3c], ebx */ 9581 eax = MEM32(esp + 0x64); /* 0x4702530F: mov eax, dword ptr [esp + 0x64] */ 9582 eax = MEM32(eax); /* 0x47025313: mov eax, dword ptr [eax] */ 9583 /* cmp eax, ebx */ /* 0x47025315: cmp eax, ebx */ 9584 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9586 _flag_k = FK_CMP; 9587 MEM32(esp + 0x5C) = ebx; /* 0x47025317: mov dword ptr [esp + 0x5c], ebx */ 9588 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025374; /* 0x4702531B: je 0x47025374 */ 9589 L_4702531D: 9590 ecx = MEM32(eax + 0x8); /* 0x4702531D: mov ecx, dword ptr [eax + 8] */ 9591 PUSH32(esp, 1); /* 0x47025320: push 1 */ 9592 PUSH32(esp, ebx); /* 0x47025322: push ebx */ 9593 PUSH32(esp, ecx); /* 0x47025323: push ecx */ 9594 ecx = esp + 0x4C; /* 0x47025324: lea ecx, [esp + 0x4c] */ 9595 RECOMP_ICALL(0x47007130u); /* 0x47025328: call 0x47007130 */ /* not lifted */ 9596 RECOMP_FLAGS_IN(); 9597 edx = esp + 0x40; /* 0x4702532D: lea edx, [esp + 0x40] */ 9598 PUSH32(esp, edx); /* 0x47025331: push edx */ 9599 ecx = esp + 0x30; /* 0x47025332: lea ecx, [esp + 0x30] */ 9600 MEM8(esp + 0x60) = (uint8_t)(1); /* 0x47025336: mov byte ptr [esp + 0x60], 1 */ 9601 RECOMP_ICALL(0x47007250u); /* 0x4702533B: call 0x47007250 */ /* not lifted */ 9602 RECOMP_FLAGS_IN(); 9603 PUSH32(esp, ebx); /* 0x47025340: push ebx */ 9604 PUSH32(esp, ebx); /* 0x47025341: push ebx */ 9605 PUSH32(esp, ebx); /* 0x47025342: push ebx */ 9606 ecx = esp + 0x4C; /* 0x47025343: lea ecx, [esp + 0x4c] */ 9607 MEM8(esp + 0x68) = (uint8_t)(LO8(ebx)); /* 0x47025347: mov byte ptr [esp + 0x68], bl */ 9608 RECOMP_ICALL(0x470802D0u); /* 0x4702534B: call 0x470802d0 */ /* not lifted */ 9609 RECOMP_FLAGS_IN(); 9610 eax = MEM32(esp + 0x30); /* 0x47025350: mov eax, dword ptr [esp + 0x30] */ 9611 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9612 eax = eax + 1; /* 0x47025354: inc eax */ 9613 _flag_k = FK_INC; 9614 PUSH32(esp, eax); /* 0x47025355: push eax */ 9615 RECOMP_ICALL(0x470A33F2u); /* 0x47025356: call 0x470a33f2 */ /* not lifted */ 9616 RECOMP_FLAGS_IN(); 9617 esi = eax; /* 0x4702535B: mov esi, eax */ 9618 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9619 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9620 esp = esp + 4; /* 0x4702535D: add esp, 4 */ 9621 _flag_k = FK_ADD; 9622 /* cmp esi, ebx */ /* 0x47025360: cmp esi, ebx */ 9623 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9625 _flag_k = FK_CMP; 9626 if (CMP_NE(_flag_a, _flag_b)) goto L_47025390; /* 0x47025362: jne 0x47025390 */ 9627 L_47025364: 9628 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47025364: call dword ptr [0x470ac3c8] */ 9629 RECOMP_FLAGS_IN(); 9630 MEM32(eax) = 0xCu; /* 0x4702536A: mov dword ptr [eax], 0xc */ 9631 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9632 esi = 0; /* 0x47025370: xor esi, esi */ 9633 _cf = 0; 9634 _flag_k = FK_TEST; 9635 goto L_470253AB; /* 0x47025372: jmp 0x470253ab */ 9636 L_47025374: 9637 PUSH32(esp, ebx); /* 0x47025374: push ebx */ 9638 PUSH32(esp, ebx); /* 0x47025375: push ebx */ 9639 PUSH32(esp, ebx); /* 0x47025376: push ebx */ 9640 ecx = esp + 0x38; /* 0x47025377: lea ecx, [esp + 0x38] */ 9641 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x4702537B: mov dword ptr [esp + 0x68], 0xffffffff */ 9642 RECOMP_ICALL(0x470802D0u); /* 0x47025383: call 0x470802d0 */ /* not lifted */ 9643 RECOMP_FLAGS_IN(); 9644 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9645 eax = eax | 0xFFFFFFFFu; /* 0x47025388: or eax, 0xffffffff */ 9646 _cf = 0; 9647 _flag_k = FK_TEST; 9648 goto L_470254F7; /* 0x4702538B: jmp 0x470254f7 */ 9649 L_47025390: 9650 ecx = MEM32(esp + 0x30); /* 0x47025390: mov ecx, dword ptr [esp + 0x30] */ 9651 edx = MEM32(esp + 0x38); /* 0x47025394: mov edx, dword ptr [esp + 0x38] */ 9652 PUSH32(esp, ecx); /* 0x47025398: push ecx */ 9653 PUSH32(esp, edx); /* 0x47025399: push edx */ 9654 PUSH32(esp, esi); /* 0x4702539A: push esi */ 9655 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4702539B: call dword ptr [0x470ac22c] */ 9656 RECOMP_FLAGS_IN(); 9657 eax = MEM32(esp + 0x3C); /* 0x470253A1: mov eax, dword ptr [esp + 0x3c] */ 9658 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9659 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9660 esp = esp + 0xCu; /* 0x470253A5: add esp, 0xc */ 9661 _flag_k = FK_ADD; 9662 MEM8(eax + esi) = (uint8_t)(LO8(ebx)); /* 0x470253A8: mov byte ptr [eax + esi], bl */ 9663 L_470253AB: 9664 MEM32(esp + 0x10) = esi; /* 0x470253AB: mov dword ptr [esp + 0x10], esi */ 9665 MEM32(esp + 0x18) = ebx; /* 0x470253AF: mov dword ptr [esp + 0x18], ebx */ 9666 MEM32(esp + 0x1C) = ebx; /* 0x470253B3: mov dword ptr [esp + 0x1c], ebx */ 9667 eax = MEM32(edi + 0x8); /* 0x470253B7: mov eax, dword ptr [edi + 8] */ 9668 ecx = MEM32(edi + 0xC); /* 0x470253BA: mov ecx, dword ptr [edi + 0xc] */ 9669 edx = esp + 0x18; /* 0x470253BD: lea edx, [esp + 0x18] */ 9670 MEM32(ecx) = eax; /* 0x470253C1: mov dword ptr [ecx], eax */ 9671 PUSH32(esp, edx); /* 0x470253C3: push edx */ 9672 eax = esp + 0x14; /* 0x470253C4: lea eax, [esp + 0x14] */ 9673 PUSH32(esp, eax); /* 0x470253C8: push eax */ 9674 MEM8(esp + 0x64) = (uint8_t)(3); /* 0x470253C9: mov byte ptr [esp + 0x64], 3 */ 9675 RECOMP_ICALL(0x47027020u); /* 0x470253CE: call 0x47027020 */ /* not lifted */ 9676 RECOMP_FLAGS_IN(); 9677 /* test eax, eax */ /* 0x470253D3: test eax, eax */ 9678 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9679 _cf = 0; 9680 _flag_k = FK_TEST; 9681 if (TEST_Z(_flag_a, _flag_b)) goto L_470253F5; /* 0x470253D5: je 0x470253f5 */ 9682 L_470253D7: 9683 PUSH32(esp, ebx); /* 0x470253D7: push ebx */ 9684 PUSH32(esp, ebx); /* 0x470253D8: push ebx */ 9685 PUSH32(esp, ebx); /* 0x470253D9: push ebx */ 9686 ecx = esp + 0x38; /* 0x470253DA: lea ecx, [esp + 0x38] */ 9687 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470253DE: mov dword ptr [esp + 0x68], 0xffffffff */ 9688 RECOMP_ICALL(0x470802D0u); /* 0x470253E6: call 0x470802d0 */ /* not lifted */ 9689 RECOMP_FLAGS_IN(); 9690 eax = 0xFFFFFFFEu; /* 0x470253EB: mov eax, 0xfffffffe */ 9691 goto L_470254F7; /* 0x470253F0: jmp 0x470254f7 */ 9692 L_470253F5: 9693 ecx = MEM32(esp + 0x68); /* 0x470253F5: mov ecx, dword ptr [esp + 0x68] */ 9694 MEM32(esp + 0x14) = ecx; /* 0x470253F9: mov dword ptr [esp + 0x14], ecx */ 9695 MEM32(esp + 0x20) = 3; /* 0x470253FD: mov dword ptr [esp + 0x20], 3 */ 9696 MEM32(esp + 0x24) = ebx; /* 0x47025405: mov dword ptr [esp + 0x24], ebx */ 9697 MEM32(esp + 0x28) = ebx; /* 0x47025409: mov dword ptr [esp + 0x28], ebx */ 9698 eax = MEM32(edi + 0x8); /* 0x4702540D: mov eax, dword ptr [edi + 8] */ 9699 ecx = MEM32(esp + 0x18); /* 0x47025410: mov ecx, dword ptr [esp + 0x18] */ 9700 edx = esp + 0x20; /* 0x47025414: lea edx, [esp + 0x20] */ 9701 MEM32(ecx) = eax; /* 0x47025418: mov dword ptr [ecx], eax */ 9702 PUSH32(esp, edx); /* 0x4702541A: push edx */ 9703 eax = esp + 0x18; /* 0x4702541B: lea eax, [esp + 0x18] */ 9704 PUSH32(esp, eax); /* 0x4702541F: push eax */ 9705 MEM8(esp + 0x64) = (uint8_t)(5); /* 0x47025420: mov byte ptr [esp + 0x64], 5 */ 9706 RECOMP_ICALL(0x47026250u); /* 0x47025425: call 0x47026250 */ /* not lifted */ 9707 RECOMP_FLAGS_IN(); 9708 /* test eax, eax */ /* 0x4702542A: test eax, eax */ 9709 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9710 _cf = 0; 9711 _flag_k = FK_TEST; 9712 if (TEST_Z(_flag_a, _flag_b)) goto L_4702544C; /* 0x4702542C: je 0x4702544c */ 9713 L_4702542E: 9714 PUSH32(esp, ebx); /* 0x4702542E: push ebx */ 9715 PUSH32(esp, ebx); /* 0x4702542F: push ebx */ 9716 PUSH32(esp, ebx); /* 0x47025430: push ebx */ 9717 ecx = esp + 0x38; /* 0x47025431: lea ecx, [esp + 0x38] */ 9718 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47025435: mov dword ptr [esp + 0x68], 0xffffffff */ 9719 RECOMP_ICALL(0x470802D0u); /* 0x4702543D: call 0x470802d0 */ /* not lifted */ 9720 RECOMP_FLAGS_IN(); 9721 eax = 0xFFFFFFFDu; /* 0x47025442: mov eax, 0xfffffffd */ 9722 goto L_470254F7; /* 0x47025447: jmp 0x470254f7 */ 9723 L_4702544C: 9724 /* cmp MEM32(esp + 0x20), ebx */ /* 0x4702544C: cmp dword ptr [esp + 0x20], ebx */ 9725 _flag_a = (uint32_t)(MEM32(esp + 0x20)); _flag_b = (uint32_t)(ebx); 9726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9727 _flag_k = FK_CMP; 9728 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025470; /* 0x47025450: je 0x47025470 */ 9729 L_47025452: 9730 PUSH32(esp, ebx); /* 0x47025452: push ebx */ 9731 PUSH32(esp, ebx); /* 0x47025453: push ebx */ 9732 PUSH32(esp, ebx); /* 0x47025454: push ebx */ 9733 ecx = esp + 0x38; /* 0x47025455: lea ecx, [esp + 0x38] */ 9734 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47025459: mov dword ptr [esp + 0x68], 0xffffffff */ 9735 RECOMP_ICALL(0x470802D0u); /* 0x47025461: call 0x470802d0 */ /* not lifted */ 9736 RECOMP_FLAGS_IN(); 9737 eax = 0xFFFFFFFCu; /* 0x47025466: mov eax, 0xfffffffc */ 9738 goto L_470254F7; /* 0x4702546B: jmp 0x470254f7 */ 9739 L_47025470: 9740 esi = MEM32(esp + 0x24); /* 0x47025470: mov esi, dword ptr [esp + 0x24] */ 9741 RECOMP_ICALL(0x4703DAC0u); /* 0x47025474: call 0x4703dac0 */ /* not lifted */ 9742 RECOMP_FLAGS_IN(); 9743 /* cmp esi, ebx */ /* 0x47025479: cmp esi, ebx */ 9744 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9746 _flag_k = FK_CMP; 9747 MEM32(esp + 0x40) = eax; /* 0x4702547B: mov dword ptr [esp + 0x40], eax */ 9748 MEM32(esp + 0x44) = ebx; /* 0x4702547F: mov dword ptr [esp + 0x44], ebx */ 9749 MEM32(esp + 0x48) = ebx; /* 0x47025483: mov dword ptr [esp + 0x48], ebx */ 9750 MEM32(esp + 0x4C) = ebx; /* 0x47025487: mov dword ptr [esp + 0x4c], ebx */ 9751 MEM32(esp + 0x50) = ebx; /* 0x4702548B: mov dword ptr [esp + 0x50], ebx */ 9752 if (CMP_EQ(_flag_a, _flag_b)) goto L_4702549F; /* 0x4702548F: je 0x4702549f */ 9753 L_47025491: 9754 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9755 ecx = ecx | 0xFFFFFFFFu; /* 0x47025491: or ecx, 0xffffffff */ 9756 _cf = 0; 9757 _flag_k = FK_TEST; 9758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9759 eax = 0; /* 0x47025494: xor eax, eax */ 9760 _cf = 0; 9761 _flag_k = FK_TEST; 9762 edi = esi; /* 0x47025496: mov edi, esi */ 9763 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; } /* 0x47025498: repne scasb al, byte ptr es:[edi] */ 9764 ecx = ~ecx; /* 0x4702549A: not ecx */ 9765 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9766 ecx = ecx - 1; /* 0x4702549C: dec ecx */ 9767 _flag_k = FK_DEC; 9768 goto L_470254A1; /* 0x4702549D: jmp 0x470254a1 */ 9769 L_4702549F: 9770 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9771 ecx = 0; /* 0x4702549F: xor ecx, ecx */ 9772 _cf = 0; 9773 _flag_k = FK_TEST; 9774 L_470254A1: 9775 PUSH32(esp, 1); /* 0x470254A1: push 1 */ 9776 PUSH32(esp, ecx); /* 0x470254A3: push ecx */ 9777 PUSH32(esp, esi); /* 0x470254A4: push esi */ 9778 ecx = esp + 0x4C; /* 0x470254A5: lea ecx, [esp + 0x4c] */ 9779 RECOMP_ICALL(0x470802D0u); /* 0x470254A9: call 0x470802d0 */ /* not lifted */ 9780 RECOMP_FLAGS_IN(); 9781 ecx = MEM32(esp + 0x6C); /* 0x470254AE: mov ecx, dword ptr [esp + 0x6c] */ 9782 edx = esp + 0x40; /* 0x470254B2: lea edx, [esp + 0x40] */ 9783 /* cmp ecx, edx */ /* 0x470254B6: cmp ecx, edx */ 9784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 9785 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9786 _flag_k = FK_CMP; 9787 MEM8(esp + 0x5C) = (uint8_t)(6); /* 0x470254B8: mov byte ptr [esp + 0x5c], 6 */ 9788 if (CMP_EQ(_flag_a, _flag_b)) goto L_470254D0; /* 0x470254BD: je 0x470254d0 */ 9789 L_470254BF: 9790 eax = MEM32(esp + 0x44); /* 0x470254BF: mov eax, dword ptr [esp + 0x44] */ 9791 edx = MEM32(esp + 0x4C); /* 0x470254C3: mov edx, dword ptr [esp + 0x4c] */ 9792 PUSH32(esp, 1); /* 0x470254C7: push 1 */ 9793 PUSH32(esp, eax); /* 0x470254C9: push eax */ 9794 PUSH32(esp, edx); /* 0x470254CA: push edx */ 9795 RECOMP_ICALL(0x470802D0u); /* 0x470254CB: call 0x470802d0 */ /* not lifted */ 9796 RECOMP_FLAGS_IN(); 9797 L_470254D0: 9798 PUSH32(esp, ebx); /* 0x470254D0: push ebx */ 9799 PUSH32(esp, ebx); /* 0x470254D1: push ebx */ 9800 PUSH32(esp, ebx); /* 0x470254D2: push ebx */ 9801 ecx = esp + 0x4C; /* 0x470254D3: lea ecx, [esp + 0x4c] */ 9802 MEM8(esp + 0x68) = (uint8_t)(5); /* 0x470254D7: mov byte ptr [esp + 0x68], 5 */ 9803 RECOMP_ICALL(0x470802D0u); /* 0x470254DC: call 0x470802d0 */ /* not lifted */ 9804 RECOMP_FLAGS_IN(); 9805 PUSH32(esp, ebx); /* 0x470254E1: push ebx */ 9806 PUSH32(esp, ebx); /* 0x470254E2: push ebx */ 9807 PUSH32(esp, ebx); /* 0x470254E3: push ebx */ 9808 ecx = esp + 0x38; /* 0x470254E4: lea ecx, [esp + 0x38] */ 9809 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470254E8: mov dword ptr [esp + 0x68], 0xffffffff */ 9810 RECOMP_ICALL(0x470802D0u); /* 0x470254F0: call 0x470802d0 */ /* not lifted */ 9811 RECOMP_FLAGS_IN(); 9812 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9813 eax = 0; /* 0x470254F5: xor eax, eax */ 9814 _cf = 0; 9815 _flag_k = FK_TEST; 9816 L_470254F7: 9817 ecx = MEM32(esp + 0x54); /* 0x470254F7: mov ecx, dword ptr [esp + 0x54] */ 9818 edi = POP32_VAL(esp); /* 0x470254FB: pop edi */ 9819 esi = POP32_VAL(esp); /* 0x470254FC: pop esi */ 9820 ebp = POP32_VAL(esp); /* 0x470254FD: pop ebp */ 9821 ebx = POP32_VAL(esp); /* 0x470254FE: pop ebx */ 9822 MEM32(FS_BASE + (0)) = ecx; /* 0x470254FF: mov dword ptr fs:[0], ecx */ 9823 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 9824 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9825 esp = esp + 0x50u; /* 0x47025506: add esp, 0x50 */ 9826 _flag_k = FK_ADD; 9827 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47025509: ret 0xc */ 9828 RECOMP_REGS_OUT(); 9829 } 9830 9831 void sub_470254F7(void) { 9832 int _fpu_cmp = 0; 9833 uint32_t _cf = 0; 9834 int _df = 1; 9835 uint32_t _flag_k = FK_NONE; 9836 uint32_t _flag_a = 0, _flag_b = 0; 9837 uint32_t _itail_tgt = 0; 9838 RECOMP_REGS_LOCALS 9839 RECOMP_ENTER(0x470254F7u); 9840 9841 L_470254F7: 9842 ecx = MEM32(esp + 0x54); /* 0x470254F7: mov ecx, dword ptr [esp + 0x54] */ 9843 edi = POP32_VAL(esp); /* 0x470254FB: pop edi */ 9844 esi = POP32_VAL(esp); /* 0x470254FC: pop esi */ 9845 ebp = POP32_VAL(esp); /* 0x470254FD: pop ebp */ 9846 ebx = POP32_VAL(esp); /* 0x470254FE: pop ebx */ 9847 MEM32(FS_BASE + (0)) = ecx; /* 0x470254FF: mov dword ptr fs:[0], ecx */ 9848 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 9849 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9850 esp = esp + 0x50u; /* 0x47025506: add esp, 0x50 */ 9851 _flag_k = FK_ADD; 9852 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47025509: ret 0xc */ 9853 RECOMP_REGS_OUT(); 9854 } 9855 9856 void sub_47025510(void) { 9857 int _fpu_cmp = 0; 9858 uint32_t _cf = 0; 9859 int _df = 1; 9860 uint32_t _flag_k = FK_NONE; 9861 uint32_t _flag_a = 0, _flag_b = 0; 9862 uint32_t _itail_tgt = 0; 9863 RECOMP_REGS_LOCALS 9864 RECOMP_ENTER(0x47025510u); 9865 9866 L_47025510: 9867 eax = MEM32(FS_BASE + (0)); /* 0x47025510: mov eax, dword ptr fs:[0] */ 9868 PUSH32(esp, 0xFFFFFFFFu); /* 0x47025516: push -1 */ 9869 PUSH32(esp, 0x470A4BA0u); /* 0x47025518: push 0x470a4ba0 */ 9870 PUSH32(esp, eax); /* 0x4702551D: push eax */ 9871 eax = MEM32(esp + 0x14); /* 0x4702551E: mov eax, dword ptr [esp + 0x14] */ 9872 MEM32(FS_BASE + (0)) = esp; /* 0x47025522: mov dword ptr fs:[0], esp */ 9873 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 9874 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9875 esp = esp - 0x44u; /* 0x47025529: sub esp, 0x44 */ 9876 _flag_k = FK_CMP; 9877 PUSH32(esp, ebx); /* 0x4702552C: push ebx */ 9878 PUSH32(esp, ebp); /* 0x4702552D: push ebp */ 9879 PUSH32(esp, esi); /* 0x4702552E: push esi */ 9880 PUSH32(esp, edi); /* 0x4702552F: push edi */ 9881 edi = ecx; /* 0x47025530: mov edi, ecx */ 9882 SET_LO8(ecx, MEM8(eax)); /* 0x47025532: mov cl, byte ptr [eax] */ 9883 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9884 ebx = 0; /* 0x47025534: xor ebx, ebx */ 9885 _cf = 0; 9886 _flag_k = FK_TEST; 9887 /* cmp LO8(ecx), LO8(ebx) */ /* 0x47025536: cmp cl, bl */ 9888 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9890 _flag_k = FK_NARROW(FK_CMP, 24); 9891 esi = eax; /* 0x47025538: mov esi, eax */ 9892 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025560; /* 0x4702553A: je 0x47025560 */ 9893 L_4702553C: 9894 ebp = MEM32(0x470AC380); /* 0x4702553C: mov ebp, dword ptr [0x470ac380] */ 9895 L_47025542: 9896 eax = (int32_t)(int8_t)MEM8(esi); /* 0x47025542: movsx eax, byte ptr [esi] */ 9897 PUSH32(esp, eax); /* 0x47025545: push eax */ 9898 PUSH32(esp, 0x47105AACu); /* 0x47025546: push 0x47105aac */ 9899 RECOMP_ICALL(ebp); /* 0x4702554B: call ebp */ 9900 RECOMP_FLAGS_IN(); 9901 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9902 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9903 esp = esp + 8; /* 0x4702554D: add esp, 8 */ 9904 _flag_k = FK_ADD; 9905 /* test eax, eax */ /* 0x47025550: test eax, eax */ 9906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9907 _cf = 0; 9908 _flag_k = FK_TEST; 9909 if (TEST_NZ(_flag_a, _flag_b)) goto L_4702556A; /* 0x47025552: jne 0x4702556a */ 9910 L_47025554: 9911 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x47025554: mov al, byte ptr [esi + 1] */ 9912 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 9913 esi = esi + 1; /* 0x47025557: inc esi */ 9914 _flag_k = FK_INC; 9915 /* cmp LO8(eax), LO8(ebx) */ /* 0x47025558: cmp al, bl */ 9916 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 9917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9918 _flag_k = FK_NARROW(FK_CMP, 24); 9919 RECOMP_BACKEDGE(); 9920 if (CMP_NE(_flag_a, _flag_b)) goto L_47025542; /* 0x4702555A: jne 0x47025542 */ 9921 L_4702555C: 9922 eax = MEM32(esp + 0x68); /* 0x4702555C: mov eax, dword ptr [esp + 0x68] */ 9923 L_47025560: 9924 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 9925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9926 esi = esi - eax; /* 0x47025560: sub esi, eax */ 9927 _flag_k = FK_CMP; 9928 /* cmp esi, 0xFFu */ /* 0x47025562: cmp esi, 0xff */ 9929 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 9930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9931 _flag_k = FK_CMP; 9932 if (CMP_LE(_flag_a, _flag_b)) goto L_47025572; /* 0x47025568: jle 0x47025572 */ 9933 L_4702556A: 9934 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 9935 eax = eax | 0xFFFFFFFFu; /* 0x4702556A: or eax, 0xffffffff */ 9936 _cf = 0; 9937 _flag_k = FK_TEST; 9938 goto L_4702570B; /* 0x4702556D: jmp 0x4702570b */ 9939 L_47025572: 9940 RECOMP_ICALL(0x4703DAC0u); /* 0x47025572: call 0x4703dac0 */ /* not lifted */ 9941 RECOMP_FLAGS_IN(); 9942 MEM32(esp + 0x2C) = eax; /* 0x47025577: mov dword ptr [esp + 0x2c], eax */ 9943 MEM32(esp + 0x30) = ebx; /* 0x4702557B: mov dword ptr [esp + 0x30], ebx */ 9944 MEM32(esp + 0x34) = ebx; /* 0x4702557F: mov dword ptr [esp + 0x34], ebx */ 9945 MEM32(esp + 0x38) = 0x4710F078u; /* 0x47025583: mov dword ptr [esp + 0x38], 0x4710f078 */ 9946 MEM32(esp + 0x3C) = ebx; /* 0x4702558B: mov dword ptr [esp + 0x3c], ebx */ 9947 eax = MEM32(esp + 0x64); /* 0x4702558F: mov eax, dword ptr [esp + 0x64] */ 9948 eax = MEM32(eax); /* 0x47025593: mov eax, dword ptr [eax] */ 9949 /* cmp eax, ebx */ /* 0x47025595: cmp eax, ebx */ 9950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 9951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9952 _flag_k = FK_CMP; 9953 MEM32(esp + 0x5C) = ebx; /* 0x47025597: mov dword ptr [esp + 0x5c], ebx */ 9954 if (CMP_EQ(_flag_a, _flag_b)) goto L_470255F4; /* 0x4702559B: je 0x470255f4 */ 9955 L_4702559D: 9956 ecx = MEM32(eax + 0x8); /* 0x4702559D: mov ecx, dword ptr [eax + 8] */ 9957 PUSH32(esp, 1); /* 0x470255A0: push 1 */ 9958 PUSH32(esp, ebx); /* 0x470255A2: push ebx */ 9959 PUSH32(esp, ecx); /* 0x470255A3: push ecx */ 9960 ecx = esp + 0x4C; /* 0x470255A4: lea ecx, [esp + 0x4c] */ 9961 RECOMP_ICALL(0x47007130u); /* 0x470255A8: call 0x47007130 */ /* not lifted */ 9962 RECOMP_FLAGS_IN(); 9963 edx = esp + 0x40; /* 0x470255AD: lea edx, [esp + 0x40] */ 9964 PUSH32(esp, edx); /* 0x470255B1: push edx */ 9965 ecx = esp + 0x30; /* 0x470255B2: lea ecx, [esp + 0x30] */ 9966 MEM8(esp + 0x60) = (uint8_t)(1); /* 0x470255B6: mov byte ptr [esp + 0x60], 1 */ 9967 RECOMP_ICALL(0x47007250u); /* 0x470255BB: call 0x47007250 */ /* not lifted */ 9968 RECOMP_FLAGS_IN(); 9969 PUSH32(esp, ebx); /* 0x470255C0: push ebx */ 9970 PUSH32(esp, ebx); /* 0x470255C1: push ebx */ 9971 PUSH32(esp, ebx); /* 0x470255C2: push ebx */ 9972 ecx = esp + 0x4C; /* 0x470255C3: lea ecx, [esp + 0x4c] */ 9973 MEM8(esp + 0x68) = (uint8_t)(LO8(ebx)); /* 0x470255C7: mov byte ptr [esp + 0x68], bl */ 9974 RECOMP_ICALL(0x470802D0u); /* 0x470255CB: call 0x470802d0 */ /* not lifted */ 9975 RECOMP_FLAGS_IN(); 9976 eax = MEM32(esp + 0x30); /* 0x470255D0: mov eax, dword ptr [esp + 0x30] */ 9977 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9978 eax = eax + 1; /* 0x470255D4: inc eax */ 9979 _flag_k = FK_INC; 9980 PUSH32(esp, eax); /* 0x470255D5: push eax */ 9981 RECOMP_ICALL(0x470A33F2u); /* 0x470255D6: call 0x470a33f2 */ /* not lifted */ 9982 RECOMP_FLAGS_IN(); 9983 esi = eax; /* 0x470255DB: mov esi, eax */ 9984 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9985 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9986 esp = esp + 4; /* 0x470255DD: add esp, 4 */ 9987 _flag_k = FK_ADD; 9988 /* cmp esi, ebx */ /* 0x470255E0: cmp esi, ebx */ 9989 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 9990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9991 _flag_k = FK_CMP; 9992 if (CMP_NE(_flag_a, _flag_b)) goto L_47025610; /* 0x470255E2: jne 0x47025610 */ 9993 L_470255E4: 9994 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470255E4: call dword ptr [0x470ac3c8] */ 9995 RECOMP_FLAGS_IN(); 9996 MEM32(eax) = 0xCu; /* 0x470255EA: mov dword ptr [eax], 0xc */ 9997 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9998 esi = 0; /* 0x470255F0: xor esi, esi */ 9999 _cf = 0; 10000 _flag_k = FK_TEST; 10001 goto L_4702562B; /* 0x470255F2: jmp 0x4702562b */ 10002 L_470255F4: 10003 PUSH32(esp, ebx); /* 0x470255F4: push ebx */ 10004 PUSH32(esp, ebx); /* 0x470255F5: push ebx */ 10005 PUSH32(esp, ebx); /* 0x470255F6: push ebx */ 10006 ecx = esp + 0x38; /* 0x470255F7: lea ecx, [esp + 0x38] */ 10007 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470255FB: mov dword ptr [esp + 0x68], 0xffffffff */ 10008 RECOMP_ICALL(0x470802D0u); /* 0x47025603: call 0x470802d0 */ /* not lifted */ 10009 RECOMP_FLAGS_IN(); 10010 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10011 eax = eax | 0xFFFFFFFFu; /* 0x47025608: or eax, 0xffffffff */ 10012 _cf = 0; 10013 _flag_k = FK_TEST; 10014 goto L_4702570B; /* 0x4702560B: jmp 0x4702570b */ 10015 L_47025610: 10016 ecx = MEM32(esp + 0x30); /* 0x47025610: mov ecx, dword ptr [esp + 0x30] */ 10017 edx = MEM32(esp + 0x38); /* 0x47025614: mov edx, dword ptr [esp + 0x38] */ 10018 PUSH32(esp, ecx); /* 0x47025618: push ecx */ 10019 PUSH32(esp, edx); /* 0x47025619: push edx */ 10020 PUSH32(esp, esi); /* 0x4702561A: push esi */ 10021 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4702561B: call dword ptr [0x470ac22c] */ 10022 RECOMP_FLAGS_IN(); 10023 eax = MEM32(esp + 0x3C); /* 0x47025621: mov eax, dword ptr [esp + 0x3c] */ 10024 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10025 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10026 esp = esp + 0xCu; /* 0x47025625: add esp, 0xc */ 10027 _flag_k = FK_ADD; 10028 MEM8(eax + esi) = (uint8_t)(LO8(ebx)); /* 0x47025628: mov byte ptr [eax + esi], bl */ 10029 L_4702562B: 10030 MEM32(esp + 0x10) = esi; /* 0x4702562B: mov dword ptr [esp + 0x10], esi */ 10031 MEM32(esp + 0x18) = ebx; /* 0x4702562F: mov dword ptr [esp + 0x18], ebx */ 10032 MEM32(esp + 0x1C) = ebx; /* 0x47025633: mov dword ptr [esp + 0x1c], ebx */ 10033 eax = MEM32(edi + 0x8); /* 0x47025637: mov eax, dword ptr [edi + 8] */ 10034 ecx = MEM32(edi + 0xC); /* 0x4702563A: mov ecx, dword ptr [edi + 0xc] */ 10035 edx = esp + 0x18; /* 0x4702563D: lea edx, [esp + 0x18] */ 10036 MEM32(ecx) = eax; /* 0x47025641: mov dword ptr [ecx], eax */ 10037 PUSH32(esp, edx); /* 0x47025643: push edx */ 10038 eax = esp + 0x14; /* 0x47025644: lea eax, [esp + 0x14] */ 10039 PUSH32(esp, eax); /* 0x47025648: push eax */ 10040 MEM8(esp + 0x64) = (uint8_t)(3); /* 0x47025649: mov byte ptr [esp + 0x64], 3 */ 10041 RECOMP_ICALL(0x47027020u); /* 0x4702564E: call 0x47027020 */ /* not lifted */ 10042 RECOMP_FLAGS_IN(); 10043 /* test eax, eax */ /* 0x47025653: test eax, eax */ 10044 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10045 _cf = 0; 10046 _flag_k = FK_TEST; 10047 if (TEST_Z(_flag_a, _flag_b)) goto L_47025675; /* 0x47025655: je 0x47025675 */ 10048 L_47025657: 10049 PUSH32(esp, ebx); /* 0x47025657: push ebx */ 10050 PUSH32(esp, ebx); /* 0x47025658: push ebx */ 10051 PUSH32(esp, ebx); /* 0x47025659: push ebx */ 10052 ecx = esp + 0x38; /* 0x4702565A: lea ecx, [esp + 0x38] */ 10053 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x4702565E: mov dword ptr [esp + 0x68], 0xffffffff */ 10054 RECOMP_ICALL(0x470802D0u); /* 0x47025666: call 0x470802d0 */ /* not lifted */ 10055 RECOMP_FLAGS_IN(); 10056 eax = 0xFFFFFFFEu; /* 0x4702566B: mov eax, 0xfffffffe */ 10057 goto L_4702570B; /* 0x47025670: jmp 0x4702570b */ 10058 L_47025675: 10059 ecx = MEM32(esp + 0x68); /* 0x47025675: mov ecx, dword ptr [esp + 0x68] */ 10060 MEM32(esp + 0x14) = ecx; /* 0x47025679: mov dword ptr [esp + 0x14], ecx */ 10061 MEM32(esp + 0x20) = 3; /* 0x4702567D: mov dword ptr [esp + 0x20], 3 */ 10062 MEM32(esp + 0x24) = ebx; /* 0x47025685: mov dword ptr [esp + 0x24], ebx */ 10063 MEM32(esp + 0x28) = ebx; /* 0x47025689: mov dword ptr [esp + 0x28], ebx */ 10064 eax = MEM32(edi + 0x8); /* 0x4702568D: mov eax, dword ptr [edi + 8] */ 10065 ecx = MEM32(esp + 0x18); /* 0x47025690: mov ecx, dword ptr [esp + 0x18] */ 10066 edx = esp + 0x20; /* 0x47025694: lea edx, [esp + 0x20] */ 10067 MEM32(ecx) = eax; /* 0x47025698: mov dword ptr [ecx], eax */ 10068 PUSH32(esp, edx); /* 0x4702569A: push edx */ 10069 eax = esp + 0x18; /* 0x4702569B: lea eax, [esp + 0x18] */ 10070 PUSH32(esp, eax); /* 0x4702569F: push eax */ 10071 MEM8(esp + 0x64) = (uint8_t)(5); /* 0x470256A0: mov byte ptr [esp + 0x64], 5 */ 10072 RECOMP_ICALL(0x47026250u); /* 0x470256A5: call 0x47026250 */ /* not lifted */ 10073 RECOMP_FLAGS_IN(); 10074 /* test eax, eax */ /* 0x470256AA: test eax, eax */ 10075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10076 _cf = 0; 10077 _flag_k = FK_TEST; 10078 if (TEST_Z(_flag_a, _flag_b)) goto L_470256C9; /* 0x470256AC: je 0x470256c9 */ 10079 L_470256AE: 10080 PUSH32(esp, ebx); /* 0x470256AE: push ebx */ 10081 PUSH32(esp, ebx); /* 0x470256AF: push ebx */ 10082 PUSH32(esp, ebx); /* 0x470256B0: push ebx */ 10083 ecx = esp + 0x38; /* 0x470256B1: lea ecx, [esp + 0x38] */ 10084 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470256B5: mov dword ptr [esp + 0x68], 0xffffffff */ 10085 RECOMP_ICALL(0x470802D0u); /* 0x470256BD: call 0x470802d0 */ /* not lifted */ 10086 RECOMP_FLAGS_IN(); 10087 eax = 0xFFFFFFFDu; /* 0x470256C2: mov eax, 0xfffffffd */ 10088 goto L_4702570B; /* 0x470256C7: jmp 0x4702570b */ 10089 L_470256C9: 10090 /* cmp MEM32(esp + 0x20), 1 */ /* 0x470256C9: cmp dword ptr [esp + 0x20], 1 */ 10091 _flag_a = (uint32_t)(MEM32(esp + 0x20)); _flag_b = (uint32_t)(1); 10092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10093 _flag_k = FK_CMP; 10094 if (CMP_EQ(_flag_a, _flag_b)) goto L_470256EB; /* 0x470256CE: je 0x470256eb */ 10095 L_470256D0: 10096 PUSH32(esp, ebx); /* 0x470256D0: push ebx */ 10097 PUSH32(esp, ebx); /* 0x470256D1: push ebx */ 10098 PUSH32(esp, ebx); /* 0x470256D2: push ebx */ 10099 ecx = esp + 0x38; /* 0x470256D3: lea ecx, [esp + 0x38] */ 10100 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470256D7: mov dword ptr [esp + 0x68], 0xffffffff */ 10101 RECOMP_ICALL(0x470802D0u); /* 0x470256DF: call 0x470802d0 */ /* not lifted */ 10102 RECOMP_FLAGS_IN(); 10103 eax = 0xFFFFFFFCu; /* 0x470256E4: mov eax, 0xfffffffc */ 10104 goto L_4702570B; /* 0x470256E9: jmp 0x4702570b */ 10105 L_470256EB: 10106 ecx = MEM32(esp + 0x6C); /* 0x470256EB: mov ecx, dword ptr [esp + 0x6c] */ 10107 edx = MEM32(esp + 0x24); /* 0x470256EF: mov edx, dword ptr [esp + 0x24] */ 10108 PUSH32(esp, ebx); /* 0x470256F3: push ebx */ 10109 PUSH32(esp, ebx); /* 0x470256F4: push ebx */ 10110 MEM32(ecx) = edx; /* 0x470256F5: mov dword ptr [ecx], edx */ 10111 PUSH32(esp, ebx); /* 0x470256F7: push ebx */ 10112 ecx = esp + 0x38; /* 0x470256F8: lea ecx, [esp + 0x38] */ 10113 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470256FC: mov dword ptr [esp + 0x68], 0xffffffff */ 10114 RECOMP_ICALL(0x470802D0u); /* 0x47025704: call 0x470802d0 */ /* not lifted */ 10115 RECOMP_FLAGS_IN(); 10116 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10117 eax = 0; /* 0x47025709: xor eax, eax */ 10118 _cf = 0; 10119 _flag_k = FK_TEST; 10120 L_4702570B: 10121 ecx = MEM32(esp + 0x54); /* 0x4702570B: mov ecx, dword ptr [esp + 0x54] */ 10122 edi = POP32_VAL(esp); /* 0x4702570F: pop edi */ 10123 esi = POP32_VAL(esp); /* 0x47025710: pop esi */ 10124 ebp = POP32_VAL(esp); /* 0x47025711: pop ebp */ 10125 ebx = POP32_VAL(esp); /* 0x47025712: pop ebx */ 10126 MEM32(FS_BASE + (0)) = ecx; /* 0x47025713: mov dword ptr fs:[0], ecx */ 10127 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 10128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10129 esp = esp + 0x50u; /* 0x4702571A: add esp, 0x50 */ 10130 _flag_k = FK_ADD; 10131 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702571D: ret 0xc */ 10132 RECOMP_REGS_OUT(); 10133 } 10134 10135 void sub_4702570B(void) { 10136 int _fpu_cmp = 0; 10137 uint32_t _cf = 0; 10138 int _df = 1; 10139 uint32_t _flag_k = FK_NONE; 10140 uint32_t _flag_a = 0, _flag_b = 0; 10141 uint32_t _itail_tgt = 0; 10142 RECOMP_REGS_LOCALS 10143 RECOMP_ENTER(0x4702570Bu); 10144 10145 L_4702570B: 10146 ecx = MEM32(esp + 0x54); /* 0x4702570B: mov ecx, dword ptr [esp + 0x54] */ 10147 edi = POP32_VAL(esp); /* 0x4702570F: pop edi */ 10148 esi = POP32_VAL(esp); /* 0x47025710: pop esi */ 10149 ebp = POP32_VAL(esp); /* 0x47025711: pop ebp */ 10150 ebx = POP32_VAL(esp); /* 0x47025712: pop ebx */ 10151 MEM32(FS_BASE + (0)) = ecx; /* 0x47025713: mov dword ptr fs:[0], ecx */ 10152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 10153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10154 esp = esp + 0x50u; /* 0x4702571A: add esp, 0x50 */ 10155 _flag_k = FK_ADD; 10156 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4702571D: ret 0xc */ 10157 RECOMP_REGS_OUT(); 10158 } 10159 10160 void sub_47025720(void) { 10161 int _fpu_cmp = 0; 10162 uint32_t _cf = 0; 10163 int _df = 1; 10164 uint32_t _flag_k = FK_NONE; 10165 uint32_t _flag_a = 0, _flag_b = 0; 10166 uint32_t _itail_tgt = 0; 10167 RECOMP_REGS_LOCALS 10168 RECOMP_ENTER(0x47025720u); 10169 10170 L_47025720: 10171 eax = MEM32(FS_BASE + (0)); /* 0x47025720: mov eax, dword ptr fs:[0] */ 10172 PUSH32(esp, 0xFFFFFFFFu); /* 0x47025726: push -1 */ 10173 PUSH32(esp, 0x470A4BE0u); /* 0x47025728: push 0x470a4be0 */ 10174 PUSH32(esp, eax); /* 0x4702572D: push eax */ 10175 eax = MEM32(esp + 0x14); /* 0x4702572E: mov eax, dword ptr [esp + 0x14] */ 10176 MEM32(FS_BASE + (0)) = esp; /* 0x47025732: mov dword ptr fs:[0], esp */ 10177 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x44u); 10178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10179 esp = esp - 0x44u; /* 0x47025739: sub esp, 0x44 */ 10180 _flag_k = FK_CMP; 10181 PUSH32(esp, ebx); /* 0x4702573C: push ebx */ 10182 PUSH32(esp, ebp); /* 0x4702573D: push ebp */ 10183 PUSH32(esp, esi); /* 0x4702573E: push esi */ 10184 PUSH32(esp, edi); /* 0x4702573F: push edi */ 10185 edi = ecx; /* 0x47025740: mov edi, ecx */ 10186 SET_LO8(ecx, MEM8(eax)); /* 0x47025742: mov cl, byte ptr [eax] */ 10187 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10188 ebx = 0; /* 0x47025744: xor ebx, ebx */ 10189 _cf = 0; 10190 _flag_k = FK_TEST; 10191 /* cmp LO8(ecx), LO8(ebx) */ /* 0x47025746: cmp cl, bl */ 10192 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10194 _flag_k = FK_NARROW(FK_CMP, 24); 10195 esi = eax; /* 0x47025748: mov esi, eax */ 10196 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025770; /* 0x4702574A: je 0x47025770 */ 10197 L_4702574C: 10198 ebp = MEM32(0x470AC380); /* 0x4702574C: mov ebp, dword ptr [0x470ac380] */ 10199 L_47025752: 10200 eax = (int32_t)(int8_t)MEM8(esi); /* 0x47025752: movsx eax, byte ptr [esi] */ 10201 PUSH32(esp, eax); /* 0x47025755: push eax */ 10202 PUSH32(esp, 0x47105AACu); /* 0x47025756: push 0x47105aac */ 10203 RECOMP_ICALL(ebp); /* 0x4702575B: call ebp */ 10204 RECOMP_FLAGS_IN(); 10205 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10206 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10207 esp = esp + 8; /* 0x4702575D: add esp, 8 */ 10208 _flag_k = FK_ADD; 10209 /* test eax, eax */ /* 0x47025760: test eax, eax */ 10210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10211 _cf = 0; 10212 _flag_k = FK_TEST; 10213 if (TEST_NZ(_flag_a, _flag_b)) goto L_4702577A; /* 0x47025762: jne 0x4702577a */ 10214 L_47025764: 10215 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x47025764: mov al, byte ptr [esi + 1] */ 10216 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 10217 esi = esi + 1; /* 0x47025767: inc esi */ 10218 _flag_k = FK_INC; 10219 /* cmp LO8(eax), LO8(ebx) */ /* 0x47025768: cmp al, bl */ 10220 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10222 _flag_k = FK_NARROW(FK_CMP, 24); 10223 RECOMP_BACKEDGE(); 10224 if (CMP_NE(_flag_a, _flag_b)) goto L_47025752; /* 0x4702576A: jne 0x47025752 */ 10225 L_4702576C: 10226 eax = MEM32(esp + 0x68); /* 0x4702576C: mov eax, dword ptr [esp + 0x68] */ 10227 L_47025770: 10228 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 10229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10230 esi = esi - eax; /* 0x47025770: sub esi, eax */ 10231 _flag_k = FK_CMP; 10232 /* cmp esi, 0xFFu */ /* 0x47025772: cmp esi, 0xff */ 10233 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 10234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10235 _flag_k = FK_CMP; 10236 if (CMP_LE(_flag_a, _flag_b)) goto L_47025782; /* 0x47025778: jle 0x47025782 */ 10237 L_4702577A: 10238 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10239 eax = eax | 0xFFFFFFFFu; /* 0x4702577A: or eax, 0xffffffff */ 10240 _cf = 0; 10241 _flag_k = FK_TEST; 10242 goto L_47025972; /* 0x4702577D: jmp 0x47025972 */ 10243 L_47025782: 10244 RECOMP_ICALL(0x4703DAC0u); /* 0x47025782: call 0x4703dac0 */ /* not lifted */ 10245 RECOMP_FLAGS_IN(); 10246 MEM32(esp + 0x2C) = eax; /* 0x47025787: mov dword ptr [esp + 0x2c], eax */ 10247 MEM32(esp + 0x30) = ebx; /* 0x4702578B: mov dword ptr [esp + 0x30], ebx */ 10248 MEM32(esp + 0x34) = ebx; /* 0x4702578F: mov dword ptr [esp + 0x34], ebx */ 10249 MEM32(esp + 0x38) = 0x4710F078u; /* 0x47025793: mov dword ptr [esp + 0x38], 0x4710f078 */ 10250 MEM32(esp + 0x3C) = ebx; /* 0x4702579B: mov dword ptr [esp + 0x3c], ebx */ 10251 eax = MEM32(esp + 0x64); /* 0x4702579F: mov eax, dword ptr [esp + 0x64] */ 10252 eax = MEM32(eax); /* 0x470257A3: mov eax, dword ptr [eax] */ 10253 /* cmp eax, ebx */ /* 0x470257A5: cmp eax, ebx */ 10254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10256 _flag_k = FK_CMP; 10257 MEM32(esp + 0x5C) = ebx; /* 0x470257A7: mov dword ptr [esp + 0x5c], ebx */ 10258 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025806; /* 0x470257AB: je 0x47025806 */ 10259 L_470257AD: 10260 ecx = MEM32(eax + 0x8); /* 0x470257AD: mov ecx, dword ptr [eax + 8] */ 10261 PUSH32(esp, 1); /* 0x470257B0: push 1 */ 10262 PUSH32(esp, ebx); /* 0x470257B2: push ebx */ 10263 PUSH32(esp, ecx); /* 0x470257B3: push ecx */ 10264 ecx = esp + 0x4C; /* 0x470257B4: lea ecx, [esp + 0x4c] */ 10265 RECOMP_ICALL(0x47007130u); /* 0x470257B8: call 0x47007130 */ /* not lifted */ 10266 RECOMP_FLAGS_IN(); 10267 edx = esp + 0x40; /* 0x470257BD: lea edx, [esp + 0x40] */ 10268 PUSH32(esp, edx); /* 0x470257C1: push edx */ 10269 ecx = esp + 0x30; /* 0x470257C2: lea ecx, [esp + 0x30] */ 10270 MEM8(esp + 0x60) = (uint8_t)(1); /* 0x470257C6: mov byte ptr [esp + 0x60], 1 */ 10271 RECOMP_ICALL(0x47007250u); /* 0x470257CB: call 0x47007250 */ /* not lifted */ 10272 RECOMP_FLAGS_IN(); 10273 PUSH32(esp, ebx); /* 0x470257D0: push ebx */ 10274 PUSH32(esp, ebx); /* 0x470257D1: push ebx */ 10275 PUSH32(esp, ebx); /* 0x470257D2: push ebx */ 10276 ecx = esp + 0x4C; /* 0x470257D3: lea ecx, [esp + 0x4c] */ 10277 MEM8(esp + 0x68) = (uint8_t)(LO8(ebx)); /* 0x470257D7: mov byte ptr [esp + 0x68], bl */ 10278 RECOMP_ICALL(0x470802D0u); /* 0x470257DB: call 0x470802d0 */ /* not lifted */ 10279 RECOMP_FLAGS_IN(); 10280 eax = MEM32(esp + 0x30); /* 0x470257E0: mov eax, dword ptr [esp + 0x30] */ 10281 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10282 eax = eax + 1; /* 0x470257E4: inc eax */ 10283 _flag_k = FK_INC; 10284 PUSH32(esp, eax); /* 0x470257E5: push eax */ 10285 RECOMP_ICALL(0x470A33F2u); /* 0x470257E6: call 0x470a33f2 */ /* not lifted */ 10286 RECOMP_FLAGS_IN(); 10287 ebp = MEM32(0x470AC3C8); /* 0x470257EB: mov ebp, dword ptr [0x470ac3c8] */ 10288 esi = eax; /* 0x470257F1: mov esi, eax */ 10289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10291 esp = esp + 4; /* 0x470257F3: add esp, 4 */ 10292 _flag_k = FK_ADD; 10293 /* cmp esi, ebx */ /* 0x470257F6: cmp esi, ebx */ 10294 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10296 _flag_k = FK_CMP; 10297 if (CMP_NE(_flag_a, _flag_b)) goto L_47025822; /* 0x470257F8: jne 0x47025822 */ 10298 L_470257FA: 10299 RECOMP_ICALL(ebp); /* 0x470257FA: call ebp */ 10300 RECOMP_FLAGS_IN(); 10301 MEM32(eax) = 0xCu; /* 0x470257FC: mov dword ptr [eax], 0xc */ 10302 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10303 esi = 0; /* 0x47025802: xor esi, esi */ 10304 _cf = 0; 10305 _flag_k = FK_TEST; 10306 goto L_4702583D; /* 0x47025804: jmp 0x4702583d */ 10307 L_47025806: 10308 PUSH32(esp, ebx); /* 0x47025806: push ebx */ 10309 PUSH32(esp, ebx); /* 0x47025807: push ebx */ 10310 PUSH32(esp, ebx); /* 0x47025808: push ebx */ 10311 ecx = esp + 0x38; /* 0x47025809: lea ecx, [esp + 0x38] */ 10312 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x4702580D: mov dword ptr [esp + 0x68], 0xffffffff */ 10313 RECOMP_ICALL(0x470802D0u); /* 0x47025815: call 0x470802d0 */ /* not lifted */ 10314 RECOMP_FLAGS_IN(); 10315 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10316 eax = eax | 0xFFFFFFFFu; /* 0x4702581A: or eax, 0xffffffff */ 10317 _cf = 0; 10318 _flag_k = FK_TEST; 10319 goto L_47025972; /* 0x4702581D: jmp 0x47025972 */ 10320 L_47025822: 10321 ecx = MEM32(esp + 0x30); /* 0x47025822: mov ecx, dword ptr [esp + 0x30] */ 10322 edx = MEM32(esp + 0x38); /* 0x47025826: mov edx, dword ptr [esp + 0x38] */ 10323 PUSH32(esp, ecx); /* 0x4702582A: push ecx */ 10324 PUSH32(esp, edx); /* 0x4702582B: push edx */ 10325 PUSH32(esp, esi); /* 0x4702582C: push esi */ 10326 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x4702582D: call dword ptr [0x470ac22c] */ 10327 RECOMP_FLAGS_IN(); 10328 eax = MEM32(esp + 0x3C); /* 0x47025833: mov eax, dword ptr [esp + 0x3c] */ 10329 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10330 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10331 esp = esp + 0xCu; /* 0x47025837: add esp, 0xc */ 10332 _flag_k = FK_ADD; 10333 MEM8(eax + esi) = (uint8_t)(LO8(ebx)); /* 0x4702583A: mov byte ptr [eax + esi], bl */ 10334 L_4702583D: 10335 MEM32(esp + 0x10) = esi; /* 0x4702583D: mov dword ptr [esp + 0x10], esi */ 10336 MEM32(esp + 0x18) = ebx; /* 0x47025841: mov dword ptr [esp + 0x18], ebx */ 10337 MEM32(esp + 0x1C) = ebx; /* 0x47025845: mov dword ptr [esp + 0x1c], ebx */ 10338 eax = MEM32(edi + 0x8); /* 0x47025849: mov eax, dword ptr [edi + 8] */ 10339 ecx = MEM32(edi + 0xC); /* 0x4702584C: mov ecx, dword ptr [edi + 0xc] */ 10340 edx = esp + 0x18; /* 0x4702584F: lea edx, [esp + 0x18] */ 10341 MEM32(ecx) = eax; /* 0x47025853: mov dword ptr [ecx], eax */ 10342 PUSH32(esp, edx); /* 0x47025855: push edx */ 10343 eax = esp + 0x14; /* 0x47025856: lea eax, [esp + 0x14] */ 10344 PUSH32(esp, eax); /* 0x4702585A: push eax */ 10345 MEM8(esp + 0x64) = (uint8_t)(3); /* 0x4702585B: mov byte ptr [esp + 0x64], 3 */ 10346 RECOMP_ICALL(0x47027020u); /* 0x47025860: call 0x47027020 */ /* not lifted */ 10347 RECOMP_FLAGS_IN(); 10348 /* test eax, eax */ /* 0x47025865: test eax, eax */ 10349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10350 _cf = 0; 10351 _flag_k = FK_TEST; 10352 if (TEST_Z(_flag_a, _flag_b)) goto L_47025887; /* 0x47025867: je 0x47025887 */ 10353 L_47025869: 10354 PUSH32(esp, ebx); /* 0x47025869: push ebx */ 10355 PUSH32(esp, ebx); /* 0x4702586A: push ebx */ 10356 PUSH32(esp, ebx); /* 0x4702586B: push ebx */ 10357 ecx = esp + 0x38; /* 0x4702586C: lea ecx, [esp + 0x38] */ 10358 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47025870: mov dword ptr [esp + 0x68], 0xffffffff */ 10359 RECOMP_ICALL(0x470802D0u); /* 0x47025878: call 0x470802d0 */ /* not lifted */ 10360 RECOMP_FLAGS_IN(); 10361 eax = 0xFFFFFFFEu; /* 0x4702587D: mov eax, 0xfffffffe */ 10362 goto L_47025972; /* 0x47025882: jmp 0x47025972 */ 10363 L_47025887: 10364 ecx = MEM32(esp + 0x68); /* 0x47025887: mov ecx, dword ptr [esp + 0x68] */ 10365 MEM32(esp + 0x14) = ecx; /* 0x4702588B: mov dword ptr [esp + 0x14], ecx */ 10366 MEM32(esp + 0x20) = 3; /* 0x4702588F: mov dword ptr [esp + 0x20], 3 */ 10367 MEM32(esp + 0x24) = ebx; /* 0x47025897: mov dword ptr [esp + 0x24], ebx */ 10368 MEM32(esp + 0x28) = ebx; /* 0x4702589B: mov dword ptr [esp + 0x28], ebx */ 10369 eax = MEM32(edi + 0x8); /* 0x4702589F: mov eax, dword ptr [edi + 8] */ 10370 ecx = MEM32(esp + 0x18); /* 0x470258A2: mov ecx, dword ptr [esp + 0x18] */ 10371 edx = esp + 0x20; /* 0x470258A6: lea edx, [esp + 0x20] */ 10372 MEM32(ecx) = eax; /* 0x470258AA: mov dword ptr [ecx], eax */ 10373 PUSH32(esp, edx); /* 0x470258AC: push edx */ 10374 eax = esp + 0x18; /* 0x470258AD: lea eax, [esp + 0x18] */ 10375 PUSH32(esp, eax); /* 0x470258B1: push eax */ 10376 MEM8(esp + 0x64) = (uint8_t)(5); /* 0x470258B2: mov byte ptr [esp + 0x64], 5 */ 10377 RECOMP_ICALL(0x47026250u); /* 0x470258B7: call 0x47026250 */ /* not lifted */ 10378 RECOMP_FLAGS_IN(); 10379 /* test eax, eax */ /* 0x470258BC: test eax, eax */ 10380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10381 _cf = 0; 10382 _flag_k = FK_TEST; 10383 if (TEST_Z(_flag_a, _flag_b)) goto L_470258DE; /* 0x470258BE: je 0x470258de */ 10384 L_470258C0: 10385 PUSH32(esp, ebx); /* 0x470258C0: push ebx */ 10386 PUSH32(esp, ebx); /* 0x470258C1: push ebx */ 10387 PUSH32(esp, ebx); /* 0x470258C2: push ebx */ 10388 ecx = esp + 0x38; /* 0x470258C3: lea ecx, [esp + 0x38] */ 10389 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470258C7: mov dword ptr [esp + 0x68], 0xffffffff */ 10390 RECOMP_ICALL(0x470802D0u); /* 0x470258CF: call 0x470802d0 */ /* not lifted */ 10391 RECOMP_FLAGS_IN(); 10392 eax = 0xFFFFFFFDu; /* 0x470258D4: mov eax, 0xfffffffd */ 10393 goto L_47025972; /* 0x470258D9: jmp 0x47025972 */ 10394 L_470258DE: 10395 /* cmp MEM32(esp + 0x20), 2 */ /* 0x470258DE: cmp dword ptr [esp + 0x20], 2 */ 10396 _flag_a = (uint32_t)(MEM32(esp + 0x20)); _flag_b = (uint32_t)(2); 10397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10398 _flag_k = FK_CMP; 10399 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025900; /* 0x470258E3: je 0x47025900 */ 10400 L_470258E5: 10401 PUSH32(esp, ebx); /* 0x470258E5: push ebx */ 10402 PUSH32(esp, ebx); /* 0x470258E6: push ebx */ 10403 PUSH32(esp, ebx); /* 0x470258E7: push ebx */ 10404 ecx = esp + 0x38; /* 0x470258E8: lea ecx, [esp + 0x38] */ 10405 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x470258EC: mov dword ptr [esp + 0x68], 0xffffffff */ 10406 RECOMP_ICALL(0x470802D0u); /* 0x470258F4: call 0x470802d0 */ /* not lifted */ 10407 RECOMP_FLAGS_IN(); 10408 eax = 0xFFFFFFFCu; /* 0x470258F9: mov eax, 0xfffffffc */ 10409 goto L_47025972; /* 0x470258FE: jmp 0x47025972 */ 10410 L_47025900: 10411 ecx = MEM32(esp + 0x28); /* 0x47025900: mov ecx, dword ptr [esp + 0x28] */ 10412 PUSH32(esp, ecx); /* 0x47025904: push ecx */ 10413 RECOMP_ICALL(0x470A33F2u); /* 0x47025905: call 0x470a33f2 */ /* not lifted */ 10414 RECOMP_FLAGS_IN(); 10415 edx = MEM32(esp + 0x70); /* 0x4702590A: mov edx, dword ptr [esp + 0x70] */ 10416 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10417 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10418 esp = esp + 4; /* 0x4702590E: add esp, 4 */ 10419 _flag_k = FK_ADD; 10420 /* cmp eax, ebx */ /* 0x47025911: cmp eax, ebx */ 10421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10423 _flag_k = FK_CMP; 10424 MEM32(edx) = eax; /* 0x47025913: mov dword ptr [edx], eax */ 10425 if (CMP_NE(_flag_a, _flag_b)) goto L_4702593A; /* 0x47025915: jne 0x4702593a */ 10426 L_47025917: 10427 RECOMP_ICALL(ebp); /* 0x47025917: call ebp */ 10428 RECOMP_FLAGS_IN(); 10429 PUSH32(esp, ebx); /* 0x47025919: push ebx */ 10430 PUSH32(esp, ebx); /* 0x4702591A: push ebx */ 10431 PUSH32(esp, ebx); /* 0x4702591B: push ebx */ 10432 ecx = esp + 0x38; /* 0x4702591C: lea ecx, [esp + 0x38] */ 10433 MEM32(eax) = 0xCu; /* 0x47025920: mov dword ptr [eax], 0xc */ 10434 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47025926: mov dword ptr [esp + 0x68], 0xffffffff */ 10435 RECOMP_ICALL(0x470802D0u); /* 0x4702592E: call 0x470802d0 */ /* not lifted */ 10436 RECOMP_FLAGS_IN(); 10437 eax = 0xFFFFFFFBu; /* 0x47025933: mov eax, 0xfffffffb */ 10438 goto L_47025972; /* 0x47025938: jmp 0x47025972 */ 10439 L_4702593A: 10440 ecx = MEM32(esp + 0x28); /* 0x4702593A: mov ecx, dword ptr [esp + 0x28] */ 10441 esi = MEM32(esp + 0x24); /* 0x4702593E: mov esi, dword ptr [esp + 0x24] */ 10442 edi = eax; /* 0x47025942: mov edi, eax */ 10443 eax = ecx; /* 0x47025944: mov eax, ecx */ 10444 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47025946: shr ecx, 2 */ 10445 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10446 ecx = ecx >> 2u; /* 0x47025946: shr ecx, 2 */ 10447 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47025949: 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; } 10448 ecx = eax; /* 0x4702594B: mov ecx, eax */ 10449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10450 ecx = ecx & 3; /* 0x4702594D: and ecx, 3 */ 10451 _cf = 0; 10452 _flag_k = FK_TEST; 10453 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47025950: 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; } 10454 ecx = MEM32(esp + 0x70); /* 0x47025952: mov ecx, dword ptr [esp + 0x70] */ 10455 edx = MEM32(esp + 0x28); /* 0x47025956: mov edx, dword ptr [esp + 0x28] */ 10456 PUSH32(esp, ebx); /* 0x4702595A: push ebx */ 10457 PUSH32(esp, ebx); /* 0x4702595B: push ebx */ 10458 MEM32(ecx) = edx; /* 0x4702595C: mov dword ptr [ecx], edx */ 10459 PUSH32(esp, ebx); /* 0x4702595E: push ebx */ 10460 ecx = esp + 0x38; /* 0x4702595F: lea ecx, [esp + 0x38] */ 10461 MEM32(esp + 0x68) = 0xFFFFFFFFu; /* 0x47025963: mov dword ptr [esp + 0x68], 0xffffffff */ 10462 RECOMP_ICALL(0x470802D0u); /* 0x4702596B: call 0x470802d0 */ /* not lifted */ 10463 RECOMP_FLAGS_IN(); 10464 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10465 eax = 0; /* 0x47025970: xor eax, eax */ 10466 _cf = 0; 10467 _flag_k = FK_TEST; 10468 L_47025972: 10469 ecx = MEM32(esp + 0x54); /* 0x47025972: mov ecx, dword ptr [esp + 0x54] */ 10470 edi = POP32_VAL(esp); /* 0x47025976: pop edi */ 10471 esi = POP32_VAL(esp); /* 0x47025977: pop esi */ 10472 ebp = POP32_VAL(esp); /* 0x47025978: pop ebp */ 10473 ebx = POP32_VAL(esp); /* 0x47025979: pop ebx */ 10474 MEM32(FS_BASE + (0)) = ecx; /* 0x4702597A: mov dword ptr fs:[0], ecx */ 10475 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 10476 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10477 esp = esp + 0x50u; /* 0x47025981: add esp, 0x50 */ 10478 _flag_k = FK_ADD; 10479 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47025984: ret 0x10 */ 10480 RECOMP_REGS_OUT(); 10481 } 10482 10483 void sub_47025972(void) { 10484 int _fpu_cmp = 0; 10485 uint32_t _cf = 0; 10486 int _df = 1; 10487 uint32_t _flag_k = FK_NONE; 10488 uint32_t _flag_a = 0, _flag_b = 0; 10489 uint32_t _itail_tgt = 0; 10490 RECOMP_REGS_LOCALS 10491 RECOMP_ENTER(0x47025972u); 10492 10493 L_47025972: 10494 ecx = MEM32(esp + 0x54); /* 0x47025972: mov ecx, dword ptr [esp + 0x54] */ 10495 edi = POP32_VAL(esp); /* 0x47025976: pop edi */ 10496 esi = POP32_VAL(esp); /* 0x47025977: pop esi */ 10497 ebp = POP32_VAL(esp); /* 0x47025978: pop ebp */ 10498 ebx = POP32_VAL(esp); /* 0x47025979: pop ebx */ 10499 MEM32(FS_BASE + (0)) = ecx; /* 0x4702597A: mov dword ptr fs:[0], ecx */ 10500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x50u); 10501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10502 esp = esp + 0x50u; /* 0x47025981: add esp, 0x50 */ 10503 _flag_k = FK_ADD; 10504 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x47025984: ret 0x10 */ 10505 RECOMP_REGS_OUT(); 10506 } 10507 10508 void sub_47025990(void) { 10509 int _fpu_cmp = 0; 10510 uint32_t _cf = 0; 10511 int _df = 1; 10512 uint32_t _flag_k = FK_NONE; 10513 uint32_t _flag_a = 0, _flag_b = 0; 10514 uint32_t _itail_tgt = 0; 10515 RECOMP_REGS_LOCALS 10516 RECOMP_ENTER(0x47025990u); 10517 10518 L_47025990: 10519 eax = MEM32(FS_BASE + (0)); /* 0x47025990: mov eax, dword ptr fs:[0] */ 10520 PUSH32(esp, 0xFFFFFFFFu); /* 0x47025996: push -1 */ 10521 PUSH32(esp, 0x470A4C20u); /* 0x47025998: push 0x470a4c20 */ 10522 PUSH32(esp, eax); /* 0x4702599D: push eax */ 10523 eax = MEM32(esp + 0x14); /* 0x4702599E: mov eax, dword ptr [esp + 0x14] */ 10524 MEM32(FS_BASE + (0)) = esp; /* 0x470259A2: mov dword ptr fs:[0], esp */ 10525 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu); 10526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10527 esp = esp - 0x3Cu; /* 0x470259A9: sub esp, 0x3c */ 10528 _flag_k = FK_CMP; 10529 PUSH32(esp, ebx); /* 0x470259AC: push ebx */ 10530 PUSH32(esp, ebp); /* 0x470259AD: push ebp */ 10531 PUSH32(esp, esi); /* 0x470259AE: push esi */ 10532 PUSH32(esp, edi); /* 0x470259AF: push edi */ 10533 edi = ecx; /* 0x470259B0: mov edi, ecx */ 10534 SET_LO8(ecx, MEM8(eax)); /* 0x470259B2: mov cl, byte ptr [eax] */ 10535 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10536 ebx = 0; /* 0x470259B4: xor ebx, ebx */ 10537 _cf = 0; 10538 _flag_k = FK_TEST; 10539 /* cmp LO8(ecx), LO8(ebx) */ /* 0x470259B6: cmp cl, bl */ 10540 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10542 _flag_k = FK_NARROW(FK_CMP, 24); 10543 esi = eax; /* 0x470259B8: mov esi, eax */ 10544 if (CMP_EQ(_flag_a, _flag_b)) goto L_470259E0; /* 0x470259BA: je 0x470259e0 */ 10545 L_470259BC: 10546 ebp = MEM32(0x470AC380); /* 0x470259BC: mov ebp, dword ptr [0x470ac380] */ 10547 L_470259C2: 10548 eax = (int32_t)(int8_t)MEM8(esi); /* 0x470259C2: movsx eax, byte ptr [esi] */ 10549 PUSH32(esp, eax); /* 0x470259C5: push eax */ 10550 PUSH32(esp, 0x47105AACu); /* 0x470259C6: push 0x47105aac */ 10551 RECOMP_ICALL(ebp); /* 0x470259CB: call ebp */ 10552 RECOMP_FLAGS_IN(); 10553 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10554 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10555 esp = esp + 8; /* 0x470259CD: add esp, 8 */ 10556 _flag_k = FK_ADD; 10557 /* test eax, eax */ /* 0x470259D0: test eax, eax */ 10558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10559 _cf = 0; 10560 _flag_k = FK_TEST; 10561 if (TEST_NZ(_flag_a, _flag_b)) goto L_470259EA; /* 0x470259D2: jne 0x470259ea */ 10562 L_470259D4: 10563 SET_LO8(eax, MEM8(esi + 0x1)); /* 0x470259D4: mov al, byte ptr [esi + 1] */ 10564 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 10565 esi = esi + 1; /* 0x470259D7: inc esi */ 10566 _flag_k = FK_INC; 10567 /* cmp LO8(eax), LO8(ebx) */ /* 0x470259D8: cmp al, bl */ 10568 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10569 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10570 _flag_k = FK_NARROW(FK_CMP, 24); 10571 RECOMP_BACKEDGE(); 10572 if (CMP_NE(_flag_a, _flag_b)) goto L_470259C2; /* 0x470259DA: jne 0x470259c2 */ 10573 L_470259DC: 10574 eax = MEM32(esp + 0x60); /* 0x470259DC: mov eax, dword ptr [esp + 0x60] */ 10575 L_470259E0: 10576 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 10577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10578 esi = esi - eax; /* 0x470259E0: sub esi, eax */ 10579 _flag_k = FK_CMP; 10580 /* cmp esi, 0xFFu */ /* 0x470259E2: cmp esi, 0xff */ 10581 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 10582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10583 _flag_k = FK_CMP; 10584 if (CMP_LE(_flag_a, _flag_b)) goto L_470259F2; /* 0x470259E8: jle 0x470259f2 */ 10585 L_470259EA: 10586 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10587 eax = eax | 0xFFFFFFFFu; /* 0x470259EA: or eax, 0xffffffff */ 10588 _cf = 0; 10589 _flag_k = FK_TEST; 10590 goto L_47025BB5; /* 0x470259ED: jmp 0x47025bb5 */ 10591 L_470259F2: 10592 RECOMP_ICALL(0x4703DAC0u); /* 0x470259F2: call 0x4703dac0 */ /* not lifted */ 10593 RECOMP_FLAGS_IN(); 10594 MEM32(esp + 0x24) = eax; /* 0x470259F7: mov dword ptr [esp + 0x24], eax */ 10595 MEM32(esp + 0x28) = ebx; /* 0x470259FB: mov dword ptr [esp + 0x28], ebx */ 10596 MEM32(esp + 0x2C) = ebx; /* 0x470259FF: mov dword ptr [esp + 0x2c], ebx */ 10597 MEM32(esp + 0x30) = 0x4710F078u; /* 0x47025A03: mov dword ptr [esp + 0x30], 0x4710f078 */ 10598 MEM32(esp + 0x34) = ebx; /* 0x47025A0B: mov dword ptr [esp + 0x34], ebx */ 10599 eax = MEM32(esp + 0x5C); /* 0x47025A0F: mov eax, dword ptr [esp + 0x5c] */ 10600 eax = MEM32(eax); /* 0x47025A13: mov eax, dword ptr [eax] */ 10601 /* cmp eax, ebx */ /* 0x47025A15: cmp eax, ebx */ 10602 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10603 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10604 _flag_k = FK_CMP; 10605 MEM32(esp + 0x54) = ebx; /* 0x47025A17: mov dword ptr [esp + 0x54], ebx */ 10606 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025A74; /* 0x47025A1B: je 0x47025a74 */ 10607 L_47025A1D: 10608 ecx = MEM32(eax + 0x8); /* 0x47025A1D: mov ecx, dword ptr [eax + 8] */ 10609 PUSH32(esp, 1); /* 0x47025A20: push 1 */ 10610 PUSH32(esp, ebx); /* 0x47025A22: push ebx */ 10611 PUSH32(esp, ecx); /* 0x47025A23: push ecx */ 10612 ecx = esp + 0x44; /* 0x47025A24: lea ecx, [esp + 0x44] */ 10613 RECOMP_ICALL(0x47007130u); /* 0x47025A28: call 0x47007130 */ /* not lifted */ 10614 RECOMP_FLAGS_IN(); 10615 edx = esp + 0x38; /* 0x47025A2D: lea edx, [esp + 0x38] */ 10616 PUSH32(esp, edx); /* 0x47025A31: push edx */ 10617 ecx = esp + 0x28; /* 0x47025A32: lea ecx, [esp + 0x28] */ 10618 MEM8(esp + 0x58) = (uint8_t)(1); /* 0x47025A36: mov byte ptr [esp + 0x58], 1 */ 10619 RECOMP_ICALL(0x47007250u); /* 0x47025A3B: call 0x47007250 */ /* not lifted */ 10620 RECOMP_FLAGS_IN(); 10621 PUSH32(esp, ebx); /* 0x47025A40: push ebx */ 10622 PUSH32(esp, ebx); /* 0x47025A41: push ebx */ 10623 PUSH32(esp, ebx); /* 0x47025A42: push ebx */ 10624 ecx = esp + 0x44; /* 0x47025A43: lea ecx, [esp + 0x44] */ 10625 MEM8(esp + 0x60) = (uint8_t)(LO8(ebx)); /* 0x47025A47: mov byte ptr [esp + 0x60], bl */ 10626 RECOMP_ICALL(0x470802D0u); /* 0x47025A4B: call 0x470802d0 */ /* not lifted */ 10627 RECOMP_FLAGS_IN(); 10628 eax = MEM32(esp + 0x28); /* 0x47025A50: mov eax, dword ptr [esp + 0x28] */ 10629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10630 eax = eax + 1; /* 0x47025A54: inc eax */ 10631 _flag_k = FK_INC; 10632 PUSH32(esp, eax); /* 0x47025A55: push eax */ 10633 RECOMP_ICALL(0x470A33F2u); /* 0x47025A56: call 0x470a33f2 */ /* not lifted */ 10634 RECOMP_FLAGS_IN(); 10635 esi = eax; /* 0x47025A5B: mov esi, eax */ 10636 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10638 esp = esp + 4; /* 0x47025A5D: add esp, 4 */ 10639 _flag_k = FK_ADD; 10640 /* cmp esi, ebx */ /* 0x47025A60: cmp esi, ebx */ 10641 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10643 _flag_k = FK_CMP; 10644 if (CMP_NE(_flag_a, _flag_b)) goto L_47025A90; /* 0x47025A62: jne 0x47025a90 */ 10645 L_47025A64: 10646 RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47025A64: call dword ptr [0x470ac3c8] */ 10647 RECOMP_FLAGS_IN(); 10648 MEM32(eax) = 0xCu; /* 0x47025A6A: mov dword ptr [eax], 0xc */ 10649 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10650 esi = 0; /* 0x47025A70: xor esi, esi */ 10651 _cf = 0; 10652 _flag_k = FK_TEST; 10653 goto L_47025AAB; /* 0x47025A72: jmp 0x47025aab */ 10654 L_47025A74: 10655 PUSH32(esp, ebx); /* 0x47025A74: push ebx */ 10656 PUSH32(esp, ebx); /* 0x47025A75: push ebx */ 10657 PUSH32(esp, ebx); /* 0x47025A76: push ebx */ 10658 ecx = esp + 0x30; /* 0x47025A77: lea ecx, [esp + 0x30] */ 10659 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x47025A7B: mov dword ptr [esp + 0x60], 0xffffffff */ 10660 RECOMP_ICALL(0x470802D0u); /* 0x47025A83: call 0x470802d0 */ /* not lifted */ 10661 RECOMP_FLAGS_IN(); 10662 _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu)); 10663 eax = eax | 0xFFFFFFFFu; /* 0x47025A88: or eax, 0xffffffff */ 10664 _cf = 0; 10665 _flag_k = FK_TEST; 10666 goto L_47025BB5; /* 0x47025A8B: jmp 0x47025bb5 */ 10667 L_47025A90: 10668 ecx = MEM32(esp + 0x28); /* 0x47025A90: mov ecx, dword ptr [esp + 0x28] */ 10669 edx = MEM32(esp + 0x30); /* 0x47025A94: mov edx, dword ptr [esp + 0x30] */ 10670 PUSH32(esp, ecx); /* 0x47025A98: push ecx */ 10671 PUSH32(esp, edx); /* 0x47025A99: push edx */ 10672 PUSH32(esp, esi); /* 0x47025A9A: push esi */ 10673 RECOMP_ICALL(MEM32(0x470AC22C)); /* 0x47025A9B: call dword ptr [0x470ac22c] */ 10674 RECOMP_FLAGS_IN(); 10675 eax = MEM32(esp + 0x34); /* 0x47025AA1: mov eax, dword ptr [esp + 0x34] */ 10676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10678 esp = esp + 0xCu; /* 0x47025AA5: add esp, 0xc */ 10679 _flag_k = FK_ADD; 10680 MEM8(eax + esi) = (uint8_t)(LO8(ebx)); /* 0x47025AA8: mov byte ptr [eax + esi], bl */ 10681 L_47025AAB: 10682 MEM32(esp + 0x18) = esi; /* 0x47025AAB: mov dword ptr [esp + 0x18], esi */ 10683 MEM32(esp + 0x1C) = ebx; /* 0x47025AAF: mov dword ptr [esp + 0x1c], ebx */ 10684 MEM32(esp + 0x20) = ebx; /* 0x47025AB3: mov dword ptr [esp + 0x20], ebx */ 10685 eax = MEM32(edi + 0x8); /* 0x47025AB7: mov eax, dword ptr [edi + 8] */ 10686 ecx = MEM32(edi + 0xC); /* 0x47025ABA: mov ecx, dword ptr [edi + 0xc] */ 10687 edx = esp + 0x1C; /* 0x47025ABD: lea edx, [esp + 0x1c] */ 10688 MEM32(ecx) = eax; /* 0x47025AC1: mov dword ptr [ecx], eax */ 10689 PUSH32(esp, edx); /* 0x47025AC3: push edx */ 10690 eax = esp + 0x1C; /* 0x47025AC4: lea eax, [esp + 0x1c] */ 10691 PUSH32(esp, eax); /* 0x47025AC8: push eax */ 10692 MEM8(esp + 0x5C) = (uint8_t)(3); /* 0x47025AC9: mov byte ptr [esp + 0x5c], 3 */ 10693 RECOMP_ICALL(0x47027020u); /* 0x47025ACE: call 0x47027020 */ /* not lifted */ 10694 RECOMP_FLAGS_IN(); 10695 /* test eax, eax */ /* 0x47025AD3: test eax, eax */ 10696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10697 _cf = 0; 10698 _flag_k = FK_TEST; 10699 if (TEST_Z(_flag_a, _flag_b)) goto L_47025AF5; /* 0x47025AD5: je 0x47025af5 */ 10700 L_47025AD7: 10701 PUSH32(esp, ebx); /* 0x47025AD7: push ebx */ 10702 PUSH32(esp, ebx); /* 0x47025AD8: push ebx */ 10703 PUSH32(esp, ebx); /* 0x47025AD9: push ebx */ 10704 ecx = esp + 0x30; /* 0x47025ADA: lea ecx, [esp + 0x30] */ 10705 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x47025ADE: mov dword ptr [esp + 0x60], 0xffffffff */ 10706 RECOMP_ICALL(0x470802D0u); /* 0x47025AE6: call 0x470802d0 */ /* not lifted */ 10707 RECOMP_FLAGS_IN(); 10708 eax = 0xFFFFFFFEu; /* 0x47025AEB: mov eax, 0xfffffffe */ 10709 goto L_47025BB5; /* 0x47025AF0: jmp 0x47025bb5 */ 10710 L_47025AF5: 10711 ecx = MEM32(esp + 0x60); /* 0x47025AF5: mov ecx, dword ptr [esp + 0x60] */ 10712 MEM32(esp + 0x14) = ecx; /* 0x47025AF9: mov dword ptr [esp + 0x14], ecx */ 10713 eax = MEM32(esp + 0x1C); /* 0x47025AFD: mov eax, dword ptr [esp + 0x1c] */ 10714 esi = eax; /* 0x47025B01: mov esi, eax */ 10715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 10716 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10717 eax = eax + 4; /* 0x47025B03: add eax, 4 */ 10718 _flag_k = FK_ADD; 10719 PUSH32(esp, eax); /* 0x47025B06: push eax */ 10720 ecx = esp + 0x64; /* 0x47025B07: lea ecx, [esp + 0x64] */ 10721 RECOMP_ICALL(0x470010E0u); /* 0x47025B0B: call 0x470010e0 */ /* not lifted */ 10722 RECOMP_FLAGS_IN(); 10723 edx = esp + 0x5C; /* 0x47025B10: lea edx, [esp + 0x5c] */ 10724 PUSH32(esp, edx); /* 0x47025B14: push edx */ 10725 eax = esp + 0x14; /* 0x47025B15: lea eax, [esp + 0x14] */ 10726 PUSH32(esp, eax); /* 0x47025B19: push eax */ 10727 ecx = esp + 0x1C; /* 0x47025B1A: lea ecx, [esp + 0x1c] */ 10728 PUSH32(esp, ecx); /* 0x47025B1E: push ecx */ 10729 ecx = esi; /* 0x47025B1F: mov ecx, esi */ 10730 MEM8(esp + 0x60) = (uint8_t)(5); /* 0x47025B21: mov byte ptr [esp + 0x60], 5 */ 10731 RECOMP_ICALL(0x470275D0u); /* 0x47025B26: call 0x470275d0 */ /* not lifted */ 10732 RECOMP_FLAGS_IN(); 10733 /* cmp eax, ebx */ /* 0x47025B2B: cmp eax, ebx */ 10734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10736 _flag_k = FK_CMP; 10737 MEM8(esp + 0x54) = (uint8_t)(4); /* 0x47025B2D: mov byte ptr [esp + 0x54], 4 */ 10738 if (CMP_EQ(_flag_a, _flag_b)) goto L_47025B4F; /* 0x47025B32: je 0x47025b4f */ 10739 L_47025B34: 10740 PUSH32(esp, ebx); /* 0x47025B34: push ebx */ 10741 PUSH32(esp, ebx); /* 0x47025B35: push ebx */ 10742 PUSH32(esp, ebx); /* 0x47025B36: push ebx */ 10743 ecx = esp + 0x30; /* 0x47025B37: lea ecx, [esp + 0x30] */ 10744 MEM32(esp + 0x60) = 0xFFFFFFFFu; /* 0x47025B3B: mov dword ptr [esp + 0x60], 0xffffffff */ 10745 RECOMP_ICALL(0x470802D0u); /* 0x47025B43: call 0x470802d0 */ /* not lifted */ 10746 RECOMP_FLAGS_IN(); 10747 eax = 0xFFFFFFFCu; /* 0x47025B48: mov eax, 0xfffffffc */ 10748 goto L_47025BB5; /* 0x47025B4D: jmp 0x47025bb5 */ 10749 L_47025B4F: 10750 eax = MEM32(esp + 0x10); /* 0x47025B4F: mov eax, dword ptr [esp + 0x10] */ 10751 ecx = MEM32(edi + 0x8); /* 0x47025B53: mov ecx, dword ptr [edi + 8] */ 10752 eax = MEM32(eax); /* 0x47025B56: mov eax, dword ptr [eax] */ 10753 edx = MEM32(ecx); /* 0x47025B58: mov edx, dword ptr [ecx] */ 10754 PUSH32(esp, eax); /* 0x47025B5A: push eax */ 10755 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47025B5B: call dword ptr [edx + 0xc] */ 10756 RECOMP_FLAGS_IN(); 10757 edx = MEM32(esp + 0x10); /* 0x47025B5E: mov edx, dword ptr [esp + 0x10] */ 10758 eax = MEM32(edx + 0x4); /* 0x47025B62: mov eax, dword ptr [edx + 4] */ 10759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10761 eax = eax - ebx; /* 0x47025B65: sub eax, ebx */ 10762 _flag_k = FK_CMP; 10763 ecx = MEM32(edi + 0x8); /* 0x47025B67: mov ecx, dword ptr [edi + 8] */ 10764 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_47025B71; /* 0x47025B6A: je 0x47025b71 */ 10765 L_47025B6C: 10766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 10767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10768 eax = eax - 2; /* 0x47025B6C: sub eax, 2 */ 10769 _flag_k = FK_CMP; 10770 if (/* sub result */ CMP_NE(_flag_a, _flag_b)) goto L_47025B7A; /* 0x47025B6F: jne 0x47025b7a */ 10771 L_47025B71: 10772 edx = MEM32(edx + 0x8); /* 0x47025B71: mov edx, dword ptr [edx + 8] */ 10773 eax = MEM32(ecx); /* 0x47025B74: mov eax, dword ptr [ecx] */ 10774 PUSH32(esp, edx); /* 0x47025B76: push edx */ 10775 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47025B77: call dword ptr [eax + 0xc] */ 10776 RECOMP_FLAGS_IN(); 10777 L_47025B7A: 10778 eax = MEM32(esp + 0x1C); /* 0x47025B7A: mov eax, dword ptr [esp + 0x1c] */ 10779 edi = MEM32(edi + 0x8); /* 0x47025B7E: mov edi, dword ptr [edi + 8] */ 10780 ecx = eax; /* 0x47025B81: mov ecx, eax */ 10781 MEM32(eax) = edi; /* 0x47025B83: mov dword ptr [eax], edi */ 10782 eax = esp + 0x14; /* 0x47025B85: lea eax, [esp + 0x14] */ 10783 PUSH32(esp, eax); /* 0x47025B89: push eax */ 10784 RECOMP_ICALL(0x470262F0u); /* 0x47025B8A: call 0x470262f0 */ /* not lifted */ 10785 RECOMP_FLAGS_IN(); 10786 /* test eax, eax */ /* 0x47025B8F: test eax, eax */ 10787 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10788 _cf = 0; 10789 _flag_k = FK_TEST; 10790 PUSH32(esp, ebx); /* 0x47025B91: push ebx */ 10791 PUSH32(esp, ebx); /* 0x47025B92: push ebx */ 10792 MEM32(esp + 0x5C) = 0xFFFFFFFFu; /* 0x47025B93: mov dword ptr [esp + 0x5c], 0xffffffff */ 10793 PUSH32(esp, ebx); /* 0x47025B9B: push ebx */ 10794 ecx = esp + 0x30; /* 0x47025B9C: lea ecx, [esp + 0x30] */ 10795 if (TEST_Z(_flag_a, _flag_b)) goto L_47025BAE; /* 0x47025BA0: je 0x47025bae */ 10796 L_47025BA2: 10797 RECOMP_ICALL(0x470802D0u); /* 0x47025BA2: call 0x470802d0 */ /* not lifted */ 10798 RECOMP_FLAGS_IN(); 10799 eax = 0xFFFFFFFDu; /* 0x47025BA7: mov eax, 0xfffffffd */ 10800 goto L_47025BB5; /* 0x47025BAC: jmp 0x47025bb5 */ 10801 L_47025BAE: 10802 RECOMP_ICALL(0x470802D0u); /* 0x47025BAE: call 0x470802d0 */ /* not lifted */ 10803 RECOMP_FLAGS_IN(); 10804 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10805 eax = 0; /* 0x47025BB3: xor eax, eax */ 10806 _cf = 0; 10807 _flag_k = FK_TEST; 10808 L_47025BB5: 10809 ecx = MEM32(esp + 0x4C); /* 0x47025BB5: mov ecx, dword ptr [esp + 0x4c] */ 10810 edi = POP32_VAL(esp); /* 0x47025BB9: pop edi */ 10811 esi = POP32_VAL(esp); /* 0x47025BBA: pop esi */ 10812 ebp = POP32_VAL(esp); /* 0x47025BBB: pop ebp */ 10813 ebx = POP32_VAL(esp); /* 0x47025BBC: pop ebx */ 10814 MEM32(FS_BASE + (0)) = ecx; /* 0x47025BBD: mov dword ptr fs:[0], ecx */ 10815 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 10816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10817 esp = esp + 0x48u; /* 0x47025BC4: add esp, 0x48 */ 10818 _flag_k = FK_ADD; 10819 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025BC7: ret 8 */ 10820 RECOMP_REGS_OUT(); 10821 } 10822 10823 void sub_47025BB5(void) { 10824 int _fpu_cmp = 0; 10825 uint32_t _cf = 0; 10826 int _df = 1; 10827 uint32_t _flag_k = FK_NONE; 10828 uint32_t _flag_a = 0, _flag_b = 0; 10829 uint32_t _itail_tgt = 0; 10830 RECOMP_REGS_LOCALS 10831 RECOMP_ENTER(0x47025BB5u); 10832 10833 L_47025BB5: 10834 ecx = MEM32(esp + 0x4C); /* 0x47025BB5: mov ecx, dword ptr [esp + 0x4c] */ 10835 edi = POP32_VAL(esp); /* 0x47025BB9: pop edi */ 10836 esi = POP32_VAL(esp); /* 0x47025BBA: pop esi */ 10837 ebp = POP32_VAL(esp); /* 0x47025BBB: pop ebp */ 10838 ebx = POP32_VAL(esp); /* 0x47025BBC: pop ebx */ 10839 MEM32(FS_BASE + (0)) = ecx; /* 0x47025BBD: mov dword ptr fs:[0], ecx */ 10840 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x48u); 10841 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10842 esp = esp + 0x48u; /* 0x47025BC4: add esp, 0x48 */ 10843 _flag_k = FK_ADD; 10844 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025BC7: ret 8 */ 10845 RECOMP_REGS_OUT(); 10846 } 10847 10848 void sub_47025BD0(void) { 10849 int _fpu_cmp = 0; 10850 uint32_t _cf = 0; 10851 int _df = 1; 10852 uint32_t _flag_k = FK_NONE; 10853 uint32_t _flag_a = 0, _flag_b = 0; 10854 uint32_t _itail_tgt = 0; 10855 RECOMP_REGS_LOCALS 10856 RECOMP_ENTER(0x47025BD0u); 10857 10858 L_47025BD0: 10859 PUSH32(esp, esi); /* 0x47025BD0: push esi */ 10860 esi = ecx; /* 0x47025BD1: mov esi, ecx */ 10861 RECOMP_ICALL(0x47025F50u); /* 0x47025BD3: call 0x47025f50 */ /* not lifted */ 10862 RECOMP_FLAGS_IN(); 10863 /* test MEM8(esp + 0x8), 1 */ /* 0x47025BD8: test byte ptr [esp + 8], 1 */ 10864 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10865 _cf = 0; 10866 _flag_k = FK_NARROW(FK_TEST, 24); 10867 if (TEST_Z(_flag_a, _flag_b)) goto L_47025BE8; /* 0x47025BDD: je 0x47025be8 */ 10868 L_47025BDF: 10869 PUSH32(esp, esi); /* 0x47025BDF: push esi */ 10870 RECOMP_ICALL(0x470A32A2u); /* 0x47025BE0: call 0x470a32a2 */ /* not lifted */ 10871 RECOMP_FLAGS_IN(); 10872 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10873 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10874 esp = esp + 4; /* 0x47025BE5: add esp, 4 */ 10875 _flag_k = FK_ADD; 10876 L_47025BE8: 10877 eax = esi; /* 0x47025BE8: mov eax, esi */ 10878 esi = POP32_VAL(esp); /* 0x47025BEA: pop esi */ 10879 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47025BEB: ret 4 */ 10880 RECOMP_REGS_OUT(); 10881 } 10882 10883 void sub_47025BF0(void) { 10884 int _fpu_cmp = 0; 10885 uint32_t _cf = 0; 10886 int _df = 1; 10887 uint32_t _flag_k = FK_NONE; 10888 uint32_t _flag_a = 0, _flag_b = 0; 10889 uint32_t _itail_tgt = 0; 10890 RECOMP_REGS_LOCALS 10891 RECOMP_ENTER(0x47025BF0u); 10892 10893 L_47025BF0: 10894 eax = MEM32(esp + 0x4); /* 0x47025BF0: mov eax, dword ptr [esp + 4] */ 10895 PUSH32(esp, eax); /* 0x47025BF4: push eax */ 10896 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 10897 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10898 ecx = ecx + 4; /* 0x47025BF5: add ecx, 4 */ 10899 _flag_k = FK_ADD; 10900 RECOMP_ICALL(0x47026670u); /* 0x47025BF8: call 0x47026670 */ /* not lifted */ 10901 RECOMP_FLAGS_IN(); 10902 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47025BFD: ret 4 */ 10903 RECOMP_REGS_OUT(); 10904 } 10905 10906 void sub_47025C00(void) { 10907 int _fpu_cmp = 0; 10908 uint32_t _cf = 0; 10909 int _df = 1; 10910 uint32_t _flag_k = FK_NONE; 10911 uint32_t _flag_a = 0, _flag_b = 0; 10912 uint32_t _itail_tgt = 0; 10913 RECOMP_REGS_LOCALS 10914 RECOMP_ENTER(0x47025C00u); 10915 10916 L_47025C00: 10917 PUSH32(esp, esi); /* 0x47025C00: push esi */ 10918 PUSH32(esp, edi); /* 0x47025C01: push edi */ 10919 edi = MEM32(esp + 0xC); /* 0x47025C02: mov edi, dword ptr [esp + 0xc] */ 10920 PUSH32(esp, edi); /* 0x47025C06: push edi */ 10921 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 10922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10923 ecx = ecx + 4; /* 0x47025C07: add ecx, 4 */ 10924 _flag_k = FK_ADD; 10925 RECOMP_ICALL(0x47026670u); /* 0x47025C0A: call 0x47026670 */ /* not lifted */ 10926 RECOMP_FLAGS_IN(); 10927 esi = eax; /* 0x47025C0F: mov esi, eax */ 10928 /* test esi, esi */ /* 0x47025C11: test esi, esi */ 10929 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10930 _cf = 0; 10931 _flag_k = FK_TEST; 10932 if (TEST_Z(_flag_a, _flag_b)) goto L_47025C41; /* 0x47025C13: je 0x47025c41 */ 10933 L_47025C15: 10934 eax = (int32_t)(int8_t)MEM8(esp + 0x10); /* 0x47025C15: movsx eax, byte ptr [esp + 0x10] */ 10935 PUSH32(esp, ebx); /* 0x47025C1A: push ebx */ 10936 SET_LO8(ebx, LO8(eax)); /* 0x47025C1B: mov bl, al */ 10937 SET_HI8(ebx, LO8(ebx)); /* 0x47025C1D: mov bh, bl */ 10938 ecx = edi; /* 0x47025C1F: mov ecx, edi */ 10939 edx = ecx; /* 0x47025C21: mov edx, ecx */ 10940 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47025C23: shr ecx, 2 */ 10941 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10942 ecx = ecx >> 2u; /* 0x47025C23: shr ecx, 2 */ 10943 edi = esi; /* 0x47025C26: mov edi, esi */ 10944 eax = ebx; /* 0x47025C28: mov eax, ebx */ 10945 if (16u) _cf = (((eax) >> 16) & 1u); /* 0x47025C2A: shl eax, 0x10 */ 10946 if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10947 eax = eax << 16u; /* 0x47025C2A: shl eax, 0x10 */ 10948 SET_LO16(eax, LO16(ebx)); /* 0x47025C2D: mov ax, bx */ 10949 ebx = POP32_VAL(esp); /* 0x47025C30: pop ebx */ 10950 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47025C31: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 10951 ecx = edx; /* 0x47025C33: mov ecx, edx */ 10952 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10953 ecx = ecx & 3; /* 0x47025C35: and ecx, 3 */ 10954 _cf = 0; 10955 _flag_k = FK_TEST; 10956 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47025C38: rep stosb byte ptr es:[edi], al */ if (_df > 0) { memset((void*)ADDR(edi), LO8(eax), _n); edi += _b; } else { memset((void*)ADDR(edi - _b + 1u), LO8(eax), _n); edi -= _b; } ecx = 0; } 10957 edi = POP32_VAL(esp); /* 0x47025C3A: pop edi */ 10958 eax = esi; /* 0x47025C3B: mov eax, esi */ 10959 esi = POP32_VAL(esp); /* 0x47025C3D: pop esi */ 10960 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025C3E: ret 8 */ 10961 L_47025C41: 10962 edi = POP32_VAL(esp); /* 0x47025C41: pop edi */ 10963 eax = esi; /* 0x47025C42: mov eax, esi */ 10964 esi = POP32_VAL(esp); /* 0x47025C44: pop esi */ 10965 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025C45: ret 8 */ 10966 RECOMP_REGS_OUT(); 10967 } 10968 10969 void sub_47025C50(void) { 10970 int _fpu_cmp = 0; 10971 uint32_t _cf = 0; 10972 int _df = 1; 10973 uint32_t _flag_k = FK_NONE; 10974 uint32_t _flag_a = 0, _flag_b = 0; 10975 uint32_t _itail_tgt = 0; 10976 RECOMP_REGS_LOCALS 10977 RECOMP_ENTER(0x47025C50u); 10978 10979 L_47025C50: 10980 eax = MEM32(esp + 0x4); /* 0x47025C50: mov eax, dword ptr [esp + 4] */ 10981 PUSH32(esp, eax); /* 0x47025C54: push eax */ 10982 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 10983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10984 ecx = ecx + 4; /* 0x47025C55: add ecx, 4 */ 10985 _flag_k = FK_ADD; 10986 RECOMP_ICALL(0x470266D0u); /* 0x47025C58: call 0x470266d0 */ /* not lifted */ 10987 RECOMP_FLAGS_IN(); 10988 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47025C5D: ret 4 */ 10989 RECOMP_REGS_OUT(); 10990 } 10991 10992 void sub_47025C60(void) { 10993 int _fpu_cmp = 0; 10994 uint32_t _cf = 0; 10995 int _df = 1; 10996 uint32_t _flag_k = FK_NONE; 10997 uint32_t _flag_a = 0, _flag_b = 0; 10998 uint32_t _itail_tgt = 0; 10999 RECOMP_REGS_LOCALS 11000 RECOMP_ENTER(0x47025C60u); 11001 11002 L_47025C60: 11003 PUSH32(esp, esi); /* 0x47025C60: push esi */ 11004 esi = ecx; /* 0x47025C61: mov esi, ecx */ 11005 ecx = MEM32(esi + 0x30); /* 0x47025C63: mov ecx, dword ptr [esi + 0x30] */ 11006 /* test ecx, ecx */ /* 0x47025C66: test ecx, ecx */ 11007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11008 _cf = 0; 11009 _flag_k = FK_TEST; 11010 eax = esi + 0x18; /* 0x47025C68: lea eax, [esi + 0x18] */ 11011 if (TEST_NZ(_flag_a, _flag_b)) goto L_47025C7B; /* 0x47025C6B: jne 0x47025c7b */ 11012 L_47025C6D: 11013 PUSH32(esp, eax); /* 0x47025C6D: push eax */ 11014 MEM32(eax + 0x18) = 1; /* 0x47025C6E: mov dword ptr [eax + 0x18], 1 */ 11015 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x47025C75: call dword ptr [0x470ac19c] */ 11016 RECOMP_FLAGS_IN(); 11017 L_47025C7B: 11018 eax = MEM32(esi + 0x8); /* 0x47025C7B: mov eax, dword ptr [esi + 8] */ 11019 ecx = esi + 0x8; /* 0x47025C7E: lea ecx, [esi + 8] */ 11020 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x47025C81: call dword ptr [eax + 0xc] */ 11021 RECOMP_FLAGS_IN(); 11022 esi = POP32_VAL(esp); /* 0x47025C84: pop esi */ 11023 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47025C85: ret */ 11024 RECOMP_REGS_OUT(); 11025 } 11026 11027 void sub_47025C90(void) { 11028 int _fpu_cmp = 0; 11029 uint32_t _cf = 0; 11030 int _df = 1; 11031 uint32_t _flag_k = FK_NONE; 11032 uint32_t _flag_a = 0, _flag_b = 0; 11033 uint32_t _itail_tgt = 0; 11034 RECOMP_REGS_LOCALS 11035 RECOMP_ENTER(0x47025C90u); 11036 11037 L_47025C90: 11038 eax = MEM32(esp + 0xC); /* 0x47025C90: mov eax, dword ptr [esp + 0xc] */ 11039 edx = MEM32(esp + 0x8); /* 0x47025C94: mov edx, dword ptr [esp + 8] */ 11040 PUSH32(esp, eax); /* 0x47025C98: push eax */ 11041 eax = MEM32(esp + 0x8); /* 0x47025C99: mov eax, dword ptr [esp + 8] */ 11042 PUSH32(esp, edx); /* 0x47025C9D: push edx */ 11043 PUSH32(esp, eax); /* 0x47025C9E: push eax */ 11044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11045 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11046 ecx = ecx + 4; /* 0x47025C9F: add ecx, 4 */ 11047 _flag_k = FK_ADD; 11048 RECOMP_ICALL(0x47026730u); /* 0x47025CA2: call 0x47026730 */ /* not lifted */ 11049 RECOMP_FLAGS_IN(); 11050 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47025CA7: ret 0xc */ 11051 RECOMP_REGS_OUT(); 11052 } 11053 11054 void sub_47025CB0(void) { 11055 int _fpu_cmp = 0; 11056 uint32_t _cf = 0; 11057 int _df = 1; 11058 uint32_t _flag_k = FK_NONE; 11059 uint32_t _flag_a = 0, _flag_b = 0; 11060 uint32_t _itail_tgt = 0; 11061 RECOMP_REGS_LOCALS 11062 RECOMP_ENTER(0x47025CB0u); 11063 11064 L_47025CB0: 11065 eax = MEM32(esp + 0x8); /* 0x47025CB0: mov eax, dword ptr [esp + 8] */ 11066 edx = MEM32(esp + 0x4); /* 0x47025CB4: mov edx, dword ptr [esp + 4] */ 11067 PUSH32(esp, eax); /* 0x47025CB8: push eax */ 11068 PUSH32(esp, edx); /* 0x47025CB9: push edx */ 11069 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11070 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11071 ecx = ecx + 4; /* 0x47025CBA: add ecx, 4 */ 11072 _flag_k = FK_ADD; 11073 RECOMP_ICALL(0x47026830u); /* 0x47025CBD: call 0x47026830 */ /* not lifted */ 11074 RECOMP_FLAGS_IN(); 11075 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025CC2: ret 8 */ 11076 RECOMP_REGS_OUT(); 11077 } 11078 11079 void sub_47025CD0(void) { 11080 int _fpu_cmp = 0; 11081 uint32_t _cf = 0; 11082 int _df = 1; 11083 uint32_t _flag_k = FK_NONE; 11084 uint32_t _flag_a = 0, _flag_b = 0; 11085 uint32_t _itail_tgt = 0; 11086 RECOMP_REGS_LOCALS 11087 RECOMP_ENTER(0x47025CD0u); 11088 11089 L_47025CD0: 11090 eax = MEM32(esp + 0x4); /* 0x47025CD0: mov eax, dword ptr [esp + 4] */ 11091 PUSH32(esp, eax); /* 0x47025CD4: push eax */ 11092 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11094 ecx = ecx + 4; /* 0x47025CD5: add ecx, 4 */ 11095 _flag_k = FK_ADD; 11096 RECOMP_ICALL(0x47026930u); /* 0x47025CD8: call 0x47026930 */ /* not lifted */ 11097 RECOMP_FLAGS_IN(); 11098 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47025CDD: ret 4 */ 11099 RECOMP_REGS_OUT(); 11100 } 11101 11102 void sub_47025CE0(void) { 11103 int _fpu_cmp = 0; 11104 uint32_t _cf = 0; 11105 int _df = 1; 11106 uint32_t _flag_k = FK_NONE; 11107 uint32_t _flag_a = 0, _flag_b = 0; 11108 uint32_t _itail_tgt = 0; 11109 RECOMP_REGS_LOCALS 11110 RECOMP_ENTER(0x47025CE0u); 11111 11112 L_47025CE0: 11113 eax = MEM32(esp + 0x8); /* 0x47025CE0: mov eax, dword ptr [esp + 8] */ 11114 edx = MEM32(esp + 0x4); /* 0x47025CE4: mov edx, dword ptr [esp + 4] */ 11115 PUSH32(esp, eax); /* 0x47025CE8: push eax */ 11116 PUSH32(esp, edx); /* 0x47025CE9: push edx */ 11117 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11119 ecx = ecx + 4; /* 0x47025CEA: add ecx, 4 */ 11120 _flag_k = FK_ADD; 11121 RECOMP_ICALL(0x470269A0u); /* 0x47025CED: call 0x470269a0 */ /* not lifted */ 11122 RECOMP_FLAGS_IN(); 11123 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025CF2: ret 8 */ 11124 RECOMP_REGS_OUT(); 11125 } 11126 11127 void sub_47025D00(void) { 11128 int _fpu_cmp = 0; 11129 uint32_t _cf = 0; 11130 int _df = 1; 11131 uint32_t _flag_k = FK_NONE; 11132 uint32_t _flag_a = 0, _flag_b = 0; 11133 uint32_t _itail_tgt = 0; 11134 RECOMP_REGS_LOCALS 11135 RECOMP_ENTER(0x47025D00u); 11136 11137 L_47025D00: 11138 eax = MEM32(esp + 0x8); /* 0x47025D00: mov eax, dword ptr [esp + 8] */ 11139 edx = MEM32(esp + 0x4); /* 0x47025D04: mov edx, dword ptr [esp + 4] */ 11140 PUSH32(esp, eax); /* 0x47025D08: push eax */ 11141 PUSH32(esp, edx); /* 0x47025D09: push edx */ 11142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11144 ecx = ecx + 4; /* 0x47025D0A: add ecx, 4 */ 11145 _flag_k = FK_ADD; 11146 RECOMP_ICALL(0x47026A30u); /* 0x47025D0D: call 0x47026a30 */ /* not lifted */ 11147 RECOMP_FLAGS_IN(); 11148 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025D12: ret 8 */ 11149 RECOMP_REGS_OUT(); 11150 } 11151 11152 void sub_47025D20(void) { 11153 int _fpu_cmp = 0; 11154 uint32_t _cf = 0; 11155 int _df = 1; 11156 uint32_t _flag_k = FK_NONE; 11157 uint32_t _flag_a = 0, _flag_b = 0; 11158 uint32_t _itail_tgt = 0; 11159 RECOMP_REGS_LOCALS 11160 RECOMP_ENTER(0x47025D20u); 11161 11162 L_47025D20: 11163 PUSH32(esp, ecx); /* 0x47025D20: push ecx */ 11164 edx = MEM32(esp + 0x8); /* 0x47025D21: mov edx, dword ptr [esp + 8] */ 11165 eax = esp; /* 0x47025D25: lea eax, [esp] */ 11166 PUSH32(esp, eax); /* 0x47025D29: push eax */ 11167 PUSH32(esp, edx); /* 0x47025D2A: push edx */ 11168 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11169 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11170 ecx = ecx + 4; /* 0x47025D2B: add ecx, 4 */ 11171 _flag_k = FK_ADD; 11172 MEM32(esp + 0x8) = 0; /* 0x47025D2E: mov dword ptr [esp + 8], 0 */ 11173 RECOMP_ICALL(0x47026A30u); /* 0x47025D36: call 0x47026a30 */ /* not lifted */ 11174 RECOMP_FLAGS_IN(); 11175 ecx = POP32_VAL(esp); /* 0x47025D3B: pop ecx */ 11176 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47025D3C: ret 4 */ 11177 RECOMP_REGS_OUT(); 11178 } 11179 11180 void sub_47025D40(void) { 11181 int _fpu_cmp = 0; 11182 uint32_t _cf = 0; 11183 int _df = 1; 11184 uint32_t _flag_k = FK_NONE; 11185 uint32_t _flag_a = 0, _flag_b = 0; 11186 uint32_t _itail_tgt = 0; 11187 RECOMP_REGS_LOCALS 11188 RECOMP_ENTER(0x47025D40u); 11189 11190 L_47025D40: 11191 edx = MEM32(esp + 0xC); /* 0x47025D40: mov edx, dword ptr [esp + 0xc] */ 11192 eax = MEM32(ecx + 0x8); /* 0x47025D44: mov eax, dword ptr [ecx + 8] */ 11193 PUSH32(esp, edx); /* 0x47025D47: push edx */ 11194 edx = MEM32(esp + 0xC); /* 0x47025D48: mov edx, dword ptr [esp + 0xc] */ 11195 PUSH32(esp, edx); /* 0x47025D4C: push edx */ 11196 edx = MEM32(esp + 0xC); /* 0x47025D4D: mov edx, dword ptr [esp + 0xc] */ 11197 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11199 ecx = ecx + 8; /* 0x47025D51: add ecx, 8 */ 11200 _flag_k = FK_ADD; 11201 PUSH32(esp, edx); /* 0x47025D54: push edx */ 11202 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x47025D55: call dword ptr [eax + 0x10] */ 11203 RECOMP_FLAGS_IN(); 11204 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47025D58: ret 0xc */ 11205 RECOMP_REGS_OUT(); 11206 } 11207 11208 void sub_47025D60(void) { 11209 int _fpu_cmp = 0; 11210 uint32_t _cf = 0; 11211 int _df = 1; 11212 uint32_t _flag_k = FK_NONE; 11213 uint32_t _flag_a = 0, _flag_b = 0; 11214 uint32_t _itail_tgt = 0; 11215 RECOMP_REGS_LOCALS 11216 RECOMP_ENTER(0x47025D60u); 11217 11218 L_47025D60: 11219 edx = MEM32(esp + 0x8); /* 0x47025D60: mov edx, dword ptr [esp + 8] */ 11220 eax = MEM32(ecx + 0x8); /* 0x47025D64: mov eax, dword ptr [ecx + 8] */ 11221 PUSH32(esp, edx); /* 0x47025D67: push edx */ 11222 edx = MEM32(esp + 0x8); /* 0x47025D68: mov edx, dword ptr [esp + 8] */ 11223 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11225 ecx = ecx + 8; /* 0x47025D6C: add ecx, 8 */ 11226 _flag_k = FK_ADD; 11227 PUSH32(esp, edx); /* 0x47025D6F: push edx */ 11228 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x47025D70: call dword ptr [eax + 0x14] */ 11229 RECOMP_FLAGS_IN(); 11230 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025D73: ret 8 */ 11231 RECOMP_REGS_OUT(); 11232 } 11233 11234 void sub_47025D80(void) { 11235 int _fpu_cmp = 0; 11236 uint32_t _cf = 0; 11237 int _df = 1; 11238 uint32_t _flag_k = FK_NONE; 11239 uint32_t _flag_a = 0, _flag_b = 0; 11240 uint32_t _itail_tgt = 0; 11241 RECOMP_REGS_LOCALS 11242 RECOMP_ENTER(0x47025D80u); 11243 11244 L_47025D80: 11245 edx = MEM32(esp + 0xC); /* 0x47025D80: mov edx, dword ptr [esp + 0xc] */ 11246 eax = MEM32(ecx + 0x8); /* 0x47025D84: mov eax, dword ptr [ecx + 8] */ 11247 PUSH32(esp, edx); /* 0x47025D87: push edx */ 11248 edx = MEM32(esp + 0xC); /* 0x47025D88: mov edx, dword ptr [esp + 0xc] */ 11249 PUSH32(esp, edx); /* 0x47025D8C: push edx */ 11250 edx = MEM32(esp + 0xC); /* 0x47025D8D: mov edx, dword ptr [esp + 0xc] */ 11251 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11252 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11253 ecx = ecx + 8; /* 0x47025D91: add ecx, 8 */ 11254 _flag_k = FK_ADD; 11255 PUSH32(esp, edx); /* 0x47025D94: push edx */ 11256 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x47025D95: call dword ptr [eax + 0x18] */ 11257 RECOMP_FLAGS_IN(); 11258 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47025D98: ret 0xc */ 11259 RECOMP_REGS_OUT(); 11260 } 11261 11262 void sub_47025DA0(void) { 11263 int _fpu_cmp = 0; 11264 uint32_t _cf = 0; 11265 int _df = 1; 11266 uint32_t _flag_k = FK_NONE; 11267 uint32_t _flag_a = 0, _flag_b = 0; 11268 uint32_t _itail_tgt = 0; 11269 RECOMP_REGS_LOCALS 11270 RECOMP_ENTER(0x47025DA0u); 11271 11272 L_47025DA0: 11273 edx = MEM32(esp + 0x8); /* 0x47025DA0: mov edx, dword ptr [esp + 8] */ 11274 eax = MEM32(ecx + 0x8); /* 0x47025DA4: mov eax, dword ptr [ecx + 8] */ 11275 PUSH32(esp, edx); /* 0x47025DA7: push edx */ 11276 edx = MEM32(esp + 0x8); /* 0x47025DA8: mov edx, dword ptr [esp + 8] */ 11277 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11279 ecx = ecx + 8; /* 0x47025DAC: add ecx, 8 */ 11280 _flag_k = FK_ADD; 11281 PUSH32(esp, edx); /* 0x47025DAF: push edx */ 11282 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x47025DB0: call dword ptr [eax + 0x1c] */ 11283 RECOMP_FLAGS_IN(); 11284 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47025DB3: ret 8 */ 11285 RECOMP_REGS_OUT(); 11286 } 11287 11288 void sub_47025DC0(void) { 11289 int _fpu_cmp = 0; 11290 uint32_t _cf = 0; 11291 int _df = 1; 11292 uint32_t _flag_k = FK_NONE; 11293 uint32_t _flag_a = 0, _flag_b = 0; 11294 uint32_t _itail_tgt = 0; 11295 RECOMP_REGS_LOCALS 11296 RECOMP_ENTER(0x47025DC0u); 11297 11298 L_47025DC0: 11299 PUSH32(esp, ecx); /* 0x47025DC0: push ecx */ 11300 PUSH32(esp, ebx); /* 0x47025DC1: push ebx */ 11301 ebx = MEM32(0x470AC150); /* 0x47025DC2: mov ebx, dword ptr [0x470ac150] */ 11302 PUSH32(esp, ebp); /* 0x47025DC8: push ebp */ 11303 PUSH32(esp, esi); /* 0x47025DC9: push esi */ 11304 PUSH32(esp, edi); /* 0x47025DCA: push edi */ 11305 edi = ecx + 0x4; /* 0x47025DCB: lea edi, [ecx + 4] */ 11306 RECOMP_ICALL(ebx); /* 0x47025DCE: call ebx */ 11307 RECOMP_FLAGS_IN(); 11308 ebp = MEM32(0x470AC3C8); /* 0x47025DD0: mov ebp, dword ptr [0x470ac3c8] */ 11309 esi = eax; /* 0x47025DD6: mov esi, eax */ 11310 RECOMP_ICALL(ebp); /* 0x47025DD8: call ebp */ 11311 RECOMP_FLAGS_IN(); 11312 eax = MEM32(eax); /* 0x47025DDA: mov eax, dword ptr [eax] */ 11313 /* test eax, eax */ /* 0x47025DDC: test eax, eax */ 11314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11315 _cf = 0; 11316 _flag_k = FK_TEST; 11317 MEM32(esp + 0x10) = esi; /* 0x47025DDE: mov dword ptr [esp + 0x10], esi */ 11318 if (TEST_Z(_flag_a, _flag_b)) goto L_47025DE8; /* 0x47025DE2: je 0x47025de8 */ 11319 L_47025DE4: 11320 MEM32(esp + 0x10) = eax; /* 0x47025DE4: mov dword ptr [esp + 0x10], eax */ 11321 L_47025DE8: 11322 RECOMP_ICALL(0x47039020u); /* 0x47025DE8: call 0x47039020 */ /* not lifted */ 11323 RECOMP_FLAGS_IN(); 11324 esi = eax; /* 0x47025DED: mov esi, eax */ 11325 ecx = esi; /* 0x47025DEF: mov ecx, esi */ 11326 RECOMP_ICALL(0x4703B210u); /* 0x47025DF1: call 0x4703b210 */ /* not lifted */ 11327 RECOMP_FLAGS_IN(); 11328 PUSH32(esp, eax); /* 0x47025DF6: push eax */ 11329 ecx = esi; /* 0x47025DF7: mov ecx, esi */ 11330 RECOMP_ICALL(0x4703B240u); /* 0x47025DF9: call 0x4703b240 */ /* not lifted */ 11331 RECOMP_FLAGS_IN(); 11332 PUSH32(esp, eax); /* 0x47025DFE: push eax */ 11333 ecx = esi; /* 0x47025DFF: mov ecx, esi */ 11334 RECOMP_ICALL(0x4703B080u); /* 0x47025E01: call 0x4703b080 */ /* not lifted */ 11335 RECOMP_FLAGS_IN(); 11336 PUSH32(esp, eax); /* 0x47025E06: push eax */ 11337 eax = MEM32(esp + 0x1C); /* 0x47025E07: mov eax, dword ptr [esp + 0x1c] */ 11338 PUSH32(esp, eax); /* 0x47025E0B: push eax */ 11339 PUSH32(esp, 0); /* 0x47025E0C: push 0 */ 11340 PUSH32(esp, 0x51u); /* 0x47025E0E: push 0x51 */ 11341 PUSH32(esp, 0x47105B2Cu); /* 0x47025E10: push 0x47105b2c */ 11342 ecx = esi; /* 0x47025E15: mov ecx, esi */ 11343 RECOMP_ICALL(0x4703A340u); /* 0x47025E17: call 0x4703a340 */ /* not lifted */ 11344 RECOMP_FLAGS_IN(); 11345 PUSH32(esp, edi); /* 0x47025E1C: push edi */ 11346 PUSH32(esp, 0x471052CCu); /* 0x47025E1D: push 0x471052cc */ 11347 PUSH32(esp, 4); /* 0x47025E22: push 4 */ 11348 PUSH32(esp, esi); /* 0x47025E24: push esi */ 11349 RECOMP_ICALL(0x47039830u); /* 0x47025E25: call 0x47039830 */ /* not lifted */ 11350 RECOMP_FLAGS_IN(); 11351 edx = MEM32(edi + 0x4); /* 0x47025E2A: mov edx, dword ptr [edi + 4] */ 11352 ecx = edi + 0x4; /* 0x47025E2D: lea ecx, [edi + 4] */ 11353 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11355 esp = esp + 0x10u; /* 0x47025E30: add esp, 0x10 */ 11356 _flag_k = FK_ADD; 11357 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x47025E33: call dword ptr [edx + 0x28] */ 11358 RECOMP_FLAGS_IN(); 11359 RECOMP_ICALL(ebx); /* 0x47025E36: call ebx */ 11360 RECOMP_FLAGS_IN(); 11361 esi = eax; /* 0x47025E38: mov esi, eax */ 11362 RECOMP_ICALL(ebp); /* 0x47025E3A: call ebp */ 11363 RECOMP_FLAGS_IN(); 11364 eax = MEM32(eax); /* 0x47025E3C: mov eax, dword ptr [eax] */ 11365 /* test eax, eax */ /* 0x47025E3E: test eax, eax */ 11366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11367 _cf = 0; 11368 _flag_k = FK_TEST; 11369 MEM32(esp + 0x10) = esi; /* 0x47025E40: mov dword ptr [esp + 0x10], esi */ 11370 if (TEST_Z(_flag_a, _flag_b)) goto L_47025E4A; /* 0x47025E44: je 0x47025e4a */ 11371 L_47025E46: 11372 MEM32(esp + 0x10) = eax; /* 0x47025E46: mov dword ptr [esp + 0x10], eax */ 11373 L_47025E4A: 11374 RECOMP_ICALL(0x47039020u); /* 0x47025E4A: call 0x47039020 */ /* not lifted */ 11375 RECOMP_FLAGS_IN(); 11376 esi = eax; /* 0x47025E4F: mov esi, eax */ 11377 ecx = esi; /* 0x47025E51: mov ecx, esi */ 11378 RECOMP_ICALL(0x4703B210u); /* 0x47025E53: call 0x4703b210 */ /* not lifted */ 11379 RECOMP_FLAGS_IN(); 11380 PUSH32(esp, eax); /* 0x47025E58: push eax */ 11381 ecx = esi; /* 0x47025E59: mov ecx, esi */ 11382 RECOMP_ICALL(0x4703B240u); /* 0x47025E5B: call 0x4703b240 */ /* not lifted */ 11383 RECOMP_FLAGS_IN(); 11384 PUSH32(esp, eax); /* 0x47025E60: push eax */ 11385 ecx = esi; /* 0x47025E61: mov ecx, esi */ 11386 RECOMP_ICALL(0x4703B080u); /* 0x47025E63: call 0x4703b080 */ /* not lifted */ 11387 RECOMP_FLAGS_IN(); 11388 PUSH32(esp, eax); /* 0x47025E68: push eax */ 11389 eax = MEM32(esp + 0x1C); /* 0x47025E69: mov eax, dword ptr [esp + 0x1c] */ 11390 PUSH32(esp, eax); /* 0x47025E6D: push eax */ 11391 PUSH32(esp, 0); /* 0x47025E6E: push 0 */ 11392 PUSH32(esp, 0x53u); /* 0x47025E70: push 0x53 */ 11393 PUSH32(esp, 0x47105B2Cu); /* 0x47025E72: push 0x47105b2c */ 11394 ecx = esi; /* 0x47025E77: mov ecx, esi */ 11395 RECOMP_ICALL(0x4703A340u); /* 0x47025E79: call 0x4703a340 */ /* not lifted */ 11396 RECOMP_FLAGS_IN(); 11397 ecx = MEM32(edi); /* 0x47025E7E: mov ecx, dword ptr [edi] */ 11398 PUSH32(esp, ecx); /* 0x47025E80: push ecx */ 11399 PUSH32(esp, 0x47105BA8u); /* 0x47025E81: push 0x47105ba8 */ 11400 PUSH32(esp, 4); /* 0x47025E86: push 4 */ 11401 PUSH32(esp, esi); /* 0x47025E88: push esi */ 11402 RECOMP_ICALL(0x47039830u); /* 0x47025E89: call 0x47039830 */ /* not lifted */ 11403 RECOMP_FLAGS_IN(); 11404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 11405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11406 esp = esp + 0x10u; /* 0x47025E8E: add esp, 0x10 */ 11407 _flag_k = FK_ADD; 11408 RECOMP_ICALL(ebx); /* 0x47025E91: call ebx */ 11409 RECOMP_FLAGS_IN(); 11410 esi = eax; /* 0x47025E93: mov esi, eax */ 11411 RECOMP_ICALL(ebp); /* 0x47025E95: call ebp */ 11412 RECOMP_FLAGS_IN(); 11413 eax = MEM32(eax); /* 0x47025E97: mov eax, dword ptr [eax] */ 11414 /* test eax, eax */ /* 0x47025E99: test eax, eax */ 11415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11416 _cf = 0; 11417 _flag_k = FK_TEST; 11418 MEM32(esp + 0x10) = esi; /* 0x47025E9B: mov dword ptr [esp + 0x10], esi */ 11419 if (TEST_Z(_flag_a, _flag_b)) goto L_47025EA5; /* 0x47025E9F: je 0x47025ea5 */ 11420 L_47025EA1: 11421 MEM32(esp + 0x10) = eax; /* 0x47025EA1: mov dword ptr [esp + 0x10], eax */ 11422 L_47025EA5: 11423 RECOMP_ICALL(0x47039020u); /* 0x47025EA5: call 0x47039020 */ /* not lifted */ 11424 RECOMP_FLAGS_IN(); 11425 esi = eax; /* 0x47025EAA: mov esi, eax */ 11426 ecx = esi; /* 0x47025EAC: mov ecx, esi */ 11427 RECOMP_ICALL(0x4703B210u); /* 0x47025EAE: call 0x4703b210 */ /* not lifted */ 11428 RECOMP_FLAGS_IN(); 11429 PUSH32(esp, eax); /* 0x47025EB3: push eax */ 11430 ecx = esi; /* 0x47025EB4: mov ecx, esi */ 11431 RECOMP_ICALL(0x4703B240u); /* 0x47025EB6: call 0x4703b240 */ /* not lifted */ 11432 RECOMP_FLAGS_IN(); 11433 PUSH32(esp, eax); /* 0x47025EBB: push eax */ 11434 ecx = esi; /* 0x47025EBC: mov ecx, esi */ 11435 RECOMP_ICALL(0x4703B080u); /* 0x47025EBE: call 0x4703b080 */ /* not lifted */ 11436 RECOMP_FLAGS_IN(); 11437 edx = MEM32(esp + 0x18); /* 0x47025EC3: mov edx, dword ptr [esp + 0x18] */ 11438 PUSH32(esp, eax); /* 0x47025EC7: push eax */ 11439 PUSH32(esp, edx); /* 0x47025EC8: push edx */ 11440 PUSH32(esp, 0); /* 0x47025EC9: push 0 */ 11441 PUSH32(esp, 0x54u); /* 0x47025ECB: push 0x54 */ 11442 PUSH32(esp, 0x47105B2Cu); /* 0x47025ECD: push 0x47105b2c */ 11443 ecx = esi; /* 0x47025ED2: mov ecx, esi */ 11444 RECOMP_ICALL(0x4703A340u); /* 0x47025ED4: call 0x4703a340 */ /* not lifted */ 11445 RECOMP_FLAGS_IN(); 11446 PUSH32(esp, 0x47105590u); /* 0x47025ED9: push 0x47105590 */ 11447 PUSH32(esp, 4); /* 0x47025EDE: push 4 */ 11448 PUSH32(esp, esi); /* 0x47025EE0: push esi */ 11449 RECOMP_ICALL(0x47039830u); /* 0x47025EE1: call 0x47039830 */ /* not lifted */ 11450 RECOMP_FLAGS_IN(); 11451 ecx = MEM32(edi); /* 0x47025EE6: mov ecx, dword ptr [edi] */ 11452 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11453 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11454 esp = esp + 0xCu; /* 0x47025EE8: add esp, 0xc */ 11455 _flag_k = FK_ADD; 11456 RECOMP_ICALL(0x4703C8F0u); /* 0x47025EEB: call 0x4703c8f0 */ /* not lifted */ 11457 RECOMP_FLAGS_IN(); 11458 RECOMP_ICALL(ebx); /* 0x47025EF0: call ebx */ 11459 RECOMP_FLAGS_IN(); 11460 esi = eax; /* 0x47025EF2: mov esi, eax */ 11461 RECOMP_ICALL(ebp); /* 0x47025EF4: call ebp */ 11462 RECOMP_FLAGS_IN(); 11463 eax = MEM32(eax); /* 0x47025EF6: mov eax, dword ptr [eax] */ 11464 /* test eax, eax */ /* 0x47025EF8: test eax, eax */ 11465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11466 _cf = 0; 11467 _flag_k = FK_TEST; 11468 edi = esi; /* 0x47025EFA: mov edi, esi */ 11469 if (TEST_Z(_flag_a, _flag_b)) goto L_47025F00; /* 0x47025EFC: je 0x47025f00 */ 11470 L_47025EFE: 11471 edi = eax; /* 0x47025EFE: mov edi, eax */ 11472 L_47025F00: 11473 RECOMP_ICALL(0x47039020u); /* 0x47025F00: call 0x47039020 */ /* not lifted */ 11474 RECOMP_FLAGS_IN(); 11475 esi = eax; /* 0x47025F05: mov esi, eax */ 11476 ecx = esi; /* 0x47025F07: mov ecx, esi */ 11477 RECOMP_ICALL(0x4703B210u); /* 0x47025F09: call 0x4703b210 */ /* not lifted */ 11478 RECOMP_FLAGS_IN(); 11479 PUSH32(esp, eax); /* 0x47025F0E: push eax */ 11480 ecx = esi; /* 0x47025F0F: mov ecx, esi */ 11481 RECOMP_ICALL(0x4703B240u); /* 0x47025F11: call 0x4703b240 */ /* not lifted */ 11482 RECOMP_FLAGS_IN(); 11483 PUSH32(esp, eax); /* 0x47025F16: push eax */ 11484 ecx = esi; /* 0x47025F17: mov ecx, esi */ 11485 RECOMP_ICALL(0x4703B080u); /* 0x47025F19: call 0x4703b080 */ /* not lifted */ 11486 RECOMP_FLAGS_IN(); 11487 PUSH32(esp, eax); /* 0x47025F1E: push eax */ 11488 PUSH32(esp, edi); /* 0x47025F1F: push edi */ 11489 PUSH32(esp, 0); /* 0x47025F20: push 0 */ 11490 PUSH32(esp, 0x5Au); /* 0x47025F22: push 0x5a */ 11491 PUSH32(esp, 0x47105B2Cu); /* 0x47025F24: push 0x47105b2c */ 11492 ecx = esi; /* 0x47025F29: mov ecx, esi */ 11493 RECOMP_ICALL(0x4703A340u); /* 0x47025F2B: call 0x4703a340 */ /* not lifted */ 11494 RECOMP_FLAGS_IN(); 11495 PUSH32(esp, 0x4710529Cu); /* 0x47025F30: push 0x4710529c */ 11496 PUSH32(esp, 4); /* 0x47025F35: push 4 */ 11497 PUSH32(esp, esi); /* 0x47025F37: push esi */ 11498 RECOMP_ICALL(0x47039830u); /* 0x47025F38: call 0x47039830 */ /* not lifted */ 11499 RECOMP_FLAGS_IN(); 11500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11502 esp = esp + 0xCu; /* 0x47025F3D: add esp, 0xc */ 11503 _flag_k = FK_ADD; 11504 edi = POP32_VAL(esp); /* 0x47025F40: pop edi */ 11505 esi = POP32_VAL(esp); /* 0x47025F41: pop esi */ 11506 ebp = POP32_VAL(esp); /* 0x47025F42: pop ebp */ 11507 ebx = POP32_VAL(esp); /* 0x47025F43: pop ebx */ 11508 ecx = POP32_VAL(esp); /* 0x47025F44: pop ecx */ 11509 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47025F45: ret */ 11510 RECOMP_REGS_OUT(); 11511 } 11512 11513 void sub_47025F50(void) { 11514 int _fpu_cmp = 0; 11515 uint32_t _cf = 0; 11516 int _df = 1; 11517 uint32_t _flag_k = FK_NONE; 11518 uint32_t _flag_a = 0, _flag_b = 0; 11519 uint32_t _itail_tgt = 0; 11520 RECOMP_REGS_LOCALS 11521 RECOMP_ENTER(0x47025F50u); 11522 11523 L_47025F50: 11524 PUSH32(esp, 0xFFFFFFFFu); /* 0x47025F50: push -1 */ 11525 PUSH32(esp, 0x470A4C4Bu); /* 0x47025F52: push 0x470a4c4b */ 11526 eax = MEM32(FS_BASE + (0)); /* 0x47025F57: mov eax, dword ptr fs:[0] */ 11527 PUSH32(esp, eax); /* 0x47025F5D: push eax */ 11528 MEM32(FS_BASE + (0)) = esp; /* 0x47025F5E: mov dword ptr fs:[0], esp */ 11529 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11530 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11531 esp = esp - 8; /* 0x47025F65: sub esp, 8 */ 11532 _flag_k = FK_CMP; 11533 PUSH32(esp, esi); /* 0x47025F68: push esi */ 11534 esi = ecx; /* 0x47025F69: mov esi, ecx */ 11535 PUSH32(esp, edi); /* 0x47025F6B: push edi */ 11536 MEM32(esp + 0x8) = esi; /* 0x47025F6C: mov dword ptr [esp + 8], esi */ 11537 MEM32(esi) = 0x470AD05Cu; /* 0x47025F70: mov dword ptr [esi], 0x470ad05c */ 11538 edi = esi + 0x4; /* 0x47025F76: lea edi, [esi + 4] */ 11539 MEM32(esp + 0x18) = 0; /* 0x47025F79: mov dword ptr [esp + 0x18], 0 */ 11540 MEM32(esp + 0xC) = edi; /* 0x47025F81: mov dword ptr [esp + 0xc], edi */ 11541 ecx = edi + 0x250; /* 0x47025F85: lea ecx, [edi + 0x250] */ 11542 MEM8(esp + 0x18) = (uint8_t)(1); /* 0x47025F8B: mov byte ptr [esp + 0x18], 1 */ 11543 RECOMP_ICALL(0x47087E30u); /* 0x47025F90: call 0x47087e30 */ /* not lifted */ 11544 RECOMP_FLAGS_IN(); 11545 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 11546 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11547 edi = edi + 4; /* 0x47025F95: add edi, 4 */ 11548 _flag_k = FK_ADD; 11549 MEM32(esp + 0xC) = edi; /* 0x47025F98: mov dword ptr [esp + 0xc], edi */ 11550 MEM32(edi) = 0x470AC710u; /* 0x47025F9C: mov dword ptr [edi], 0x470ac710 */ 11551 ecx = edi + 0x10; /* 0x47025FA2: lea ecx, [edi + 0x10] */ 11552 MEM8(esp + 0x18) = (uint8_t)(2); /* 0x47025FA5: mov byte ptr [esp + 0x18], 2 */ 11553 RECOMP_ICALL(0x47041710u); /* 0x47025FAA: call 0x47041710 */ /* not lifted */ 11554 RECOMP_FLAGS_IN(); 11555 ecx = edi; /* 0x47025FAF: mov ecx, edi */ 11556 MEM8(esp + 0x18) = (uint8_t)(0); /* 0x47025FB1: mov byte ptr [esp + 0x18], 0 */ 11557 RECOMP_ICALL(0x4702A7B0u); /* 0x47025FB6: call 0x4702a7b0 */ /* not lifted */ 11558 RECOMP_FLAGS_IN(); 11559 ecx = esi; /* 0x47025FBB: mov ecx, esi */ 11560 MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47025FBD: mov dword ptr [esp + 0x18], 0xffffffff */ 11561 RECOMP_ICALL(0x4703DCA0u); /* 0x47025FC5: call 0x4703dca0 */ /* not lifted */ 11562 RECOMP_FLAGS_IN(); 11563 ecx = MEM32(esp + 0x10); /* 0x47025FCA: mov ecx, dword ptr [esp + 0x10] */ 11564 edi = POP32_VAL(esp); /* 0x47025FCE: pop edi */ 11565 esi = POP32_VAL(esp); /* 0x47025FCF: pop esi */ 11566 MEM32(FS_BASE + (0)) = ecx; /* 0x47025FD0: mov dword ptr fs:[0], ecx */ 11567 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11568 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11569 esp = esp + 0x14u; /* 0x47025FD7: add esp, 0x14 */ 11570 _flag_k = FK_ADD; 11571 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47025FDA: ret */ 11572 RECOMP_REGS_OUT(); 11573 } 11574 11575 void sub_47025FE0(void) { 11576 int _fpu_cmp = 0; 11577 uint32_t _cf = 0; 11578 int _df = 1; 11579 uint32_t _flag_k = FK_NONE; 11580 uint32_t _flag_a = 0, _flag_b = 0; 11581 uint32_t _itail_tgt = 0; 11582 RECOMP_REGS_LOCALS 11583 RECOMP_ENTER(0x47025FE0u); 11584 11585 L_47025FE0: 11586 eax = MEM32(esp + 0x4); /* 0x47025FE0: mov eax, dword ptr [esp + 4] */ 11587 PUSH32(esp, eax); /* 0x47025FE4: push eax */ 11588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11590 ecx = ecx + 4; /* 0x47025FE5: add ecx, 4 */ 11591 _flag_k = FK_ADD; 11592 RECOMP_ICALL(0x47026B40u); /* 0x47025FE8: call 0x47026b40 */ /* not lifted */ 11593 RECOMP_FLAGS_IN(); 11594 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47025FED: ret 4 */ 11595 RECOMP_REGS_OUT(); 11596 } 11597 11598 void sub_47025FF0(void) { 11599 int _fpu_cmp = 0; 11600 uint32_t _cf = 0; 11601 int _df = 1; 11602 uint32_t _flag_k = FK_NONE; 11603 uint32_t _flag_a = 0, _flag_b = 0; 11604 uint32_t _itail_tgt = 0; 11605 RECOMP_REGS_LOCALS 11606 RECOMP_ENTER(0x47025FF0u); 11607 11608 L_47025FF0: 11609 PUSH32(esp, esi); /* 0x47025FF0: push esi */ 11610 PUSH32(esp, edi); /* 0x47025FF1: push edi */ 11611 edi = MEM32(esp + 0xC); /* 0x47025FF2: mov edi, dword ptr [esp + 0xc] */ 11612 PUSH32(esp, edi); /* 0x47025FF6: push edi */ 11613 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11614 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11615 ecx = ecx + 4; /* 0x47025FF7: add ecx, 4 */ 11616 _flag_k = FK_ADD; 11617 RECOMP_ICALL(0x47026B40u); /* 0x47025FFA: call 0x47026b40 */ /* not lifted */ 11618 RECOMP_FLAGS_IN(); 11619 esi = eax; /* 0x47025FFF: mov esi, eax */ 11620 /* test esi, esi */ /* 0x47026001: test esi, esi */ 11621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11622 _cf = 0; 11623 _flag_k = FK_TEST; 11624 if (TEST_Z(_flag_a, _flag_b)) goto L_47026031; /* 0x47026003: je 0x47026031 */ 11625 L_47026005: 11626 eax = (int32_t)(int8_t)MEM8(esp + 0x10); /* 0x47026005: movsx eax, byte ptr [esp + 0x10] */ 11627 PUSH32(esp, ebx); /* 0x4702600A: push ebx */ 11628 SET_LO8(ebx, LO8(eax)); /* 0x4702600B: mov bl, al */ 11629 SET_HI8(ebx, LO8(ebx)); /* 0x4702600D: mov bh, bl */ 11630 ecx = edi; /* 0x4702600F: mov ecx, edi */ 11631 edx = ecx; /* 0x47026011: mov edx, ecx */ 11632 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47026013: shr ecx, 2 */ 11633 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11634 ecx = ecx >> 2u; /* 0x47026013: shr ecx, 2 */ 11635 edi = esi; /* 0x47026016: mov edi, esi */ 11636 eax = ebx; /* 0x47026018: mov eax, ebx */ 11637 if (16u) _cf = (((eax) >> 16) & 1u); /* 0x4702601A: shl eax, 0x10 */ 11638 if (16u) { _flag_a = recomp_flags_pack((eax << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11639 eax = eax << 16u; /* 0x4702601A: shl eax, 0x10 */ 11640 SET_LO16(eax, LO16(ebx)); /* 0x4702601D: mov ax, bx */ 11641 ebx = POP32_VAL(esp); /* 0x47026020: pop ebx */ 11642 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47026021: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 11643 ecx = edx; /* 0x47026023: mov ecx, edx */ 11644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 11645 ecx = ecx & 3; /* 0x47026025: and ecx, 3 */ 11646 _cf = 0; 11647 _flag_k = FK_TEST; 11648 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47026028: rep stosb byte ptr es:[edi], al */ if (_df > 0) { memset((void*)ADDR(edi), LO8(eax), _n); edi += _b; } else { memset((void*)ADDR(edi - _b + 1u), LO8(eax), _n); edi -= _b; } ecx = 0; } 11649 edi = POP32_VAL(esp); /* 0x4702602A: pop edi */ 11650 eax = esi; /* 0x4702602B: mov eax, esi */ 11651 esi = POP32_VAL(esp); /* 0x4702602D: pop esi */ 11652 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4702602E: ret 8 */ 11653 L_47026031: 11654 edi = POP32_VAL(esp); /* 0x47026031: pop edi */ 11655 eax = esi; /* 0x47026032: mov eax, esi */ 11656 esi = POP32_VAL(esp); /* 0x47026034: pop esi */ 11657 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47026035: ret 8 */ 11658 RECOMP_REGS_OUT(); 11659 } 11660 11661 void sub_47026040(void) { 11662 int _fpu_cmp = 0; 11663 uint32_t _cf = 0; 11664 int _df = 1; 11665 uint32_t _flag_k = FK_NONE; 11666 uint32_t _flag_a = 0, _flag_b = 0; 11667 uint32_t _itail_tgt = 0; 11668 RECOMP_REGS_LOCALS 11669 RECOMP_ENTER(0x47026040u); 11670 11671 L_47026040: 11672 eax = MEM32(esp + 0x4); /* 0x47026040: mov eax, dword ptr [esp + 4] */ 11673 PUSH32(esp, eax); /* 0x47026044: push eax */ 11674 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11675 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11676 ecx = ecx + 4; /* 0x47026045: add ecx, 4 */ 11677 _flag_k = FK_ADD; 11678 RECOMP_ICALL(0x47026BB0u); /* 0x47026048: call 0x47026bb0 */ /* not lifted */ 11679 RECOMP_FLAGS_IN(); 11680 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702604D: ret 4 */ 11681 RECOMP_REGS_OUT(); 11682 } 11683 11684 void sub_47026050(void) { 11685 int _fpu_cmp = 0; 11686 uint32_t _cf = 0; 11687 int _df = 1; 11688 uint32_t _flag_k = FK_NONE; 11689 uint32_t _flag_a = 0, _flag_b = 0; 11690 uint32_t _itail_tgt = 0; 11691 RECOMP_REGS_LOCALS 11692 RECOMP_ENTER(0x47026050u); 11693 11694 L_47026050: 11695 PUSH32(esp, esi); /* 0x47026050: push esi */ 11696 esi = ecx; /* 0x47026051: mov esi, ecx */ 11697 ecx = MEM32(esi + 0x26C); /* 0x47026053: mov ecx, dword ptr [esi + 0x26c] */ 11698 /* test ecx, ecx */ /* 0x47026059: test ecx, ecx */ 11699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11700 _cf = 0; 11701 _flag_k = FK_TEST; 11702 eax = esi + 0x254; /* 0x4702605B: lea eax, [esi + 0x254] */ 11703 if (TEST_NZ(_flag_a, _flag_b)) goto L_47026071; /* 0x47026061: jne 0x47026071 */ 11704 L_47026063: 11705 PUSH32(esp, eax); /* 0x47026063: push eax */ 11706 MEM32(eax + 0x18) = 1; /* 0x47026064: mov dword ptr [eax + 0x18], 1 */ 11707 RECOMP_ICALL(MEM32(0x470AC19C)); /* 0x4702606B: call dword ptr [0x470ac19c] */ 11708 RECOMP_FLAGS_IN(); 11709 L_47026071: 11710 eax = MEM32(esi + 0x8); /* 0x47026071: mov eax, dword ptr [esi + 8] */ 11711 ecx = esi + 0x8; /* 0x47026074: lea ecx, [esi + 8] */ 11712 RECOMP_ICALL(MEM32(eax + 0x48)); /* 0x47026077: call dword ptr [eax + 0x48] */ 11713 RECOMP_FLAGS_IN(); 11714 esi = POP32_VAL(esp); /* 0x4702607A: pop esi */ 11715 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4702607B: ret */ 11716 RECOMP_REGS_OUT(); 11717 } 11718 11719 void sub_47026080(void) { 11720 int _fpu_cmp = 0; 11721 uint32_t _cf = 0; 11722 int _df = 1; 11723 uint32_t _flag_k = FK_NONE; 11724 uint32_t _flag_a = 0, _flag_b = 0; 11725 uint32_t _itail_tgt = 0; 11726 RECOMP_REGS_LOCALS 11727 RECOMP_ENTER(0x47026080u); 11728 11729 L_47026080: 11730 eax = MEM32(esp + 0xC); /* 0x47026080: mov eax, dword ptr [esp + 0xc] */ 11731 edx = MEM32(esp + 0x8); /* 0x47026084: mov edx, dword ptr [esp + 8] */ 11732 PUSH32(esp, eax); /* 0x47026088: push eax */ 11733 eax = MEM32(esp + 0x8); /* 0x47026089: mov eax, dword ptr [esp + 8] */ 11734 PUSH32(esp, edx); /* 0x4702608D: push edx */ 11735 PUSH32(esp, eax); /* 0x4702608E: push eax */ 11736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11737 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11738 ecx = ecx + 4; /* 0x4702608F: add ecx, 4 */ 11739 _flag_k = FK_ADD; 11740 RECOMP_ICALL(0x47026C10u); /* 0x47026092: call 0x47026c10 */ /* not lifted */ 11741 RECOMP_FLAGS_IN(); 11742 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47026097: ret 0xc */ 11743 RECOMP_REGS_OUT(); 11744 } 11745 11746 void sub_470260A0(void) { 11747 int _fpu_cmp = 0; 11748 uint32_t _cf = 0; 11749 int _df = 1; 11750 uint32_t _flag_k = FK_NONE; 11751 uint32_t _flag_a = 0, _flag_b = 0; 11752 uint32_t _itail_tgt = 0; 11753 RECOMP_REGS_LOCALS 11754 RECOMP_ENTER(0x470260A0u); 11755 11756 L_470260A0: 11757 eax = MEM32(esp + 0x8); /* 0x470260A0: mov eax, dword ptr [esp + 8] */ 11758 edx = MEM32(esp + 0x4); /* 0x470260A4: mov edx, dword ptr [esp + 4] */ 11759 PUSH32(esp, eax); /* 0x470260A8: push eax */ 11760 PUSH32(esp, edx); /* 0x470260A9: push edx */ 11761 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11762 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11763 ecx = ecx + 4; /* 0x470260AA: add ecx, 4 */ 11764 _flag_k = FK_ADD; 11765 RECOMP_ICALL(0x47026D10u); /* 0x470260AD: call 0x47026d10 */ /* not lifted */ 11766 RECOMP_FLAGS_IN(); 11767 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470260B2: ret 8 */ 11768 RECOMP_REGS_OUT(); 11769 } 11770 11771 void sub_470260C0(void) { 11772 int _fpu_cmp = 0; 11773 uint32_t _cf = 0; 11774 int _df = 1; 11775 uint32_t _flag_k = FK_NONE; 11776 uint32_t _flag_a = 0, _flag_b = 0; 11777 uint32_t _itail_tgt = 0; 11778 RECOMP_REGS_LOCALS 11779 RECOMP_ENTER(0x470260C0u); 11780 11781 L_470260C0: 11782 eax = MEM32(esp + 0x4); /* 0x470260C0: mov eax, dword ptr [esp + 4] */ 11783 PUSH32(esp, eax); /* 0x470260C4: push eax */ 11784 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11786 ecx = ecx + 4; /* 0x470260C5: add ecx, 4 */ 11787 _flag_k = FK_ADD; 11788 RECOMP_ICALL(0x47026E10u); /* 0x470260C8: call 0x47026e10 */ /* not lifted */ 11789 RECOMP_FLAGS_IN(); 11790 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470260CD: ret 4 */ 11791 RECOMP_REGS_OUT(); 11792 } 11793 11794 void sub_470260D0(void) { 11795 int _fpu_cmp = 0; 11796 uint32_t _cf = 0; 11797 int _df = 1; 11798 uint32_t _flag_k = FK_NONE; 11799 uint32_t _flag_a = 0, _flag_b = 0; 11800 uint32_t _itail_tgt = 0; 11801 RECOMP_REGS_LOCALS 11802 RECOMP_ENTER(0x470260D0u); 11803 11804 L_470260D0: 11805 eax = MEM32(esp + 0x8); /* 0x470260D0: mov eax, dword ptr [esp + 8] */ 11806 edx = MEM32(esp + 0x4); /* 0x470260D4: mov edx, dword ptr [esp + 4] */ 11807 PUSH32(esp, eax); /* 0x470260D8: push eax */ 11808 PUSH32(esp, edx); /* 0x470260D9: push edx */ 11809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11811 ecx = ecx + 4; /* 0x470260DA: add ecx, 4 */ 11812 _flag_k = FK_ADD; 11813 RECOMP_ICALL(0x47026E80u); /* 0x470260DD: call 0x47026e80 */ /* not lifted */ 11814 RECOMP_FLAGS_IN(); 11815 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470260E2: ret 8 */ 11816 RECOMP_REGS_OUT(); 11817 } 11818 11819 void sub_470260F0(void) { 11820 int _fpu_cmp = 0; 11821 uint32_t _cf = 0; 11822 int _df = 1; 11823 uint32_t _flag_k = FK_NONE; 11824 uint32_t _flag_a = 0, _flag_b = 0; 11825 uint32_t _itail_tgt = 0; 11826 RECOMP_REGS_LOCALS 11827 RECOMP_ENTER(0x470260F0u); 11828 11829 L_470260F0: 11830 eax = MEM32(esp + 0x8); /* 0x470260F0: mov eax, dword ptr [esp + 8] */ 11831 edx = MEM32(esp + 0x4); /* 0x470260F4: mov edx, dword ptr [esp + 4] */ 11832 PUSH32(esp, eax); /* 0x470260F8: push eax */ 11833 PUSH32(esp, edx); /* 0x470260F9: push edx */ 11834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11835 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11836 ecx = ecx + 4; /* 0x470260FA: add ecx, 4 */ 11837 _flag_k = FK_ADD; 11838 RECOMP_ICALL(0x47026F10u); /* 0x470260FD: call 0x47026f10 */ /* not lifted */ 11839 RECOMP_FLAGS_IN(); 11840 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47026102: ret 8 */ 11841 RECOMP_REGS_OUT(); 11842 } 11843 11844 void sub_47026110(void) { 11845 int _fpu_cmp = 0; 11846 uint32_t _cf = 0; 11847 int _df = 1; 11848 uint32_t _flag_k = FK_NONE; 11849 uint32_t _flag_a = 0, _flag_b = 0; 11850 uint32_t _itail_tgt = 0; 11851 RECOMP_REGS_LOCALS 11852 RECOMP_ENTER(0x47026110u); 11853 11854 L_47026110: 11855 PUSH32(esp, ecx); /* 0x47026110: push ecx */ 11856 edx = MEM32(esp + 0x8); /* 0x47026111: mov edx, dword ptr [esp + 8] */ 11857 eax = esp; /* 0x47026115: lea eax, [esp] */ 11858 PUSH32(esp, eax); /* 0x47026119: push eax */ 11859 PUSH32(esp, edx); /* 0x4702611A: push edx */ 11860 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11862 ecx = ecx + 4; /* 0x4702611B: add ecx, 4 */ 11863 _flag_k = FK_ADD; 11864 MEM32(esp + 0x8) = 0; /* 0x4702611E: mov dword ptr [esp + 8], 0 */ 11865 RECOMP_ICALL(0x47026F10u); /* 0x47026126: call 0x47026f10 */ /* not lifted */ 11866 RECOMP_FLAGS_IN(); 11867 ecx = POP32_VAL(esp); /* 0x4702612B: pop ecx */ 11868 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702612C: ret 4 */ 11869 RECOMP_REGS_OUT(); 11870 } 11871 11872 void sub_47026130(void) { 11873 int _fpu_cmp = 0; 11874 uint32_t _cf = 0; 11875 int _df = 1; 11876 uint32_t _flag_k = FK_NONE; 11877 uint32_t _flag_a = 0, _flag_b = 0; 11878 uint32_t _itail_tgt = 0; 11879 RECOMP_REGS_LOCALS 11880 RECOMP_ENTER(0x47026130u); 11881 11882 L_47026130: 11883 edx = MEM32(esp + 0xC); /* 0x47026130: mov edx, dword ptr [esp + 0xc] */ 11884 eax = MEM32(ecx + 0x8); /* 0x47026134: mov eax, dword ptr [ecx + 8] */ 11885 PUSH32(esp, edx); /* 0x47026137: push edx */ 11886 edx = MEM32(esp + 0xC); /* 0x47026138: mov edx, dword ptr [esp + 0xc] */ 11887 PUSH32(esp, edx); /* 0x4702613C: push edx */ 11888 edx = MEM32(esp + 0xC); /* 0x4702613D: mov edx, dword ptr [esp + 0xc] */ 11889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11890 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11891 ecx = ecx + 8; /* 0x47026141: add ecx, 8 */ 11892 _flag_k = FK_ADD; 11893 PUSH32(esp, edx); /* 0x47026144: push edx */ 11894 RECOMP_ICALL(MEM32(eax + 0x4C)); /* 0x47026145: call dword ptr [eax + 0x4c] */ 11895 RECOMP_FLAGS_IN(); 11896 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47026148: ret 0xc */ 11897 RECOMP_REGS_OUT(); 11898 } 11899 11900 void sub_47026150(void) { 11901 int _fpu_cmp = 0; 11902 uint32_t _cf = 0; 11903 int _df = 1; 11904 uint32_t _flag_k = FK_NONE; 11905 uint32_t _flag_a = 0, _flag_b = 0; 11906 uint32_t _itail_tgt = 0; 11907 RECOMP_REGS_LOCALS 11908 RECOMP_ENTER(0x47026150u); 11909 11910 L_47026150: 11911 edx = MEM32(esp + 0x8); /* 0x47026150: mov edx, dword ptr [esp + 8] */ 11912 eax = MEM32(ecx + 0x8); /* 0x47026154: mov eax, dword ptr [ecx + 8] */ 11913 PUSH32(esp, edx); /* 0x47026157: push edx */ 11914 edx = MEM32(esp + 0x8); /* 0x47026158: mov edx, dword ptr [esp + 8] */ 11915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 11916 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11917 ecx = ecx + 8; /* 0x4702615C: add ecx, 8 */ 11918 _flag_k = FK_ADD; 11919 PUSH32(esp, edx); /* 0x4702615F: push edx */ 11920 RECOMP_ICALL(MEM32(eax + 0x50)); /* 0x47026160: call dword ptr [eax + 0x50] */ 11921 RECOMP_FLAGS_IN(); 11922 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47026163: ret 8 */ 11923 RECOMP_REGS_OUT(); 11924 } 11925 11926 void sub_47026170(void) { 11927 int _fpu_cmp = 0; 11928 uint32_t _cf = 0; 11929 int _df = 1; 11930 uint32_t _flag_k = FK_NONE; 11931 uint32_t _flag_a = 0, _flag_b = 0; 11932 uint32_t _itail_tgt = 0; 11933 RECOMP_REGS_LOCALS 11934 RECOMP_ENTER(0x47026170u); 11935 11936 L_47026170: 11937 PUSH32(esp, esi); /* 0x47026170: push esi */ 11938 esi = ecx; /* 0x47026171: mov esi, ecx */ 11939 RECOMP_ICALL(0x47026190u); /* 0x47026173: call 0x47026190 */ /* not lifted */ 11940 RECOMP_FLAGS_IN(); 11941 /* test MEM8(esp + 0x8), 1 */ /* 0x47026178: test byte ptr [esp + 8], 1 */ 11942 _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 11943 _cf = 0; 11944 _flag_k = FK_NARROW(FK_TEST, 24); 11945 if (TEST_Z(_flag_a, _flag_b)) goto L_47026188; /* 0x4702617D: je 0x47026188 */ 11946 L_4702617F: 11947 PUSH32(esp, esi); /* 0x4702617F: push esi */ 11948 RECOMP_ICALL(0x470A32A2u); /* 0x47026180: call 0x470a32a2 */ /* not lifted */ 11949 RECOMP_FLAGS_IN(); 11950 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11952 esp = esp + 4; /* 0x47026185: add esp, 4 */ 11953 _flag_k = FK_ADD; 11954 L_47026188: 11955 eax = esi; /* 0x47026188: mov eax, esi */ 11956 esi = POP32_VAL(esp); /* 0x4702618A: pop esi */ 11957 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4702618B: ret 4 */ 11958 RECOMP_REGS_OUT(); 11959 } 11960 11961 void sub_47026190(void) { 11962 int _fpu_cmp = 0; 11963 uint32_t _cf = 0; 11964 int _df = 1; 11965 uint32_t _flag_k = FK_NONE; 11966 uint32_t _flag_a = 0, _flag_b = 0; 11967 uint32_t _itail_tgt = 0; 11968 RECOMP_REGS_LOCALS 11969 RECOMP_ENTER(0x47026190u); 11970 11971 L_47026190: 11972 PUSH32(esp, 0xFFFFFFFFu); /* 0x47026190: push -1 */ 11973 PUSH32(esp, 0x470A4C73u); /* 0x47026192: push 0x470a4c73 */ 11974 eax = MEM32(FS_BASE + (0)); /* 0x47026197: mov eax, dword ptr fs:[0] */ 11975 PUSH32(esp, eax); /* 0x4702619D: push eax */ 11976 MEM32(FS_BASE + (0)) = esp; /* 0x4702619E: mov dword ptr fs:[0], esp */ 11977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11979 esp = esp - 8; /* 0x470261A5: sub esp, 8 */ 11980 _flag_k = FK_CMP; 11981 PUSH32(esp, ebp); /* 0x470261A8: push ebp */ 11982 ebp = ecx; /* 0x470261A9: mov ebp, ecx */ 11983 PUSH32(esp, esi); /* 0x470261AB: push esi */ 11984 PUSH32(esp, edi); /* 0x470261AC: push edi */ 11985 MEM32(esp + 0xC) = ebp; /* 0x470261AD: mov dword ptr [esp + 0xc], ebp */ 11986 MEM32(ebp) = 0x470AD01Cu; /* 0x470261B1: mov dword ptr [ebp], 0x470ad01c */ 11987 esi = ebp + 0x4; /* 0x470261B8: lea esi, [ebp + 4] */ 11988 MEM32(esp + 0x1C) = 0; /* 0x470261BB: mov dword ptr [esp + 0x1c], 0 */ 11989 MEM32(esp + 0x10) = esi; /* 0x470261C3: mov dword ptr [esp + 0x10], esi */ 11990 ecx = esi + 0x14; /* 0x470261C7: lea ecx, [esi + 0x14] */ 11991 MEM8(esp + 0x1C) = (uint8_t)(1); /* 0x470261CA: mov byte ptr [esp + 0x1c], 1 */ 11992 RECOMP_ICALL(0x47087E30u); /* 0x470261CF: call 0x47087e30 */ /* not lifted */ 11993 RECOMP_FLAGS_IN(); 11994 MEM32(esi + 0x4) = 0x470AC6E0u; /* 0x470261D4: mov dword ptr [esi + 4], 0x470ac6e0 */ 11995 eax = MEM32(esi + 0x8); /* 0x470261DB: mov eax, dword ptr [esi + 8] */ 11996 edi = MEM32(eax); /* 0x470261DE: mov edi, dword ptr [eax] */ 11997 /* cmp edi, eax */ /* 0x470261E0: cmp edi, eax */ 11998 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12000 _flag_k = FK_CMP; 12001 MEM8(esp + 0x1C) = (uint8_t)(0); /* 0x470261E2: mov byte ptr [esp + 0x1c], 0 */ 12002 if (CMP_EQ(_flag_a, _flag_b)) goto L_47026208; /* 0x470261E7: je 0x47026208 */ 12003 L_470261E9: 12004 eax = edi; /* 0x470261E9: mov eax, edi */ 12005 /* test eax, eax */ /* 0x470261EB: test eax, eax */ 12006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12007 _cf = 0; 12008 _flag_k = FK_TEST; 12009 edi = MEM32(edi); /* 0x470261ED: mov edi, dword ptr [edi] */ 12010 if (TEST_Z(_flag_a, _flag_b)) goto L_470261FA; /* 0x470261EF: je 0x470261fa */ 12011 L_470261F1: 12012 ecx = MEM32(esi + 0x10); /* 0x470261F1: mov ecx, dword ptr [esi + 0x10] */ 12013 edx = MEM32(ecx); /* 0x470261F4: mov edx, dword ptr [ecx] */ 12014 PUSH32(esp, eax); /* 0x470261F6: push eax */ 12015 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x470261F7: call dword ptr [edx + 0xc] */ 12016 RECOMP_FLAGS_IN(); 12017 L_470261FA: 12018 ecx = MEM32(esi + 0xC); /* 0x470261FA: mov ecx, dword ptr [esi + 0xc] */ 12019 eax = MEM32(esi + 0x8); /* 0x470261FD: mov eax, dword ptr [esi + 8] */ 12020 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12021 ecx = ecx - 1; /* 0x47026200: dec ecx */ 12022 _flag_k = FK_DEC; 12023 /* cmp edi, eax */ /* 0x47026201: cmp edi, eax */ 12024 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12025 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12026 _flag_k = FK_CMP; 12027 MEM32(esi + 0xC) = ecx; /* 0x47026203: mov dword ptr [esi + 0xc], ecx */ 12028 RECOMP_BACKEDGE(); 12029 if (CMP_NE(_flag_a, _flag_b)) goto L_470261E9; /* 0x47026206: jne 0x470261e9 */ 12030 L_47026208: 12031 eax = MEM32(esi + 0x8); /* 0x47026208: mov eax, dword ptr [esi + 8] */ 12032 MEM32(eax) = eax; /* 0x4702620B: mov dword ptr [eax], eax */ 12033 eax = MEM32(esi + 0x8); /* 0x4702620D: mov eax, dword ptr [esi + 8] */ 12034 /* test eax, eax */ /* 0x47026210: test eax, eax */ 12035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12036 _cf = 0; 12037 _flag_k = FK_TEST; 12038 if (TEST_Z(_flag_a, _flag_b)) goto L_4702621D; /* 0x47026212: je 0x4702621d */ 12039 L_47026214: 12040 ecx = MEM32(esi + 0x10); /* 0x47026214: mov ecx, dword ptr [esi + 0x10] */ 12041 edx = MEM32(ecx); /* 0x47026217: mov edx, dword ptr [ecx] */ 12042 PUSH32(esp, eax); /* 0x47026219: push eax */ 12043 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4702621A: call dword ptr [edx + 0xc] */ 12044 RECOMP_FLAGS_IN(); 12045 L_4702621D: 12046 ecx = ebp; /* 0x4702621D: mov ecx, ebp */ 12047 MEM32(esi + 0x8) = 0; /* 0x4702621F: mov dword ptr [esi + 8], 0 */ 12048 MEM32(esp + 0x1C) = 0xFFFFFFFFu; /* 0x47026226: mov dword ptr [esp + 0x1c], 0xffffffff */ 12049 RECOMP_ICALL(0x4703DCA0u); /* 0x4702622E: call 0x4703dca0 */ /* not lifted */ 12050 RECOMP_FLAGS_IN(); 12051 ecx = MEM32(esp + 0x14); /* 0x47026233: mov ecx, dword ptr [esp + 0x14] */ 12052 edi = POP32_VAL(esp); /* 0x47026237: pop edi */ 12053 esi = POP32_VAL(esp); /* 0x47026238: pop esi */ 12054 ebp = POP32_VAL(esp); /* 0x47026239: pop ebp */ 12055 MEM32(FS_BASE + (0)) = ecx; /* 0x4702623A: mov dword ptr fs:[0], ecx */ 12056 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 12057 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12058 esp = esp + 0x14u; /* 0x47026241: add esp, 0x14 */ 12059 _flag_k = FK_ADD; 12060 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47026244: ret */ 12061 RECOMP_REGS_OUT(); 12062 }