client/game/aar.dll/lifted-0001.c (225992B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_20003300(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x20003300u); 17 18 L_20003300: 19 PUSH32(esp, ebp); /* 0x20003300: push ebp */ 20 ebp = esp; /* 0x20003301: mov ebp, esp */ 21 eax = MEM32(ecx + 0x710); /* 0x20003303: mov eax, dword ptr [ecx + 0x710] */ 22 ecx = MEM32(ecx + eax * 4); /* 0x20003309: mov ecx, dword ptr [ecx + eax*4] */ 23 edx = MEM32(ecx + 0x4); /* 0x2000330C: mov edx, dword ptr [ecx + 4] */ 24 eax = MEM32(edx); /* 0x2000330F: mov eax, dword ptr [edx] */ 25 ecx = MEM32(eax + 0x8); /* 0x20003311: mov ecx, dword ptr [eax + 8] */ 26 edx = MEM32(ecx + 0xA4); /* 0x20003314: mov edx, dword ptr [ecx + 0xa4] */ 27 eax = MEM32(ebp + 0x8); /* 0x2000331A: mov eax, dword ptr [ebp + 8] */ 28 MEM32(eax) = edx; /* 0x2000331D: mov dword ptr [eax], edx */ 29 ecx = MEM32(ecx + 0xA8); /* 0x2000331F: mov ecx, dword ptr [ecx + 0xa8] */ 30 MEM32(eax + 0x4) = ecx; /* 0x20003325: mov dword ptr [eax + 4], ecx */ 31 ebp = POP32_VAL(esp); /* 0x20003328: pop ebp */ 32 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20003329: ret 4 */ 33 RECOMP_REGS_OUT(); 34 } 35 36 void sub_20003330(void) { 37 int _fpu_cmp = 0; 38 uint32_t _cf = 0; 39 int _df = 1; 40 uint32_t _flag_k = FK_NONE; 41 uint32_t _flag_a = 0, _flag_b = 0; 42 uint32_t _itail_tgt = 0; 43 RECOMP_REGS_LOCALS 44 RECOMP_ENTER(0x20003330u); 45 46 L_20003330: 47 RECOMP_ICALL(0x20003340u); /* 0x20003330: call 0x20003340 */ /* not lifted */ 48 RECOMP_FLAGS_IN(); 49 goto L_20003350; /* 0x20003335: jmp 0x20003350 */ 50 L_20003350: 51 PUSH32(esp, 0x20003360u); /* 0x20003350: push 0x20003360 */ 52 RECOMP_ICALL(0x200072C2u); /* 0x20003355: call 0x200072c2 */ /* not lifted */ 53 RECOMP_FLAGS_IN(); 54 ecx = POP32_VAL(esp); /* 0x2000335A: pop ecx */ 55 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000335B: ret */ 56 RECOMP_REGS_OUT(); 57 } 58 59 void sub_20003340(void) { 60 int _fpu_cmp = 0; 61 uint32_t _cf = 0; 62 int _df = 1; 63 uint32_t _flag_k = FK_NONE; 64 uint32_t _flag_a = 0, _flag_b = 0; 65 uint32_t _itail_tgt = 0; 66 RECOMP_REGS_LOCALS 67 RECOMP_ENTER(0x20003340u); 68 69 L_20003340: 70 ecx = 0x20015CDDu; /* 0x20003340: mov ecx, 0x20015cdd */ 71 L_20003345: 72 { _itail_tgt = (uint32_t)(MEM32(0x20008020)); goto _ljump; } 73 { RECOMP_REGS_OUT(); return; } /* end of function */ 74 _ljump: 75 switch (_itail_tgt) { 76 case 0x20003340u: goto L_20003340; 77 case 0x20003345u: goto L_20003345; 78 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 79 } 80 RECOMP_REGS_OUT(); 81 } 82 83 void sub_20003350(void) { 84 int _fpu_cmp = 0; 85 uint32_t _cf = 0; 86 int _df = 1; 87 uint32_t _flag_k = FK_NONE; 88 uint32_t _flag_a = 0, _flag_b = 0; 89 uint32_t _itail_tgt = 0; 90 RECOMP_REGS_LOCALS 91 RECOMP_ENTER(0x20003350u); 92 93 L_20003350: 94 PUSH32(esp, 0x20003360u); /* 0x20003350: push 0x20003360 */ 95 RECOMP_ICALL(0x200072C2u); /* 0x20003355: call 0x200072c2 */ /* not lifted */ 96 RECOMP_FLAGS_IN(); 97 ecx = POP32_VAL(esp); /* 0x2000335A: pop ecx */ 98 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000335B: ret */ 99 RECOMP_REGS_OUT(); 100 } 101 102 void sub_20003360(void) { 103 int _fpu_cmp = 0; 104 uint32_t _cf = 0; 105 int _df = 1; 106 uint32_t _flag_k = FK_NONE; 107 uint32_t _flag_a = 0, _flag_b = 0; 108 uint32_t _itail_tgt = 0; 109 RECOMP_REGS_LOCALS 110 RECOMP_ENTER(0x20003360u); 111 112 L_20003360: 113 ecx = 0x20015CDDu; /* 0x20003360: mov ecx, 0x20015cdd */ 114 L_20003365: 115 { _itail_tgt = (uint32_t)(MEM32(0x20008024)); goto _ljump; } 116 { RECOMP_REGS_OUT(); return; } /* end of function */ 117 _ljump: 118 switch (_itail_tgt) { 119 case 0x20003360u: goto L_20003360; 120 case 0x20003365u: goto L_20003365; 121 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 122 } 123 RECOMP_REGS_OUT(); 124 } 125 126 void sub_20003370(void) { 127 int _fpu_cmp = 0; 128 uint32_t _cf = 0; 129 int _df = 1; 130 uint32_t _flag_k = FK_NONE; 131 uint32_t _flag_a = 0, _flag_b = 0; 132 uint32_t _itail_tgt = 0; 133 RECOMP_REGS_LOCALS 134 RECOMP_ENTER(0x20003370u); 135 136 L_20003370: 137 RECOMP_ICALL(0x20003380u); /* 0x20003370: call 0x20003380 */ /* not lifted */ 138 RECOMP_FLAGS_IN(); 139 goto L_20003390; /* 0x20003375: jmp 0x20003390 */ 140 L_20003390: 141 PUSH32(esp, 0x200033A0u); /* 0x20003390: push 0x200033a0 */ 142 RECOMP_ICALL(0x200072C2u); /* 0x20003395: call 0x200072c2 */ /* not lifted */ 143 RECOMP_FLAGS_IN(); 144 ecx = POP32_VAL(esp); /* 0x2000339A: pop ecx */ 145 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000339B: ret */ 146 RECOMP_REGS_OUT(); 147 } 148 149 void sub_20003380(void) { 150 int _fpu_cmp = 0; 151 uint32_t _cf = 0; 152 int _df = 1; 153 uint32_t _flag_k = FK_NONE; 154 uint32_t _flag_a = 0, _flag_b = 0; 155 uint32_t _itail_tgt = 0; 156 RECOMP_REGS_LOCALS 157 RECOMP_ENTER(0x20003380u); 158 159 L_20003380: 160 ecx = 0x20015CDCu; /* 0x20003380: mov ecx, 0x20015cdc */ 161 L_20003385: 162 { _itail_tgt = (uint32_t)(MEM32(0x20008028)); goto _ljump; } 163 { RECOMP_REGS_OUT(); return; } /* end of function */ 164 _ljump: 165 switch (_itail_tgt) { 166 case 0x20003380u: goto L_20003380; 167 case 0x20003385u: goto L_20003385; 168 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 169 } 170 RECOMP_REGS_OUT(); 171 } 172 173 void sub_20003390(void) { 174 int _fpu_cmp = 0; 175 uint32_t _cf = 0; 176 int _df = 1; 177 uint32_t _flag_k = FK_NONE; 178 uint32_t _flag_a = 0, _flag_b = 0; 179 uint32_t _itail_tgt = 0; 180 RECOMP_REGS_LOCALS 181 RECOMP_ENTER(0x20003390u); 182 183 L_20003390: 184 PUSH32(esp, 0x200033A0u); /* 0x20003390: push 0x200033a0 */ 185 RECOMP_ICALL(0x200072C2u); /* 0x20003395: call 0x200072c2 */ /* not lifted */ 186 RECOMP_FLAGS_IN(); 187 ecx = POP32_VAL(esp); /* 0x2000339A: pop ecx */ 188 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000339B: ret */ 189 RECOMP_REGS_OUT(); 190 } 191 192 void sub_200033A0(void) { 193 int _fpu_cmp = 0; 194 uint32_t _cf = 0; 195 int _df = 1; 196 uint32_t _flag_k = FK_NONE; 197 uint32_t _flag_a = 0, _flag_b = 0; 198 uint32_t _itail_tgt = 0; 199 RECOMP_REGS_LOCALS 200 RECOMP_ENTER(0x200033A0u); 201 202 L_200033A0: 203 ecx = 0x20015CDCu; /* 0x200033A0: mov ecx, 0x20015cdc */ 204 L_200033A5: 205 { _itail_tgt = (uint32_t)(MEM32(0x2000802C)); goto _ljump; } 206 { RECOMP_REGS_OUT(); return; } /* end of function */ 207 _ljump: 208 switch (_itail_tgt) { 209 case 0x200033A0u: goto L_200033A0; 210 case 0x200033A5u: goto L_200033A5; 211 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 212 } 213 RECOMP_REGS_OUT(); 214 } 215 216 void sub_200033B0(void) { 217 int _fpu_cmp = 0; 218 uint32_t _cf = 0; 219 int _df = 1; 220 uint32_t _flag_k = FK_NONE; 221 uint32_t _flag_a = 0, _flag_b = 0; 222 uint32_t _itail_tgt = 0; 223 RECOMP_REGS_LOCALS 224 RECOMP_ENTER(0x200033B0u); 225 226 L_200033B0: 227 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200033B0: ret 8 */ 228 RECOMP_REGS_OUT(); 229 } 230 231 void sub_200033C0(void) { 232 int _fpu_cmp = 0; 233 uint32_t _cf = 0; 234 int _df = 1; 235 uint32_t _flag_k = FK_NONE; 236 uint32_t _flag_a = 0, _flag_b = 0; 237 uint32_t _itail_tgt = 0; 238 RECOMP_REGS_LOCALS 239 RECOMP_ENTER(0x200033C0u); 240 241 L_200033C0: 242 PUSH32(esp, ebp); /* 0x200033C0: push ebp */ 243 ebp = esp; /* 0x200033C1: mov ebp, esp */ 244 PUSH32(esp, ecx); /* 0x200033C3: push ecx */ 245 /* cmp MEM32(ecx + 0x70C), 1 */ /* 0x200033C4: cmp dword ptr [ecx + 0x70c], 1 */ 246 _flag_a = (uint32_t)(MEM32(ecx + 0x70C)); _flag_b = (uint32_t)(1); 247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 248 _flag_k = FK_CMP; 249 PUSH32(esp, ebx); /* 0x200033CB: push ebx */ 250 PUSH32(esp, esi); /* 0x200033CC: push esi */ 251 PUSH32(esp, edi); /* 0x200033CD: push edi */ 252 MEM32(ebp + (-0x4)) = ecx; /* 0x200033CE: mov dword ptr [ebp - 4], ecx */ 253 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000341D; /* 0x200033D1: je 0x2000341d */ 254 L_200033D3: 255 ebx = MEM32(ebp + 0x14); /* 0x200033D3: mov ebx, dword ptr [ebp + 0x14] */ 256 eax = ebx + 0x1; /* 0x200033D6: lea eax, [ebx + 1] */ 257 PUSH32(esp, eax); /* 0x200033D9: push eax */ 258 RECOMP_ICALL(0x2000727Cu); /* 0x200033DA: call 0x2000727c */ /* not lifted */ 259 RECOMP_FLAGS_IN(); 260 esi = MEM32(ebp + 0x10); /* 0x200033DF: mov esi, dword ptr [ebp + 0x10] */ 261 ecx = ebx; /* 0x200033E2: mov ecx, ebx */ 262 edx = ecx; /* 0x200033E4: mov edx, ecx */ 263 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x200033E6: shr ecx, 2 */ 264 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 265 ecx = ecx >> 2u; /* 0x200033E6: shr ecx, 2 */ 266 edi = eax; /* 0x200033E9: mov edi, eax */ 267 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x200033EB: 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; } 268 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 270 esp = esp + 4; /* 0x200033ED: add esp, 4 */ 271 _flag_k = FK_ADD; 272 ecx = edx; /* 0x200033F0: mov ecx, edx */ 273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 274 ecx = ecx & 3; /* 0x200033F2: and ecx, 3 */ 275 _cf = 0; 276 _flag_k = FK_TEST; 277 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x200033F5: 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; } 278 esi = MEM32(ebp + 0xC); /* 0x200033F7: mov esi, dword ptr [ebp + 0xc] */ 279 edi = MEM32(ebp + 0x8); /* 0x200033FA: mov edi, dword ptr [ebp + 8] */ 280 PUSH32(esp, 1); /* 0x200033FD: push 1 */ 281 PUSH32(esp, eax); /* 0x200033FF: push eax */ 282 MEM8(eax + ebx) = (uint8_t)(0); /* 0x20003400: mov byte ptr [eax + ebx], 0 */ 283 ebx = MEM32(ebp + (-0x4)); /* 0x20003404: mov ebx, dword ptr [ebp - 4] */ 284 PUSH32(esp, esi); /* 0x20003407: push esi */ 285 PUSH32(esp, edi); /* 0x20003408: push edi */ 286 ecx = ebx; /* 0x20003409: mov ecx, ebx */ 287 RECOMP_ICALL(0x200011F0u); /* 0x2000340B: call 0x200011f0 */ /* not lifted */ 288 RECOMP_FLAGS_IN(); 289 /* test eax, eax */ /* 0x20003410: test eax, eax */ 290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 291 _cf = 0; 292 _flag_k = FK_TEST; 293 if (TEST_Z(_flag_a, _flag_b)) goto L_2000341D; /* 0x20003412: je 0x2000341d */ 294 L_20003414: 295 PUSH32(esp, esi); /* 0x20003414: push esi */ 296 PUSH32(esp, edi); /* 0x20003415: push edi */ 297 ecx = ebx; /* 0x20003416: mov ecx, ebx */ 298 RECOMP_ICALL(0x200033B0u); /* 0x20003418: call 0x200033b0 */ /* not lifted */ 299 RECOMP_FLAGS_IN(); 300 L_2000341D: 301 edi = POP32_VAL(esp); /* 0x2000341D: pop edi */ 302 esi = POP32_VAL(esp); /* 0x2000341E: pop esi */ 303 ebx = POP32_VAL(esp); /* 0x2000341F: pop ebx */ 304 esp = ebp; /* 0x20003420: mov esp, ebp */ 305 ebp = POP32_VAL(esp); /* 0x20003422: pop ebp */ 306 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20003423: ret 0x10 */ 307 RECOMP_REGS_OUT(); 308 } 309 310 void sub_20003430(void) { 311 int _fpu_cmp = 0; 312 uint32_t _cf = 0; 313 int _df = 1; 314 uint32_t _flag_k = FK_NONE; 315 uint32_t _flag_a = 0, _flag_b = 0; 316 uint32_t _itail_tgt = 0; 317 RECOMP_REGS_LOCALS 318 RECOMP_ENTER(0x20003430u); 319 320 L_20003430: 321 PUSH32(esp, ebp); /* 0x20003430: push ebp */ 322 ebp = esp; /* 0x20003431: mov ebp, esp */ 323 PUSH32(esp, 0xFFFFFFFFu); /* 0x20003433: push -1 */ 324 PUSH32(esp, 0x2000750Bu); /* 0x20003435: push 0x2000750b */ 325 eax = MEM32(FS_BASE + (0)); /* 0x2000343A: mov eax, dword ptr fs:[0] */ 326 PUSH32(esp, eax); /* 0x20003440: push eax */ 327 MEM32(FS_BASE + (0)) = esp; /* 0x20003441: mov dword ptr fs:[0], esp */ 328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 330 esp = esp - 0xCu; /* 0x20003448: sub esp, 0xc */ 331 _flag_k = FK_CMP; 332 /* cmp MEM32(ecx + 0x70C), 1 */ /* 0x2000344B: cmp dword ptr [ecx + 0x70c], 1 */ 333 _flag_a = (uint32_t)(MEM32(ecx + 0x70C)); _flag_b = (uint32_t)(1); 334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 335 _flag_k = FK_CMP; 336 PUSH32(esp, esi); /* 0x20003452: push esi */ 337 PUSH32(esp, edi); /* 0x20003453: push edi */ 338 MEM32(ebp + (-0x14)) = ecx; /* 0x20003454: mov dword ptr [ebp - 0x14], ecx */ 339 if (CMP_EQ(_flag_a, _flag_b)) goto L_200035D4; /* 0x20003457: je 0x200035d4 */ 340 L_2000345D: 341 eax = MEM32(ebp + 0xC); /* 0x2000345D: mov eax, dword ptr [ebp + 0xc] */ 342 edx = MEM32(ebp + 0x8); /* 0x20003460: mov edx, dword ptr [ebp + 8] */ 343 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 344 edi = 0; /* 0x20003463: xor edi, edi */ 345 _cf = 0; 346 _flag_k = FK_TEST; 347 PUSH32(esp, edi); /* 0x20003465: push edi */ 348 PUSH32(esp, edi); /* 0x20003466: push edi */ 349 PUSH32(esp, eax); /* 0x20003467: push eax */ 350 PUSH32(esp, edx); /* 0x20003468: push edx */ 351 RECOMP_ICALL(0x200011F0u); /* 0x20003469: call 0x200011f0 */ /* not lifted */ 352 RECOMP_FLAGS_IN(); 353 esi = eax; /* 0x2000346E: mov esi, eax */ 354 /* cmp esi, edi */ /* 0x20003470: cmp esi, edi */ 355 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 357 _flag_k = FK_CMP; 358 MEM32(ebp + (-0x10)) = esi; /* 0x20003472: mov dword ptr [ebp - 0x10], esi */ 359 if (CMP_EQ(_flag_a, _flag_b)) goto L_200035D4; /* 0x20003475: je 0x200035d4 */ 360 L_2000347B: 361 PUSH32(esp, ebx); /* 0x2000347B: push ebx */ 362 PUSH32(esp, 0x10u); /* 0x2000347C: push 0x10 */ 363 MEM32(esi + 0x8) = 0x01000000u; /* 0x2000347E: mov dword ptr [esi + 8], 0x1000000 */ 364 RECOMP_ICALL(0x2000727Cu); /* 0x20003485: call 0x2000727c */ /* not lifted */ 365 RECOMP_FLAGS_IN(); 366 ebx = eax; /* 0x2000348A: mov ebx, eax */ 367 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 368 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 369 esp = esp + 4; /* 0x2000348C: add esp, 4 */ 370 _flag_k = FK_ADD; 371 MEM32(ebp + (-0x18)) = ebx; /* 0x2000348F: mov dword ptr [ebp - 0x18], ebx */ 372 /* cmp ebx, edi */ /* 0x20003492: cmp ebx, edi */ 373 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 375 _flag_k = FK_CMP; 376 MEM32(ebp + (-0x4)) = edi; /* 0x20003494: mov dword ptr [ebp - 4], edi */ 377 if (CMP_EQ(_flag_a, _flag_b)) goto L_200035BE; /* 0x20003497: je 0x200035be */ 378 L_2000349D: 379 esi = MEM32(ebp + 0x10); /* 0x2000349D: mov esi, dword ptr [ebp + 0x10] */ 380 SET_LO8(eax, MEM8(esi)); /* 0x200034A0: mov al, byte ptr [esi] */ 381 MEM32(ebx + 0x4) = edi; /* 0x200034A2: mov dword ptr [ebx + 4], edi */ 382 MEM32(ebx + 0x8) = edi; /* 0x200034A5: mov dword ptr [ebx + 8], edi */ 383 MEM32(ebx + 0xC) = edi; /* 0x200034A8: mov dword ptr [ebx + 0xc], edi */ 384 MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x200034AB: mov byte ptr [ebx], al */ 385 ecx = MEM32(0x20008030); /* 0x200034AD: mov ecx, dword ptr [0x20008030] */ 386 eax = MEM32(ecx); /* 0x200034B3: mov eax, dword ptr [ecx] */ 387 ecx = MEM32(esi + 0x8); /* 0x200034B5: mov ecx, dword ptr [esi + 8] */ 388 edi = ecx; /* 0x200034B8: mov edi, ecx */ 389 /* cmp eax, edi */ /* 0x200034BA: cmp eax, edi */ 390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 392 _flag_k = FK_CMP; 393 MEM32(ebp + 0x10) = edi; /* 0x200034BC: mov dword ptr [ebp + 0x10], edi */ 394 if (CMP_AE(_flag_a, _flag_b)) goto L_200034C6; /* 0x200034BF: jae 0x200034c6 */ 395 L_200034C1: 396 MEM32(ebp + 0x10) = eax; /* 0x200034C1: mov dword ptr [ebp + 0x10], eax */ 397 edi = eax; /* 0x200034C4: mov edi, eax */ 398 L_200034C6: 399 /* cmp ebx, esi */ /* 0x200034C6: cmp ebx, esi */ 400 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 402 _flag_k = FK_CMP; 403 if (CMP_NE(_flag_a, _flag_b)) goto L_20003536; /* 0x200034C8: jne 0x20003536 */ 404 L_200034CA: 405 /* test edi, edi */ /* 0x200034CA: test edi, edi */ 406 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 407 _cf = 0; 408 _flag_k = FK_TEST; 409 esi = eax; /* 0x200034CC: mov esi, eax */ 410 if (TEST_Z(_flag_a, _flag_b)) goto L_200034D6; /* 0x200034CE: jbe 0x200034d6 */ 411 L_200034D0: 412 RECOMP_ICALL(MEM32(0x20008010)); /* 0x200034D0: call dword ptr [0x20008010] */ 413 RECOMP_FLAGS_IN(); 414 L_200034D6: 415 eax = MEM32(ebx + 0x8); /* 0x200034D6: mov eax, dword ptr [ebx + 8] */ 416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 418 eax = eax - edi; /* 0x200034D9: sub eax, edi */ 419 _flag_k = FK_CMP; 420 /* cmp eax, esi */ /* 0x200034DB: cmp eax, esi */ 421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 423 _flag_k = FK_CMP; 424 if (CMP_AE(_flag_a, _flag_b)) goto L_200034E1; /* 0x200034DD: jae 0x200034e1 */ 425 L_200034DF: 426 esi = eax; /* 0x200034DF: mov esi, eax */ 427 L_200034E1: 428 /* test esi, esi */ /* 0x200034E1: test esi, esi */ 429 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 430 _cf = 0; 431 _flag_k = FK_TEST; 432 if (TEST_Z(_flag_a, _flag_b)) goto L_200035B9; /* 0x200034E3: jbe 0x200035b9 */ 433 L_200034E9: 434 ecx = ebx; /* 0x200034E9: mov ecx, ebx */ 435 RECOMP_ICALL(MEM32(0x20008040)); /* 0x200034EB: call dword ptr [0x20008040] */ 436 RECOMP_FLAGS_IN(); 437 ecx = MEM32(ebx + 0x8); /* 0x200034F1: mov ecx, dword ptr [ebx + 8] */ 438 edx = MEM32(ebx + 0x4); /* 0x200034F4: mov edx, dword ptr [ebx + 4] */ 439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 441 ecx = ecx - esi; /* 0x200034F7: sub ecx, esi */ 442 _flag_k = FK_CMP; 443 eax = edx + edi; /* 0x200034F9: lea eax, [edx + edi] */ 444 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 445 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 446 ecx = ecx - edi; /* 0x200034FC: sub ecx, edi */ 447 _flag_k = FK_CMP; 448 PUSH32(esp, ecx); /* 0x200034FE: push ecx */ 449 edx = eax + esi; /* 0x200034FF: lea edx, [eax + esi] */ 450 PUSH32(esp, edx); /* 0x20003502: push edx */ 451 PUSH32(esp, eax); /* 0x20003503: push eax */ 452 RECOMP_ICALL(MEM32(0x2000805C)); /* 0x20003504: call dword ptr [0x2000805c] */ 453 RECOMP_FLAGS_IN(); 454 edi = MEM32(ebx + 0x8); /* 0x2000350A: mov edi, dword ptr [ebx + 8] */ 455 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 456 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 457 esp = esp + 0xCu; /* 0x2000350D: add esp, 0xc */ 458 _flag_k = FK_ADD; 459 PUSH32(esp, 0); /* 0x20003510: push 0 */ 460 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 462 edi = edi - esi; /* 0x20003512: sub edi, esi */ 463 _flag_k = FK_CMP; 464 PUSH32(esp, edi); /* 0x20003514: push edi */ 465 ecx = ebx; /* 0x20003515: mov ecx, ebx */ 466 RECOMP_ICALL(MEM32(0x2000803C)); /* 0x20003517: call dword ptr [0x2000803c] */ 467 RECOMP_FLAGS_IN(); 468 /* test LO8(eax), LO8(eax) */ /* 0x2000351D: test al, al */ 469 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 470 _cf = 0; 471 _flag_k = FK_NARROW(FK_TEST, 24); 472 if (TEST_Z(_flag_a, _flag_b)) goto L_200035B9; /* 0x2000351F: je 0x200035b9 */ 473 L_20003525: 474 PUSH32(esp, edi); /* 0x20003525: push edi */ 475 ecx = ebx; /* 0x20003526: mov ecx, ebx */ 476 RECOMP_ICALL(MEM32(0x20008038)); /* 0x20003528: call dword ptr [0x20008038] */ 477 RECOMP_FLAGS_IN(); 478 esi = MEM32(ebp + (-0x10)); /* 0x2000352E: mov esi, dword ptr [ebp - 0x10] */ 479 goto L_200035C0; /* 0x20003531: jmp 0x200035c0 */ 480 L_20003536: 481 /* test edi, edi */ /* 0x20003536: test edi, edi */ 482 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 483 _cf = 0; 484 _flag_k = FK_TEST; 485 if (TEST_Z(_flag_a, _flag_b)) goto L_2000357D; /* 0x20003538: jbe 0x2000357d */ 486 L_2000353A: 487 /* cmp edi, ecx */ /* 0x2000353A: cmp edi, ecx */ 488 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 490 _flag_k = FK_CMP; 491 if (CMP_NE(_flag_a, _flag_b)) goto L_2000357D; /* 0x2000353C: jne 0x2000357d */ 492 L_2000353E: 493 eax = MEM32(esi + 0x4); /* 0x2000353E: mov eax, dword ptr [esi + 4] */ 494 /* test eax, eax */ /* 0x20003541: test eax, eax */ 495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 496 _cf = 0; 497 _flag_k = FK_TEST; 498 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000354A; /* 0x20003543: jne 0x2000354a */ 499 L_20003545: 500 eax = MEM32(0x20008034); /* 0x20003545: mov eax, dword ptr [0x20008034] */ 501 L_2000354A: 502 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x2000354A: cmp byte ptr [eax - 1], 0xfe */ 503 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 505 _flag_k = FK_NARROW(FK_CMP, 24); 506 if (CMP_AE(_flag_a, _flag_b)) goto L_2000357D; /* 0x2000354E: jae 0x2000357d */ 507 L_20003550: 508 PUSH32(esp, 1); /* 0x20003550: push 1 */ 509 ecx = ebx; /* 0x20003552: mov ecx, ebx */ 510 RECOMP_ICALL(MEM32(0x2000801C)); /* 0x20003554: call dword ptr [0x2000801c] */ 511 RECOMP_FLAGS_IN(); 512 eax = MEM32(esi + 0x4); /* 0x2000355A: mov eax, dword ptr [esi + 4] */ 513 /* test eax, eax */ /* 0x2000355D: test eax, eax */ 514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 515 _cf = 0; 516 _flag_k = FK_TEST; 517 if (TEST_NZ(_flag_a, _flag_b)) goto L_20003566; /* 0x2000355F: jne 0x20003566 */ 518 L_20003561: 519 eax = MEM32(0x20008034); /* 0x20003561: mov eax, dword ptr [0x20008034] */ 520 L_20003566: 521 MEM32(ebx + 0x4) = eax; /* 0x20003566: mov dword ptr [ebx + 4], eax */ 522 ecx = MEM32(esi + 0x8); /* 0x20003569: mov ecx, dword ptr [esi + 8] */ 523 MEM32(ebx + 0x8) = ecx; /* 0x2000356C: mov dword ptr [ebx + 8], ecx */ 524 edx = MEM32(esi + 0xC); /* 0x2000356F: mov edx, dword ptr [esi + 0xc] */ 525 esi = MEM32(ebp + (-0x10)); /* 0x20003572: mov esi, dword ptr [ebp - 0x10] */ 526 MEM32(ebx + 0xC) = edx; /* 0x20003575: mov dword ptr [ebx + 0xc], edx */ 527 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 528 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x20003578: inc byte ptr [eax - 1] */ 529 _flag_k = FK_NARROW(FK_INC, 24); 530 goto L_200035C0; /* 0x2000357B: jmp 0x200035c0 */ 531 L_2000357D: 532 PUSH32(esp, 1); /* 0x2000357D: push 1 */ 533 PUSH32(esp, edi); /* 0x2000357F: push edi */ 534 ecx = ebx; /* 0x20003580: mov ecx, ebx */ 535 RECOMP_ICALL(MEM32(0x2000803C)); /* 0x20003582: call dword ptr [0x2000803c] */ 536 RECOMP_FLAGS_IN(); 537 /* test LO8(eax), LO8(eax) */ /* 0x20003588: test al, al */ 538 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 539 _cf = 0; 540 _flag_k = FK_NARROW(FK_TEST, 24); 541 if (TEST_Z(_flag_a, _flag_b)) goto L_200035B9; /* 0x2000358A: je 0x200035b9 */ 542 L_2000358C: 543 esi = MEM32(esi + 0x4); /* 0x2000358C: mov esi, dword ptr [esi + 4] */ 544 /* test esi, esi */ /* 0x2000358F: test esi, esi */ 545 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 546 _cf = 0; 547 _flag_k = FK_TEST; 548 if (TEST_NZ(_flag_a, _flag_b)) goto L_20003599; /* 0x20003591: jne 0x20003599 */ 549 L_20003593: 550 esi = MEM32(0x20008034); /* 0x20003593: mov esi, dword ptr [0x20008034] */ 551 L_20003599: 552 ecx = edi; /* 0x20003599: mov ecx, edi */ 553 edi = MEM32(ebx + 0x4); /* 0x2000359B: mov edi, dword ptr [ebx + 4] */ 554 eax = ecx; /* 0x2000359E: mov eax, ecx */ 555 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x200035A0: shr ecx, 2 */ 556 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 557 ecx = ecx >> 2u; /* 0x200035A0: shr ecx, 2 */ 558 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x200035A3: 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; } 559 ecx = eax; /* 0x200035A5: mov ecx, eax */ 560 eax = MEM32(ebp + 0x10); /* 0x200035A7: mov eax, dword ptr [ebp + 0x10] */ 561 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 562 ecx = ecx & 3; /* 0x200035AA: and ecx, 3 */ 563 _cf = 0; 564 _flag_k = FK_TEST; 565 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x200035AD: 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; } 566 ecx = MEM32(ebx + 0x4); /* 0x200035AF: mov ecx, dword ptr [ebx + 4] */ 567 MEM32(ebx + 0x8) = eax; /* 0x200035B2: mov dword ptr [ebx + 8], eax */ 568 MEM8(ecx + eax) = (uint8_t)(0); /* 0x200035B5: mov byte ptr [ecx + eax], 0 */ 569 L_200035B9: 570 esi = MEM32(ebp + (-0x10)); /* 0x200035B9: mov esi, dword ptr [ebp - 0x10] */ 571 goto L_200035C0; /* 0x200035BC: jmp 0x200035c0 */ 572 L_200035BE: 573 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 574 ebx = 0; /* 0x200035BE: xor ebx, ebx */ 575 _cf = 0; 576 _flag_k = FK_TEST; 577 L_200035C0: 578 edx = MEM32(ebp + 0xC); /* 0x200035C0: mov edx, dword ptr [ebp + 0xc] */ 579 eax = MEM32(ebp + 0x8); /* 0x200035C3: mov eax, dword ptr [ebp + 8] */ 580 ecx = MEM32(ebp + (-0x14)); /* 0x200035C6: mov ecx, dword ptr [ebp - 0x14] */ 581 PUSH32(esp, edx); /* 0x200035C9: push edx */ 582 PUSH32(esp, eax); /* 0x200035CA: push eax */ 583 MEM32(esi + 0x14) = ebx; /* 0x200035CB: mov dword ptr [esi + 0x14], ebx */ 584 RECOMP_ICALL(0x200033B0u); /* 0x200035CE: call 0x200033b0 */ /* not lifted */ 585 RECOMP_FLAGS_IN(); 586 ebx = POP32_VAL(esp); /* 0x200035D3: pop ebx */ 587 L_200035D4: 588 ecx = MEM32(ebp + (-0xC)); /* 0x200035D4: mov ecx, dword ptr [ebp - 0xc] */ 589 edi = POP32_VAL(esp); /* 0x200035D7: pop edi */ 590 esi = POP32_VAL(esp); /* 0x200035D8: pop esi */ 591 MEM32(FS_BASE + (0)) = ecx; /* 0x200035D9: mov dword ptr fs:[0], ecx */ 592 esp = ebp; /* 0x200035E0: mov esp, ebp */ 593 ebp = POP32_VAL(esp); /* 0x200035E2: pop ebp */ 594 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200035E3: ret 0xc */ 595 RECOMP_REGS_OUT(); 596 } 597 598 void sub_200035C0(void) { 599 int _fpu_cmp = 0; 600 uint32_t _cf = 0; 601 int _df = 1; 602 uint32_t _flag_k = FK_NONE; 603 uint32_t _flag_a = 0, _flag_b = 0; 604 uint32_t _itail_tgt = 0; 605 RECOMP_REGS_LOCALS 606 RECOMP_ENTER(0x200035C0u); 607 608 L_200035C0: 609 edx = MEM32(ebp + 0xC); /* 0x200035C0: mov edx, dword ptr [ebp + 0xc] */ 610 eax = MEM32(ebp + 0x8); /* 0x200035C3: mov eax, dword ptr [ebp + 8] */ 611 ecx = MEM32(ebp + (-0x14)); /* 0x200035C6: mov ecx, dword ptr [ebp - 0x14] */ 612 PUSH32(esp, edx); /* 0x200035C9: push edx */ 613 PUSH32(esp, eax); /* 0x200035CA: push eax */ 614 MEM32(esi + 0x14) = ebx; /* 0x200035CB: mov dword ptr [esi + 0x14], ebx */ 615 RECOMP_ICALL(0x200033B0u); /* 0x200035CE: call 0x200033b0 */ /* not lifted */ 616 RECOMP_FLAGS_IN(); 617 ebx = POP32_VAL(esp); /* 0x200035D3: pop ebx */ 618 ecx = MEM32(ebp + (-0xC)); /* 0x200035D4: mov ecx, dword ptr [ebp - 0xc] */ 619 edi = POP32_VAL(esp); /* 0x200035D7: pop edi */ 620 esi = POP32_VAL(esp); /* 0x200035D8: pop esi */ 621 MEM32(FS_BASE + (0)) = ecx; /* 0x200035D9: mov dword ptr fs:[0], ecx */ 622 esp = ebp; /* 0x200035E0: mov esp, ebp */ 623 ebp = POP32_VAL(esp); /* 0x200035E2: pop ebp */ 624 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200035E3: ret 0xc */ 625 RECOMP_REGS_OUT(); 626 } 627 628 void sub_200035F0(void) { 629 int _fpu_cmp = 0; 630 uint32_t _cf = 0; 631 int _df = 1; 632 uint32_t _flag_k = FK_NONE; 633 uint32_t _flag_a = 0, _flag_b = 0; 634 uint32_t _itail_tgt = 0; 635 RECOMP_REGS_LOCALS 636 RECOMP_ENTER(0x200035F0u); 637 638 L_200035F0: 639 PUSH32(esp, ebp); /* 0x200035F0: push ebp */ 640 ebp = esp; /* 0x200035F1: mov ebp, esp */ 641 PUSH32(esp, ebx); /* 0x200035F3: push ebx */ 642 PUSH32(esp, esi); /* 0x200035F4: push esi */ 643 esi = ecx; /* 0x200035F5: mov esi, ecx */ 644 /* cmp MEM32(esi + 0x70C), 1 */ /* 0x200035F7: cmp dword ptr [esi + 0x70c], 1 */ 645 _flag_a = (uint32_t)(MEM32(esi + 0x70C)); _flag_b = (uint32_t)(1); 646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 647 _flag_k = FK_CMP; 648 PUSH32(esp, edi); /* 0x200035FE: push edi */ 649 if (CMP_EQ(_flag_a, _flag_b)) goto L_20003621; /* 0x200035FF: je 0x20003621 */ 650 L_20003601: 651 eax = MEM32(ebp + 0x10); /* 0x20003601: mov eax, dword ptr [ebp + 0x10] */ 652 edi = MEM32(ebp + 0xC); /* 0x20003604: mov edi, dword ptr [ebp + 0xc] */ 653 ebx = MEM32(ebp + 0x8); /* 0x20003607: mov ebx, dword ptr [ebp + 8] */ 654 PUSH32(esp, 0); /* 0x2000360A: push 0 */ 655 PUSH32(esp, eax); /* 0x2000360C: push eax */ 656 PUSH32(esp, edi); /* 0x2000360D: push edi */ 657 PUSH32(esp, ebx); /* 0x2000360E: push ebx */ 658 RECOMP_ICALL(0x200011F0u); /* 0x2000360F: call 0x200011f0 */ /* not lifted */ 659 RECOMP_FLAGS_IN(); 660 /* test eax, eax */ /* 0x20003614: test eax, eax */ 661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 662 _cf = 0; 663 _flag_k = FK_TEST; 664 if (TEST_Z(_flag_a, _flag_b)) goto L_20003621; /* 0x20003616: je 0x20003621 */ 665 L_20003618: 666 PUSH32(esp, edi); /* 0x20003618: push edi */ 667 PUSH32(esp, ebx); /* 0x20003619: push ebx */ 668 ecx = esi; /* 0x2000361A: mov ecx, esi */ 669 RECOMP_ICALL(0x200033B0u); /* 0x2000361C: call 0x200033b0 */ /* not lifted */ 670 RECOMP_FLAGS_IN(); 671 L_20003621: 672 edi = POP32_VAL(esp); /* 0x20003621: pop edi */ 673 esi = POP32_VAL(esp); /* 0x20003622: pop esi */ 674 ebx = POP32_VAL(esp); /* 0x20003623: pop ebx */ 675 ebp = POP32_VAL(esp); /* 0x20003624: pop ebp */ 676 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20003625: ret 0xc */ 677 RECOMP_REGS_OUT(); 678 } 679 680 void sub_20003630(void) { 681 int _fpu_cmp = 0; 682 uint32_t _cf = 0; 683 int _df = 1; 684 uint32_t _flag_k = FK_NONE; 685 uint32_t _flag_a = 0, _flag_b = 0; 686 uint32_t _itail_tgt = 0; 687 RECOMP_REGS_LOCALS 688 RECOMP_ENTER(0x20003630u); 689 690 L_20003630: 691 PUSH32(esp, ebp); /* 0x20003630: push ebp */ 692 ebp = esp; /* 0x20003631: mov ebp, esp */ 693 PUSH32(esp, ebx); /* 0x20003633: push ebx */ 694 ebx = MEM32(ebp + 0x8); /* 0x20003634: mov ebx, dword ptr [ebp + 8] */ 695 PUSH32(esp, esi); /* 0x20003637: push esi */ 696 PUSH32(esp, edi); /* 0x20003638: push edi */ 697 edi = MEM32(ebp + 0xC); /* 0x20003639: mov edi, dword ptr [ebp + 0xc] */ 698 PUSH32(esp, 0); /* 0x2000363C: push 0 */ 699 PUSH32(esp, 0); /* 0x2000363E: push 0 */ 700 PUSH32(esp, edi); /* 0x20003640: push edi */ 701 esi = ecx; /* 0x20003641: mov esi, ecx */ 702 PUSH32(esp, ebx); /* 0x20003643: push ebx */ 703 RECOMP_ICALL(0x200011F0u); /* 0x20003644: call 0x200011f0 */ /* not lifted */ 704 RECOMP_FLAGS_IN(); 705 /* test eax, eax */ /* 0x20003649: test eax, eax */ 706 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 707 _cf = 0; 708 _flag_k = FK_TEST; 709 if (TEST_Z(_flag_a, _flag_b)) goto L_2000365D; /* 0x2000364B: je 0x2000365d */ 710 L_2000364D: 711 PUSH32(esp, edi); /* 0x2000364D: push edi */ 712 PUSH32(esp, ebx); /* 0x2000364E: push ebx */ 713 ecx = esi; /* 0x2000364F: mov ecx, esi */ 714 MEM32(eax + 0x8) = 0; /* 0x20003651: mov dword ptr [eax + 8], 0 */ 715 RECOMP_ICALL(0x200033B0u); /* 0x20003658: call 0x200033b0 */ /* not lifted */ 716 RECOMP_FLAGS_IN(); 717 L_2000365D: 718 edi = POP32_VAL(esp); /* 0x2000365D: pop edi */ 719 esi = POP32_VAL(esp); /* 0x2000365E: pop esi */ 720 ebx = POP32_VAL(esp); /* 0x2000365F: pop ebx */ 721 ebp = POP32_VAL(esp); /* 0x20003660: pop ebp */ 722 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20003661: ret 8 */ 723 RECOMP_REGS_OUT(); 724 } 725 726 void sub_20003670(void) { 727 int _fpu_cmp = 0; 728 uint32_t _cf = 0; 729 int _df = 1; 730 uint32_t _flag_k = FK_NONE; 731 uint32_t _flag_a = 0, _flag_b = 0; 732 uint32_t _itail_tgt = 0; 733 RECOMP_REGS_LOCALS 734 RECOMP_ENTER(0x20003670u); 735 736 L_20003670: 737 PUSH32(esp, ebp); /* 0x20003670: push ebp */ 738 ebp = esp; /* 0x20003671: mov ebp, esp */ 739 PUSH32(esp, ebx); /* 0x20003673: push ebx */ 740 ebx = MEM32(ebp + 0x8); /* 0x20003674: mov ebx, dword ptr [ebp + 8] */ 741 PUSH32(esp, esi); /* 0x20003677: push esi */ 742 PUSH32(esp, edi); /* 0x20003678: push edi */ 743 edi = MEM32(ebp + 0xC); /* 0x20003679: mov edi, dword ptr [ebp + 0xc] */ 744 PUSH32(esp, 0); /* 0x2000367C: push 0 */ 745 PUSH32(esp, 0); /* 0x2000367E: push 0 */ 746 PUSH32(esp, edi); /* 0x20003680: push edi */ 747 esi = ecx; /* 0x20003681: mov esi, ecx */ 748 PUSH32(esp, ebx); /* 0x20003683: push ebx */ 749 RECOMP_ICALL(0x200011F0u); /* 0x20003684: call 0x200011f0 */ /* not lifted */ 750 RECOMP_FLAGS_IN(); 751 /* test eax, eax */ /* 0x20003689: test eax, eax */ 752 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 753 _cf = 0; 754 _flag_k = FK_TEST; 755 if (TEST_Z(_flag_a, _flag_b)) goto L_200036A3; /* 0x2000368B: je 0x200036a3 */ 756 L_2000368D: 757 SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x2000368D: mov cl, byte ptr [ebp + 0x10] */ 758 PUSH32(esp, edi); /* 0x20003690: push edi */ 759 MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x20003691: mov byte ptr [eax + 0x18], cl */ 760 PUSH32(esp, ebx); /* 0x20003694: push ebx */ 761 ecx = esi; /* 0x20003695: mov ecx, esi */ 762 MEM32(eax + 0x8) = 2; /* 0x20003697: mov dword ptr [eax + 8], 2 */ 763 RECOMP_ICALL(0x200033B0u); /* 0x2000369E: call 0x200033b0 */ /* not lifted */ 764 RECOMP_FLAGS_IN(); 765 L_200036A3: 766 edi = POP32_VAL(esp); /* 0x200036A3: pop edi */ 767 esi = POP32_VAL(esp); /* 0x200036A4: pop esi */ 768 ebx = POP32_VAL(esp); /* 0x200036A5: pop ebx */ 769 ebp = POP32_VAL(esp); /* 0x200036A6: pop ebp */ 770 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200036A7: ret 0xc */ 771 RECOMP_REGS_OUT(); 772 } 773 774 void sub_200036B0(void) { 775 int _fpu_cmp = 0; 776 uint32_t _cf = 0; 777 int _df = 1; 778 uint32_t _flag_k = FK_NONE; 779 uint32_t _flag_a = 0, _flag_b = 0; 780 uint32_t _itail_tgt = 0; 781 RECOMP_REGS_LOCALS 782 RECOMP_ENTER(0x200036B0u); 783 784 L_200036B0: 785 PUSH32(esp, ebp); /* 0x200036B0: push ebp */ 786 ebp = esp; /* 0x200036B1: mov ebp, esp */ 787 PUSH32(esp, ebx); /* 0x200036B3: push ebx */ 788 ebx = MEM32(ebp + 0x8); /* 0x200036B4: mov ebx, dword ptr [ebp + 8] */ 789 PUSH32(esp, esi); /* 0x200036B7: push esi */ 790 PUSH32(esp, edi); /* 0x200036B8: push edi */ 791 edi = MEM32(ebp + 0xC); /* 0x200036B9: mov edi, dword ptr [ebp + 0xc] */ 792 PUSH32(esp, 0); /* 0x200036BC: push 0 */ 793 PUSH32(esp, 0); /* 0x200036BE: push 0 */ 794 PUSH32(esp, edi); /* 0x200036C0: push edi */ 795 esi = ecx; /* 0x200036C1: mov esi, ecx */ 796 PUSH32(esp, ebx); /* 0x200036C3: push ebx */ 797 RECOMP_ICALL(0x200011F0u); /* 0x200036C4: call 0x200011f0 */ /* not lifted */ 798 RECOMP_FLAGS_IN(); 799 /* test eax, eax */ /* 0x200036C9: test eax, eax */ 800 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 801 _cf = 0; 802 _flag_k = FK_TEST; 803 if (TEST_Z(_flag_a, _flag_b)) goto L_200036E9; /* 0x200036CB: je 0x200036e9 */ 804 L_200036CD: 805 SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x200036CD: mov cl, byte ptr [ebp + 0x10] */ 806 SET_LO8(edx, MEM8(ebp + 0x14)); /* 0x200036D0: mov dl, byte ptr [ebp + 0x14] */ 807 PUSH32(esp, edi); /* 0x200036D3: push edi */ 808 MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x200036D4: mov byte ptr [eax + 0x18], cl */ 809 PUSH32(esp, ebx); /* 0x200036D7: push ebx */ 810 ecx = esi; /* 0x200036D8: mov ecx, esi */ 811 MEM32(eax + 0x8) = 4; /* 0x200036DA: mov dword ptr [eax + 8], 4 */ 812 MEM8(eax + 0x19) = (uint8_t)(LO8(edx)); /* 0x200036E1: mov byte ptr [eax + 0x19], dl */ 813 RECOMP_ICALL(0x200033B0u); /* 0x200036E4: call 0x200033b0 */ /* not lifted */ 814 RECOMP_FLAGS_IN(); 815 L_200036E9: 816 edi = POP32_VAL(esp); /* 0x200036E9: pop edi */ 817 esi = POP32_VAL(esp); /* 0x200036EA: pop esi */ 818 ebx = POP32_VAL(esp); /* 0x200036EB: pop ebx */ 819 ebp = POP32_VAL(esp); /* 0x200036EC: pop ebp */ 820 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x200036ED: ret 0x10 */ 821 RECOMP_REGS_OUT(); 822 } 823 824 void sub_200036F0(void) { 825 int _fpu_cmp = 0; 826 uint32_t _cf = 0; 827 int _df = 1; 828 uint32_t _flag_k = FK_NONE; 829 uint32_t _flag_a = 0, _flag_b = 0; 830 uint32_t _itail_tgt = 0; 831 RECOMP_REGS_LOCALS 832 RECOMP_ENTER(0x200036F0u); 833 834 L_200036F0: 835 PUSH32(esp, ebp); /* 0x200036F0: push ebp */ 836 ebp = esp; /* 0x200036F1: mov ebp, esp */ 837 PUSH32(esp, ebx); /* 0x200036F3: push ebx */ 838 ebx = MEM32(ebp + 0x8); /* 0x200036F4: mov ebx, dword ptr [ebp + 8] */ 839 PUSH32(esp, esi); /* 0x200036F7: push esi */ 840 PUSH32(esp, edi); /* 0x200036F8: push edi */ 841 edi = MEM32(ebp + 0xC); /* 0x200036F9: mov edi, dword ptr [ebp + 0xc] */ 842 PUSH32(esp, 0); /* 0x200036FC: push 0 */ 843 PUSH32(esp, 0); /* 0x200036FE: push 0 */ 844 PUSH32(esp, edi); /* 0x20003700: push edi */ 845 esi = ecx; /* 0x20003701: mov esi, ecx */ 846 PUSH32(esp, ebx); /* 0x20003703: push ebx */ 847 RECOMP_ICALL(0x200011F0u); /* 0x20003704: call 0x200011f0 */ /* not lifted */ 848 RECOMP_FLAGS_IN(); 849 /* test eax, eax */ /* 0x20003709: test eax, eax */ 850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 851 _cf = 0; 852 _flag_k = FK_TEST; 853 if (TEST_Z(_flag_a, _flag_b)) goto L_2000372F; /* 0x2000370B: je 0x2000372f */ 854 L_2000370D: 855 SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x2000370D: mov cl, byte ptr [ebp + 0x10] */ 856 SET_LO8(edx, MEM8(ebp + 0x14)); /* 0x20003710: mov dl, byte ptr [ebp + 0x14] */ 857 MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x20003713: mov byte ptr [eax + 0x18], cl */ 858 SET_LO8(ecx, MEM8(ebp + 0x18)); /* 0x20003716: mov cl, byte ptr [ebp + 0x18] */ 859 PUSH32(esp, edi); /* 0x20003719: push edi */ 860 MEM8(eax + 0x1A) = (uint8_t)(LO8(ecx)); /* 0x2000371A: mov byte ptr [eax + 0x1a], cl */ 861 PUSH32(esp, ebx); /* 0x2000371D: push ebx */ 862 ecx = esi; /* 0x2000371E: mov ecx, esi */ 863 MEM32(eax + 0x8) = 8; /* 0x20003720: mov dword ptr [eax + 8], 8 */ 864 MEM8(eax + 0x19) = (uint8_t)(LO8(edx)); /* 0x20003727: mov byte ptr [eax + 0x19], dl */ 865 RECOMP_ICALL(0x200033B0u); /* 0x2000372A: call 0x200033b0 */ /* not lifted */ 866 RECOMP_FLAGS_IN(); 867 L_2000372F: 868 edi = POP32_VAL(esp); /* 0x2000372F: pop edi */ 869 esi = POP32_VAL(esp); /* 0x20003730: pop esi */ 870 ebx = POP32_VAL(esp); /* 0x20003731: pop ebx */ 871 ebp = POP32_VAL(esp); /* 0x20003732: pop ebp */ 872 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x20003733: ret 0x14 */ 873 RECOMP_REGS_OUT(); 874 } 875 876 void sub_20003740(void) { 877 int _fpu_cmp = 0; 878 uint32_t _cf = 0; 879 int _df = 1; 880 uint32_t _flag_k = FK_NONE; 881 uint32_t _flag_a = 0, _flag_b = 0; 882 uint32_t _itail_tgt = 0; 883 RECOMP_REGS_LOCALS 884 RECOMP_ENTER(0x20003740u); 885 886 L_20003740: 887 PUSH32(esp, ebp); /* 0x20003740: push ebp */ 888 ebp = esp; /* 0x20003741: mov ebp, esp */ 889 PUSH32(esp, ebx); /* 0x20003743: push ebx */ 890 ebx = MEM32(ebp + 0x8); /* 0x20003744: mov ebx, dword ptr [ebp + 8] */ 891 PUSH32(esp, esi); /* 0x20003747: push esi */ 892 PUSH32(esp, edi); /* 0x20003748: push edi */ 893 edi = MEM32(ebp + 0xC); /* 0x20003749: mov edi, dword ptr [ebp + 0xc] */ 894 PUSH32(esp, 0); /* 0x2000374C: push 0 */ 895 PUSH32(esp, 0); /* 0x2000374E: push 0 */ 896 PUSH32(esp, edi); /* 0x20003750: push edi */ 897 esi = ecx; /* 0x20003751: mov esi, ecx */ 898 PUSH32(esp, ebx); /* 0x20003753: push ebx */ 899 RECOMP_ICALL(0x200011F0u); /* 0x20003754: call 0x200011f0 */ /* not lifted */ 900 RECOMP_FLAGS_IN(); 901 /* test eax, eax */ /* 0x20003759: test eax, eax */ 902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 903 _cf = 0; 904 _flag_k = FK_TEST; 905 if (TEST_Z(_flag_a, _flag_b)) goto L_2000377F; /* 0x2000375B: je 0x2000377f */ 906 L_2000375D: 907 SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x2000375D: mov cl, byte ptr [ebp + 0x10] */ 908 SET_LO8(edx, MEM8(ebp + 0x14)); /* 0x20003760: mov dl, byte ptr [ebp + 0x14] */ 909 MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x20003763: mov byte ptr [eax + 0x18], cl */ 910 SET_LO8(ecx, MEM8(ebp + 0x1C)); /* 0x20003766: mov cl, byte ptr [ebp + 0x1c] */ 911 PUSH32(esp, edi); /* 0x20003769: push edi */ 912 MEM8(eax + 0x1A) = (uint8_t)(LO8(ecx)); /* 0x2000376A: mov byte ptr [eax + 0x1a], cl */ 913 PUSH32(esp, ebx); /* 0x2000376D: push ebx */ 914 ecx = esi; /* 0x2000376E: mov ecx, esi */ 915 MEM32(eax + 0x8) = 0x10u; /* 0x20003770: mov dword ptr [eax + 8], 0x10 */ 916 MEM8(eax + 0x19) = (uint8_t)(LO8(edx)); /* 0x20003777: mov byte ptr [eax + 0x19], dl */ 917 RECOMP_ICALL(0x200033B0u); /* 0x2000377A: call 0x200033b0 */ /* not lifted */ 918 RECOMP_FLAGS_IN(); 919 L_2000377F: 920 edi = POP32_VAL(esp); /* 0x2000377F: pop edi */ 921 esi = POP32_VAL(esp); /* 0x20003780: pop esi */ 922 ebx = POP32_VAL(esp); /* 0x20003781: pop ebx */ 923 ebp = POP32_VAL(esp); /* 0x20003782: pop ebp */ 924 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x20003783: ret 0x18 */ 925 RECOMP_REGS_OUT(); 926 } 927 928 void sub_20003790(void) { 929 int _fpu_cmp = 0; 930 uint32_t _cf = 0; 931 int _df = 1; 932 uint32_t _flag_k = FK_NONE; 933 uint32_t _flag_a = 0, _flag_b = 0; 934 uint32_t _itail_tgt = 0; 935 RECOMP_REGS_LOCALS 936 RECOMP_ENTER(0x20003790u); 937 938 L_20003790: 939 PUSH32(esp, ebp); /* 0x20003790: push ebp */ 940 ebp = esp; /* 0x20003791: mov ebp, esp */ 941 PUSH32(esp, ebx); /* 0x20003793: push ebx */ 942 ebx = MEM32(ebp + 0x8); /* 0x20003794: mov ebx, dword ptr [ebp + 8] */ 943 PUSH32(esp, esi); /* 0x20003797: push esi */ 944 PUSH32(esp, edi); /* 0x20003798: push edi */ 945 edi = MEM32(ebp + 0xC); /* 0x20003799: mov edi, dword ptr [ebp + 0xc] */ 946 PUSH32(esp, 0); /* 0x2000379C: push 0 */ 947 PUSH32(esp, 0); /* 0x2000379E: push 0 */ 948 PUSH32(esp, edi); /* 0x200037A0: push edi */ 949 esi = ecx; /* 0x200037A1: mov esi, ecx */ 950 PUSH32(esp, ebx); /* 0x200037A3: push ebx */ 951 RECOMP_ICALL(0x200011F0u); /* 0x200037A4: call 0x200011f0 */ /* not lifted */ 952 RECOMP_FLAGS_IN(); 953 /* test eax, eax */ /* 0x200037A9: test eax, eax */ 954 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 955 _cf = 0; 956 _flag_k = FK_TEST; 957 if (TEST_Z(_flag_a, _flag_b)) goto L_200037C3; /* 0x200037AB: je 0x200037c3 */ 958 L_200037AD: 959 ecx = MEM32(ebp + 0x10); /* 0x200037AD: mov ecx, dword ptr [ebp + 0x10] */ 960 PUSH32(esp, edi); /* 0x200037B0: push edi */ 961 MEM32(eax + 0x1C) = ecx; /* 0x200037B1: mov dword ptr [eax + 0x1c], ecx */ 962 PUSH32(esp, ebx); /* 0x200037B4: push ebx */ 963 ecx = esi; /* 0x200037B5: mov ecx, esi */ 964 MEM32(eax + 0x8) = 0x20u; /* 0x200037B7: mov dword ptr [eax + 8], 0x20 */ 965 RECOMP_ICALL(0x200033B0u); /* 0x200037BE: call 0x200033b0 */ /* not lifted */ 966 RECOMP_FLAGS_IN(); 967 L_200037C3: 968 edi = POP32_VAL(esp); /* 0x200037C3: pop edi */ 969 esi = POP32_VAL(esp); /* 0x200037C4: pop esi */ 970 ebx = POP32_VAL(esp); /* 0x200037C5: pop ebx */ 971 ebp = POP32_VAL(esp); /* 0x200037C6: pop ebp */ 972 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200037C7: ret 0xc */ 973 RECOMP_REGS_OUT(); 974 } 975 976 void sub_200037D0(void) { 977 int _fpu_cmp = 0; 978 uint32_t _cf = 0; 979 int _df = 1; 980 uint32_t _flag_k = FK_NONE; 981 uint32_t _flag_a = 0, _flag_b = 0; 982 uint32_t _itail_tgt = 0; 983 RECOMP_REGS_LOCALS 984 RECOMP_ENTER(0x200037D0u); 985 986 L_200037D0: 987 PUSH32(esp, ebp); /* 0x200037D0: push ebp */ 988 ebp = esp; /* 0x200037D1: mov ebp, esp */ 989 PUSH32(esp, ebx); /* 0x200037D3: push ebx */ 990 ebx = MEM32(ebp + 0x8); /* 0x200037D4: mov ebx, dword ptr [ebp + 8] */ 991 PUSH32(esp, esi); /* 0x200037D7: push esi */ 992 PUSH32(esp, edi); /* 0x200037D8: push edi */ 993 edi = MEM32(ebp + 0xC); /* 0x200037D9: mov edi, dword ptr [ebp + 0xc] */ 994 PUSH32(esp, 0); /* 0x200037DC: push 0 */ 995 PUSH32(esp, 0); /* 0x200037DE: push 0 */ 996 PUSH32(esp, edi); /* 0x200037E0: push edi */ 997 esi = ecx; /* 0x200037E1: mov esi, ecx */ 998 PUSH32(esp, ebx); /* 0x200037E3: push ebx */ 999 RECOMP_ICALL(0x200011F0u); /* 0x200037E4: call 0x200011f0 */ /* not lifted */ 1000 RECOMP_FLAGS_IN(); 1001 /* test eax, eax */ /* 0x200037E9: test eax, eax */ 1002 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1003 _cf = 0; 1004 _flag_k = FK_TEST; 1005 if (TEST_Z(_flag_a, _flag_b)) goto L_20003809; /* 0x200037EB: je 0x20003809 */ 1006 L_200037ED: 1007 ecx = MEM32(ebp + 0x10); /* 0x200037ED: mov ecx, dword ptr [ebp + 0x10] */ 1008 edx = MEM32(ebp + 0x14); /* 0x200037F0: mov edx, dword ptr [ebp + 0x14] */ 1009 PUSH32(esp, edi); /* 0x200037F3: push edi */ 1010 MEM32(eax + 0x1C) = ecx; /* 0x200037F4: mov dword ptr [eax + 0x1c], ecx */ 1011 PUSH32(esp, ebx); /* 0x200037F7: push ebx */ 1012 ecx = esi; /* 0x200037F8: mov ecx, esi */ 1013 MEM32(eax + 0x8) = 0x40u; /* 0x200037FA: mov dword ptr [eax + 8], 0x40 */ 1014 MEM32(eax + 0x20) = edx; /* 0x20003801: mov dword ptr [eax + 0x20], edx */ 1015 RECOMP_ICALL(0x200033B0u); /* 0x20003804: call 0x200033b0 */ /* not lifted */ 1016 RECOMP_FLAGS_IN(); 1017 L_20003809: 1018 edi = POP32_VAL(esp); /* 0x20003809: pop edi */ 1019 esi = POP32_VAL(esp); /* 0x2000380A: pop esi */ 1020 ebx = POP32_VAL(esp); /* 0x2000380B: pop ebx */ 1021 ebp = POP32_VAL(esp); /* 0x2000380C: pop ebp */ 1022 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2000380D: ret 0x10 */ 1023 RECOMP_REGS_OUT(); 1024 } 1025 1026 void sub_20003810(void) { 1027 int _fpu_cmp = 0; 1028 uint32_t _cf = 0; 1029 int _df = 1; 1030 uint32_t _flag_k = FK_NONE; 1031 uint32_t _flag_a = 0, _flag_b = 0; 1032 uint32_t _itail_tgt = 0; 1033 RECOMP_REGS_LOCALS 1034 RECOMP_ENTER(0x20003810u); 1035 1036 L_20003810: 1037 PUSH32(esp, ebp); /* 0x20003810: push ebp */ 1038 ebp = esp; /* 0x20003811: mov ebp, esp */ 1039 PUSH32(esp, ebx); /* 0x20003813: push ebx */ 1040 ebx = MEM32(ebp + 0x8); /* 0x20003814: mov ebx, dword ptr [ebp + 8] */ 1041 PUSH32(esp, esi); /* 0x20003817: push esi */ 1042 PUSH32(esp, edi); /* 0x20003818: push edi */ 1043 edi = MEM32(ebp + 0xC); /* 0x20003819: mov edi, dword ptr [ebp + 0xc] */ 1044 PUSH32(esp, 0); /* 0x2000381C: push 0 */ 1045 PUSH32(esp, 0); /* 0x2000381E: push 0 */ 1046 PUSH32(esp, edi); /* 0x20003820: push edi */ 1047 esi = ecx; /* 0x20003821: mov esi, ecx */ 1048 PUSH32(esp, ebx); /* 0x20003823: push ebx */ 1049 RECOMP_ICALL(0x200011F0u); /* 0x20003824: call 0x200011f0 */ /* not lifted */ 1050 RECOMP_FLAGS_IN(); 1051 /* test eax, eax */ /* 0x20003829: test eax, eax */ 1052 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1053 _cf = 0; 1054 _flag_k = FK_TEST; 1055 if (TEST_Z(_flag_a, _flag_b)) goto L_2000384F; /* 0x2000382B: je 0x2000384f */ 1056 L_2000382D: 1057 ecx = MEM32(ebp + 0x10); /* 0x2000382D: mov ecx, dword ptr [ebp + 0x10] */ 1058 edx = MEM32(ebp + 0x14); /* 0x20003830: mov edx, dword ptr [ebp + 0x14] */ 1059 MEM32(eax + 0x1C) = ecx; /* 0x20003833: mov dword ptr [eax + 0x1c], ecx */ 1060 ecx = MEM32(ebp + 0x18); /* 0x20003836: mov ecx, dword ptr [ebp + 0x18] */ 1061 PUSH32(esp, edi); /* 0x20003839: push edi */ 1062 MEM32(eax + 0x24) = ecx; /* 0x2000383A: mov dword ptr [eax + 0x24], ecx */ 1063 PUSH32(esp, ebx); /* 0x2000383D: push ebx */ 1064 ecx = esi; /* 0x2000383E: mov ecx, esi */ 1065 MEM32(eax + 0x8) = 0x80u; /* 0x20003840: mov dword ptr [eax + 8], 0x80 */ 1066 MEM32(eax + 0x20) = edx; /* 0x20003847: mov dword ptr [eax + 0x20], edx */ 1067 RECOMP_ICALL(0x200033B0u); /* 0x2000384A: call 0x200033b0 */ /* not lifted */ 1068 RECOMP_FLAGS_IN(); 1069 L_2000384F: 1070 edi = POP32_VAL(esp); /* 0x2000384F: pop edi */ 1071 esi = POP32_VAL(esp); /* 0x20003850: pop esi */ 1072 ebx = POP32_VAL(esp); /* 0x20003851: pop ebx */ 1073 ebp = POP32_VAL(esp); /* 0x20003852: pop ebp */ 1074 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x20003853: ret 0x14 */ 1075 RECOMP_REGS_OUT(); 1076 } 1077 1078 void sub_20003860(void) { 1079 int _fpu_cmp = 0; 1080 uint32_t _cf = 0; 1081 int _df = 1; 1082 uint32_t _flag_k = FK_NONE; 1083 uint32_t _flag_a = 0, _flag_b = 0; 1084 uint32_t _itail_tgt = 0; 1085 RECOMP_REGS_LOCALS 1086 RECOMP_ENTER(0x20003860u); 1087 1088 L_20003860: 1089 PUSH32(esp, ebp); /* 0x20003860: push ebp */ 1090 ebp = esp; /* 0x20003861: mov ebp, esp */ 1091 PUSH32(esp, ebx); /* 0x20003863: push ebx */ 1092 ebx = MEM32(ebp + 0x8); /* 0x20003864: mov ebx, dword ptr [ebp + 8] */ 1093 PUSH32(esp, esi); /* 0x20003867: push esi */ 1094 PUSH32(esp, edi); /* 0x20003868: push edi */ 1095 edi = MEM32(ebp + 0xC); /* 0x20003869: mov edi, dword ptr [ebp + 0xc] */ 1096 PUSH32(esp, 0); /* 0x2000386C: push 0 */ 1097 PUSH32(esp, 0); /* 0x2000386E: push 0 */ 1098 PUSH32(esp, edi); /* 0x20003870: push edi */ 1099 esi = ecx; /* 0x20003871: mov esi, ecx */ 1100 PUSH32(esp, ebx); /* 0x20003873: push ebx */ 1101 RECOMP_ICALL(0x200011F0u); /* 0x20003874: call 0x200011f0 */ /* not lifted */ 1102 RECOMP_FLAGS_IN(); 1103 /* test eax, eax */ /* 0x20003879: test eax, eax */ 1104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1105 _cf = 0; 1106 _flag_k = FK_TEST; 1107 if (TEST_Z(_flag_a, _flag_b)) goto L_2000389F; /* 0x2000387B: je 0x2000389f */ 1108 L_2000387D: 1109 ecx = MEM32(ebp + 0x10); /* 0x2000387D: mov ecx, dword ptr [ebp + 0x10] */ 1110 edx = MEM32(ebp + 0x14); /* 0x20003880: mov edx, dword ptr [ebp + 0x14] */ 1111 MEM32(eax + 0x1C) = ecx; /* 0x20003883: mov dword ptr [eax + 0x1c], ecx */ 1112 ecx = MEM32(ebp + 0x1C); /* 0x20003886: mov ecx, dword ptr [ebp + 0x1c] */ 1113 PUSH32(esp, edi); /* 0x20003889: push edi */ 1114 MEM32(eax + 0x24) = ecx; /* 0x2000388A: mov dword ptr [eax + 0x24], ecx */ 1115 PUSH32(esp, ebx); /* 0x2000388D: push ebx */ 1116 ecx = esi; /* 0x2000388E: mov ecx, esi */ 1117 MEM32(eax + 0x8) = 0x100u; /* 0x20003890: mov dword ptr [eax + 8], 0x100 */ 1118 MEM32(eax + 0x20) = edx; /* 0x20003897: mov dword ptr [eax + 0x20], edx */ 1119 RECOMP_ICALL(0x200033B0u); /* 0x2000389A: call 0x200033b0 */ /* not lifted */ 1120 RECOMP_FLAGS_IN(); 1121 L_2000389F: 1122 edi = POP32_VAL(esp); /* 0x2000389F: pop edi */ 1123 esi = POP32_VAL(esp); /* 0x200038A0: pop esi */ 1124 ebx = POP32_VAL(esp); /* 0x200038A1: pop ebx */ 1125 ebp = POP32_VAL(esp); /* 0x200038A2: pop ebp */ 1126 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x200038A3: ret 0x18 */ 1127 RECOMP_REGS_OUT(); 1128 } 1129 1130 void sub_200038B0(void) { 1131 int _fpu_cmp = 0; 1132 uint32_t _cf = 0; 1133 int _df = 1; 1134 uint32_t _flag_k = FK_NONE; 1135 uint32_t _flag_a = 0, _flag_b = 0; 1136 uint32_t _itail_tgt = 0; 1137 RECOMP_REGS_LOCALS 1138 RECOMP_ENTER(0x200038B0u); 1139 1140 L_200038B0: 1141 PUSH32(esp, ebp); /* 0x200038B0: push ebp */ 1142 ebp = esp; /* 0x200038B1: mov ebp, esp */ 1143 PUSH32(esp, ebx); /* 0x200038B3: push ebx */ 1144 ebx = MEM32(ebp + 0x8); /* 0x200038B4: mov ebx, dword ptr [ebp + 8] */ 1145 PUSH32(esp, esi); /* 0x200038B7: push esi */ 1146 PUSH32(esp, edi); /* 0x200038B8: push edi */ 1147 edi = MEM32(ebp + 0xC); /* 0x200038B9: mov edi, dword ptr [ebp + 0xc] */ 1148 PUSH32(esp, 0); /* 0x200038BC: push 0 */ 1149 PUSH32(esp, 0); /* 0x200038BE: push 0 */ 1150 PUSH32(esp, edi); /* 0x200038C0: push edi */ 1151 esi = ecx; /* 0x200038C1: mov esi, ecx */ 1152 PUSH32(esp, ebx); /* 0x200038C3: push ebx */ 1153 RECOMP_ICALL(0x200011F0u); /* 0x200038C4: call 0x200011f0 */ /* not lifted */ 1154 RECOMP_FLAGS_IN(); 1155 /* test eax, eax */ /* 0x200038C9: test eax, eax */ 1156 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1157 _cf = 0; 1158 _flag_k = FK_TEST; 1159 if (TEST_Z(_flag_a, _flag_b)) goto L_200038E3; /* 0x200038CB: je 0x200038e3 */ 1160 L_200038CD: 1161 ecx = MEM32(ebp + 0x10); /* 0x200038CD: mov ecx, dword ptr [ebp + 0x10] */ 1162 PUSH32(esp, edi); /* 0x200038D0: push edi */ 1163 MEM32(eax + 0x2C) = ecx; /* 0x200038D1: mov dword ptr [eax + 0x2c], ecx */ 1164 PUSH32(esp, ebx); /* 0x200038D4: push ebx */ 1165 ecx = esi; /* 0x200038D5: mov ecx, esi */ 1166 MEM32(eax + 0x8) = 0x200u; /* 0x200038D7: mov dword ptr [eax + 8], 0x200 */ 1167 RECOMP_ICALL(0x200033B0u); /* 0x200038DE: call 0x200033b0 */ /* not lifted */ 1168 RECOMP_FLAGS_IN(); 1169 L_200038E3: 1170 edi = POP32_VAL(esp); /* 0x200038E3: pop edi */ 1171 esi = POP32_VAL(esp); /* 0x200038E4: pop esi */ 1172 ebx = POP32_VAL(esp); /* 0x200038E5: pop ebx */ 1173 ebp = POP32_VAL(esp); /* 0x200038E6: pop ebp */ 1174 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200038E7: ret 0xc */ 1175 RECOMP_REGS_OUT(); 1176 } 1177 1178 void sub_200038F0(void) { 1179 int _fpu_cmp = 0; 1180 uint32_t _cf = 0; 1181 int _df = 1; 1182 uint32_t _flag_k = FK_NONE; 1183 uint32_t _flag_a = 0, _flag_b = 0; 1184 uint32_t _itail_tgt = 0; 1185 RECOMP_REGS_LOCALS 1186 RECOMP_ENTER(0x200038F0u); 1187 1188 L_200038F0: 1189 PUSH32(esp, ebp); /* 0x200038F0: push ebp */ 1190 ebp = esp; /* 0x200038F1: mov ebp, esp */ 1191 PUSH32(esp, ebx); /* 0x200038F3: push ebx */ 1192 ebx = MEM32(ebp + 0x8); /* 0x200038F4: mov ebx, dword ptr [ebp + 8] */ 1193 PUSH32(esp, esi); /* 0x200038F7: push esi */ 1194 PUSH32(esp, edi); /* 0x200038F8: push edi */ 1195 edi = MEM32(ebp + 0xC); /* 0x200038F9: mov edi, dword ptr [ebp + 0xc] */ 1196 PUSH32(esp, 0); /* 0x200038FC: push 0 */ 1197 PUSH32(esp, 0); /* 0x200038FE: push 0 */ 1198 PUSH32(esp, edi); /* 0x20003900: push edi */ 1199 esi = ecx; /* 0x20003901: mov esi, ecx */ 1200 PUSH32(esp, ebx); /* 0x20003903: push ebx */ 1201 RECOMP_ICALL(0x200011F0u); /* 0x20003904: call 0x200011f0 */ /* not lifted */ 1202 RECOMP_FLAGS_IN(); 1203 /* test eax, eax */ /* 0x20003909: test eax, eax */ 1204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1205 _cf = 0; 1206 _flag_k = FK_TEST; 1207 if (TEST_Z(_flag_a, _flag_b)) goto L_20003929; /* 0x2000390B: je 0x20003929 */ 1208 L_2000390D: 1209 ecx = MEM32(ebp + 0x10); /* 0x2000390D: mov ecx, dword ptr [ebp + 0x10] */ 1210 edx = MEM32(ebp + 0x14); /* 0x20003910: mov edx, dword ptr [ebp + 0x14] */ 1211 PUSH32(esp, edi); /* 0x20003913: push edi */ 1212 MEM32(eax + 0x2C) = ecx; /* 0x20003914: mov dword ptr [eax + 0x2c], ecx */ 1213 PUSH32(esp, ebx); /* 0x20003917: push ebx */ 1214 ecx = esi; /* 0x20003918: mov ecx, esi */ 1215 MEM32(eax + 0x8) = 0x400u; /* 0x2000391A: mov dword ptr [eax + 8], 0x400 */ 1216 MEM32(eax + 0x30) = edx; /* 0x20003921: mov dword ptr [eax + 0x30], edx */ 1217 RECOMP_ICALL(0x200033B0u); /* 0x20003924: call 0x200033b0 */ /* not lifted */ 1218 RECOMP_FLAGS_IN(); 1219 L_20003929: 1220 edi = POP32_VAL(esp); /* 0x20003929: pop edi */ 1221 esi = POP32_VAL(esp); /* 0x2000392A: pop esi */ 1222 ebx = POP32_VAL(esp); /* 0x2000392B: pop ebx */ 1223 ebp = POP32_VAL(esp); /* 0x2000392C: pop ebp */ 1224 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x2000392D: ret 0x10 */ 1225 RECOMP_REGS_OUT(); 1226 } 1227 1228 void sub_20003930(void) { 1229 int _fpu_cmp = 0; 1230 uint32_t _cf = 0; 1231 int _df = 1; 1232 uint32_t _flag_k = FK_NONE; 1233 uint32_t _flag_a = 0, _flag_b = 0; 1234 uint32_t _itail_tgt = 0; 1235 RECOMP_REGS_LOCALS 1236 RECOMP_ENTER(0x20003930u); 1237 1238 L_20003930: 1239 PUSH32(esp, ebp); /* 0x20003930: push ebp */ 1240 ebp = esp; /* 0x20003931: mov ebp, esp */ 1241 PUSH32(esp, ebx); /* 0x20003933: push ebx */ 1242 ebx = MEM32(ebp + 0x8); /* 0x20003934: mov ebx, dword ptr [ebp + 8] */ 1243 PUSH32(esp, esi); /* 0x20003937: push esi */ 1244 PUSH32(esp, edi); /* 0x20003938: push edi */ 1245 edi = MEM32(ebp + 0xC); /* 0x20003939: mov edi, dword ptr [ebp + 0xc] */ 1246 PUSH32(esp, 0); /* 0x2000393C: push 0 */ 1247 PUSH32(esp, 0); /* 0x2000393E: push 0 */ 1248 PUSH32(esp, edi); /* 0x20003940: push edi */ 1249 esi = ecx; /* 0x20003941: mov esi, ecx */ 1250 PUSH32(esp, ebx); /* 0x20003943: push ebx */ 1251 RECOMP_ICALL(0x200011F0u); /* 0x20003944: call 0x200011f0 */ /* not lifted */ 1252 RECOMP_FLAGS_IN(); 1253 /* test eax, eax */ /* 0x20003949: test eax, eax */ 1254 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1255 _cf = 0; 1256 _flag_k = FK_TEST; 1257 if (TEST_Z(_flag_a, _flag_b)) goto L_2000396F; /* 0x2000394B: je 0x2000396f */ 1258 L_2000394D: 1259 ecx = MEM32(ebp + 0x10); /* 0x2000394D: mov ecx, dword ptr [ebp + 0x10] */ 1260 edx = MEM32(ebp + 0x14); /* 0x20003950: mov edx, dword ptr [ebp + 0x14] */ 1261 MEM32(eax + 0x2C) = ecx; /* 0x20003953: mov dword ptr [eax + 0x2c], ecx */ 1262 ecx = MEM32(ebp + 0x18); /* 0x20003956: mov ecx, dword ptr [ebp + 0x18] */ 1263 PUSH32(esp, edi); /* 0x20003959: push edi */ 1264 MEM32(eax + 0x34) = ecx; /* 0x2000395A: mov dword ptr [eax + 0x34], ecx */ 1265 PUSH32(esp, ebx); /* 0x2000395D: push ebx */ 1266 ecx = esi; /* 0x2000395E: mov ecx, esi */ 1267 MEM32(eax + 0x8) = 0x800u; /* 0x20003960: mov dword ptr [eax + 8], 0x800 */ 1268 MEM32(eax + 0x30) = edx; /* 0x20003967: mov dword ptr [eax + 0x30], edx */ 1269 RECOMP_ICALL(0x200033B0u); /* 0x2000396A: call 0x200033b0 */ /* not lifted */ 1270 RECOMP_FLAGS_IN(); 1271 L_2000396F: 1272 edi = POP32_VAL(esp); /* 0x2000396F: pop edi */ 1273 esi = POP32_VAL(esp); /* 0x20003970: pop esi */ 1274 ebx = POP32_VAL(esp); /* 0x20003971: pop ebx */ 1275 ebp = POP32_VAL(esp); /* 0x20003972: pop ebp */ 1276 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x20003973: ret 0x14 */ 1277 RECOMP_REGS_OUT(); 1278 } 1279 1280 void sub_20003980(void) { 1281 int _fpu_cmp = 0; 1282 uint32_t _cf = 0; 1283 int _df = 1; 1284 uint32_t _flag_k = FK_NONE; 1285 uint32_t _flag_a = 0, _flag_b = 0; 1286 uint32_t _itail_tgt = 0; 1287 RECOMP_REGS_LOCALS 1288 RECOMP_ENTER(0x20003980u); 1289 1290 L_20003980: 1291 PUSH32(esp, ebp); /* 0x20003980: push ebp */ 1292 ebp = esp; /* 0x20003981: mov ebp, esp */ 1293 PUSH32(esp, ebx); /* 0x20003983: push ebx */ 1294 ebx = MEM32(ebp + 0x8); /* 0x20003984: mov ebx, dword ptr [ebp + 8] */ 1295 PUSH32(esp, esi); /* 0x20003987: push esi */ 1296 PUSH32(esp, edi); /* 0x20003988: push edi */ 1297 edi = MEM32(ebp + 0xC); /* 0x20003989: mov edi, dword ptr [ebp + 0xc] */ 1298 PUSH32(esp, 0); /* 0x2000398C: push 0 */ 1299 PUSH32(esp, 0); /* 0x2000398E: push 0 */ 1300 PUSH32(esp, edi); /* 0x20003990: push edi */ 1301 esi = ecx; /* 0x20003991: mov esi, ecx */ 1302 PUSH32(esp, ebx); /* 0x20003993: push ebx */ 1303 RECOMP_ICALL(0x200011F0u); /* 0x20003994: call 0x200011f0 */ /* not lifted */ 1304 RECOMP_FLAGS_IN(); 1305 /* test eax, eax */ /* 0x20003999: test eax, eax */ 1306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1307 _cf = 0; 1308 _flag_k = FK_TEST; 1309 if (TEST_Z(_flag_a, _flag_b)) goto L_200039C5; /* 0x2000399B: je 0x200039c5 */ 1310 L_2000399D: 1311 ecx = MEM32(ebp + 0x10); /* 0x2000399D: mov ecx, dword ptr [ebp + 0x10] */ 1312 edx = MEM32(ebp + 0x14); /* 0x200039A0: mov edx, dword ptr [ebp + 0x14] */ 1313 MEM32(eax + 0x2C) = ecx; /* 0x200039A3: mov dword ptr [eax + 0x2c], ecx */ 1314 ecx = MEM32(ebp + 0x18); /* 0x200039A6: mov ecx, dword ptr [ebp + 0x18] */ 1315 MEM32(eax + 0x30) = edx; /* 0x200039A9: mov dword ptr [eax + 0x30], edx */ 1316 edx = MEM32(ebp + 0x1C); /* 0x200039AC: mov edx, dword ptr [ebp + 0x1c] */ 1317 PUSH32(esp, edi); /* 0x200039AF: push edi */ 1318 MEM32(eax + 0x34) = ecx; /* 0x200039B0: mov dword ptr [eax + 0x34], ecx */ 1319 PUSH32(esp, ebx); /* 0x200039B3: push ebx */ 1320 ecx = esi; /* 0x200039B4: mov ecx, esi */ 1321 MEM32(eax + 0x8) = 0x1000u; /* 0x200039B6: mov dword ptr [eax + 8], 0x1000 */ 1322 MEM32(eax + 0x38) = edx; /* 0x200039BD: mov dword ptr [eax + 0x38], edx */ 1323 RECOMP_ICALL(0x200033B0u); /* 0x200039C0: call 0x200033b0 */ /* not lifted */ 1324 RECOMP_FLAGS_IN(); 1325 L_200039C5: 1326 edi = POP32_VAL(esp); /* 0x200039C5: pop edi */ 1327 esi = POP32_VAL(esp); /* 0x200039C6: pop esi */ 1328 ebx = POP32_VAL(esp); /* 0x200039C7: pop ebx */ 1329 ebp = POP32_VAL(esp); /* 0x200039C8: pop ebp */ 1330 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x200039C9: ret 0x18 */ 1331 RECOMP_REGS_OUT(); 1332 } 1333 1334 void sub_200039D0(void) { 1335 int _fpu_cmp = 0; 1336 uint32_t _cf = 0; 1337 int _df = 1; 1338 uint32_t _flag_k = FK_NONE; 1339 uint32_t _flag_a = 0, _flag_b = 0; 1340 uint32_t _itail_tgt = 0; 1341 RECOMP_REGS_LOCALS 1342 RECOMP_ENTER(0x200039D0u); 1343 1344 L_200039D0: 1345 PUSH32(esp, ebp); /* 0x200039D0: push ebp */ 1346 ebp = esp; /* 0x200039D1: mov ebp, esp */ 1347 PUSH32(esp, ebx); /* 0x200039D3: push ebx */ 1348 ebx = MEM32(ebp + 0x8); /* 0x200039D4: mov ebx, dword ptr [ebp + 8] */ 1349 PUSH32(esp, esi); /* 0x200039D7: push esi */ 1350 PUSH32(esp, edi); /* 0x200039D8: push edi */ 1351 edi = MEM32(ebp + 0xC); /* 0x200039D9: mov edi, dword ptr [ebp + 0xc] */ 1352 PUSH32(esp, 0); /* 0x200039DC: push 0 */ 1353 PUSH32(esp, 0); /* 0x200039DE: push 0 */ 1354 PUSH32(esp, edi); /* 0x200039E0: push edi */ 1355 esi = ecx; /* 0x200039E1: mov esi, ecx */ 1356 PUSH32(esp, ebx); /* 0x200039E3: push ebx */ 1357 RECOMP_ICALL(0x200011F0u); /* 0x200039E4: call 0x200011f0 */ /* not lifted */ 1358 RECOMP_FLAGS_IN(); 1359 /* test eax, eax */ /* 0x200039E9: test eax, eax */ 1360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1361 _cf = 0; 1362 _flag_k = FK_TEST; 1363 if (TEST_Z(_flag_a, _flag_b)) goto L_20003A13; /* 0x200039EB: je 0x20003a13 */ 1364 L_200039ED: 1365 ecx = MEM32(ebp + 0x10); /* 0x200039ED: mov ecx, dword ptr [ebp + 0x10] */ 1366 MEM32(eax + 0x8) = 0x2000u; /* 0x200039F0: mov dword ptr [eax + 8], 0x2000 */ 1367 edx = MEM32(ecx); /* 0x200039F7: mov edx, dword ptr [ecx] */ 1368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Cu); 1369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1370 eax = eax + 0x3Cu; /* 0x200039F9: add eax, 0x3c */ 1371 _flag_k = FK_ADD; 1372 MEM32(eax) = edx; /* 0x200039FC: mov dword ptr [eax], edx */ 1373 edx = MEM32(ecx + 0x4); /* 0x200039FE: mov edx, dword ptr [ecx + 4] */ 1374 MEM32(eax + 0x4) = edx; /* 0x20003A01: mov dword ptr [eax + 4], edx */ 1375 ecx = MEM32(ecx + 0x8); /* 0x20003A04: mov ecx, dword ptr [ecx + 8] */ 1376 PUSH32(esp, edi); /* 0x20003A07: push edi */ 1377 MEM32(eax + 0x8) = ecx; /* 0x20003A08: mov dword ptr [eax + 8], ecx */ 1378 PUSH32(esp, ebx); /* 0x20003A0B: push ebx */ 1379 ecx = esi; /* 0x20003A0C: mov ecx, esi */ 1380 RECOMP_ICALL(0x200033B0u); /* 0x20003A0E: call 0x200033b0 */ /* not lifted */ 1381 RECOMP_FLAGS_IN(); 1382 L_20003A13: 1383 edi = POP32_VAL(esp); /* 0x20003A13: pop edi */ 1384 esi = POP32_VAL(esp); /* 0x20003A14: pop esi */ 1385 ebx = POP32_VAL(esp); /* 0x20003A15: pop ebx */ 1386 ebp = POP32_VAL(esp); /* 0x20003A16: pop ebp */ 1387 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20003A17: ret 0xc */ 1388 RECOMP_REGS_OUT(); 1389 } 1390 1391 void sub_20003A20(void) { 1392 int _fpu_cmp = 0; 1393 uint32_t _cf = 0; 1394 int _df = 1; 1395 uint32_t _flag_k = FK_NONE; 1396 uint32_t _flag_a = 0, _flag_b = 0; 1397 uint32_t _itail_tgt = 0; 1398 RECOMP_REGS_LOCALS 1399 RECOMP_ENTER(0x20003A20u); 1400 1401 L_20003A20: 1402 PUSH32(esp, ebp); /* 0x20003A20: push ebp */ 1403 ebp = esp; /* 0x20003A21: mov ebp, esp */ 1404 eax = MEM32(ebp + 0x8); /* 0x20003A23: mov eax, dword ptr [ebp + 8] */ 1405 PUSH32(esp, esi); /* 0x20003A26: push esi */ 1406 PUSH32(esp, edi); /* 0x20003A27: push edi */ 1407 edi = MEM32(ebp + 0xC); /* 0x20003A28: mov edi, dword ptr [ebp + 0xc] */ 1408 PUSH32(esp, 0); /* 0x20003A2B: push 0 */ 1409 PUSH32(esp, 0); /* 0x20003A2D: push 0 */ 1410 PUSH32(esp, edi); /* 0x20003A2F: push edi */ 1411 esi = ecx; /* 0x20003A30: mov esi, ecx */ 1412 PUSH32(esp, eax); /* 0x20003A32: push eax */ 1413 RECOMP_ICALL(0x200011F0u); /* 0x20003A33: call 0x200011f0 */ /* not lifted */ 1414 RECOMP_FLAGS_IN(); 1415 /* test eax, eax */ /* 0x20003A38: test eax, eax */ 1416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1417 _cf = 0; 1418 _flag_k = FK_TEST; 1419 if (TEST_Z(_flag_a, _flag_b)) goto L_20003A7D; /* 0x20003A3A: je 0x20003a7d */ 1420 L_20003A3C: 1421 edx = MEM32(ebp + 0x10); /* 0x20003A3C: mov edx, dword ptr [ebp + 0x10] */ 1422 MEM32(eax + 0x8) = 0x4000u; /* 0x20003A3F: mov dword ptr [eax + 8], 0x4000 */ 1423 PUSH32(esp, ebx); /* 0x20003A46: push ebx */ 1424 ebx = MEM32(edx); /* 0x20003A47: mov ebx, dword ptr [edx] */ 1425 ecx = eax + 0x3C; /* 0x20003A49: lea ecx, [eax + 0x3c] */ 1426 MEM32(ecx) = ebx; /* 0x20003A4C: mov dword ptr [ecx], ebx */ 1427 ebx = MEM32(edx + 0x4); /* 0x20003A4E: mov ebx, dword ptr [edx + 4] */ 1428 MEM32(ecx + 0x4) = ebx; /* 0x20003A51: mov dword ptr [ecx + 4], ebx */ 1429 edx = MEM32(edx + 0x8); /* 0x20003A54: mov edx, dword ptr [edx + 8] */ 1430 MEM32(ecx + 0x8) = edx; /* 0x20003A57: mov dword ptr [ecx + 8], edx */ 1431 ecx = MEM32(ebp + 0x14); /* 0x20003A5A: mov ecx, dword ptr [ebp + 0x14] */ 1432 edx = MEM32(ecx); /* 0x20003A5D: mov edx, dword ptr [ecx] */ 1433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x48u); 1434 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1435 eax = eax + 0x48u; /* 0x20003A5F: add eax, 0x48 */ 1436 _flag_k = FK_ADD; 1437 MEM32(eax) = edx; /* 0x20003A62: mov dword ptr [eax], edx */ 1438 edx = MEM32(ecx + 0x4); /* 0x20003A64: mov edx, dword ptr [ecx + 4] */ 1439 MEM32(eax + 0x4) = edx; /* 0x20003A67: mov dword ptr [eax + 4], edx */ 1440 ecx = MEM32(ecx + 0x8); /* 0x20003A6A: mov ecx, dword ptr [ecx + 8] */ 1441 edx = MEM32(ebp + 0x8); /* 0x20003A6D: mov edx, dword ptr [ebp + 8] */ 1442 PUSH32(esp, edi); /* 0x20003A70: push edi */ 1443 MEM32(eax + 0x8) = ecx; /* 0x20003A71: mov dword ptr [eax + 8], ecx */ 1444 PUSH32(esp, edx); /* 0x20003A74: push edx */ 1445 ecx = esi; /* 0x20003A75: mov ecx, esi */ 1446 RECOMP_ICALL(0x200033B0u); /* 0x20003A77: call 0x200033b0 */ /* not lifted */ 1447 RECOMP_FLAGS_IN(); 1448 ebx = POP32_VAL(esp); /* 0x20003A7C: pop ebx */ 1449 L_20003A7D: 1450 edi = POP32_VAL(esp); /* 0x20003A7D: pop edi */ 1451 esi = POP32_VAL(esp); /* 0x20003A7E: pop esi */ 1452 ebp = POP32_VAL(esp); /* 0x20003A7F: pop ebp */ 1453 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20003A80: ret 0x10 */ 1454 RECOMP_REGS_OUT(); 1455 } 1456 1457 void sub_20003A90(void) { 1458 int _fpu_cmp = 0; 1459 uint32_t _cf = 0; 1460 int _df = 1; 1461 uint32_t _flag_k = FK_NONE; 1462 uint32_t _flag_a = 0, _flag_b = 0; 1463 uint32_t _itail_tgt = 0; 1464 RECOMP_REGS_LOCALS 1465 RECOMP_ENTER(0x20003A90u); 1466 1467 L_20003A90: 1468 PUSH32(esp, ebp); /* 0x20003A90: push ebp */ 1469 ebp = esp; /* 0x20003A91: mov ebp, esp */ 1470 eax = MEM32(ebp + 0x8); /* 0x20003A93: mov eax, dword ptr [ebp + 8] */ 1471 PUSH32(esp, esi); /* 0x20003A96: push esi */ 1472 PUSH32(esp, edi); /* 0x20003A97: push edi */ 1473 edi = MEM32(ebp + 0xC); /* 0x20003A98: mov edi, dword ptr [ebp + 0xc] */ 1474 PUSH32(esp, 0); /* 0x20003A9B: push 0 */ 1475 PUSH32(esp, 0); /* 0x20003A9D: push 0 */ 1476 PUSH32(esp, edi); /* 0x20003A9F: push edi */ 1477 esi = ecx; /* 0x20003AA0: mov esi, ecx */ 1478 PUSH32(esp, eax); /* 0x20003AA2: push eax */ 1479 RECOMP_ICALL(0x200011F0u); /* 0x20003AA3: call 0x200011f0 */ /* not lifted */ 1480 RECOMP_FLAGS_IN(); 1481 /* test eax, eax */ /* 0x20003AA8: test eax, eax */ 1482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1483 _cf = 0; 1484 _flag_k = FK_TEST; 1485 if (TEST_Z(_flag_a, _flag_b)) goto L_20003B03; /* 0x20003AAA: je 0x20003b03 */ 1486 L_20003AAC: 1487 edx = MEM32(ebp + 0x10); /* 0x20003AAC: mov edx, dword ptr [ebp + 0x10] */ 1488 MEM32(eax + 0x8) = 0x8000u; /* 0x20003AAF: mov dword ptr [eax + 8], 0x8000 */ 1489 PUSH32(esp, ebx); /* 0x20003AB6: push ebx */ 1490 ebx = MEM32(edx); /* 0x20003AB7: mov ebx, dword ptr [edx] */ 1491 ecx = eax + 0x3C; /* 0x20003AB9: lea ecx, [eax + 0x3c] */ 1492 MEM32(ecx) = ebx; /* 0x20003ABC: mov dword ptr [ecx], ebx */ 1493 ebx = MEM32(edx + 0x4); /* 0x20003ABE: mov ebx, dword ptr [edx + 4] */ 1494 MEM32(ecx + 0x4) = ebx; /* 0x20003AC1: mov dword ptr [ecx + 4], ebx */ 1495 edx = MEM32(edx + 0x8); /* 0x20003AC4: mov edx, dword ptr [edx + 8] */ 1496 MEM32(ecx + 0x8) = edx; /* 0x20003AC7: mov dword ptr [ecx + 8], edx */ 1497 edx = MEM32(ebp + 0x14); /* 0x20003ACA: mov edx, dword ptr [ebp + 0x14] */ 1498 ebx = MEM32(edx); /* 0x20003ACD: mov ebx, dword ptr [edx] */ 1499 ecx = eax + 0x48; /* 0x20003ACF: lea ecx, [eax + 0x48] */ 1500 MEM32(ecx) = ebx; /* 0x20003AD2: mov dword ptr [ecx], ebx */ 1501 ebx = MEM32(edx + 0x4); /* 0x20003AD4: mov ebx, dword ptr [edx + 4] */ 1502 MEM32(ecx + 0x4) = ebx; /* 0x20003AD7: mov dword ptr [ecx + 4], ebx */ 1503 edx = MEM32(edx + 0x8); /* 0x20003ADA: mov edx, dword ptr [edx + 8] */ 1504 MEM32(ecx + 0x8) = edx; /* 0x20003ADD: mov dword ptr [ecx + 8], edx */ 1505 ecx = MEM32(ebp + 0x18); /* 0x20003AE0: mov ecx, dword ptr [ebp + 0x18] */ 1506 edx = MEM32(ecx); /* 0x20003AE3: mov edx, dword ptr [ecx] */ 1507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 1508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1509 eax = eax + 0x54u; /* 0x20003AE5: add eax, 0x54 */ 1510 _flag_k = FK_ADD; 1511 MEM32(eax) = edx; /* 0x20003AE8: mov dword ptr [eax], edx */ 1512 edx = MEM32(ecx + 0x4); /* 0x20003AEA: mov edx, dword ptr [ecx + 4] */ 1513 MEM32(eax + 0x4) = edx; /* 0x20003AED: mov dword ptr [eax + 4], edx */ 1514 ecx = MEM32(ecx + 0x8); /* 0x20003AF0: mov ecx, dword ptr [ecx + 8] */ 1515 edx = MEM32(ebp + 0x8); /* 0x20003AF3: mov edx, dword ptr [ebp + 8] */ 1516 PUSH32(esp, edi); /* 0x20003AF6: push edi */ 1517 MEM32(eax + 0x8) = ecx; /* 0x20003AF7: mov dword ptr [eax + 8], ecx */ 1518 PUSH32(esp, edx); /* 0x20003AFA: push edx */ 1519 ecx = esi; /* 0x20003AFB: mov ecx, esi */ 1520 RECOMP_ICALL(0x200033B0u); /* 0x20003AFD: call 0x200033b0 */ /* not lifted */ 1521 RECOMP_FLAGS_IN(); 1522 ebx = POP32_VAL(esp); /* 0x20003B02: pop ebx */ 1523 L_20003B03: 1524 edi = POP32_VAL(esp); /* 0x20003B03: pop edi */ 1525 esi = POP32_VAL(esp); /* 0x20003B04: pop esi */ 1526 ebp = POP32_VAL(esp); /* 0x20003B05: pop ebp */ 1527 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x20003B06: ret 0x14 */ 1528 RECOMP_REGS_OUT(); 1529 } 1530 1531 void sub_20003B10(void) { 1532 int _fpu_cmp = 0; 1533 uint32_t _cf = 0; 1534 int _df = 1; 1535 uint32_t _flag_k = FK_NONE; 1536 uint32_t _flag_a = 0, _flag_b = 0; 1537 uint32_t _itail_tgt = 0; 1538 RECOMP_REGS_LOCALS 1539 RECOMP_ENTER(0x20003B10u); 1540 1541 L_20003B10: 1542 PUSH32(esp, ebp); /* 0x20003B10: push ebp */ 1543 ebp = esp; /* 0x20003B11: mov ebp, esp */ 1544 eax = MEM32(ebp + 0x8); /* 0x20003B13: mov eax, dword ptr [ebp + 8] */ 1545 PUSH32(esp, esi); /* 0x20003B16: push esi */ 1546 PUSH32(esp, edi); /* 0x20003B17: push edi */ 1547 edi = MEM32(ebp + 0xC); /* 0x20003B18: mov edi, dword ptr [ebp + 0xc] */ 1548 PUSH32(esp, 0); /* 0x20003B1B: push 0 */ 1549 PUSH32(esp, 0); /* 0x20003B1D: push 0 */ 1550 PUSH32(esp, edi); /* 0x20003B1F: push edi */ 1551 esi = ecx; /* 0x20003B20: mov esi, ecx */ 1552 PUSH32(esp, eax); /* 0x20003B22: push eax */ 1553 RECOMP_ICALL(0x200011F0u); /* 0x20003B23: call 0x200011f0 */ /* not lifted */ 1554 RECOMP_FLAGS_IN(); 1555 /* test eax, eax */ /* 0x20003B28: test eax, eax */ 1556 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1557 _cf = 0; 1558 _flag_k = FK_TEST; 1559 if (TEST_Z(_flag_a, _flag_b)) goto L_20003B98; /* 0x20003B2A: je 0x20003b98 */ 1560 L_20003B2C: 1561 edx = MEM32(ebp + 0x10); /* 0x20003B2C: mov edx, dword ptr [ebp + 0x10] */ 1562 MEM32(eax + 0x8) = 0x00010000u; /* 0x20003B2F: mov dword ptr [eax + 8], 0x10000 */ 1563 PUSH32(esp, ebx); /* 0x20003B36: push ebx */ 1564 ebx = MEM32(edx); /* 0x20003B37: mov ebx, dword ptr [edx] */ 1565 ecx = eax + 0x3C; /* 0x20003B39: lea ecx, [eax + 0x3c] */ 1566 MEM32(ecx) = ebx; /* 0x20003B3C: mov dword ptr [ecx], ebx */ 1567 ebx = MEM32(edx + 0x4); /* 0x20003B3E: mov ebx, dword ptr [edx + 4] */ 1568 MEM32(ecx + 0x4) = ebx; /* 0x20003B41: mov dword ptr [ecx + 4], ebx */ 1569 edx = MEM32(edx + 0x8); /* 0x20003B44: mov edx, dword ptr [edx + 8] */ 1570 MEM32(ecx + 0x8) = edx; /* 0x20003B47: mov dword ptr [ecx + 8], edx */ 1571 edx = MEM32(ebp + 0x14); /* 0x20003B4A: mov edx, dword ptr [ebp + 0x14] */ 1572 ebx = MEM32(edx); /* 0x20003B4D: mov ebx, dword ptr [edx] */ 1573 ecx = eax + 0x48; /* 0x20003B4F: lea ecx, [eax + 0x48] */ 1574 MEM32(ecx) = ebx; /* 0x20003B52: mov dword ptr [ecx], ebx */ 1575 ebx = MEM32(edx + 0x4); /* 0x20003B54: mov ebx, dword ptr [edx + 4] */ 1576 MEM32(ecx + 0x4) = ebx; /* 0x20003B57: mov dword ptr [ecx + 4], ebx */ 1577 edx = MEM32(edx + 0x8); /* 0x20003B5A: mov edx, dword ptr [edx + 8] */ 1578 MEM32(ecx + 0x8) = edx; /* 0x20003B5D: mov dword ptr [ecx + 8], edx */ 1579 ecx = MEM32(ebp + 0x18); /* 0x20003B60: mov ecx, dword ptr [ebp + 0x18] */ 1580 ebx = MEM32(ecx); /* 0x20003B63: mov ebx, dword ptr [ecx] */ 1581 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 1582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1583 eax = eax + 0x54u; /* 0x20003B65: add eax, 0x54 */ 1584 _flag_k = FK_ADD; 1585 edx = eax; /* 0x20003B68: mov edx, eax */ 1586 MEM32(edx) = ebx; /* 0x20003B6A: mov dword ptr [edx], ebx */ 1587 ebx = MEM32(ecx + 0x4); /* 0x20003B6C: mov ebx, dword ptr [ecx + 4] */ 1588 MEM32(edx + 0x4) = ebx; /* 0x20003B6F: mov dword ptr [edx + 4], ebx */ 1589 ecx = MEM32(ecx + 0x8); /* 0x20003B72: mov ecx, dword ptr [ecx + 8] */ 1590 MEM32(edx + 0x8) = ecx; /* 0x20003B75: mov dword ptr [edx + 8], ecx */ 1591 edx = MEM32(ebp + 0x1C); /* 0x20003B78: mov edx, dword ptr [ebp + 0x1c] */ 1592 ecx = MEM32(edx); /* 0x20003B7B: mov ecx, dword ptr [edx] */ 1593 MEM32(eax) = ecx; /* 0x20003B7D: mov dword ptr [eax], ecx */ 1594 ecx = MEM32(edx + 0x4); /* 0x20003B7F: mov ecx, dword ptr [edx + 4] */ 1595 MEM32(eax + 0x4) = ecx; /* 0x20003B82: mov dword ptr [eax + 4], ecx */ 1596 edx = MEM32(edx + 0x8); /* 0x20003B85: mov edx, dword ptr [edx + 8] */ 1597 MEM32(eax + 0x8) = edx; /* 0x20003B88: mov dword ptr [eax + 8], edx */ 1598 eax = MEM32(ebp + 0x8); /* 0x20003B8B: mov eax, dword ptr [ebp + 8] */ 1599 PUSH32(esp, edi); /* 0x20003B8E: push edi */ 1600 PUSH32(esp, eax); /* 0x20003B8F: push eax */ 1601 ecx = esi; /* 0x20003B90: mov ecx, esi */ 1602 RECOMP_ICALL(0x200033B0u); /* 0x20003B92: call 0x200033b0 */ /* not lifted */ 1603 RECOMP_FLAGS_IN(); 1604 ebx = POP32_VAL(esp); /* 0x20003B97: pop ebx */ 1605 L_20003B98: 1606 edi = POP32_VAL(esp); /* 0x20003B98: pop edi */ 1607 esi = POP32_VAL(esp); /* 0x20003B99: pop esi */ 1608 ebp = POP32_VAL(esp); /* 0x20003B9A: pop ebp */ 1609 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x20003B9B: ret 0x18 */ 1610 RECOMP_REGS_OUT(); 1611 } 1612 1613 void sub_20003BA0(void) { 1614 int _fpu_cmp = 0; 1615 uint32_t _cf = 0; 1616 int _df = 1; 1617 uint32_t _flag_k = FK_NONE; 1618 uint32_t _flag_a = 0, _flag_b = 0; 1619 uint32_t _itail_tgt = 0; 1620 RECOMP_REGS_LOCALS 1621 RECOMP_ENTER(0x20003BA0u); 1622 1623 L_20003BA0: 1624 PUSH32(esp, ebp); /* 0x20003BA0: push ebp */ 1625 ebp = esp; /* 0x20003BA1: mov ebp, esp */ 1626 PUSH32(esp, ebx); /* 0x20003BA3: push ebx */ 1627 ebx = MEM32(ebp + 0x8); /* 0x20003BA4: mov ebx, dword ptr [ebp + 8] */ 1628 PUSH32(esp, esi); /* 0x20003BA7: push esi */ 1629 PUSH32(esp, edi); /* 0x20003BA8: push edi */ 1630 edi = MEM32(ebp + 0xC); /* 0x20003BA9: mov edi, dword ptr [ebp + 0xc] */ 1631 PUSH32(esp, 0); /* 0x20003BAC: push 0 */ 1632 PUSH32(esp, 0); /* 0x20003BAE: push 0 */ 1633 PUSH32(esp, edi); /* 0x20003BB0: push edi */ 1634 esi = ecx; /* 0x20003BB1: mov esi, ecx */ 1635 PUSH32(esp, ebx); /* 0x20003BB3: push ebx */ 1636 RECOMP_ICALL(0x200011F0u); /* 0x20003BB4: call 0x200011f0 */ /* not lifted */ 1637 RECOMP_FLAGS_IN(); 1638 /* test eax, eax */ /* 0x20003BB9: test eax, eax */ 1639 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1640 _cf = 0; 1641 _flag_k = FK_TEST; 1642 if (TEST_Z(_flag_a, _flag_b)) goto L_20003BDB; /* 0x20003BBB: je 0x20003bdb */ 1643 L_20003BBD: 1644 ecx = MEM32(ebp + 0x10); /* 0x20003BBD: mov ecx, dword ptr [ebp + 0x10] */ 1645 MEM32(eax + 0x8) = 0x00020000u; /* 0x20003BC0: mov dword ptr [eax + 8], 0x20000 */ 1646 edx = MEM32(ecx); /* 0x20003BC7: mov edx, dword ptr [ecx] */ 1647 MEM32(eax + 0x6C) = edx; /* 0x20003BC9: mov dword ptr [eax + 0x6c], edx */ 1648 ecx = MEM32(ecx + 0x4); /* 0x20003BCC: mov ecx, dword ptr [ecx + 4] */ 1649 PUSH32(esp, edi); /* 0x20003BCF: push edi */ 1650 MEM32(eax + 0x70) = ecx; /* 0x20003BD0: mov dword ptr [eax + 0x70], ecx */ 1651 PUSH32(esp, ebx); /* 0x20003BD3: push ebx */ 1652 ecx = esi; /* 0x20003BD4: mov ecx, esi */ 1653 RECOMP_ICALL(0x200033B0u); /* 0x20003BD6: call 0x200033b0 */ /* not lifted */ 1654 RECOMP_FLAGS_IN(); 1655 L_20003BDB: 1656 edi = POP32_VAL(esp); /* 0x20003BDB: pop edi */ 1657 esi = POP32_VAL(esp); /* 0x20003BDC: pop esi */ 1658 ebx = POP32_VAL(esp); /* 0x20003BDD: pop ebx */ 1659 ebp = POP32_VAL(esp); /* 0x20003BDE: pop ebp */ 1660 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20003BDF: ret 0xc */ 1661 RECOMP_REGS_OUT(); 1662 } 1663 1664 void sub_20003BF0(void) { 1665 int _fpu_cmp = 0; 1666 uint32_t _cf = 0; 1667 int _df = 1; 1668 uint32_t _flag_k = FK_NONE; 1669 uint32_t _flag_a = 0, _flag_b = 0; 1670 uint32_t _itail_tgt = 0; 1671 RECOMP_REGS_LOCALS 1672 RECOMP_ENTER(0x20003BF0u); 1673 1674 L_20003BF0: 1675 PUSH32(esp, ebp); /* 0x20003BF0: push ebp */ 1676 ebp = esp; /* 0x20003BF1: mov ebp, esp */ 1677 PUSH32(esp, ebx); /* 0x20003BF3: push ebx */ 1678 ebx = MEM32(ebp + 0x8); /* 0x20003BF4: mov ebx, dword ptr [ebp + 8] */ 1679 PUSH32(esp, esi); /* 0x20003BF7: push esi */ 1680 PUSH32(esp, edi); /* 0x20003BF8: push edi */ 1681 edi = MEM32(ebp + 0xC); /* 0x20003BF9: mov edi, dword ptr [ebp + 0xc] */ 1682 PUSH32(esp, 0); /* 0x20003BFC: push 0 */ 1683 PUSH32(esp, 0); /* 0x20003BFE: push 0 */ 1684 PUSH32(esp, edi); /* 0x20003C00: push edi */ 1685 esi = ecx; /* 0x20003C01: mov esi, ecx */ 1686 PUSH32(esp, ebx); /* 0x20003C03: push ebx */ 1687 RECOMP_ICALL(0x200011F0u); /* 0x20003C04: call 0x200011f0 */ /* not lifted */ 1688 RECOMP_FLAGS_IN(); 1689 /* test eax, eax */ /* 0x20003C09: test eax, eax */ 1690 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1691 _cf = 0; 1692 _flag_k = FK_TEST; 1693 if (TEST_Z(_flag_a, _flag_b)) goto L_20003C39; /* 0x20003C0B: je 0x20003c39 */ 1694 L_20003C0D: 1695 ecx = MEM32(ebp + 0x10); /* 0x20003C0D: mov ecx, dword ptr [ebp + 0x10] */ 1696 MEM32(eax + 0x8) = 0x00040000u; /* 0x20003C10: mov dword ptr [eax + 8], 0x40000 */ 1697 edx = MEM32(ecx); /* 0x20003C17: mov edx, dword ptr [ecx] */ 1698 MEM32(eax + 0x6C) = edx; /* 0x20003C19: mov dword ptr [eax + 0x6c], edx */ 1699 ecx = MEM32(ecx + 0x4); /* 0x20003C1C: mov ecx, dword ptr [ecx + 4] */ 1700 MEM32(eax + 0x70) = ecx; /* 0x20003C1F: mov dword ptr [eax + 0x70], ecx */ 1701 ecx = MEM32(ebp + 0x14); /* 0x20003C22: mov ecx, dword ptr [ebp + 0x14] */ 1702 edx = MEM32(ecx); /* 0x20003C25: mov edx, dword ptr [ecx] */ 1703 MEM32(eax + 0x74) = edx; /* 0x20003C27: mov dword ptr [eax + 0x74], edx */ 1704 ecx = MEM32(ecx + 0x4); /* 0x20003C2A: mov ecx, dword ptr [ecx + 4] */ 1705 PUSH32(esp, edi); /* 0x20003C2D: push edi */ 1706 MEM32(eax + 0x78) = ecx; /* 0x20003C2E: mov dword ptr [eax + 0x78], ecx */ 1707 PUSH32(esp, ebx); /* 0x20003C31: push ebx */ 1708 ecx = esi; /* 0x20003C32: mov ecx, esi */ 1709 RECOMP_ICALL(0x200033B0u); /* 0x20003C34: call 0x200033b0 */ /* not lifted */ 1710 RECOMP_FLAGS_IN(); 1711 L_20003C39: 1712 edi = POP32_VAL(esp); /* 0x20003C39: pop edi */ 1713 esi = POP32_VAL(esp); /* 0x20003C3A: pop esi */ 1714 ebx = POP32_VAL(esp); /* 0x20003C3B: pop ebx */ 1715 ebp = POP32_VAL(esp); /* 0x20003C3C: pop ebp */ 1716 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20003C3D: ret 0x10 */ 1717 RECOMP_REGS_OUT(); 1718 } 1719 1720 void sub_20003C40(void) { 1721 int _fpu_cmp = 0; 1722 uint32_t _cf = 0; 1723 int _df = 1; 1724 uint32_t _flag_k = FK_NONE; 1725 uint32_t _flag_a = 0, _flag_b = 0; 1726 uint32_t _itail_tgt = 0; 1727 RECOMP_REGS_LOCALS 1728 RECOMP_ENTER(0x20003C40u); 1729 1730 L_20003C40: 1731 PUSH32(esp, ebp); /* 0x20003C40: push ebp */ 1732 ebp = esp; /* 0x20003C41: mov ebp, esp */ 1733 PUSH32(esp, ebx); /* 0x20003C43: push ebx */ 1734 ebx = MEM32(ebp + 0x8); /* 0x20003C44: mov ebx, dword ptr [ebp + 8] */ 1735 PUSH32(esp, esi); /* 0x20003C47: push esi */ 1736 PUSH32(esp, edi); /* 0x20003C48: push edi */ 1737 edi = MEM32(ebp + 0xC); /* 0x20003C49: mov edi, dword ptr [ebp + 0xc] */ 1738 PUSH32(esp, 0); /* 0x20003C4C: push 0 */ 1739 PUSH32(esp, 0); /* 0x20003C4E: push 0 */ 1740 PUSH32(esp, edi); /* 0x20003C50: push edi */ 1741 esi = ecx; /* 0x20003C51: mov esi, ecx */ 1742 PUSH32(esp, ebx); /* 0x20003C53: push ebx */ 1743 RECOMP_ICALL(0x200011F0u); /* 0x20003C54: call 0x200011f0 */ /* not lifted */ 1744 RECOMP_FLAGS_IN(); 1745 /* test eax, eax */ /* 0x20003C59: test eax, eax */ 1746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1747 _cf = 0; 1748 _flag_k = FK_TEST; 1749 if (TEST_Z(_flag_a, _flag_b)) goto L_20003C9A; /* 0x20003C5B: je 0x20003c9a */ 1750 L_20003C5D: 1751 ecx = MEM32(ebp + 0x10); /* 0x20003C5D: mov ecx, dword ptr [ebp + 0x10] */ 1752 MEM32(eax + 0x8) = 0x00080000u; /* 0x20003C60: mov dword ptr [eax + 8], 0x80000 */ 1753 edx = MEM32(ecx); /* 0x20003C67: mov edx, dword ptr [ecx] */ 1754 MEM32(eax + 0x6C) = edx; /* 0x20003C69: mov dword ptr [eax + 0x6c], edx */ 1755 ecx = MEM32(ecx + 0x4); /* 0x20003C6C: mov ecx, dword ptr [ecx + 4] */ 1756 MEM32(eax + 0x70) = ecx; /* 0x20003C6F: mov dword ptr [eax + 0x70], ecx */ 1757 ecx = MEM32(ebp + 0x14); /* 0x20003C72: mov ecx, dword ptr [ebp + 0x14] */ 1758 edx = MEM32(ecx); /* 0x20003C75: mov edx, dword ptr [ecx] */ 1759 MEM32(eax + 0x74) = edx; /* 0x20003C77: mov dword ptr [eax + 0x74], edx */ 1760 ecx = MEM32(ecx + 0x4); /* 0x20003C7A: mov ecx, dword ptr [ecx + 4] */ 1761 MEM32(eax + 0x78) = ecx; /* 0x20003C7D: mov dword ptr [eax + 0x78], ecx */ 1762 ecx = MEM32(ebp + 0x18); /* 0x20003C80: mov ecx, dword ptr [ebp + 0x18] */ 1763 edx = MEM32(ecx); /* 0x20003C83: mov edx, dword ptr [ecx] */ 1764 MEM32(eax + 0x7C) = edx; /* 0x20003C85: mov dword ptr [eax + 0x7c], edx */ 1765 ecx = MEM32(ecx + 0x4); /* 0x20003C88: mov ecx, dword ptr [ecx + 4] */ 1766 PUSH32(esp, edi); /* 0x20003C8B: push edi */ 1767 MEM32(eax + 0x80) = ecx; /* 0x20003C8C: mov dword ptr [eax + 0x80], ecx */ 1768 PUSH32(esp, ebx); /* 0x20003C92: push ebx */ 1769 ecx = esi; /* 0x20003C93: mov ecx, esi */ 1770 RECOMP_ICALL(0x200033B0u); /* 0x20003C95: call 0x200033b0 */ /* not lifted */ 1771 RECOMP_FLAGS_IN(); 1772 L_20003C9A: 1773 edi = POP32_VAL(esp); /* 0x20003C9A: pop edi */ 1774 esi = POP32_VAL(esp); /* 0x20003C9B: pop esi */ 1775 ebx = POP32_VAL(esp); /* 0x20003C9C: pop ebx */ 1776 ebp = POP32_VAL(esp); /* 0x20003C9D: pop ebp */ 1777 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x20003C9E: ret 0x14 */ 1778 RECOMP_REGS_OUT(); 1779 } 1780 1781 void sub_20003CB0(void) { 1782 int _fpu_cmp = 0; 1783 uint32_t _cf = 0; 1784 int _df = 1; 1785 uint32_t _flag_k = FK_NONE; 1786 uint32_t _flag_a = 0, _flag_b = 0; 1787 uint32_t _itail_tgt = 0; 1788 RECOMP_REGS_LOCALS 1789 RECOMP_ENTER(0x20003CB0u); 1790 1791 L_20003CB0: 1792 PUSH32(esp, ebp); /* 0x20003CB0: push ebp */ 1793 ebp = esp; /* 0x20003CB1: mov ebp, esp */ 1794 PUSH32(esp, ebx); /* 0x20003CB3: push ebx */ 1795 ebx = MEM32(ebp + 0x8); /* 0x20003CB4: mov ebx, dword ptr [ebp + 8] */ 1796 PUSH32(esp, esi); /* 0x20003CB7: push esi */ 1797 PUSH32(esp, edi); /* 0x20003CB8: push edi */ 1798 edi = MEM32(ebp + 0xC); /* 0x20003CB9: mov edi, dword ptr [ebp + 0xc] */ 1799 PUSH32(esp, 0); /* 0x20003CBC: push 0 */ 1800 PUSH32(esp, 0); /* 0x20003CBE: push 0 */ 1801 PUSH32(esp, edi); /* 0x20003CC0: push edi */ 1802 esi = ecx; /* 0x20003CC1: mov esi, ecx */ 1803 PUSH32(esp, ebx); /* 0x20003CC3: push ebx */ 1804 RECOMP_ICALL(0x200011F0u); /* 0x20003CC4: call 0x200011f0 */ /* not lifted */ 1805 RECOMP_FLAGS_IN(); 1806 /* test eax, eax */ /* 0x20003CC9: test eax, eax */ 1807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1808 _cf = 0; 1809 _flag_k = FK_TEST; 1810 if (TEST_Z(_flag_a, _flag_b)) goto L_20003D1B; /* 0x20003CCB: je 0x20003d1b */ 1811 L_20003CCD: 1812 ecx = MEM32(ebp + 0x10); /* 0x20003CCD: mov ecx, dword ptr [ebp + 0x10] */ 1813 MEM32(eax + 0x8) = 0x00100000u; /* 0x20003CD0: mov dword ptr [eax + 8], 0x100000 */ 1814 edx = MEM32(ecx); /* 0x20003CD7: mov edx, dword ptr [ecx] */ 1815 MEM32(eax + 0x6C) = edx; /* 0x20003CD9: mov dword ptr [eax + 0x6c], edx */ 1816 ecx = MEM32(ecx + 0x4); /* 0x20003CDC: mov ecx, dword ptr [ecx + 4] */ 1817 MEM32(eax + 0x70) = ecx; /* 0x20003CDF: mov dword ptr [eax + 0x70], ecx */ 1818 ecx = MEM32(ebp + 0x14); /* 0x20003CE2: mov ecx, dword ptr [ebp + 0x14] */ 1819 edx = MEM32(ecx); /* 0x20003CE5: mov edx, dword ptr [ecx] */ 1820 MEM32(eax + 0x74) = edx; /* 0x20003CE7: mov dword ptr [eax + 0x74], edx */ 1821 ecx = MEM32(ecx + 0x4); /* 0x20003CEA: mov ecx, dword ptr [ecx + 4] */ 1822 MEM32(eax + 0x78) = ecx; /* 0x20003CED: mov dword ptr [eax + 0x78], ecx */ 1823 ecx = MEM32(ebp + 0x18); /* 0x20003CF0: mov ecx, dword ptr [ebp + 0x18] */ 1824 edx = MEM32(ecx); /* 0x20003CF3: mov edx, dword ptr [ecx] */ 1825 MEM32(eax + 0x7C) = edx; /* 0x20003CF5: mov dword ptr [eax + 0x7c], edx */ 1826 ecx = MEM32(ecx + 0x4); /* 0x20003CF8: mov ecx, dword ptr [ecx + 4] */ 1827 MEM32(eax + 0x80) = ecx; /* 0x20003CFB: mov dword ptr [eax + 0x80], ecx */ 1828 ecx = MEM32(ebp + 0x1C); /* 0x20003D01: mov ecx, dword ptr [ebp + 0x1c] */ 1829 edx = MEM32(ecx); /* 0x20003D04: mov edx, dword ptr [ecx] */ 1830 MEM32(eax + 0x7C) = edx; /* 0x20003D06: mov dword ptr [eax + 0x7c], edx */ 1831 ecx = MEM32(ecx + 0x4); /* 0x20003D09: mov ecx, dword ptr [ecx + 4] */ 1832 PUSH32(esp, edi); /* 0x20003D0C: push edi */ 1833 MEM32(eax + 0x80) = ecx; /* 0x20003D0D: mov dword ptr [eax + 0x80], ecx */ 1834 PUSH32(esp, ebx); /* 0x20003D13: push ebx */ 1835 ecx = esi; /* 0x20003D14: mov ecx, esi */ 1836 RECOMP_ICALL(0x200033B0u); /* 0x20003D16: call 0x200033b0 */ /* not lifted */ 1837 RECOMP_FLAGS_IN(); 1838 L_20003D1B: 1839 edi = POP32_VAL(esp); /* 0x20003D1B: pop edi */ 1840 esi = POP32_VAL(esp); /* 0x20003D1C: pop esi */ 1841 ebx = POP32_VAL(esp); /* 0x20003D1D: pop ebx */ 1842 ebp = POP32_VAL(esp); /* 0x20003D1E: pop ebp */ 1843 RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x20003D1F: ret 0x18 */ 1844 RECOMP_REGS_OUT(); 1845 } 1846 1847 void sub_20003D30(void) { 1848 int _fpu_cmp = 0; 1849 uint32_t _cf = 0; 1850 int _df = 1; 1851 uint32_t _flag_k = FK_NONE; 1852 uint32_t _flag_a = 0, _flag_b = 0; 1853 uint32_t _itail_tgt = 0; 1854 RECOMP_REGS_LOCALS 1855 RECOMP_ENTER(0x20003D30u); 1856 1857 L_20003D30: 1858 PUSH32(esp, ebp); /* 0x20003D30: push ebp */ 1859 ebp = esp; /* 0x20003D31: mov ebp, esp */ 1860 PUSH32(esp, ebx); /* 0x20003D33: push ebx */ 1861 ebx = MEM32(ebp + 0x8); /* 0x20003D34: mov ebx, dword ptr [ebp + 8] */ 1862 PUSH32(esp, esi); /* 0x20003D37: push esi */ 1863 PUSH32(esp, edi); /* 0x20003D38: push edi */ 1864 edi = MEM32(ebp + 0xC); /* 0x20003D39: mov edi, dword ptr [ebp + 0xc] */ 1865 PUSH32(esp, 0); /* 0x20003D3C: push 0 */ 1866 PUSH32(esp, 0); /* 0x20003D3E: push 0 */ 1867 PUSH32(esp, edi); /* 0x20003D40: push edi */ 1868 esi = ecx; /* 0x20003D41: mov esi, ecx */ 1869 PUSH32(esp, ebx); /* 0x20003D43: push ebx */ 1870 RECOMP_ICALL(0x200011F0u); /* 0x20003D44: call 0x200011f0 */ /* not lifted */ 1871 RECOMP_FLAGS_IN(); 1872 /* test eax, eax */ /* 0x20003D49: test eax, eax */ 1873 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1874 _cf = 0; 1875 _flag_k = FK_TEST; 1876 if (TEST_Z(_flag_a, _flag_b)) goto L_20003D71; /* 0x20003D4B: je 0x20003d71 */ 1877 L_20003D4D: 1878 ecx = MEM32(ebp + 0x10); /* 0x20003D4D: mov ecx, dword ptr [ebp + 0x10] */ 1879 MEM32(eax + 0x8) = 0x00200000u; /* 0x20003D50: mov dword ptr [eax + 8], 0x200000 */ 1880 edx = MEM32(ecx); /* 0x20003D57: mov edx, dword ptr [ecx] */ 1881 MEM32(eax + 0x8C) = edx; /* 0x20003D59: mov dword ptr [eax + 0x8c], edx */ 1882 ecx = MEM32(ecx + 0x4); /* 0x20003D5F: mov ecx, dword ptr [ecx + 4] */ 1883 PUSH32(esp, edi); /* 0x20003D62: push edi */ 1884 MEM32(eax + 0x90) = ecx; /* 0x20003D63: mov dword ptr [eax + 0x90], ecx */ 1885 PUSH32(esp, ebx); /* 0x20003D69: push ebx */ 1886 ecx = esi; /* 0x20003D6A: mov ecx, esi */ 1887 RECOMP_ICALL(0x200033B0u); /* 0x20003D6C: call 0x200033b0 */ /* not lifted */ 1888 RECOMP_FLAGS_IN(); 1889 L_20003D71: 1890 edi = POP32_VAL(esp); /* 0x20003D71: pop edi */ 1891 esi = POP32_VAL(esp); /* 0x20003D72: pop esi */ 1892 ebx = POP32_VAL(esp); /* 0x20003D73: pop ebx */ 1893 ebp = POP32_VAL(esp); /* 0x20003D74: pop ebp */ 1894 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20003D75: ret 0xc */ 1895 RECOMP_REGS_OUT(); 1896 } 1897 1898 void sub_20003D80(void) { 1899 int _fpu_cmp = 0; 1900 uint32_t _cf = 0; 1901 int _df = 1; 1902 uint32_t _flag_k = FK_NONE; 1903 uint32_t _flag_a = 0, _flag_b = 0; 1904 uint32_t _itail_tgt = 0; 1905 RECOMP_REGS_LOCALS 1906 RECOMP_ENTER(0x20003D80u); 1907 1908 L_20003D80: 1909 PUSH32(esp, ebp); /* 0x20003D80: push ebp */ 1910 ebp = esp; /* 0x20003D81: mov ebp, esp */ 1911 PUSH32(esp, ebx); /* 0x20003D83: push ebx */ 1912 ebx = MEM32(ebp + 0x8); /* 0x20003D84: mov ebx, dword ptr [ebp + 8] */ 1913 PUSH32(esp, esi); /* 0x20003D87: push esi */ 1914 PUSH32(esp, edi); /* 0x20003D88: push edi */ 1915 edi = MEM32(ebp + 0xC); /* 0x20003D89: mov edi, dword ptr [ebp + 0xc] */ 1916 PUSH32(esp, 0); /* 0x20003D8C: push 0 */ 1917 PUSH32(esp, 0); /* 0x20003D8E: push 0 */ 1918 PUSH32(esp, edi); /* 0x20003D90: push edi */ 1919 esi = ecx; /* 0x20003D91: mov esi, ecx */ 1920 PUSH32(esp, ebx); /* 0x20003D93: push ebx */ 1921 RECOMP_ICALL(0x200011F0u); /* 0x20003D94: call 0x200011f0 */ /* not lifted */ 1922 RECOMP_FLAGS_IN(); 1923 /* test eax, eax */ /* 0x20003D99: test eax, eax */ 1924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1925 _cf = 0; 1926 _flag_k = FK_TEST; 1927 if (TEST_Z(_flag_a, _flag_b)) goto L_20003DCB; /* 0x20003D9B: je 0x20003dcb */ 1928 L_20003D9D: 1929 ecx = MEM32(ebp + 0x10); /* 0x20003D9D: mov ecx, dword ptr [ebp + 0x10] */ 1930 MEM32(eax + 0x8) = 0x00400000u; /* 0x20003DA0: mov dword ptr [eax + 8], 0x400000 */ 1931 edx = MEM32(ecx); /* 0x20003DA7: mov edx, dword ptr [ecx] */ 1932 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x94u); 1933 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1934 eax = eax + 0x94u; /* 0x20003DA9: add eax, 0x94 */ 1935 _flag_k = FK_ADD; 1936 MEM32(eax) = edx; /* 0x20003DAE: mov dword ptr [eax], edx */ 1937 edx = MEM32(ecx + 0x4); /* 0x20003DB0: mov edx, dword ptr [ecx + 4] */ 1938 MEM32(eax + 0x4) = edx; /* 0x20003DB3: mov dword ptr [eax + 4], edx */ 1939 edx = MEM32(ecx + 0x8); /* 0x20003DB6: mov edx, dword ptr [ecx + 8] */ 1940 MEM32(eax + 0x8) = edx; /* 0x20003DB9: mov dword ptr [eax + 8], edx */ 1941 ecx = MEM32(ecx + 0xC); /* 0x20003DBC: mov ecx, dword ptr [ecx + 0xc] */ 1942 PUSH32(esp, edi); /* 0x20003DBF: push edi */ 1943 MEM32(eax + 0xC) = ecx; /* 0x20003DC0: mov dword ptr [eax + 0xc], ecx */ 1944 PUSH32(esp, ebx); /* 0x20003DC3: push ebx */ 1945 ecx = esi; /* 0x20003DC4: mov ecx, esi */ 1946 RECOMP_ICALL(0x200033B0u); /* 0x20003DC6: call 0x200033b0 */ /* not lifted */ 1947 RECOMP_FLAGS_IN(); 1948 L_20003DCB: 1949 edi = POP32_VAL(esp); /* 0x20003DCB: pop edi */ 1950 esi = POP32_VAL(esp); /* 0x20003DCC: pop esi */ 1951 ebx = POP32_VAL(esp); /* 0x20003DCD: pop ebx */ 1952 ebp = POP32_VAL(esp); /* 0x20003DCE: pop ebp */ 1953 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20003DCF: ret 0xc */ 1954 RECOMP_REGS_OUT(); 1955 } 1956 1957 void sub_20003DE0(void) { 1958 int _fpu_cmp = 0; 1959 uint32_t _cf = 0; 1960 int _df = 1; 1961 uint32_t _flag_k = FK_NONE; 1962 uint32_t _flag_a = 0, _flag_b = 0; 1963 uint32_t _itail_tgt = 0; 1964 RECOMP_REGS_LOCALS 1965 RECOMP_ENTER(0x20003DE0u); 1966 1967 L_20003DE0: 1968 PUSH32(esp, ebp); /* 0x20003DE0: push ebp */ 1969 ebp = esp; /* 0x20003DE1: mov ebp, esp */ 1970 PUSH32(esp, ebx); /* 0x20003DE3: push ebx */ 1971 ebx = MEM32(ebp + 0x8); /* 0x20003DE4: mov ebx, dword ptr [ebp + 8] */ 1972 PUSH32(esp, esi); /* 0x20003DE7: push esi */ 1973 PUSH32(esp, edi); /* 0x20003DE8: push edi */ 1974 edi = MEM32(ebp + 0xC); /* 0x20003DE9: mov edi, dword ptr [ebp + 0xc] */ 1975 PUSH32(esp, 0); /* 0x20003DEC: push 0 */ 1976 PUSH32(esp, 0); /* 0x20003DEE: push 0 */ 1977 PUSH32(esp, edi); /* 0x20003DF0: push edi */ 1978 esi = ecx; /* 0x20003DF1: mov esi, ecx */ 1979 PUSH32(esp, ebx); /* 0x20003DF3: push ebx */ 1980 RECOMP_ICALL(0x200011F0u); /* 0x20003DF4: call 0x200011f0 */ /* not lifted */ 1981 RECOMP_FLAGS_IN(); 1982 /* test eax, eax */ /* 0x20003DF9: test eax, eax */ 1983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1984 _cf = 0; 1985 _flag_k = FK_TEST; 1986 if (TEST_Z(_flag_a, _flag_b)) goto L_20003E21; /* 0x20003DFB: je 0x20003e21 */ 1987 L_20003DFD: 1988 ecx = MEM32(ebp + 0x10); /* 0x20003DFD: mov ecx, dword ptr [ebp + 0x10] */ 1989 MEM32(eax + 0x8) = 0x00800000u; /* 0x20003E00: mov dword ptr [eax + 8], 0x800000 */ 1990 edx = MEM32(ecx); /* 0x20003E07: mov edx, dword ptr [ecx] */ 1991 MEM32(eax + 0xA4) = edx; /* 0x20003E09: mov dword ptr [eax + 0xa4], edx */ 1992 ecx = MEM32(ecx + 0x4); /* 0x20003E0F: mov ecx, dword ptr [ecx + 4] */ 1993 PUSH32(esp, edi); /* 0x20003E12: push edi */ 1994 MEM32(eax + 0xA8) = ecx; /* 0x20003E13: mov dword ptr [eax + 0xa8], ecx */ 1995 PUSH32(esp, ebx); /* 0x20003E19: push ebx */ 1996 ecx = esi; /* 0x20003E1A: mov ecx, esi */ 1997 RECOMP_ICALL(0x200033B0u); /* 0x20003E1C: call 0x200033b0 */ /* not lifted */ 1998 RECOMP_FLAGS_IN(); 1999 L_20003E21: 2000 edi = POP32_VAL(esp); /* 0x20003E21: pop edi */ 2001 esi = POP32_VAL(esp); /* 0x20003E22: pop esi */ 2002 ebx = POP32_VAL(esp); /* 0x20003E23: pop ebx */ 2003 ebp = POP32_VAL(esp); /* 0x20003E24: pop ebp */ 2004 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20003E25: ret 0xc */ 2005 RECOMP_REGS_OUT(); 2006 } 2007 2008 void sub_20003E30(void) { 2009 int _fpu_cmp = 0; 2010 uint32_t _cf = 0; 2011 int _df = 1; 2012 uint32_t _flag_k = FK_NONE; 2013 uint32_t _flag_a = 0, _flag_b = 0; 2014 uint32_t _itail_tgt = 0; 2015 RECOMP_REGS_LOCALS 2016 RECOMP_ENTER(0x20003E30u); 2017 2018 L_20003E30: 2019 RECOMP_ICALL(0x20003E40u); /* 0x20003E30: call 0x20003e40 */ /* not lifted */ 2020 RECOMP_FLAGS_IN(); 2021 goto L_20003E50; /* 0x20003E35: jmp 0x20003e50 */ 2022 L_20003E50: 2023 PUSH32(esp, 0x20003E60u); /* 0x20003E50: push 0x20003e60 */ 2024 RECOMP_ICALL(0x200072C2u); /* 0x20003E55: call 0x200072c2 */ /* not lifted */ 2025 RECOMP_FLAGS_IN(); 2026 ecx = POP32_VAL(esp); /* 0x20003E5A: pop ecx */ 2027 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20003E5B: ret */ 2028 RECOMP_REGS_OUT(); 2029 } 2030 2031 void sub_20003E40(void) { 2032 int _fpu_cmp = 0; 2033 uint32_t _cf = 0; 2034 int _df = 1; 2035 uint32_t _flag_k = FK_NONE; 2036 uint32_t _flag_a = 0, _flag_b = 0; 2037 uint32_t _itail_tgt = 0; 2038 RECOMP_REGS_LOCALS 2039 RECOMP_ENTER(0x20003E40u); 2040 2041 L_20003E40: 2042 ecx = 0x20015CE1u; /* 0x20003E40: mov ecx, 0x20015ce1 */ 2043 L_20003E45: 2044 { _itail_tgt = (uint32_t)(MEM32(0x20008020)); goto _ljump; } 2045 { RECOMP_REGS_OUT(); return; } /* end of function */ 2046 _ljump: 2047 switch (_itail_tgt) { 2048 case 0x20003E40u: goto L_20003E40; 2049 case 0x20003E45u: goto L_20003E45; 2050 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2051 } 2052 RECOMP_REGS_OUT(); 2053 } 2054 2055 void sub_20003E50(void) { 2056 int _fpu_cmp = 0; 2057 uint32_t _cf = 0; 2058 int _df = 1; 2059 uint32_t _flag_k = FK_NONE; 2060 uint32_t _flag_a = 0, _flag_b = 0; 2061 uint32_t _itail_tgt = 0; 2062 RECOMP_REGS_LOCALS 2063 RECOMP_ENTER(0x20003E50u); 2064 2065 L_20003E50: 2066 PUSH32(esp, 0x20003E60u); /* 0x20003E50: push 0x20003e60 */ 2067 RECOMP_ICALL(0x200072C2u); /* 0x20003E55: call 0x200072c2 */ /* not lifted */ 2068 RECOMP_FLAGS_IN(); 2069 ecx = POP32_VAL(esp); /* 0x20003E5A: pop ecx */ 2070 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20003E5B: ret */ 2071 RECOMP_REGS_OUT(); 2072 } 2073 2074 void sub_20003E60(void) { 2075 int _fpu_cmp = 0; 2076 uint32_t _cf = 0; 2077 int _df = 1; 2078 uint32_t _flag_k = FK_NONE; 2079 uint32_t _flag_a = 0, _flag_b = 0; 2080 uint32_t _itail_tgt = 0; 2081 RECOMP_REGS_LOCALS 2082 RECOMP_ENTER(0x20003E60u); 2083 2084 L_20003E60: 2085 ecx = 0x20015CE1u; /* 0x20003E60: mov ecx, 0x20015ce1 */ 2086 L_20003E65: 2087 { _itail_tgt = (uint32_t)(MEM32(0x20008024)); goto _ljump; } 2088 { RECOMP_REGS_OUT(); return; } /* end of function */ 2089 _ljump: 2090 switch (_itail_tgt) { 2091 case 0x20003E60u: goto L_20003E60; 2092 case 0x20003E65u: goto L_20003E65; 2093 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2094 } 2095 RECOMP_REGS_OUT(); 2096 } 2097 2098 void sub_20003E70(void) { 2099 int _fpu_cmp = 0; 2100 uint32_t _cf = 0; 2101 int _df = 1; 2102 uint32_t _flag_k = FK_NONE; 2103 uint32_t _flag_a = 0, _flag_b = 0; 2104 uint32_t _itail_tgt = 0; 2105 RECOMP_REGS_LOCALS 2106 RECOMP_ENTER(0x20003E70u); 2107 2108 L_20003E70: 2109 RECOMP_ICALL(0x20003E80u); /* 0x20003E70: call 0x20003e80 */ /* not lifted */ 2110 RECOMP_FLAGS_IN(); 2111 goto L_20003E90; /* 0x20003E75: jmp 0x20003e90 */ 2112 L_20003E90: 2113 PUSH32(esp, 0x20003EA0u); /* 0x20003E90: push 0x20003ea0 */ 2114 RECOMP_ICALL(0x200072C2u); /* 0x20003E95: call 0x200072c2 */ /* not lifted */ 2115 RECOMP_FLAGS_IN(); 2116 ecx = POP32_VAL(esp); /* 0x20003E9A: pop ecx */ 2117 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20003E9B: ret */ 2118 RECOMP_REGS_OUT(); 2119 } 2120 2121 void sub_20003E80(void) { 2122 int _fpu_cmp = 0; 2123 uint32_t _cf = 0; 2124 int _df = 1; 2125 uint32_t _flag_k = FK_NONE; 2126 uint32_t _flag_a = 0, _flag_b = 0; 2127 uint32_t _itail_tgt = 0; 2128 RECOMP_REGS_LOCALS 2129 RECOMP_ENTER(0x20003E80u); 2130 2131 L_20003E80: 2132 ecx = 0x20015CE0u; /* 0x20003E80: mov ecx, 0x20015ce0 */ 2133 L_20003E85: 2134 { _itail_tgt = (uint32_t)(MEM32(0x20008028)); goto _ljump; } 2135 { RECOMP_REGS_OUT(); return; } /* end of function */ 2136 _ljump: 2137 switch (_itail_tgt) { 2138 case 0x20003E80u: goto L_20003E80; 2139 case 0x20003E85u: goto L_20003E85; 2140 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2141 } 2142 RECOMP_REGS_OUT(); 2143 } 2144 2145 void sub_20003E90(void) { 2146 int _fpu_cmp = 0; 2147 uint32_t _cf = 0; 2148 int _df = 1; 2149 uint32_t _flag_k = FK_NONE; 2150 uint32_t _flag_a = 0, _flag_b = 0; 2151 uint32_t _itail_tgt = 0; 2152 RECOMP_REGS_LOCALS 2153 RECOMP_ENTER(0x20003E90u); 2154 2155 L_20003E90: 2156 PUSH32(esp, 0x20003EA0u); /* 0x20003E90: push 0x20003ea0 */ 2157 RECOMP_ICALL(0x200072C2u); /* 0x20003E95: call 0x200072c2 */ /* not lifted */ 2158 RECOMP_FLAGS_IN(); 2159 ecx = POP32_VAL(esp); /* 0x20003E9A: pop ecx */ 2160 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20003E9B: ret */ 2161 RECOMP_REGS_OUT(); 2162 } 2163 2164 void sub_20003EA0(void) { 2165 int _fpu_cmp = 0; 2166 uint32_t _cf = 0; 2167 int _df = 1; 2168 uint32_t _flag_k = FK_NONE; 2169 uint32_t _flag_a = 0, _flag_b = 0; 2170 uint32_t _itail_tgt = 0; 2171 RECOMP_REGS_LOCALS 2172 RECOMP_ENTER(0x20003EA0u); 2173 2174 L_20003EA0: 2175 ecx = 0x20015CE0u; /* 0x20003EA0: mov ecx, 0x20015ce0 */ 2176 L_20003EA5: 2177 { _itail_tgt = (uint32_t)(MEM32(0x2000802C)); goto _ljump; } 2178 { RECOMP_REGS_OUT(); return; } /* end of function */ 2179 _ljump: 2180 switch (_itail_tgt) { 2181 case 0x20003EA0u: goto L_20003EA0; 2182 case 0x20003EA5u: goto L_20003EA5; 2183 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2184 } 2185 RECOMP_REGS_OUT(); 2186 } 2187 2188 void sub_20003EB0(void) { 2189 int _fpu_cmp = 0; 2190 uint32_t _cf = 0; 2191 int _df = 1; 2192 uint32_t _flag_k = FK_NONE; 2193 uint32_t _flag_a = 0, _flag_b = 0; 2194 uint32_t _itail_tgt = 0; 2195 RECOMP_REGS_LOCALS 2196 RECOMP_ENTER(0x20003EB0u); 2197 2198 L_20003EB0: 2199 PUSH32(esp, ebp); /* 0x20003EB0: push ebp */ 2200 ebp = esp; /* 0x20003EB1: mov ebp, esp */ 2201 eax = MEM32(ecx + 0x73C); /* 0x20003EB3: mov eax, dword ptr [ecx + 0x73c] */ 2202 /* test eax, eax */ /* 0x20003EB9: test eax, eax */ 2203 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2204 _cf = 0; 2205 _flag_k = FK_TEST; 2206 if (TEST_Z(_flag_a, _flag_b)) goto L_20003ECD; /* 0x20003EBB: je 0x20003ecd */ 2207 L_20003EBD: 2208 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 1)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 1)); 2209 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 1; /* 0x20003EBD: or dword ptr [eax + 8], 1 */ 2210 _cf = 0; 2211 _flag_k = FK_TEST; 2212 eax = MEM32(ecx + 0x73C); /* 0x20003EC1: mov eax, dword ptr [ecx + 0x73c] */ 2213 ecx = MEM32(ebp + 0x8); /* 0x20003EC7: mov ecx, dword ptr [ebp + 8] */ 2214 MEM32(eax + 0x10) = ecx; /* 0x20003ECA: mov dword ptr [eax + 0x10], ecx */ 2215 L_20003ECD: 2216 ebp = POP32_VAL(esp); /* 0x20003ECD: pop ebp */ 2217 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20003ECE: ret 4 */ 2218 RECOMP_REGS_OUT(); 2219 } 2220 2221 void sub_20003EE0(void) { 2222 int _fpu_cmp = 0; 2223 uint32_t _cf = 0; 2224 int _df = 1; 2225 uint32_t _flag_k = FK_NONE; 2226 uint32_t _flag_a = 0, _flag_b = 0; 2227 uint32_t _itail_tgt = 0; 2228 RECOMP_REGS_LOCALS 2229 RECOMP_ENTER(0x20003EE0u); 2230 2231 L_20003EE0: 2232 PUSH32(esp, ebp); /* 0x20003EE0: push ebp */ 2233 ebp = esp; /* 0x20003EE1: mov ebp, esp */ 2234 PUSH32(esp, 0xFFFFFFFFu); /* 0x20003EE3: push -1 */ 2235 PUSH32(esp, 0x2000752Bu); /* 0x20003EE5: push 0x2000752b */ 2236 eax = MEM32(FS_BASE + (0)); /* 0x20003EEA: mov eax, dword ptr fs:[0] */ 2237 PUSH32(esp, eax); /* 0x20003EF0: push eax */ 2238 MEM32(FS_BASE + (0)) = esp; /* 0x20003EF1: mov dword ptr fs:[0], esp */ 2239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2241 esp = esp - 8; /* 0x20003EF8: sub esp, 8 */ 2242 _flag_k = FK_CMP; 2243 eax = MEM32(ecx + 0x73C); /* 0x20003EFB: mov eax, dword ptr [ecx + 0x73c] */ 2244 PUSH32(esp, edi); /* 0x20003F01: push edi */ 2245 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2246 edi = 0; /* 0x20003F02: xor edi, edi */ 2247 _cf = 0; 2248 _flag_k = FK_TEST; 2249 /* cmp eax, edi */ /* 0x20003F04: cmp eax, edi */ 2250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2251 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2252 _flag_k = FK_CMP; 2253 MEM32(ebp + (-0x10)) = ecx; /* 0x20003F06: mov dword ptr [ebp - 0x10], ecx */ 2254 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000409F; /* 0x20003F09: je 0x2000409f */ 2255 L_20003F0F: 2256 MEM32(eax + 0x8) = 0x01000000u; /* 0x20003F0F: mov dword ptr [eax + 8], 0x1000000 */ 2257 eax = MEM32(ecx + 0x73C); /* 0x20003F16: mov eax, dword ptr [ecx + 0x73c] */ 2258 PUSH32(esp, ebx); /* 0x20003F1C: push ebx */ 2259 PUSH32(esp, esi); /* 0x20003F1D: push esi */ 2260 esi = MEM32(eax + 0x14); /* 0x20003F1E: mov esi, dword ptr [eax + 0x14] */ 2261 /* cmp esi, edi */ /* 0x20003F21: cmp esi, edi */ 2262 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 2263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2264 _flag_k = FK_CMP; 2265 if (CMP_EQ(_flag_a, _flag_b)) goto L_20003F5A; /* 0x20003F23: je 0x20003f5a */ 2266 L_20003F25: 2267 eax = MEM32(esi + 0x4); /* 0x20003F25: mov eax, dword ptr [esi + 4] */ 2268 /* cmp eax, edi */ /* 0x20003F28: cmp eax, edi */ 2269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2271 _flag_k = FK_CMP; 2272 if (CMP_EQ(_flag_a, _flag_b)) goto L_20003F48; /* 0x20003F2A: je 0x20003f48 */ 2273 L_20003F2C: 2274 ecx = eax + (-0x1); /* 0x20003F2C: lea ecx, [eax - 1] */ 2275 SET_LO8(eax, MEM8(ecx)); /* 0x20003F2F: mov al, byte ptr [ecx] */ 2276 /* test LO8(eax), LO8(eax) */ /* 0x20003F31: test al, al */ 2277 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2278 _cf = 0; 2279 _flag_k = FK_NARROW(FK_TEST, 24); 2280 if (TEST_Z(_flag_a, _flag_b)) goto L_20003F3F; /* 0x20003F33: je 0x20003f3f */ 2281 L_20003F35: 2282 /* cmp LO8(eax), 0xFFu */ /* 0x20003F35: cmp al, 0xff */ 2283 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 2284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2285 _flag_k = FK_NARROW(FK_CMP, 24); 2286 if (CMP_EQ(_flag_a, _flag_b)) goto L_20003F3F; /* 0x20003F37: je 0x20003f3f */ 2287 L_20003F39: 2288 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 2289 SET_LO8(eax, LO8(eax) - 1); /* 0x20003F39: dec al */ 2290 _flag_k = FK_NARROW(FK_DEC, 24); 2291 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x20003F3B: mov byte ptr [ecx], al */ 2292 goto L_20003F48; /* 0x20003F3D: jmp 0x20003f48 */ 2293 L_20003F3F: 2294 PUSH32(esp, ecx); /* 0x20003F3F: push ecx */ 2295 RECOMP_ICALL(0x20007270u); /* 0x20003F40: call 0x20007270 */ /* not lifted */ 2296 RECOMP_FLAGS_IN(); 2297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2299 esp = esp + 4; /* 0x20003F45: add esp, 4 */ 2300 _flag_k = FK_ADD; 2301 L_20003F48: 2302 PUSH32(esp, esi); /* 0x20003F48: push esi */ 2303 MEM32(esi + 0x4) = edi; /* 0x20003F49: mov dword ptr [esi + 4], edi */ 2304 MEM32(esi + 0x8) = edi; /* 0x20003F4C: mov dword ptr [esi + 8], edi */ 2305 MEM32(esi + 0xC) = edi; /* 0x20003F4F: mov dword ptr [esi + 0xc], edi */ 2306 RECOMP_ICALL(0x20007270u); /* 0x20003F52: call 0x20007270 */ /* not lifted */ 2307 RECOMP_FLAGS_IN(); 2308 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2309 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2310 esp = esp + 4; /* 0x20003F57: add esp, 4 */ 2311 _flag_k = FK_ADD; 2312 L_20003F5A: 2313 PUSH32(esp, 0x10u); /* 0x20003F5A: push 0x10 */ 2314 RECOMP_ICALL(0x2000727Cu); /* 0x20003F5C: call 0x2000727c */ /* not lifted */ 2315 RECOMP_FLAGS_IN(); 2316 ebx = eax; /* 0x20003F61: mov ebx, eax */ 2317 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2319 esp = esp + 4; /* 0x20003F63: add esp, 4 */ 2320 _flag_k = FK_ADD; 2321 MEM32(ebp + (-0x14)) = ebx; /* 0x20003F66: mov dword ptr [ebp - 0x14], ebx */ 2322 /* cmp ebx, edi */ /* 0x20003F69: cmp ebx, edi */ 2323 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 2324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2325 _flag_k = FK_CMP; 2326 MEM32(ebp + (-0x4)) = edi; /* 0x20003F6B: mov dword ptr [ebp - 4], edi */ 2327 if (CMP_EQ(_flag_a, _flag_b)) goto L_2000408F; /* 0x20003F6E: je 0x2000408f */ 2328 L_20003F74: 2329 esi = MEM32(ebp + 0x8); /* 0x20003F74: mov esi, dword ptr [ebp + 8] */ 2330 SET_LO8(ecx, MEM8(esi)); /* 0x20003F77: mov cl, byte ptr [esi] */ 2331 MEM32(ebx + 0x4) = edi; /* 0x20003F79: mov dword ptr [ebx + 4], edi */ 2332 MEM32(ebx + 0x8) = edi; /* 0x20003F7C: mov dword ptr [ebx + 8], edi */ 2333 MEM32(ebx + 0xC) = edi; /* 0x20003F7F: mov dword ptr [ebx + 0xc], edi */ 2334 MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x20003F82: mov byte ptr [ebx], cl */ 2335 edx = MEM32(0x20008030); /* 0x20003F84: mov edx, dword ptr [0x20008030] */ 2336 ecx = MEM32(esi + 0x8); /* 0x20003F8A: mov ecx, dword ptr [esi + 8] */ 2337 eax = MEM32(edx); /* 0x20003F8D: mov eax, dword ptr [edx] */ 2338 edi = ecx; /* 0x20003F8F: mov edi, ecx */ 2339 /* cmp eax, edi */ /* 0x20003F91: cmp eax, edi */ 2340 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2342 _flag_k = FK_CMP; 2343 MEM32(ebp + 0x8) = edi; /* 0x20003F93: mov dword ptr [ebp + 8], edi */ 2344 if (CMP_AE(_flag_a, _flag_b)) goto L_20003F9D; /* 0x20003F96: jae 0x20003f9d */ 2345 L_20003F98: 2346 MEM32(ebp + 0x8) = eax; /* 0x20003F98: mov dword ptr [ebp + 8], eax */ 2347 edi = eax; /* 0x20003F9B: mov edi, eax */ 2348 L_20003F9D: 2349 /* cmp ebx, esi */ /* 0x20003F9D: cmp ebx, esi */ 2350 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 2351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2352 _flag_k = FK_CMP; 2353 if (CMP_NE(_flag_a, _flag_b)) goto L_2000400D; /* 0x20003F9F: jne 0x2000400d */ 2354 L_20003FA1: 2355 /* test edi, edi */ /* 0x20003FA1: test edi, edi */ 2356 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2357 _cf = 0; 2358 _flag_k = FK_TEST; 2359 esi = eax; /* 0x20003FA3: mov esi, eax */ 2360 if (TEST_Z(_flag_a, _flag_b)) goto L_20003FAD; /* 0x20003FA5: jbe 0x20003fad */ 2361 L_20003FA7: 2362 RECOMP_ICALL(MEM32(0x20008010)); /* 0x20003FA7: call dword ptr [0x20008010] */ 2363 RECOMP_FLAGS_IN(); 2364 L_20003FAD: 2365 eax = MEM32(ebx + 0x8); /* 0x20003FAD: mov eax, dword ptr [ebx + 8] */ 2366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2368 eax = eax - edi; /* 0x20003FB0: sub eax, edi */ 2369 _flag_k = FK_CMP; 2370 /* cmp eax, esi */ /* 0x20003FB2: cmp eax, esi */ 2371 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 2372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2373 _flag_k = FK_CMP; 2374 if (CMP_AE(_flag_a, _flag_b)) goto L_20003FB8; /* 0x20003FB4: jae 0x20003fb8 */ 2375 L_20003FB6: 2376 esi = eax; /* 0x20003FB6: mov esi, eax */ 2377 L_20003FB8: 2378 /* test esi, esi */ /* 0x20003FB8: test esi, esi */ 2379 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2380 _cf = 0; 2381 _flag_k = FK_TEST; 2382 if (TEST_Z(_flag_a, _flag_b)) goto L_20003FFC; /* 0x20003FBA: jbe 0x20003ffc */ 2383 L_20003FBC: 2384 ecx = ebx; /* 0x20003FBC: mov ecx, ebx */ 2385 RECOMP_ICALL(MEM32(0x20008040)); /* 0x20003FBE: call dword ptr [0x20008040] */ 2386 RECOMP_FLAGS_IN(); 2387 ecx = MEM32(ebx + 0x8); /* 0x20003FC4: mov ecx, dword ptr [ebx + 8] */ 2388 eax = MEM32(ebx + 0x4); /* 0x20003FC7: mov eax, dword ptr [ebx + 4] */ 2389 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2391 ecx = ecx - esi; /* 0x20003FCA: sub ecx, esi */ 2392 _flag_k = FK_CMP; 2393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2395 eax = eax + edi; /* 0x20003FCC: add eax, edi */ 2396 _flag_k = FK_ADD; 2397 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2398 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2399 ecx = ecx - edi; /* 0x20003FCE: sub ecx, edi */ 2400 _flag_k = FK_CMP; 2401 PUSH32(esp, ecx); /* 0x20003FD0: push ecx */ 2402 edx = eax + esi; /* 0x20003FD1: lea edx, [eax + esi] */ 2403 PUSH32(esp, edx); /* 0x20003FD4: push edx */ 2404 PUSH32(esp, eax); /* 0x20003FD5: push eax */ 2405 RECOMP_ICALL(MEM32(0x2000805C)); /* 0x20003FD6: call dword ptr [0x2000805c] */ 2406 RECOMP_FLAGS_IN(); 2407 edi = MEM32(ebx + 0x8); /* 0x20003FDC: mov edi, dword ptr [ebx + 8] */ 2408 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2409 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2410 esp = esp + 0xCu; /* 0x20003FDF: add esp, 0xc */ 2411 _flag_k = FK_ADD; 2412 PUSH32(esp, 0); /* 0x20003FE2: push 0 */ 2413 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 2414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2415 edi = edi - esi; /* 0x20003FE4: sub edi, esi */ 2416 _flag_k = FK_CMP; 2417 PUSH32(esp, edi); /* 0x20003FE6: push edi */ 2418 ecx = ebx; /* 0x20003FE7: mov ecx, ebx */ 2419 RECOMP_ICALL(MEM32(0x2000803C)); /* 0x20003FE9: call dword ptr [0x2000803c] */ 2420 RECOMP_FLAGS_IN(); 2421 /* test LO8(eax), LO8(eax) */ /* 0x20003FEF: test al, al */ 2422 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2423 _cf = 0; 2424 _flag_k = FK_NARROW(FK_TEST, 24); 2425 if (TEST_Z(_flag_a, _flag_b)) goto L_20003FFC; /* 0x20003FF1: je 0x20003ffc */ 2426 L_20003FF3: 2427 PUSH32(esp, edi); /* 0x20003FF3: push edi */ 2428 ecx = ebx; /* 0x20003FF4: mov ecx, ebx */ 2429 RECOMP_ICALL(MEM32(0x20008038)); /* 0x20003FF6: call dword ptr [0x20008038] */ 2430 RECOMP_FLAGS_IN(); 2431 L_20003FFC: 2432 PUSH32(esp, 0); /* 0x20003FFC: push 0 */ 2433 PUSH32(esp, 0); /* 0x20003FFE: push 0 */ 2434 ecx = ebx; /* 0x20004000: mov ecx, ebx */ 2435 RECOMP_ICALL(MEM32(0x20008014)); /* 0x20004002: call dword ptr [0x20008014] */ 2436 RECOMP_FLAGS_IN(); 2437 goto L_20004091; /* 0x20004008: jmp 0x20004091 */ 2438 L_2000400D: 2439 /* test edi, edi */ /* 0x2000400D: test edi, edi */ 2440 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2441 _cf = 0; 2442 _flag_k = FK_TEST; 2443 if (TEST_Z(_flag_a, _flag_b)) goto L_20004051; /* 0x2000400F: jbe 0x20004051 */ 2444 L_20004011: 2445 /* cmp edi, ecx */ /* 0x20004011: cmp edi, ecx */ 2446 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2448 _flag_k = FK_CMP; 2449 if (CMP_NE(_flag_a, _flag_b)) goto L_20004051; /* 0x20004013: jne 0x20004051 */ 2450 L_20004015: 2451 eax = MEM32(esi + 0x4); /* 0x20004015: mov eax, dword ptr [esi + 4] */ 2452 /* test eax, eax */ /* 0x20004018: test eax, eax */ 2453 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2454 _cf = 0; 2455 _flag_k = FK_TEST; 2456 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004021; /* 0x2000401A: jne 0x20004021 */ 2457 L_2000401C: 2458 eax = MEM32(0x20008034); /* 0x2000401C: mov eax, dword ptr [0x20008034] */ 2459 L_20004021: 2460 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x20004021: cmp byte ptr [eax - 1], 0xfe */ 2461 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 2462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2463 _flag_k = FK_NARROW(FK_CMP, 24); 2464 if (CMP_AE(_flag_a, _flag_b)) goto L_20004051; /* 0x20004025: jae 0x20004051 */ 2465 L_20004027: 2466 PUSH32(esp, 1); /* 0x20004027: push 1 */ 2467 ecx = ebx; /* 0x20004029: mov ecx, ebx */ 2468 RECOMP_ICALL(MEM32(0x2000801C)); /* 0x2000402B: call dword ptr [0x2000801c] */ 2469 RECOMP_FLAGS_IN(); 2470 eax = MEM32(esi + 0x4); /* 0x20004031: mov eax, dword ptr [esi + 4] */ 2471 /* test eax, eax */ /* 0x20004034: test eax, eax */ 2472 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2473 _cf = 0; 2474 _flag_k = FK_TEST; 2475 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000403D; /* 0x20004036: jne 0x2000403d */ 2476 L_20004038: 2477 eax = MEM32(0x20008034); /* 0x20004038: mov eax, dword ptr [0x20008034] */ 2478 L_2000403D: 2479 MEM32(ebx + 0x4) = eax; /* 0x2000403D: mov dword ptr [ebx + 4], eax */ 2480 ecx = MEM32(esi + 0x8); /* 0x20004040: mov ecx, dword ptr [esi + 8] */ 2481 MEM32(ebx + 0x8) = ecx; /* 0x20004043: mov dword ptr [ebx + 8], ecx */ 2482 edx = MEM32(esi + 0xC); /* 0x20004046: mov edx, dword ptr [esi + 0xc] */ 2483 MEM32(ebx + 0xC) = edx; /* 0x20004049: mov dword ptr [ebx + 0xc], edx */ 2484 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 2485 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x2000404C: inc byte ptr [eax - 1] */ 2486 _flag_k = FK_NARROW(FK_INC, 24); 2487 goto L_20004091; /* 0x2000404F: jmp 0x20004091 */ 2488 L_20004051: 2489 PUSH32(esp, 1); /* 0x20004051: push 1 */ 2490 PUSH32(esp, edi); /* 0x20004053: push edi */ 2491 ecx = ebx; /* 0x20004054: mov ecx, ebx */ 2492 RECOMP_ICALL(MEM32(0x2000803C)); /* 0x20004056: call dword ptr [0x2000803c] */ 2493 RECOMP_FLAGS_IN(); 2494 /* test LO8(eax), LO8(eax) */ /* 0x2000405C: test al, al */ 2495 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2496 _cf = 0; 2497 _flag_k = FK_NARROW(FK_TEST, 24); 2498 if (TEST_Z(_flag_a, _flag_b)) goto L_20004091; /* 0x2000405E: je 0x20004091 */ 2499 L_20004060: 2500 esi = MEM32(esi + 0x4); /* 0x20004060: mov esi, dword ptr [esi + 4] */ 2501 /* test esi, esi */ /* 0x20004063: test esi, esi */ 2502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2503 _cf = 0; 2504 _flag_k = FK_TEST; 2505 if (TEST_NZ(_flag_a, _flag_b)) goto L_2000406D; /* 0x20004065: jne 0x2000406d */ 2506 L_20004067: 2507 esi = MEM32(0x20008034); /* 0x20004067: mov esi, dword ptr [0x20008034] */ 2508 L_2000406D: 2509 ecx = edi; /* 0x2000406D: mov ecx, edi */ 2510 edi = MEM32(ebx + 0x4); /* 0x2000406F: mov edi, dword ptr [ebx + 4] */ 2511 eax = ecx; /* 0x20004072: mov eax, ecx */ 2512 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x20004074: shr ecx, 2 */ 2513 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2514 ecx = ecx >> 2u; /* 0x20004074: shr ecx, 2 */ 2515 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x20004077: 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; } 2516 ecx = eax; /* 0x20004079: mov ecx, eax */ 2517 eax = MEM32(ebp + 0x8); /* 0x2000407B: mov eax, dword ptr [ebp + 8] */ 2518 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2519 ecx = ecx & 3; /* 0x2000407E: and ecx, 3 */ 2520 _cf = 0; 2521 _flag_k = FK_TEST; 2522 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x20004081: 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; } 2523 ecx = MEM32(ebx + 0x4); /* 0x20004083: mov ecx, dword ptr [ebx + 4] */ 2524 MEM32(ebx + 0x8) = eax; /* 0x20004086: mov dword ptr [ebx + 8], eax */ 2525 MEM8(ecx + eax) = (uint8_t)(0); /* 0x20004089: mov byte ptr [ecx + eax], 0 */ 2526 goto L_20004091; /* 0x2000408D: jmp 0x20004091 */ 2527 L_2000408F: 2528 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2529 ebx = 0; /* 0x2000408F: xor ebx, ebx */ 2530 _cf = 0; 2531 _flag_k = FK_TEST; 2532 L_20004091: 2533 edx = MEM32(ebp + (-0x10)); /* 0x20004091: mov edx, dword ptr [ebp - 0x10] */ 2534 eax = MEM32(edx + 0x73C); /* 0x20004094: mov eax, dword ptr [edx + 0x73c] */ 2535 esi = POP32_VAL(esp); /* 0x2000409A: pop esi */ 2536 MEM32(eax + 0x14) = ebx; /* 0x2000409B: mov dword ptr [eax + 0x14], ebx */ 2537 ebx = POP32_VAL(esp); /* 0x2000409E: pop ebx */ 2538 L_2000409F: 2539 ecx = MEM32(ebp + (-0xC)); /* 0x2000409F: mov ecx, dword ptr [ebp - 0xc] */ 2540 edi = POP32_VAL(esp); /* 0x200040A2: pop edi */ 2541 MEM32(FS_BASE + (0)) = ecx; /* 0x200040A3: mov dword ptr fs:[0], ecx */ 2542 esp = ebp; /* 0x200040AA: mov esp, ebp */ 2543 ebp = POP32_VAL(esp); /* 0x200040AC: pop ebp */ 2544 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200040AD: ret 4 */ 2545 RECOMP_REGS_OUT(); 2546 } 2547 2548 void sub_20004091(void) { 2549 int _fpu_cmp = 0; 2550 uint32_t _cf = 0; 2551 int _df = 1; 2552 uint32_t _flag_k = FK_NONE; 2553 uint32_t _flag_a = 0, _flag_b = 0; 2554 uint32_t _itail_tgt = 0; 2555 RECOMP_REGS_LOCALS 2556 RECOMP_ENTER(0x20004091u); 2557 2558 L_20004091: 2559 edx = MEM32(ebp + (-0x10)); /* 0x20004091: mov edx, dword ptr [ebp - 0x10] */ 2560 eax = MEM32(edx + 0x73C); /* 0x20004094: mov eax, dword ptr [edx + 0x73c] */ 2561 esi = POP32_VAL(esp); /* 0x2000409A: pop esi */ 2562 MEM32(eax + 0x14) = ebx; /* 0x2000409B: mov dword ptr [eax + 0x14], ebx */ 2563 ebx = POP32_VAL(esp); /* 0x2000409E: pop ebx */ 2564 ecx = MEM32(ebp + (-0xC)); /* 0x2000409F: mov ecx, dword ptr [ebp - 0xc] */ 2565 edi = POP32_VAL(esp); /* 0x200040A2: pop edi */ 2566 MEM32(FS_BASE + (0)) = ecx; /* 0x200040A3: mov dword ptr fs:[0], ecx */ 2567 esp = ebp; /* 0x200040AA: mov esp, ebp */ 2568 ebp = POP32_VAL(esp); /* 0x200040AC: pop ebp */ 2569 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200040AD: ret 4 */ 2570 RECOMP_REGS_OUT(); 2571 } 2572 2573 void sub_200040B0(void) { 2574 int _fpu_cmp = 0; 2575 uint32_t _cf = 0; 2576 int _df = 1; 2577 uint32_t _flag_k = FK_NONE; 2578 uint32_t _flag_a = 0, _flag_b = 0; 2579 uint32_t _itail_tgt = 0; 2580 RECOMP_REGS_LOCALS 2581 RECOMP_ENTER(0x200040B0u); 2582 2583 L_200040B0: 2584 PUSH32(esp, ebp); /* 0x200040B0: push ebp */ 2585 ebp = esp; /* 0x200040B1: mov ebp, esp */ 2586 eax = MEM32(ecx + 0x73C); /* 0x200040B3: mov eax, dword ptr [ecx + 0x73c] */ 2587 /* test eax, eax */ /* 0x200040B9: test eax, eax */ 2588 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2589 _cf = 0; 2590 _flag_k = FK_TEST; 2591 if (TEST_Z(_flag_a, _flag_b)) goto L_200040CD; /* 0x200040BB: je 0x200040cd */ 2592 L_200040BD: 2593 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 2)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 2)); 2594 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 2; /* 0x200040BD: or dword ptr [eax + 8], 2 */ 2595 _cf = 0; 2596 _flag_k = FK_TEST; 2597 eax = MEM32(ecx + 0x73C); /* 0x200040C1: mov eax, dword ptr [ecx + 0x73c] */ 2598 SET_LO8(ecx, MEM8(ebp + 0x8)); /* 0x200040C7: mov cl, byte ptr [ebp + 8] */ 2599 MEM8(eax + 0x18) = (uint8_t)(LO8(ecx)); /* 0x200040CA: mov byte ptr [eax + 0x18], cl */ 2600 L_200040CD: 2601 ebp = POP32_VAL(esp); /* 0x200040CD: pop ebp */ 2602 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200040CE: ret 4 */ 2603 RECOMP_REGS_OUT(); 2604 } 2605 2606 void sub_200040E0(void) { 2607 int _fpu_cmp = 0; 2608 uint32_t _cf = 0; 2609 int _df = 1; 2610 uint32_t _flag_k = FK_NONE; 2611 uint32_t _flag_a = 0, _flag_b = 0; 2612 uint32_t _itail_tgt = 0; 2613 RECOMP_REGS_LOCALS 2614 RECOMP_ENTER(0x200040E0u); 2615 2616 L_200040E0: 2617 PUSH32(esp, ebp); /* 0x200040E0: push ebp */ 2618 ebp = esp; /* 0x200040E1: mov ebp, esp */ 2619 eax = MEM32(ecx + 0x73C); /* 0x200040E3: mov eax, dword ptr [ecx + 0x73c] */ 2620 /* test eax, eax */ /* 0x200040E9: test eax, eax */ 2621 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2622 _cf = 0; 2623 _flag_k = FK_TEST; 2624 if (TEST_Z(_flag_a, _flag_b)) goto L_20004109; /* 0x200040EB: je 0x20004109 */ 2625 L_200040ED: 2626 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 4)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 4)); 2627 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 4; /* 0x200040ED: or dword ptr [eax + 8], 4 */ 2628 _cf = 0; 2629 _flag_k = FK_TEST; 2630 eax = MEM32(ecx + 0x73C); /* 0x200040F1: mov eax, dword ptr [ecx + 0x73c] */ 2631 SET_LO8(edx, MEM8(ebp + 0x8)); /* 0x200040F7: mov dl, byte ptr [ebp + 8] */ 2632 MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x200040FA: mov byte ptr [eax + 0x18], dl */ 2633 eax = MEM32(ecx + 0x73C); /* 0x200040FD: mov eax, dword ptr [ecx + 0x73c] */ 2634 SET_LO8(ecx, MEM8(ebp + 0xC)); /* 0x20004103: mov cl, byte ptr [ebp + 0xc] */ 2635 MEM8(eax + 0x19) = (uint8_t)(LO8(ecx)); /* 0x20004106: mov byte ptr [eax + 0x19], cl */ 2636 L_20004109: 2637 ebp = POP32_VAL(esp); /* 0x20004109: pop ebp */ 2638 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2000410A: ret 8 */ 2639 RECOMP_REGS_OUT(); 2640 } 2641 2642 void sub_20004110(void) { 2643 int _fpu_cmp = 0; 2644 uint32_t _cf = 0; 2645 int _df = 1; 2646 uint32_t _flag_k = FK_NONE; 2647 uint32_t _flag_a = 0, _flag_b = 0; 2648 uint32_t _itail_tgt = 0; 2649 RECOMP_REGS_LOCALS 2650 RECOMP_ENTER(0x20004110u); 2651 2652 L_20004110: 2653 PUSH32(esp, ebp); /* 0x20004110: push ebp */ 2654 ebp = esp; /* 0x20004111: mov ebp, esp */ 2655 eax = MEM32(ecx + 0x73C); /* 0x20004113: mov eax, dword ptr [ecx + 0x73c] */ 2656 /* test eax, eax */ /* 0x20004119: test eax, eax */ 2657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2658 _cf = 0; 2659 _flag_k = FK_TEST; 2660 if (TEST_Z(_flag_a, _flag_b)) goto L_20004145; /* 0x2000411B: je 0x20004145 */ 2661 L_2000411D: 2662 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 8)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 8)); 2663 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 8; /* 0x2000411D: or dword ptr [eax + 8], 8 */ 2664 _cf = 0; 2665 _flag_k = FK_TEST; 2666 eax = MEM32(ecx + 0x73C); /* 0x20004121: mov eax, dword ptr [ecx + 0x73c] */ 2667 SET_LO8(edx, MEM8(ebp + 0x8)); /* 0x20004127: mov dl, byte ptr [ebp + 8] */ 2668 MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x2000412A: mov byte ptr [eax + 0x18], dl */ 2669 eax = MEM32(ecx + 0x73C); /* 0x2000412D: mov eax, dword ptr [ecx + 0x73c] */ 2670 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x20004133: mov dl, byte ptr [ebp + 0xc] */ 2671 MEM8(eax + 0x19) = (uint8_t)(LO8(edx)); /* 0x20004136: mov byte ptr [eax + 0x19], dl */ 2672 eax = MEM32(ecx + 0x73C); /* 0x20004139: mov eax, dword ptr [ecx + 0x73c] */ 2673 SET_LO8(ecx, MEM8(ebp + 0x10)); /* 0x2000413F: mov cl, byte ptr [ebp + 0x10] */ 2674 MEM8(eax + 0x1A) = (uint8_t)(LO8(ecx)); /* 0x20004142: mov byte ptr [eax + 0x1a], cl */ 2675 L_20004145: 2676 ebp = POP32_VAL(esp); /* 0x20004145: pop ebp */ 2677 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20004146: ret 0xc */ 2678 RECOMP_REGS_OUT(); 2679 } 2680 2681 void sub_20004150(void) { 2682 int _fpu_cmp = 0; 2683 uint32_t _cf = 0; 2684 int _df = 1; 2685 uint32_t _flag_k = FK_NONE; 2686 uint32_t _flag_a = 0, _flag_b = 0; 2687 uint32_t _itail_tgt = 0; 2688 RECOMP_REGS_LOCALS 2689 RECOMP_ENTER(0x20004150u); 2690 2691 L_20004150: 2692 PUSH32(esp, ebp); /* 0x20004150: push ebp */ 2693 ebp = esp; /* 0x20004151: mov ebp, esp */ 2694 eax = MEM32(ecx + 0x73C); /* 0x20004153: mov eax, dword ptr [ecx + 0x73c] */ 2695 /* test eax, eax */ /* 0x20004159: test eax, eax */ 2696 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2697 _cf = 0; 2698 _flag_k = FK_TEST; 2699 if (TEST_Z(_flag_a, _flag_b)) goto L_20004191; /* 0x2000415B: je 0x20004191 */ 2700 L_2000415D: 2701 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x10u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x10u)); 2702 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x10u; /* 0x2000415D: or dword ptr [eax + 8], 0x10 */ 2703 _cf = 0; 2704 _flag_k = FK_TEST; 2705 eax = MEM32(ecx + 0x73C); /* 0x20004161: mov eax, dword ptr [ecx + 0x73c] */ 2706 SET_LO8(edx, MEM8(ebp + 0x8)); /* 0x20004167: mov dl, byte ptr [ebp + 8] */ 2707 MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x2000416A: mov byte ptr [eax + 0x18], dl */ 2708 eax = MEM32(ecx + 0x73C); /* 0x2000416D: mov eax, dword ptr [ecx + 0x73c] */ 2709 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x20004173: mov dl, byte ptr [ebp + 0xc] */ 2710 MEM8(eax + 0x19) = (uint8_t)(LO8(edx)); /* 0x20004176: mov byte ptr [eax + 0x19], dl */ 2711 eax = MEM32(ecx + 0x73C); /* 0x20004179: mov eax, dword ptr [ecx + 0x73c] */ 2712 SET_LO8(edx, MEM8(ebp + 0x10)); /* 0x2000417F: mov dl, byte ptr [ebp + 0x10] */ 2713 MEM8(eax + 0x1A) = (uint8_t)(LO8(edx)); /* 0x20004182: mov byte ptr [eax + 0x1a], dl */ 2714 eax = MEM32(ecx + 0x73C); /* 0x20004185: mov eax, dword ptr [ecx + 0x73c] */ 2715 SET_LO8(ecx, MEM8(ebp + 0x14)); /* 0x2000418B: mov cl, byte ptr [ebp + 0x14] */ 2716 MEM8(eax + 0x1B) = (uint8_t)(LO8(ecx)); /* 0x2000418E: mov byte ptr [eax + 0x1b], cl */ 2717 L_20004191: 2718 ebp = POP32_VAL(esp); /* 0x20004191: pop ebp */ 2719 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20004192: ret 0x10 */ 2720 RECOMP_REGS_OUT(); 2721 } 2722 2723 void sub_200041A0(void) { 2724 int _fpu_cmp = 0; 2725 uint32_t _cf = 0; 2726 int _df = 1; 2727 uint32_t _flag_k = FK_NONE; 2728 uint32_t _flag_a = 0, _flag_b = 0; 2729 uint32_t _itail_tgt = 0; 2730 RECOMP_REGS_LOCALS 2731 RECOMP_ENTER(0x200041A0u); 2732 2733 L_200041A0: 2734 PUSH32(esp, ebp); /* 0x200041A0: push ebp */ 2735 ebp = esp; /* 0x200041A1: mov ebp, esp */ 2736 eax = MEM32(ecx + 0x73C); /* 0x200041A3: mov eax, dword ptr [ecx + 0x73c] */ 2737 /* test eax, eax */ /* 0x200041A9: test eax, eax */ 2738 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2739 _cf = 0; 2740 _flag_k = FK_TEST; 2741 if (TEST_Z(_flag_a, _flag_b)) goto L_200041BD; /* 0x200041AB: je 0x200041bd */ 2742 L_200041AD: 2743 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x20u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x20u)); 2744 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x20u; /* 0x200041AD: or dword ptr [eax + 8], 0x20 */ 2745 _cf = 0; 2746 _flag_k = FK_TEST; 2747 eax = MEM32(ecx + 0x73C); /* 0x200041B1: mov eax, dword ptr [ecx + 0x73c] */ 2748 ecx = MEM32(ebp + 0x8); /* 0x200041B7: mov ecx, dword ptr [ebp + 8] */ 2749 MEM32(eax + 0x1C) = ecx; /* 0x200041BA: mov dword ptr [eax + 0x1c], ecx */ 2750 L_200041BD: 2751 ebp = POP32_VAL(esp); /* 0x200041BD: pop ebp */ 2752 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200041BE: ret 4 */ 2753 RECOMP_REGS_OUT(); 2754 } 2755 2756 void sub_200041D0(void) { 2757 int _fpu_cmp = 0; 2758 uint32_t _cf = 0; 2759 int _df = 1; 2760 uint32_t _flag_k = FK_NONE; 2761 uint32_t _flag_a = 0, _flag_b = 0; 2762 uint32_t _itail_tgt = 0; 2763 RECOMP_REGS_LOCALS 2764 RECOMP_ENTER(0x200041D0u); 2765 2766 L_200041D0: 2767 PUSH32(esp, ebp); /* 0x200041D0: push ebp */ 2768 ebp = esp; /* 0x200041D1: mov ebp, esp */ 2769 eax = MEM32(ecx + 0x73C); /* 0x200041D3: mov eax, dword ptr [ecx + 0x73c] */ 2770 /* test eax, eax */ /* 0x200041D9: test eax, eax */ 2771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2772 _cf = 0; 2773 _flag_k = FK_TEST; 2774 if (TEST_Z(_flag_a, _flag_b)) goto L_200041F9; /* 0x200041DB: je 0x200041f9 */ 2775 L_200041DD: 2776 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x40u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x40u)); 2777 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x40u; /* 0x200041DD: or dword ptr [eax + 8], 0x40 */ 2778 _cf = 0; 2779 _flag_k = FK_TEST; 2780 eax = MEM32(ecx + 0x73C); /* 0x200041E1: mov eax, dword ptr [ecx + 0x73c] */ 2781 edx = MEM32(ebp + 0x8); /* 0x200041E7: mov edx, dword ptr [ebp + 8] */ 2782 MEM32(eax + 0x1C) = edx; /* 0x200041EA: mov dword ptr [eax + 0x1c], edx */ 2783 eax = MEM32(ecx + 0x73C); /* 0x200041ED: mov eax, dword ptr [ecx + 0x73c] */ 2784 ecx = MEM32(ebp + 0xC); /* 0x200041F3: mov ecx, dword ptr [ebp + 0xc] */ 2785 MEM32(eax + 0x20) = ecx; /* 0x200041F6: mov dword ptr [eax + 0x20], ecx */ 2786 L_200041F9: 2787 ebp = POP32_VAL(esp); /* 0x200041F9: pop ebp */ 2788 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200041FA: ret 8 */ 2789 RECOMP_REGS_OUT(); 2790 } 2791 2792 void sub_20004200(void) { 2793 int _fpu_cmp = 0; 2794 uint32_t _cf = 0; 2795 int _df = 1; 2796 uint32_t _flag_k = FK_NONE; 2797 uint32_t _flag_a = 0, _flag_b = 0; 2798 uint32_t _itail_tgt = 0; 2799 RECOMP_REGS_LOCALS 2800 RECOMP_ENTER(0x20004200u); 2801 2802 L_20004200: 2803 PUSH32(esp, ebp); /* 0x20004200: push ebp */ 2804 ebp = esp; /* 0x20004201: mov ebp, esp */ 2805 eax = MEM32(ecx + 0x73C); /* 0x20004203: mov eax, dword ptr [ecx + 0x73c] */ 2806 /* test eax, eax */ /* 0x20004209: test eax, eax */ 2807 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2808 _cf = 0; 2809 _flag_k = FK_TEST; 2810 if (TEST_Z(_flag_a, _flag_b)) goto L_20004238; /* 0x2000420B: je 0x20004238 */ 2811 L_2000420D: 2812 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x80u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x80u)); 2813 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x80u; /* 0x2000420D: or dword ptr [eax + 8], 0x80 */ 2814 _cf = 0; 2815 _flag_k = FK_TEST; 2816 eax = MEM32(ecx + 0x73C); /* 0x20004214: mov eax, dword ptr [ecx + 0x73c] */ 2817 edx = MEM32(ebp + 0x8); /* 0x2000421A: mov edx, dword ptr [ebp + 8] */ 2818 MEM32(eax + 0x1C) = edx; /* 0x2000421D: mov dword ptr [eax + 0x1c], edx */ 2819 eax = MEM32(ecx + 0x73C); /* 0x20004220: mov eax, dword ptr [ecx + 0x73c] */ 2820 edx = MEM32(ebp + 0xC); /* 0x20004226: mov edx, dword ptr [ebp + 0xc] */ 2821 MEM32(eax + 0x20) = edx; /* 0x20004229: mov dword ptr [eax + 0x20], edx */ 2822 eax = MEM32(ecx + 0x73C); /* 0x2000422C: mov eax, dword ptr [ecx + 0x73c] */ 2823 ecx = MEM32(ebp + 0x10); /* 0x20004232: mov ecx, dword ptr [ebp + 0x10] */ 2824 MEM32(eax + 0x24) = ecx; /* 0x20004235: mov dword ptr [eax + 0x24], ecx */ 2825 L_20004238: 2826 ebp = POP32_VAL(esp); /* 0x20004238: pop ebp */ 2827 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20004239: ret 0xc */ 2828 RECOMP_REGS_OUT(); 2829 } 2830 2831 void sub_20004240(void) { 2832 int _fpu_cmp = 0; 2833 uint32_t _cf = 0; 2834 int _df = 1; 2835 uint32_t _flag_k = FK_NONE; 2836 uint32_t _flag_a = 0, _flag_b = 0; 2837 uint32_t _itail_tgt = 0; 2838 RECOMP_REGS_LOCALS 2839 RECOMP_ENTER(0x20004240u); 2840 2841 L_20004240: 2842 PUSH32(esp, ebp); /* 0x20004240: push ebp */ 2843 ebp = esp; /* 0x20004241: mov ebp, esp */ 2844 eax = MEM32(ecx + 0x73C); /* 0x20004243: mov eax, dword ptr [ecx + 0x73c] */ 2845 /* test eax, eax */ /* 0x20004249: test eax, eax */ 2846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2847 _cf = 0; 2848 _flag_k = FK_TEST; 2849 if (TEST_Z(_flag_a, _flag_b)) goto L_20004284; /* 0x2000424B: je 0x20004284 */ 2850 L_2000424D: 2851 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x100u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x100u)); 2852 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x100u; /* 0x2000424D: or dword ptr [eax + 8], 0x100 */ 2853 _cf = 0; 2854 _flag_k = FK_TEST; 2855 eax = MEM32(ecx + 0x73C); /* 0x20004254: mov eax, dword ptr [ecx + 0x73c] */ 2856 edx = MEM32(ebp + 0x8); /* 0x2000425A: mov edx, dword ptr [ebp + 8] */ 2857 MEM32(eax + 0x1C) = edx; /* 0x2000425D: mov dword ptr [eax + 0x1c], edx */ 2858 eax = MEM32(ecx + 0x73C); /* 0x20004260: mov eax, dword ptr [ecx + 0x73c] */ 2859 edx = MEM32(ebp + 0xC); /* 0x20004266: mov edx, dword ptr [ebp + 0xc] */ 2860 MEM32(eax + 0x20) = edx; /* 0x20004269: mov dword ptr [eax + 0x20], edx */ 2861 eax = MEM32(ecx + 0x73C); /* 0x2000426C: mov eax, dword ptr [ecx + 0x73c] */ 2862 edx = MEM32(ebp + 0x10); /* 0x20004272: mov edx, dword ptr [ebp + 0x10] */ 2863 MEM32(eax + 0x24) = edx; /* 0x20004275: mov dword ptr [eax + 0x24], edx */ 2864 eax = MEM32(ecx + 0x73C); /* 0x20004278: mov eax, dword ptr [ecx + 0x73c] */ 2865 ecx = MEM32(ebp + 0x14); /* 0x2000427E: mov ecx, dword ptr [ebp + 0x14] */ 2866 MEM32(eax + 0x28) = ecx; /* 0x20004281: mov dword ptr [eax + 0x28], ecx */ 2867 L_20004284: 2868 ebp = POP32_VAL(esp); /* 0x20004284: pop ebp */ 2869 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20004285: ret 0x10 */ 2870 RECOMP_REGS_OUT(); 2871 } 2872 2873 void sub_20004290(void) { 2874 int _fpu_cmp = 0; 2875 uint32_t _cf = 0; 2876 int _df = 1; 2877 uint32_t _flag_k = FK_NONE; 2878 uint32_t _flag_a = 0, _flag_b = 0; 2879 uint32_t _itail_tgt = 0; 2880 RECOMP_REGS_LOCALS 2881 RECOMP_ENTER(0x20004290u); 2882 2883 L_20004290: 2884 PUSH32(esp, ebp); /* 0x20004290: push ebp */ 2885 ebp = esp; /* 0x20004291: mov ebp, esp */ 2886 eax = MEM32(ecx + 0x73C); /* 0x20004293: mov eax, dword ptr [ecx + 0x73c] */ 2887 /* test eax, eax */ /* 0x20004299: test eax, eax */ 2888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2889 _cf = 0; 2890 _flag_k = FK_TEST; 2891 if (TEST_Z(_flag_a, _flag_b)) goto L_200042B0; /* 0x2000429B: je 0x200042b0 */ 2892 L_2000429D: 2893 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x200u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x200u)); 2894 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x200u; /* 0x2000429D: or dword ptr [eax + 8], 0x200 */ 2895 _cf = 0; 2896 _flag_k = FK_TEST; 2897 eax = MEM32(ecx + 0x73C); /* 0x200042A4: mov eax, dword ptr [ecx + 0x73c] */ 2898 ecx = MEM32(ebp + 0x8); /* 0x200042AA: mov ecx, dword ptr [ebp + 8] */ 2899 MEM32(eax + 0x2C) = ecx; /* 0x200042AD: mov dword ptr [eax + 0x2c], ecx */ 2900 L_200042B0: 2901 ebp = POP32_VAL(esp); /* 0x200042B0: pop ebp */ 2902 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200042B1: ret 4 */ 2903 RECOMP_REGS_OUT(); 2904 } 2905 2906 void sub_200042C0(void) { 2907 int _fpu_cmp = 0; 2908 uint32_t _cf = 0; 2909 int _df = 1; 2910 uint32_t _flag_k = FK_NONE; 2911 uint32_t _flag_a = 0, _flag_b = 0; 2912 uint32_t _itail_tgt = 0; 2913 RECOMP_REGS_LOCALS 2914 RECOMP_ENTER(0x200042C0u); 2915 2916 L_200042C0: 2917 PUSH32(esp, ebp); /* 0x200042C0: push ebp */ 2918 ebp = esp; /* 0x200042C1: mov ebp, esp */ 2919 eax = MEM32(ecx + 0x73C); /* 0x200042C3: mov eax, dword ptr [ecx + 0x73c] */ 2920 /* test eax, eax */ /* 0x200042C9: test eax, eax */ 2921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2922 _cf = 0; 2923 _flag_k = FK_TEST; 2924 if (TEST_Z(_flag_a, _flag_b)) goto L_200042EC; /* 0x200042CB: je 0x200042ec */ 2925 L_200042CD: 2926 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x400u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x400u)); 2927 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x400u; /* 0x200042CD: or dword ptr [eax + 8], 0x400 */ 2928 _cf = 0; 2929 _flag_k = FK_TEST; 2930 eax = MEM32(ecx + 0x73C); /* 0x200042D4: mov eax, dword ptr [ecx + 0x73c] */ 2931 edx = MEM32(ebp + 0x8); /* 0x200042DA: mov edx, dword ptr [ebp + 8] */ 2932 MEM32(eax + 0x2C) = edx; /* 0x200042DD: mov dword ptr [eax + 0x2c], edx */ 2933 eax = MEM32(ecx + 0x73C); /* 0x200042E0: mov eax, dword ptr [ecx + 0x73c] */ 2934 ecx = MEM32(ebp + 0xC); /* 0x200042E6: mov ecx, dword ptr [ebp + 0xc] */ 2935 MEM32(eax + 0x30) = ecx; /* 0x200042E9: mov dword ptr [eax + 0x30], ecx */ 2936 L_200042EC: 2937 ebp = POP32_VAL(esp); /* 0x200042EC: pop ebp */ 2938 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x200042ED: ret 8 */ 2939 RECOMP_REGS_OUT(); 2940 } 2941 2942 void sub_200042F0(void) { 2943 int _fpu_cmp = 0; 2944 uint32_t _cf = 0; 2945 int _df = 1; 2946 uint32_t _flag_k = FK_NONE; 2947 uint32_t _flag_a = 0, _flag_b = 0; 2948 uint32_t _itail_tgt = 0; 2949 RECOMP_REGS_LOCALS 2950 RECOMP_ENTER(0x200042F0u); 2951 2952 L_200042F0: 2953 PUSH32(esp, ebp); /* 0x200042F0: push ebp */ 2954 ebp = esp; /* 0x200042F1: mov ebp, esp */ 2955 eax = MEM32(ecx + 0x73C); /* 0x200042F3: mov eax, dword ptr [ecx + 0x73c] */ 2956 /* test eax, eax */ /* 0x200042F9: test eax, eax */ 2957 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2958 _cf = 0; 2959 _flag_k = FK_TEST; 2960 if (TEST_Z(_flag_a, _flag_b)) goto L_20004328; /* 0x200042FB: je 0x20004328 */ 2961 L_200042FD: 2962 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x800u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x800u)); 2963 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x800u; /* 0x200042FD: or dword ptr [eax + 8], 0x800 */ 2964 _cf = 0; 2965 _flag_k = FK_TEST; 2966 eax = MEM32(ecx + 0x73C); /* 0x20004304: mov eax, dword ptr [ecx + 0x73c] */ 2967 edx = MEM32(ebp + 0x8); /* 0x2000430A: mov edx, dword ptr [ebp + 8] */ 2968 MEM32(eax + 0x2C) = edx; /* 0x2000430D: mov dword ptr [eax + 0x2c], edx */ 2969 eax = MEM32(ecx + 0x73C); /* 0x20004310: mov eax, dword ptr [ecx + 0x73c] */ 2970 edx = MEM32(ebp + 0xC); /* 0x20004316: mov edx, dword ptr [ebp + 0xc] */ 2971 MEM32(eax + 0x30) = edx; /* 0x20004319: mov dword ptr [eax + 0x30], edx */ 2972 eax = MEM32(ecx + 0x73C); /* 0x2000431C: mov eax, dword ptr [ecx + 0x73c] */ 2973 ecx = MEM32(ebp + 0x10); /* 0x20004322: mov ecx, dword ptr [ebp + 0x10] */ 2974 MEM32(eax + 0x34) = ecx; /* 0x20004325: mov dword ptr [eax + 0x34], ecx */ 2975 L_20004328: 2976 ebp = POP32_VAL(esp); /* 0x20004328: pop ebp */ 2977 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x20004329: ret 0xc */ 2978 RECOMP_REGS_OUT(); 2979 } 2980 2981 void sub_20004330(void) { 2982 int _fpu_cmp = 0; 2983 uint32_t _cf = 0; 2984 int _df = 1; 2985 uint32_t _flag_k = FK_NONE; 2986 uint32_t _flag_a = 0, _flag_b = 0; 2987 uint32_t _itail_tgt = 0; 2988 RECOMP_REGS_LOCALS 2989 RECOMP_ENTER(0x20004330u); 2990 2991 L_20004330: 2992 PUSH32(esp, ebp); /* 0x20004330: push ebp */ 2993 ebp = esp; /* 0x20004331: mov ebp, esp */ 2994 eax = MEM32(ecx + 0x73C); /* 0x20004333: mov eax, dword ptr [ecx + 0x73c] */ 2995 /* test eax, eax */ /* 0x20004339: test eax, eax */ 2996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2997 _cf = 0; 2998 _flag_k = FK_TEST; 2999 if (TEST_Z(_flag_a, _flag_b)) goto L_20004374; /* 0x2000433B: je 0x20004374 */ 3000 L_2000433D: 3001 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x1000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x1000u)); 3002 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x1000u; /* 0x2000433D: or dword ptr [eax + 8], 0x1000 */ 3003 _cf = 0; 3004 _flag_k = FK_TEST; 3005 eax = MEM32(ecx + 0x73C); /* 0x20004344: mov eax, dword ptr [ecx + 0x73c] */ 3006 edx = MEM32(ebp + 0x8); /* 0x2000434A: mov edx, dword ptr [ebp + 8] */ 3007 MEM32(eax + 0x2C) = edx; /* 0x2000434D: mov dword ptr [eax + 0x2c], edx */ 3008 eax = MEM32(ecx + 0x73C); /* 0x20004350: mov eax, dword ptr [ecx + 0x73c] */ 3009 edx = MEM32(ebp + 0xC); /* 0x20004356: mov edx, dword ptr [ebp + 0xc] */ 3010 MEM32(eax + 0x30) = edx; /* 0x20004359: mov dword ptr [eax + 0x30], edx */ 3011 eax = MEM32(ecx + 0x73C); /* 0x2000435C: mov eax, dword ptr [ecx + 0x73c] */ 3012 edx = MEM32(ebp + 0x10); /* 0x20004362: mov edx, dword ptr [ebp + 0x10] */ 3013 MEM32(eax + 0x34) = edx; /* 0x20004365: mov dword ptr [eax + 0x34], edx */ 3014 eax = MEM32(ecx + 0x73C); /* 0x20004368: mov eax, dword ptr [ecx + 0x73c] */ 3015 ecx = MEM32(ebp + 0x14); /* 0x2000436E: mov ecx, dword ptr [ebp + 0x14] */ 3016 MEM32(eax + 0x38) = ecx; /* 0x20004371: mov dword ptr [eax + 0x38], ecx */ 3017 L_20004374: 3018 ebp = POP32_VAL(esp); /* 0x20004374: pop ebp */ 3019 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20004375: ret 0x10 */ 3020 RECOMP_REGS_OUT(); 3021 } 3022 3023 void sub_20004380(void) { 3024 int _fpu_cmp = 0; 3025 uint32_t _cf = 0; 3026 int _df = 1; 3027 uint32_t _flag_k = FK_NONE; 3028 uint32_t _flag_a = 0, _flag_b = 0; 3029 uint32_t _itail_tgt = 0; 3030 RECOMP_REGS_LOCALS 3031 RECOMP_ENTER(0x20004380u); 3032 3033 L_20004380: 3034 PUSH32(esp, ebp); /* 0x20004380: push ebp */ 3035 ebp = esp; /* 0x20004381: mov ebp, esp */ 3036 eax = MEM32(ecx + 0x73C); /* 0x20004383: mov eax, dword ptr [ecx + 0x73c] */ 3037 /* test eax, eax */ /* 0x20004389: test eax, eax */ 3038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3039 _cf = 0; 3040 _flag_k = FK_TEST; 3041 if (TEST_Z(_flag_a, _flag_b)) goto L_200043B0; /* 0x2000438B: je 0x200043b0 */ 3042 L_2000438D: 3043 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x2000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x2000u)); 3044 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x2000u; /* 0x2000438D: or dword ptr [eax + 8], 0x2000 */ 3045 _cf = 0; 3046 _flag_k = FK_TEST; 3047 eax = MEM32(ecx + 0x73C); /* 0x20004394: mov eax, dword ptr [ecx + 0x73c] */ 3048 ecx = MEM32(ebp + 0x8); /* 0x2000439A: mov ecx, dword ptr [ebp + 8] */ 3049 edx = MEM32(ecx); /* 0x2000439D: mov edx, dword ptr [ecx] */ 3050 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Cu); 3051 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3052 eax = eax + 0x3Cu; /* 0x2000439F: add eax, 0x3c */ 3053 _flag_k = FK_ADD; 3054 MEM32(eax) = edx; /* 0x200043A2: mov dword ptr [eax], edx */ 3055 edx = MEM32(ecx + 0x4); /* 0x200043A4: mov edx, dword ptr [ecx + 4] */ 3056 MEM32(eax + 0x4) = edx; /* 0x200043A7: mov dword ptr [eax + 4], edx */ 3057 ecx = MEM32(ecx + 0x8); /* 0x200043AA: mov ecx, dword ptr [ecx + 8] */ 3058 MEM32(eax + 0x8) = ecx; /* 0x200043AD: mov dword ptr [eax + 8], ecx */ 3059 L_200043B0: 3060 ebp = POP32_VAL(esp); /* 0x200043B0: pop ebp */ 3061 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200043B1: ret 4 */ 3062 RECOMP_REGS_OUT(); 3063 } 3064 3065 void sub_200043C0(void) { 3066 int _fpu_cmp = 0; 3067 uint32_t _cf = 0; 3068 int _df = 1; 3069 uint32_t _flag_k = FK_NONE; 3070 uint32_t _flag_a = 0, _flag_b = 0; 3071 uint32_t _itail_tgt = 0; 3072 RECOMP_REGS_LOCALS 3073 RECOMP_ENTER(0x200043C0u); 3074 3075 L_200043C0: 3076 PUSH32(esp, ebp); /* 0x200043C0: push ebp */ 3077 ebp = esp; /* 0x200043C1: mov ebp, esp */ 3078 eax = MEM32(ecx + 0x73C); /* 0x200043C3: mov eax, dword ptr [ecx + 0x73c] */ 3079 /* test eax, eax */ /* 0x200043C9: test eax, eax */ 3080 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3081 _cf = 0; 3082 _flag_k = FK_TEST; 3083 if (TEST_Z(_flag_a, _flag_b)) goto L_2000440E; /* 0x200043CB: je 0x2000440e */ 3084 L_200043CD: 3085 edx = MEM32(ebp + 0x8); /* 0x200043CD: mov edx, dword ptr [ebp + 8] */ 3086 PUSH32(esp, esi); /* 0x200043D0: push esi */ 3087 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x4000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x4000u)); 3088 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x4000u; /* 0x200043D1: or dword ptr [eax + 8], 0x4000 */ 3089 _cf = 0; 3090 _flag_k = FK_TEST; 3091 eax = MEM32(ecx + 0x73C); /* 0x200043D8: mov eax, dword ptr [ecx + 0x73c] */ 3092 esi = MEM32(edx); /* 0x200043DE: mov esi, dword ptr [edx] */ 3093 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Cu); 3094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3095 eax = eax + 0x3Cu; /* 0x200043E0: add eax, 0x3c */ 3096 _flag_k = FK_ADD; 3097 MEM32(eax) = esi; /* 0x200043E3: mov dword ptr [eax], esi */ 3098 esi = MEM32(edx + 0x4); /* 0x200043E5: mov esi, dword ptr [edx + 4] */ 3099 MEM32(eax + 0x4) = esi; /* 0x200043E8: mov dword ptr [eax + 4], esi */ 3100 edx = MEM32(edx + 0x8); /* 0x200043EB: mov edx, dword ptr [edx + 8] */ 3101 MEM32(eax + 0x8) = edx; /* 0x200043EE: mov dword ptr [eax + 8], edx */ 3102 eax = MEM32(ecx + 0x73C); /* 0x200043F1: mov eax, dword ptr [ecx + 0x73c] */ 3103 ecx = MEM32(ebp + 0xC); /* 0x200043F7: mov ecx, dword ptr [ebp + 0xc] */ 3104 edx = MEM32(ecx); /* 0x200043FA: mov edx, dword ptr [ecx] */ 3105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x48u); 3106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3107 eax = eax + 0x48u; /* 0x200043FC: add eax, 0x48 */ 3108 _flag_k = FK_ADD; 3109 MEM32(eax) = edx; /* 0x200043FF: mov dword ptr [eax], edx */ 3110 edx = MEM32(ecx + 0x4); /* 0x20004401: mov edx, dword ptr [ecx + 4] */ 3111 MEM32(eax + 0x4) = edx; /* 0x20004404: mov dword ptr [eax + 4], edx */ 3112 ecx = MEM32(ecx + 0x8); /* 0x20004407: mov ecx, dword ptr [ecx + 8] */ 3113 MEM32(eax + 0x8) = ecx; /* 0x2000440A: mov dword ptr [eax + 8], ecx */ 3114 esi = POP32_VAL(esp); /* 0x2000440D: pop esi */ 3115 L_2000440E: 3116 ebp = POP32_VAL(esp); /* 0x2000440E: pop ebp */ 3117 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2000440F: ret 8 */ 3118 RECOMP_REGS_OUT(); 3119 } 3120 3121 void sub_20004420(void) { 3122 int _fpu_cmp = 0; 3123 uint32_t _cf = 0; 3124 int _df = 1; 3125 uint32_t _flag_k = FK_NONE; 3126 uint32_t _flag_a = 0, _flag_b = 0; 3127 uint32_t _itail_tgt = 0; 3128 RECOMP_REGS_LOCALS 3129 RECOMP_ENTER(0x20004420u); 3130 3131 L_20004420: 3132 PUSH32(esp, ebp); /* 0x20004420: push ebp */ 3133 ebp = esp; /* 0x20004421: mov ebp, esp */ 3134 eax = MEM32(ecx + 0x73C); /* 0x20004423: mov eax, dword ptr [ecx + 0x73c] */ 3135 /* test eax, eax */ /* 0x20004429: test eax, eax */ 3136 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3137 _cf = 0; 3138 _flag_k = FK_TEST; 3139 if (TEST_Z(_flag_a, _flag_b)) goto L_2000448A; /* 0x2000442B: je 0x2000448a */ 3140 L_2000442D: 3141 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x8000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x8000u)); 3142 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x8000u; /* 0x2000442D: or dword ptr [eax + 8], 0x8000 */ 3143 _cf = 0; 3144 _flag_k = FK_TEST; 3145 eax = MEM32(ecx + 0x73C); /* 0x20004434: mov eax, dword ptr [ecx + 0x73c] */ 3146 edx = MEM32(ebp + 0x8); /* 0x2000443A: mov edx, dword ptr [ebp + 8] */ 3147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Cu); 3148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3149 eax = eax + 0x3Cu; /* 0x2000443D: add eax, 0x3c */ 3150 _flag_k = FK_ADD; 3151 PUSH32(esp, esi); /* 0x20004440: push esi */ 3152 esi = MEM32(edx); /* 0x20004441: mov esi, dword ptr [edx] */ 3153 MEM32(eax) = esi; /* 0x20004443: mov dword ptr [eax], esi */ 3154 esi = MEM32(edx + 0x4); /* 0x20004445: mov esi, dword ptr [edx + 4] */ 3155 MEM32(eax + 0x4) = esi; /* 0x20004448: mov dword ptr [eax + 4], esi */ 3156 edx = MEM32(edx + 0x8); /* 0x2000444B: mov edx, dword ptr [edx + 8] */ 3157 MEM32(eax + 0x8) = edx; /* 0x2000444E: mov dword ptr [eax + 8], edx */ 3158 eax = MEM32(ecx + 0x73C); /* 0x20004451: mov eax, dword ptr [ecx + 0x73c] */ 3159 edx = MEM32(ebp + 0xC); /* 0x20004457: mov edx, dword ptr [ebp + 0xc] */ 3160 esi = MEM32(edx); /* 0x2000445A: mov esi, dword ptr [edx] */ 3161 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x48u); 3162 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3163 eax = eax + 0x48u; /* 0x2000445C: add eax, 0x48 */ 3164 _flag_k = FK_ADD; 3165 MEM32(eax) = esi; /* 0x2000445F: mov dword ptr [eax], esi */ 3166 esi = MEM32(edx + 0x4); /* 0x20004461: mov esi, dword ptr [edx + 4] */ 3167 MEM32(eax + 0x4) = esi; /* 0x20004464: mov dword ptr [eax + 4], esi */ 3168 edx = MEM32(edx + 0x8); /* 0x20004467: mov edx, dword ptr [edx + 8] */ 3169 MEM32(eax + 0x8) = edx; /* 0x2000446A: mov dword ptr [eax + 8], edx */ 3170 eax = MEM32(ecx + 0x73C); /* 0x2000446D: mov eax, dword ptr [ecx + 0x73c] */ 3171 ecx = MEM32(ebp + 0x10); /* 0x20004473: mov ecx, dword ptr [ebp + 0x10] */ 3172 edx = MEM32(ecx); /* 0x20004476: mov edx, dword ptr [ecx] */ 3173 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 3174 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3175 eax = eax + 0x54u; /* 0x20004478: add eax, 0x54 */ 3176 _flag_k = FK_ADD; 3177 MEM32(eax) = edx; /* 0x2000447B: mov dword ptr [eax], edx */ 3178 edx = MEM32(ecx + 0x4); /* 0x2000447D: mov edx, dword ptr [ecx + 4] */ 3179 MEM32(eax + 0x4) = edx; /* 0x20004480: mov dword ptr [eax + 4], edx */ 3180 ecx = MEM32(ecx + 0x8); /* 0x20004483: mov ecx, dword ptr [ecx + 8] */ 3181 MEM32(eax + 0x8) = ecx; /* 0x20004486: mov dword ptr [eax + 8], ecx */ 3182 esi = POP32_VAL(esp); /* 0x20004489: pop esi */ 3183 L_2000448A: 3184 ebp = POP32_VAL(esp); /* 0x2000448A: pop ebp */ 3185 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2000448B: ret 0xc */ 3186 RECOMP_REGS_OUT(); 3187 } 3188 3189 void sub_20004490(void) { 3190 int _fpu_cmp = 0; 3191 uint32_t _cf = 0; 3192 int _df = 1; 3193 uint32_t _flag_k = FK_NONE; 3194 uint32_t _flag_a = 0, _flag_b = 0; 3195 uint32_t _itail_tgt = 0; 3196 RECOMP_REGS_LOCALS 3197 RECOMP_ENTER(0x20004490u); 3198 3199 L_20004490: 3200 PUSH32(esp, ebp); /* 0x20004490: push ebp */ 3201 ebp = esp; /* 0x20004491: mov ebp, esp */ 3202 eax = MEM32(ecx + 0x73C); /* 0x20004493: mov eax, dword ptr [ecx + 0x73c] */ 3203 /* test eax, eax */ /* 0x20004499: test eax, eax */ 3204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3205 _cf = 0; 3206 _flag_k = FK_TEST; 3207 if (TEST_Z(_flag_a, _flag_b)) goto L_20004516; /* 0x2000449B: je 0x20004516 */ 3208 L_2000449D: 3209 edx = MEM32(ebp + 0x8); /* 0x2000449D: mov edx, dword ptr [ebp + 8] */ 3210 PUSH32(esp, esi); /* 0x200044A0: push esi */ 3211 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00010000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00010000u)); 3212 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00010000u; /* 0x200044A1: or dword ptr [eax + 8], 0x10000 */ 3213 _cf = 0; 3214 _flag_k = FK_TEST; 3215 esi = MEM32(edx); /* 0x200044A8: mov esi, dword ptr [edx] */ 3216 eax = MEM32(ecx + 0x73C); /* 0x200044AA: mov eax, dword ptr [ecx + 0x73c] */ 3217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3Cu); 3218 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3219 eax = eax + 0x3Cu; /* 0x200044B0: add eax, 0x3c */ 3220 _flag_k = FK_ADD; 3221 MEM32(eax) = esi; /* 0x200044B3: mov dword ptr [eax], esi */ 3222 esi = MEM32(edx + 0x4); /* 0x200044B5: mov esi, dword ptr [edx + 4] */ 3223 MEM32(eax + 0x4) = esi; /* 0x200044B8: mov dword ptr [eax + 4], esi */ 3224 edx = MEM32(edx + 0x8); /* 0x200044BB: mov edx, dword ptr [edx + 8] */ 3225 MEM32(eax + 0x8) = edx; /* 0x200044BE: mov dword ptr [eax + 8], edx */ 3226 eax = MEM32(ecx + 0x73C); /* 0x200044C1: mov eax, dword ptr [ecx + 0x73c] */ 3227 edx = MEM32(ebp + 0xC); /* 0x200044C7: mov edx, dword ptr [ebp + 0xc] */ 3228 esi = MEM32(edx); /* 0x200044CA: mov esi, dword ptr [edx] */ 3229 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x48u); 3230 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3231 eax = eax + 0x48u; /* 0x200044CC: add eax, 0x48 */ 3232 _flag_k = FK_ADD; 3233 MEM32(eax) = esi; /* 0x200044CF: mov dword ptr [eax], esi */ 3234 esi = MEM32(edx + 0x4); /* 0x200044D1: mov esi, dword ptr [edx + 4] */ 3235 MEM32(eax + 0x4) = esi; /* 0x200044D4: mov dword ptr [eax + 4], esi */ 3236 edx = MEM32(edx + 0x8); /* 0x200044D7: mov edx, dword ptr [edx + 8] */ 3237 MEM32(eax + 0x8) = edx; /* 0x200044DA: mov dword ptr [eax + 8], edx */ 3238 eax = MEM32(ecx + 0x73C); /* 0x200044DD: mov eax, dword ptr [ecx + 0x73c] */ 3239 edx = MEM32(ebp + 0x10); /* 0x200044E3: mov edx, dword ptr [ebp + 0x10] */ 3240 esi = MEM32(edx); /* 0x200044E6: mov esi, dword ptr [edx] */ 3241 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 3242 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3243 eax = eax + 0x54u; /* 0x200044E8: add eax, 0x54 */ 3244 _flag_k = FK_ADD; 3245 MEM32(eax) = esi; /* 0x200044EB: mov dword ptr [eax], esi */ 3246 esi = MEM32(edx + 0x4); /* 0x200044ED: mov esi, dword ptr [edx + 4] */ 3247 MEM32(eax + 0x4) = esi; /* 0x200044F0: mov dword ptr [eax + 4], esi */ 3248 edx = MEM32(edx + 0x8); /* 0x200044F3: mov edx, dword ptr [edx + 8] */ 3249 MEM32(eax + 0x8) = edx; /* 0x200044F6: mov dword ptr [eax + 8], edx */ 3250 eax = MEM32(ecx + 0x73C); /* 0x200044F9: mov eax, dword ptr [ecx + 0x73c] */ 3251 ecx = MEM32(ebp + 0x14); /* 0x200044FF: mov ecx, dword ptr [ebp + 0x14] */ 3252 edx = MEM32(ecx); /* 0x20004502: mov edx, dword ptr [ecx] */ 3253 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 3254 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3255 eax = eax + 0x60u; /* 0x20004504: add eax, 0x60 */ 3256 _flag_k = FK_ADD; 3257 MEM32(eax) = edx; /* 0x20004507: mov dword ptr [eax], edx */ 3258 edx = MEM32(ecx + 0x4); /* 0x20004509: mov edx, dword ptr [ecx + 4] */ 3259 MEM32(eax + 0x4) = edx; /* 0x2000450C: mov dword ptr [eax + 4], edx */ 3260 ecx = MEM32(ecx + 0x8); /* 0x2000450F: mov ecx, dword ptr [ecx + 8] */ 3261 MEM32(eax + 0x8) = ecx; /* 0x20004512: mov dword ptr [eax + 8], ecx */ 3262 esi = POP32_VAL(esp); /* 0x20004515: pop esi */ 3263 L_20004516: 3264 ebp = POP32_VAL(esp); /* 0x20004516: pop ebp */ 3265 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20004517: ret 0x10 */ 3266 RECOMP_REGS_OUT(); 3267 } 3268 3269 void sub_20004520(void) { 3270 int _fpu_cmp = 0; 3271 uint32_t _cf = 0; 3272 int _df = 1; 3273 uint32_t _flag_k = FK_NONE; 3274 uint32_t _flag_a = 0, _flag_b = 0; 3275 uint32_t _itail_tgt = 0; 3276 RECOMP_REGS_LOCALS 3277 RECOMP_ENTER(0x20004520u); 3278 3279 L_20004520: 3280 PUSH32(esp, ebp); /* 0x20004520: push ebp */ 3281 ebp = esp; /* 0x20004521: mov ebp, esp */ 3282 eax = MEM32(ecx + 0x73C); /* 0x20004523: mov eax, dword ptr [ecx + 0x73c] */ 3283 /* test eax, eax */ /* 0x20004529: test eax, eax */ 3284 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3285 _cf = 0; 3286 _flag_k = FK_TEST; 3287 if (TEST_Z(_flag_a, _flag_b)) goto L_20004548; /* 0x2000452B: je 0x20004548 */ 3288 L_2000452D: 3289 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00020000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00020000u)); 3290 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00020000u; /* 0x2000452D: or dword ptr [eax + 8], 0x20000 */ 3291 _cf = 0; 3292 _flag_k = FK_TEST; 3293 eax = MEM32(ebp + 0x8); /* 0x20004534: mov eax, dword ptr [ebp + 8] */ 3294 edx = MEM32(eax); /* 0x20004537: mov edx, dword ptr [eax] */ 3295 ecx = MEM32(ecx + 0x73C); /* 0x20004539: mov ecx, dword ptr [ecx + 0x73c] */ 3296 MEM32(ecx + 0x6C) = edx; /* 0x2000453F: mov dword ptr [ecx + 0x6c], edx */ 3297 eax = MEM32(eax + 0x4); /* 0x20004542: mov eax, dword ptr [eax + 4] */ 3298 MEM32(ecx + 0x70) = eax; /* 0x20004545: mov dword ptr [ecx + 0x70], eax */ 3299 L_20004548: 3300 ebp = POP32_VAL(esp); /* 0x20004548: pop ebp */ 3301 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004549: ret 4 */ 3302 RECOMP_REGS_OUT(); 3303 } 3304 3305 void sub_20004550(void) { 3306 int _fpu_cmp = 0; 3307 uint32_t _cf = 0; 3308 int _df = 1; 3309 uint32_t _flag_k = FK_NONE; 3310 uint32_t _flag_a = 0, _flag_b = 0; 3311 uint32_t _itail_tgt = 0; 3312 RECOMP_REGS_LOCALS 3313 RECOMP_ENTER(0x20004550u); 3314 3315 L_20004550: 3316 PUSH32(esp, ebp); /* 0x20004550: push ebp */ 3317 ebp = esp; /* 0x20004551: mov ebp, esp */ 3318 eax = MEM32(ecx + 0x73C); /* 0x20004553: mov eax, dword ptr [ecx + 0x73c] */ 3319 /* test eax, eax */ /* 0x20004559: test eax, eax */ 3320 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3321 _cf = 0; 3322 _flag_k = FK_TEST; 3323 if (TEST_Z(_flag_a, _flag_b)) goto L_2000458E; /* 0x2000455B: je 0x2000458e */ 3324 L_2000455D: 3325 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00040000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00040000u)); 3326 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00040000u; /* 0x2000455D: or dword ptr [eax + 8], 0x40000 */ 3327 _cf = 0; 3328 _flag_k = FK_TEST; 3329 edx = MEM32(ecx + 0x73C); /* 0x20004564: mov edx, dword ptr [ecx + 0x73c] */ 3330 eax = MEM32(ebp + 0x8); /* 0x2000456A: mov eax, dword ptr [ebp + 8] */ 3331 PUSH32(esp, esi); /* 0x2000456D: push esi */ 3332 esi = MEM32(eax); /* 0x2000456E: mov esi, dword ptr [eax] */ 3333 MEM32(edx + 0x6C) = esi; /* 0x20004570: mov dword ptr [edx + 0x6c], esi */ 3334 eax = MEM32(eax + 0x4); /* 0x20004573: mov eax, dword ptr [eax + 4] */ 3335 MEM32(edx + 0x70) = eax; /* 0x20004576: mov dword ptr [edx + 0x70], eax */ 3336 eax = MEM32(ebp + 0xC); /* 0x20004579: mov eax, dword ptr [ebp + 0xc] */ 3337 edx = MEM32(eax); /* 0x2000457C: mov edx, dword ptr [eax] */ 3338 ecx = MEM32(ecx + 0x73C); /* 0x2000457E: mov ecx, dword ptr [ecx + 0x73c] */ 3339 MEM32(ecx + 0x74) = edx; /* 0x20004584: mov dword ptr [ecx + 0x74], edx */ 3340 eax = MEM32(eax + 0x4); /* 0x20004587: mov eax, dword ptr [eax + 4] */ 3341 MEM32(ecx + 0x78) = eax; /* 0x2000458A: mov dword ptr [ecx + 0x78], eax */ 3342 esi = POP32_VAL(esp); /* 0x2000458D: pop esi */ 3343 L_2000458E: 3344 ebp = POP32_VAL(esp); /* 0x2000458E: pop ebp */ 3345 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2000458F: ret 8 */ 3346 RECOMP_REGS_OUT(); 3347 } 3348 3349 void sub_200045A0(void) { 3350 int _fpu_cmp = 0; 3351 uint32_t _cf = 0; 3352 int _df = 1; 3353 uint32_t _flag_k = FK_NONE; 3354 uint32_t _flag_a = 0, _flag_b = 0; 3355 uint32_t _itail_tgt = 0; 3356 RECOMP_REGS_LOCALS 3357 RECOMP_ENTER(0x200045A0u); 3358 3359 L_200045A0: 3360 PUSH32(esp, ebp); /* 0x200045A0: push ebp */ 3361 ebp = esp; /* 0x200045A1: mov ebp, esp */ 3362 eax = MEM32(ecx + 0x73C); /* 0x200045A3: mov eax, dword ptr [ecx + 0x73c] */ 3363 /* test eax, eax */ /* 0x200045A9: test eax, eax */ 3364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3365 _cf = 0; 3366 _flag_k = FK_TEST; 3367 if (TEST_Z(_flag_a, _flag_b)) goto L_200045F5; /* 0x200045AB: je 0x200045f5 */ 3368 L_200045AD: 3369 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00080000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00080000u)); 3370 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00080000u; /* 0x200045AD: or dword ptr [eax + 8], 0x80000 */ 3371 _cf = 0; 3372 _flag_k = FK_TEST; 3373 edx = MEM32(ecx + 0x73C); /* 0x200045B4: mov edx, dword ptr [ecx + 0x73c] */ 3374 eax = MEM32(ebp + 0x8); /* 0x200045BA: mov eax, dword ptr [ebp + 8] */ 3375 PUSH32(esp, esi); /* 0x200045BD: push esi */ 3376 esi = MEM32(eax); /* 0x200045BE: mov esi, dword ptr [eax] */ 3377 MEM32(edx + 0x6C) = esi; /* 0x200045C0: mov dword ptr [edx + 0x6c], esi */ 3378 eax = MEM32(eax + 0x4); /* 0x200045C3: mov eax, dword ptr [eax + 4] */ 3379 MEM32(edx + 0x70) = eax; /* 0x200045C6: mov dword ptr [edx + 0x70], eax */ 3380 edx = MEM32(ecx + 0x73C); /* 0x200045C9: mov edx, dword ptr [ecx + 0x73c] */ 3381 eax = MEM32(ebp + 0xC); /* 0x200045CF: mov eax, dword ptr [ebp + 0xc] */ 3382 esi = MEM32(eax); /* 0x200045D2: mov esi, dword ptr [eax] */ 3383 MEM32(edx + 0x74) = esi; /* 0x200045D4: mov dword ptr [edx + 0x74], esi */ 3384 eax = MEM32(eax + 0x4); /* 0x200045D7: mov eax, dword ptr [eax + 4] */ 3385 MEM32(edx + 0x78) = eax; /* 0x200045DA: mov dword ptr [edx + 0x78], eax */ 3386 eax = MEM32(ebp + 0x10); /* 0x200045DD: mov eax, dword ptr [ebp + 0x10] */ 3387 edx = MEM32(eax); /* 0x200045E0: mov edx, dword ptr [eax] */ 3388 ecx = MEM32(ecx + 0x73C); /* 0x200045E2: mov ecx, dword ptr [ecx + 0x73c] */ 3389 MEM32(ecx + 0x7C) = edx; /* 0x200045E8: mov dword ptr [ecx + 0x7c], edx */ 3390 eax = MEM32(eax + 0x4); /* 0x200045EB: mov eax, dword ptr [eax + 4] */ 3391 MEM32(ecx + 0x80) = eax; /* 0x200045EE: mov dword ptr [ecx + 0x80], eax */ 3392 esi = POP32_VAL(esp); /* 0x200045F4: pop esi */ 3393 L_200045F5: 3394 ebp = POP32_VAL(esp); /* 0x200045F5: pop ebp */ 3395 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x200045F6: ret 0xc */ 3396 RECOMP_REGS_OUT(); 3397 } 3398 3399 void sub_20004600(void) { 3400 int _fpu_cmp = 0; 3401 uint32_t _cf = 0; 3402 int _df = 1; 3403 uint32_t _flag_k = FK_NONE; 3404 uint32_t _flag_a = 0, _flag_b = 0; 3405 uint32_t _itail_tgt = 0; 3406 RECOMP_REGS_LOCALS 3407 RECOMP_ENTER(0x20004600u); 3408 3409 L_20004600: 3410 PUSH32(esp, ebp); /* 0x20004600: push ebp */ 3411 ebp = esp; /* 0x20004601: mov ebp, esp */ 3412 eax = MEM32(ecx + 0x73C); /* 0x20004603: mov eax, dword ptr [ecx + 0x73c] */ 3413 /* test eax, eax */ /* 0x20004609: test eax, eax */ 3414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3415 _cf = 0; 3416 _flag_k = FK_TEST; 3417 if (TEST_Z(_flag_a, _flag_b)) goto L_2000466F; /* 0x2000460B: je 0x2000466f */ 3418 L_2000460D: 3419 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00100000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00100000u)); 3420 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00100000u; /* 0x2000460D: or dword ptr [eax + 8], 0x100000 */ 3421 _cf = 0; 3422 _flag_k = FK_TEST; 3423 edx = MEM32(ecx + 0x73C); /* 0x20004614: mov edx, dword ptr [ecx + 0x73c] */ 3424 eax = MEM32(ebp + 0x8); /* 0x2000461A: mov eax, dword ptr [ebp + 8] */ 3425 PUSH32(esp, esi); /* 0x2000461D: push esi */ 3426 esi = MEM32(eax); /* 0x2000461E: mov esi, dword ptr [eax] */ 3427 MEM32(edx + 0x6C) = esi; /* 0x20004620: mov dword ptr [edx + 0x6c], esi */ 3428 eax = MEM32(eax + 0x4); /* 0x20004623: mov eax, dword ptr [eax + 4] */ 3429 MEM32(edx + 0x70) = eax; /* 0x20004626: mov dword ptr [edx + 0x70], eax */ 3430 edx = MEM32(ecx + 0x73C); /* 0x20004629: mov edx, dword ptr [ecx + 0x73c] */ 3431 eax = MEM32(ebp + 0xC); /* 0x2000462F: mov eax, dword ptr [ebp + 0xc] */ 3432 esi = MEM32(eax); /* 0x20004632: mov esi, dword ptr [eax] */ 3433 MEM32(edx + 0x74) = esi; /* 0x20004634: mov dword ptr [edx + 0x74], esi */ 3434 eax = MEM32(eax + 0x4); /* 0x20004637: mov eax, dword ptr [eax + 4] */ 3435 MEM32(edx + 0x78) = eax; /* 0x2000463A: mov dword ptr [edx + 0x78], eax */ 3436 edx = MEM32(ecx + 0x73C); /* 0x2000463D: mov edx, dword ptr [ecx + 0x73c] */ 3437 eax = MEM32(ebp + 0x10); /* 0x20004643: mov eax, dword ptr [ebp + 0x10] */ 3438 esi = MEM32(eax); /* 0x20004646: mov esi, dword ptr [eax] */ 3439 MEM32(edx + 0x7C) = esi; /* 0x20004648: mov dword ptr [edx + 0x7c], esi */ 3440 eax = MEM32(eax + 0x4); /* 0x2000464B: mov eax, dword ptr [eax + 4] */ 3441 MEM32(edx + 0x80) = eax; /* 0x2000464E: mov dword ptr [edx + 0x80], eax */ 3442 eax = MEM32(ebp + 0x14); /* 0x20004654: mov eax, dword ptr [ebp + 0x14] */ 3443 edx = MEM32(eax); /* 0x20004657: mov edx, dword ptr [eax] */ 3444 ecx = MEM32(ecx + 0x73C); /* 0x20004659: mov ecx, dword ptr [ecx + 0x73c] */ 3445 MEM32(ecx + 0x84) = edx; /* 0x2000465F: mov dword ptr [ecx + 0x84], edx */ 3446 eax = MEM32(eax + 0x4); /* 0x20004665: mov eax, dword ptr [eax + 4] */ 3447 MEM32(ecx + 0x88) = eax; /* 0x20004668: mov dword ptr [ecx + 0x88], eax */ 3448 esi = POP32_VAL(esp); /* 0x2000466E: pop esi */ 3449 L_2000466F: 3450 ebp = POP32_VAL(esp); /* 0x2000466F: pop ebp */ 3451 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20004670: ret 0x10 */ 3452 RECOMP_REGS_OUT(); 3453 } 3454 3455 void sub_20004680(void) { 3456 int _fpu_cmp = 0; 3457 uint32_t _cf = 0; 3458 int _df = 1; 3459 uint32_t _flag_k = FK_NONE; 3460 uint32_t _flag_a = 0, _flag_b = 0; 3461 uint32_t _itail_tgt = 0; 3462 RECOMP_REGS_LOCALS 3463 RECOMP_ENTER(0x20004680u); 3464 3465 L_20004680: 3466 PUSH32(esp, ebp); /* 0x20004680: push ebp */ 3467 ebp = esp; /* 0x20004681: mov ebp, esp */ 3468 eax = MEM32(ecx + 0x73C); /* 0x20004683: mov eax, dword ptr [ecx + 0x73c] */ 3469 /* test eax, eax */ /* 0x20004689: test eax, eax */ 3470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3471 _cf = 0; 3472 _flag_k = FK_TEST; 3473 if (TEST_Z(_flag_a, _flag_b)) goto L_200046AE; /* 0x2000468B: je 0x200046ae */ 3474 L_2000468D: 3475 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00200000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00200000u)); 3476 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00200000u; /* 0x2000468D: or dword ptr [eax + 8], 0x200000 */ 3477 _cf = 0; 3478 _flag_k = FK_TEST; 3479 eax = MEM32(ebp + 0x8); /* 0x20004694: mov eax, dword ptr [ebp + 8] */ 3480 edx = MEM32(eax); /* 0x20004697: mov edx, dword ptr [eax] */ 3481 ecx = MEM32(ecx + 0x73C); /* 0x20004699: mov ecx, dword ptr [ecx + 0x73c] */ 3482 MEM32(ecx + 0x8C) = edx; /* 0x2000469F: mov dword ptr [ecx + 0x8c], edx */ 3483 eax = MEM32(eax + 0x4); /* 0x200046A5: mov eax, dword ptr [eax + 4] */ 3484 MEM32(ecx + 0x90) = eax; /* 0x200046A8: mov dword ptr [ecx + 0x90], eax */ 3485 L_200046AE: 3486 ebp = POP32_VAL(esp); /* 0x200046AE: pop ebp */ 3487 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200046AF: ret 4 */ 3488 RECOMP_REGS_OUT(); 3489 } 3490 3491 void sub_200046C0(void) { 3492 int _fpu_cmp = 0; 3493 uint32_t _cf = 0; 3494 int _df = 1; 3495 uint32_t _flag_k = FK_NONE; 3496 uint32_t _flag_a = 0, _flag_b = 0; 3497 uint32_t _itail_tgt = 0; 3498 RECOMP_REGS_LOCALS 3499 RECOMP_ENTER(0x200046C0u); 3500 3501 L_200046C0: 3502 PUSH32(esp, ebp); /* 0x200046C0: push ebp */ 3503 ebp = esp; /* 0x200046C1: mov ebp, esp */ 3504 eax = MEM32(ecx + 0x73C); /* 0x200046C3: mov eax, dword ptr [ecx + 0x73c] */ 3505 /* test eax, eax */ /* 0x200046C9: test eax, eax */ 3506 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3507 _cf = 0; 3508 _flag_k = FK_TEST; 3509 if (TEST_Z(_flag_a, _flag_b)) goto L_200046F8; /* 0x200046CB: je 0x200046f8 */ 3510 L_200046CD: 3511 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00400000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00400000u)); 3512 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00400000u; /* 0x200046CD: or dword ptr [eax + 8], 0x400000 */ 3513 _cf = 0; 3514 _flag_k = FK_TEST; 3515 eax = MEM32(ecx + 0x73C); /* 0x200046D4: mov eax, dword ptr [ecx + 0x73c] */ 3516 ecx = MEM32(ebp + 0x8); /* 0x200046DA: mov ecx, dword ptr [ebp + 8] */ 3517 edx = MEM32(ecx); /* 0x200046DD: mov edx, dword ptr [ecx] */ 3518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x94u); 3519 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3520 eax = eax + 0x94u; /* 0x200046DF: add eax, 0x94 */ 3521 _flag_k = FK_ADD; 3522 MEM32(eax) = edx; /* 0x200046E4: mov dword ptr [eax], edx */ 3523 edx = MEM32(ecx + 0x4); /* 0x200046E6: mov edx, dword ptr [ecx + 4] */ 3524 MEM32(eax + 0x4) = edx; /* 0x200046E9: mov dword ptr [eax + 4], edx */ 3525 edx = MEM32(ecx + 0x8); /* 0x200046EC: mov edx, dword ptr [ecx + 8] */ 3526 MEM32(eax + 0x8) = edx; /* 0x200046EF: mov dword ptr [eax + 8], edx */ 3527 ecx = MEM32(ecx + 0xC); /* 0x200046F2: mov ecx, dword ptr [ecx + 0xc] */ 3528 MEM32(eax + 0xC) = ecx; /* 0x200046F5: mov dword ptr [eax + 0xc], ecx */ 3529 L_200046F8: 3530 ebp = POP32_VAL(esp); /* 0x200046F8: pop ebp */ 3531 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200046F9: ret 4 */ 3532 RECOMP_REGS_OUT(); 3533 } 3534 3535 void sub_20004700(void) { 3536 int _fpu_cmp = 0; 3537 uint32_t _cf = 0; 3538 int _df = 1; 3539 uint32_t _flag_k = FK_NONE; 3540 uint32_t _flag_a = 0, _flag_b = 0; 3541 uint32_t _itail_tgt = 0; 3542 RECOMP_REGS_LOCALS 3543 RECOMP_ENTER(0x20004700u); 3544 3545 L_20004700: 3546 PUSH32(esp, ebp); /* 0x20004700: push ebp */ 3547 ebp = esp; /* 0x20004701: mov ebp, esp */ 3548 eax = MEM32(ecx + 0x73C); /* 0x20004703: mov eax, dword ptr [ecx + 0x73c] */ 3549 /* test eax, eax */ /* 0x20004709: test eax, eax */ 3550 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3551 _cf = 0; 3552 _flag_k = FK_TEST; 3553 if (TEST_Z(_flag_a, _flag_b)) goto L_2000472E; /* 0x2000470B: je 0x2000472e */ 3554 L_2000470D: 3555 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00800000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00800000u)); 3556 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00800000u; /* 0x2000470D: or dword ptr [eax + 8], 0x800000 */ 3557 _cf = 0; 3558 _flag_k = FK_TEST; 3559 eax = MEM32(ebp + 0x8); /* 0x20004714: mov eax, dword ptr [ebp + 8] */ 3560 edx = MEM32(eax); /* 0x20004717: mov edx, dword ptr [eax] */ 3561 ecx = MEM32(ecx + 0x73C); /* 0x20004719: mov ecx, dword ptr [ecx + 0x73c] */ 3562 MEM32(ecx + 0xA4) = edx; /* 0x2000471F: mov dword ptr [ecx + 0xa4], edx */ 3563 eax = MEM32(eax + 0x4); /* 0x20004725: mov eax, dword ptr [eax + 4] */ 3564 MEM32(ecx + 0xA8) = eax; /* 0x20004728: mov dword ptr [ecx + 0xa8], eax */ 3565 L_2000472E: 3566 ebp = POP32_VAL(esp); /* 0x2000472E: pop ebp */ 3567 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2000472F: ret 4 */ 3568 RECOMP_REGS_OUT(); 3569 } 3570 3571 void sub_20004740(void) { 3572 int _fpu_cmp = 0; 3573 uint32_t _cf = 0; 3574 int _df = 1; 3575 uint32_t _flag_k = FK_NONE; 3576 uint32_t _flag_a = 0, _flag_b = 0; 3577 uint32_t _itail_tgt = 0; 3578 RECOMP_REGS_LOCALS 3579 RECOMP_ENTER(0x20004740u); 3580 3581 L_20004740: 3582 PUSH32(esp, ebp); /* 0x20004740: push ebp */ 3583 ebp = esp; /* 0x20004741: mov ebp, esp */ 3584 eax = MEM32(ecx + 0x73C); /* 0x20004743: mov eax, dword ptr [ecx + 0x73c] */ 3585 /* test eax, eax */ /* 0x20004749: test eax, eax */ 3586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3587 _cf = 0; 3588 _flag_k = FK_TEST; 3589 if (TEST_Z(_flag_a, _flag_b)) goto L_20004770; /* 0x2000474B: je 0x20004770 */ 3590 L_2000474D: 3591 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x4000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x4000u)); 3592 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x4000u; /* 0x2000474D: or dword ptr [eax + 8], 0x4000 */ 3593 _cf = 0; 3594 _flag_k = FK_TEST; 3595 eax = MEM32(ecx + 0x73C); /* 0x20004754: mov eax, dword ptr [ecx + 0x73c] */ 3596 ecx = MEM32(ebp + 0x8); /* 0x2000475A: mov ecx, dword ptr [ebp + 8] */ 3597 edx = MEM32(ecx); /* 0x2000475D: mov edx, dword ptr [ecx] */ 3598 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x48u); 3599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3600 eax = eax + 0x48u; /* 0x2000475F: add eax, 0x48 */ 3601 _flag_k = FK_ADD; 3602 MEM32(eax) = edx; /* 0x20004762: mov dword ptr [eax], edx */ 3603 edx = MEM32(ecx + 0x4); /* 0x20004764: mov edx, dword ptr [ecx + 4] */ 3604 MEM32(eax + 0x4) = edx; /* 0x20004767: mov dword ptr [eax + 4], edx */ 3605 ecx = MEM32(ecx + 0x8); /* 0x2000476A: mov ecx, dword ptr [ecx + 8] */ 3606 MEM32(eax + 0x8) = ecx; /* 0x2000476D: mov dword ptr [eax + 8], ecx */ 3607 L_20004770: 3608 ebp = POP32_VAL(esp); /* 0x20004770: pop ebp */ 3609 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004771: ret 4 */ 3610 RECOMP_REGS_OUT(); 3611 } 3612 3613 void sub_20004780(void) { 3614 int _fpu_cmp = 0; 3615 uint32_t _cf = 0; 3616 int _df = 1; 3617 uint32_t _flag_k = FK_NONE; 3618 uint32_t _flag_a = 0, _flag_b = 0; 3619 uint32_t _itail_tgt = 0; 3620 RECOMP_REGS_LOCALS 3621 RECOMP_ENTER(0x20004780u); 3622 3623 L_20004780: 3624 PUSH32(esp, ebp); /* 0x20004780: push ebp */ 3625 ebp = esp; /* 0x20004781: mov ebp, esp */ 3626 eax = MEM32(ecx + 0x73C); /* 0x20004783: mov eax, dword ptr [ecx + 0x73c] */ 3627 /* test eax, eax */ /* 0x20004789: test eax, eax */ 3628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3629 _cf = 0; 3630 _flag_k = FK_TEST; 3631 if (TEST_Z(_flag_a, _flag_b)) goto L_200047B0; /* 0x2000478B: je 0x200047b0 */ 3632 L_2000478D: 3633 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x8000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x8000u)); 3634 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x8000u; /* 0x2000478D: or dword ptr [eax + 8], 0x8000 */ 3635 _cf = 0; 3636 _flag_k = FK_TEST; 3637 eax = MEM32(ecx + 0x73C); /* 0x20004794: mov eax, dword ptr [ecx + 0x73c] */ 3638 ecx = MEM32(ebp + 0x8); /* 0x2000479A: mov ecx, dword ptr [ebp + 8] */ 3639 edx = MEM32(ecx); /* 0x2000479D: mov edx, dword ptr [ecx] */ 3640 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 3641 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3642 eax = eax + 0x54u; /* 0x2000479F: add eax, 0x54 */ 3643 _flag_k = FK_ADD; 3644 MEM32(eax) = edx; /* 0x200047A2: mov dword ptr [eax], edx */ 3645 edx = MEM32(ecx + 0x4); /* 0x200047A4: mov edx, dword ptr [ecx + 4] */ 3646 MEM32(eax + 0x4) = edx; /* 0x200047A7: mov dword ptr [eax + 4], edx */ 3647 ecx = MEM32(ecx + 0x8); /* 0x200047AA: mov ecx, dword ptr [ecx + 8] */ 3648 MEM32(eax + 0x8) = ecx; /* 0x200047AD: mov dword ptr [eax + 8], ecx */ 3649 L_200047B0: 3650 ebp = POP32_VAL(esp); /* 0x200047B0: pop ebp */ 3651 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200047B1: ret 4 */ 3652 RECOMP_REGS_OUT(); 3653 } 3654 3655 void sub_200047C0(void) { 3656 int _fpu_cmp = 0; 3657 uint32_t _cf = 0; 3658 int _df = 1; 3659 uint32_t _flag_k = FK_NONE; 3660 uint32_t _flag_a = 0, _flag_b = 0; 3661 uint32_t _itail_tgt = 0; 3662 RECOMP_REGS_LOCALS 3663 RECOMP_ENTER(0x200047C0u); 3664 3665 L_200047C0: 3666 PUSH32(esp, ebp); /* 0x200047C0: push ebp */ 3667 ebp = esp; /* 0x200047C1: mov ebp, esp */ 3668 eax = MEM32(ecx + 0x73C); /* 0x200047C3: mov eax, dword ptr [ecx + 0x73c] */ 3669 /* test eax, eax */ /* 0x200047C9: test eax, eax */ 3670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3671 _cf = 0; 3672 _flag_k = FK_TEST; 3673 if (TEST_Z(_flag_a, _flag_b)) goto L_200047F0; /* 0x200047CB: je 0x200047f0 */ 3674 L_200047CD: 3675 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00010000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00010000u)); 3676 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00010000u; /* 0x200047CD: or dword ptr [eax + 8], 0x10000 */ 3677 _cf = 0; 3678 _flag_k = FK_TEST; 3679 eax = MEM32(ecx + 0x73C); /* 0x200047D4: mov eax, dword ptr [ecx + 0x73c] */ 3680 ecx = MEM32(ebp + 0x8); /* 0x200047DA: mov ecx, dword ptr [ebp + 8] */ 3681 edx = MEM32(ecx); /* 0x200047DD: mov edx, dword ptr [ecx] */ 3682 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x60u); 3683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3684 eax = eax + 0x60u; /* 0x200047DF: add eax, 0x60 */ 3685 _flag_k = FK_ADD; 3686 MEM32(eax) = edx; /* 0x200047E2: mov dword ptr [eax], edx */ 3687 edx = MEM32(ecx + 0x4); /* 0x200047E4: mov edx, dword ptr [ecx + 4] */ 3688 MEM32(eax + 0x4) = edx; /* 0x200047E7: mov dword ptr [eax + 4], edx */ 3689 ecx = MEM32(ecx + 0x8); /* 0x200047EA: mov ecx, dword ptr [ecx + 8] */ 3690 MEM32(eax + 0x8) = ecx; /* 0x200047ED: mov dword ptr [eax + 8], ecx */ 3691 L_200047F0: 3692 ebp = POP32_VAL(esp); /* 0x200047F0: pop ebp */ 3693 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200047F1: ret 4 */ 3694 RECOMP_REGS_OUT(); 3695 } 3696 3697 void sub_20004800(void) { 3698 int _fpu_cmp = 0; 3699 uint32_t _cf = 0; 3700 int _df = 1; 3701 uint32_t _flag_k = FK_NONE; 3702 uint32_t _flag_a = 0, _flag_b = 0; 3703 uint32_t _itail_tgt = 0; 3704 RECOMP_REGS_LOCALS 3705 RECOMP_ENTER(0x20004800u); 3706 3707 L_20004800: 3708 PUSH32(esp, ebp); /* 0x20004800: push ebp */ 3709 ebp = esp; /* 0x20004801: mov ebp, esp */ 3710 eax = MEM32(ecx + 0x73C); /* 0x20004803: mov eax, dword ptr [ecx + 0x73c] */ 3711 /* test eax, eax */ /* 0x20004809: test eax, eax */ 3712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3713 _cf = 0; 3714 _flag_k = FK_TEST; 3715 if (TEST_Z(_flag_a, _flag_b)) goto L_20004828; /* 0x2000480B: je 0x20004828 */ 3716 L_2000480D: 3717 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00040000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00040000u)); 3718 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00040000u; /* 0x2000480D: or dword ptr [eax + 8], 0x40000 */ 3719 _cf = 0; 3720 _flag_k = FK_TEST; 3721 eax = MEM32(ebp + 0x8); /* 0x20004814: mov eax, dword ptr [ebp + 8] */ 3722 edx = MEM32(eax); /* 0x20004817: mov edx, dword ptr [eax] */ 3723 ecx = MEM32(ecx + 0x73C); /* 0x20004819: mov ecx, dword ptr [ecx + 0x73c] */ 3724 MEM32(ecx + 0x74) = edx; /* 0x2000481F: mov dword ptr [ecx + 0x74], edx */ 3725 eax = MEM32(eax + 0x4); /* 0x20004822: mov eax, dword ptr [eax + 4] */ 3726 MEM32(ecx + 0x78) = eax; /* 0x20004825: mov dword ptr [ecx + 0x78], eax */ 3727 L_20004828: 3728 ebp = POP32_VAL(esp); /* 0x20004828: pop ebp */ 3729 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004829: ret 4 */ 3730 RECOMP_REGS_OUT(); 3731 } 3732 3733 void sub_20004830(void) { 3734 int _fpu_cmp = 0; 3735 uint32_t _cf = 0; 3736 int _df = 1; 3737 uint32_t _flag_k = FK_NONE; 3738 uint32_t _flag_a = 0, _flag_b = 0; 3739 uint32_t _itail_tgt = 0; 3740 RECOMP_REGS_LOCALS 3741 RECOMP_ENTER(0x20004830u); 3742 3743 L_20004830: 3744 PUSH32(esp, ebp); /* 0x20004830: push ebp */ 3745 ebp = esp; /* 0x20004831: mov ebp, esp */ 3746 eax = MEM32(ecx + 0x73C); /* 0x20004833: mov eax, dword ptr [ecx + 0x73c] */ 3747 /* test eax, eax */ /* 0x20004839: test eax, eax */ 3748 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3749 _cf = 0; 3750 _flag_k = FK_TEST; 3751 if (TEST_Z(_flag_a, _flag_b)) goto L_2000485B; /* 0x2000483B: je 0x2000485b */ 3752 L_2000483D: 3753 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00080000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00080000u)); 3754 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00080000u; /* 0x2000483D: or dword ptr [eax + 8], 0x80000 */ 3755 _cf = 0; 3756 _flag_k = FK_TEST; 3757 eax = MEM32(ebp + 0x8); /* 0x20004844: mov eax, dword ptr [ebp + 8] */ 3758 edx = MEM32(eax); /* 0x20004847: mov edx, dword ptr [eax] */ 3759 ecx = MEM32(ecx + 0x73C); /* 0x20004849: mov ecx, dword ptr [ecx + 0x73c] */ 3760 MEM32(ecx + 0x7C) = edx; /* 0x2000484F: mov dword ptr [ecx + 0x7c], edx */ 3761 eax = MEM32(eax + 0x4); /* 0x20004852: mov eax, dword ptr [eax + 4] */ 3762 MEM32(ecx + 0x80) = eax; /* 0x20004855: mov dword ptr [ecx + 0x80], eax */ 3763 L_2000485B: 3764 ebp = POP32_VAL(esp); /* 0x2000485B: pop ebp */ 3765 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2000485C: ret 4 */ 3766 RECOMP_REGS_OUT(); 3767 } 3768 3769 void sub_20004860(void) { 3770 int _fpu_cmp = 0; 3771 uint32_t _cf = 0; 3772 int _df = 1; 3773 uint32_t _flag_k = FK_NONE; 3774 uint32_t _flag_a = 0, _flag_b = 0; 3775 uint32_t _itail_tgt = 0; 3776 RECOMP_REGS_LOCALS 3777 RECOMP_ENTER(0x20004860u); 3778 3779 L_20004860: 3780 PUSH32(esp, ebp); /* 0x20004860: push ebp */ 3781 ebp = esp; /* 0x20004861: mov ebp, esp */ 3782 eax = MEM32(ecx + 0x73C); /* 0x20004863: mov eax, dword ptr [ecx + 0x73c] */ 3783 /* test eax, eax */ /* 0x20004869: test eax, eax */ 3784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3785 _cf = 0; 3786 _flag_k = FK_TEST; 3787 if (TEST_Z(_flag_a, _flag_b)) goto L_2000488E; /* 0x2000486B: je 0x2000488e */ 3788 L_2000486D: 3789 _flag_a = (uint32_t)((MEM32(eax + 0x8) | 0x00100000u)); _flag_b = (uint32_t)((MEM32(eax + 0x8) | 0x00100000u)); 3790 MEM32(eax + 0x8) = MEM32(eax + 0x8) | 0x00100000u; /* 0x2000486D: or dword ptr [eax + 8], 0x100000 */ 3791 _cf = 0; 3792 _flag_k = FK_TEST; 3793 eax = MEM32(ebp + 0x8); /* 0x20004874: mov eax, dword ptr [ebp + 8] */ 3794 edx = MEM32(eax); /* 0x20004877: mov edx, dword ptr [eax] */ 3795 ecx = MEM32(ecx + 0x73C); /* 0x20004879: mov ecx, dword ptr [ecx + 0x73c] */ 3796 MEM32(ecx + 0x84) = edx; /* 0x2000487F: mov dword ptr [ecx + 0x84], edx */ 3797 eax = MEM32(eax + 0x4); /* 0x20004885: mov eax, dword ptr [eax + 4] */ 3798 MEM32(ecx + 0x88) = eax; /* 0x20004888: mov dword ptr [ecx + 0x88], eax */ 3799 L_2000488E: 3800 ebp = POP32_VAL(esp); /* 0x2000488E: pop ebp */ 3801 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2000488F: ret 4 */ 3802 RECOMP_REGS_OUT(); 3803 } 3804 3805 void sub_200048A0(void) { 3806 int _fpu_cmp = 0; 3807 uint32_t _cf = 0; 3808 int _df = 1; 3809 uint32_t _flag_k = FK_NONE; 3810 uint32_t _flag_a = 0, _flag_b = 0; 3811 uint32_t _itail_tgt = 0; 3812 RECOMP_REGS_LOCALS 3813 RECOMP_ENTER(0x200048A0u); 3814 3815 L_200048A0: 3816 RECOMP_ICALL(0x200048B0u); /* 0x200048A0: call 0x200048b0 */ /* not lifted */ 3817 RECOMP_FLAGS_IN(); 3818 goto L_200048C0; /* 0x200048A5: jmp 0x200048c0 */ 3819 L_200048C0: 3820 PUSH32(esp, 0x200048D0u); /* 0x200048C0: push 0x200048d0 */ 3821 RECOMP_ICALL(0x200072C2u); /* 0x200048C5: call 0x200072c2 */ /* not lifted */ 3822 RECOMP_FLAGS_IN(); 3823 ecx = POP32_VAL(esp); /* 0x200048CA: pop ecx */ 3824 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x200048CB: ret */ 3825 RECOMP_REGS_OUT(); 3826 } 3827 3828 void sub_200048B0(void) { 3829 int _fpu_cmp = 0; 3830 uint32_t _cf = 0; 3831 int _df = 1; 3832 uint32_t _flag_k = FK_NONE; 3833 uint32_t _flag_a = 0, _flag_b = 0; 3834 uint32_t _itail_tgt = 0; 3835 RECOMP_REGS_LOCALS 3836 RECOMP_ENTER(0x200048B0u); 3837 3838 L_200048B0: 3839 ecx = 0x20015CE5u; /* 0x200048B0: mov ecx, 0x20015ce5 */ 3840 L_200048B5: 3841 { _itail_tgt = (uint32_t)(MEM32(0x20008020)); goto _ljump; } 3842 { RECOMP_REGS_OUT(); return; } /* end of function */ 3843 _ljump: 3844 switch (_itail_tgt) { 3845 case 0x200048B0u: goto L_200048B0; 3846 case 0x200048B5u: goto L_200048B5; 3847 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3848 } 3849 RECOMP_REGS_OUT(); 3850 } 3851 3852 void sub_200048C0(void) { 3853 int _fpu_cmp = 0; 3854 uint32_t _cf = 0; 3855 int _df = 1; 3856 uint32_t _flag_k = FK_NONE; 3857 uint32_t _flag_a = 0, _flag_b = 0; 3858 uint32_t _itail_tgt = 0; 3859 RECOMP_REGS_LOCALS 3860 RECOMP_ENTER(0x200048C0u); 3861 3862 L_200048C0: 3863 PUSH32(esp, 0x200048D0u); /* 0x200048C0: push 0x200048d0 */ 3864 RECOMP_ICALL(0x200072C2u); /* 0x200048C5: call 0x200072c2 */ /* not lifted */ 3865 RECOMP_FLAGS_IN(); 3866 ecx = POP32_VAL(esp); /* 0x200048CA: pop ecx */ 3867 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x200048CB: ret */ 3868 RECOMP_REGS_OUT(); 3869 } 3870 3871 void sub_200048D0(void) { 3872 int _fpu_cmp = 0; 3873 uint32_t _cf = 0; 3874 int _df = 1; 3875 uint32_t _flag_k = FK_NONE; 3876 uint32_t _flag_a = 0, _flag_b = 0; 3877 uint32_t _itail_tgt = 0; 3878 RECOMP_REGS_LOCALS 3879 RECOMP_ENTER(0x200048D0u); 3880 3881 L_200048D0: 3882 ecx = 0x20015CE5u; /* 0x200048D0: mov ecx, 0x20015ce5 */ 3883 L_200048D5: 3884 { _itail_tgt = (uint32_t)(MEM32(0x20008024)); goto _ljump; } 3885 { RECOMP_REGS_OUT(); return; } /* end of function */ 3886 _ljump: 3887 switch (_itail_tgt) { 3888 case 0x200048D0u: goto L_200048D0; 3889 case 0x200048D5u: goto L_200048D5; 3890 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3891 } 3892 RECOMP_REGS_OUT(); 3893 } 3894 3895 void sub_200048E0(void) { 3896 int _fpu_cmp = 0; 3897 uint32_t _cf = 0; 3898 int _df = 1; 3899 uint32_t _flag_k = FK_NONE; 3900 uint32_t _flag_a = 0, _flag_b = 0; 3901 uint32_t _itail_tgt = 0; 3902 RECOMP_REGS_LOCALS 3903 RECOMP_ENTER(0x200048E0u); 3904 3905 L_200048E0: 3906 RECOMP_ICALL(0x200048F0u); /* 0x200048E0: call 0x200048f0 */ /* not lifted */ 3907 RECOMP_FLAGS_IN(); 3908 goto L_20004900; /* 0x200048E5: jmp 0x20004900 */ 3909 L_20004900: 3910 PUSH32(esp, 0x20004910u); /* 0x20004900: push 0x20004910 */ 3911 RECOMP_ICALL(0x200072C2u); /* 0x20004905: call 0x200072c2 */ /* not lifted */ 3912 RECOMP_FLAGS_IN(); 3913 ecx = POP32_VAL(esp); /* 0x2000490A: pop ecx */ 3914 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000490B: ret */ 3915 RECOMP_REGS_OUT(); 3916 } 3917 3918 void sub_200048F0(void) { 3919 int _fpu_cmp = 0; 3920 uint32_t _cf = 0; 3921 int _df = 1; 3922 uint32_t _flag_k = FK_NONE; 3923 uint32_t _flag_a = 0, _flag_b = 0; 3924 uint32_t _itail_tgt = 0; 3925 RECOMP_REGS_LOCALS 3926 RECOMP_ENTER(0x200048F0u); 3927 3928 L_200048F0: 3929 ecx = 0x20015CE4u; /* 0x200048F0: mov ecx, 0x20015ce4 */ 3930 L_200048F5: 3931 { _itail_tgt = (uint32_t)(MEM32(0x20008028)); goto _ljump; } 3932 { RECOMP_REGS_OUT(); return; } /* end of function */ 3933 _ljump: 3934 switch (_itail_tgt) { 3935 case 0x200048F0u: goto L_200048F0; 3936 case 0x200048F5u: goto L_200048F5; 3937 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3938 } 3939 RECOMP_REGS_OUT(); 3940 } 3941 3942 void sub_20004900(void) { 3943 int _fpu_cmp = 0; 3944 uint32_t _cf = 0; 3945 int _df = 1; 3946 uint32_t _flag_k = FK_NONE; 3947 uint32_t _flag_a = 0, _flag_b = 0; 3948 uint32_t _itail_tgt = 0; 3949 RECOMP_REGS_LOCALS 3950 RECOMP_ENTER(0x20004900u); 3951 3952 L_20004900: 3953 PUSH32(esp, 0x20004910u); /* 0x20004900: push 0x20004910 */ 3954 RECOMP_ICALL(0x200072C2u); /* 0x20004905: call 0x200072c2 */ /* not lifted */ 3955 RECOMP_FLAGS_IN(); 3956 ecx = POP32_VAL(esp); /* 0x2000490A: pop ecx */ 3957 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2000490B: ret */ 3958 RECOMP_REGS_OUT(); 3959 } 3960 3961 void sub_20004910(void) { 3962 int _fpu_cmp = 0; 3963 uint32_t _cf = 0; 3964 int _df = 1; 3965 uint32_t _flag_k = FK_NONE; 3966 uint32_t _flag_a = 0, _flag_b = 0; 3967 uint32_t _itail_tgt = 0; 3968 RECOMP_REGS_LOCALS 3969 RECOMP_ENTER(0x20004910u); 3970 3971 L_20004910: 3972 ecx = 0x20015CE4u; /* 0x20004910: mov ecx, 0x20015ce4 */ 3973 L_20004915: 3974 { _itail_tgt = (uint32_t)(MEM32(0x2000802C)); goto _ljump; } 3975 { RECOMP_REGS_OUT(); return; } /* end of function */ 3976 _ljump: 3977 switch (_itail_tgt) { 3978 case 0x20004910u: goto L_20004910; 3979 case 0x20004915u: goto L_20004915; 3980 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3981 } 3982 RECOMP_REGS_OUT(); 3983 } 3984 3985 void sub_20004920(void) { 3986 int _fpu_cmp = 0; 3987 uint32_t _cf = 0; 3988 int _df = 1; 3989 uint32_t _flag_k = FK_NONE; 3990 uint32_t _flag_a = 0, _flag_b = 0; 3991 uint32_t _itail_tgt = 0; 3992 RECOMP_REGS_LOCALS 3993 RECOMP_ENTER(0x20004920u); 3994 3995 L_20004920: 3996 PUSH32(esp, ebp); /* 0x20004920: push ebp */ 3997 ebp = esp; /* 0x20004921: mov ebp, esp */ 3998 eax = MEM32(FS_BASE + (0)); /* 0x20004923: mov eax, dword ptr fs:[0] */ 3999 PUSH32(esp, 0xFFFFFFFFu); /* 0x20004929: push -1 */ 4000 PUSH32(esp, 0x2000754Bu); /* 0x2000492B: push 0x2000754b */ 4001 PUSH32(esp, eax); /* 0x20004930: push eax */ 4002 MEM32(FS_BASE + (0)) = esp; /* 0x20004931: mov dword ptr fs:[0], esp */ 4003 PUSH32(esp, ebx); /* 0x20004938: push ebx */ 4004 ebx = ecx; /* 0x20004939: mov ebx, ecx */ 4005 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 4006 ecx = ecx | 0xFFFFFFFFu; /* 0x2000493B: or ecx, 0xffffffff */ 4007 _cf = 0; 4008 _flag_k = FK_TEST; 4009 PUSH32(esp, esi); /* 0x2000493E: push esi */ 4010 PUSH32(esp, edi); /* 0x2000493F: push edi */ 4011 edi = MEM32(ebp + 0x8); /* 0x20004940: mov edi, dword ptr [ebp + 8] */ 4012 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4013 eax = 0; /* 0x20004943: xor eax, eax */ 4014 _cf = 0; 4015 _flag_k = FK_TEST; 4016 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; } /* 0x20004945: repne scasb al, byte ptr es:[edi] */ 4017 ecx = ~ecx; /* 0x20004947: not ecx */ 4018 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 4019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4020 edi = edi - ecx; /* 0x20004949: sub edi, ecx */ 4021 _flag_k = FK_CMP; 4022 eax = ecx; /* 0x2000494B: mov eax, ecx */ 4023 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x2000494D: shr ecx, 2 */ 4024 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4025 ecx = ecx >> 2u; /* 0x2000494D: shr ecx, 2 */ 4026 edx = ebx + 0x4; /* 0x20004950: lea edx, [ebx + 4] */ 4027 esi = edi; /* 0x20004953: mov esi, edi */ 4028 edi = edx; /* 0x20004955: mov edi, edx */ 4029 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x20004957: 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; } 4030 ecx = eax; /* 0x20004959: mov ecx, eax */ 4031 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 4032 ecx = ecx & 3; /* 0x2000495B: and ecx, 3 */ 4033 _cf = 0; 4034 _flag_k = FK_TEST; 4035 PUSH32(esp, 0xCu); /* 0x2000495E: push 0xc */ 4036 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x20004960: 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; } 4037 RECOMP_ICALL(0x2000727Cu); /* 0x20004962: call 0x2000727c */ /* not lifted */ 4038 RECOMP_FLAGS_IN(); 4039 esi = eax; /* 0x20004967: mov esi, eax */ 4040 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4041 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4042 esp = esp + 4; /* 0x20004969: add esp, 4 */ 4043 _flag_k = FK_ADD; 4044 MEM32(ebp + 0x8) = esi; /* 0x2000496C: mov dword ptr [ebp + 8], esi */ 4045 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4046 edi = 0; /* 0x2000496F: xor edi, edi */ 4047 _cf = 0; 4048 _flag_k = FK_TEST; 4049 /* cmp esi, edi */ /* 0x20004971: cmp esi, edi */ 4050 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4052 _flag_k = FK_CMP; 4053 MEM32(ebp + (-0x4)) = edi; /* 0x20004973: mov dword ptr [ebp - 4], edi */ 4054 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004996; /* 0x20004976: je 0x20004996 */ 4055 L_20004978: 4056 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x20004978: mov cl, byte ptr [ebp + 0xb] */ 4057 PUSH32(esp, 0xCu); /* 0x2000497B: push 0xc */ 4058 MEM8(esi) = (uint8_t)(LO8(ecx)); /* 0x2000497D: mov byte ptr [esi], cl */ 4059 RECOMP_ICALL(0x2000727Cu); /* 0x2000497F: call 0x2000727c */ /* not lifted */ 4060 RECOMP_FLAGS_IN(); 4061 MEM32(eax) = eax; /* 0x20004984: mov dword ptr [eax], eax */ 4062 MEM32(eax + 0x4) = eax; /* 0x20004986: mov dword ptr [eax + 4], eax */ 4063 MEM32(esi + 0x4) = eax; /* 0x20004989: mov dword ptr [esi + 4], eax */ 4064 MEM32(esi + 0x8) = edi; /* 0x2000498C: mov dword ptr [esi + 8], edi */ 4065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4067 esp = esp + 4; /* 0x2000498F: add esp, 4 */ 4068 _flag_k = FK_ADD; 4069 MEM32(ebx) = esi; /* 0x20004992: mov dword ptr [ebx], esi */ 4070 goto L_2000499A; /* 0x20004994: jmp 0x2000499a */ 4071 L_20004996: 4072 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4073 eax = 0; /* 0x20004996: xor eax, eax */ 4074 _cf = 0; 4075 _flag_k = FK_TEST; 4076 MEM32(ebx) = eax; /* 0x20004998: mov dword ptr [ebx], eax */ 4077 L_2000499A: 4078 ecx = MEM32(ebp + (-0xC)); /* 0x2000499A: mov ecx, dword ptr [ebp - 0xc] */ 4079 edi = POP32_VAL(esp); /* 0x2000499D: pop edi */ 4080 esi = POP32_VAL(esp); /* 0x2000499E: pop esi */ 4081 eax = ebx; /* 0x2000499F: mov eax, ebx */ 4082 MEM32(FS_BASE + (0)) = ecx; /* 0x200049A1: mov dword ptr fs:[0], ecx */ 4083 ebx = POP32_VAL(esp); /* 0x200049A8: pop ebx */ 4084 esp = ebp; /* 0x200049A9: mov esp, ebp */ 4085 ebp = POP32_VAL(esp); /* 0x200049AB: pop ebp */ 4086 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x200049AC: ret 4 */ 4087 RECOMP_REGS_OUT(); 4088 } 4089 4090 void sub_200049B0(void) { 4091 int _fpu_cmp = 0; 4092 uint32_t _cf = 0; 4093 int _df = 1; 4094 uint32_t _flag_k = FK_NONE; 4095 uint32_t _flag_a = 0, _flag_b = 0; 4096 uint32_t _itail_tgt = 0; 4097 RECOMP_REGS_LOCALS 4098 RECOMP_ENTER(0x200049B0u); 4099 4100 L_200049B0: 4101 PUSH32(esp, esi); /* 0x200049B0: push esi */ 4102 PUSH32(esp, edi); /* 0x200049B1: push edi */ 4103 esi = ecx; /* 0x200049B2: mov esi, ecx */ 4104 RECOMP_ICALL(0x20004D80u); /* 0x200049B4: call 0x20004d80 */ /* not lifted */ 4105 RECOMP_FLAGS_IN(); 4106 edi = MEM32(esi); /* 0x200049B9: mov edi, dword ptr [esi] */ 4107 /* test edi, edi */ /* 0x200049BB: test edi, edi */ 4108 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4109 _cf = 0; 4110 _flag_k = FK_TEST; 4111 if (TEST_Z(_flag_a, _flag_b)) goto L_20004A0B; /* 0x200049BD: je 0x20004a0b */ 4112 L_200049BF: 4113 PUSH32(esp, ebx); /* 0x200049BF: push ebx */ 4114 ebx = MEM32(edi + 0x4); /* 0x200049C0: mov ebx, dword ptr [edi + 4] */ 4115 esi = MEM32(ebx); /* 0x200049C3: mov esi, dword ptr [ebx] */ 4116 /* cmp esi, ebx */ /* 0x200049C5: cmp esi, ebx */ 4117 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4118 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4119 _flag_k = FK_CMP; 4120 if (CMP_EQ(_flag_a, _flag_b)) goto L_200049F0; /* 0x200049C7: je 0x200049f0 */ 4121 L_200049C9: 4122 eax = esi; /* 0x200049C9: mov eax, esi */ 4123 ecx = MEM32(eax + 0x4); /* 0x200049CB: mov ecx, dword ptr [eax + 4] */ 4124 edx = MEM32(eax); /* 0x200049CE: mov edx, dword ptr [eax] */ 4125 esi = MEM32(esi); /* 0x200049D0: mov esi, dword ptr [esi] */ 4126 MEM32(ecx) = edx; /* 0x200049D2: mov dword ptr [ecx], edx */ 4127 ecx = MEM32(eax); /* 0x200049D4: mov ecx, dword ptr [eax] */ 4128 edx = MEM32(eax + 0x4); /* 0x200049D6: mov edx, dword ptr [eax + 4] */ 4129 PUSH32(esp, eax); /* 0x200049D9: push eax */ 4130 MEM32(ecx + 0x4) = edx; /* 0x200049DA: mov dword ptr [ecx + 4], edx */ 4131 RECOMP_ICALL(0x20007270u); /* 0x200049DD: call 0x20007270 */ /* not lifted */ 4132 RECOMP_FLAGS_IN(); 4133 ecx = MEM32(edi + 0x8); /* 0x200049E2: mov ecx, dword ptr [edi + 8] */ 4134 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4135 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4136 esp = esp + 4; /* 0x200049E5: add esp, 4 */ 4137 _flag_k = FK_ADD; 4138 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4139 ecx = ecx - 1; /* 0x200049E8: dec ecx */ 4140 _flag_k = FK_DEC; 4141 /* cmp esi, ebx */ /* 0x200049E9: cmp esi, ebx */ 4142 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4144 _flag_k = FK_CMP; 4145 MEM32(edi + 0x8) = ecx; /* 0x200049EB: mov dword ptr [edi + 8], ecx */ 4146 RECOMP_BACKEDGE(); 4147 if (CMP_NE(_flag_a, _flag_b)) goto L_200049C9; /* 0x200049EE: jne 0x200049c9 */ 4148 L_200049F0: 4149 eax = MEM32(edi + 0x4); /* 0x200049F0: mov eax, dword ptr [edi + 4] */ 4150 PUSH32(esp, eax); /* 0x200049F3: push eax */ 4151 RECOMP_ICALL(0x20007270u); /* 0x200049F4: call 0x20007270 */ /* not lifted */ 4152 RECOMP_FLAGS_IN(); 4153 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4154 eax = 0; /* 0x200049F9: xor eax, eax */ 4155 _cf = 0; 4156 _flag_k = FK_TEST; 4157 PUSH32(esp, edi); /* 0x200049FB: push edi */ 4158 MEM32(edi + 0x4) = eax; /* 0x200049FC: mov dword ptr [edi + 4], eax */ 4159 MEM32(edi + 0x8) = eax; /* 0x200049FF: mov dword ptr [edi + 8], eax */ 4160 RECOMP_ICALL(0x20007270u); /* 0x20004A02: call 0x20007270 */ /* not lifted */ 4161 RECOMP_FLAGS_IN(); 4162 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4164 esp = esp + 8; /* 0x20004A07: add esp, 8 */ 4165 _flag_k = FK_ADD; 4166 ebx = POP32_VAL(esp); /* 0x20004A0A: pop ebx */ 4167 L_20004A0B: 4168 edi = POP32_VAL(esp); /* 0x20004A0B: pop edi */ 4169 esi = POP32_VAL(esp); /* 0x20004A0C: pop esi */ 4170 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20004A0D: ret */ 4171 RECOMP_REGS_OUT(); 4172 } 4173 4174 void sub_20004A10(void) { 4175 int _fpu_cmp = 0; 4176 uint32_t _cf = 0; 4177 int _df = 1; 4178 uint32_t _flag_k = FK_NONE; 4179 uint32_t _flag_a = 0, _flag_b = 0; 4180 uint32_t _itail_tgt = 0; 4181 RECOMP_REGS_LOCALS 4182 RECOMP_ENTER(0x20004A10u); 4183 4184 L_20004A10: 4185 PUSH32(esp, ebp); /* 0x20004A10: push ebp */ 4186 ebp = esp; /* 0x20004A11: mov ebp, esp */ 4187 eax = MEM32(FS_BASE + (0)); /* 0x20004A13: mov eax, dword ptr fs:[0] */ 4188 PUSH32(esp, 0xFFFFFFFFu); /* 0x20004A19: push -1 */ 4189 PUSH32(esp, 0x2000756Bu); /* 0x20004A1B: push 0x2000756b */ 4190 PUSH32(esp, eax); /* 0x20004A20: push eax */ 4191 MEM32(FS_BASE + (0)) = esp; /* 0x20004A21: mov dword ptr fs:[0], esp */ 4192 PUSH32(esp, ebx); /* 0x20004A28: push ebx */ 4193 ebx = MEM32(ebp + 0x8); /* 0x20004A29: mov ebx, dword ptr [ebp + 8] */ 4194 PUSH32(esp, esi); /* 0x20004A2C: push esi */ 4195 PUSH32(esp, edi); /* 0x20004A2D: push edi */ 4196 edi = ecx; /* 0x20004A2E: mov edi, ecx */ 4197 PUSH32(esp, ebx); /* 0x20004A30: push ebx */ 4198 RECOMP_ICALL(0x20004CB0u); /* 0x20004A31: call 0x20004cb0 */ /* not lifted */ 4199 RECOMP_FLAGS_IN(); 4200 esi = eax; /* 0x20004A36: mov esi, eax */ 4201 /* test esi, esi */ /* 0x20004A38: test esi, esi */ 4202 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4203 _cf = 0; 4204 _flag_k = FK_TEST; 4205 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004A6F; /* 0x20004A3A: jne 0x20004a6f */ 4206 L_20004A3C: 4207 PUSH32(esp, 8); /* 0x20004A3C: push 8 */ 4208 RECOMP_ICALL(0x2000727Cu); /* 0x20004A3E: call 0x2000727c */ /* not lifted */ 4209 RECOMP_FLAGS_IN(); 4210 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4212 esp = esp + 4; /* 0x20004A43: add esp, 4 */ 4213 _flag_k = FK_ADD; 4214 MEM32(ebp + 0x8) = eax; /* 0x20004A46: mov dword ptr [ebp + 8], eax */ 4215 /* test eax, eax */ /* 0x20004A49: test eax, eax */ 4216 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4217 _cf = 0; 4218 _flag_k = FK_TEST; 4219 MEM32(ebp + (-0x4)) = esi; /* 0x20004A4B: mov dword ptr [ebp - 4], esi */ 4220 if (TEST_Z(_flag_a, _flag_b)) goto L_20004A5A; /* 0x20004A4E: je 0x20004a5a */ 4221 L_20004A50: 4222 PUSH32(esp, ebx); /* 0x20004A50: push ebx */ 4223 ecx = eax; /* 0x20004A51: mov ecx, eax */ 4224 RECOMP_ICALL(0x20005BC0u); /* 0x20004A53: call 0x20005bc0 */ /* not lifted */ 4225 RECOMP_FLAGS_IN(); 4226 goto L_20004A5C; /* 0x20004A58: jmp 0x20004a5c */ 4227 L_20004A5A: 4228 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4229 eax = 0; /* 0x20004A5A: xor eax, eax */ 4230 _cf = 0; 4231 _flag_k = FK_TEST; 4232 L_20004A5C: 4233 PUSH32(esp, 1); /* 0x20004A5C: push 1 */ 4234 PUSH32(esp, eax); /* 0x20004A5E: push eax */ 4235 ecx = edi; /* 0x20004A5F: mov ecx, edi */ 4236 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x20004A61: mov dword ptr [ebp - 4], 0xffffffff */ 4237 esi = eax; /* 0x20004A68: mov esi, eax */ 4238 RECOMP_ICALL(0x20004B60u); /* 0x20004A6A: call 0x20004b60 */ /* not lifted */ 4239 RECOMP_FLAGS_IN(); 4240 L_20004A6F: 4241 eax = MEM32(ebp + 0xC); /* 0x20004A6F: mov eax, dword ptr [ebp + 0xc] */ 4242 PUSH32(esp, eax); /* 0x20004A72: push eax */ 4243 ecx = esi; /* 0x20004A73: mov ecx, esi */ 4244 RECOMP_ICALL(0x20005D20u); /* 0x20004A75: call 0x20005d20 */ /* not lifted */ 4245 RECOMP_FLAGS_IN(); 4246 ecx = MEM32(ebp + (-0xC)); /* 0x20004A7A: mov ecx, dword ptr [ebp - 0xc] */ 4247 edi = POP32_VAL(esp); /* 0x20004A7D: pop edi */ 4248 esi = POP32_VAL(esp); /* 0x20004A7E: pop esi */ 4249 MEM32(FS_BASE + (0)) = ecx; /* 0x20004A7F: mov dword ptr fs:[0], ecx */ 4250 ebx = POP32_VAL(esp); /* 0x20004A86: pop ebx */ 4251 esp = ebp; /* 0x20004A87: mov esp, ebp */ 4252 ebp = POP32_VAL(esp); /* 0x20004A89: pop ebp */ 4253 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20004A8A: ret 8 */ 4254 RECOMP_REGS_OUT(); 4255 } 4256 4257 void sub_20004A90(void) { 4258 int _fpu_cmp = 0; 4259 uint32_t _cf = 0; 4260 int _df = 1; 4261 uint32_t _flag_k = FK_NONE; 4262 uint32_t _flag_a = 0, _flag_b = 0; 4263 uint32_t _itail_tgt = 0; 4264 RECOMP_REGS_LOCALS 4265 RECOMP_ENTER(0x20004A90u); 4266 4267 L_20004A90: 4268 PUSH32(esp, ebp); /* 0x20004A90: push ebp */ 4269 ebp = esp; /* 0x20004A91: mov ebp, esp */ 4270 PUSH32(esp, 0xFFFFFFFFu); /* 0x20004A93: push -1 */ 4271 PUSH32(esp, 0x20007596u); /* 0x20004A95: push 0x20007596 */ 4272 eax = MEM32(FS_BASE + (0)); /* 0x20004A9A: mov eax, dword ptr fs:[0] */ 4273 PUSH32(esp, eax); /* 0x20004AA0: push eax */ 4274 MEM32(FS_BASE + (0)) = esp; /* 0x20004AA1: mov dword ptr fs:[0], esp */ 4275 PUSH32(esp, ecx); /* 0x20004AA8: push ecx */ 4276 PUSH32(esp, ebx); /* 0x20004AA9: push ebx */ 4277 ebx = ecx; /* 0x20004AAA: mov ebx, ecx */ 4278 ecx = MEM32(0x20015CF4); /* 0x20004AAC: mov ecx, dword ptr [0x20015cf4] */ 4279 /* test ecx, ecx */ /* 0x20004AB2: test ecx, ecx */ 4280 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4281 _cf = 0; 4282 _flag_k = FK_TEST; 4283 PUSH32(esp, esi); /* 0x20004AB4: push esi */ 4284 PUSH32(esp, edi); /* 0x20004AB5: push edi */ 4285 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004AEA; /* 0x20004AB6: jne 0x20004aea */ 4286 L_20004AB8: 4287 PUSH32(esp, 0xCu); /* 0x20004AB8: push 0xc */ 4288 RECOMP_ICALL(0x2000727Cu); /* 0x20004ABA: call 0x2000727c */ /* not lifted */ 4289 RECOMP_FLAGS_IN(); 4290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4292 esp = esp + 4; /* 0x20004ABF: add esp, 4 */ 4293 _flag_k = FK_ADD; 4294 MEM32(ebp + (-0x10)) = eax; /* 0x20004AC2: mov dword ptr [ebp - 0x10], eax */ 4295 /* test eax, eax */ /* 0x20004AC5: test eax, eax */ 4296 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4297 _cf = 0; 4298 _flag_k = FK_TEST; 4299 MEM32(ebp + (-0x4)) = 0; /* 0x20004AC7: mov dword ptr [ebp - 4], 0 */ 4300 if (TEST_Z(_flag_a, _flag_b)) goto L_20004AD9; /* 0x20004ACE: je 0x20004ad9 */ 4301 L_20004AD0: 4302 ecx = eax; /* 0x20004AD0: mov ecx, eax */ 4303 RECOMP_ICALL(0x200063F0u); /* 0x20004AD2: call 0x200063f0 */ /* not lifted */ 4304 RECOMP_FLAGS_IN(); 4305 goto L_20004ADB; /* 0x20004AD7: jmp 0x20004adb */ 4306 L_20004AD9: 4307 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4308 eax = 0; /* 0x20004AD9: xor eax, eax */ 4309 _cf = 0; 4310 _flag_k = FK_TEST; 4311 L_20004ADB: 4312 ecx = eax; /* 0x20004ADB: mov ecx, eax */ 4313 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x20004ADD: mov dword ptr [ebp - 4], 0xffffffff */ 4314 MEM32(0x20015CF4) = ecx; /* 0x20004AE4: mov dword ptr [0x20015cf4], ecx */ 4315 L_20004AEA: 4316 eax = MEM32(ebp + 0x8); /* 0x20004AEA: mov eax, dword ptr [ebp + 8] */ 4317 PUSH32(esp, eax); /* 0x20004AED: push eax */ 4318 RECOMP_ICALL(0x200062C0u); /* 0x20004AEE: call 0x200062c0 */ /* not lifted */ 4319 RECOMP_FLAGS_IN(); 4320 edi = eax; /* 0x20004AF3: mov edi, eax */ 4321 PUSH32(esp, edi); /* 0x20004AF5: push edi */ 4322 ecx = ebx; /* 0x20004AF6: mov ecx, ebx */ 4323 RECOMP_ICALL(0x20004CB0u); /* 0x20004AF8: call 0x20004cb0 */ /* not lifted */ 4324 RECOMP_FLAGS_IN(); 4325 esi = eax; /* 0x20004AFD: mov esi, eax */ 4326 /* test esi, esi */ /* 0x20004AFF: test esi, esi */ 4327 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4328 _cf = 0; 4329 _flag_k = FK_TEST; 4330 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004B3A; /* 0x20004B01: jne 0x20004b3a */ 4331 L_20004B03: 4332 PUSH32(esp, 8); /* 0x20004B03: push 8 */ 4333 RECOMP_ICALL(0x2000727Cu); /* 0x20004B05: call 0x2000727c */ /* not lifted */ 4334 RECOMP_FLAGS_IN(); 4335 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4337 esp = esp + 4; /* 0x20004B0A: add esp, 4 */ 4338 _flag_k = FK_ADD; 4339 MEM32(ebp + 0x8) = eax; /* 0x20004B0D: mov dword ptr [ebp + 8], eax */ 4340 /* test eax, eax */ /* 0x20004B10: test eax, eax */ 4341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4342 _cf = 0; 4343 _flag_k = FK_TEST; 4344 MEM32(ebp + (-0x4)) = 1; /* 0x20004B12: mov dword ptr [ebp - 4], 1 */ 4345 if (TEST_Z(_flag_a, _flag_b)) goto L_20004B25; /* 0x20004B19: je 0x20004b25 */ 4346 L_20004B1B: 4347 PUSH32(esp, edi); /* 0x20004B1B: push edi */ 4348 ecx = eax; /* 0x20004B1C: mov ecx, eax */ 4349 RECOMP_ICALL(0x20005BC0u); /* 0x20004B1E: call 0x20005bc0 */ /* not lifted */ 4350 RECOMP_FLAGS_IN(); 4351 goto L_20004B27; /* 0x20004B23: jmp 0x20004b27 */ 4352 L_20004B25: 4353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4354 eax = 0; /* 0x20004B25: xor eax, eax */ 4355 _cf = 0; 4356 _flag_k = FK_TEST; 4357 L_20004B27: 4358 PUSH32(esp, 1); /* 0x20004B27: push 1 */ 4359 PUSH32(esp, eax); /* 0x20004B29: push eax */ 4360 ecx = ebx; /* 0x20004B2A: mov ecx, ebx */ 4361 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x20004B2C: mov dword ptr [ebp - 4], 0xffffffff */ 4362 esi = eax; /* 0x20004B33: mov esi, eax */ 4363 RECOMP_ICALL(0x20004B60u); /* 0x20004B35: call 0x20004b60 */ /* not lifted */ 4364 RECOMP_FLAGS_IN(); 4365 L_20004B3A: 4366 ecx = MEM32(ebp + 0xC); /* 0x20004B3A: mov ecx, dword ptr [ebp + 0xc] */ 4367 PUSH32(esp, ecx); /* 0x20004B3D: push ecx */ 4368 ecx = esi; /* 0x20004B3E: mov ecx, esi */ 4369 RECOMP_ICALL(0x20005D20u); /* 0x20004B40: call 0x20005d20 */ /* not lifted */ 4370 RECOMP_FLAGS_IN(); 4371 ecx = MEM32(ebp + (-0xC)); /* 0x20004B45: mov ecx, dword ptr [ebp - 0xc] */ 4372 edi = POP32_VAL(esp); /* 0x20004B48: pop edi */ 4373 esi = POP32_VAL(esp); /* 0x20004B49: pop esi */ 4374 ebx = POP32_VAL(esp); /* 0x20004B4A: pop ebx */ 4375 MEM32(FS_BASE + (0)) = ecx; /* 0x20004B4B: mov dword ptr fs:[0], ecx */ 4376 esp = ebp; /* 0x20004B52: mov esp, ebp */ 4377 ebp = POP32_VAL(esp); /* 0x20004B54: pop ebp */ 4378 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20004B55: ret 8 */ 4379 RECOMP_REGS_OUT(); 4380 } 4381 4382 void sub_20004B60(void) { 4383 int _fpu_cmp = 0; 4384 uint32_t _cf = 0; 4385 int _df = 1; 4386 uint32_t _flag_k = FK_NONE; 4387 uint32_t _flag_a = 0, _flag_b = 0; 4388 uint32_t _itail_tgt = 0; 4389 RECOMP_REGS_LOCALS 4390 RECOMP_ENTER(0x20004B60u); 4391 4392 L_20004B60: 4393 PUSH32(esp, ebp); /* 0x20004B60: push ebp */ 4394 ebp = esp; /* 0x20004B61: mov ebp, esp */ 4395 PUSH32(esp, ebx); /* 0x20004B63: push ebx */ 4396 ebx = MEM32(ecx); /* 0x20004B64: mov ebx, dword ptr [ecx] */ 4397 PUSH32(esp, esi); /* 0x20004B66: push esi */ 4398 esi = MEM32(ebx + 0x4); /* 0x20004B67: mov esi, dword ptr [ebx + 4] */ 4399 PUSH32(esp, edi); /* 0x20004B6A: push edi */ 4400 edi = MEM32(esi + 0x4); /* 0x20004B6B: mov edi, dword ptr [esi + 4] */ 4401 PUSH32(esp, 0xCu); /* 0x20004B6E: push 0xc */ 4402 RECOMP_ICALL(0x2000727Cu); /* 0x20004B70: call 0x2000727c */ /* not lifted */ 4403 RECOMP_FLAGS_IN(); 4404 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4406 esp = esp + 4; /* 0x20004B75: add esp, 4 */ 4407 _flag_k = FK_ADD; 4408 /* test esi, esi */ /* 0x20004B78: test esi, esi */ 4409 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4410 _cf = 0; 4411 _flag_k = FK_TEST; 4412 ecx = esi; /* 0x20004B7A: mov ecx, esi */ 4413 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004B80; /* 0x20004B7C: jne 0x20004b80 */ 4414 L_20004B7E: 4415 ecx = eax; /* 0x20004B7E: mov ecx, eax */ 4416 L_20004B80: 4417 /* test edi, edi */ /* 0x20004B80: test edi, edi */ 4418 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4419 _cf = 0; 4420 _flag_k = FK_TEST; 4421 MEM32(eax) = ecx; /* 0x20004B82: mov dword ptr [eax], ecx */ 4422 ecx = edi; /* 0x20004B84: mov ecx, edi */ 4423 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004B8A; /* 0x20004B86: jne 0x20004b8a */ 4424 L_20004B88: 4425 ecx = eax; /* 0x20004B88: mov ecx, eax */ 4426 L_20004B8A: 4427 MEM32(eax + 0x4) = ecx; /* 0x20004B8A: mov dword ptr [eax + 4], ecx */ 4428 MEM32(esi + 0x4) = eax; /* 0x20004B8D: mov dword ptr [esi + 4], eax */ 4429 ecx = MEM32(eax + 0x4); /* 0x20004B90: mov ecx, dword ptr [eax + 4] */ 4430 MEM32(ecx) = eax; /* 0x20004B93: mov dword ptr [ecx], eax */ 4431 ecx = MEM32(ebp + 0x8); /* 0x20004B95: mov ecx, dword ptr [ebp + 8] */ 4432 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4433 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4434 eax = eax + 8; /* 0x20004B98: add eax, 8 */ 4435 _flag_k = FK_ADD; 4436 /* test eax, eax */ /* 0x20004B9B: test eax, eax */ 4437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4438 _cf = 0; 4439 _flag_k = FK_TEST; 4440 if (TEST_Z(_flag_a, _flag_b)) goto L_20004BA1; /* 0x20004B9D: je 0x20004ba1 */ 4441 L_20004B9F: 4442 MEM32(eax) = ecx; /* 0x20004B9F: mov dword ptr [eax], ecx */ 4443 L_20004BA1: 4444 edx = MEM32(ebx + 0x8); /* 0x20004BA1: mov edx, dword ptr [ebx + 8] */ 4445 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x20004BA4: mov al, byte ptr [ebp + 0xc] */ 4446 edi = POP32_VAL(esp); /* 0x20004BA7: pop edi */ 4447 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4448 edx = edx + 1; /* 0x20004BA8: inc edx */ 4449 _flag_k = FK_INC; 4450 /* test LO8(eax), LO8(eax) */ /* 0x20004BA9: test al, al */ 4451 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4452 _cf = 0; 4453 _flag_k = FK_NARROW(FK_TEST, 24); 4454 esi = POP32_VAL(esp); /* 0x20004BAB: pop esi */ 4455 MEM32(ebx + 0x8) = edx; /* 0x20004BAC: mov dword ptr [ebx + 8], edx */ 4456 ebx = POP32_VAL(esp); /* 0x20004BAF: pop ebx */ 4457 if (TEST_Z(_flag_a, _flag_b)) goto L_20004BB7; /* 0x20004BB0: je 0x20004bb7 */ 4458 L_20004BB2: 4459 RECOMP_ICALL(0x20005E80u); /* 0x20004BB2: call 0x20005e80 */ /* not lifted */ 4460 RECOMP_FLAGS_IN(); 4461 L_20004BB7: 4462 ebp = POP32_VAL(esp); /* 0x20004BB7: pop ebp */ 4463 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x20004BB8: ret 8 */ 4464 RECOMP_REGS_OUT(); 4465 } 4466 4467 void sub_20004BC0(void) { 4468 int _fpu_cmp = 0; 4469 uint32_t _cf = 0; 4470 int _df = 1; 4471 uint32_t _flag_k = FK_NONE; 4472 uint32_t _flag_a = 0, _flag_b = 0; 4473 uint32_t _itail_tgt = 0; 4474 RECOMP_REGS_LOCALS 4475 RECOMP_ENTER(0x20004BC0u); 4476 4477 L_20004BC0: 4478 PUSH32(esp, ebp); /* 0x20004BC0: push ebp */ 4479 ebp = esp; /* 0x20004BC1: mov ebp, esp */ 4480 PUSH32(esp, ebx); /* 0x20004BC3: push ebx */ 4481 ebx = ecx; /* 0x20004BC4: mov ebx, ecx */ 4482 eax = MEM32(ebx); /* 0x20004BC6: mov eax, dword ptr [ebx] */ 4483 eax = MEM32(eax + 0x4); /* 0x20004BC8: mov eax, dword ptr [eax + 4] */ 4484 PUSH32(esp, esi); /* 0x20004BCB: push esi */ 4485 esi = MEM32(eax); /* 0x20004BCC: mov esi, dword ptr [eax] */ 4486 /* cmp esi, eax */ /* 0x20004BCE: cmp esi, eax */ 4487 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4488 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4489 _flag_k = FK_CMP; 4490 PUSH32(esp, edi); /* 0x20004BD0: push edi */ 4491 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004C1E; /* 0x20004BD1: je 0x20004c1e */ 4492 L_20004BD3: 4493 edi = MEM32(ebp + 0x8); /* 0x20004BD3: mov edi, dword ptr [ebp + 8] */ 4494 L_20004BD6: 4495 /* cmp edi, MEM32(esi + 0x8) */ /* 0x20004BD6: cmp edi, dword ptr [esi + 8] */ 4496 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4497 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4498 _flag_k = FK_CMP; 4499 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004BE8; /* 0x20004BD9: je 0x20004be8 */ 4500 L_20004BDB: 4501 esi = MEM32(esi); /* 0x20004BDB: mov esi, dword ptr [esi] */ 4502 /* cmp esi, eax */ /* 0x20004BDD: cmp esi, eax */ 4503 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4505 _flag_k = FK_CMP; 4506 RECOMP_BACKEDGE(); 4507 if (CMP_NE(_flag_a, _flag_b)) goto L_20004BD6; /* 0x20004BDF: jne 0x20004bd6 */ 4508 L_20004BE1: 4509 edi = POP32_VAL(esp); /* 0x20004BE1: pop edi */ 4510 esi = POP32_VAL(esp); /* 0x20004BE2: pop esi */ 4511 ebx = POP32_VAL(esp); /* 0x20004BE3: pop ebx */ 4512 ebp = POP32_VAL(esp); /* 0x20004BE4: pop ebp */ 4513 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004BE5: ret 4 */ 4514 L_20004BE8: 4515 ecx = edi; /* 0x20004BE8: mov ecx, edi */ 4516 RECOMP_ICALL(0x20005F50u); /* 0x20004BEA: call 0x20005f50 */ /* not lifted */ 4517 RECOMP_FLAGS_IN(); 4518 ecx = edi; /* 0x20004BEF: mov ecx, edi */ 4519 RECOMP_ICALL(0x20005ED0u); /* 0x20004BF1: call 0x20005ed0 */ /* not lifted */ 4520 RECOMP_FLAGS_IN(); 4521 ecx = edi; /* 0x20004BF6: mov ecx, edi */ 4522 RECOMP_ICALL(0x20005F50u); /* 0x20004BF8: call 0x20005f50 */ /* not lifted */ 4523 RECOMP_FLAGS_IN(); 4524 ecx = MEM32(esi + 0x4); /* 0x20004BFD: mov ecx, dword ptr [esi + 4] */ 4525 edx = MEM32(esi); /* 0x20004C00: mov edx, dword ptr [esi] */ 4526 edi = MEM32(ebx); /* 0x20004C02: mov edi, dword ptr [ebx] */ 4527 MEM32(ecx) = edx; /* 0x20004C04: mov dword ptr [ecx], edx */ 4528 eax = MEM32(esi); /* 0x20004C06: mov eax, dword ptr [esi] */ 4529 ecx = MEM32(esi + 0x4); /* 0x20004C08: mov ecx, dword ptr [esi + 4] */ 4530 PUSH32(esp, esi); /* 0x20004C0B: push esi */ 4531 MEM32(eax + 0x4) = ecx; /* 0x20004C0C: mov dword ptr [eax + 4], ecx */ 4532 RECOMP_ICALL(0x20007270u); /* 0x20004C0F: call 0x20007270 */ /* not lifted */ 4533 RECOMP_FLAGS_IN(); 4534 eax = MEM32(edi + 0x8); /* 0x20004C14: mov eax, dword ptr [edi + 8] */ 4535 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4536 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4537 esp = esp + 4; /* 0x20004C17: add esp, 4 */ 4538 _flag_k = FK_ADD; 4539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4540 eax = eax - 1; /* 0x20004C1A: dec eax */ 4541 _flag_k = FK_DEC; 4542 MEM32(edi + 0x8) = eax; /* 0x20004C1B: mov dword ptr [edi + 8], eax */ 4543 L_20004C1E: 4544 edi = POP32_VAL(esp); /* 0x20004C1E: pop edi */ 4545 esi = POP32_VAL(esp); /* 0x20004C1F: pop esi */ 4546 ebx = POP32_VAL(esp); /* 0x20004C20: pop ebx */ 4547 ebp = POP32_VAL(esp); /* 0x20004C21: pop ebp */ 4548 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004C22: ret 4 */ 4549 RECOMP_REGS_OUT(); 4550 } 4551 4552 void sub_20004C30(void) { 4553 int _fpu_cmp = 0; 4554 uint32_t _cf = 0; 4555 int _df = 1; 4556 uint32_t _flag_k = FK_NONE; 4557 uint32_t _flag_a = 0, _flag_b = 0; 4558 uint32_t _itail_tgt = 0; 4559 RECOMP_REGS_LOCALS 4560 RECOMP_ENTER(0x20004C30u); 4561 4562 L_20004C30: 4563 PUSH32(esp, esi); /* 0x20004C30: push esi */ 4564 esi = ecx; /* 0x20004C31: mov esi, ecx */ 4565 eax = MEM32(esi); /* 0x20004C33: mov eax, dword ptr [esi] */ 4566 ecx = MEM32(eax + 0x4); /* 0x20004C35: mov ecx, dword ptr [eax + 4] */ 4567 eax = MEM32(ecx); /* 0x20004C38: mov eax, dword ptr [ecx] */ 4568 /* cmp eax, ecx */ /* 0x20004C3A: cmp eax, ecx */ 4569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4571 _flag_k = FK_CMP; 4572 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004C54; /* 0x20004C3C: je 0x20004c54 */ 4573 L_20004C3E: 4574 ecx = MEM32(eax + 0x8); /* 0x20004C3E: mov ecx, dword ptr [eax + 8] */ 4575 PUSH32(esp, ecx); /* 0x20004C41: push ecx */ 4576 ecx = esi; /* 0x20004C42: mov ecx, esi */ 4577 RECOMP_ICALL(0x20004BC0u); /* 0x20004C44: call 0x20004bc0 */ /* not lifted */ 4578 RECOMP_FLAGS_IN(); 4579 edx = MEM32(esi); /* 0x20004C49: mov edx, dword ptr [esi] */ 4580 ecx = MEM32(edx + 0x4); /* 0x20004C4B: mov ecx, dword ptr [edx + 4] */ 4581 eax = MEM32(ecx); /* 0x20004C4E: mov eax, dword ptr [ecx] */ 4582 /* cmp eax, ecx */ /* 0x20004C50: cmp eax, ecx */ 4583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4585 _flag_k = FK_CMP; 4586 RECOMP_BACKEDGE(); 4587 if (CMP_NE(_flag_a, _flag_b)) goto L_20004C3E; /* 0x20004C52: jne 0x20004c3e */ 4588 L_20004C54: 4589 esi = POP32_VAL(esp); /* 0x20004C54: pop esi */ 4590 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20004C55: ret */ 4591 RECOMP_REGS_OUT(); 4592 } 4593 4594 void sub_20004C60(void) { 4595 int _fpu_cmp = 0; 4596 uint32_t _cf = 0; 4597 int _df = 1; 4598 uint32_t _flag_k = FK_NONE; 4599 uint32_t _flag_a = 0, _flag_b = 0; 4600 uint32_t _itail_tgt = 0; 4601 RECOMP_REGS_LOCALS 4602 RECOMP_ENTER(0x20004C60u); 4603 4604 L_20004C60: 4605 eax = MEM32(ecx); /* 0x20004C60: mov eax, dword ptr [ecx] */ 4606 PUSH32(esp, esi); /* 0x20004C62: push esi */ 4607 PUSH32(esp, edi); /* 0x20004C63: push edi */ 4608 edi = MEM32(eax + 0x4); /* 0x20004C64: mov edi, dword ptr [eax + 4] */ 4609 esi = MEM32(edi); /* 0x20004C67: mov esi, dword ptr [edi] */ 4610 /* cmp esi, edi */ /* 0x20004C69: cmp esi, edi */ 4611 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4613 _flag_k = FK_CMP; 4614 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004C7B; /* 0x20004C6B: je 0x20004c7b */ 4615 L_20004C6D: 4616 ecx = MEM32(esi + 0x8); /* 0x20004C6D: mov ecx, dword ptr [esi + 8] */ 4617 RECOMP_ICALL(0x20005E30u); /* 0x20004C70: call 0x20005e30 */ /* not lifted */ 4618 RECOMP_FLAGS_IN(); 4619 esi = MEM32(esi); /* 0x20004C75: mov esi, dword ptr [esi] */ 4620 /* cmp esi, edi */ /* 0x20004C77: cmp esi, edi */ 4621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4623 _flag_k = FK_CMP; 4624 RECOMP_BACKEDGE(); 4625 if (CMP_NE(_flag_a, _flag_b)) goto L_20004C6D; /* 0x20004C79: jne 0x20004c6d */ 4626 L_20004C7B: 4627 edi = POP32_VAL(esp); /* 0x20004C7B: pop edi */ 4628 esi = POP32_VAL(esp); /* 0x20004C7C: pop esi */ 4629 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20004C7D: ret */ 4630 RECOMP_REGS_OUT(); 4631 } 4632 4633 void sub_20004C80(void) { 4634 int _fpu_cmp = 0; 4635 uint32_t _cf = 0; 4636 int _df = 1; 4637 uint32_t _flag_k = FK_NONE; 4638 uint32_t _flag_a = 0, _flag_b = 0; 4639 uint32_t _itail_tgt = 0; 4640 RECOMP_REGS_LOCALS 4641 RECOMP_ENTER(0x20004C80u); 4642 4643 L_20004C80: 4644 PUSH32(esp, esi); /* 0x20004C80: push esi */ 4645 PUSH32(esp, edi); /* 0x20004C81: push edi */ 4646 edi = ecx; /* 0x20004C82: mov edi, ecx */ 4647 eax = MEM32(edi); /* 0x20004C84: mov eax, dword ptr [edi] */ 4648 eax = MEM32(eax + 0x4); /* 0x20004C86: mov eax, dword ptr [eax + 4] */ 4649 esi = MEM32(eax); /* 0x20004C89: mov esi, dword ptr [eax] */ 4650 /* cmp esi, eax */ /* 0x20004C8B: cmp esi, eax */ 4651 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4653 _flag_k = FK_CMP; 4654 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004CA0; /* 0x20004C8D: je 0x20004ca0 */ 4655 L_20004C8F: 4656 ecx = MEM32(esi + 0x8); /* 0x20004C8F: mov ecx, dword ptr [esi + 8] */ 4657 RECOMP_ICALL(0x20005E60u); /* 0x20004C92: call 0x20005e60 */ /* not lifted */ 4658 RECOMP_FLAGS_IN(); 4659 ecx = MEM32(edi); /* 0x20004C97: mov ecx, dword ptr [edi] */ 4660 esi = MEM32(esi); /* 0x20004C99: mov esi, dword ptr [esi] */ 4661 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x20004C9B: cmp esi, dword ptr [ecx + 4] */ 4662 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4664 _flag_k = FK_CMP; 4665 RECOMP_BACKEDGE(); 4666 if (CMP_NE(_flag_a, _flag_b)) goto L_20004C8F; /* 0x20004C9E: jne 0x20004c8f */ 4667 L_20004CA0: 4668 edi = POP32_VAL(esp); /* 0x20004CA0: pop edi */ 4669 esi = POP32_VAL(esp); /* 0x20004CA1: pop esi */ 4670 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20004CA2: ret */ 4671 RECOMP_REGS_OUT(); 4672 } 4673 4674 void sub_20004CB0(void) { 4675 int _fpu_cmp = 0; 4676 uint32_t _cf = 0; 4677 int _df = 1; 4678 uint32_t _flag_k = FK_NONE; 4679 uint32_t _flag_a = 0, _flag_b = 0; 4680 uint32_t _itail_tgt = 0; 4681 RECOMP_REGS_LOCALS 4682 RECOMP_ENTER(0x20004CB0u); 4683 4684 L_20004CB0: 4685 PUSH32(esp, ebp); /* 0x20004CB0: push ebp */ 4686 ebp = esp; /* 0x20004CB1: mov ebp, esp */ 4687 eax = MEM32(ecx); /* 0x20004CB3: mov eax, dword ptr [ecx] */ 4688 ecx = MEM32(eax + 0x4); /* 0x20004CB5: mov ecx, dword ptr [eax + 4] */ 4689 eax = MEM32(ecx); /* 0x20004CB8: mov eax, dword ptr [ecx] */ 4690 /* cmp eax, ecx */ /* 0x20004CBA: cmp eax, ecx */ 4691 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4692 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4693 _flag_k = FK_CMP; 4694 PUSH32(esp, esi); /* 0x20004CBC: push esi */ 4695 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004CCF; /* 0x20004CBD: je 0x20004ccf */ 4696 L_20004CBF: 4697 edx = MEM32(ebp + 0x8); /* 0x20004CBF: mov edx, dword ptr [ebp + 8] */ 4698 L_20004CC2: 4699 esi = MEM32(eax + 0x8); /* 0x20004CC2: mov esi, dword ptr [eax + 8] */ 4700 /* cmp MEM32(esi), edx */ /* 0x20004CC5: cmp dword ptr [esi], edx */ 4701 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(edx); 4702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4703 _flag_k = FK_CMP; 4704 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004CD6; /* 0x20004CC7: je 0x20004cd6 */ 4705 L_20004CC9: 4706 eax = MEM32(eax); /* 0x20004CC9: mov eax, dword ptr [eax] */ 4707 /* cmp eax, ecx */ /* 0x20004CCB: cmp eax, ecx */ 4708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4710 _flag_k = FK_CMP; 4711 RECOMP_BACKEDGE(); 4712 if (CMP_NE(_flag_a, _flag_b)) goto L_20004CC2; /* 0x20004CCD: jne 0x20004cc2 */ 4713 L_20004CCF: 4714 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4715 eax = 0; /* 0x20004CCF: xor eax, eax */ 4716 _cf = 0; 4717 _flag_k = FK_TEST; 4718 esi = POP32_VAL(esp); /* 0x20004CD1: pop esi */ 4719 ebp = POP32_VAL(esp); /* 0x20004CD2: pop ebp */ 4720 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004CD3: ret 4 */ 4721 L_20004CD6: 4722 eax = MEM32(eax + 0x8); /* 0x20004CD6: mov eax, dword ptr [eax + 8] */ 4723 esi = POP32_VAL(esp); /* 0x20004CD9: pop esi */ 4724 ebp = POP32_VAL(esp); /* 0x20004CDA: pop ebp */ 4725 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004CDB: ret 4 */ 4726 RECOMP_REGS_OUT(); 4727 } 4728 4729 void sub_20004CE0(void) { 4730 int _fpu_cmp = 0; 4731 uint32_t _cf = 0; 4732 int _df = 1; 4733 uint32_t _flag_k = FK_NONE; 4734 uint32_t _flag_a = 0, _flag_b = 0; 4735 uint32_t _itail_tgt = 0; 4736 RECOMP_REGS_LOCALS 4737 RECOMP_ENTER(0x20004CE0u); 4738 4739 L_20004CE0: 4740 PUSH32(esp, ebp); /* 0x20004CE0: push ebp */ 4741 ebp = esp; /* 0x20004CE1: mov ebp, esp */ 4742 eax = MEM32(ecx); /* 0x20004CE3: mov eax, dword ptr [ecx] */ 4743 PUSH32(esp, ebx); /* 0x20004CE5: push ebx */ 4744 PUSH32(esp, esi); /* 0x20004CE6: push esi */ 4745 PUSH32(esp, edi); /* 0x20004CE7: push edi */ 4746 edi = MEM32(eax + 0x4); /* 0x20004CE8: mov edi, dword ptr [eax + 4] */ 4747 esi = MEM32(edi); /* 0x20004CEB: mov esi, dword ptr [edi] */ 4748 /* cmp esi, edi */ /* 0x20004CED: cmp esi, edi */ 4749 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4751 _flag_k = FK_CMP; 4752 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004D07; /* 0x20004CEF: je 0x20004d07 */ 4753 L_20004CF1: 4754 ebx = MEM32(ebp + 0x8); /* 0x20004CF1: mov ebx, dword ptr [ebp + 8] */ 4755 L_20004CF4: 4756 ecx = MEM32(esi + 0x8); /* 0x20004CF4: mov ecx, dword ptr [esi + 8] */ 4757 PUSH32(esp, ebx); /* 0x20004CF7: push ebx */ 4758 RECOMP_ICALL(0x20005F20u); /* 0x20004CF8: call 0x20005f20 */ /* not lifted */ 4759 RECOMP_FLAGS_IN(); 4760 /* test eax, eax */ /* 0x20004CFD: test eax, eax */ 4761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4762 _cf = 0; 4763 _flag_k = FK_TEST; 4764 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004D09; /* 0x20004CFF: jne 0x20004d09 */ 4765 L_20004D01: 4766 esi = MEM32(esi); /* 0x20004D01: mov esi, dword ptr [esi] */ 4767 /* cmp esi, edi */ /* 0x20004D03: cmp esi, edi */ 4768 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4769 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4770 _flag_k = FK_CMP; 4771 RECOMP_BACKEDGE(); 4772 if (CMP_NE(_flag_a, _flag_b)) goto L_20004CF4; /* 0x20004D05: jne 0x20004cf4 */ 4773 L_20004D07: 4774 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4775 eax = 0; /* 0x20004D07: xor eax, eax */ 4776 _cf = 0; 4777 _flag_k = FK_TEST; 4778 L_20004D09: 4779 edi = POP32_VAL(esp); /* 0x20004D09: pop edi */ 4780 esi = POP32_VAL(esp); /* 0x20004D0A: pop esi */ 4781 ebx = POP32_VAL(esp); /* 0x20004D0B: pop ebx */ 4782 ebp = POP32_VAL(esp); /* 0x20004D0C: pop ebp */ 4783 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x20004D0D: ret 4 */ 4784 RECOMP_REGS_OUT(); 4785 } 4786 4787 void sub_20004D10(void) { 4788 int _fpu_cmp = 0; 4789 uint32_t _cf = 0; 4790 int _df = 1; 4791 uint32_t _flag_k = FK_NONE; 4792 uint32_t _flag_a = 0, _flag_b = 0; 4793 uint32_t _itail_tgt = 0; 4794 RECOMP_REGS_LOCALS 4795 RECOMP_ENTER(0x20004D10u); 4796 4797 L_20004D10: 4798 PUSH32(esp, ebp); /* 0x20004D10: push ebp */ 4799 ebp = esp; /* 0x20004D11: mov ebp, esp */ 4800 PUSH32(esp, ecx); /* 0x20004D13: push ecx */ 4801 PUSH32(esp, ebx); /* 0x20004D14: push ebx */ 4802 PUSH32(esp, esi); /* 0x20004D15: push esi */ 4803 PUSH32(esp, edi); /* 0x20004D16: push edi */ 4804 edi = MEM32(ecx); /* 0x20004D17: mov edi, dword ptr [ecx] */ 4805 /* cmp MEM32(edi + 0x8), 2 */ /* 0x20004D19: cmp dword ptr [edi + 8], 2 */ 4806 _flag_a = (uint32_t)(MEM32(edi + 0x8)); _flag_b = (uint32_t)(2); 4807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4808 _flag_k = FK_CMP; 4809 MEM32(ebp + (-0x4)) = ecx; /* 0x20004D1D: mov dword ptr [ebp - 4], ecx */ 4810 if (CMP_B(_flag_a, _flag_b)) goto L_20004D48; /* 0x20004D20: jb 0x20004d48 */ 4811 L_20004D22: 4812 ebx = MEM32(edi + 0x4); /* 0x20004D22: mov ebx, dword ptr [edi + 4] */ 4813 eax = MEM32(ebx); /* 0x20004D25: mov eax, dword ptr [ebx] */ 4814 esi = MEM32(eax); /* 0x20004D27: mov esi, dword ptr [eax] */ 4815 /* cmp esi, ebx */ /* 0x20004D29: cmp esi, ebx */ 4816 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4818 _flag_k = FK_CMP; 4819 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004D48; /* 0x20004D2B: je 0x20004d48 */ 4820 L_20004D2D: 4821 ecx = MEM32(edi + 0x4); /* 0x20004D2D: mov ecx, dword ptr [edi + 4] */ 4822 ecx = MEM32(ecx); /* 0x20004D30: mov ecx, dword ptr [ecx] */ 4823 eax = esi; /* 0x20004D32: mov eax, esi */ 4824 esi = MEM32(esi); /* 0x20004D34: mov esi, dword ptr [esi] */ 4825 PUSH32(esp, esi); /* 0x20004D36: push esi */ 4826 PUSH32(esp, eax); /* 0x20004D37: push eax */ 4827 PUSH32(esp, edi); /* 0x20004D38: push edi */ 4828 PUSH32(esp, ecx); /* 0x20004D39: push ecx */ 4829 ecx = edi; /* 0x20004D3A: mov ecx, edi */ 4830 RECOMP_ICALL(0x20004DE0u); /* 0x20004D3C: call 0x20004de0 */ /* not lifted */ 4831 RECOMP_FLAGS_IN(); 4832 /* cmp esi, ebx */ /* 0x20004D41: cmp esi, ebx */ 4833 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4835 _flag_k = FK_CMP; 4836 RECOMP_BACKEDGE(); 4837 if (CMP_NE(_flag_a, _flag_b)) goto L_20004D2D; /* 0x20004D43: jne 0x20004d2d */ 4838 L_20004D45: 4839 ecx = MEM32(ebp + (-0x4)); /* 0x20004D45: mov ecx, dword ptr [ebp - 4] */ 4840 L_20004D48: 4841 edx = MEM32(ecx); /* 0x20004D48: mov edx, dword ptr [ecx] */ 4842 edx = MEM32(edx + 0x4); /* 0x20004D4A: mov edx, dword ptr [edx + 4] */ 4843 eax = MEM32(edx); /* 0x20004D4D: mov eax, dword ptr [edx] */ 4844 /* cmp eax, edx */ /* 0x20004D4F: cmp eax, edx */ 4845 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4847 _flag_k = FK_CMP; 4848 edi = POP32_VAL(esp); /* 0x20004D51: pop edi */ 4849 esi = POP32_VAL(esp); /* 0x20004D52: pop esi */ 4850 ebx = POP32_VAL(esp); /* 0x20004D53: pop ebx */ 4851 if (CMP_EQ(_flag_a, _flag_b)) goto L_20004D72; /* 0x20004D54: je 0x20004d72 */ 4852 L_20004D56: 4853 goto L_20004D5B; /* 0x20004D56: jmp 0x20004d5b */ 4854 L_20004D58: 4855 ecx = MEM32(ebp + (-0x4)); /* 0x20004D58: mov ecx, dword ptr [ebp - 4] */ 4856 L_20004D5B: 4857 eax = MEM32(eax + 0x8); /* 0x20004D5B: mov eax, dword ptr [eax + 8] */ 4858 PUSH32(esp, eax); /* 0x20004D5E: push eax */ 4859 RECOMP_ICALL(0x20004BC0u); /* 0x20004D5F: call 0x20004bc0 */ /* not lifted */ 4860 RECOMP_FLAGS_IN(); 4861 ecx = MEM32(ebp + (-0x4)); /* 0x20004D64: mov ecx, dword ptr [ebp - 4] */ 4862 edx = MEM32(ecx); /* 0x20004D67: mov edx, dword ptr [ecx] */ 4863 ecx = MEM32(edx + 0x4); /* 0x20004D69: mov ecx, dword ptr [edx + 4] */ 4864 eax = MEM32(ecx); /* 0x20004D6C: mov eax, dword ptr [ecx] */ 4865 /* cmp eax, ecx */ /* 0x20004D6E: cmp eax, ecx */ 4866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4868 _flag_k = FK_CMP; 4869 RECOMP_BACKEDGE(); 4870 if (CMP_NE(_flag_a, _flag_b)) goto L_20004D58; /* 0x20004D70: jne 0x20004d58 */ 4871 L_20004D72: 4872 esp = ebp; /* 0x20004D72: mov esp, ebp */ 4873 ebp = POP32_VAL(esp); /* 0x20004D74: pop ebp */ 4874 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20004D75: ret */ 4875 RECOMP_REGS_OUT(); 4876 } 4877 4878 void sub_20004D80(void) { 4879 int _fpu_cmp = 0; 4880 uint32_t _cf = 0; 4881 int _df = 1; 4882 uint32_t _flag_k = FK_NONE; 4883 uint32_t _flag_a = 0, _flag_b = 0; 4884 uint32_t _itail_tgt = 0; 4885 RECOMP_REGS_LOCALS 4886 RECOMP_ENTER(0x20004D80u); 4887 4888 L_20004D80: 4889 PUSH32(esp, edi); /* 0x20004D80: push edi */ 4890 edi = ecx; /* 0x20004D81: mov edi, ecx */ 4891 eax = MEM32(edi); /* 0x20004D83: mov eax, dword ptr [edi] */ 4892 ecx = MEM32(eax + 0x8); /* 0x20004D85: mov ecx, dword ptr [eax + 8] */ 4893 /* test ecx, ecx */ /* 0x20004D88: test ecx, ecx */ 4894 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4895 _cf = 0; 4896 _flag_k = FK_TEST; 4897 if (TEST_Z(_flag_a, _flag_b)) goto L_20004DD9; /* 0x20004D8A: je 0x20004dd9 */ 4898 L_20004D8C: 4899 PUSH32(esp, esi); /* 0x20004D8C: push esi */ 4900 L_20004D8D: 4901 eax = MEM32(eax + 0x4); /* 0x20004D8D: mov eax, dword ptr [eax + 4] */ 4902 eax = MEM32(eax); /* 0x20004D90: mov eax, dword ptr [eax] */ 4903 esi = MEM32(eax + 0x8); /* 0x20004D92: mov esi, dword ptr [eax + 8] */ 4904 /* test esi, esi */ /* 0x20004D95: test esi, esi */ 4905 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4906 _cf = 0; 4907 _flag_k = FK_TEST; 4908 if (TEST_Z(_flag_a, _flag_b)) goto L_20004DA9; /* 0x20004D97: je 0x20004da9 */ 4909 L_20004D99: 4910 ecx = esi; /* 0x20004D99: mov ecx, esi */ 4911 RECOMP_ICALL(0x20005C50u); /* 0x20004D9B: call 0x20005c50 */ /* not lifted */ 4912 RECOMP_FLAGS_IN(); 4913 PUSH32(esp, esi); /* 0x20004DA0: push esi */ 4914 RECOMP_ICALL(0x20007270u); /* 0x20004DA1: call 0x20007270 */ /* not lifted */ 4915 RECOMP_FLAGS_IN(); 4916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4918 esp = esp + 4; /* 0x20004DA6: add esp, 4 */ 4919 _flag_k = FK_ADD; 4920 L_20004DA9: 4921 esi = MEM32(edi); /* 0x20004DA9: mov esi, dword ptr [edi] */ 4922 ecx = MEM32(esi + 0x4); /* 0x20004DAB: mov ecx, dword ptr [esi + 4] */ 4923 eax = MEM32(ecx); /* 0x20004DAE: mov eax, dword ptr [ecx] */ 4924 edx = MEM32(eax + 0x4); /* 0x20004DB0: mov edx, dword ptr [eax + 4] */ 4925 ecx = MEM32(eax); /* 0x20004DB3: mov ecx, dword ptr [eax] */ 4926 MEM32(edx) = ecx; /* 0x20004DB5: mov dword ptr [edx], ecx */ 4927 edx = MEM32(eax); /* 0x20004DB7: mov edx, dword ptr [eax] */ 4928 ecx = MEM32(eax + 0x4); /* 0x20004DB9: mov ecx, dword ptr [eax + 4] */ 4929 PUSH32(esp, eax); /* 0x20004DBC: push eax */ 4930 MEM32(edx + 0x4) = ecx; /* 0x20004DBD: mov dword ptr [edx + 4], ecx */ 4931 RECOMP_ICALL(0x20007270u); /* 0x20004DC0: call 0x20007270 */ /* not lifted */ 4932 RECOMP_FLAGS_IN(); 4933 edx = MEM32(esi + 0x8); /* 0x20004DC5: mov edx, dword ptr [esi + 8] */ 4934 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4935 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4936 esp = esp + 4; /* 0x20004DC8: add esp, 4 */ 4937 _flag_k = FK_ADD; 4938 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4939 edx = edx - 1; /* 0x20004DCB: dec edx */ 4940 _flag_k = FK_DEC; 4941 MEM32(esi + 0x8) = edx; /* 0x20004DCC: mov dword ptr [esi + 8], edx */ 4942 eax = MEM32(edi); /* 0x20004DCF: mov eax, dword ptr [edi] */ 4943 ecx = MEM32(eax + 0x8); /* 0x20004DD1: mov ecx, dword ptr [eax + 8] */ 4944 /* test ecx, ecx */ /* 0x20004DD4: test ecx, ecx */ 4945 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4946 _cf = 0; 4947 _flag_k = FK_TEST; 4948 RECOMP_BACKEDGE(); 4949 if (TEST_NZ(_flag_a, _flag_b)) goto L_20004D8D; /* 0x20004DD6: jne 0x20004d8d */ 4950 L_20004DD8: 4951 esi = POP32_VAL(esp); /* 0x20004DD8: pop esi */ 4952 L_20004DD9: 4953 edi = POP32_VAL(esp); /* 0x20004DD9: pop edi */ 4954 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x20004DDA: ret */ 4955 RECOMP_REGS_OUT(); 4956 } 4957 4958 void sub_20004DE0(void) { 4959 int _fpu_cmp = 0; 4960 uint32_t _cf = 0; 4961 int _df = 1; 4962 uint32_t _flag_k = FK_NONE; 4963 uint32_t _flag_a = 0, _flag_b = 0; 4964 uint32_t _itail_tgt = 0; 4965 RECOMP_REGS_LOCALS 4966 RECOMP_ENTER(0x20004DE0u); 4967 4968 L_20004DE0: 4969 PUSH32(esp, ebp); /* 0x20004DE0: push ebp */ 4970 ebp = esp; /* 0x20004DE1: mov ebp, esp */ 4971 eax = MEM32(ebp + 0x14); /* 0x20004DE3: mov eax, dword ptr [ebp + 0x14] */ 4972 edx = MEM32(eax + 0x4); /* 0x20004DE6: mov edx, dword ptr [eax + 4] */ 4973 ecx = MEM32(ebp + 0x8); /* 0x20004DE9: mov ecx, dword ptr [ebp + 8] */ 4974 MEM32(edx) = ecx; /* 0x20004DEC: mov dword ptr [edx], ecx */ 4975 edx = MEM32(ebp + 0x10); /* 0x20004DEE: mov edx, dword ptr [ebp + 0x10] */ 4976 edx = MEM32(edx + 0x4); /* 0x20004DF1: mov edx, dword ptr [edx + 4] */ 4977 MEM32(edx) = eax; /* 0x20004DF4: mov dword ptr [edx], eax */ 4978 edx = MEM32(ecx + 0x4); /* 0x20004DF6: mov edx, dword ptr [ecx + 4] */ 4979 PUSH32(esp, esi); /* 0x20004DF9: push esi */ 4980 esi = MEM32(ebp + 0x10); /* 0x20004DFA: mov esi, dword ptr [ebp + 0x10] */ 4981 MEM32(edx) = esi; /* 0x20004DFD: mov dword ptr [edx], esi */ 4982 esi = MEM32(eax + 0x4); /* 0x20004DFF: mov esi, dword ptr [eax + 4] */ 4983 edx = MEM32(ecx + 0x4); /* 0x20004E02: mov edx, dword ptr [ecx + 4] */ 4984 MEM32(ecx + 0x4) = esi; /* 0x20004E05: mov dword ptr [ecx + 4], esi */ 4985 ecx = MEM32(ebp + 0x10); /* 0x20004E08: mov ecx, dword ptr [ebp + 0x10] */ 4986 esi = MEM32(ecx + 0x4); /* 0x20004E0B: mov esi, dword ptr [ecx + 4] */ 4987 MEM32(eax + 0x4) = esi; /* 0x20004E0E: mov dword ptr [eax + 4], esi */ 4988 MEM32(ecx + 0x4) = edx; /* 0x20004E11: mov dword ptr [ecx + 4], edx */ 4989 esi = POP32_VAL(esp); /* 0x20004E14: pop esi */ 4990 ebp = POP32_VAL(esp); /* 0x20004E15: pop ebp */ 4991 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x20004E16: ret 0x10 */ 4992 RECOMP_REGS_OUT(); 4993 }