client/game/kkr.dll/lifted-0016.c (560365B)
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_36028260(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(0x36028260u); 17 18 L_36028260: 19 PUSH32(esp, ebp); /* 0x36028260: push ebp */ 20 ebp = esp; /* 0x36028261: mov ebp, esp */ 21 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028263: push -1 */ 22 PUSH32(esp, 0x3616344Bu); /* 0x36028265: push 0x3616344b */ 23 eax = MEM32(FS_BASE + (0)); /* 0x3602826A: mov eax, dword ptr fs:[0] */ 24 PUSH32(esp, eax); /* 0x36028270: push eax */ 25 MEM32(FS_BASE + (0)) = esp; /* 0x36028271: mov dword ptr fs:[0], esp */ 26 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 27 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 28 esp = esp - 8; /* 0x36028278: sub esp, 8 */ 29 _flag_k = FK_CMP; 30 PUSH32(esp, edi); /* 0x3602827B: push edi */ 31 RECOMP_ICALL(0x3601F240u); /* 0x3602827C: call 0x3601f240 */ /* not lifted */ 32 RECOMP_FLAGS_IN(); 33 edi = eax; /* 0x36028281: mov edi, eax */ 34 /* test edi, edi */ /* 0x36028283: test edi, edi */ 35 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 36 _cf = 0; 37 _flag_k = FK_TEST; 38 if (TEST_Z(_flag_a, _flag_b)) goto L_360282D7; /* 0x36028285: je 0x360282d7 */ 39 L_36028287: 40 PUSH32(esp, ebx); /* 0x36028287: push ebx */ 41 PUSH32(esp, esi); /* 0x36028288: push esi */ 42 ecx = edi; /* 0x36028289: mov ecx, edi */ 43 ebx = edi + 0x4; /* 0x3602828B: lea ebx, [edi + 4] */ 44 RECOMP_ICALL(0x36072000u); /* 0x3602828E: call 0x36072000 */ /* not lifted */ 45 RECOMP_FLAGS_IN(); 46 esi = eax; /* 0x36028293: mov esi, eax */ 47 PUSH32(esp, 0x3Cu); /* 0x36028295: push 0x3c */ 48 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x70u); 49 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 50 esi = esi + 0x70u; /* 0x36028297: add esi, 0x70 */ 51 _flag_k = FK_ADD; 52 RECOMP_ICALL(0x3615FD6Au); /* 0x3602829A: call 0x3615fd6a */ /* not lifted */ 53 RECOMP_FLAGS_IN(); 54 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 55 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 56 esp = esp + 4; /* 0x3602829F: add esp, 4 */ 57 _flag_k = FK_ADD; 58 MEM32(ebp + (-0x14)) = eax; /* 0x360282A2: mov dword ptr [ebp - 0x14], eax */ 59 /* test eax, eax */ /* 0x360282A5: test eax, eax */ 60 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 61 _cf = 0; 62 _flag_k = FK_TEST; 63 MEM32(ebp + (-0x4)) = 0; /* 0x360282A7: mov dword ptr [ebp - 4], 0 */ 64 if (TEST_Z(_flag_a, _flag_b)) goto L_360282BD; /* 0x360282AE: je 0x360282bd */ 65 L_360282B0: 66 PUSH32(esp, esi); /* 0x360282B0: push esi */ 67 PUSH32(esp, 6); /* 0x360282B1: push 6 */ 68 PUSH32(esp, ebx); /* 0x360282B3: push ebx */ 69 ecx = eax; /* 0x360282B4: mov ecx, eax */ 70 RECOMP_ICALL(0x36151CD0u); /* 0x360282B6: call 0x36151cd0 */ /* not lifted */ 71 RECOMP_FLAGS_IN(); 72 goto L_360282BF; /* 0x360282BB: jmp 0x360282bf */ 73 L_360282BD: 74 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 75 eax = 0; /* 0x360282BD: xor eax, eax */ 76 _cf = 0; 77 _flag_k = FK_TEST; 78 L_360282BF: 79 MEM32(ebp + (-0x10)) = eax; /* 0x360282BF: mov dword ptr [ebp - 0x10], eax */ 80 eax = ebp + (-0x10); /* 0x360282C2: lea eax, [ebp - 0x10] */ 81 PUSH32(esp, eax); /* 0x360282C5: push eax */ 82 ecx = edi; /* 0x360282C6: mov ecx, edi */ 83 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360282C8: mov dword ptr [ebp - 4], 0xffffffff */ 84 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360282CF: call dword ptr [0x3617004c] */ 85 RECOMP_FLAGS_IN(); 86 esi = POP32_VAL(esp); /* 0x360282D5: pop esi */ 87 ebx = POP32_VAL(esp); /* 0x360282D6: pop ebx */ 88 L_360282D7: 89 ecx = MEM32(ebp + (-0xC)); /* 0x360282D7: mov ecx, dword ptr [ebp - 0xc] */ 90 edi = POP32_VAL(esp); /* 0x360282DA: pop edi */ 91 MEM32(FS_BASE + (0)) = ecx; /* 0x360282DB: mov dword ptr fs:[0], ecx */ 92 esp = ebp; /* 0x360282E2: mov esp, ebp */ 93 ebp = POP32_VAL(esp); /* 0x360282E4: pop ebp */ 94 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360282E5: ret */ 95 RECOMP_REGS_OUT(); 96 } 97 98 void sub_360282F0(void) { 99 int _fpu_cmp = 0; 100 uint32_t _cf = 0; 101 int _df = 1; 102 uint32_t _flag_k = FK_NONE; 103 uint32_t _flag_a = 0, _flag_b = 0; 104 uint32_t _itail_tgt = 0; 105 RECOMP_REGS_LOCALS 106 RECOMP_ENTER(0x360282F0u); 107 108 L_360282F0: 109 PUSH32(esp, ebp); /* 0x360282F0: push ebp */ 110 ebp = esp; /* 0x360282F1: mov ebp, esp */ 111 PUSH32(esp, 0xFFFFFFFFu); /* 0x360282F3: push -1 */ 112 PUSH32(esp, 0x3616346Bu); /* 0x360282F5: push 0x3616346b */ 113 eax = MEM32(FS_BASE + (0)); /* 0x360282FA: mov eax, dword ptr fs:[0] */ 114 PUSH32(esp, eax); /* 0x36028300: push eax */ 115 MEM32(FS_BASE + (0)) = esp; /* 0x36028301: mov dword ptr fs:[0], esp */ 116 PUSH32(esp, ecx); /* 0x36028308: push ecx */ 117 PUSH32(esp, esi); /* 0x36028309: push esi */ 118 RECOMP_ICALL(0x3601F240u); /* 0x3602830A: call 0x3601f240 */ /* not lifted */ 119 RECOMP_FLAGS_IN(); 120 esi = eax; /* 0x3602830F: mov esi, eax */ 121 /* test esi, esi */ /* 0x36028311: test esi, esi */ 122 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 123 _cf = 0; 124 _flag_k = FK_TEST; 125 if (TEST_Z(_flag_a, _flag_b)) goto L_36028369; /* 0x36028313: je 0x36028369 */ 126 L_36028315: 127 SET_LO8(edx, MEM8(ebp + 0xC)); /* 0x36028315: mov dl, byte ptr [ebp + 0xc] */ 128 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 129 eax = 0; /* 0x36028318: xor eax, eax */ 130 _cf = 0; 131 _flag_k = FK_TEST; 132 /* cmp LO8(edx), 1 */ /* 0x3602831A: cmp dl, 1 */ 133 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(1) << 24; 134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 135 _flag_k = FK_NARROW(FK_CMP, 24); 136 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x3602831D: setne al */ 137 PUSH32(esp, edi); /* 0x36028320: push edi */ 138 PUSH32(esp, 0x3Cu); /* 0x36028321: push 0x3c */ 139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Du); 140 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 141 eax = eax + 0x1Du; /* 0x36028323: add eax, 0x1d */ 142 _flag_k = FK_ADD; 143 edi = eax; /* 0x36028326: mov edi, eax */ 144 RECOMP_ICALL(0x3615FD6Au); /* 0x36028328: call 0x3615fd6a */ /* not lifted */ 145 RECOMP_FLAGS_IN(); 146 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 147 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 148 esp = esp + 4; /* 0x3602832D: add esp, 4 */ 149 _flag_k = FK_ADD; 150 MEM32(ebp + (-0x10)) = eax; /* 0x36028330: mov dword ptr [ebp - 0x10], eax */ 151 /* test eax, eax */ /* 0x36028333: test eax, eax */ 152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 153 _cf = 0; 154 _flag_k = FK_TEST; 155 MEM32(ebp + (-0x4)) = 0; /* 0x36028335: mov dword ptr [ebp - 4], 0 */ 156 if (TEST_Z(_flag_a, _flag_b)) goto L_36028350; /* 0x3602833C: je 0x36028350 */ 157 L_3602833E: 158 ecx = MEM32(ebp + 0x8); /* 0x3602833E: mov ecx, dword ptr [ebp + 8] */ 159 PUSH32(esp, ecx); /* 0x36028341: push ecx */ 160 PUSH32(esp, edi); /* 0x36028342: push edi */ 161 edx = esi + 0x4; /* 0x36028343: lea edx, [esi + 4] */ 162 PUSH32(esp, edx); /* 0x36028346: push edx */ 163 ecx = eax; /* 0x36028347: mov ecx, eax */ 164 RECOMP_ICALL(0x36151CD0u); /* 0x36028349: call 0x36151cd0 */ /* not lifted */ 165 RECOMP_FLAGS_IN(); 166 goto L_36028352; /* 0x3602834E: jmp 0x36028352 */ 167 L_36028350: 168 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 169 eax = 0; /* 0x36028350: xor eax, eax */ 170 _cf = 0; 171 _flag_k = FK_TEST; 172 L_36028352: 173 MEM32(ebp + 0xC) = eax; /* 0x36028352: mov dword ptr [ebp + 0xc], eax */ 174 eax = ebp + 0xC; /* 0x36028355: lea eax, [ebp + 0xc] */ 175 PUSH32(esp, eax); /* 0x36028358: push eax */ 176 ecx = esi; /* 0x36028359: mov ecx, esi */ 177 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602835B: mov dword ptr [ebp - 4], 0xffffffff */ 178 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36028362: call dword ptr [0x3617004c] */ 179 RECOMP_FLAGS_IN(); 180 edi = POP32_VAL(esp); /* 0x36028368: pop edi */ 181 L_36028369: 182 ecx = MEM32(ebp + (-0xC)); /* 0x36028369: mov ecx, dword ptr [ebp - 0xc] */ 183 esi = POP32_VAL(esp); /* 0x3602836C: pop esi */ 184 MEM32(FS_BASE + (0)) = ecx; /* 0x3602836D: mov dword ptr fs:[0], ecx */ 185 esp = ebp; /* 0x36028374: mov esp, ebp */ 186 ebp = POP32_VAL(esp); /* 0x36028376: pop ebp */ 187 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36028377: ret 8 */ 188 RECOMP_REGS_OUT(); 189 } 190 191 void sub_36028380(void) { 192 int _fpu_cmp = 0; 193 uint32_t _cf = 0; 194 int _df = 1; 195 uint32_t _flag_k = FK_NONE; 196 uint32_t _flag_a = 0, _flag_b = 0; 197 uint32_t _itail_tgt = 0; 198 RECOMP_REGS_LOCALS 199 RECOMP_ENTER(0x36028380u); 200 201 L_36028380: 202 PUSH32(esp, ebp); /* 0x36028380: push ebp */ 203 ebp = esp; /* 0x36028381: mov ebp, esp */ 204 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028383: push -1 */ 205 PUSH32(esp, 0x3616348Bu); /* 0x36028385: push 0x3616348b */ 206 eax = MEM32(FS_BASE + (0)); /* 0x3602838A: mov eax, dword ptr fs:[0] */ 207 PUSH32(esp, eax); /* 0x36028390: push eax */ 208 MEM32(FS_BASE + (0)) = esp; /* 0x36028391: mov dword ptr fs:[0], esp */ 209 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 211 esp = esp - 8; /* 0x36028398: sub esp, 8 */ 212 _flag_k = FK_CMP; 213 PUSH32(esp, edi); /* 0x3602839B: push edi */ 214 RECOMP_ICALL(0x3601F240u); /* 0x3602839C: call 0x3601f240 */ /* not lifted */ 215 RECOMP_FLAGS_IN(); 216 edi = eax; /* 0x360283A1: mov edi, eax */ 217 /* test edi, edi */ /* 0x360283A3: test edi, edi */ 218 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 219 _cf = 0; 220 _flag_k = FK_TEST; 221 if (TEST_Z(_flag_a, _flag_b)) goto L_360283F7; /* 0x360283A5: je 0x360283f7 */ 222 L_360283A7: 223 PUSH32(esp, ebx); /* 0x360283A7: push ebx */ 224 PUSH32(esp, esi); /* 0x360283A8: push esi */ 225 ecx = edi; /* 0x360283A9: mov ecx, edi */ 226 ebx = edi + 0x4; /* 0x360283AB: lea ebx, [edi + 4] */ 227 RECOMP_ICALL(0x36072000u); /* 0x360283AE: call 0x36072000 */ /* not lifted */ 228 RECOMP_FLAGS_IN(); 229 esi = eax; /* 0x360283B3: mov esi, eax */ 230 PUSH32(esp, 0x3Cu); /* 0x360283B5: push 0x3c */ 231 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x70u); 232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 233 esi = esi + 0x70u; /* 0x360283B7: add esi, 0x70 */ 234 _flag_k = FK_ADD; 235 RECOMP_ICALL(0x3615FD6Au); /* 0x360283BA: call 0x3615fd6a */ /* not lifted */ 236 RECOMP_FLAGS_IN(); 237 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 239 esp = esp + 4; /* 0x360283BF: add esp, 4 */ 240 _flag_k = FK_ADD; 241 MEM32(ebp + (-0x14)) = eax; /* 0x360283C2: mov dword ptr [ebp - 0x14], eax */ 242 /* test eax, eax */ /* 0x360283C5: test eax, eax */ 243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 244 _cf = 0; 245 _flag_k = FK_TEST; 246 MEM32(ebp + (-0x4)) = 0; /* 0x360283C7: mov dword ptr [ebp - 4], 0 */ 247 if (TEST_Z(_flag_a, _flag_b)) goto L_360283DD; /* 0x360283CE: je 0x360283dd */ 248 L_360283D0: 249 PUSH32(esp, esi); /* 0x360283D0: push esi */ 250 PUSH32(esp, 0x10u); /* 0x360283D1: push 0x10 */ 251 PUSH32(esp, ebx); /* 0x360283D3: push ebx */ 252 ecx = eax; /* 0x360283D4: mov ecx, eax */ 253 RECOMP_ICALL(0x36151CD0u); /* 0x360283D6: call 0x36151cd0 */ /* not lifted */ 254 RECOMP_FLAGS_IN(); 255 goto L_360283DF; /* 0x360283DB: jmp 0x360283df */ 256 L_360283DD: 257 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 258 eax = 0; /* 0x360283DD: xor eax, eax */ 259 _cf = 0; 260 _flag_k = FK_TEST; 261 L_360283DF: 262 MEM32(ebp + (-0x10)) = eax; /* 0x360283DF: mov dword ptr [ebp - 0x10], eax */ 263 eax = ebp + (-0x10); /* 0x360283E2: lea eax, [ebp - 0x10] */ 264 PUSH32(esp, eax); /* 0x360283E5: push eax */ 265 ecx = edi; /* 0x360283E6: mov ecx, edi */ 266 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360283E8: mov dword ptr [ebp - 4], 0xffffffff */ 267 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360283EF: call dword ptr [0x3617004c] */ 268 RECOMP_FLAGS_IN(); 269 esi = POP32_VAL(esp); /* 0x360283F5: pop esi */ 270 ebx = POP32_VAL(esp); /* 0x360283F6: pop ebx */ 271 L_360283F7: 272 ecx = MEM32(ebp + (-0xC)); /* 0x360283F7: mov ecx, dword ptr [ebp - 0xc] */ 273 edi = POP32_VAL(esp); /* 0x360283FA: pop edi */ 274 MEM32(FS_BASE + (0)) = ecx; /* 0x360283FB: mov dword ptr fs:[0], ecx */ 275 esp = ebp; /* 0x36028402: mov esp, ebp */ 276 ebp = POP32_VAL(esp); /* 0x36028404: pop ebp */ 277 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36028405: ret */ 278 RECOMP_REGS_OUT(); 279 } 280 281 void sub_36028410(void) { 282 int _fpu_cmp = 0; 283 uint32_t _cf = 0; 284 int _df = 1; 285 uint32_t _flag_k = FK_NONE; 286 uint32_t _flag_a = 0, _flag_b = 0; 287 uint32_t _itail_tgt = 0; 288 RECOMP_REGS_LOCALS 289 RECOMP_ENTER(0x36028410u); 290 291 L_36028410: 292 PUSH32(esp, ebp); /* 0x36028410: push ebp */ 293 ebp = esp; /* 0x36028411: mov ebp, esp */ 294 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028413: push -1 */ 295 PUSH32(esp, 0x361634A8u); /* 0x36028415: push 0x361634a8 */ 296 eax = MEM32(FS_BASE + (0)); /* 0x3602841A: mov eax, dword ptr fs:[0] */ 297 PUSH32(esp, eax); /* 0x36028420: push eax */ 298 MEM32(FS_BASE + (0)) = esp; /* 0x36028421: mov dword ptr fs:[0], esp */ 299 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 301 esp = esp - 0x14u; /* 0x36028428: sub esp, 0x14 */ 302 _flag_k = FK_CMP; 303 PUSH32(esp, ebx); /* 0x3602842B: push ebx */ 304 PUSH32(esp, esi); /* 0x3602842C: push esi */ 305 PUSH32(esp, edi); /* 0x3602842D: push edi */ 306 edi = ecx; /* 0x3602842E: mov edi, ecx */ 307 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x36028430: call dword ptr [0x361700dc] */ 308 RECOMP_FLAGS_IN(); 309 esi = eax; /* 0x36028436: mov esi, eax */ 310 eax = MEM32(edi); /* 0x36028438: mov eax, dword ptr [edi] */ 311 ecx = edi; /* 0x3602843A: mov ecx, edi */ 312 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3602843C: call dword ptr [eax + 0x10] */ 313 RECOMP_FLAGS_IN(); 314 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 315 ebx = 0; /* 0x3602843F: xor ebx, ebx */ 316 _cf = 0; 317 _flag_k = FK_TEST; 318 /* cmp esi, ebx */ /* 0x36028441: cmp esi, ebx */ 319 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 320 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 321 _flag_k = FK_CMP; 322 if (CMP_EQ(_flag_a, _flag_b)) goto L_360284FF; /* 0x36028443: je 0x360284ff */ 323 L_36028449: 324 /* cmp eax, ebx */ /* 0x36028449: cmp eax, ebx */ 325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 327 _flag_k = FK_CMP; 328 if (CMP_EQ(_flag_a, _flag_b)) goto L_360284FF; /* 0x3602844B: je 0x360284ff */ 329 L_36028451: 330 SET_LO8(ecx, MEM8(ebp + 0xF)); /* 0x36028451: mov cl, byte ptr [ebp + 0xf] */ 331 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(ecx)); /* 0x36028454: mov byte ptr [ebp - 0x20], cl */ 332 MEM32(ebp + (-0x1C)) = ebx; /* 0x36028457: mov dword ptr [ebp - 0x1c], ebx */ 333 MEM32(ebp + (-0x18)) = ebx; /* 0x3602845A: mov dword ptr [ebp - 0x18], ebx */ 334 MEM32(ebp + (-0x14)) = ebx; /* 0x3602845D: mov dword ptr [ebp - 0x14], ebx */ 335 PUSH32(esp, 0xC350u); /* 0x36028460: push 0xc350 */ 336 PUSH32(esp, 0x41F00000u); /* 0x36028465: push 0x41f00000 */ 337 ecx = eax; /* 0x3602846A: mov ecx, eax */ 338 MEM32(ebp + (-0x4)) = ebx; /* 0x3602846C: mov dword ptr [ebp - 4], ebx */ 339 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602846F: call dword ptr [0x3616ffb0] */ 340 RECOMP_FLAGS_IN(); 341 PUSH32(esp, eax); /* 0x36028475: push eax */ 342 edx = ebp + (-0x20); /* 0x36028476: lea edx, [ebp - 0x20] */ 343 PUSH32(esp, edx); /* 0x36028479: push edx */ 344 ecx = esi; /* 0x3602847A: mov ecx, esi */ 345 RECOMP_ICALL(MEM32(0x361700E8)); /* 0x3602847C: call dword ptr [0x361700e8] */ 346 RECOMP_FLAGS_IN(); 347 eax = MEM32(ebp + (-0x1C)); /* 0x36028482: mov eax, dword ptr [ebp - 0x1c] */ 348 ecx = MEM32(ebp + (-0x18)); /* 0x36028485: mov ecx, dword ptr [ebp - 0x18] */ 349 /* cmp eax, ecx */ /* 0x36028488: cmp eax, ecx */ 350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 352 _flag_k = FK_CMP; 353 edi = eax; /* 0x3602848A: mov edi, eax */ 354 MEM32(ebp + (-0x10)) = ecx; /* 0x3602848C: mov dword ptr [ebp - 0x10], ecx */ 355 if (CMP_EQ(_flag_a, _flag_b)) goto L_360284F6; /* 0x3602848F: je 0x360284f6 */ 356 L_36028491: 357 /* cmp MEM8(ebp + 0xC), LO8(ebx) */ /* 0x36028491: cmp byte ptr [ebp + 0xc], bl */ 358 _flag_a = (uint32_t)(MEM8(ebp + 0xC)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 360 _flag_k = FK_NARROW(FK_CMP, 24); 361 esi = MEM32(edi); /* 0x36028494: mov esi, dword ptr [edi] */ 362 if (CMP_NE(_flag_a, _flag_b)) goto L_360284A4; /* 0x36028496: jne 0x360284a4 */ 363 L_36028498: 364 ecx = esi; /* 0x36028498: mov ecx, esi */ 365 RECOMP_ICALL(MEM32(0x361700D4)); /* 0x3602849A: call dword ptr [0x361700d4] */ 366 RECOMP_FLAGS_IN(); 367 /* test LO8(eax), LO8(eax) */ /* 0x360284A0: test al, al */ 368 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 369 _cf = 0; 370 _flag_k = FK_NARROW(FK_TEST, 24); 371 if (TEST_NZ(_flag_a, _flag_b)) goto L_360284E9; /* 0x360284A2: jne 0x360284e9 */ 372 L_360284A4: 373 /* cmp MEM8(ebp + 0x10), LO8(ebx) */ /* 0x360284A4: cmp byte ptr [ebp + 0x10], bl */ 374 _flag_a = (uint32_t)(MEM8(ebp + 0x10)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 376 _flag_k = FK_NARROW(FK_CMP, 24); 377 if (CMP_NE(_flag_a, _flag_b)) goto L_360284D7; /* 0x360284A7: jne 0x360284d7 */ 378 L_360284A9: 379 ecx = MEM32(esi + 0x188); /* 0x360284A9: mov ecx, dword ptr [esi + 0x188] */ 380 PUSH32(esp, 0x80u); /* 0x360284AF: push 0x80 */ 381 RECOMP_ICALL(0x36059BA0u); /* 0x360284B4: call 0x36059ba0 */ /* not lifted */ 382 RECOMP_FLAGS_IN(); 383 /* test LO8(eax), LO8(eax) */ /* 0x360284B9: test al, al */ 384 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 385 _cf = 0; 386 _flag_k = FK_NARROW(FK_TEST, 24); 387 if (TEST_NZ(_flag_a, _flag_b)) goto L_360284E9; /* 0x360284BB: jne 0x360284e9 */ 388 L_360284BD: 389 eax = MEM32(esi + 0xE4); /* 0x360284BD: mov eax, dword ptr [esi + 0xe4] */ 390 ecx = esi + 0xE4; /* 0x360284C3: lea ecx, [esi + 0xe4] */ 391 PUSH32(esp, 2); /* 0x360284C9: push 2 */ 392 PUSH32(esp, 0xC2u); /* 0x360284CB: push 0xc2 */ 393 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360284D0: call dword ptr [eax + 4] */ 394 RECOMP_FLAGS_IN(); 395 /* test eax, eax */ /* 0x360284D3: test eax, eax */ 396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 397 _cf = 0; 398 _flag_k = FK_TEST; 399 if (TEST_Z(_flag_a, _flag_b)) goto L_360284E9; /* 0x360284D5: je 0x360284e9 */ 400 L_360284D7: 401 ecx = MEM32(ebp + 0x8); /* 0x360284D7: mov ecx, dword ptr [ebp + 8] */ 402 edx = MEM32(ecx + 0x8); /* 0x360284DA: mov edx, dword ptr [ecx + 8] */ 403 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 405 esi = esi + 4; /* 0x360284DD: add esi, 4 */ 406 _flag_k = FK_ADD; 407 PUSH32(esp, esi); /* 0x360284E0: push esi */ 408 PUSH32(esp, 1); /* 0x360284E1: push 1 */ 409 PUSH32(esp, edx); /* 0x360284E3: push edx */ 410 RECOMP_ICALL(0x36029860u); /* 0x360284E4: call 0x36029860 */ /* not lifted */ 411 RECOMP_FLAGS_IN(); 412 L_360284E9: 413 eax = MEM32(ebp + (-0x10)); /* 0x360284E9: mov eax, dword ptr [ebp - 0x10] */ 414 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 415 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 416 edi = edi + 4; /* 0x360284EC: add edi, 4 */ 417 _flag_k = FK_ADD; 418 /* cmp edi, eax */ /* 0x360284EF: cmp edi, eax */ 419 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 421 _flag_k = FK_CMP; 422 RECOMP_BACKEDGE(); 423 if (CMP_NE(_flag_a, _flag_b)) goto L_36028491; /* 0x360284F1: jne 0x36028491 */ 424 L_360284F3: 425 eax = MEM32(ebp + (-0x1C)); /* 0x360284F3: mov eax, dword ptr [ebp - 0x1c] */ 426 L_360284F6: 427 PUSH32(esp, eax); /* 0x360284F6: push eax */ 428 RECOMP_ICALL(0x3615FCC4u); /* 0x360284F7: call 0x3615fcc4 */ /* not lifted */ 429 RECOMP_FLAGS_IN(); 430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 432 esp = esp + 4; /* 0x360284FC: add esp, 4 */ 433 _flag_k = FK_ADD; 434 L_360284FF: 435 ecx = MEM32(ebp + (-0xC)); /* 0x360284FF: mov ecx, dword ptr [ebp - 0xc] */ 436 edi = POP32_VAL(esp); /* 0x36028502: pop edi */ 437 esi = POP32_VAL(esp); /* 0x36028503: pop esi */ 438 ebx = POP32_VAL(esp); /* 0x36028504: pop ebx */ 439 MEM32(FS_BASE + (0)) = ecx; /* 0x36028505: mov dword ptr fs:[0], ecx */ 440 esp = ebp; /* 0x3602850C: mov esp, ebp */ 441 ebp = POP32_VAL(esp); /* 0x3602850E: pop ebp */ 442 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602850F: ret 0xc */ 443 RECOMP_REGS_OUT(); 444 } 445 446 void sub_36028520(void) { 447 int _fpu_cmp = 0; 448 uint32_t _cf = 0; 449 int _df = 1; 450 uint32_t _flag_k = FK_NONE; 451 uint32_t _flag_a = 0, _flag_b = 0; 452 uint32_t _itail_tgt = 0; 453 RECOMP_REGS_LOCALS 454 RECOMP_ENTER(0x36028520u); 455 456 L_36028520: 457 PUSH32(esp, ebp); /* 0x36028520: push ebp */ 458 ebp = esp; /* 0x36028521: mov ebp, esp */ 459 PUSH32(esp, esi); /* 0x36028523: push esi */ 460 RECOMP_ICALL(0x3601F240u); /* 0x36028524: call 0x3601f240 */ /* not lifted */ 461 RECOMP_FLAGS_IN(); 462 /* test eax, eax */ /* 0x36028529: test eax, eax */ 463 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 464 _cf = 0; 465 _flag_k = FK_TEST; 466 if (TEST_Z(_flag_a, _flag_b)) goto L_3602855A; /* 0x3602852B: je 0x3602855a */ 467 L_3602852D: 468 eax = MEM32(eax + 0x150); /* 0x3602852D: mov eax, dword ptr [eax + 0x150] */ 469 esi = MEM32(ebp + 0x8); /* 0x36028533: mov esi, dword ptr [ebp + 8] */ 470 PUSH32(esp, esi); /* 0x36028536: push esi */ 471 ecx = eax; /* 0x36028537: mov ecx, eax */ 472 RECOMP_ICALL(0x36062040u); /* 0x36028539: call 0x36062040 */ /* not lifted */ 473 RECOMP_FLAGS_IN(); 474 /* test eax, eax */ /* 0x3602853E: test eax, eax */ 475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 476 _cf = 0; 477 _flag_k = FK_TEST; 478 if (TEST_Z(_flag_a, _flag_b)) goto L_3602855A; /* 0x36028540: je 0x3602855a */ 479 L_36028542: 480 ecx = MEM32(eax + 0x90); /* 0x36028542: mov ecx, dword ptr [eax + 0x90] */ 481 MEM32(esi) = ecx; /* 0x36028548: mov dword ptr [esi], ecx */ 482 edx = MEM32(eax + 0x94); /* 0x3602854A: mov edx, dword ptr [eax + 0x94] */ 483 MEM32(esi + 0x4) = edx; /* 0x36028550: mov dword ptr [esi + 4], edx */ 484 SET_LO8(eax, 1); /* 0x36028553: mov al, 1 */ 485 esi = POP32_VAL(esp); /* 0x36028555: pop esi */ 486 ebp = POP32_VAL(esp); /* 0x36028556: pop ebp */ 487 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36028557: ret 4 */ 488 L_3602855A: 489 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 490 SET_LO8(eax, 0); /* 0x3602855A: xor al, al */ 491 _cf = 0; 492 _flag_k = FK_NARROW(FK_TEST, 24); 493 esi = POP32_VAL(esp); /* 0x3602855C: pop esi */ 494 ebp = POP32_VAL(esp); /* 0x3602855D: pop ebp */ 495 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602855E: ret 4 */ 496 RECOMP_REGS_OUT(); 497 } 498 499 void sub_36028570(void) { 500 int _fpu_cmp = 0; 501 uint32_t _cf = 0; 502 int _df = 1; 503 uint32_t _flag_k = FK_NONE; 504 uint32_t _flag_a = 0, _flag_b = 0; 505 uint32_t _itail_tgt = 0; 506 RECOMP_REGS_LOCALS 507 RECOMP_ENTER(0x36028570u); 508 509 L_36028570: 510 PUSH32(esp, ebp); /* 0x36028570: push ebp */ 511 L_36028571: 512 ebp = esp; /* 0x36028571: mov ebp, esp */ 513 L_36028573: 514 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028573: push -1 */ 515 L_36028575: 516 PUSH32(esp, 0x361634CBu); /* 0x36028575: push 0x361634cb */ 517 L_3602857A: 518 eax = MEM32(FS_BASE + (0)); /* 0x3602857A: mov eax, dword ptr fs:[0] */ 519 L_36028580: 520 PUSH32(esp, eax); /* 0x36028580: push eax */ 521 L_36028581: 522 MEM32(FS_BASE + (0)) = esp; /* 0x36028581: mov dword ptr fs:[0], esp */ 523 L_36028588: 524 PUSH32(esp, ecx); /* 0x36028588: push ecx */ 525 L_36028589: 526 PUSH32(esp, edi); /* 0x36028589: push edi */ 527 L_3602858A: 528 edi = ecx; /* 0x3602858A: mov edi, ecx */ 529 L_3602858C: 530 RECOMP_ICALL(0x3601F240u); /* 0x3602858C: call 0x3601f240 */ /* not lifted */ 531 RECOMP_FLAGS_IN(); 532 L_36028591: 533 /* test eax, eax */ /* 0x36028591: test eax, eax */ 534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 535 _cf = 0; 536 _flag_k = FK_TEST; 537 L_36028593: 538 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_360286D6; /* 0x36028593: je 0x360286d6 */ 539 L_36028599: 540 ecx = MEM32(ebp + 0x8); /* 0x36028599: mov ecx, dword ptr [ebp + 8] */ 541 L_3602859C: 542 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE7u); 543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 544 ecx = ecx + 0xFFFFFFE7u; /* 0x3602859C: add ecx, -0x19 */ 545 _flag_k = FK_ADD; 546 L_3602859F: 547 /* cmp ecx, 0x27u */ /* 0x3602859F: cmp ecx, 0x27 */ 548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x27u); 549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 550 _flag_k = FK_CMP; 551 L_360285A2: 552 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_360286D6; /* 0x360285A2: ja 0x360286d6 */ 553 L_360285A8: 554 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 555 edx = 0; /* 0x360285A8: xor edx, edx */ 556 _cf = 0; 557 _flag_k = FK_TEST; 558 L_360285AA: 559 SET_LO8(edx, MEM8(ecx + 0x36028704)); /* 0x360285AA: mov dl, byte ptr [ecx + 0x36028704] */ 560 L_360285B0: 561 { _itail_tgt = (uint32_t)(MEM32(edx * 4 + 0x360286EC)); goto _ljump; } 562 L_360285B7: 563 ecx = MEM32(ebp + 0xC); /* 0x360285B7: mov ecx, dword ptr [ebp + 0xc] */ 564 L_360285BA: 565 PUSH32(esp, 0); /* 0x360285BA: push 0 */ 566 L_360285BC: 567 PUSH32(esp, ecx); /* 0x360285BC: push ecx */ 568 L_360285BD: 569 ecx = MEM32(eax + 0x16C); /* 0x360285BD: mov ecx, dword ptr [eax + 0x16c] */ 570 L_360285C3: 571 RECOMP_ICALL(0x3607BEE0u); /* 0x360285C3: call 0x3607bee0 */ /* not lifted */ 572 RECOMP_FLAGS_IN(); 573 L_360285C8: 574 SET_LO8(eax, 1); /* 0x360285C8: mov al, 1 */ 575 L_360285CA: 576 edi = POP32_VAL(esp); /* 0x360285CA: pop edi */ 577 L_360285CB: 578 ecx = MEM32(ebp + (-0xC)); /* 0x360285CB: mov ecx, dword ptr [ebp - 0xc] */ 579 L_360285CE: 580 MEM32(FS_BASE + (0)) = ecx; /* 0x360285CE: mov dword ptr fs:[0], ecx */ 581 L_360285D5: 582 esp = ebp; /* 0x360285D5: mov esp, ebp */ 583 L_360285D7: 584 ebp = POP32_VAL(esp); /* 0x360285D7: pop ebp */ 585 L_360285D8: 586 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360285D8: ret 0xc */ 587 L_360285DB: 588 edx = MEM32(ebp + 0xC); /* 0x360285DB: mov edx, dword ptr [ebp + 0xc] */ 589 L_360285DE: 590 PUSH32(esp, 1); /* 0x360285DE: push 1 */ 591 L_360285E0: 592 PUSH32(esp, edx); /* 0x360285E0: push edx */ 593 L_360285E1: 594 ecx = edi; /* 0x360285E1: mov ecx, edi */ 595 L_360285E3: 596 RECOMP_ICALL(0x3602ACD0u); /* 0x360285E3: call 0x3602acd0 */ /* not lifted */ 597 RECOMP_FLAGS_IN(); 598 L_360285E8: 599 SET_LO8(eax, 1); /* 0x360285E8: mov al, 1 */ 600 L_360285EA: 601 edi = POP32_VAL(esp); /* 0x360285EA: pop edi */ 602 L_360285EB: 603 ecx = MEM32(ebp + (-0xC)); /* 0x360285EB: mov ecx, dword ptr [ebp - 0xc] */ 604 L_360285EE: 605 MEM32(FS_BASE + (0)) = ecx; /* 0x360285EE: mov dword ptr fs:[0], ecx */ 606 L_360285F5: 607 esp = ebp; /* 0x360285F5: mov esp, ebp */ 608 L_360285F7: 609 ebp = POP32_VAL(esp); /* 0x360285F7: pop ebp */ 610 L_360285F8: 611 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360285F8: ret 0xc */ 612 L_360285FB: 613 eax = MEM32(ebp + 0xC); /* 0x360285FB: mov eax, dword ptr [ebp + 0xc] */ 614 L_360285FE: 615 ecx = MEM32(eax + 0x4); /* 0x360285FE: mov ecx, dword ptr [eax + 4] */ 616 L_36028601: 617 PUSH32(esp, ecx); /* 0x36028601: push ecx */ 618 L_36028602: 619 ecx = edi; /* 0x36028602: mov ecx, edi */ 620 L_36028604: 621 RECOMP_ICALL(0x36028730u); /* 0x36028604: call 0x36028730 */ /* not lifted */ 622 RECOMP_FLAGS_IN(); 623 L_36028609: 624 SET_LO8(eax, 1); /* 0x36028609: mov al, 1 */ 625 L_3602860B: 626 edi = POP32_VAL(esp); /* 0x3602860B: pop edi */ 627 L_3602860C: 628 ecx = MEM32(ebp + (-0xC)); /* 0x3602860C: mov ecx, dword ptr [ebp - 0xc] */ 629 L_3602860F: 630 MEM32(FS_BASE + (0)) = ecx; /* 0x3602860F: mov dword ptr fs:[0], ecx */ 631 L_36028616: 632 esp = ebp; /* 0x36028616: mov esp, ebp */ 633 L_36028618: 634 ebp = POP32_VAL(esp); /* 0x36028618: pop ebp */ 635 L_36028619: 636 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36028619: ret 0xc */ 637 L_3602861C: 638 edx = MEM32(ebp + 0xC); /* 0x3602861C: mov edx, dword ptr [ebp + 0xc] */ 639 L_3602861F: 640 PUSH32(esp, 1); /* 0x3602861F: push 1 */ 641 L_36028621: 642 PUSH32(esp, edx); /* 0x36028621: push edx */ 643 L_36028622: 644 ecx = edi; /* 0x36028622: mov ecx, edi */ 645 L_36028624: 646 RECOMP_ICALL(0x36022710u); /* 0x36028624: call 0x36022710 */ /* not lifted */ 647 RECOMP_FLAGS_IN(); 648 L_36028629: 649 SET_LO8(eax, 1); /* 0x36028629: mov al, 1 */ 650 L_3602862B: 651 edi = POP32_VAL(esp); /* 0x3602862B: pop edi */ 652 L_3602862C: 653 ecx = MEM32(ebp + (-0xC)); /* 0x3602862C: mov ecx, dword ptr [ebp - 0xc] */ 654 L_3602862F: 655 MEM32(FS_BASE + (0)) = ecx; /* 0x3602862F: mov dword ptr fs:[0], ecx */ 656 L_36028636: 657 esp = ebp; /* 0x36028636: mov esp, ebp */ 658 L_36028638: 659 ebp = POP32_VAL(esp); /* 0x36028638: pop ebp */ 660 L_36028639: 661 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36028639: ret 0xc */ 662 L_3602863C: 663 ecx = MEM32(ebp + 0x10); /* 0x3602863C: mov ecx, dword ptr [ebp + 0x10] */ 664 L_3602863F: 665 edx = MEM32(eax + 0xE4); /* 0x3602863F: mov edx, dword ptr [eax + 0xe4] */ 666 L_36028645: 667 PUSH32(esp, ebx); /* 0x36028645: push ebx */ 668 L_36028646: 669 ebx = MEM32(ecx + 0x4); /* 0x36028646: mov ebx, dword ptr [ecx + 4] */ 670 L_36028649: 671 PUSH32(esp, esi); /* 0x36028649: push esi */ 672 L_3602864A: 673 esi = eax + 0xE4; /* 0x3602864A: lea esi, [eax + 0xe4] */ 674 L_36028650: 675 PUSH32(esp, 2); /* 0x36028650: push 2 */ 676 L_36028652: 677 PUSH32(esp, 0x15Du); /* 0x36028652: push 0x15d */ 678 L_36028657: 679 ecx = esi; /* 0x36028657: mov ecx, esi */ 680 L_36028659: 681 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36028659: call dword ptr [edx + 4] */ 682 RECOMP_FLAGS_IN(); 683 L_3602865C: 684 /* cmp ebx, eax */ /* 0x3602865C: cmp ebx, eax */ 685 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 687 _flag_k = FK_CMP; 688 L_3602865E: 689 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_360286C1; /* 0x3602865E: je 0x360286c1 */ 690 L_36028660: 691 PUSH32(esp, 0x34u); /* 0x36028660: push 0x34 */ 692 L_36028662: 693 RECOMP_ICALL(0x3615FD6Au); /* 0x36028662: call 0x3615fd6a */ /* not lifted */ 694 RECOMP_FLAGS_IN(); 695 L_36028667: 696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 698 esp = esp + 4; /* 0x36028667: add esp, 4 */ 699 _flag_k = FK_ADD; 700 L_3602866A: 701 MEM32(ebp + (-0x10)) = eax; /* 0x3602866A: mov dword ptr [ebp - 0x10], eax */ 702 L_3602866D: 703 /* test eax, eax */ /* 0x3602866D: test eax, eax */ 704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 705 _cf = 0; 706 _flag_k = FK_TEST; 707 L_3602866F: 708 MEM32(ebp + (-0x4)) = 0; /* 0x3602866F: mov dword ptr [ebp - 4], 0 */ 709 L_36028676: 710 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36028698; /* 0x36028676: je 0x36028698 */ 711 L_36028678: 712 ecx = MEM32(ebp + 0x10); /* 0x36028678: mov ecx, dword ptr [ebp + 0x10] */ 713 L_3602867B: 714 edx = MEM32(ebp + 0xC); /* 0x3602867B: mov edx, dword ptr [ebp + 0xc] */ 715 L_3602867E: 716 PUSH32(esp, ecx); /* 0x3602867E: push ecx */ 717 L_3602867F: 718 ecx = MEM32(edi + 0x88); /* 0x3602867F: mov ecx, dword ptr [edi + 0x88] */ 719 L_36028685: 720 PUSH32(esp, 0xA5u); /* 0x36028685: push 0xa5 */ 721 L_3602868A: 722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 723 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 724 ecx = ecx + 4; /* 0x3602868A: add ecx, 4 */ 725 _flag_k = FK_ADD; 726 L_3602868D: 727 PUSH32(esp, edx); /* 0x3602868D: push edx */ 728 L_3602868E: 729 PUSH32(esp, ecx); /* 0x3602868E: push ecx */ 730 L_3602868F: 731 ecx = eax; /* 0x3602868F: mov ecx, eax */ 732 L_36028691: 733 RECOMP_ICALL(0x3607D4B0u); /* 0x36028691: call 0x3607d4b0 */ /* not lifted */ 734 RECOMP_FLAGS_IN(); 735 L_36028696: 736 goto L_3602869A; /* 0x36028696: jmp 0x3602869a */ 737 L_36028698: 738 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 739 eax = 0; /* 0x36028698: xor eax, eax */ 740 _cf = 0; 741 _flag_k = FK_TEST; 742 L_3602869A: 743 ecx = MEM32(edi + 0x88); /* 0x3602869A: mov ecx, dword ptr [edi + 0x88] */ 744 L_360286A0: 745 edx = ebp + 0x8; /* 0x360286A0: lea edx, [ebp + 8] */ 746 L_360286A3: 747 PUSH32(esp, edx); /* 0x360286A3: push edx */ 748 L_360286A4: 749 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360286A4: mov dword ptr [ebp - 4], 0xffffffff */ 750 L_360286AB: 751 MEM32(ebp + 0x8) = eax; /* 0x360286AB: mov dword ptr [ebp + 8], eax */ 752 L_360286AE: 753 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360286AE: call dword ptr [0x3617004c] */ 754 RECOMP_FLAGS_IN(); 755 L_360286B4: 756 eax = MEM32(esi); /* 0x360286B4: mov eax, dword ptr [esi] */ 757 L_360286B6: 758 PUSH32(esp, ebx); /* 0x360286B6: push ebx */ 759 L_360286B7: 760 PUSH32(esp, 0x15Du); /* 0x360286B7: push 0x15d */ 761 L_360286BC: 762 ecx = esi; /* 0x360286BC: mov ecx, esi */ 763 L_360286BE: 764 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360286BE: call dword ptr [eax + 8] */ 765 RECOMP_FLAGS_IN(); 766 L_360286C1: 767 esi = POP32_VAL(esp); /* 0x360286C1: pop esi */ 768 L_360286C2: 769 ebx = POP32_VAL(esp); /* 0x360286C2: pop ebx */ 770 L_360286C3: 771 SET_LO8(eax, 1); /* 0x360286C3: mov al, 1 */ 772 L_360286C5: 773 edi = POP32_VAL(esp); /* 0x360286C5: pop edi */ 774 L_360286C6: 775 ecx = MEM32(ebp + (-0xC)); /* 0x360286C6: mov ecx, dword ptr [ebp - 0xc] */ 776 L_360286C9: 777 MEM32(FS_BASE + (0)) = ecx; /* 0x360286C9: mov dword ptr fs:[0], ecx */ 778 L_360286D0: 779 esp = ebp; /* 0x360286D0: mov esp, ebp */ 780 L_360286D2: 781 ebp = POP32_VAL(esp); /* 0x360286D2: pop ebp */ 782 L_360286D3: 783 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360286D3: ret 0xc */ 784 L_360286D6: 785 ecx = MEM32(ebp + (-0xC)); /* 0x360286D6: mov ecx, dword ptr [ebp - 0xc] */ 786 L_360286D9: 787 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 788 SET_LO8(eax, 0); /* 0x360286D9: xor al, al */ 789 _cf = 0; 790 _flag_k = FK_NARROW(FK_TEST, 24); 791 L_360286DB: 792 edi = POP32_VAL(esp); /* 0x360286DB: pop edi */ 793 L_360286DC: 794 MEM32(FS_BASE + (0)) = ecx; /* 0x360286DC: mov dword ptr fs:[0], ecx */ 795 L_360286E3: 796 esp = ebp; /* 0x360286E3: mov esp, ebp */ 797 L_360286E5: 798 ebp = POP32_VAL(esp); /* 0x360286E5: pop ebp */ 799 L_360286E6: 800 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360286E6: ret 0xc */ 801 _ljump: 802 switch (_itail_tgt) { 803 case 0x36028570u: goto L_36028570; 804 case 0x36028571u: goto L_36028571; 805 case 0x36028573u: goto L_36028573; 806 case 0x36028575u: goto L_36028575; 807 case 0x3602857Au: goto L_3602857A; 808 case 0x36028580u: goto L_36028580; 809 case 0x36028581u: goto L_36028581; 810 case 0x36028588u: goto L_36028588; 811 case 0x36028589u: goto L_36028589; 812 case 0x3602858Au: goto L_3602858A; 813 case 0x3602858Cu: goto L_3602858C; 814 case 0x36028591u: goto L_36028591; 815 case 0x36028593u: goto L_36028593; 816 case 0x36028599u: goto L_36028599; 817 case 0x3602859Cu: goto L_3602859C; 818 case 0x3602859Fu: goto L_3602859F; 819 case 0x360285A2u: goto L_360285A2; 820 case 0x360285A8u: goto L_360285A8; 821 case 0x360285AAu: goto L_360285AA; 822 case 0x360285B0u: goto L_360285B0; 823 case 0x360285B7u: goto L_360285B7; 824 case 0x360285BAu: goto L_360285BA; 825 case 0x360285BCu: goto L_360285BC; 826 case 0x360285BDu: goto L_360285BD; 827 case 0x360285C3u: goto L_360285C3; 828 case 0x360285C8u: goto L_360285C8; 829 case 0x360285CAu: goto L_360285CA; 830 case 0x360285CBu: goto L_360285CB; 831 case 0x360285CEu: goto L_360285CE; 832 case 0x360285D5u: goto L_360285D5; 833 case 0x360285D7u: goto L_360285D7; 834 case 0x360285D8u: goto L_360285D8; 835 case 0x360285DBu: goto L_360285DB; 836 case 0x360285DEu: goto L_360285DE; 837 case 0x360285E0u: goto L_360285E0; 838 case 0x360285E1u: goto L_360285E1; 839 case 0x360285E3u: goto L_360285E3; 840 case 0x360285E8u: goto L_360285E8; 841 case 0x360285EAu: goto L_360285EA; 842 case 0x360285EBu: goto L_360285EB; 843 case 0x360285EEu: goto L_360285EE; 844 case 0x360285F5u: goto L_360285F5; 845 case 0x360285F7u: goto L_360285F7; 846 case 0x360285F8u: goto L_360285F8; 847 case 0x360285FBu: goto L_360285FB; 848 case 0x360285FEu: goto L_360285FE; 849 case 0x36028601u: goto L_36028601; 850 case 0x36028602u: goto L_36028602; 851 case 0x36028604u: goto L_36028604; 852 case 0x36028609u: goto L_36028609; 853 case 0x3602860Bu: goto L_3602860B; 854 case 0x3602860Cu: goto L_3602860C; 855 case 0x3602860Fu: goto L_3602860F; 856 case 0x36028616u: goto L_36028616; 857 case 0x36028618u: goto L_36028618; 858 case 0x36028619u: goto L_36028619; 859 case 0x3602861Cu: goto L_3602861C; 860 case 0x3602861Fu: goto L_3602861F; 861 case 0x36028621u: goto L_36028621; 862 case 0x36028622u: goto L_36028622; 863 case 0x36028624u: goto L_36028624; 864 case 0x36028629u: goto L_36028629; 865 case 0x3602862Bu: goto L_3602862B; 866 case 0x3602862Cu: goto L_3602862C; 867 case 0x3602862Fu: goto L_3602862F; 868 case 0x36028636u: goto L_36028636; 869 case 0x36028638u: goto L_36028638; 870 case 0x36028639u: goto L_36028639; 871 case 0x3602863Cu: goto L_3602863C; 872 case 0x3602863Fu: goto L_3602863F; 873 case 0x36028645u: goto L_36028645; 874 case 0x36028646u: goto L_36028646; 875 case 0x36028649u: goto L_36028649; 876 case 0x3602864Au: goto L_3602864A; 877 case 0x36028650u: goto L_36028650; 878 case 0x36028652u: goto L_36028652; 879 case 0x36028657u: goto L_36028657; 880 case 0x36028659u: goto L_36028659; 881 case 0x3602865Cu: goto L_3602865C; 882 case 0x3602865Eu: goto L_3602865E; 883 case 0x36028660u: goto L_36028660; 884 case 0x36028662u: goto L_36028662; 885 case 0x36028667u: goto L_36028667; 886 case 0x3602866Au: goto L_3602866A; 887 case 0x3602866Du: goto L_3602866D; 888 case 0x3602866Fu: goto L_3602866F; 889 case 0x36028676u: goto L_36028676; 890 case 0x36028678u: goto L_36028678; 891 case 0x3602867Bu: goto L_3602867B; 892 case 0x3602867Eu: goto L_3602867E; 893 case 0x3602867Fu: goto L_3602867F; 894 case 0x36028685u: goto L_36028685; 895 case 0x3602868Au: goto L_3602868A; 896 case 0x3602868Du: goto L_3602868D; 897 case 0x3602868Eu: goto L_3602868E; 898 case 0x3602868Fu: goto L_3602868F; 899 case 0x36028691u: goto L_36028691; 900 case 0x36028696u: goto L_36028696; 901 case 0x36028698u: goto L_36028698; 902 case 0x3602869Au: goto L_3602869A; 903 case 0x360286A0u: goto L_360286A0; 904 case 0x360286A3u: goto L_360286A3; 905 case 0x360286A4u: goto L_360286A4; 906 case 0x360286ABu: goto L_360286AB; 907 case 0x360286AEu: goto L_360286AE; 908 case 0x360286B4u: goto L_360286B4; 909 case 0x360286B6u: goto L_360286B6; 910 case 0x360286B7u: goto L_360286B7; 911 case 0x360286BCu: goto L_360286BC; 912 case 0x360286BEu: goto L_360286BE; 913 case 0x360286C1u: goto L_360286C1; 914 case 0x360286C2u: goto L_360286C2; 915 case 0x360286C3u: goto L_360286C3; 916 case 0x360286C5u: goto L_360286C5; 917 case 0x360286C6u: goto L_360286C6; 918 case 0x360286C9u: goto L_360286C9; 919 case 0x360286D0u: goto L_360286D0; 920 case 0x360286D2u: goto L_360286D2; 921 case 0x360286D3u: goto L_360286D3; 922 case 0x360286D6u: goto L_360286D6; 923 case 0x360286D9u: goto L_360286D9; 924 case 0x360286DBu: goto L_360286DB; 925 case 0x360286DCu: goto L_360286DC; 926 case 0x360286E3u: goto L_360286E3; 927 case 0x360286E5u: goto L_360286E5; 928 case 0x360286E6u: goto L_360286E6; 929 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 930 } 931 RECOMP_REGS_OUT(); 932 } 933 934 void sub_36028730(void) { 935 int _fpu_cmp = 0; 936 uint32_t _cf = 0; 937 int _df = 1; 938 uint32_t _flag_k = FK_NONE; 939 uint32_t _flag_a = 0, _flag_b = 0; 940 uint32_t _itail_tgt = 0; 941 RECOMP_REGS_LOCALS 942 RECOMP_ENTER(0x36028730u); 943 944 L_36028730: 945 PUSH32(esp, ebp); /* 0x36028730: push ebp */ 946 ebp = esp; /* 0x36028731: mov ebp, esp */ 947 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028733: push -1 */ 948 PUSH32(esp, 0x361634EBu); /* 0x36028735: push 0x361634eb */ 949 eax = MEM32(FS_BASE + (0)); /* 0x3602873A: mov eax, dword ptr fs:[0] */ 950 PUSH32(esp, eax); /* 0x36028740: push eax */ 951 MEM32(FS_BASE + (0)) = esp; /* 0x36028741: mov dword ptr fs:[0], esp */ 952 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 954 esp = esp - 0xCu; /* 0x36028748: sub esp, 0xc */ 955 _flag_k = FK_CMP; 956 eax = MEM32(ebp + 0x8); /* 0x3602874B: mov eax, dword ptr [ebp + 8] */ 957 PUSH32(esp, esi); /* 0x3602874E: push esi */ 958 PUSH32(esp, 0x34u); /* 0x3602874F: push 0x34 */ 959 esi = ecx; /* 0x36028751: mov esi, ecx */ 960 MEM32(ebp + (-0x18)) = 0; /* 0x36028753: mov dword ptr [ebp - 0x18], 0 */ 961 MEM32(ebp + (-0x14)) = eax; /* 0x3602875A: mov dword ptr [ebp - 0x14], eax */ 962 RECOMP_ICALL(0x3615FD6Au); /* 0x3602875D: call 0x3615fd6a */ /* not lifted */ 963 RECOMP_FLAGS_IN(); 964 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 965 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 966 esp = esp + 4; /* 0x36028762: add esp, 4 */ 967 _flag_k = FK_ADD; 968 MEM32(ebp + (-0x10)) = eax; /* 0x36028765: mov dword ptr [ebp - 0x10], eax */ 969 /* test eax, eax */ /* 0x36028768: test eax, eax */ 970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 971 _cf = 0; 972 _flag_k = FK_TEST; 973 MEM32(ebp + (-0x4)) = 0; /* 0x3602876A: mov dword ptr [ebp - 4], 0 */ 974 if (TEST_Z(_flag_a, _flag_b)) goto L_36028794; /* 0x36028771: je 0x36028794 */ 975 L_36028773: 976 edx = MEM32(esi + 0x88); /* 0x36028773: mov edx, dword ptr [esi + 0x88] */ 977 ecx = ebp + (-0x18); /* 0x36028779: lea ecx, [ebp - 0x18] */ 978 PUSH32(esp, ecx); /* 0x3602877C: push ecx */ 979 PUSH32(esp, 0x9Au); /* 0x3602877D: push 0x9a */ 980 PUSH32(esp, 0x36305AE0u); /* 0x36028782: push 0x36305ae0 */ 981 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 983 edx = edx + 4; /* 0x36028787: add edx, 4 */ 984 _flag_k = FK_ADD; 985 PUSH32(esp, edx); /* 0x3602878A: push edx */ 986 ecx = eax; /* 0x3602878B: mov ecx, eax */ 987 RECOMP_ICALL(0x3607D4B0u); /* 0x3602878D: call 0x3607d4b0 */ /* not lifted */ 988 RECOMP_FLAGS_IN(); 989 goto L_36028796; /* 0x36028792: jmp 0x36028796 */ 990 L_36028794: 991 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 992 eax = 0; /* 0x36028794: xor eax, eax */ 993 _cf = 0; 994 _flag_k = FK_TEST; 995 L_36028796: 996 ecx = MEM32(esi + 0x88); /* 0x36028796: mov ecx, dword ptr [esi + 0x88] */ 997 MEM32(ebp + 0x8) = eax; /* 0x3602879C: mov dword ptr [ebp + 8], eax */ 998 eax = ebp + 0x8; /* 0x3602879F: lea eax, [ebp + 8] */ 999 PUSH32(esp, eax); /* 0x360287A2: push eax */ 1000 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360287A3: mov dword ptr [ebp - 4], 0xffffffff */ 1001 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360287AA: call dword ptr [0x3617004c] */ 1002 RECOMP_FLAGS_IN(); 1003 ecx = MEM32(ebp + (-0xC)); /* 0x360287B0: mov ecx, dword ptr [ebp - 0xc] */ 1004 esi = POP32_VAL(esp); /* 0x360287B3: pop esi */ 1005 MEM32(FS_BASE + (0)) = ecx; /* 0x360287B4: mov dword ptr fs:[0], ecx */ 1006 esp = ebp; /* 0x360287BB: mov esp, ebp */ 1007 ebp = POP32_VAL(esp); /* 0x360287BD: pop ebp */ 1008 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360287BE: ret 4 */ 1009 RECOMP_REGS_OUT(); 1010 } 1011 1012 void sub_3602875A(void) { 1013 int _fpu_cmp = 0; 1014 uint32_t _cf = 0; 1015 int _df = 1; 1016 uint32_t _flag_k = FK_NONE; 1017 uint32_t _flag_a = 0, _flag_b = 0; 1018 uint32_t _itail_tgt = 0; 1019 RECOMP_REGS_LOCALS 1020 RECOMP_ENTER(0x3602875Au); 1021 1022 L_3602875A: 1023 MEM32(ebp + (-0x14)) = eax; /* 0x3602875A: mov dword ptr [ebp - 0x14], eax */ 1024 RECOMP_ICALL(0x3615FD6Au); /* 0x3602875D: call 0x3615fd6a */ /* not lifted */ 1025 RECOMP_FLAGS_IN(); 1026 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1027 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1028 esp = esp + 4; /* 0x36028762: add esp, 4 */ 1029 _flag_k = FK_ADD; 1030 MEM32(ebp + (-0x10)) = eax; /* 0x36028765: mov dword ptr [ebp - 0x10], eax */ 1031 /* test eax, eax */ /* 0x36028768: test eax, eax */ 1032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1033 _cf = 0; 1034 _flag_k = FK_TEST; 1035 MEM32(ebp + (-0x4)) = 0; /* 0x3602876A: mov dword ptr [ebp - 4], 0 */ 1036 if (TEST_Z(_flag_a, _flag_b)) goto L_36028794; /* 0x36028771: je 0x36028794 */ 1037 L_36028773: 1038 edx = MEM32(esi + 0x88); /* 0x36028773: mov edx, dword ptr [esi + 0x88] */ 1039 ecx = ebp + (-0x18); /* 0x36028779: lea ecx, [ebp - 0x18] */ 1040 PUSH32(esp, ecx); /* 0x3602877C: push ecx */ 1041 PUSH32(esp, 0x9Au); /* 0x3602877D: push 0x9a */ 1042 PUSH32(esp, 0x36305AE0u); /* 0x36028782: push 0x36305ae0 */ 1043 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 1044 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1045 edx = edx + 4; /* 0x36028787: add edx, 4 */ 1046 _flag_k = FK_ADD; 1047 PUSH32(esp, edx); /* 0x3602878A: push edx */ 1048 ecx = eax; /* 0x3602878B: mov ecx, eax */ 1049 RECOMP_ICALL(0x3607D4B0u); /* 0x3602878D: call 0x3607d4b0 */ /* not lifted */ 1050 RECOMP_FLAGS_IN(); 1051 goto L_36028796; /* 0x36028792: jmp 0x36028796 */ 1052 L_36028794: 1053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1054 eax = 0; /* 0x36028794: xor eax, eax */ 1055 _cf = 0; 1056 _flag_k = FK_TEST; 1057 L_36028796: 1058 ecx = MEM32(esi + 0x88); /* 0x36028796: mov ecx, dword ptr [esi + 0x88] */ 1059 MEM32(ebp + 0x8) = eax; /* 0x3602879C: mov dword ptr [ebp + 8], eax */ 1060 eax = ebp + 0x8; /* 0x3602879F: lea eax, [ebp + 8] */ 1061 PUSH32(esp, eax); /* 0x360287A2: push eax */ 1062 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360287A3: mov dword ptr [ebp - 4], 0xffffffff */ 1063 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360287AA: call dword ptr [0x3617004c] */ 1064 RECOMP_FLAGS_IN(); 1065 ecx = MEM32(ebp + (-0xC)); /* 0x360287B0: mov ecx, dword ptr [ebp - 0xc] */ 1066 esi = POP32_VAL(esp); /* 0x360287B3: pop esi */ 1067 MEM32(FS_BASE + (0)) = ecx; /* 0x360287B4: mov dword ptr fs:[0], ecx */ 1068 esp = ebp; /* 0x360287BB: mov esp, ebp */ 1069 ebp = POP32_VAL(esp); /* 0x360287BD: pop ebp */ 1070 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360287BE: ret 4 */ 1071 RECOMP_REGS_OUT(); 1072 } 1073 1074 void sub_36028796(void) { 1075 int _fpu_cmp = 0; 1076 uint32_t _cf = 0; 1077 int _df = 1; 1078 uint32_t _flag_k = FK_NONE; 1079 uint32_t _flag_a = 0, _flag_b = 0; 1080 uint32_t _itail_tgt = 0; 1081 RECOMP_REGS_LOCALS 1082 RECOMP_ENTER(0x36028796u); 1083 1084 L_36028796: 1085 ecx = MEM32(esi + 0x88); /* 0x36028796: mov ecx, dword ptr [esi + 0x88] */ 1086 MEM32(ebp + 0x8) = eax; /* 0x3602879C: mov dword ptr [ebp + 8], eax */ 1087 eax = ebp + 0x8; /* 0x3602879F: lea eax, [ebp + 8] */ 1088 PUSH32(esp, eax); /* 0x360287A2: push eax */ 1089 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360287A3: mov dword ptr [ebp - 4], 0xffffffff */ 1090 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360287AA: call dword ptr [0x3617004c] */ 1091 RECOMP_FLAGS_IN(); 1092 ecx = MEM32(ebp + (-0xC)); /* 0x360287B0: mov ecx, dword ptr [ebp - 0xc] */ 1093 esi = POP32_VAL(esp); /* 0x360287B3: pop esi */ 1094 MEM32(FS_BASE + (0)) = ecx; /* 0x360287B4: mov dword ptr fs:[0], ecx */ 1095 esp = ebp; /* 0x360287BB: mov esp, ebp */ 1096 ebp = POP32_VAL(esp); /* 0x360287BD: pop ebp */ 1097 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360287BE: ret 4 */ 1098 RECOMP_REGS_OUT(); 1099 } 1100 1101 void sub_360287D0(void) { 1102 int _fpu_cmp = 0; 1103 uint32_t _cf = 0; 1104 int _df = 1; 1105 uint32_t _flag_k = FK_NONE; 1106 uint32_t _flag_a = 0, _flag_b = 0; 1107 uint32_t _itail_tgt = 0; 1108 RECOMP_REGS_LOCALS 1109 RECOMP_ENTER(0x360287D0u); 1110 1111 L_360287D0: 1112 PUSH32(esp, ebp); /* 0x360287D0: push ebp */ 1113 ebp = esp; /* 0x360287D1: mov ebp, esp */ 1114 PUSH32(esp, 0xFFFFFFFFu); /* 0x360287D3: push -1 */ 1115 PUSH32(esp, 0x3616350Bu); /* 0x360287D5: push 0x3616350b */ 1116 eax = MEM32(FS_BASE + (0)); /* 0x360287DA: mov eax, dword ptr fs:[0] */ 1117 PUSH32(esp, eax); /* 0x360287E0: push eax */ 1118 MEM32(FS_BASE + (0)) = esp; /* 0x360287E1: mov dword ptr fs:[0], esp */ 1119 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1121 esp = esp - 0xCu; /* 0x360287E8: sub esp, 0xc */ 1122 _flag_k = FK_CMP; 1123 PUSH32(esp, esi); /* 0x360287EB: push esi */ 1124 PUSH32(esp, edi); /* 0x360287EC: push edi */ 1125 PUSH32(esp, 0x28u); /* 0x360287ED: push 0x28 */ 1126 esi = ecx; /* 0x360287EF: mov esi, ecx */ 1127 RECOMP_ICALL(0x3615FD6Au); /* 0x360287F1: call 0x3615fd6a */ /* not lifted */ 1128 RECOMP_FLAGS_IN(); 1129 edi = eax; /* 0x360287F6: mov edi, eax */ 1130 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1132 esp = esp + 4; /* 0x360287F8: add esp, 4 */ 1133 _flag_k = FK_ADD; 1134 MEM32(ebp + (-0x10)) = edi; /* 0x360287FB: mov dword ptr [ebp - 0x10], edi */ 1135 /* test edi, edi */ /* 0x360287FE: test edi, edi */ 1136 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1137 _cf = 0; 1138 _flag_k = FK_TEST; 1139 MEM32(ebp + (-0x4)) = 0; /* 0x36028800: mov dword ptr [ebp - 4], 0 */ 1140 if (TEST_Z(_flag_a, _flag_b)) goto L_36028820; /* 0x36028807: je 0x36028820 */ 1141 L_36028809: 1142 eax = MEM32(esi); /* 0x36028809: mov eax, dword ptr [esi] */ 1143 ecx = ebp + (-0x18); /* 0x3602880B: lea ecx, [ebp - 0x18] */ 1144 PUSH32(esp, ecx); /* 0x3602880E: push ecx */ 1145 ecx = esi; /* 0x3602880F: mov ecx, esi */ 1146 RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36028811: call dword ptr [eax + 0x24] */ 1147 RECOMP_FLAGS_IN(); 1148 PUSH32(esp, eax); /* 0x36028814: push eax */ 1149 ecx = edi; /* 0x36028815: mov ecx, edi */ 1150 RECOMP_ICALL(0x360C68F0u); /* 0x36028817: call 0x360c68f0 */ /* not lifted */ 1151 RECOMP_FLAGS_IN(); 1152 edi = eax; /* 0x3602881C: mov edi, eax */ 1153 goto L_36028822; /* 0x3602881E: jmp 0x36028822 */ 1154 L_36028820: 1155 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1156 edi = 0; /* 0x36028820: xor edi, edi */ 1157 _cf = 0; 1158 _flag_k = FK_TEST; 1159 L_36028822: 1160 edx = MEM32(ebp + 0x8); /* 0x36028822: mov edx, dword ptr [ebp + 8] */ 1161 PUSH32(esp, edx); /* 0x36028825: push edx */ 1162 ecx = edi; /* 0x36028826: mov ecx, edi */ 1163 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36028828: mov dword ptr [ebp - 4], 0xffffffff */ 1164 RECOMP_ICALL(0x360C69E0u); /* 0x3602882F: call 0x360c69e0 */ /* not lifted */ 1165 RECOMP_FLAGS_IN(); 1166 PUSH32(esp, edi); /* 0x36028834: push edi */ 1167 ecx = esi; /* 0x36028835: mov ecx, esi */ 1168 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36028837: call dword ptr [0x3616ff60] */ 1169 RECOMP_FLAGS_IN(); 1170 ecx = MEM32(ebp + (-0xC)); /* 0x3602883D: mov ecx, dword ptr [ebp - 0xc] */ 1171 edi = POP32_VAL(esp); /* 0x36028840: pop edi */ 1172 esi = POP32_VAL(esp); /* 0x36028841: pop esi */ 1173 MEM32(FS_BASE + (0)) = ecx; /* 0x36028842: mov dword ptr fs:[0], ecx */ 1174 esp = ebp; /* 0x36028849: mov esp, ebp */ 1175 ebp = POP32_VAL(esp); /* 0x3602884B: pop ebp */ 1176 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602884C: ret 4 */ 1177 RECOMP_REGS_OUT(); 1178 } 1179 1180 void sub_36028850(void) { 1181 int _fpu_cmp = 0; 1182 uint32_t _cf = 0; 1183 int _df = 1; 1184 uint32_t _flag_k = FK_NONE; 1185 uint32_t _flag_a = 0, _flag_b = 0; 1186 uint32_t _itail_tgt = 0; 1187 RECOMP_REGS_LOCALS 1188 RECOMP_ENTER(0x36028850u); 1189 1190 L_36028850: 1191 PUSH32(esp, ebp); /* 0x36028850: push ebp */ 1192 ebp = esp; /* 0x36028851: mov ebp, esp */ 1193 RECOMP_ICALL(0x3600C230u); /* 0x36028853: call 0x3600c230 */ /* not lifted */ 1194 RECOMP_FLAGS_IN(); 1195 eax = MEM32(eax + 0xB4); /* 0x36028858: mov eax, dword ptr [eax + 0xb4] */ 1196 ecx = MEM32(ebp + 0x8); /* 0x3602885E: mov ecx, dword ptr [ebp + 8] */ 1197 MEM32(ecx) = eax; /* 0x36028861: mov dword ptr [ecx], eax */ 1198 SET_LO8(eax, 1); /* 0x36028863: mov al, 1 */ 1199 ebp = POP32_VAL(esp); /* 0x36028865: pop ebp */ 1200 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36028866: ret 4 */ 1201 RECOMP_REGS_OUT(); 1202 } 1203 1204 void sub_36028870(void) { 1205 int _fpu_cmp = 0; 1206 uint32_t _cf = 0; 1207 int _df = 1; 1208 uint32_t _flag_k = FK_NONE; 1209 uint32_t _flag_a = 0, _flag_b = 0; 1210 uint32_t _itail_tgt = 0; 1211 RECOMP_REGS_LOCALS 1212 RECOMP_ENTER(0x36028870u); 1213 1214 L_36028870: 1215 PUSH32(esp, ebp); /* 0x36028870: push ebp */ 1216 ebp = esp; /* 0x36028871: mov ebp, esp */ 1217 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028873: push -1 */ 1218 PUSH32(esp, 0x3616352Bu); /* 0x36028875: push 0x3616352b */ 1219 eax = MEM32(FS_BASE + (0)); /* 0x3602887A: mov eax, dword ptr fs:[0] */ 1220 PUSH32(esp, eax); /* 0x36028880: push eax */ 1221 MEM32(FS_BASE + (0)) = esp; /* 0x36028881: mov dword ptr fs:[0], esp */ 1222 PUSH32(esp, ecx); /* 0x36028888: push ecx */ 1223 PUSH32(esp, esi); /* 0x36028889: push esi */ 1224 PUSH32(esp, 0x2Cu); /* 0x3602888A: push 0x2c */ 1225 esi = ecx; /* 0x3602888C: mov esi, ecx */ 1226 RECOMP_ICALL(0x3615FD6Au); /* 0x3602888E: call 0x3615fd6a */ /* not lifted */ 1227 RECOMP_FLAGS_IN(); 1228 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1229 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1230 esp = esp + 4; /* 0x36028893: add esp, 4 */ 1231 _flag_k = FK_ADD; 1232 MEM32(ebp + (-0x10)) = eax; /* 0x36028896: mov dword ptr [ebp - 0x10], eax */ 1233 /* test eax, eax */ /* 0x36028899: test eax, eax */ 1234 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1235 _cf = 0; 1236 _flag_k = FK_TEST; 1237 MEM32(ebp + (-0x4)) = 0; /* 0x3602889B: mov dword ptr [ebp - 4], 0 */ 1238 if (TEST_Z(_flag_a, _flag_b)) goto L_360288B9; /* 0x360288A2: je 0x360288b9 */ 1239 L_360288A4: 1240 ecx = MEM32(ebp + 0x10); /* 0x360288A4: mov ecx, dword ptr [ebp + 0x10] */ 1241 edx = MEM32(ebp + 0xC); /* 0x360288A7: mov edx, dword ptr [ebp + 0xc] */ 1242 PUSH32(esp, ecx); /* 0x360288AA: push ecx */ 1243 ecx = MEM32(ebp + 0x8); /* 0x360288AB: mov ecx, dword ptr [ebp + 8] */ 1244 PUSH32(esp, edx); /* 0x360288AE: push edx */ 1245 PUSH32(esp, ecx); /* 0x360288AF: push ecx */ 1246 ecx = eax; /* 0x360288B0: mov ecx, eax */ 1247 RECOMP_ICALL(0x361537E0u); /* 0x360288B2: call 0x361537e0 */ /* not lifted */ 1248 RECOMP_FLAGS_IN(); 1249 goto L_360288BB; /* 0x360288B7: jmp 0x360288bb */ 1250 L_360288B9: 1251 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1252 eax = 0; /* 0x360288B9: xor eax, eax */ 1253 _cf = 0; 1254 _flag_k = FK_TEST; 1255 L_360288BB: 1256 PUSH32(esp, eax); /* 0x360288BB: push eax */ 1257 ecx = esi; /* 0x360288BC: mov ecx, esi */ 1258 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360288BE: mov dword ptr [ebp - 4], 0xffffffff */ 1259 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x360288C5: call dword ptr [0x3616ff60] */ 1260 RECOMP_FLAGS_IN(); 1261 ecx = MEM32(ebp + (-0xC)); /* 0x360288CB: mov ecx, dword ptr [ebp - 0xc] */ 1262 esi = POP32_VAL(esp); /* 0x360288CE: pop esi */ 1263 MEM32(FS_BASE + (0)) = ecx; /* 0x360288CF: mov dword ptr fs:[0], ecx */ 1264 esp = ebp; /* 0x360288D6: mov esp, ebp */ 1265 ebp = POP32_VAL(esp); /* 0x360288D8: pop ebp */ 1266 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360288D9: ret 0xc */ 1267 RECOMP_REGS_OUT(); 1268 } 1269 1270 void sub_360288E0(void) { 1271 int _fpu_cmp = 0; 1272 uint32_t _cf = 0; 1273 int _df = 1; 1274 uint32_t _flag_k = FK_NONE; 1275 uint32_t _flag_a = 0, _flag_b = 0; 1276 uint32_t _itail_tgt = 0; 1277 RECOMP_REGS_LOCALS 1278 RECOMP_ENTER(0x360288E0u); 1279 1280 L_360288E0: 1281 PUSH32(esp, ebp); /* 0x360288E0: push ebp */ 1282 ebp = esp; /* 0x360288E1: mov ebp, esp */ 1283 PUSH32(esp, 0xFFFFFFFFu); /* 0x360288E3: push -1 */ 1284 PUSH32(esp, 0x36163563u); /* 0x360288E5: push 0x36163563 */ 1285 eax = MEM32(FS_BASE + (0)); /* 0x360288EA: mov eax, dword ptr fs:[0] */ 1286 PUSH32(esp, eax); /* 0x360288F0: push eax */ 1287 MEM32(FS_BASE + (0)) = esp; /* 0x360288F1: mov dword ptr fs:[0], esp */ 1288 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 1289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1290 esp = esp - 0x1Cu; /* 0x360288F8: sub esp, 0x1c */ 1291 _flag_k = FK_CMP; 1292 PUSH32(esp, ebx); /* 0x360288FB: push ebx */ 1293 PUSH32(esp, esi); /* 0x360288FC: push esi */ 1294 PUSH32(esp, edi); /* 0x360288FD: push edi */ 1295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1296 ebx = 0; /* 0x360288FE: xor ebx, ebx */ 1297 _cf = 0; 1298 _flag_k = FK_TEST; 1299 PUSH32(esp, 0x3Cu); /* 0x36028900: push 0x3c */ 1300 MEM32(ebp + (-0x18)) = ecx; /* 0x36028902: mov dword ptr [ebp - 0x18], ecx */ 1301 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1302 edi = 0; /* 0x36028905: xor edi, edi */ 1303 _cf = 0; 1304 _flag_k = FK_TEST; 1305 MEM32(ebp + (-0x14)) = ebx; /* 0x36028907: mov dword ptr [ebp - 0x14], ebx */ 1306 RECOMP_ICALL(0x3615FD6Au); /* 0x3602890A: call 0x3615fd6a */ /* not lifted */ 1307 RECOMP_FLAGS_IN(); 1308 esi = eax; /* 0x3602890F: mov esi, eax */ 1309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1310 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1311 esp = esp + 4; /* 0x36028911: add esp, 4 */ 1312 _flag_k = FK_ADD; 1313 MEM32(ebp + (-0x10)) = esi; /* 0x36028914: mov dword ptr [ebp - 0x10], esi */ 1314 /* cmp esi, edi */ /* 0x36028917: cmp esi, edi */ 1315 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1317 _flag_k = FK_CMP; 1318 MEM32(ebp + (-0x4)) = edi; /* 0x36028919: mov dword ptr [ebp - 4], edi */ 1319 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028999; /* 0x3602891C: je 0x36028999 */ 1320 L_3602891E: 1321 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3602891E: mov al, byte ptr [ebp + 0xf] */ 1322 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1323 ecx = ecx | 0xFFFFFFFFu; /* 0x36028921: or ecx, 0xffffffff */ 1324 _cf = 0; 1325 _flag_k = FK_TEST; 1326 MEM32(ebp + (-0x24)) = edi; /* 0x36028924: mov dword ptr [ebp - 0x24], edi */ 1327 MEM32(ebp + (-0x20)) = edi; /* 0x36028927: mov dword ptr [ebp - 0x20], edi */ 1328 MEM32(ebp + (-0x1C)) = edi; /* 0x3602892A: mov dword ptr [ebp - 0x1c], edi */ 1329 MEM8(ebp + (-0x28)) = (uint8_t)(LO8(eax)); /* 0x3602892D: mov byte ptr [ebp - 0x28], al */ 1330 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1331 eax = 0; /* 0x36028930: xor eax, eax */ 1332 _cf = 0; 1333 _flag_k = FK_TEST; 1334 edi = 0x363033BCu; /* 0x36028932: mov edi, 0x363033bc */ 1335 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; } /* 0x36028937: repne scasb al, byte ptr es:[edi] */ 1336 ecx = ~ecx; /* 0x36028939: not ecx */ 1337 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1338 ecx = ecx - 1; /* 0x3602893B: dec ecx */ 1339 _flag_k = FK_DEC; 1340 ebx = ecx; /* 0x3602893C: mov ebx, ecx */ 1341 PUSH32(esp, 1); /* 0x3602893E: push 1 */ 1342 PUSH32(esp, ebx); /* 0x36028940: push ebx */ 1343 ecx = ebp + (-0x28); /* 0x36028941: lea ecx, [ebp - 0x28] */ 1344 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36028944: call dword ptr [0x3616f00c] */ 1345 RECOMP_FLAGS_IN(); 1346 /* test LO8(eax), LO8(eax) */ /* 0x3602894A: test al, al */ 1347 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1348 _cf = 0; 1349 _flag_k = FK_NARROW(FK_TEST, 24); 1350 if (TEST_Z(_flag_a, _flag_b)) goto L_36028973; /* 0x3602894C: je 0x36028973 */ 1351 L_3602894E: 1352 edi = MEM32(ebp + (-0x24)); /* 0x3602894E: mov edi, dword ptr [ebp - 0x24] */ 1353 ecx = ebx; /* 0x36028951: mov ecx, ebx */ 1354 edx = ecx; /* 0x36028953: mov edx, ecx */ 1355 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36028955: shr ecx, 2 */ 1356 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1357 ecx = ecx >> 2u; /* 0x36028955: shr ecx, 2 */ 1358 esi = 0x363033BCu; /* 0x36028958: mov esi, 0x363033bc */ 1359 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3602895D: 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; } 1360 ecx = edx; /* 0x3602895F: mov ecx, edx */ 1361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1362 ecx = ecx & 3; /* 0x36028961: and ecx, 3 */ 1363 _cf = 0; 1364 _flag_k = FK_TEST; 1365 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36028964: 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; } 1366 eax = MEM32(ebp + (-0x24)); /* 0x36028966: mov eax, dword ptr [ebp - 0x24] */ 1367 esi = MEM32(ebp + (-0x10)); /* 0x36028969: mov esi, dword ptr [ebp - 0x10] */ 1368 MEM32(ebp + (-0x20)) = ebx; /* 0x3602896C: mov dword ptr [ebp - 0x20], ebx */ 1369 MEM8(ebx + eax) = (uint8_t)(0); /* 0x3602896F: mov byte ptr [ebx + eax], 0 */ 1370 L_36028973: 1371 ebx = 1; /* 0x36028973: mov ebx, 1 */ 1372 MEM32(ebp + (-0x14)) = ebx; /* 0x36028978: mov dword ptr [ebp - 0x14], ebx */ 1373 edx = MEM32(ebp + 0xC); /* 0x3602897B: mov edx, dword ptr [ebp + 0xc] */ 1374 eax = MEM32(ebp + 0x8); /* 0x3602897E: mov eax, dword ptr [ebp + 8] */ 1375 ecx = ebp + (-0x28); /* 0x36028981: lea ecx, [ebp - 0x28] */ 1376 PUSH32(esp, ecx); /* 0x36028984: push ecx */ 1377 PUSH32(esp, 0); /* 0x36028985: push 0 */ 1378 PUSH32(esp, edx); /* 0x36028987: push edx */ 1379 PUSH32(esp, eax); /* 0x36028988: push eax */ 1380 ecx = esi; /* 0x36028989: mov ecx, esi */ 1381 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3602898B: mov byte ptr [ebp - 4], bl */ 1382 RECOMP_ICALL(0x361550D0u); /* 0x3602898E: call 0x361550d0 */ /* not lifted */ 1383 RECOMP_FLAGS_IN(); 1384 esi = eax; /* 0x36028993: mov esi, eax */ 1385 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1386 edi = 0; /* 0x36028995: xor edi, edi */ 1387 _cf = 0; 1388 _flag_k = FK_TEST; 1389 goto L_3602899B; /* 0x36028997: jmp 0x3602899b */ 1390 L_36028999: 1391 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1392 esi = 0; /* 0x36028999: xor esi, esi */ 1393 _cf = 0; 1394 _flag_k = FK_TEST; 1395 L_3602899B: 1396 /* test LO8(ebx), 1 */ /* 0x3602899B: test bl, 1 */ 1397 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1398 _cf = 0; 1399 _flag_k = FK_NARROW(FK_TEST, 24); 1400 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602899E: mov dword ptr [ebp - 4], 0xffffffff */ 1401 if (TEST_Z(_flag_a, _flag_b)) goto L_360289D2; /* 0x360289A5: je 0x360289d2 */ 1402 L_360289A7: 1403 ecx = MEM32(ebp + (-0x24)); /* 0x360289A7: mov ecx, dword ptr [ebp - 0x24] */ 1404 /* cmp ecx, edi */ /* 0x360289AA: cmp ecx, edi */ 1405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 1406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1407 _flag_k = FK_CMP; 1408 if (CMP_EQ(_flag_a, _flag_b)) goto L_360289C9; /* 0x360289AC: je 0x360289c9 */ 1409 L_360289AE: 1410 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x360289AE: mov al, byte ptr [ecx - 1] */ 1411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1412 ecx = ecx - 1; /* 0x360289B1: dec ecx */ 1413 _flag_k = FK_DEC; 1414 /* test LO8(eax), LO8(eax) */ /* 0x360289B2: test al, al */ 1415 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1416 _cf = 0; 1417 _flag_k = FK_NARROW(FK_TEST, 24); 1418 if (TEST_Z(_flag_a, _flag_b)) goto L_360289C0; /* 0x360289B4: je 0x360289c0 */ 1419 L_360289B6: 1420 /* cmp LO8(eax), 0xFFu */ /* 0x360289B6: cmp al, 0xff */ 1421 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1423 _flag_k = FK_NARROW(FK_CMP, 24); 1424 if (CMP_EQ(_flag_a, _flag_b)) goto L_360289C0; /* 0x360289B8: je 0x360289c0 */ 1425 L_360289BA: 1426 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1427 SET_LO8(eax, LO8(eax) - 1); /* 0x360289BA: dec al */ 1428 _flag_k = FK_NARROW(FK_DEC, 24); 1429 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360289BC: mov byte ptr [ecx], al */ 1430 goto L_360289C9; /* 0x360289BE: jmp 0x360289c9 */ 1431 L_360289C0: 1432 PUSH32(esp, ecx); /* 0x360289C0: push ecx */ 1433 RECOMP_ICALL(0x3615FCC4u); /* 0x360289C1: call 0x3615fcc4 */ /* not lifted */ 1434 RECOMP_FLAGS_IN(); 1435 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1436 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1437 esp = esp + 4; /* 0x360289C6: add esp, 4 */ 1438 _flag_k = FK_ADD; 1439 L_360289C9: 1440 MEM32(ebp + (-0x24)) = edi; /* 0x360289C9: mov dword ptr [ebp - 0x24], edi */ 1441 MEM32(ebp + (-0x20)) = edi; /* 0x360289CC: mov dword ptr [ebp - 0x20], edi */ 1442 MEM32(ebp + (-0x1C)) = edi; /* 0x360289CF: mov dword ptr [ebp - 0x1c], edi */ 1443 L_360289D2: 1444 ecx = MEM32(ebp + (-0x18)); /* 0x360289D2: mov ecx, dword ptr [ebp - 0x18] */ 1445 PUSH32(esp, esi); /* 0x360289D5: push esi */ 1446 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x360289D6: call dword ptr [0x3616ff60] */ 1447 RECOMP_FLAGS_IN(); 1448 ecx = MEM32(ebp + (-0xC)); /* 0x360289DC: mov ecx, dword ptr [ebp - 0xc] */ 1449 edi = POP32_VAL(esp); /* 0x360289DF: pop edi */ 1450 esi = POP32_VAL(esp); /* 0x360289E0: pop esi */ 1451 ebx = POP32_VAL(esp); /* 0x360289E1: pop ebx */ 1452 MEM32(FS_BASE + (0)) = ecx; /* 0x360289E2: mov dword ptr fs:[0], ecx */ 1453 esp = ebp; /* 0x360289E9: mov esp, ebp */ 1454 ebp = POP32_VAL(esp); /* 0x360289EB: pop ebp */ 1455 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360289EC: ret 8 */ 1456 RECOMP_REGS_OUT(); 1457 } 1458 1459 void sub_360289F0(void) { 1460 int _fpu_cmp = 0; 1461 uint32_t _cf = 0; 1462 int _df = 1; 1463 uint32_t _flag_k = FK_NONE; 1464 uint32_t _flag_a = 0, _flag_b = 0; 1465 uint32_t _itail_tgt = 0; 1466 RECOMP_REGS_LOCALS 1467 RECOMP_ENTER(0x360289F0u); 1468 1469 L_360289F0: 1470 PUSH32(esp, ebp); /* 0x360289F0: push ebp */ 1471 ebp = esp; /* 0x360289F1: mov ebp, esp */ 1472 PUSH32(esp, 0xFFFFFFFFu); /* 0x360289F3: push -1 */ 1473 PUSH32(esp, 0x3616357Bu); /* 0x360289F5: push 0x3616357b */ 1474 eax = MEM32(FS_BASE + (0)); /* 0x360289FA: mov eax, dword ptr fs:[0] */ 1475 PUSH32(esp, eax); /* 0x36028A00: push eax */ 1476 MEM32(FS_BASE + (0)) = esp; /* 0x36028A01: mov dword ptr fs:[0], esp */ 1477 PUSH32(esp, ecx); /* 0x36028A08: push ecx */ 1478 PUSH32(esp, esi); /* 0x36028A09: push esi */ 1479 PUSH32(esp, 0x28u); /* 0x36028A0A: push 0x28 */ 1480 esi = ecx; /* 0x36028A0C: mov esi, ecx */ 1481 RECOMP_ICALL(0x3615FD6Au); /* 0x36028A0E: call 0x3615fd6a */ /* not lifted */ 1482 RECOMP_FLAGS_IN(); 1483 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1485 esp = esp + 4; /* 0x36028A13: add esp, 4 */ 1486 _flag_k = FK_ADD; 1487 MEM32(ebp + (-0x10)) = eax; /* 0x36028A16: mov dword ptr [ebp - 0x10], eax */ 1488 /* test eax, eax */ /* 0x36028A19: test eax, eax */ 1489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1490 _cf = 0; 1491 _flag_k = FK_TEST; 1492 MEM32(ebp + (-0x4)) = 0; /* 0x36028A1B: mov dword ptr [ebp - 4], 0 */ 1493 if (TEST_Z(_flag_a, _flag_b)) goto L_36028A35; /* 0x36028A22: je 0x36028a35 */ 1494 L_36028A24: 1495 ecx = MEM32(ebp + 0xC); /* 0x36028A24: mov ecx, dword ptr [ebp + 0xc] */ 1496 edx = MEM32(ebp + 0x8); /* 0x36028A27: mov edx, dword ptr [ebp + 8] */ 1497 PUSH32(esp, ecx); /* 0x36028A2A: push ecx */ 1498 PUSH32(esp, edx); /* 0x36028A2B: push edx */ 1499 ecx = eax; /* 0x36028A2C: mov ecx, eax */ 1500 RECOMP_ICALL(0x36155790u); /* 0x36028A2E: call 0x36155790 */ /* not lifted */ 1501 RECOMP_FLAGS_IN(); 1502 goto L_36028A37; /* 0x36028A33: jmp 0x36028a37 */ 1503 L_36028A35: 1504 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1505 eax = 0; /* 0x36028A35: xor eax, eax */ 1506 _cf = 0; 1507 _flag_k = FK_TEST; 1508 L_36028A37: 1509 PUSH32(esp, eax); /* 0x36028A37: push eax */ 1510 ecx = esi; /* 0x36028A38: mov ecx, esi */ 1511 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36028A3A: mov dword ptr [ebp - 4], 0xffffffff */ 1512 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36028A41: call dword ptr [0x3616ff60] */ 1513 RECOMP_FLAGS_IN(); 1514 ecx = MEM32(ebp + (-0xC)); /* 0x36028A47: mov ecx, dword ptr [ebp - 0xc] */ 1515 esi = POP32_VAL(esp); /* 0x36028A4A: pop esi */ 1516 MEM32(FS_BASE + (0)) = ecx; /* 0x36028A4B: mov dword ptr fs:[0], ecx */ 1517 esp = ebp; /* 0x36028A52: mov esp, ebp */ 1518 ebp = POP32_VAL(esp); /* 0x36028A54: pop ebp */ 1519 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36028A55: ret 8 */ 1520 RECOMP_REGS_OUT(); 1521 } 1522 1523 void sub_36028A60(void) { 1524 int _fpu_cmp = 0; 1525 uint32_t _cf = 0; 1526 int _df = 1; 1527 uint32_t _flag_k = FK_NONE; 1528 uint32_t _flag_a = 0, _flag_b = 0; 1529 uint32_t _itail_tgt = 0; 1530 RECOMP_REGS_LOCALS 1531 RECOMP_ENTER(0x36028A60u); 1532 1533 L_36028A60: 1534 PUSH32(esp, ebp); /* 0x36028A60: push ebp */ 1535 ebp = esp; /* 0x36028A61: mov ebp, esp */ 1536 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028A63: push -1 */ 1537 PUSH32(esp, 0x3616359Bu); /* 0x36028A65: push 0x3616359b */ 1538 eax = MEM32(FS_BASE + (0)); /* 0x36028A6A: mov eax, dword ptr fs:[0] */ 1539 PUSH32(esp, eax); /* 0x36028A70: push eax */ 1540 MEM32(FS_BASE + (0)) = esp; /* 0x36028A71: mov dword ptr fs:[0], esp */ 1541 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1542 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1543 esp = esp - 0xCu; /* 0x36028A78: sub esp, 0xc */ 1544 _flag_k = FK_CMP; 1545 PUSH32(esp, ebx); /* 0x36028A7B: push ebx */ 1546 PUSH32(esp, esi); /* 0x36028A7C: push esi */ 1547 PUSH32(esp, edi); /* 0x36028A7D: push edi */ 1548 PUSH32(esp, 0x3Cu); /* 0x36028A7E: push 0x3c */ 1549 MEM32(ebp + (-0x18)) = ecx; /* 0x36028A80: mov dword ptr [ebp - 0x18], ecx */ 1550 RECOMP_ICALL(0x3615FD6Au); /* 0x36028A83: call 0x3615fd6a */ /* not lifted */ 1551 RECOMP_FLAGS_IN(); 1552 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1554 esp = esp + 4; /* 0x36028A88: add esp, 4 */ 1555 _flag_k = FK_ADD; 1556 MEM32(ebp + (-0x14)) = eax; /* 0x36028A8B: mov dword ptr [ebp - 0x14], eax */ 1557 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1558 esi = 0; /* 0x36028A8E: xor esi, esi */ 1559 _cf = 0; 1560 _flag_k = FK_TEST; 1561 /* cmp eax, esi */ /* 0x36028A90: cmp eax, esi */ 1562 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1564 _flag_k = FK_CMP; 1565 MEM32(ebp + (-0x4)) = esi; /* 0x36028A92: mov dword ptr [ebp - 4], esi */ 1566 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028B61; /* 0x36028A95: je 0x36028b61 */ 1567 L_36028A9B: 1568 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x36028A9B: mov al, byte ptr [ebp + 0xf] */ 1569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1571 esp = esp - 0x10u; /* 0x36028A9E: sub esp, 0x10 */ 1572 _flag_k = FK_CMP; 1573 ebx = esp; /* 0x36028AA1: mov ebx, esp */ 1574 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1575 ecx = ecx | 0xFFFFFFFFu; /* 0x36028AA3: or ecx, 0xffffffff */ 1576 _cf = 0; 1577 _flag_k = FK_TEST; 1578 MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36028AA6: mov byte ptr [ebx], al */ 1579 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1580 eax = 0; /* 0x36028AA8: xor eax, eax */ 1581 _cf = 0; 1582 _flag_k = FK_TEST; 1583 edi = 0x363033BCu; /* 0x36028AAA: mov edi, 0x363033bc */ 1584 MEM32(ebx + 0x4) = esi; /* 0x36028AAF: mov dword ptr [ebx + 4], esi */ 1585 MEM32(ebx + 0x8) = esi; /* 0x36028AB2: mov dword ptr [ebx + 8], esi */ 1586 MEM32(ebx + 0xC) = esi; /* 0x36028AB5: mov dword ptr [ebx + 0xc], esi */ 1587 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; } /* 0x36028AB8: repne scasb al, byte ptr es:[edi] */ 1588 ecx = ~ecx; /* 0x36028ABA: not ecx */ 1589 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1590 ecx = ecx - 1; /* 0x36028ABC: dec ecx */ 1591 _flag_k = FK_DEC; 1592 edi = ecx; /* 0x36028ABD: mov edi, ecx */ 1593 /* cmp edi, 0xFFFFFFFDu */ /* 0x36028ABF: cmp edi, -3 */ 1594 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu); 1595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1596 _flag_k = FK_CMP; 1597 MEM32(ebp + (-0x10)) = esp; /* 0x36028AC2: mov dword ptr [ebp - 0x10], esp */ 1598 MEM32(ebp + (-0x10)) = edi; /* 0x36028AC5: mov dword ptr [ebp - 0x10], edi */ 1599 if (CMP_BE(_flag_a, _flag_b)) goto L_36028AD0; /* 0x36028AC8: jbe 0x36028ad0 */ 1600 L_36028ACA: 1601 RECOMP_ICALL(MEM32(0x3616F104)); /* 0x36028ACA: call dword ptr [0x3616f104] */ 1602 RECOMP_FLAGS_IN(); 1603 L_36028AD0: 1604 eax = MEM32(ebx + 0x4); /* 0x36028AD0: mov eax, dword ptr [ebx + 4] */ 1605 /* cmp eax, esi */ /* 0x36028AD3: cmp eax, esi */ 1606 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1608 _flag_k = FK_CMP; 1609 MEM32(ebx + 0x8) = esi; /* 0x36028AD5: mov dword ptr [ebx + 8], esi */ 1610 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028AF5; /* 0x36028AD8: je 0x36028af5 */ 1611 L_36028ADA: 1612 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x36028ADA: mov al, byte ptr [eax - 1] */ 1613 /* test LO8(eax), LO8(eax) */ /* 0x36028ADD: test al, al */ 1614 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1615 _cf = 0; 1616 _flag_k = FK_NARROW(FK_TEST, 24); 1617 if (TEST_Z(_flag_a, _flag_b)) goto L_36028AF5; /* 0x36028ADF: je 0x36028af5 */ 1618 L_36028AE1: 1619 /* cmp LO8(eax), 0xFFu */ /* 0x36028AE1: cmp al, 0xff */ 1620 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1622 _flag_k = FK_NARROW(FK_CMP, 24); 1623 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028AF5; /* 0x36028AE3: je 0x36028af5 */ 1624 L_36028AE5: 1625 /* cmp edi, esi */ /* 0x36028AE5: cmp edi, esi */ 1626 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1628 _flag_k = FK_CMP; 1629 if (CMP_NE(_flag_a, _flag_b)) goto L_36028B1B; /* 0x36028AE7: jne 0x36028b1b */ 1630 L_36028AE9: 1631 PUSH32(esp, 1); /* 0x36028AE9: push 1 */ 1632 ecx = ebx; /* 0x36028AEB: mov ecx, ebx */ 1633 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36028AED: call dword ptr [0x3616f100] */ 1634 RECOMP_FLAGS_IN(); 1635 goto L_36028B4E; /* 0x36028AF3: jmp 0x36028b4e */ 1636 L_36028AF5: 1637 /* cmp edi, esi */ /* 0x36028AF5: cmp edi, esi */ 1638 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1640 _flag_k = FK_CMP; 1641 if (CMP_NE(_flag_a, _flag_b)) goto L_36028B05; /* 0x36028AF7: jne 0x36028b05 */ 1642 L_36028AF9: 1643 PUSH32(esp, 1); /* 0x36028AF9: push 1 */ 1644 ecx = ebx; /* 0x36028AFB: mov ecx, ebx */ 1645 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36028AFD: call dword ptr [0x3616f100] */ 1646 RECOMP_FLAGS_IN(); 1647 goto L_36028B4E; /* 0x36028B03: jmp 0x36028b4e */ 1648 L_36028B05: 1649 eax = MEM32(ebx + 0xC); /* 0x36028B05: mov eax, dword ptr [ebx + 0xc] */ 1650 /* cmp eax, 0x1Fu */ /* 0x36028B08: cmp eax, 0x1f */ 1651 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 1652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1653 _flag_k = FK_CMP; 1654 if (CMP_A(_flag_a, _flag_b)) goto L_36028B11; /* 0x36028B0B: ja 0x36028b11 */ 1655 L_36028B0D: 1656 /* cmp eax, edi */ /* 0x36028B0D: cmp eax, edi */ 1657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 1658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1659 _flag_k = FK_CMP; 1660 if (CMP_AE(_flag_a, _flag_b)) goto L_36028B24; /* 0x36028B0F: jae 0x36028b24 */ 1661 L_36028B11: 1662 PUSH32(esp, 1); /* 0x36028B11: push 1 */ 1663 ecx = ebx; /* 0x36028B13: mov ecx, ebx */ 1664 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36028B15: call dword ptr [0x3616f100] */ 1665 RECOMP_FLAGS_IN(); 1666 L_36028B1B: 1667 PUSH32(esp, edi); /* 0x36028B1B: push edi */ 1668 ecx = ebx; /* 0x36028B1C: mov ecx, ebx */ 1669 RECOMP_ICALL(MEM32(0x3616F048)); /* 0x36028B1E: call dword ptr [0x3616f048] */ 1670 RECOMP_FLAGS_IN(); 1671 L_36028B24: 1672 eax = MEM32(ebx + 0x4); /* 0x36028B24: mov eax, dword ptr [ebx + 4] */ 1673 ecx = edi; /* 0x36028B27: mov ecx, edi */ 1674 edx = ecx; /* 0x36028B29: mov edx, ecx */ 1675 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36028B2B: shr ecx, 2 */ 1676 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1677 ecx = ecx >> 2u; /* 0x36028B2B: shr ecx, 2 */ 1678 edi = eax; /* 0x36028B2E: mov edi, eax */ 1679 eax = MEM32(ebp + (-0x10)); /* 0x36028B30: mov eax, dword ptr [ebp - 0x10] */ 1680 esi = 0x363033BCu; /* 0x36028B33: mov esi, 0x363033bc */ 1681 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36028B38: 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; } 1682 ecx = edx; /* 0x36028B3A: mov ecx, edx */ 1683 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1684 ecx = ecx & 3; /* 0x36028B3C: and ecx, 3 */ 1685 _cf = 0; 1686 _flag_k = FK_TEST; 1687 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36028B3F: 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; } 1688 MEM32(ebx + 0x8) = eax; /* 0x36028B41: mov dword ptr [ebx + 8], eax */ 1689 ebx = MEM32(ebx + 0x4); /* 0x36028B44: mov ebx, dword ptr [ebx + 4] */ 1690 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1692 ebx = ebx + eax; /* 0x36028B47: add ebx, eax */ 1693 _flag_k = FK_ADD; 1694 MEM8(ebx) = (uint8_t)(0); /* 0x36028B49: mov byte ptr [ebx], 0 */ 1695 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1696 esi = 0; /* 0x36028B4C: xor esi, esi */ 1697 _cf = 0; 1698 _flag_k = FK_TEST; 1699 L_36028B4E: 1700 eax = MEM32(ebp + 0xC); /* 0x36028B4E: mov eax, dword ptr [ebp + 0xc] */ 1701 ecx = MEM32(ebp + 0x8); /* 0x36028B51: mov ecx, dword ptr [ebp + 8] */ 1702 PUSH32(esp, esi); /* 0x36028B54: push esi */ 1703 PUSH32(esp, eax); /* 0x36028B55: push eax */ 1704 PUSH32(esp, ecx); /* 0x36028B56: push ecx */ 1705 ecx = MEM32(ebp + (-0x14)); /* 0x36028B57: mov ecx, dword ptr [ebp - 0x14] */ 1706 RECOMP_ICALL(0x36156390u); /* 0x36028B5A: call 0x36156390 */ /* not lifted */ 1707 RECOMP_FLAGS_IN(); 1708 goto L_36028B63; /* 0x36028B5F: jmp 0x36028b63 */ 1709 L_36028B61: 1710 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1711 eax = 0; /* 0x36028B61: xor eax, eax */ 1712 _cf = 0; 1713 _flag_k = FK_TEST; 1714 L_36028B63: 1715 ecx = MEM32(ebp + (-0x18)); /* 0x36028B63: mov ecx, dword ptr [ebp - 0x18] */ 1716 PUSH32(esp, eax); /* 0x36028B66: push eax */ 1717 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36028B67: mov dword ptr [ebp - 4], 0xffffffff */ 1718 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36028B6E: call dword ptr [0x3616ff60] */ 1719 RECOMP_FLAGS_IN(); 1720 ecx = MEM32(ebp + (-0xC)); /* 0x36028B74: mov ecx, dword ptr [ebp - 0xc] */ 1721 edi = POP32_VAL(esp); /* 0x36028B77: pop edi */ 1722 esi = POP32_VAL(esp); /* 0x36028B78: pop esi */ 1723 MEM32(FS_BASE + (0)) = ecx; /* 0x36028B79: mov dword ptr fs:[0], ecx */ 1724 ebx = POP32_VAL(esp); /* 0x36028B80: pop ebx */ 1725 esp = ebp; /* 0x36028B81: mov esp, ebp */ 1726 ebp = POP32_VAL(esp); /* 0x36028B83: pop ebp */ 1727 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36028B84: ret 8 */ 1728 RECOMP_REGS_OUT(); 1729 } 1730 1731 void sub_36028B90(void) { 1732 int _fpu_cmp = 0; 1733 uint32_t _cf = 0; 1734 int _df = 1; 1735 uint32_t _flag_k = FK_NONE; 1736 uint32_t _flag_a = 0, _flag_b = 0; 1737 uint32_t _itail_tgt = 0; 1738 RECOMP_REGS_LOCALS 1739 RECOMP_ENTER(0x36028B90u); 1740 1741 L_36028B90: 1742 PUSH32(esp, ebp); /* 0x36028B90: push ebp */ 1743 ebp = esp; /* 0x36028B91: mov ebp, esp */ 1744 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028B93: push -1 */ 1745 PUSH32(esp, 0x361635BBu); /* 0x36028B95: push 0x361635bb */ 1746 eax = MEM32(FS_BASE + (0)); /* 0x36028B9A: mov eax, dword ptr fs:[0] */ 1747 PUSH32(esp, eax); /* 0x36028BA0: push eax */ 1748 MEM32(FS_BASE + (0)) = esp; /* 0x36028BA1: mov dword ptr fs:[0], esp */ 1749 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1751 esp = esp - 0x10u; /* 0x36028BA8: sub esp, 0x10 */ 1752 _flag_k = FK_CMP; 1753 PUSH32(esp, ebx); /* 0x36028BAB: push ebx */ 1754 PUSH32(esp, esi); /* 0x36028BAC: push esi */ 1755 ebx = ecx; /* 0x36028BAD: mov ebx, ecx */ 1756 RECOMP_ICALL(0x3601F240u); /* 0x36028BAF: call 0x3601f240 */ /* not lifted */ 1757 RECOMP_FLAGS_IN(); 1758 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1759 esi = 0; /* 0x36028BB4: xor esi, esi */ 1760 _cf = 0; 1761 _flag_k = FK_TEST; 1762 /* cmp eax, esi */ /* 0x36028BB6: cmp eax, esi */ 1763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1765 _flag_k = FK_CMP; 1766 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028C1A; /* 0x36028BB8: je 0x36028c1a */ 1767 L_36028BBA: 1768 eax = MEM32(eax + 0x150); /* 0x36028BBA: mov eax, dword ptr [eax + 0x150] */ 1769 PUSH32(esp, edi); /* 0x36028BC0: push edi */ 1770 edi = MEM32(ebp + 0x10); /* 0x36028BC1: mov edi, dword ptr [ebp + 0x10] */ 1771 PUSH32(esp, edi); /* 0x36028BC4: push edi */ 1772 ecx = ebp + (-0x14); /* 0x36028BC5: lea ecx, [ebp - 0x14] */ 1773 PUSH32(esp, ecx); /* 0x36028BC8: push ecx */ 1774 ecx = eax; /* 0x36028BC9: mov ecx, eax */ 1775 MEM32(ebp + (-0x14)) = esi; /* 0x36028BCB: mov dword ptr [ebp - 0x14], esi */ 1776 MEM32(ebp + (-0x10)) = esi; /* 0x36028BCE: mov dword ptr [ebp - 0x10], esi */ 1777 RECOMP_ICALL(0x360601B0u); /* 0x36028BD1: call 0x360601b0 */ /* not lifted */ 1778 RECOMP_FLAGS_IN(); 1779 PUSH32(esp, 0x3Cu); /* 0x36028BD6: push 0x3c */ 1780 RECOMP_ICALL(0x3615FD6Au); /* 0x36028BD8: call 0x3615fd6a */ /* not lifted */ 1781 RECOMP_FLAGS_IN(); 1782 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1784 esp = esp + 4; /* 0x36028BDD: add esp, 4 */ 1785 _flag_k = FK_ADD; 1786 MEM32(ebp + 0x10) = eax; /* 0x36028BE0: mov dword ptr [ebp + 0x10], eax */ 1787 /* cmp eax, esi */ /* 0x36028BE3: cmp eax, esi */ 1788 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1790 _flag_k = FK_CMP; 1791 MEM32(ebp + (-0x4)) = esi; /* 0x36028BE5: mov dword ptr [ebp - 4], esi */ 1792 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028C07; /* 0x36028BE8: je 0x36028c07 */ 1793 L_36028BEA: 1794 ecx = MEM32(ebp + 0xC); /* 0x36028BEA: mov ecx, dword ptr [ebp + 0xc] */ 1795 PUSH32(esp, edi); /* 0x36028BED: push edi */ 1796 edx = ebp + (-0x1C); /* 0x36028BEE: lea edx, [ebp - 0x1c] */ 1797 PUSH32(esp, edx); /* 0x36028BF1: push edx */ 1798 edx = MEM32(ebp + 0x8); /* 0x36028BF2: mov edx, dword ptr [ebp + 8] */ 1799 PUSH32(esp, esi); /* 0x36028BF5: push esi */ 1800 PUSH32(esp, ecx); /* 0x36028BF6: push ecx */ 1801 PUSH32(esp, edx); /* 0x36028BF7: push edx */ 1802 ecx = eax; /* 0x36028BF8: mov ecx, eax */ 1803 MEM32(ebp + (-0x1C)) = esi; /* 0x36028BFA: mov dword ptr [ebp - 0x1c], esi */ 1804 MEM32(ebp + (-0x18)) = esi; /* 0x36028BFD: mov dword ptr [ebp - 0x18], esi */ 1805 RECOMP_ICALL(0x36156860u); /* 0x36028C00: call 0x36156860 */ /* not lifted */ 1806 RECOMP_FLAGS_IN(); 1807 goto L_36028C09; /* 0x36028C05: jmp 0x36028c09 */ 1808 L_36028C07: 1809 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1810 eax = 0; /* 0x36028C07: xor eax, eax */ 1811 _cf = 0; 1812 _flag_k = FK_TEST; 1813 L_36028C09: 1814 PUSH32(esp, eax); /* 0x36028C09: push eax */ 1815 ecx = ebx; /* 0x36028C0A: mov ecx, ebx */ 1816 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36028C0C: mov dword ptr [ebp - 4], 0xffffffff */ 1817 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36028C13: call dword ptr [0x3616ff60] */ 1818 RECOMP_FLAGS_IN(); 1819 edi = POP32_VAL(esp); /* 0x36028C19: pop edi */ 1820 L_36028C1A: 1821 ecx = MEM32(ebp + (-0xC)); /* 0x36028C1A: mov ecx, dword ptr [ebp - 0xc] */ 1822 esi = POP32_VAL(esp); /* 0x36028C1D: pop esi */ 1823 ebx = POP32_VAL(esp); /* 0x36028C1E: pop ebx */ 1824 MEM32(FS_BASE + (0)) = ecx; /* 0x36028C1F: mov dword ptr fs:[0], ecx */ 1825 esp = ebp; /* 0x36028C26: mov esp, ebp */ 1826 ebp = POP32_VAL(esp); /* 0x36028C28: pop ebp */ 1827 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36028C29: ret 0xc */ 1828 RECOMP_REGS_OUT(); 1829 } 1830 1831 void sub_36028C30(void) { 1832 int _fpu_cmp = 0; 1833 uint32_t _cf = 0; 1834 int _df = 1; 1835 uint32_t _flag_k = FK_NONE; 1836 uint32_t _flag_a = 0, _flag_b = 0; 1837 uint32_t _itail_tgt = 0; 1838 RECOMP_REGS_LOCALS 1839 RECOMP_ENTER(0x36028C30u); 1840 1841 L_36028C30: 1842 PUSH32(esp, ebp); /* 0x36028C30: push ebp */ 1843 ebp = esp; /* 0x36028C31: mov ebp, esp */ 1844 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028C33: push -1 */ 1845 PUSH32(esp, 0x361635DBu); /* 0x36028C35: push 0x361635db */ 1846 eax = MEM32(FS_BASE + (0)); /* 0x36028C3A: mov eax, dword ptr fs:[0] */ 1847 PUSH32(esp, eax); /* 0x36028C40: push eax */ 1848 MEM32(FS_BASE + (0)) = esp; /* 0x36028C41: mov dword ptr fs:[0], esp */ 1849 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1850 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1851 esp = esp - 0x10u; /* 0x36028C48: sub esp, 0x10 */ 1852 _flag_k = FK_CMP; 1853 PUSH32(esp, ebx); /* 0x36028C4B: push ebx */ 1854 PUSH32(esp, esi); /* 0x36028C4C: push esi */ 1855 ebx = ecx; /* 0x36028C4D: mov ebx, ecx */ 1856 RECOMP_ICALL(0x3601F240u); /* 0x36028C4F: call 0x3601f240 */ /* not lifted */ 1857 RECOMP_FLAGS_IN(); 1858 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1859 esi = 0; /* 0x36028C54: xor esi, esi */ 1860 _cf = 0; 1861 _flag_k = FK_TEST; 1862 /* cmp eax, esi */ /* 0x36028C56: cmp eax, esi */ 1863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1865 _flag_k = FK_CMP; 1866 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028CBB; /* 0x36028C58: je 0x36028cbb */ 1867 L_36028C5A: 1868 eax = MEM32(eax + 0x150); /* 0x36028C5A: mov eax, dword ptr [eax + 0x150] */ 1869 PUSH32(esp, edi); /* 0x36028C60: push edi */ 1870 edi = MEM32(ebp + 0x10); /* 0x36028C61: mov edi, dword ptr [ebp + 0x10] */ 1871 PUSH32(esp, edi); /* 0x36028C64: push edi */ 1872 ecx = ebp + (-0x14); /* 0x36028C65: lea ecx, [ebp - 0x14] */ 1873 PUSH32(esp, ecx); /* 0x36028C68: push ecx */ 1874 ecx = eax; /* 0x36028C69: mov ecx, eax */ 1875 MEM32(ebp + (-0x14)) = esi; /* 0x36028C6B: mov dword ptr [ebp - 0x14], esi */ 1876 MEM32(ebp + (-0x10)) = esi; /* 0x36028C6E: mov dword ptr [ebp - 0x10], esi */ 1877 RECOMP_ICALL(0x36060090u); /* 0x36028C71: call 0x36060090 */ /* not lifted */ 1878 RECOMP_FLAGS_IN(); 1879 PUSH32(esp, 0x3Cu); /* 0x36028C76: push 0x3c */ 1880 RECOMP_ICALL(0x3615FD6Au); /* 0x36028C78: call 0x3615fd6a */ /* not lifted */ 1881 RECOMP_FLAGS_IN(); 1882 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1884 esp = esp + 4; /* 0x36028C7D: add esp, 4 */ 1885 _flag_k = FK_ADD; 1886 MEM32(ebp + 0x10) = eax; /* 0x36028C80: mov dword ptr [ebp + 0x10], eax */ 1887 /* cmp eax, esi */ /* 0x36028C83: cmp eax, esi */ 1888 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1890 _flag_k = FK_CMP; 1891 MEM32(ebp + (-0x4)) = esi; /* 0x36028C85: mov dword ptr [ebp - 4], esi */ 1892 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028CA8; /* 0x36028C88: je 0x36028ca8 */ 1893 L_36028C8A: 1894 ecx = MEM32(ebp + 0xC); /* 0x36028C8A: mov ecx, dword ptr [ebp + 0xc] */ 1895 PUSH32(esp, edi); /* 0x36028C8D: push edi */ 1896 edx = ebp + (-0x1C); /* 0x36028C8E: lea edx, [ebp - 0x1c] */ 1897 PUSH32(esp, edx); /* 0x36028C91: push edx */ 1898 edx = MEM32(ebp + 0x8); /* 0x36028C92: mov edx, dword ptr [ebp + 8] */ 1899 PUSH32(esp, 1); /* 0x36028C95: push 1 */ 1900 PUSH32(esp, ecx); /* 0x36028C97: push ecx */ 1901 PUSH32(esp, edx); /* 0x36028C98: push edx */ 1902 ecx = eax; /* 0x36028C99: mov ecx, eax */ 1903 MEM32(ebp + (-0x1C)) = esi; /* 0x36028C9B: mov dword ptr [ebp - 0x1c], esi */ 1904 MEM32(ebp + (-0x18)) = esi; /* 0x36028C9E: mov dword ptr [ebp - 0x18], esi */ 1905 RECOMP_ICALL(0x36156860u); /* 0x36028CA1: call 0x36156860 */ /* not lifted */ 1906 RECOMP_FLAGS_IN(); 1907 goto L_36028CAA; /* 0x36028CA6: jmp 0x36028caa */ 1908 L_36028CA8: 1909 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1910 eax = 0; /* 0x36028CA8: xor eax, eax */ 1911 _cf = 0; 1912 _flag_k = FK_TEST; 1913 L_36028CAA: 1914 PUSH32(esp, eax); /* 0x36028CAA: push eax */ 1915 ecx = ebx; /* 0x36028CAB: mov ecx, ebx */ 1916 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36028CAD: mov dword ptr [ebp - 4], 0xffffffff */ 1917 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36028CB4: call dword ptr [0x3616ff60] */ 1918 RECOMP_FLAGS_IN(); 1919 edi = POP32_VAL(esp); /* 0x36028CBA: pop edi */ 1920 L_36028CBB: 1921 ecx = MEM32(ebp + (-0xC)); /* 0x36028CBB: mov ecx, dword ptr [ebp - 0xc] */ 1922 esi = POP32_VAL(esp); /* 0x36028CBE: pop esi */ 1923 ebx = POP32_VAL(esp); /* 0x36028CBF: pop ebx */ 1924 MEM32(FS_BASE + (0)) = ecx; /* 0x36028CC0: mov dword ptr fs:[0], ecx */ 1925 esp = ebp; /* 0x36028CC7: mov esp, ebp */ 1926 ebp = POP32_VAL(esp); /* 0x36028CC9: pop ebp */ 1927 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36028CCA: ret 0xc */ 1928 RECOMP_REGS_OUT(); 1929 } 1930 1931 void sub_36028CD0(void) { 1932 int _fpu_cmp = 0; 1933 uint32_t _cf = 0; 1934 int _df = 1; 1935 uint32_t _flag_k = FK_NONE; 1936 uint32_t _flag_a = 0, _flag_b = 0; 1937 uint32_t _itail_tgt = 0; 1938 RECOMP_REGS_LOCALS 1939 RECOMP_ENTER(0x36028CD0u); 1940 1941 L_36028CD0: 1942 PUSH32(esp, ebp); /* 0x36028CD0: push ebp */ 1943 ebp = esp; /* 0x36028CD1: mov ebp, esp */ 1944 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028CD3: push -1 */ 1945 PUSH32(esp, 0x361635FBu); /* 0x36028CD5: push 0x361635fb */ 1946 eax = MEM32(FS_BASE + (0)); /* 0x36028CDA: mov eax, dword ptr fs:[0] */ 1947 PUSH32(esp, eax); /* 0x36028CE0: push eax */ 1948 MEM32(FS_BASE + (0)) = esp; /* 0x36028CE1: mov dword ptr fs:[0], esp */ 1949 PUSH32(esp, ecx); /* 0x36028CE8: push ecx */ 1950 PUSH32(esp, ebx); /* 0x36028CE9: push ebx */ 1951 PUSH32(esp, esi); /* 0x36028CEA: push esi */ 1952 PUSH32(esp, edi); /* 0x36028CEB: push edi */ 1953 esi = ecx; /* 0x36028CEC: mov esi, ecx */ 1954 RECOMP_ICALL(0x3601F240u); /* 0x36028CEE: call 0x3601f240 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 edi = eax; /* 0x36028CF3: mov edi, eax */ 1957 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x36028CF5: mov al, byte ptr [ebp + 0x14] */ 1958 /* test LO8(eax), LO8(eax) */ /* 0x36028CF8: test al, al */ 1959 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1960 _cf = 0; 1961 _flag_k = FK_NARROW(FK_TEST, 24); 1962 if (TEST_NZ(_flag_a, _flag_b)) goto L_36028D1D; /* 0x36028CFA: jne 0x36028d1d */ 1963 L_36028CFC: 1964 ecx = edi; /* 0x36028CFC: mov ecx, edi */ 1965 RECOMP_ICALL(0x36071F90u); /* 0x36028CFE: call 0x36071f90 */ /* not lifted */ 1966 RECOMP_FLAGS_IN(); 1967 ecx = edi + 0xE4; /* 0x36028D03: lea ecx, [edi + 0xe4] */ 1968 ebx = eax; /* 0x36028D09: mov ebx, eax */ 1969 eax = MEM32(ecx); /* 0x36028D0B: mov eax, dword ptr [ecx] */ 1970 PUSH32(esp, 8); /* 0x36028D0D: push 8 */ 1971 RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x36028D0F: call dword ptr [eax + 0x18] */ 1972 RECOMP_FLAGS_IN(); 1973 PUSH32(esp, 0); /* 0x36028D12: push 0 */ 1974 ecx = ebx; /* 0x36028D14: mov ecx, ebx */ 1975 RECOMP_ICALL(0x360774A0u); /* 0x36028D16: call 0x360774a0 */ /* not lifted */ 1976 RECOMP_FLAGS_IN(); 1977 goto L_36028D59; /* 0x36028D1B: jmp 0x36028d59 */ 1978 L_36028D1D: 1979 ecx = esi; /* 0x36028D1D: mov ecx, esi */ 1980 RECOMP_ICALL(0x3601F240u); /* 0x36028D1F: call 0x3601f240 */ /* not lifted */ 1981 RECOMP_FLAGS_IN(); 1982 ecx = esi; /* 0x36028D24: mov ecx, esi */ 1983 edi = eax + 0xE4; /* 0x36028D26: lea edi, [eax + 0xe4] */ 1984 RECOMP_ICALL(0x3601F240u); /* 0x36028D2C: call 0x3601f240 */ /* not lifted */ 1985 RECOMP_FLAGS_IN(); 1986 edx = MEM32(eax + 0xE4); /* 0x36028D31: mov edx, dword ptr [eax + 0xe4] */ 1987 ebx = eax + 0xE4; /* 0x36028D37: lea ebx, [eax + 0xe4] */ 1988 eax = MEM32(edi); /* 0x36028D3D: mov eax, dword ptr [edi] */ 1989 PUSH32(esp, 2); /* 0x36028D3F: push 2 */ 1990 PUSH32(esp, 0x3Du); /* 0x36028D41: push 0x3d */ 1991 ecx = edi; /* 0x36028D43: mov ecx, edi */ 1992 MEM32(ebp + (-0x10)) = edx; /* 0x36028D45: mov dword ptr [ebp - 0x10], edx */ 1993 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36028D48: call dword ptr [eax + 4] */ 1994 RECOMP_FLAGS_IN(); 1995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0x10)); 1996 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1997 eax = eax - MEM32(ebp + 0x10); /* 0x36028D4B: sub eax, dword ptr [ebp + 0x10] */ 1998 _flag_k = FK_CMP; 1999 edx = MEM32(ebp + (-0x10)); /* 0x36028D4E: mov edx, dword ptr [ebp - 0x10] */ 2000 PUSH32(esp, eax); /* 0x36028D51: push eax */ 2001 PUSH32(esp, 0x3Du); /* 0x36028D52: push 0x3d */ 2002 ecx = ebx; /* 0x36028D54: mov ecx, ebx */ 2003 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36028D56: call dword ptr [edx + 8] */ 2004 RECOMP_FLAGS_IN(); 2005 L_36028D59: 2006 PUSH32(esp, 0x30u); /* 0x36028D59: push 0x30 */ 2007 RECOMP_ICALL(0x3615FD6Au); /* 0x36028D5B: call 0x3615fd6a */ /* not lifted */ 2008 RECOMP_FLAGS_IN(); 2009 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2010 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2011 esp = esp + 4; /* 0x36028D60: add esp, 4 */ 2012 _flag_k = FK_ADD; 2013 MEM32(ebp + (-0x10)) = eax; /* 0x36028D63: mov dword ptr [ebp - 0x10], eax */ 2014 /* test eax, eax */ /* 0x36028D66: test eax, eax */ 2015 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2016 _cf = 0; 2017 _flag_k = FK_TEST; 2018 MEM32(ebp + (-0x4)) = 0; /* 0x36028D68: mov dword ptr [ebp - 4], 0 */ 2019 if (TEST_Z(_flag_a, _flag_b)) goto L_36028D8F; /* 0x36028D6F: je 0x36028d8f */ 2020 L_36028D71: 2021 SET_LO8(ecx, MEM8(ebp + 0x14)); /* 0x36028D71: mov cl, byte ptr [ebp + 0x14] */ 2022 edx = MEM32(ebp + 0x10); /* 0x36028D74: mov edx, dword ptr [ebp + 0x10] */ 2023 /* test LO8(ecx), LO8(ecx) */ /* 0x36028D77: test cl, cl */ 2024 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2025 _cf = 0; 2026 _flag_k = FK_NARROW(FK_TEST, 24); 2027 SET_LO8(ecx, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x36028D79: sete cl */ 2028 PUSH32(esp, ecx); /* 0x36028D7C: push ecx */ 2029 ecx = MEM32(ebp + 0xC); /* 0x36028D7D: mov ecx, dword ptr [ebp + 0xc] */ 2030 PUSH32(esp, edx); /* 0x36028D80: push edx */ 2031 edx = MEM32(ebp + 0x8); /* 0x36028D81: mov edx, dword ptr [ebp + 8] */ 2032 PUSH32(esp, ecx); /* 0x36028D84: push ecx */ 2033 PUSH32(esp, edx); /* 0x36028D85: push edx */ 2034 ecx = eax; /* 0x36028D86: mov ecx, eax */ 2035 RECOMP_ICALL(0x36155590u); /* 0x36028D88: call 0x36155590 */ /* not lifted */ 2036 RECOMP_FLAGS_IN(); 2037 goto L_36028D91; /* 0x36028D8D: jmp 0x36028d91 */ 2038 L_36028D8F: 2039 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2040 eax = 0; /* 0x36028D8F: xor eax, eax */ 2041 _cf = 0; 2042 _flag_k = FK_TEST; 2043 L_36028D91: 2044 PUSH32(esp, eax); /* 0x36028D91: push eax */ 2045 ecx = esi; /* 0x36028D92: mov ecx, esi */ 2046 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36028D94: mov dword ptr [ebp - 4], 0xffffffff */ 2047 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36028D9B: call dword ptr [0x3616ff60] */ 2048 RECOMP_FLAGS_IN(); 2049 ecx = MEM32(ebp + (-0xC)); /* 0x36028DA1: mov ecx, dword ptr [ebp - 0xc] */ 2050 edi = POP32_VAL(esp); /* 0x36028DA4: pop edi */ 2051 esi = POP32_VAL(esp); /* 0x36028DA5: pop esi */ 2052 ebx = POP32_VAL(esp); /* 0x36028DA6: pop ebx */ 2053 MEM32(FS_BASE + (0)) = ecx; /* 0x36028DA7: mov dword ptr fs:[0], ecx */ 2054 esp = ebp; /* 0x36028DAE: mov esp, ebp */ 2055 ebp = POP32_VAL(esp); /* 0x36028DB0: pop ebp */ 2056 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36028DB1: ret 0x10 */ 2057 RECOMP_REGS_OUT(); 2058 } 2059 2060 void sub_36028DC0(void) { 2061 int _fpu_cmp = 0; 2062 uint32_t _cf = 0; 2063 int _df = 1; 2064 uint32_t _flag_k = FK_NONE; 2065 uint32_t _flag_a = 0, _flag_b = 0; 2066 uint32_t _itail_tgt = 0; 2067 RECOMP_REGS_LOCALS 2068 RECOMP_ENTER(0x36028DC0u); 2069 2070 goto L_36028DC0; 2071 L_36008320: 2072 eax = MEM32(ecx + 0x4); /* 0x36008320: mov eax, dword ptr [ecx + 4] */ 2073 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36008323: ret */ 2074 L_36028DC0: 2075 RECOMP_ICALL(0x3601F240u); /* 0x36028DC0: call 0x3601f240 */ /* not lifted */ 2076 RECOMP_FLAGS_IN(); 2077 /* test eax, eax */ /* 0x36028DC5: test eax, eax */ 2078 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2079 _cf = 0; 2080 _flag_k = FK_TEST; 2081 if (TEST_Z(_flag_a, _flag_b)) goto L_36028DDE; /* 0x36028DC7: je 0x36028dde */ 2082 L_36028DC9: 2083 ecx = eax; /* 0x36028DC9: mov ecx, eax */ 2084 RECOMP_ICALL(0x3606D5A0u); /* 0x36028DCB: call 0x3606d5a0 */ /* not lifted */ 2085 RECOMP_FLAGS_IN(); 2086 ecx = eax; /* 0x36028DD0: mov ecx, eax */ 2087 RECOMP_ICALL(0x36047900u); /* 0x36028DD2: call 0x36047900 */ /* not lifted */ 2088 RECOMP_FLAGS_IN(); 2089 ecx = eax; /* 0x36028DD7: mov ecx, eax */ 2090 RECOMP_BACKEDGE(); 2091 goto L_36008320; /* 0x36028DD9: jmp 0x36008320 */ 2092 L_36028DDE: 2093 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2094 eax = 0; /* 0x36028DDE: xor eax, eax */ 2095 _cf = 0; 2096 _flag_k = FK_TEST; 2097 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36028DE0: ret */ 2098 RECOMP_REGS_OUT(); 2099 } 2100 2101 void sub_36028DF0(void) { 2102 int _fpu_cmp = 0; 2103 uint32_t _cf = 0; 2104 int _df = 1; 2105 uint32_t _flag_k = FK_NONE; 2106 uint32_t _flag_a = 0, _flag_b = 0; 2107 uint32_t _itail_tgt = 0; 2108 RECOMP_REGS_LOCALS 2109 RECOMP_ENTER(0x36028DF0u); 2110 2111 L_36028DF0: 2112 PUSH32(esp, ebp); /* 0x36028DF0: push ebp */ 2113 ebp = esp; /* 0x36028DF1: mov ebp, esp */ 2114 PUSH32(esp, 0xFFFFFFFFu); /* 0x36028DF3: push -1 */ 2115 PUSH32(esp, 0x3616361Bu); /* 0x36028DF5: push 0x3616361b */ 2116 eax = MEM32(FS_BASE + (0)); /* 0x36028DFA: mov eax, dword ptr fs:[0] */ 2117 PUSH32(esp, eax); /* 0x36028E00: push eax */ 2118 MEM32(FS_BASE + (0)) = esp; /* 0x36028E01: mov dword ptr fs:[0], esp */ 2119 PUSH32(esp, ecx); /* 0x36028E08: push ecx */ 2120 PUSH32(esp, esi); /* 0x36028E09: push esi */ 2121 RECOMP_ICALL(0x3601F240u); /* 0x36028E0A: call 0x3601f240 */ /* not lifted */ 2122 RECOMP_FLAGS_IN(); 2123 esi = eax; /* 0x36028E0F: mov esi, eax */ 2124 /* test esi, esi */ /* 0x36028E11: test esi, esi */ 2125 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2126 _cf = 0; 2127 _flag_k = FK_TEST; 2128 if (TEST_Z(_flag_a, _flag_b)) goto L_36028E70; /* 0x36028E13: je 0x36028e70 */ 2129 L_36028E15: 2130 PUSH32(esp, 0x20u); /* 0x36028E15: push 0x20 */ 2131 RECOMP_ICALL(0x3615FD6Au); /* 0x36028E17: call 0x3615fd6a */ /* not lifted */ 2132 RECOMP_FLAGS_IN(); 2133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2135 esp = esp + 4; /* 0x36028E1C: add esp, 4 */ 2136 _flag_k = FK_ADD; 2137 MEM32(ebp + (-0x10)) = eax; /* 0x36028E1F: mov dword ptr [ebp - 0x10], eax */ 2138 /* test eax, eax */ /* 0x36028E22: test eax, eax */ 2139 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2140 _cf = 0; 2141 _flag_k = FK_TEST; 2142 MEM32(ebp + (-0x4)) = 0; /* 0x36028E24: mov dword ptr [ebp - 4], 0 */ 2143 if (TEST_Z(_flag_a, _flag_b)) goto L_36028E3C; /* 0x36028E2B: je 0x36028e3c */ 2144 L_36028E2D: 2145 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2146 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2147 esi = esi + 4; /* 0x36028E2D: add esi, 4 */ 2148 _flag_k = FK_ADD; 2149 PUSH32(esp, esi); /* 0x36028E30: push esi */ 2150 ecx = eax; /* 0x36028E31: mov ecx, eax */ 2151 RECOMP_ICALL(0x3607D6E0u); /* 0x36028E33: call 0x3607d6e0 */ /* not lifted */ 2152 RECOMP_FLAGS_IN(); 2153 esi = eax; /* 0x36028E38: mov esi, eax */ 2154 goto L_36028E3E; /* 0x36028E3A: jmp 0x36028e3e */ 2155 L_36028E3C: 2156 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2157 esi = 0; /* 0x36028E3C: xor esi, esi */ 2158 _cf = 0; 2159 _flag_k = FK_TEST; 2160 L_36028E3E: 2161 eax = MEM32(0x3616FF74); /* 0x36028E3E: mov eax, dword ptr [0x3616ff74] */ 2162 ecx = MEM32(eax); /* 0x36028E43: mov ecx, dword ptr [eax] */ 2163 PUSH32(esp, esi); /* 0x36028E45: push esi */ 2164 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36028E46: mov dword ptr [ebp - 4], 0xffffffff */ 2165 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x36028E4D: call dword ptr [0x3616ff60] */ 2166 RECOMP_FLAGS_IN(); 2167 /* test esi, esi */ /* 0x36028E53: test esi, esi */ 2168 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2169 _cf = 0; 2170 _flag_k = FK_TEST; 2171 if (TEST_Z(_flag_a, _flag_b)) goto L_36028E5F; /* 0x36028E55: je 0x36028e5f */ 2172 L_36028E57: 2173 edx = MEM32(esi); /* 0x36028E57: mov edx, dword ptr [esi] */ 2174 PUSH32(esp, 1); /* 0x36028E59: push 1 */ 2175 ecx = esi; /* 0x36028E5B: mov ecx, esi */ 2176 RECOMP_ICALL(MEM32(edx)); /* 0x36028E5D: call dword ptr [edx] */ 2177 RECOMP_FLAGS_IN(); 2178 L_36028E5F: 2179 SET_LO8(eax, 1); /* 0x36028E5F: mov al, 1 */ 2180 esi = POP32_VAL(esp); /* 0x36028E61: pop esi */ 2181 ecx = MEM32(ebp + (-0xC)); /* 0x36028E62: mov ecx, dword ptr [ebp - 0xc] */ 2182 MEM32(FS_BASE + (0)) = ecx; /* 0x36028E65: mov dword ptr fs:[0], ecx */ 2183 esp = ebp; /* 0x36028E6C: mov esp, ebp */ 2184 ebp = POP32_VAL(esp); /* 0x36028E6E: pop ebp */ 2185 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36028E6F: ret */ 2186 L_36028E70: 2187 ecx = MEM32(ebp + (-0xC)); /* 0x36028E70: mov ecx, dword ptr [ebp - 0xc] */ 2188 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2189 SET_LO8(eax, 0); /* 0x36028E73: xor al, al */ 2190 _cf = 0; 2191 _flag_k = FK_NARROW(FK_TEST, 24); 2192 esi = POP32_VAL(esp); /* 0x36028E75: pop esi */ 2193 MEM32(FS_BASE + (0)) = ecx; /* 0x36028E76: mov dword ptr fs:[0], ecx */ 2194 esp = ebp; /* 0x36028E7D: mov esp, ebp */ 2195 ebp = POP32_VAL(esp); /* 0x36028E7F: pop ebp */ 2196 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36028E80: ret */ 2197 RECOMP_REGS_OUT(); 2198 } 2199 2200 void sub_36028E90(void) { 2201 int _fpu_cmp = 0; 2202 uint32_t _cf = 0; 2203 int _df = 1; 2204 uint32_t _flag_k = FK_NONE; 2205 uint32_t _flag_a = 0, _flag_b = 0; 2206 uint32_t _itail_tgt = 0; 2207 RECOMP_REGS_LOCALS 2208 RECOMP_ENTER(0x36028E90u); 2209 2210 L_36028E90: 2211 PUSH32(esp, ebp); /* 0x36028E90: push ebp */ 2212 ebp = esp; /* 0x36028E91: mov ebp, esp */ 2213 eax = MEM32(ebp + 0x8); /* 0x36028E93: mov eax, dword ptr [ebp + 8] */ 2214 eax = MEM32(eax + 0x4); /* 0x36028E96: mov eax, dword ptr [eax + 4] */ 2215 PUSH32(esp, eax); /* 0x36028E99: push eax */ 2216 RECOMP_ICALL(0x3614CDD0u); /* 0x36028E9A: call 0x3614cdd0 */ /* not lifted */ 2217 RECOMP_FLAGS_IN(); 2218 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2220 esp = esp + 4; /* 0x36028E9F: add esp, 4 */ 2221 _flag_k = FK_ADD; 2222 /* test eax, eax */ /* 0x36028EA2: test eax, eax */ 2223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2224 _cf = 0; 2225 _flag_k = FK_TEST; 2226 if (TEST_NZ(_flag_a, _flag_b)) goto L_36028EAA; /* 0x36028EA4: jne 0x36028eaa */ 2227 L_36028EA6: 2228 ebp = POP32_VAL(esp); /* 0x36028EA6: pop ebp */ 2229 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36028EA7: ret 0xc */ 2230 L_36028EAA: 2231 ecx = MEM32(eax + 0xD8); /* 0x36028EAA: mov ecx, dword ptr [eax + 0xd8] */ 2232 /* test ecx, ecx */ /* 0x36028EB0: test ecx, ecx */ 2233 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2234 _cf = 0; 2235 _flag_k = FK_TEST; 2236 if (TEST_NZ(_flag_a, _flag_b)) goto L_36028EBA; /* 0x36028EB2: jne 0x36028eba */ 2237 L_36028EB4: 2238 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2239 eax = 0; /* 0x36028EB4: xor eax, eax */ 2240 _cf = 0; 2241 _flag_k = FK_TEST; 2242 ebp = POP32_VAL(esp); /* 0x36028EB6: pop ebp */ 2243 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36028EB7: ret 0xc */ 2244 L_36028EBA: 2245 eax = MEM32(ebp + 0xC); /* 0x36028EBA: mov eax, dword ptr [ebp + 0xc] */ 2246 /* test eax, eax */ /* 0x36028EBD: test eax, eax */ 2247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2248 _cf = 0; 2249 _flag_k = FK_TEST; 2250 if (TEST_Z(_flag_a, _flag_b)) goto L_36028EC6; /* 0x36028EBF: je 0x36028ec6 */ 2251 L_36028EC1: 2252 edx = MEM32(ecx + 0x1C); /* 0x36028EC1: mov edx, dword ptr [ecx + 0x1c] */ 2253 MEM32(eax) = edx; /* 0x36028EC4: mov dword ptr [eax], edx */ 2254 L_36028EC6: 2255 eax = MEM32(ebp + 0x10); /* 0x36028EC6: mov eax, dword ptr [ebp + 0x10] */ 2256 /* test eax, eax */ /* 0x36028EC9: test eax, eax */ 2257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2258 _cf = 0; 2259 _flag_k = FK_TEST; 2260 if (TEST_Z(_flag_a, _flag_b)) goto L_36028ED2; /* 0x36028ECB: je 0x36028ed2 */ 2261 L_36028ECD: 2262 edx = MEM32(ecx + 0x20); /* 0x36028ECD: mov edx, dword ptr [ecx + 0x20] */ 2263 MEM32(eax) = edx; /* 0x36028ED0: mov dword ptr [eax], edx */ 2264 L_36028ED2: 2265 RECOMP_ICALL(0x360F1680u); /* 0x36028ED2: call 0x360f1680 */ /* not lifted */ 2266 RECOMP_FLAGS_IN(); 2267 ebp = POP32_VAL(esp); /* 0x36028ED7: pop ebp */ 2268 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36028ED8: ret 0xc */ 2269 RECOMP_REGS_OUT(); 2270 } 2271 2272 void sub_36028EE0(void) { 2273 int _fpu_cmp = 0; 2274 uint32_t _cf = 0; 2275 int _df = 1; 2276 uint32_t _flag_k = FK_NONE; 2277 uint32_t _flag_a = 0, _flag_b = 0; 2278 uint32_t _itail_tgt = 0; 2279 RECOMP_REGS_LOCALS 2280 RECOMP_ENTER(0x36028EE0u); 2281 2282 L_36028EE0: 2283 PUSH32(esp, ebp); /* 0x36028EE0: push ebp */ 2284 ebp = esp; /* 0x36028EE1: mov ebp, esp */ 2285 RECOMP_ICALL(0x361588D0u); /* 0x36028EE3: call 0x361588d0 */ /* not lifted */ 2286 RECOMP_FLAGS_IN(); 2287 ecx = MEM32(ebp + 0x8); /* 0x36028EE8: mov ecx, dword ptr [ebp + 8] */ 2288 PUSH32(esp, ecx); /* 0x36028EEB: push ecx */ 2289 ecx = eax; /* 0x36028EEC: mov ecx, eax */ 2290 RECOMP_ICALL(0x361588E0u); /* 0x36028EEE: call 0x361588e0 */ /* not lifted */ 2291 RECOMP_FLAGS_IN(); 2292 ebp = POP32_VAL(esp); /* 0x36028EF3: pop ebp */ 2293 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36028EF4: ret 4 */ 2294 RECOMP_REGS_OUT(); 2295 } 2296 2297 void sub_36028F00(void) { 2298 int _fpu_cmp = 0; 2299 uint32_t _cf = 0; 2300 int _df = 1; 2301 uint32_t _flag_k = FK_NONE; 2302 uint32_t _flag_a = 0, _flag_b = 0; 2303 uint32_t _itail_tgt = 0; 2304 RECOMP_REGS_LOCALS 2305 RECOMP_ENTER(0x36028F00u); 2306 2307 L_36028F00: 2308 PUSH32(esp, ebp); /* 0x36028F00: push ebp */ 2309 ebp = esp; /* 0x36028F01: mov ebp, esp */ 2310 PUSH32(esp, esi); /* 0x36028F03: push esi */ 2311 PUSH32(esp, edi); /* 0x36028F04: push edi */ 2312 esi = ecx; /* 0x36028F05: mov esi, ecx */ 2313 RECOMP_ICALL(0x3601F240u); /* 0x36028F07: call 0x3601f240 */ /* not lifted */ 2314 RECOMP_FLAGS_IN(); 2315 edi = eax; /* 0x36028F0C: mov edi, eax */ 2316 /* test edi, edi */ /* 0x36028F0E: test edi, edi */ 2317 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2318 _cf = 0; 2319 _flag_k = FK_TEST; 2320 if (TEST_NZ(_flag_a, _flag_b)) goto L_36028F1A; /* 0x36028F10: jne 0x36028f1a */ 2321 L_36028F12: 2322 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2323 SET_LO8(eax, 0); /* 0x36028F12: xor al, al */ 2324 _cf = 0; 2325 _flag_k = FK_NARROW(FK_TEST, 24); 2326 edi = POP32_VAL(esp); /* 0x36028F14: pop edi */ 2327 esi = POP32_VAL(esp); /* 0x36028F15: pop esi */ 2328 ebp = POP32_VAL(esp); /* 0x36028F16: pop ebp */ 2329 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36028F17: ret 4 */ 2330 L_36028F1A: 2331 ecx = MEM32(ebp + 0x8); /* 0x36028F1A: mov ecx, dword ptr [ebp + 8] */ 2332 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2334 esp = esp - 8; /* 0x36028F1D: sub esp, 8 */ 2335 _flag_k = FK_CMP; 2336 eax = esp; /* 0x36028F20: mov eax, esp */ 2337 /* cmp eax, ecx */ /* 0x36028F22: cmp eax, ecx */ 2338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2340 _flag_k = FK_CMP; 2341 if (CMP_EQ(_flag_a, _flag_b)) goto L_36028F30; /* 0x36028F24: je 0x36028f30 */ 2342 L_36028F26: 2343 edx = MEM32(ecx); /* 0x36028F26: mov edx, dword ptr [ecx] */ 2344 MEM32(eax) = edx; /* 0x36028F28: mov dword ptr [eax], edx */ 2345 ecx = MEM32(ecx + 0x4); /* 0x36028F2A: mov ecx, dword ptr [ecx + 4] */ 2346 MEM32(eax + 0x4) = ecx; /* 0x36028F2D: mov dword ptr [eax + 4], ecx */ 2347 L_36028F30: 2348 ecx = esi; /* 0x36028F30: mov ecx, esi */ 2349 RECOMP_ICALL(0x360273F0u); /* 0x36028F32: call 0x360273f0 */ /* not lifted */ 2350 RECOMP_FLAGS_IN(); 2351 /* test eax, eax */ /* 0x36028F37: test eax, eax */ 2352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2353 _cf = 0; 2354 _flag_k = FK_TEST; 2355 if (TEST_NZ(_flag_a, _flag_b)) goto L_36028F43; /* 0x36028F39: jne 0x36028f43 */ 2356 L_36028F3B: 2357 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 2358 SET_LO8(eax, 0); /* 0x36028F3B: xor al, al */ 2359 _cf = 0; 2360 _flag_k = FK_NARROW(FK_TEST, 24); 2361 edi = POP32_VAL(esp); /* 0x36028F3D: pop edi */ 2362 esi = POP32_VAL(esp); /* 0x36028F3E: pop esi */ 2363 ebp = POP32_VAL(esp); /* 0x36028F3F: pop ebp */ 2364 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36028F40: ret 4 */ 2365 L_36028F43: 2366 PUSH32(esp, eax); /* 0x36028F43: push eax */ 2367 ecx = edi; /* 0x36028F44: mov ecx, edi */ 2368 RECOMP_ICALL(0x36072000u); /* 0x36028F46: call 0x36072000 */ /* not lifted */ 2369 RECOMP_FLAGS_IN(); 2370 ecx = eax; /* 0x36028F4B: mov ecx, eax */ 2371 RECOMP_ICALL(0x36058520u); /* 0x36028F4D: call 0x36058520 */ /* not lifted */ 2372 RECOMP_FLAGS_IN(); 2373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 2374 _cf = (eax) != 0; 2375 eax = (uint32_t)(-(int32_t)eax); /* 0x36028F52: neg eax */ 2376 _flag_k = FK_CMP; 2377 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36028F54: sbb eax, eax */ 2378 eax = _sc ? 0xFFFFFFFFu : 0; 2379 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2380 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2381 edi = POP32_VAL(esp); /* 0x36028F56: pop edi */ 2382 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2383 eax = eax + 1; /* 0x36028F57: inc eax */ 2384 _flag_k = FK_INC; 2385 esi = POP32_VAL(esp); /* 0x36028F58: pop esi */ 2386 ebp = POP32_VAL(esp); /* 0x36028F59: pop ebp */ 2387 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36028F5A: ret 4 */ 2388 RECOMP_REGS_OUT(); 2389 } 2390 2391 void sub_36028F60(void) { 2392 int _fpu_cmp = 0; 2393 uint32_t _cf = 0; 2394 int _df = 1; 2395 uint32_t _flag_k = FK_NONE; 2396 uint32_t _flag_a = 0, _flag_b = 0; 2397 uint32_t _itail_tgt = 0; 2398 RECOMP_REGS_LOCALS 2399 RECOMP_ENTER(0x36028F60u); 2400 2401 L_36028F60: 2402 PUSH32(esp, ebp); /* 0x36028F60: push ebp */ 2403 ebp = esp; /* 0x36028F61: mov ebp, esp */ 2404 PUSH32(esp, ecx); /* 0x36028F63: push ecx */ 2405 PUSH32(esp, ebx); /* 0x36028F64: push ebx */ 2406 PUSH32(esp, esi); /* 0x36028F65: push esi */ 2407 PUSH32(esp, edi); /* 0x36028F66: push edi */ 2408 MEM32(ebp + (-0x4)) = 0; /* 0x36028F67: mov dword ptr [ebp - 4], 0 */ 2409 RECOMP_ICALL(0x3601F240u); /* 0x36028F6E: call 0x3601f240 */ /* not lifted */ 2410 RECOMP_FLAGS_IN(); 2411 esi = eax; /* 0x36028F73: mov esi, eax */ 2412 /* test esi, esi */ /* 0x36028F75: test esi, esi */ 2413 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2414 _cf = 0; 2415 _flag_k = FK_TEST; 2416 if (TEST_NZ(_flag_a, _flag_b)) goto L_36028FD0; /* 0x36028F77: jne 0x36028fd0 */ 2417 L_36028F79: 2418 ebx = MEM32(ebp + 0x8); /* 0x36028F79: mov ebx, dword ptr [ebp + 8] */ 2419 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36028F7C: mov al, byte ptr [ebp + 0xb] */ 2420 PUSH32(esp, esi); /* 0x36028F7F: push esi */ 2421 ecx = ebx; /* 0x36028F80: mov ecx, ebx */ 2422 MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36028F82: mov byte ptr [ebx], al */ 2423 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36028F84: call dword ptr [0x3616f100] */ 2424 RECOMP_FLAGS_IN(); 2425 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2426 ecx = ecx | 0xFFFFFFFFu; /* 0x36028F8A: or ecx, 0xffffffff */ 2427 _cf = 0; 2428 _flag_k = FK_TEST; 2429 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2430 eax = 0; /* 0x36028F8D: xor eax, eax */ 2431 _cf = 0; 2432 _flag_k = FK_TEST; 2433 edi = 0x363033BCu; /* 0x36028F8F: mov edi, 0x363033bc */ 2434 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; } /* 0x36028F94: repne scasb al, byte ptr es:[edi] */ 2435 ecx = ~ecx; /* 0x36028F96: not ecx */ 2436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2437 ecx = ecx - 1; /* 0x36028F98: dec ecx */ 2438 _flag_k = FK_DEC; 2439 esi = ecx; /* 0x36028F99: mov esi, ecx */ 2440 PUSH32(esp, 1); /* 0x36028F9B: push 1 */ 2441 PUSH32(esp, esi); /* 0x36028F9D: push esi */ 2442 ecx = ebx; /* 0x36028F9E: mov ecx, ebx */ 2443 MEM32(ebp + 0x8) = esi; /* 0x36028FA0: mov dword ptr [ebp + 8], esi */ 2444 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36028FA3: call dword ptr [0x3616f00c] */ 2445 RECOMP_FLAGS_IN(); 2446 /* test LO8(eax), LO8(eax) */ /* 0x36028FA9: test al, al */ 2447 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2448 _cf = 0; 2449 _flag_k = FK_NARROW(FK_TEST, 24); 2450 if (TEST_Z(_flag_a, _flag_b)) goto L_3602915A; /* 0x36028FAB: je 0x3602915a */ 2451 L_36028FB1: 2452 edi = MEM32(ebx + 0x4); /* 0x36028FB1: mov edi, dword ptr [ebx + 4] */ 2453 ecx = esi; /* 0x36028FB4: mov ecx, esi */ 2454 edx = ecx; /* 0x36028FB6: mov edx, ecx */ 2455 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36028FB8: shr ecx, 2 */ 2456 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2457 ecx = ecx >> 2u; /* 0x36028FB8: shr ecx, 2 */ 2458 esi = 0x363033BCu; /* 0x36028FBB: mov esi, 0x363033bc */ 2459 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36028FC0: 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; } 2460 ecx = edx; /* 0x36028FC2: mov ecx, edx */ 2461 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2462 ecx = ecx & 3; /* 0x36028FC4: and ecx, 3 */ 2463 _cf = 0; 2464 _flag_k = FK_TEST; 2465 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36028FC7: 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; } 2466 eax = edx; /* 0x36028FC9: mov eax, edx */ 2467 goto L_36029150; /* 0x36028FCB: jmp 0x36029150 */ 2468 L_36028FD0: 2469 PUSH32(esp, 0); /* 0x36028FD0: push 0 */ 2470 PUSH32(esp, 0x361B66A0u); /* 0x36028FD2: push 0x361b66a0 */ 2471 PUSH32(esp, 0x361B6680u); /* 0x36028FD7: push 0x361b6680 */ 2472 PUSH32(esp, 0); /* 0x36028FDC: push 0 */ 2473 RECOMP_ICALL(MEM32(0x361700DC)); /* 0x36028FDE: call dword ptr [0x361700dc] */ 2474 RECOMP_FLAGS_IN(); 2475 PUSH32(esp, eax); /* 0x36028FE4: push eax */ 2476 RECOMP_ICALL(0x3615FD86u); /* 0x36028FE5: call 0x3615fd86 */ /* not lifted */ 2477 RECOMP_FLAGS_IN(); 2478 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2479 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2480 esp = esp + 0x14u; /* 0x36028FEA: add esp, 0x14 */ 2481 _flag_k = FK_ADD; 2482 ecx = eax; /* 0x36028FED: mov ecx, eax */ 2483 RECOMP_ICALL(0x3614CE70u); /* 0x36028FEF: call 0x3614ce70 */ /* not lifted */ 2484 RECOMP_FLAGS_IN(); 2485 ecx = esi; /* 0x36028FF4: mov ecx, esi */ 2486 edi = eax; /* 0x36028FF6: mov edi, eax */ 2487 RECOMP_ICALL(MEM32(0x361700B4)); /* 0x36028FF8: call dword ptr [0x361700b4] */ 2488 RECOMP_FLAGS_IN(); 2489 PUSH32(esp, eax); /* 0x36028FFE: push eax */ 2490 ecx = edi; /* 0x36028FFF: mov ecx, edi */ 2491 RECOMP_ICALL(0x3614ECB0u); /* 0x36029001: call 0x3614ecb0 */ /* not lifted */ 2492 RECOMP_FLAGS_IN(); 2493 /* test eax, eax */ /* 0x36029006: test eax, eax */ 2494 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2495 _cf = 0; 2496 _flag_k = FK_TEST; 2497 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602905F; /* 0x36029008: jne 0x3602905f */ 2498 L_3602900A: 2499 ebx = MEM32(ebp + 0x8); /* 0x3602900A: mov ebx, dword ptr [ebp + 8] */ 2500 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3602900D: mov dl, byte ptr [ebp + 0xb] */ 2501 PUSH32(esp, eax); /* 0x36029010: push eax */ 2502 ecx = ebx; /* 0x36029011: mov ecx, ebx */ 2503 MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x36029013: mov byte ptr [ebx], dl */ 2504 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36029015: call dword ptr [0x3616f100] */ 2505 RECOMP_FLAGS_IN(); 2506 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 2507 ecx = ecx | 0xFFFFFFFFu; /* 0x3602901B: or ecx, 0xffffffff */ 2508 _cf = 0; 2509 _flag_k = FK_TEST; 2510 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2511 eax = 0; /* 0x3602901E: xor eax, eax */ 2512 _cf = 0; 2513 _flag_k = FK_TEST; 2514 edi = 0x363033BCu; /* 0x36029020: mov edi, 0x363033bc */ 2515 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; } /* 0x36029025: repne scasb al, byte ptr es:[edi] */ 2516 ecx = ~ecx; /* 0x36029027: not ecx */ 2517 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2518 ecx = ecx - 1; /* 0x36029029: dec ecx */ 2519 _flag_k = FK_DEC; 2520 esi = ecx; /* 0x3602902A: mov esi, ecx */ 2521 PUSH32(esp, 1); /* 0x3602902C: push 1 */ 2522 PUSH32(esp, esi); /* 0x3602902E: push esi */ 2523 ecx = ebx; /* 0x3602902F: mov ecx, ebx */ 2524 MEM32(ebp + 0x8) = esi; /* 0x36029031: mov dword ptr [ebp + 8], esi */ 2525 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36029034: call dword ptr [0x3616f00c] */ 2526 RECOMP_FLAGS_IN(); 2527 /* test LO8(eax), LO8(eax) */ /* 0x3602903A: test al, al */ 2528 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2529 _cf = 0; 2530 _flag_k = FK_NARROW(FK_TEST, 24); 2531 if (TEST_Z(_flag_a, _flag_b)) goto L_3602915A; /* 0x3602903C: je 0x3602915a */ 2532 L_36029042: 2533 edi = MEM32(ebx + 0x4); /* 0x36029042: mov edi, dword ptr [ebx + 4] */ 2534 ecx = esi; /* 0x36029045: mov ecx, esi */ 2535 eax = ecx; /* 0x36029047: mov eax, ecx */ 2536 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36029049: shr ecx, 2 */ 2537 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2538 ecx = ecx >> 2u; /* 0x36029049: shr ecx, 2 */ 2539 esi = 0x363033BCu; /* 0x3602904C: mov esi, 0x363033bc */ 2540 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36029051: 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; } 2541 ecx = eax; /* 0x36029053: mov ecx, eax */ 2542 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2543 ecx = ecx & 3; /* 0x36029055: and ecx, 3 */ 2544 _cf = 0; 2545 _flag_k = FK_TEST; 2546 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36029058: 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; } 2547 goto L_36029150; /* 0x3602905A: jmp 0x36029150 */ 2548 L_3602905F: 2549 ecx = MEM32(ebp + 0xC); /* 0x3602905F: mov ecx, dword ptr [ebp + 0xc] */ 2550 /* test ecx, ecx */ /* 0x36029062: test ecx, ecx */ 2551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2552 _cf = 0; 2553 _flag_k = FK_TEST; 2554 eax = MEM32(eax + 0x4); /* 0x36029064: mov eax, dword ptr [eax + 4] */ 2555 if (TEST_Z(_flag_a, _flag_b)) goto L_3602906E; /* 0x36029067: je 0x3602906e */ 2556 L_36029069: 2557 edx = MEM32(eax + 0x3C); /* 0x36029069: mov edx, dword ptr [eax + 0x3c] */ 2558 MEM32(ecx) = edx; /* 0x3602906C: mov dword ptr [ecx], edx */ 2559 L_3602906E: 2560 ecx = MEM32(ebp + 0x10); /* 0x3602906E: mov ecx, dword ptr [ebp + 0x10] */ 2561 /* test ecx, ecx */ /* 0x36029071: test ecx, ecx */ 2562 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2563 _cf = 0; 2564 _flag_k = FK_TEST; 2565 if (TEST_Z(_flag_a, _flag_b)) goto L_3602907A; /* 0x36029073: je 0x3602907a */ 2566 L_36029075: 2567 edx = MEM32(eax + 0x40); /* 0x36029075: mov edx, dword ptr [eax + 0x40] */ 2568 MEM32(ecx) = edx; /* 0x36029078: mov dword ptr [ecx], edx */ 2569 L_3602907A: 2570 esi = MEM32(eax); /* 0x3602907A: mov esi, dword ptr [eax] */ 2571 SET_LO8(eax, MEM8(esi)); /* 0x3602907C: mov al, byte ptr [esi] */ 2572 ebx = MEM32(ebp + 0x8); /* 0x3602907E: mov ebx, dword ptr [ebp + 8] */ 2573 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2574 edx = 0; /* 0x36029081: xor edx, edx */ 2575 _cf = 0; 2576 _flag_k = FK_TEST; 2577 MEM8(ebx) = (uint8_t)(LO8(eax)); /* 0x36029083: mov byte ptr [ebx], al */ 2578 MEM32(ebx + 0x4) = edx; /* 0x36029085: mov dword ptr [ebx + 4], edx */ 2579 MEM32(ebx + 0x8) = edx; /* 0x36029088: mov dword ptr [ebx + 8], edx */ 2580 MEM32(ebx + 0xC) = edx; /* 0x3602908B: mov dword ptr [ebx + 0xc], edx */ 2581 ecx = MEM32(0x3616F010); /* 0x3602908E: mov ecx, dword ptr [0x3616f010] */ 2582 eax = MEM32(ecx); /* 0x36029094: mov eax, dword ptr [ecx] */ 2583 ecx = MEM32(esi + 0x8); /* 0x36029096: mov ecx, dword ptr [esi + 8] */ 2584 edi = ecx; /* 0x36029099: mov edi, ecx */ 2585 /* cmp eax, edi */ /* 0x3602909B: cmp eax, edi */ 2586 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2588 _flag_k = FK_CMP; 2589 MEM32(ebp + 0x8) = edi; /* 0x3602909D: mov dword ptr [ebp + 8], edi */ 2590 if (CMP_AE(_flag_a, _flag_b)) goto L_360290A7; /* 0x360290A0: jae 0x360290a7 */ 2591 L_360290A2: 2592 MEM32(ebp + 0x8) = eax; /* 0x360290A2: mov dword ptr [ebp + 8], eax */ 2593 edi = eax; /* 0x360290A5: mov edi, eax */ 2594 L_360290A7: 2595 /* cmp ebx, esi */ /* 0x360290A7: cmp ebx, esi */ 2596 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 2597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2598 _flag_k = FK_CMP; 2599 if (CMP_NE(_flag_a, _flag_b)) goto L_360290CC; /* 0x360290A9: jne 0x360290cc */ 2600 L_360290AB: 2601 PUSH32(esp, eax); /* 0x360290AB: push eax */ 2602 PUSH32(esp, edi); /* 0x360290AC: push edi */ 2603 ecx = ebx; /* 0x360290AD: mov ecx, ebx */ 2604 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x360290AF: call dword ptr [0x3616f15c] */ 2605 RECOMP_FLAGS_IN(); 2606 PUSH32(esp, 0); /* 0x360290B5: push 0 */ 2607 PUSH32(esp, 0); /* 0x360290B7: push 0 */ 2608 ecx = ebx; /* 0x360290B9: mov ecx, ebx */ 2609 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x360290BB: call dword ptr [0x3616f15c] */ 2610 RECOMP_FLAGS_IN(); 2611 edi = POP32_VAL(esp); /* 0x360290C1: pop edi */ 2612 esi = POP32_VAL(esp); /* 0x360290C2: pop esi */ 2613 eax = ebx; /* 0x360290C3: mov eax, ebx */ 2614 ebx = POP32_VAL(esp); /* 0x360290C5: pop ebx */ 2615 esp = ebp; /* 0x360290C6: mov esp, ebp */ 2616 ebp = POP32_VAL(esp); /* 0x360290C8: pop ebp */ 2617 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x360290C9: ret 0xc */ 2618 L_360290CC: 2619 /* cmp edi, edx */ /* 0x360290CC: cmp edi, edx */ 2620 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 2621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2622 _flag_k = FK_CMP; 2623 if (CMP_BE(_flag_a, _flag_b)) goto L_3602911E; /* 0x360290CE: jbe 0x3602911e */ 2624 L_360290D0: 2625 /* cmp edi, ecx */ /* 0x360290D0: cmp edi, ecx */ 2626 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2628 _flag_k = FK_CMP; 2629 if (CMP_NE(_flag_a, _flag_b)) goto L_3602911E; /* 0x360290D2: jne 0x3602911e */ 2630 L_360290D4: 2631 eax = MEM32(esi + 0x4); /* 0x360290D4: mov eax, dword ptr [esi + 4] */ 2632 /* cmp eax, edx */ /* 0x360290D7: cmp eax, edx */ 2633 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2635 _flag_k = FK_CMP; 2636 if (CMP_NE(_flag_a, _flag_b)) goto L_360290E0; /* 0x360290D9: jne 0x360290e0 */ 2637 L_360290DB: 2638 eax = MEM32(0x3616F10C); /* 0x360290DB: mov eax, dword ptr [0x3616f10c] */ 2639 L_360290E0: 2640 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x360290E0: cmp byte ptr [eax - 1], 0xfe */ 2641 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 2642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2643 _flag_k = FK_NARROW(FK_CMP, 24); 2644 if (CMP_AE(_flag_a, _flag_b)) goto L_3602911E; /* 0x360290E4: jae 0x3602911e */ 2645 L_360290E6: 2646 PUSH32(esp, 1); /* 0x360290E6: push 1 */ 2647 ecx = ebx; /* 0x360290E8: mov ecx, ebx */ 2648 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360290EA: call dword ptr [0x3616f100] */ 2649 RECOMP_FLAGS_IN(); 2650 eax = MEM32(esi + 0x4); /* 0x360290F0: mov eax, dword ptr [esi + 4] */ 2651 /* test eax, eax */ /* 0x360290F3: test eax, eax */ 2652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2653 _cf = 0; 2654 _flag_k = FK_TEST; 2655 if (TEST_NZ(_flag_a, _flag_b)) goto L_360290FC; /* 0x360290F5: jne 0x360290fc */ 2656 L_360290F7: 2657 eax = MEM32(0x3616F10C); /* 0x360290F7: mov eax, dword ptr [0x3616f10c] */ 2658 L_360290FC: 2659 MEM32(ebx + 0x4) = eax; /* 0x360290FC: mov dword ptr [ebx + 4], eax */ 2660 edx = MEM32(esi + 0x8); /* 0x360290FF: mov edx, dword ptr [esi + 8] */ 2661 MEM32(ebx + 0x8) = edx; /* 0x36029102: mov dword ptr [ebx + 8], edx */ 2662 ecx = MEM32(esi + 0xC); /* 0x36029105: mov ecx, dword ptr [esi + 0xc] */ 2663 MEM32(ebx + 0xC) = ecx; /* 0x36029108: mov dword ptr [ebx + 0xc], ecx */ 2664 SET_LO8(ecx, MEM8(eax + (-0x1))); /* 0x3602910B: mov cl, byte ptr [eax - 1] */ 2665 edi = POP32_VAL(esp); /* 0x3602910E: pop edi */ 2666 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 2667 SET_LO8(ecx, LO8(ecx) + 1); /* 0x3602910F: inc cl */ 2668 _flag_k = FK_NARROW(FK_INC, 24); 2669 MEM8(eax + (-0x1)) = (uint8_t)(LO8(ecx)); /* 0x36029111: mov byte ptr [eax - 1], cl */ 2670 esi = POP32_VAL(esp); /* 0x36029114: pop esi */ 2671 eax = ebx; /* 0x36029115: mov eax, ebx */ 2672 ebx = POP32_VAL(esp); /* 0x36029117: pop ebx */ 2673 esp = ebp; /* 0x36029118: mov esp, ebp */ 2674 ebp = POP32_VAL(esp); /* 0x3602911A: pop ebp */ 2675 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602911B: ret 0xc */ 2676 L_3602911E: 2677 PUSH32(esp, 1); /* 0x3602911E: push 1 */ 2678 PUSH32(esp, edi); /* 0x36029120: push edi */ 2679 ecx = ebx; /* 0x36029121: mov ecx, ebx */ 2680 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36029123: call dword ptr [0x3616f00c] */ 2681 RECOMP_FLAGS_IN(); 2682 /* test LO8(eax), LO8(eax) */ /* 0x36029129: test al, al */ 2683 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2684 _cf = 0; 2685 _flag_k = FK_NARROW(FK_TEST, 24); 2686 if (TEST_Z(_flag_a, _flag_b)) goto L_3602915A; /* 0x3602912B: je 0x3602915a */ 2687 L_3602912D: 2688 esi = MEM32(esi + 0x4); /* 0x3602912D: mov esi, dword ptr [esi + 4] */ 2689 /* test esi, esi */ /* 0x36029130: test esi, esi */ 2690 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2691 _cf = 0; 2692 _flag_k = FK_TEST; 2693 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602913A; /* 0x36029132: jne 0x3602913a */ 2694 L_36029134: 2695 esi = MEM32(0x3616F10C); /* 0x36029134: mov esi, dword ptr [0x3616f10c] */ 2696 L_3602913A: 2697 eax = MEM32(ebp + 0x8); /* 0x3602913A: mov eax, dword ptr [ebp + 8] */ 2698 ecx = edi; /* 0x3602913D: mov ecx, edi */ 2699 edi = MEM32(ebx + 0x4); /* 0x3602913F: mov edi, dword ptr [ebx + 4] */ 2700 edx = ecx; /* 0x36029142: mov edx, ecx */ 2701 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36029144: shr ecx, 2 */ 2702 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2703 ecx = ecx >> 2u; /* 0x36029144: shr ecx, 2 */ 2704 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36029147: 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; } 2705 ecx = edx; /* 0x36029149: mov ecx, edx */ 2706 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 2707 ecx = ecx & 3; /* 0x3602914B: and ecx, 3 */ 2708 _cf = 0; 2709 _flag_k = FK_TEST; 2710 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3602914E: 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; } 2711 L_36029150: 2712 ecx = MEM32(ebx + 0x4); /* 0x36029150: mov ecx, dword ptr [ebx + 4] */ 2713 MEM32(ebx + 0x8) = eax; /* 0x36029153: mov dword ptr [ebx + 8], eax */ 2714 MEM8(eax + ecx) = (uint8_t)(0); /* 0x36029156: mov byte ptr [eax + ecx], 0 */ 2715 L_3602915A: 2716 edi = POP32_VAL(esp); /* 0x3602915A: pop edi */ 2717 esi = POP32_VAL(esp); /* 0x3602915B: pop esi */ 2718 eax = ebx; /* 0x3602915C: mov eax, ebx */ 2719 ebx = POP32_VAL(esp); /* 0x3602915E: pop ebx */ 2720 esp = ebp; /* 0x3602915F: mov esp, ebp */ 2721 ebp = POP32_VAL(esp); /* 0x36029161: pop ebp */ 2722 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029162: ret 0xc */ 2723 RECOMP_REGS_OUT(); 2724 } 2725 2726 void sub_36029150(void) { 2727 int _fpu_cmp = 0; 2728 uint32_t _cf = 0; 2729 int _df = 1; 2730 uint32_t _flag_k = FK_NONE; 2731 uint32_t _flag_a = 0, _flag_b = 0; 2732 uint32_t _itail_tgt = 0; 2733 RECOMP_REGS_LOCALS 2734 RECOMP_ENTER(0x36029150u); 2735 2736 L_36029150: 2737 ecx = MEM32(ebx + 0x4); /* 0x36029150: mov ecx, dword ptr [ebx + 4] */ 2738 MEM32(ebx + 0x8) = eax; /* 0x36029153: mov dword ptr [ebx + 8], eax */ 2739 MEM8(eax + ecx) = (uint8_t)(0); /* 0x36029156: mov byte ptr [eax + ecx], 0 */ 2740 edi = POP32_VAL(esp); /* 0x3602915A: pop edi */ 2741 esi = POP32_VAL(esp); /* 0x3602915B: pop esi */ 2742 eax = ebx; /* 0x3602915C: mov eax, ebx */ 2743 ebx = POP32_VAL(esp); /* 0x3602915E: pop ebx */ 2744 esp = ebp; /* 0x3602915F: mov esp, ebp */ 2745 ebp = POP32_VAL(esp); /* 0x36029161: pop ebp */ 2746 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029162: ret 0xc */ 2747 RECOMP_REGS_OUT(); 2748 } 2749 2750 void sub_36029170(void) { 2751 int _fpu_cmp = 0; 2752 uint32_t _cf = 0; 2753 int _df = 1; 2754 uint32_t _flag_k = FK_NONE; 2755 uint32_t _flag_a = 0, _flag_b = 0; 2756 uint32_t _itail_tgt = 0; 2757 RECOMP_REGS_LOCALS 2758 RECOMP_ENTER(0x36029170u); 2759 2760 L_36029170: 2761 PUSH32(esp, ebp); /* 0x36029170: push ebp */ 2762 ebp = esp; /* 0x36029171: mov ebp, esp */ 2763 PUSH32(esp, esi); /* 0x36029173: push esi */ 2764 esi = MEM32(ebp + 0x8); /* 0x36029174: mov esi, dword ptr [ebp + 8] */ 2765 PUSH32(esp, esi); /* 0x36029177: push esi */ 2766 RECOMP_ICALL(MEM32(0x361700EC)); /* 0x36029178: call dword ptr [0x361700ec] */ 2767 RECOMP_FLAGS_IN(); 2768 PUSH32(esp, esi); /* 0x3602917E: push esi */ 2769 RECOMP_ICALL(0x361588D0u); /* 0x3602917F: call 0x361588d0 */ /* not lifted */ 2770 RECOMP_FLAGS_IN(); 2771 ecx = eax; /* 0x36029184: mov ecx, eax */ 2772 RECOMP_ICALL(0x36159340u); /* 0x36029186: call 0x36159340 */ /* not lifted */ 2773 RECOMP_FLAGS_IN(); 2774 esi = POP32_VAL(esp); /* 0x3602918B: pop esi */ 2775 ebp = POP32_VAL(esp); /* 0x3602918C: pop ebp */ 2776 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602918D: ret 4 */ 2777 RECOMP_REGS_OUT(); 2778 } 2779 2780 void sub_36029190(void) { 2781 int _fpu_cmp = 0; 2782 uint32_t _cf = 0; 2783 int _df = 1; 2784 uint32_t _flag_k = FK_NONE; 2785 uint32_t _flag_a = 0, _flag_b = 0; 2786 uint32_t _itail_tgt = 0; 2787 RECOMP_REGS_LOCALS 2788 RECOMP_ENTER(0x36029190u); 2789 2790 L_36029190: 2791 PUSH32(esp, ebp); /* 0x36029190: push ebp */ 2792 ebp = esp; /* 0x36029191: mov ebp, esp */ 2793 eax = MEM32(ebp + 0x8); /* 0x36029193: mov eax, dword ptr [ebp + 8] */ 2794 PUSH32(esp, 0); /* 0x36029196: push 0 */ 2795 PUSH32(esp, 0x361B2CD8u); /* 0x36029198: push 0x361b2cd8 */ 2796 PUSH32(esp, 0x361B2CC0u); /* 0x3602919D: push 0x361b2cc0 */ 2797 PUSH32(esp, 0); /* 0x360291A2: push 0 */ 2798 PUSH32(esp, eax); /* 0x360291A4: push eax */ 2799 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360291A5: call dword ptr [0x3616ff70] */ 2800 RECOMP_FLAGS_IN(); 2801 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2803 esp = esp + 4; /* 0x360291AB: add esp, 4 */ 2804 _flag_k = FK_ADD; 2805 PUSH32(esp, eax); /* 0x360291AE: push eax */ 2806 RECOMP_ICALL(0x3615FD86u); /* 0x360291AF: call 0x3615fd86 */ /* not lifted */ 2807 RECOMP_FLAGS_IN(); 2808 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2809 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2810 esp = esp + 0x14u; /* 0x360291B4: add esp, 0x14 */ 2811 _flag_k = FK_ADD; 2812 /* test eax, eax */ /* 0x360291B7: test eax, eax */ 2813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2814 _cf = 0; 2815 _flag_k = FK_TEST; 2816 if (TEST_Z(_flag_a, _flag_b)) goto L_360291C8; /* 0x360291B9: je 0x360291c8 */ 2817 L_360291BB: 2818 ecx = MEM32(eax + 0x188); /* 0x360291BB: mov ecx, dword ptr [eax + 0x188] */ 2819 eax = MEM32(ecx + 0x64); /* 0x360291C1: mov eax, dword ptr [ecx + 0x64] */ 2820 ebp = POP32_VAL(esp); /* 0x360291C4: pop ebp */ 2821 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360291C5: ret 4 */ 2822 L_360291C8: 2823 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2824 eax = 0; /* 0x360291C8: xor eax, eax */ 2825 _cf = 0; 2826 _flag_k = FK_TEST; 2827 ebp = POP32_VAL(esp); /* 0x360291CA: pop ebp */ 2828 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360291CB: ret 4 */ 2829 RECOMP_REGS_OUT(); 2830 } 2831 2832 void sub_360291D0(void) { 2833 int _fpu_cmp = 0; 2834 uint32_t _cf = 0; 2835 int _df = 1; 2836 uint32_t _flag_k = FK_NONE; 2837 uint32_t _flag_a = 0, _flag_b = 0; 2838 uint32_t _itail_tgt = 0; 2839 RECOMP_REGS_LOCALS 2840 RECOMP_ENTER(0x360291D0u); 2841 2842 L_360291D0: 2843 PUSH32(esp, ebp); /* 0x360291D0: push ebp */ 2844 ebp = esp; /* 0x360291D1: mov ebp, esp */ 2845 eax = MEM32(ebp + 0x8); /* 0x360291D3: mov eax, dword ptr [ebp + 8] */ 2846 PUSH32(esp, 0); /* 0x360291D6: push 0 */ 2847 PUSH32(esp, 0x361B2CD8u); /* 0x360291D8: push 0x361b2cd8 */ 2848 PUSH32(esp, 0x361B2CC0u); /* 0x360291DD: push 0x361b2cc0 */ 2849 PUSH32(esp, 0); /* 0x360291E2: push 0 */ 2850 PUSH32(esp, eax); /* 0x360291E4: push eax */ 2851 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360291E5: call dword ptr [0x3616ff70] */ 2852 RECOMP_FLAGS_IN(); 2853 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2854 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2855 esp = esp + 4; /* 0x360291EB: add esp, 4 */ 2856 _flag_k = FK_ADD; 2857 PUSH32(esp, eax); /* 0x360291EE: push eax */ 2858 RECOMP_ICALL(0x3615FD86u); /* 0x360291EF: call 0x3615fd86 */ /* not lifted */ 2859 RECOMP_FLAGS_IN(); 2860 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2861 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2862 esp = esp + 0x14u; /* 0x360291F4: add esp, 0x14 */ 2863 _flag_k = FK_ADD; 2864 /* test eax, eax */ /* 0x360291F7: test eax, eax */ 2865 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2866 _cf = 0; 2867 _flag_k = FK_TEST; 2868 if (TEST_Z(_flag_a, _flag_b)) goto L_36029215; /* 0x360291F9: je 0x36029215 */ 2869 L_360291FB: 2870 ecx = eax; /* 0x360291FB: mov ecx, eax */ 2871 RECOMP_ICALL(0x36072000u); /* 0x360291FD: call 0x36072000 */ /* not lifted */ 2872 RECOMP_FLAGS_IN(); 2873 eax = MEM32(eax + 0x88); /* 0x36029202: mov eax, dword ptr [eax + 0x88] */ 2874 /* test eax, eax */ /* 0x36029208: test eax, eax */ 2875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2876 _cf = 0; 2877 _flag_k = FK_TEST; 2878 if (TEST_Z(_flag_a, _flag_b)) goto L_36029215; /* 0x3602920A: je 0x36029215 */ 2879 L_3602920C: 2880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x80u); 2881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2882 eax = eax + 0x80u; /* 0x3602920C: add eax, 0x80 */ 2883 _flag_k = FK_ADD; 2884 ebp = POP32_VAL(esp); /* 0x36029211: pop ebp */ 2885 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36029212: ret 4 */ 2886 L_36029215: 2887 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2888 eax = 0; /* 0x36029215: xor eax, eax */ 2889 _cf = 0; 2890 _flag_k = FK_TEST; 2891 ebp = POP32_VAL(esp); /* 0x36029217: pop ebp */ 2892 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36029218: ret 4 */ 2893 RECOMP_REGS_OUT(); 2894 } 2895 2896 void sub_36029220(void) { 2897 int _fpu_cmp = 0; 2898 uint32_t _cf = 0; 2899 int _df = 1; 2900 uint32_t _flag_k = FK_NONE; 2901 uint32_t _flag_a = 0, _flag_b = 0; 2902 uint32_t _itail_tgt = 0; 2903 RECOMP_REGS_LOCALS 2904 RECOMP_ENTER(0x36029220u); 2905 2906 L_36029220: 2907 eax = ecx + 0xB0; /* 0x36029220: lea eax, [ecx + 0xb0] */ 2908 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029226: ret */ 2909 RECOMP_REGS_OUT(); 2910 } 2911 2912 void sub_36029230(void) { 2913 int _fpu_cmp = 0; 2914 uint32_t _cf = 0; 2915 int _df = 1; 2916 uint32_t _flag_k = FK_NONE; 2917 uint32_t _flag_a = 0, _flag_b = 0; 2918 uint32_t _itail_tgt = 0; 2919 RECOMP_REGS_LOCALS 2920 RECOMP_ENTER(0x36029230u); 2921 2922 L_36029230: 2923 PUSH32(esp, ebp); /* 0x36029230: push ebp */ 2924 ebp = esp; /* 0x36029231: mov ebp, esp */ 2925 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2927 esp = esp - 8; /* 0x36029233: sub esp, 8 */ 2928 _flag_k = FK_CMP; 2929 eax = MEM32(ebp + 0x8); /* 0x36029236: mov eax, dword ptr [ebp + 8] */ 2930 PUSH32(esp, ebx); /* 0x36029239: push ebx */ 2931 PUSH32(esp, esi); /* 0x3602923A: push esi */ 2932 PUSH32(esp, edi); /* 0x3602923B: push edi */ 2933 ebx = eax + 0x4; /* 0x3602923C: lea ebx, [eax + 4] */ 2934 edi = ecx + 0xB4; /* 0x3602923F: lea edi, [ecx + 0xb4] */ 2935 /* cmp edi, ebx */ /* 0x36029245: cmp edi, ebx */ 2936 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2937 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2938 _flag_k = FK_CMP; 2939 MEM32(ebp + (-0x4)) = ecx; /* 0x36029247: mov dword ptr [ebp - 4], ecx */ 2940 if (CMP_EQ(_flag_a, _flag_b)) goto L_360294AD; /* 0x3602924A: je 0x360294ad */ 2941 L_36029250: 2942 esi = MEM32(ebx + 0x4); /* 0x36029250: mov esi, dword ptr [ebx + 4] */ 2943 /* test esi, esi */ /* 0x36029253: test esi, esi */ 2944 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2945 _cf = 0; 2946 _flag_k = FK_TEST; 2947 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602925C; /* 0x36029255: jne 0x3602925c */ 2948 L_36029257: 2949 MEM32(ebp + 0x8) = esi; /* 0x36029257: mov dword ptr [ebp + 8], esi */ 2950 goto L_36029275; /* 0x3602925A: jmp 0x36029275 */ 2951 L_3602925C: 2952 ecx = MEM32(ebx + 0x8); /* 0x3602925C: mov ecx, dword ptr [ebx + 8] */ 2953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 2954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2955 ecx = ecx - esi; /* 0x3602925F: sub ecx, esi */ 2956 _flag_k = FK_CMP; 2957 eax = 0x38E38E39u; /* 0x36029261: mov eax, 0x38e38e39 */ 2958 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36029266: imul ecx */ 2959 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2960 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2961 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029268: sar edx, 3 */ 2962 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2963 edx = (uint32_t)((int32_t)edx >> 3u); 2964 ecx = edx; /* 0x3602926B: mov ecx, edx */ 2965 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3602926D: shr ecx, 0x1f */ 2966 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2967 ecx = ecx >> 31u; /* 0x3602926D: shr ecx, 0x1f */ 2968 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2970 edx = edx + ecx; /* 0x36029270: add edx, ecx */ 2971 _flag_k = FK_ADD; 2972 MEM32(ebp + 0x8) = edx; /* 0x36029272: mov dword ptr [ebp + 8], edx */ 2973 L_36029275: 2974 ecx = MEM32(edi + 0x4); /* 0x36029275: mov ecx, dword ptr [edi + 4] */ 2975 /* test ecx, ecx */ /* 0x36029278: test ecx, ecx */ 2976 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2977 _cf = 0; 2978 _flag_k = FK_TEST; 2979 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029280; /* 0x3602927A: jne 0x36029280 */ 2980 L_3602927C: 2981 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2982 edx = 0; /* 0x3602927C: xor edx, edx */ 2983 _cf = 0; 2984 _flag_k = FK_TEST; 2985 goto L_36029296; /* 0x3602927E: jmp 0x36029296 */ 2986 L_36029280: 2987 edx = MEM32(edi + 0x8); /* 0x36029280: mov edx, dword ptr [edi + 8] */ 2988 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2990 edx = edx - ecx; /* 0x36029283: sub edx, ecx */ 2991 _flag_k = FK_CMP; 2992 eax = 0x38E38E39u; /* 0x36029285: mov eax, 0x38e38e39 */ 2993 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3602928A: imul edx */ 2994 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2995 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2996 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3602928C: sar edx, 3 */ 2997 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2998 edx = (uint32_t)((int32_t)edx >> 3u); 2999 eax = edx; /* 0x3602928F: mov eax, edx */ 3000 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36029291: shr eax, 0x1f */ 3001 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3002 eax = eax >> 31u; /* 0x36029291: shr eax, 0x1f */ 3003 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3005 edx = edx + eax; /* 0x36029294: add edx, eax */ 3006 _flag_k = FK_ADD; 3007 L_36029296: 3008 /* cmp MEM32(ebp + 0x8), edx */ /* 0x36029296: cmp dword ptr [ebp + 8], edx */ 3009 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx); 3010 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3011 _flag_k = FK_CMP; 3012 if (CMP_A(_flag_a, _flag_b)) goto L_36029323; /* 0x36029299: ja 0x36029323 */ 3013 L_3602929F: 3014 eax = MEM32(ebx + 0x8); /* 0x3602929F: mov eax, dword ptr [ebx + 8] */ 3015 /* cmp esi, eax */ /* 0x360292A2: cmp esi, eax */ 3016 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3018 _flag_k = FK_CMP; 3019 MEM32(ebp + 0x8) = eax; /* 0x360292A4: mov dword ptr [ebp + 8], eax */ 3020 edi = ecx; /* 0x360292A7: mov edi, ecx */ 3021 if (CMP_EQ(_flag_a, _flag_b)) goto L_360292C0; /* 0x360292A9: je 0x360292c0 */ 3022 L_360292AB: 3023 PUSH32(esp, esi); /* 0x360292AB: push esi */ 3024 ecx = edi; /* 0x360292AC: mov ecx, edi */ 3025 RECOMP_ICALL(0x36029DC0u); /* 0x360292AE: call 0x36029dc0 */ /* not lifted */ 3026 RECOMP_FLAGS_IN(); 3027 eax = MEM32(ebp + 0x8); /* 0x360292B3: mov eax, dword ptr [ebp + 8] */ 3028 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3030 esi = esi + 0x24u; /* 0x360292B6: add esi, 0x24 */ 3031 _flag_k = FK_ADD; 3032 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 3033 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3034 edi = edi + 0x24u; /* 0x360292B9: add edi, 0x24 */ 3035 _flag_k = FK_ADD; 3036 /* cmp esi, eax */ /* 0x360292BC: cmp esi, eax */ 3037 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3039 _flag_k = FK_CMP; 3040 RECOMP_BACKEDGE(); 3041 if (CMP_NE(_flag_a, _flag_b)) goto L_360292AB; /* 0x360292BE: jne 0x360292ab */ 3042 L_360292C0: 3043 ecx = MEM32(ebp + (-0x4)); /* 0x360292C0: mov ecx, dword ptr [ebp - 4] */ 3044 eax = ecx + 0xB4; /* 0x360292C3: lea eax, [ecx + 0xb4] */ 3045 eax = MEM32(eax + 0x8); /* 0x360292C9: mov eax, dword ptr [eax + 8] */ 3046 /* cmp edi, eax */ /* 0x360292CC: cmp edi, eax */ 3047 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3049 _flag_k = FK_CMP; 3050 MEM32(ebp + 0x8) = eax; /* 0x360292CE: mov dword ptr [ebp + 8], eax */ 3051 esi = edi; /* 0x360292D1: mov esi, edi */ 3052 if (CMP_EQ(_flag_a, _flag_b)) goto L_360292E8; /* 0x360292D3: je 0x360292e8 */ 3053 L_360292D5: 3054 PUSH32(esp, 0); /* 0x360292D5: push 0 */ 3055 ecx = esi; /* 0x360292D7: mov ecx, esi */ 3056 RECOMP_ICALL(0x3601C0E0u); /* 0x360292D9: call 0x3601c0e0 */ /* not lifted */ 3057 RECOMP_FLAGS_IN(); 3058 eax = MEM32(ebp + 0x8); /* 0x360292DE: mov eax, dword ptr [ebp + 8] */ 3059 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3061 esi = esi + 0x24u; /* 0x360292E1: add esi, 0x24 */ 3062 _flag_k = FK_ADD; 3063 /* cmp esi, eax */ /* 0x360292E4: cmp esi, eax */ 3064 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3066 _flag_k = FK_CMP; 3067 RECOMP_BACKEDGE(); 3068 if (CMP_NE(_flag_a, _flag_b)) goto L_360292D5; /* 0x360292E6: jne 0x360292d5 */ 3069 L_360292E8: 3070 eax = MEM32(ebx + 0x4); /* 0x360292E8: mov eax, dword ptr [ebx + 4] */ 3071 /* test eax, eax */ /* 0x360292EB: test eax, eax */ 3072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3073 _cf = 0; 3074 _flag_k = FK_TEST; 3075 if (TEST_NZ(_flag_a, _flag_b)) goto L_360292F3; /* 0x360292ED: jne 0x360292f3 */ 3076 L_360292EF: 3077 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3078 edx = 0; /* 0x360292EF: xor edx, edx */ 3079 _cf = 0; 3080 _flag_k = FK_TEST; 3081 goto L_36029309; /* 0x360292F1: jmp 0x36029309 */ 3082 L_360292F3: 3083 ebx = MEM32(ebx + 0x8); /* 0x360292F3: mov ebx, dword ptr [ebx + 8] */ 3084 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3086 ebx = ebx - eax; /* 0x360292F6: sub ebx, eax */ 3087 _flag_k = FK_CMP; 3088 eax = 0x38E38E39u; /* 0x360292F8: mov eax, 0x38e38e39 */ 3089 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ebx); /* 0x360292FD: imul ebx */ 3090 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3091 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3092 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x360292FF: sar edx, 3 */ 3093 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3094 edx = (uint32_t)((int32_t)edx >> 3u); 3095 eax = edx; /* 0x36029302: mov eax, edx */ 3096 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36029304: shr eax, 0x1f */ 3097 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3098 eax = eax >> 31u; /* 0x36029304: shr eax, 0x1f */ 3099 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3101 edx = edx + eax; /* 0x36029307: add edx, eax */ 3102 _flag_k = FK_ADD; 3103 L_36029309: 3104 ecx = edx + edx * 8; /* 0x36029309: lea ecx, [edx + edx*8] */ 3105 edx = MEM32(ebp + (-0x4)); /* 0x3602930C: mov edx, dword ptr [ebp - 4] */ 3106 eax = edx + 0xB4; /* 0x3602930F: lea eax, [edx + 0xb4] */ 3107 edx = MEM32(eax + 0x4); /* 0x36029315: mov edx, dword ptr [eax + 4] */ 3108 ecx = edx + ecx * 4; /* 0x36029318: lea ecx, [edx + ecx*4] */ 3109 MEM32(eax + 0x8) = ecx; /* 0x3602931B: mov dword ptr [eax + 8], ecx */ 3110 goto L_360294AD; /* 0x3602931E: jmp 0x360294ad */ 3111 L_36029323: 3112 /* test esi, esi */ /* 0x36029323: test esi, esi */ 3113 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3114 _cf = 0; 3115 _flag_k = FK_TEST; 3116 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602932C; /* 0x36029325: jne 0x3602932c */ 3117 L_36029327: 3118 MEM32(ebp + 0x8) = esi; /* 0x36029327: mov dword ptr [ebp + 8], esi */ 3119 goto L_36029345; /* 0x3602932A: jmp 0x36029345 */ 3120 L_3602932C: 3121 edx = MEM32(ebx + 0x8); /* 0x3602932C: mov edx, dword ptr [ebx + 8] */ 3122 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 3123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3124 edx = edx - esi; /* 0x3602932F: sub edx, esi */ 3125 _flag_k = FK_CMP; 3126 eax = 0x38E38E39u; /* 0x36029331: mov eax, 0x38e38e39 */ 3127 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36029336: imul edx */ 3128 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3129 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3130 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029338: sar edx, 3 */ 3131 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3132 edx = (uint32_t)((int32_t)edx >> 3u); 3133 eax = edx; /* 0x3602933B: mov eax, edx */ 3134 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3602933D: shr eax, 0x1f */ 3135 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3136 eax = eax >> 31u; /* 0x3602933D: shr eax, 0x1f */ 3137 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3139 edx = edx + eax; /* 0x36029340: add edx, eax */ 3140 _flag_k = FK_ADD; 3141 MEM32(ebp + 0x8) = edx; /* 0x36029342: mov dword ptr [ebp + 8], edx */ 3142 L_36029345: 3143 /* test ecx, ecx */ /* 0x36029345: test ecx, ecx */ 3144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3145 _cf = 0; 3146 _flag_k = FK_TEST; 3147 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602934D; /* 0x36029347: jne 0x3602934d */ 3148 L_36029349: 3149 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3150 edx = 0; /* 0x36029349: xor edx, edx */ 3151 _cf = 0; 3152 _flag_k = FK_TEST; 3153 goto L_36029363; /* 0x3602934B: jmp 0x36029363 */ 3154 L_3602934D: 3155 edx = MEM32(edi + 0xC); /* 0x3602934D: mov edx, dword ptr [edi + 0xc] */ 3156 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3158 edx = edx - ecx; /* 0x36029350: sub edx, ecx */ 3159 _flag_k = FK_CMP; 3160 eax = 0x38E38E39u; /* 0x36029352: mov eax, 0x38e38e39 */ 3161 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36029357: imul edx */ 3162 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3163 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3164 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029359: sar edx, 3 */ 3165 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3166 edx = (uint32_t)((int32_t)edx >> 3u); 3167 eax = edx; /* 0x3602935C: mov eax, edx */ 3168 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3602935E: shr eax, 0x1f */ 3169 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3170 eax = eax >> 31u; /* 0x3602935E: shr eax, 0x1f */ 3171 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3173 edx = edx + eax; /* 0x36029361: add edx, eax */ 3174 _flag_k = FK_ADD; 3175 L_36029363: 3176 /* cmp MEM32(ebp + 0x8), edx */ /* 0x36029363: cmp dword ptr [ebp + 8], edx */ 3177 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(edx); 3178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3179 _flag_k = FK_CMP; 3180 if (CMP_A(_flag_a, _flag_b)) goto L_3602942B; /* 0x36029366: ja 0x3602942b */ 3181 L_3602936C: 3182 /* test ecx, ecx */ /* 0x3602936C: test ecx, ecx */ 3183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3184 _cf = 0; 3185 _flag_k = FK_TEST; 3186 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029374; /* 0x3602936E: jne 0x36029374 */ 3187 L_36029370: 3188 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3189 edx = 0; /* 0x36029370: xor edx, edx */ 3190 _cf = 0; 3191 _flag_k = FK_TEST; 3192 goto L_3602938A; /* 0x36029372: jmp 0x3602938a */ 3193 L_36029374: 3194 edx = MEM32(edi + 0x8); /* 0x36029374: mov edx, dword ptr [edi + 8] */ 3195 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3197 edx = edx - ecx; /* 0x36029377: sub edx, ecx */ 3198 _flag_k = FK_CMP; 3199 eax = 0x38E38E39u; /* 0x36029379: mov eax, 0x38e38e39 */ 3200 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3602937E: imul edx */ 3201 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3202 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3203 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029380: sar edx, 3 */ 3204 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3205 edx = (uint32_t)((int32_t)edx >> 3u); 3206 eax = edx; /* 0x36029383: mov eax, edx */ 3207 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36029385: shr eax, 0x1f */ 3208 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3209 eax = eax >> 31u; /* 0x36029385: shr eax, 0x1f */ 3210 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3212 edx = edx + eax; /* 0x36029388: add edx, eax */ 3213 _flag_k = FK_ADD; 3214 L_3602938A: 3215 edx = edx + edx * 8; /* 0x3602938A: lea edx, [edx + edx*8] */ 3216 edi = esi + edx * 4; /* 0x3602938D: lea edi, [esi + edx*4] */ 3217 /* cmp esi, edi */ /* 0x36029390: cmp esi, edi */ 3218 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3220 _flag_k = FK_CMP; 3221 MEM32(ebp + 0x8) = ecx; /* 0x36029392: mov dword ptr [ebp + 8], ecx */ 3222 if (CMP_EQ(_flag_a, _flag_b)) goto L_360293B0; /* 0x36029395: je 0x360293b0 */ 3223 L_36029397: 3224 ecx = MEM32(ebp + 0x8); /* 0x36029397: mov ecx, dword ptr [ebp + 8] */ 3225 PUSH32(esp, esi); /* 0x3602939A: push esi */ 3226 RECOMP_ICALL(0x36029DC0u); /* 0x3602939B: call 0x36029dc0 */ /* not lifted */ 3227 RECOMP_FLAGS_IN(); 3228 edx = MEM32(ebp + 0x8); /* 0x360293A0: mov edx, dword ptr [ebp + 8] */ 3229 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u); 3230 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3231 edx = edx + 0x24u; /* 0x360293A3: add edx, 0x24 */ 3232 _flag_k = FK_ADD; 3233 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3234 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3235 esi = esi + 0x24u; /* 0x360293A6: add esi, 0x24 */ 3236 _flag_k = FK_ADD; 3237 /* cmp esi, edi */ /* 0x360293A9: cmp esi, edi */ 3238 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3240 _flag_k = FK_CMP; 3241 MEM32(ebp + 0x8) = edx; /* 0x360293AB: mov dword ptr [ebp + 8], edx */ 3242 RECOMP_BACKEDGE(); 3243 if (CMP_NE(_flag_a, _flag_b)) goto L_36029397; /* 0x360293AE: jne 0x36029397 */ 3244 L_360293B0: 3245 ecx = MEM32(ebp + (-0x4)); /* 0x360293B0: mov ecx, dword ptr [ebp - 4] */ 3246 eax = MEM32(ebx + 0x8); /* 0x360293B3: mov eax, dword ptr [ebx + 8] */ 3247 edx = MEM32(ecx + 0xBC); /* 0x360293B6: mov edx, dword ptr [ecx + 0xbc] */ 3248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xB4u); 3249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3250 ecx = ecx + 0xB4u; /* 0x360293BC: add ecx, 0xb4 */ 3251 _flag_k = FK_ADD; 3252 /* cmp edi, eax */ /* 0x360293C2: cmp edi, eax */ 3253 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3255 _flag_k = FK_CMP; 3256 MEM32(ebp + (-0x8)) = eax; /* 0x360293C4: mov dword ptr [ebp - 8], eax */ 3257 MEM32(ebp + 0x8) = edx; /* 0x360293C7: mov dword ptr [ebp + 8], edx */ 3258 esi = edi; /* 0x360293CA: mov esi, edi */ 3259 if (CMP_EQ(_flag_a, _flag_b)) goto L_360293EE; /* 0x360293CC: je 0x360293ee */ 3260 L_360293CE: 3261 eax = MEM32(ebp + 0x8); /* 0x360293CE: mov eax, dword ptr [ebp + 8] */ 3262 PUSH32(esp, esi); /* 0x360293D1: push esi */ 3263 PUSH32(esp, eax); /* 0x360293D2: push eax */ 3264 RECOMP_ICALL(0x36029BC0u); /* 0x360293D3: call 0x36029bc0 */ /* not lifted */ 3265 RECOMP_FLAGS_IN(); 3266 edx = MEM32(ebp + 0x8); /* 0x360293D8: mov edx, dword ptr [ebp + 8] */ 3267 eax = MEM32(ebp + (-0x8)); /* 0x360293DB: mov eax, dword ptr [ebp - 8] */ 3268 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u); 3269 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3270 edx = edx + 0x24u; /* 0x360293DE: add edx, 0x24 */ 3271 _flag_k = FK_ADD; 3272 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3273 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3274 esi = esi + 0x24u; /* 0x360293E1: add esi, 0x24 */ 3275 _flag_k = FK_ADD; 3276 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3277 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3278 esp = esp + 8; /* 0x360293E4: add esp, 8 */ 3279 _flag_k = FK_ADD; 3280 /* cmp esi, eax */ /* 0x360293E7: cmp esi, eax */ 3281 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 3282 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3283 _flag_k = FK_CMP; 3284 MEM32(ebp + 0x8) = edx; /* 0x360293E9: mov dword ptr [ebp + 8], edx */ 3285 RECOMP_BACKEDGE(); 3286 if (CMP_NE(_flag_a, _flag_b)) goto L_360293CE; /* 0x360293EC: jne 0x360293ce */ 3287 L_360293EE: 3288 eax = MEM32(ebx + 0x4); /* 0x360293EE: mov eax, dword ptr [ebx + 4] */ 3289 /* test eax, eax */ /* 0x360293F1: test eax, eax */ 3290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3291 _cf = 0; 3292 _flag_k = FK_TEST; 3293 if (TEST_NZ(_flag_a, _flag_b)) goto L_360293F9; /* 0x360293F3: jne 0x360293f9 */ 3294 L_360293F5: 3295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3296 edx = 0; /* 0x360293F5: xor edx, edx */ 3297 _cf = 0; 3298 _flag_k = FK_TEST; 3299 goto L_3602940F; /* 0x360293F7: jmp 0x3602940f */ 3300 L_360293F9: 3301 ebx = MEM32(ebx + 0x8); /* 0x360293F9: mov ebx, dword ptr [ebx + 8] */ 3302 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 3303 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3304 ebx = ebx - eax; /* 0x360293FC: sub ebx, eax */ 3305 _flag_k = FK_CMP; 3306 eax = 0x38E38E39u; /* 0x360293FE: mov eax, 0x38e38e39 */ 3307 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ebx); /* 0x36029403: imul ebx */ 3308 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3309 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3310 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029405: sar edx, 3 */ 3311 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3312 edx = (uint32_t)((int32_t)edx >> 3u); 3313 ecx = edx; /* 0x36029408: mov ecx, edx */ 3314 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3602940A: shr ecx, 0x1f */ 3315 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3316 ecx = ecx >> 31u; /* 0x3602940A: shr ecx, 0x1f */ 3317 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3318 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3319 edx = edx + ecx; /* 0x3602940D: add edx, ecx */ 3320 _flag_k = FK_ADD; 3321 L_3602940F: 3322 eax = MEM32(ebp + (-0x4)); /* 0x3602940F: mov eax, dword ptr [ebp - 4] */ 3323 ecx = MEM32(eax + 0xB8); /* 0x36029412: mov ecx, dword ptr [eax + 0xb8] */ 3324 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xB4u); 3325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3326 eax = eax + 0xB4u; /* 0x36029418: add eax, 0xb4 */ 3327 _flag_k = FK_ADD; 3328 edx = edx + edx * 8; /* 0x3602941D: lea edx, [edx + edx*8] */ 3329 edx = ecx + edx * 4; /* 0x36029420: lea edx, [ecx + edx*4] */ 3330 MEM32(eax + 0x8) = edx; /* 0x36029423: mov dword ptr [eax + 8], edx */ 3331 goto L_360294AD; /* 0x36029426: jmp 0x360294ad */ 3332 L_3602942B: 3333 edi = MEM32(edi + 0x8); /* 0x3602942B: mov edi, dword ptr [edi + 8] */ 3334 esi = ecx; /* 0x3602942E: mov esi, ecx */ 3335 /* cmp esi, edi */ /* 0x36029430: cmp esi, edi */ 3336 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3338 _flag_k = FK_CMP; 3339 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029444; /* 0x36029432: je 0x36029444 */ 3340 L_36029434: 3341 PUSH32(esp, 0); /* 0x36029434: push 0 */ 3342 ecx = esi; /* 0x36029436: mov ecx, esi */ 3343 RECOMP_ICALL(0x3601C0E0u); /* 0x36029438: call 0x3601c0e0 */ /* not lifted */ 3344 RECOMP_FLAGS_IN(); 3345 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3346 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3347 esi = esi + 0x24u; /* 0x3602943D: add esi, 0x24 */ 3348 _flag_k = FK_ADD; 3349 /* cmp esi, edi */ /* 0x36029440: cmp esi, edi */ 3350 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 3351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3352 _flag_k = FK_CMP; 3353 RECOMP_BACKEDGE(); 3354 if (CMP_NE(_flag_a, _flag_b)) goto L_36029434; /* 0x36029442: jne 0x36029434 */ 3355 L_36029444: 3356 eax = MEM32(ebp + (-0x4)); /* 0x36029444: mov eax, dword ptr [ebp - 4] */ 3357 ecx = MEM32(eax + 0xB8); /* 0x36029447: mov ecx, dword ptr [eax + 0xb8] */ 3358 esi = eax + 0xB4; /* 0x3602944D: lea esi, [eax + 0xb4] */ 3359 PUSH32(esp, ecx); /* 0x36029453: push ecx */ 3360 RECOMP_ICALL(0x3615FCC4u); /* 0x36029454: call 0x3615fcc4 */ /* not lifted */ 3361 RECOMP_FLAGS_IN(); 3362 eax = MEM32(ebx + 0x4); /* 0x36029459: mov eax, dword ptr [ebx + 4] */ 3363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3365 esp = esp + 4; /* 0x3602945C: add esp, 4 */ 3366 _flag_k = FK_ADD; 3367 /* test eax, eax */ /* 0x3602945F: test eax, eax */ 3368 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3369 _cf = 0; 3370 _flag_k = FK_TEST; 3371 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029467; /* 0x36029461: jne 0x36029467 */ 3372 L_36029463: 3373 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3374 edx = 0; /* 0x36029463: xor edx, edx */ 3375 _cf = 0; 3376 _flag_k = FK_TEST; 3377 goto L_3602947D; /* 0x36029465: jmp 0x3602947d */ 3378 L_36029467: 3379 ecx = MEM32(ebx + 0x8); /* 0x36029467: mov ecx, dword ptr [ebx + 8] */ 3380 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3382 ecx = ecx - eax; /* 0x3602946A: sub ecx, eax */ 3383 _flag_k = FK_CMP; 3384 eax = 0x38E38E39u; /* 0x3602946C: mov eax, 0x38e38e39 */ 3385 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36029471: imul ecx */ 3386 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 3387 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 3388 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029473: sar edx, 3 */ 3389 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3390 edx = (uint32_t)((int32_t)edx >> 3u); 3391 eax = edx; /* 0x36029476: mov eax, edx */ 3392 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36029478: shr eax, 0x1f */ 3393 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3394 eax = eax >> 31u; /* 0x36029478: shr eax, 0x1f */ 3395 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3396 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3397 edx = edx + eax; /* 0x3602947B: add edx, eax */ 3398 _flag_k = FK_ADD; 3399 L_3602947D: 3400 /* test edx, edx */ /* 0x3602947D: test edx, edx */ 3401 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3402 _cf = 0; 3403 _flag_k = FK_TEST; 3404 eax = edx; /* 0x3602947F: mov eax, edx */ 3405 if (TEST_NS(_flag_a, _flag_b)) goto L_36029485; /* 0x36029481: jge 0x36029485 */ 3406 L_36029483: 3407 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3408 eax = 0; /* 0x36029483: xor eax, eax */ 3409 _cf = 0; 3410 _flag_k = FK_TEST; 3411 L_36029485: 3412 ecx = eax + eax * 8; /* 0x36029485: lea ecx, [eax + eax*8] */ 3413 if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x36029488: shl ecx, 2 */ 3414 if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3415 ecx = ecx << 2u; /* 0x36029488: shl ecx, 2 */ 3416 PUSH32(esp, ecx); /* 0x3602948B: push ecx */ 3417 RECOMP_ICALL(0x3615FD6Au); /* 0x3602948C: call 0x3615fd6a */ /* not lifted */ 3418 RECOMP_FLAGS_IN(); 3419 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3420 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3421 esp = esp + 4; /* 0x36029491: add esp, 4 */ 3422 _flag_k = FK_ADD; 3423 MEM32(esi + 0x4) = eax; /* 0x36029494: mov dword ptr [esi + 4], eax */ 3424 ecx = MEM32(ebx + 0x8); /* 0x36029497: mov ecx, dword ptr [ebx + 8] */ 3425 ebx = MEM32(ebx + 0x4); /* 0x3602949A: mov ebx, dword ptr [ebx + 4] */ 3426 PUSH32(esp, eax); /* 0x3602949D: push eax */ 3427 PUSH32(esp, ecx); /* 0x3602949E: push ecx */ 3428 PUSH32(esp, ebx); /* 0x3602949F: push ebx */ 3429 ecx = esi; /* 0x360294A0: mov ecx, esi */ 3430 RECOMP_ICALL(0x360296F0u); /* 0x360294A2: call 0x360296f0 */ /* not lifted */ 3431 RECOMP_FLAGS_IN(); 3432 MEM32(esi + 0x8) = eax; /* 0x360294A7: mov dword ptr [esi + 8], eax */ 3433 MEM32(esi + 0xC) = eax; /* 0x360294AA: mov dword ptr [esi + 0xc], eax */ 3434 L_360294AD: 3435 edx = MEM32(ebp + 0xC); /* 0x360294AD: mov edx, dword ptr [ebp + 0xc] */ 3436 eax = MEM32(ebp + (-0x4)); /* 0x360294B0: mov eax, dword ptr [ebp - 4] */ 3437 PUSH32(esp, edx); /* 0x360294B3: push edx */ 3438 ecx = eax + 0xC4; /* 0x360294B4: lea ecx, [eax + 0xc4] */ 3439 RECOMP_ICALL(0x3615B9D0u); /* 0x360294BA: call 0x3615b9d0 */ /* not lifted */ 3440 RECOMP_FLAGS_IN(); 3441 edi = POP32_VAL(esp); /* 0x360294BF: pop edi */ 3442 esi = POP32_VAL(esp); /* 0x360294C0: pop esi */ 3443 ebx = POP32_VAL(esp); /* 0x360294C1: pop ebx */ 3444 esp = ebp; /* 0x360294C2: mov esp, ebp */ 3445 ebp = POP32_VAL(esp); /* 0x360294C4: pop ebp */ 3446 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360294C5: ret 8 */ 3447 RECOMP_REGS_OUT(); 3448 } 3449 3450 void sub_360294AD(void) { 3451 int _fpu_cmp = 0; 3452 uint32_t _cf = 0; 3453 int _df = 1; 3454 uint32_t _flag_k = FK_NONE; 3455 uint32_t _flag_a = 0, _flag_b = 0; 3456 uint32_t _itail_tgt = 0; 3457 RECOMP_REGS_LOCALS 3458 RECOMP_ENTER(0x360294ADu); 3459 3460 L_360294AD: 3461 edx = MEM32(ebp + 0xC); /* 0x360294AD: mov edx, dword ptr [ebp + 0xc] */ 3462 eax = MEM32(ebp + (-0x4)); /* 0x360294B0: mov eax, dword ptr [ebp - 4] */ 3463 PUSH32(esp, edx); /* 0x360294B3: push edx */ 3464 ecx = eax + 0xC4; /* 0x360294B4: lea ecx, [eax + 0xc4] */ 3465 RECOMP_ICALL(0x3615B9D0u); /* 0x360294BA: call 0x3615b9d0 */ /* not lifted */ 3466 RECOMP_FLAGS_IN(); 3467 edi = POP32_VAL(esp); /* 0x360294BF: pop edi */ 3468 esi = POP32_VAL(esp); /* 0x360294C0: pop esi */ 3469 ebx = POP32_VAL(esp); /* 0x360294C1: pop ebx */ 3470 esp = ebp; /* 0x360294C2: mov esp, ebp */ 3471 ebp = POP32_VAL(esp); /* 0x360294C4: pop ebp */ 3472 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360294C5: ret 8 */ 3473 RECOMP_REGS_OUT(); 3474 } 3475 3476 void sub_360294D0(void) { 3477 int _fpu_cmp = 0; 3478 uint32_t _cf = 0; 3479 int _df = 1; 3480 uint32_t _flag_k = FK_NONE; 3481 uint32_t _flag_a = 0, _flag_b = 0; 3482 uint32_t _itail_tgt = 0; 3483 RECOMP_REGS_LOCALS 3484 RECOMP_ENTER(0x360294D0u); 3485 3486 L_360294D0: 3487 PUSH32(esp, ebp); /* 0x360294D0: push ebp */ 3488 ebp = esp; /* 0x360294D1: mov ebp, esp */ 3489 PUSH32(esp, 0xFFFFFFFFu); /* 0x360294D3: push -1 */ 3490 PUSH32(esp, 0x36163643u); /* 0x360294D5: push 0x36163643 */ 3491 eax = MEM32(FS_BASE + (0)); /* 0x360294DA: mov eax, dword ptr fs:[0] */ 3492 PUSH32(esp, eax); /* 0x360294E0: push eax */ 3493 MEM32(FS_BASE + (0)) = esp; /* 0x360294E1: mov dword ptr fs:[0], esp */ 3494 PUSH32(esp, ecx); /* 0x360294E8: push ecx */ 3495 PUSH32(esp, ebx); /* 0x360294E9: push ebx */ 3496 PUSH32(esp, esi); /* 0x360294EA: push esi */ 3497 PUSH32(esp, edi); /* 0x360294EB: push edi */ 3498 esi = ecx; /* 0x360294EC: mov esi, ecx */ 3499 RECOMP_ICALL(0x3601F240u); /* 0x360294EE: call 0x3601f240 */ /* not lifted */ 3500 RECOMP_FLAGS_IN(); 3501 edi = eax; /* 0x360294F3: mov edi, eax */ 3502 /* test edi, edi */ /* 0x360294F5: test edi, edi */ 3503 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3504 _cf = 0; 3505 _flag_k = FK_TEST; 3506 if (TEST_Z(_flag_a, _flag_b)) goto L_3602956E; /* 0x360294F7: je 0x3602956e */ 3507 L_360294F9: 3508 PUSH32(esp, 0x3Cu); /* 0x360294F9: push 0x3c */ 3509 RECOMP_ICALL(0x3615FD6Au); /* 0x360294FB: call 0x3615fd6a */ /* not lifted */ 3510 RECOMP_FLAGS_IN(); 3511 ebx = eax; /* 0x36029500: mov ebx, eax */ 3512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3514 esp = esp + 4; /* 0x36029502: add esp, 4 */ 3515 _flag_k = FK_ADD; 3516 MEM32(ebp + (-0x10)) = ebx; /* 0x36029505: mov dword ptr [ebp - 0x10], ebx */ 3517 /* test ebx, ebx */ /* 0x36029508: test ebx, ebx */ 3518 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 3519 _cf = 0; 3520 _flag_k = FK_TEST; 3521 MEM32(ebp + (-0x4)) = 0; /* 0x3602950A: mov dword ptr [ebp - 4], 0 */ 3522 if (TEST_Z(_flag_a, _flag_b)) goto L_3602954B; /* 0x36029511: je 0x3602954b */ 3523 L_36029513: 3524 eax = MEM32(ebp + 0x10); /* 0x36029513: mov eax, dword ptr [ebp + 0x10] */ 3525 ecx = MEM32(ebp + 0xC); /* 0x36029516: mov ecx, dword ptr [ebp + 0xc] */ 3526 edx = MEM32(ebp + 0x8); /* 0x36029519: mov edx, dword ptr [ebp + 8] */ 3527 PUSH32(esp, eax); /* 0x3602951C: push eax */ 3528 PUSH32(esp, ecx); /* 0x3602951D: push ecx */ 3529 PUSH32(esp, edx); /* 0x3602951E: push edx */ 3530 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3532 esp = esp - 0xCu; /* 0x3602951F: sub esp, 0xc */ 3533 _flag_k = FK_CMP; 3534 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xC4u); 3535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3536 esi = esi + 0xC4u; /* 0x36029522: add esi, 0xc4 */ 3537 _flag_k = FK_ADD; 3538 ecx = esp; /* 0x36029528: mov ecx, esp */ 3539 MEM32(ebp + 0x10) = esp; /* 0x3602952A: mov dword ptr [ebp + 0x10], esp */ 3540 PUSH32(esp, esi); /* 0x3602952D: push esi */ 3541 RECOMP_ICALL(0x3615B970u); /* 0x3602952E: call 0x3615b970 */ /* not lifted */ 3542 RECOMP_FLAGS_IN(); 3543 ecx = edi; /* 0x36029533: mov ecx, edi */ 3544 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x36029535: mov byte ptr [ebp - 4], 0 */ 3545 RECOMP_ICALL(MEM32(0x3616FB10)); /* 0x36029539: call dword ptr [0x3616fb10] */ 3546 RECOMP_FLAGS_IN(); 3547 PUSH32(esp, eax); /* 0x3602953F: push eax */ 3548 ecx = ebx; /* 0x36029540: mov ecx, ebx */ 3549 RECOMP_ICALL(0x361577A0u); /* 0x36029542: call 0x361577a0 */ /* not lifted */ 3550 RECOMP_FLAGS_IN(); 3551 esi = eax; /* 0x36029547: mov esi, eax */ 3552 goto L_3602954D; /* 0x36029549: jmp 0x3602954d */ 3553 L_3602954B: 3554 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3555 esi = 0; /* 0x3602954B: xor esi, esi */ 3556 _cf = 0; 3557 _flag_k = FK_TEST; 3558 L_3602954D: 3559 eax = MEM32(0x3616FF74); /* 0x3602954D: mov eax, dword ptr [0x3616ff74] */ 3560 ecx = MEM32(eax); /* 0x36029552: mov ecx, dword ptr [eax] */ 3561 PUSH32(esp, esi); /* 0x36029554: push esi */ 3562 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36029555: mov dword ptr [ebp - 4], 0xffffffff */ 3563 RECOMP_ICALL(MEM32(0x3616FF60)); /* 0x3602955C: call dword ptr [0x3616ff60] */ 3564 RECOMP_FLAGS_IN(); 3565 /* test esi, esi */ /* 0x36029562: test esi, esi */ 3566 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 3567 _cf = 0; 3568 _flag_k = FK_TEST; 3569 if (TEST_Z(_flag_a, _flag_b)) goto L_3602956E; /* 0x36029564: je 0x3602956e */ 3570 L_36029566: 3571 edx = MEM32(esi); /* 0x36029566: mov edx, dword ptr [esi] */ 3572 PUSH32(esp, 1); /* 0x36029568: push 1 */ 3573 ecx = esi; /* 0x3602956A: mov ecx, esi */ 3574 RECOMP_ICALL(MEM32(edx)); /* 0x3602956C: call dword ptr [edx] */ 3575 RECOMP_FLAGS_IN(); 3576 L_3602956E: 3577 ecx = MEM32(ebp + (-0xC)); /* 0x3602956E: mov ecx, dword ptr [ebp - 0xc] */ 3578 edi = POP32_VAL(esp); /* 0x36029571: pop edi */ 3579 esi = POP32_VAL(esp); /* 0x36029572: pop esi */ 3580 MEM32(FS_BASE + (0)) = ecx; /* 0x36029573: mov dword ptr fs:[0], ecx */ 3581 ebx = POP32_VAL(esp); /* 0x3602957A: pop ebx */ 3582 esp = ebp; /* 0x3602957B: mov esp, ebp */ 3583 ebp = POP32_VAL(esp); /* 0x3602957D: pop ebp */ 3584 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602957E: ret 0xc */ 3585 RECOMP_REGS_OUT(); 3586 } 3587 3588 void sub_36029590(void) { 3589 int _fpu_cmp = 0; 3590 uint32_t _cf = 0; 3591 int _df = 1; 3592 uint32_t _flag_k = FK_NONE; 3593 uint32_t _flag_a = 0, _flag_b = 0; 3594 uint32_t _itail_tgt = 0; 3595 RECOMP_REGS_LOCALS 3596 RECOMP_ENTER(0x36029590u); 3597 3598 L_36029590: 3599 PUSH32(esp, ebp); /* 0x36029590: push ebp */ 3600 ebp = esp; /* 0x36029591: mov ebp, esp */ 3601 eax = MEM32(ebp + 0x8); /* 0x36029593: mov eax, dword ptr [ebp + 8] */ 3602 PUSH32(esp, eax); /* 0x36029596: push eax */ 3603 RECOMP_ICALL(0x3606DA90u); /* 0x36029597: call 0x3606da90 */ /* not lifted */ 3604 RECOMP_FLAGS_IN(); 3605 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3607 esp = esp + 4; /* 0x3602959C: add esp, 4 */ 3608 _flag_k = FK_ADD; 3609 /* test eax, eax */ /* 0x3602959F: test eax, eax */ 3610 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3611 _cf = 0; 3612 _flag_k = FK_TEST; 3613 if (TEST_NZ(_flag_a, _flag_b)) goto L_360295A9; /* 0x360295A1: jne 0x360295a9 */ 3614 L_360295A3: 3615 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3616 SET_LO8(eax, 0); /* 0x360295A3: xor al, al */ 3617 _cf = 0; 3618 _flag_k = FK_NARROW(FK_TEST, 24); 3619 ebp = POP32_VAL(esp); /* 0x360295A5: pop ebp */ 3620 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360295A6: ret 4 */ 3621 L_360295A9: 3622 edx = MEM32(eax + 0xE4); /* 0x360295A9: mov edx, dword ptr [eax + 0xe4] */ 3623 ecx = eax + 0xE4; /* 0x360295AF: lea ecx, [eax + 0xe4] */ 3624 PUSH32(esp, 2); /* 0x360295B5: push 2 */ 3625 PUSH32(esp, 0x184u); /* 0x360295B7: push 0x184 */ 3626 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360295BC: call dword ptr [edx + 4] */ 3627 RECOMP_FLAGS_IN(); 3628 /* test eax, eax */ /* 0x360295BF: test eax, eax */ 3629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3630 _cf = 0; 3631 _flag_k = FK_TEST; 3632 SET_LO8(eax, (TEST_G(_flag_a, _flag_b)) ? 1 : 0); /* 0x360295C1: setg al */ 3633 ebp = POP32_VAL(esp); /* 0x360295C4: pop ebp */ 3634 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360295C5: ret 4 */ 3635 RECOMP_REGS_OUT(); 3636 } 3637 3638 void sub_360295D0(void) { 3639 int _fpu_cmp = 0; 3640 uint32_t _cf = 0; 3641 int _df = 1; 3642 uint32_t _flag_k = FK_NONE; 3643 uint32_t _flag_a = 0, _flag_b = 0; 3644 uint32_t _itail_tgt = 0; 3645 RECOMP_REGS_LOCALS 3646 RECOMP_ENTER(0x360295D0u); 3647 3648 L_360295D0: 3649 PUSH32(esp, ebp); /* 0x360295D0: push ebp */ 3650 ebp = esp; /* 0x360295D1: mov ebp, esp */ 3651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3653 esp = esp - 8; /* 0x360295D3: sub esp, 8 */ 3654 _flag_k = FK_CMP; 3655 PUSH32(esp, ebx); /* 0x360295D6: push ebx */ 3656 PUSH32(esp, esi); /* 0x360295D7: push esi */ 3657 esi = ecx; /* 0x360295D8: mov esi, ecx */ 3658 ecx = MEM32(esi + 0x10); /* 0x360295DA: mov ecx, dword ptr [esi + 0x10] */ 3659 /* test ecx, ecx */ /* 0x360295DD: test ecx, ecx */ 3660 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3661 _cf = 0; 3662 _flag_k = FK_TEST; 3663 PUSH32(esp, edi); /* 0x360295DF: push edi */ 3664 edi = MEM32(esi + 0x4); /* 0x360295E0: mov edi, dword ptr [esi + 4] */ 3665 eax = MEM32(edi); /* 0x360295E3: mov eax, dword ptr [edi] */ 3666 MEM32(ebp + (-0x4)) = eax; /* 0x360295E5: mov dword ptr [ebp - 4], eax */ 3667 if (TEST_Z(_flag_a, _flag_b)) goto L_3602963A; /* 0x360295E8: je 0x3602963a */ 3668 L_360295EA: 3669 ecx = eax; /* 0x360295EA: mov ecx, eax */ 3670 /* cmp eax, ecx */ /* 0x360295EC: cmp eax, ecx */ 3671 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3673 _flag_k = FK_CMP; 3674 if (CMP_NE(_flag_a, _flag_b)) goto L_3602963A; /* 0x360295EE: jne 0x3602963a */ 3675 L_360295F0: 3676 /* cmp edi, edi */ /* 0x360295F0: cmp edi, edi */ 3677 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3679 _flag_k = FK_CMP; 3680 if (CMP_NE(_flag_a, _flag_b)) goto L_3602963A; /* 0x360295F2: jne 0x3602963a */ 3681 L_360295F4: 3682 ebx = MEM32(edi + 0x4); /* 0x360295F4: mov ebx, dword ptr [edi + 4] */ 3683 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360295F7: cmp ebx, dword ptr [esi + 8] */ 3684 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3686 _flag_k = FK_CMP; 3687 edi = ebx; /* 0x360295FA: mov edi, ebx */ 3688 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602961D; /* 0x360295FC: je 0x3602961d */ 3689 L_360295FE: 3690 eax = MEM32(edi + 0x8); /* 0x360295FE: mov eax, dword ptr [edi + 8] */ 3691 PUSH32(esp, eax); /* 0x36029601: push eax */ 3692 ecx = esi; /* 0x36029602: mov ecx, esi */ 3693 RECOMP_ICALL(0x36029AC0u); /* 0x36029604: call 0x36029ac0 */ /* not lifted */ 3694 RECOMP_FLAGS_IN(); 3695 edi = MEM32(edi); /* 0x36029609: mov edi, dword ptr [edi] */ 3696 PUSH32(esp, ebx); /* 0x3602960B: push ebx */ 3697 RECOMP_ICALL(0x3615FCC4u); /* 0x3602960C: call 0x3615fcc4 */ /* not lifted */ 3698 RECOMP_FLAGS_IN(); 3699 eax = MEM32(esi + 0x8); /* 0x36029611: mov eax, dword ptr [esi + 8] */ 3700 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3701 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3702 esp = esp + 4; /* 0x36029614: add esp, 4 */ 3703 _flag_k = FK_ADD; 3704 /* cmp edi, eax */ /* 0x36029617: cmp edi, eax */ 3705 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3707 _flag_k = FK_CMP; 3708 ebx = edi; /* 0x36029619: mov ebx, edi */ 3709 RECOMP_BACKEDGE(); 3710 if (CMP_NE(_flag_a, _flag_b)) goto L_360295FE; /* 0x3602961B: jne 0x360295fe */ 3711 L_3602961D: 3712 ecx = MEM32(esi + 0x4); /* 0x3602961D: mov ecx, dword ptr [esi + 4] */ 3713 edx = MEM32(esi + 0x8); /* 0x36029620: mov edx, dword ptr [esi + 8] */ 3714 MEM32(ecx + 0x4) = edx; /* 0x36029623: mov dword ptr [ecx + 4], edx */ 3715 eax = MEM32(esi + 0x4); /* 0x36029626: mov eax, dword ptr [esi + 4] */ 3716 MEM32(esi + 0x10) = 0; /* 0x36029629: mov dword ptr [esi + 0x10], 0 */ 3717 MEM32(eax) = eax; /* 0x36029630: mov dword ptr [eax], eax */ 3718 eax = MEM32(esi + 0x4); /* 0x36029632: mov eax, dword ptr [esi + 4] */ 3719 MEM32(eax + 0x8) = eax; /* 0x36029635: mov dword ptr [eax + 8], eax */ 3720 goto L_3602965B; /* 0x36029638: jmp 0x3602965b */ 3721 L_3602963A: 3722 /* cmp eax, edi */ /* 0x3602963A: cmp eax, edi */ 3723 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3725 _flag_k = FK_CMP; 3726 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602965B; /* 0x3602963C: je 0x3602965b */ 3727 L_3602963E: 3728 ecx = ebp + (-0x4); /* 0x3602963E: lea ecx, [ebp - 4] */ 3729 ebx = eax; /* 0x36029641: mov ebx, eax */ 3730 RECOMP_ICALL(0x36064140u); /* 0x36029643: call 0x36064140 */ /* not lifted */ 3731 RECOMP_FLAGS_IN(); 3732 PUSH32(esp, ebx); /* 0x36029648: push ebx */ 3733 eax = ebp + (-0x8); /* 0x36029649: lea eax, [ebp - 8] */ 3734 PUSH32(esp, eax); /* 0x3602964C: push eax */ 3735 ecx = esi; /* 0x3602964D: mov ecx, esi */ 3736 RECOMP_ICALL(0x360588E0u); /* 0x3602964F: call 0x360588e0 */ /* not lifted */ 3737 RECOMP_FLAGS_IN(); 3738 eax = MEM32(ebp + (-0x4)); /* 0x36029654: mov eax, dword ptr [ebp - 4] */ 3739 /* cmp eax, edi */ /* 0x36029657: cmp eax, edi */ 3740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3742 _flag_k = FK_CMP; 3743 RECOMP_BACKEDGE(); 3744 if (CMP_NE(_flag_a, _flag_b)) goto L_3602963E; /* 0x36029659: jne 0x3602963e */ 3745 L_3602965B: 3746 ecx = MEM32(esi + 0x4); /* 0x3602965B: mov ecx, dword ptr [esi + 4] */ 3747 PUSH32(esp, ecx); /* 0x3602965E: push ecx */ 3748 RECOMP_ICALL(0x3615FCC4u); /* 0x3602965F: call 0x3615fcc4 */ /* not lifted */ 3749 RECOMP_FLAGS_IN(); 3750 edx = MEM32(esi + 0x8); /* 0x36029664: mov edx, dword ptr [esi + 8] */ 3751 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3752 edi = 0; /* 0x36029667: xor edi, edi */ 3753 _cf = 0; 3754 _flag_k = FK_TEST; 3755 PUSH32(esp, edx); /* 0x36029669: push edx */ 3756 MEM32(esi + 0x4) = edi; /* 0x3602966A: mov dword ptr [esi + 4], edi */ 3757 MEM32(esi + 0x10) = edi; /* 0x3602966D: mov dword ptr [esi + 0x10], edi */ 3758 RECOMP_ICALL(0x3615FCC4u); /* 0x36029670: call 0x3615fcc4 */ /* not lifted */ 3759 RECOMP_FLAGS_IN(); 3760 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3761 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3762 esp = esp + 8; /* 0x36029675: add esp, 8 */ 3763 _flag_k = FK_ADD; 3764 MEM32(esi + 0x8) = edi; /* 0x36029678: mov dword ptr [esi + 8], edi */ 3765 edi = POP32_VAL(esp); /* 0x3602967B: pop edi */ 3766 esi = POP32_VAL(esp); /* 0x3602967C: pop esi */ 3767 ebx = POP32_VAL(esp); /* 0x3602967D: pop ebx */ 3768 esp = ebp; /* 0x3602967E: mov esp, ebp */ 3769 ebp = POP32_VAL(esp); /* 0x36029680: pop ebp */ 3770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029681: ret */ 3771 RECOMP_REGS_OUT(); 3772 } 3773 3774 void sub_36029690(void) { 3775 int _fpu_cmp = 0; 3776 uint32_t _cf = 0; 3777 int _df = 1; 3778 uint32_t _flag_k = FK_NONE; 3779 uint32_t _flag_a = 0, _flag_b = 0; 3780 uint32_t _itail_tgt = 0; 3781 RECOMP_REGS_LOCALS 3782 RECOMP_ENTER(0x36029690u); 3783 3784 L_36029690: 3785 PUSH32(esp, ebp); /* 0x36029690: push ebp */ 3786 ebp = esp; /* 0x36029691: mov ebp, esp */ 3787 PUSH32(esp, esi); /* 0x36029693: push esi */ 3788 esi = ecx; /* 0x36029694: mov esi, ecx */ 3789 eax = MEM32(esi + 0x4); /* 0x36029696: mov eax, dword ptr [esi + 4] */ 3790 /* test eax, eax */ /* 0x36029699: test eax, eax */ 3791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3792 _cf = 0; 3793 _flag_k = FK_TEST; 3794 if (TEST_Z(_flag_a, _flag_b)) goto L_360296B9; /* 0x3602969B: je 0x360296b9 */ 3795 L_3602969D: 3796 ecx = eax + (-0x1); /* 0x3602969D: lea ecx, [eax - 1] */ 3797 SET_LO8(eax, MEM8(ecx)); /* 0x360296A0: mov al, byte ptr [ecx] */ 3798 /* test LO8(eax), LO8(eax) */ /* 0x360296A2: test al, al */ 3799 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3800 _cf = 0; 3801 _flag_k = FK_NARROW(FK_TEST, 24); 3802 if (TEST_Z(_flag_a, _flag_b)) goto L_360296B0; /* 0x360296A4: je 0x360296b0 */ 3803 L_360296A6: 3804 /* cmp LO8(eax), 0xFFu */ /* 0x360296A6: cmp al, 0xff */ 3805 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 3806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3807 _flag_k = FK_NARROW(FK_CMP, 24); 3808 if (CMP_EQ(_flag_a, _flag_b)) goto L_360296B0; /* 0x360296A8: je 0x360296b0 */ 3809 L_360296AA: 3810 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 3811 SET_LO8(eax, LO8(eax) - 1); /* 0x360296AA: dec al */ 3812 _flag_k = FK_NARROW(FK_DEC, 24); 3813 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360296AC: mov byte ptr [ecx], al */ 3814 goto L_360296B9; /* 0x360296AE: jmp 0x360296b9 */ 3815 L_360296B0: 3816 PUSH32(esp, ecx); /* 0x360296B0: push ecx */ 3817 RECOMP_ICALL(0x3615FCC4u); /* 0x360296B1: call 0x3615fcc4 */ /* not lifted */ 3818 RECOMP_FLAGS_IN(); 3819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3821 esp = esp + 4; /* 0x360296B6: add esp, 4 */ 3822 _flag_k = FK_ADD; 3823 L_360296B9: 3824 /* test MEM8(ebp + 0x8), 1 */ /* 0x360296B9: test byte ptr [ebp + 8], 1 */ 3825 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3826 _cf = 0; 3827 _flag_k = FK_NARROW(FK_TEST, 24); 3828 MEM32(esi + 0x4) = 0; /* 0x360296BD: mov dword ptr [esi + 4], 0 */ 3829 MEM32(esi + 0x8) = 0; /* 0x360296C4: mov dword ptr [esi + 8], 0 */ 3830 MEM32(esi + 0xC) = 0; /* 0x360296CB: mov dword ptr [esi + 0xc], 0 */ 3831 if (TEST_Z(_flag_a, _flag_b)) goto L_360296DD; /* 0x360296D2: je 0x360296dd */ 3832 L_360296D4: 3833 PUSH32(esp, esi); /* 0x360296D4: push esi */ 3834 RECOMP_ICALL(0x3615FCC4u); /* 0x360296D5: call 0x3615fcc4 */ /* not lifted */ 3835 RECOMP_FLAGS_IN(); 3836 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3837 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3838 esp = esp + 4; /* 0x360296DA: add esp, 4 */ 3839 _flag_k = FK_ADD; 3840 L_360296DD: 3841 eax = esi; /* 0x360296DD: mov eax, esi */ 3842 esi = POP32_VAL(esp); /* 0x360296DF: pop esi */ 3843 ebp = POP32_VAL(esp); /* 0x360296E0: pop ebp */ 3844 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360296E1: ret 4 */ 3845 RECOMP_REGS_OUT(); 3846 } 3847 3848 void sub_360296F0(void) { 3849 int _fpu_cmp = 0; 3850 uint32_t _cf = 0; 3851 int _df = 1; 3852 uint32_t _flag_k = FK_NONE; 3853 uint32_t _flag_a = 0, _flag_b = 0; 3854 uint32_t _itail_tgt = 0; 3855 RECOMP_REGS_LOCALS 3856 RECOMP_ENTER(0x360296F0u); 3857 3858 L_360296F0: 3859 PUSH32(esp, ebp); /* 0x360296F0: push ebp */ 3860 ebp = esp; /* 0x360296F1: mov ebp, esp */ 3861 PUSH32(esp, ebx); /* 0x360296F3: push ebx */ 3862 ebx = MEM32(ebp + 0xC); /* 0x360296F4: mov ebx, dword ptr [ebp + 0xc] */ 3863 PUSH32(esp, esi); /* 0x360296F7: push esi */ 3864 esi = MEM32(ebp + 0x8); /* 0x360296F8: mov esi, dword ptr [ebp + 8] */ 3865 /* cmp esi, ebx */ /* 0x360296FB: cmp esi, ebx */ 3866 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3868 _flag_k = FK_CMP; 3869 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029720; /* 0x360296FD: je 0x36029720 */ 3870 L_360296FF: 3871 PUSH32(esp, edi); /* 0x360296FF: push edi */ 3872 edi = MEM32(ebp + 0x10); /* 0x36029700: mov edi, dword ptr [ebp + 0x10] */ 3873 L_36029703: 3874 PUSH32(esp, esi); /* 0x36029703: push esi */ 3875 PUSH32(esp, edi); /* 0x36029704: push edi */ 3876 RECOMP_ICALL(0x36029BC0u); /* 0x36029705: call 0x36029bc0 */ /* not lifted */ 3877 RECOMP_FLAGS_IN(); 3878 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 3879 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3880 esi = esi + 0x24u; /* 0x3602970A: add esi, 0x24 */ 3881 _flag_k = FK_ADD; 3882 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3884 esp = esp + 8; /* 0x3602970D: add esp, 8 */ 3885 _flag_k = FK_ADD; 3886 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x24u); 3887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3888 edi = edi + 0x24u; /* 0x36029710: add edi, 0x24 */ 3889 _flag_k = FK_ADD; 3890 /* cmp esi, ebx */ /* 0x36029713: cmp esi, ebx */ 3891 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3893 _flag_k = FK_CMP; 3894 RECOMP_BACKEDGE(); 3895 if (CMP_NE(_flag_a, _flag_b)) goto L_36029703; /* 0x36029715: jne 0x36029703 */ 3896 L_36029717: 3897 eax = edi; /* 0x36029717: mov eax, edi */ 3898 edi = POP32_VAL(esp); /* 0x36029719: pop edi */ 3899 esi = POP32_VAL(esp); /* 0x3602971A: pop esi */ 3900 ebx = POP32_VAL(esp); /* 0x3602971B: pop ebx */ 3901 ebp = POP32_VAL(esp); /* 0x3602971C: pop ebp */ 3902 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602971D: ret 0xc */ 3903 L_36029720: 3904 eax = MEM32(ebp + 0x10); /* 0x36029720: mov eax, dword ptr [ebp + 0x10] */ 3905 esi = POP32_VAL(esp); /* 0x36029723: pop esi */ 3906 ebx = POP32_VAL(esp); /* 0x36029724: pop ebx */ 3907 ebp = POP32_VAL(esp); /* 0x36029725: pop ebp */ 3908 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029726: ret 0xc */ 3909 RECOMP_REGS_OUT(); 3910 } 3911 3912 void sub_36029730(void) { 3913 int _fpu_cmp = 0; 3914 uint32_t _cf = 0; 3915 int _df = 1; 3916 uint32_t _flag_k = FK_NONE; 3917 uint32_t _flag_a = 0, _flag_b = 0; 3918 uint32_t _itail_tgt = 0; 3919 RECOMP_REGS_LOCALS 3920 RECOMP_ENTER(0x36029730u); 3921 3922 L_36029730: 3923 PUSH32(esp, ebp); /* 0x36029730: push ebp */ 3924 ebp = esp; /* 0x36029731: mov ebp, esp */ 3925 PUSH32(esp, ebx); /* 0x36029733: push ebx */ 3926 PUSH32(esp, esi); /* 0x36029734: push esi */ 3927 PUSH32(esp, edi); /* 0x36029735: push edi */ 3928 edi = MEM32(ebp + 0xC); /* 0x36029736: mov edi, dword ptr [ebp + 0xc] */ 3929 eax = MEM32(edi + 0x4); /* 0x36029739: mov eax, dword ptr [edi + 4] */ 3930 PUSH32(esp, 0x3Cu); /* 0x3602973C: push 0x3c */ 3931 ebx = ecx; /* 0x3602973E: mov ebx, ecx */ 3932 MEM32(ebp + 0xC) = eax; /* 0x36029740: mov dword ptr [ebp + 0xc], eax */ 3933 RECOMP_ICALL(0x3615FD6Au); /* 0x36029743: call 0x3615fd6a */ /* not lifted */ 3934 RECOMP_FLAGS_IN(); 3935 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3937 esp = esp + 4; /* 0x36029748: add esp, 4 */ 3938 _flag_k = FK_ADD; 3939 /* test edi, edi */ /* 0x3602974B: test edi, edi */ 3940 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3941 _cf = 0; 3942 _flag_k = FK_TEST; 3943 esi = eax; /* 0x3602974D: mov esi, eax */ 3944 eax = edi; /* 0x3602974F: mov eax, edi */ 3945 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029755; /* 0x36029751: jne 0x36029755 */ 3946 L_36029753: 3947 eax = esi; /* 0x36029753: mov eax, esi */ 3948 L_36029755: 3949 MEM32(esi) = eax; /* 0x36029755: mov dword ptr [esi], eax */ 3950 eax = MEM32(ebp + 0xC); /* 0x36029757: mov eax, dword ptr [ebp + 0xc] */ 3951 /* test eax, eax */ /* 0x3602975A: test eax, eax */ 3952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3953 _cf = 0; 3954 _flag_k = FK_TEST; 3955 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029760; /* 0x3602975C: jne 0x36029760 */ 3956 L_3602975E: 3957 eax = esi; /* 0x3602975E: mov eax, esi */ 3958 L_36029760: 3959 edx = MEM32(ebp + 0x10); /* 0x36029760: mov edx, dword ptr [ebp + 0x10] */ 3960 MEM32(esi + 0x4) = eax; /* 0x36029763: mov dword ptr [esi + 4], eax */ 3961 MEM32(edi + 0x4) = esi; /* 0x36029766: mov dword ptr [edi + 4], esi */ 3962 ecx = MEM32(esi + 0x4); /* 0x36029769: mov ecx, dword ptr [esi + 4] */ 3963 PUSH32(esp, edx); /* 0x3602976C: push edx */ 3964 eax = esi + 0x8; /* 0x3602976D: lea eax, [esi + 8] */ 3965 PUSH32(esp, eax); /* 0x36029770: push eax */ 3966 MEM32(ecx) = esi; /* 0x36029771: mov dword ptr [ecx], esi */ 3967 RECOMP_ICALL(0x36029D50u); /* 0x36029773: call 0x36029d50 */ /* not lifted */ 3968 RECOMP_FLAGS_IN(); 3969 eax = MEM32(ebx + 0x8); /* 0x36029778: mov eax, dword ptr [ebx + 8] */ 3970 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3971 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3972 esp = esp + 8; /* 0x3602977B: add esp, 8 */ 3973 _flag_k = FK_ADD; 3974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3975 eax = eax + 1; /* 0x3602977E: inc eax */ 3976 _flag_k = FK_INC; 3977 MEM32(ebx + 0x8) = eax; /* 0x3602977F: mov dword ptr [ebx + 8], eax */ 3978 eax = MEM32(ebp + 0x8); /* 0x36029782: mov eax, dword ptr [ebp + 8] */ 3979 edi = POP32_VAL(esp); /* 0x36029785: pop edi */ 3980 MEM32(eax) = esi; /* 0x36029786: mov dword ptr [eax], esi */ 3981 esi = POP32_VAL(esp); /* 0x36029788: pop esi */ 3982 ebx = POP32_VAL(esp); /* 0x36029789: pop ebx */ 3983 ebp = POP32_VAL(esp); /* 0x3602978A: pop ebp */ 3984 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602978B: ret 0xc */ 3985 RECOMP_REGS_OUT(); 3986 } 3987 3988 void sub_36029790(void) { 3989 int _fpu_cmp = 0; 3990 uint32_t _cf = 0; 3991 int _df = 1; 3992 uint32_t _flag_k = FK_NONE; 3993 uint32_t _flag_a = 0, _flag_b = 0; 3994 uint32_t _itail_tgt = 0; 3995 RECOMP_REGS_LOCALS 3996 RECOMP_ENTER(0x36029790u); 3997 3998 L_36029790: 3999 PUSH32(esp, ebp); /* 0x36029790: push ebp */ 4000 ebp = esp; /* 0x36029791: mov ebp, esp */ 4001 PUSH32(esp, ebx); /* 0x36029793: push ebx */ 4002 ebx = MEM32(ebp + 0x10); /* 0x36029794: mov ebx, dword ptr [ebp + 0x10] */ 4003 PUSH32(esp, esi); /* 0x36029797: push esi */ 4004 esi = ecx; /* 0x36029798: mov esi, ecx */ 4005 eax = MEM32(esi + 0x10); /* 0x3602979A: mov eax, dword ptr [esi + 0x10] */ 4006 /* test eax, eax */ /* 0x3602979D: test eax, eax */ 4007 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4008 _cf = 0; 4009 _flag_k = FK_TEST; 4010 ecx = MEM32(ebp + 0xC); /* 0x3602979F: mov ecx, dword ptr [ebp + 0xc] */ 4011 PUSH32(esp, edi); /* 0x360297A2: push edi */ 4012 if (TEST_Z(_flag_a, _flag_b)) goto L_36029805; /* 0x360297A3: je 0x36029805 */ 4013 L_360297A5: 4014 eax = MEM32(esi + 0x4); /* 0x360297A5: mov eax, dword ptr [esi + 4] */ 4015 /* cmp ecx, MEM32(eax) */ /* 0x360297A8: cmp ecx, dword ptr [eax] */ 4016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 4017 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4018 _flag_k = FK_CMP; 4019 if (CMP_NE(_flag_a, _flag_b)) goto L_36029805; /* 0x360297AA: jne 0x36029805 */ 4020 L_360297AC: 4021 /* cmp ebx, eax */ /* 0x360297AC: cmp ebx, eax */ 4022 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4024 _flag_k = FK_CMP; 4025 if (CMP_NE(_flag_a, _flag_b)) goto L_36029805; /* 0x360297AE: jne 0x36029805 */ 4026 L_360297B0: 4027 ebx = MEM32(eax + 0x4); /* 0x360297B0: mov ebx, dword ptr [eax + 4] */ 4028 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360297B3: cmp ebx, dword ptr [esi + 8] */ 4029 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4031 _flag_k = FK_CMP; 4032 edi = ebx; /* 0x360297B6: mov edi, ebx */ 4033 if (CMP_EQ(_flag_a, _flag_b)) goto L_360297D9; /* 0x360297B8: je 0x360297d9 */ 4034 L_360297BA: 4035 eax = MEM32(edi + 0x8); /* 0x360297BA: mov eax, dword ptr [edi + 8] */ 4036 PUSH32(esp, eax); /* 0x360297BD: push eax */ 4037 ecx = esi; /* 0x360297BE: mov ecx, esi */ 4038 RECOMP_ICALL(0x36029AC0u); /* 0x360297C0: call 0x36029ac0 */ /* not lifted */ 4039 RECOMP_FLAGS_IN(); 4040 edi = MEM32(edi); /* 0x360297C5: mov edi, dword ptr [edi] */ 4041 PUSH32(esp, ebx); /* 0x360297C7: push ebx */ 4042 RECOMP_ICALL(0x3615FCC4u); /* 0x360297C8: call 0x3615fcc4 */ /* not lifted */ 4043 RECOMP_FLAGS_IN(); 4044 eax = MEM32(esi + 0x8); /* 0x360297CD: mov eax, dword ptr [esi + 8] */ 4045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4047 esp = esp + 4; /* 0x360297D0: add esp, 4 */ 4048 _flag_k = FK_ADD; 4049 /* cmp edi, eax */ /* 0x360297D3: cmp edi, eax */ 4050 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4052 _flag_k = FK_CMP; 4053 ebx = edi; /* 0x360297D5: mov ebx, edi */ 4054 RECOMP_BACKEDGE(); 4055 if (CMP_NE(_flag_a, _flag_b)) goto L_360297BA; /* 0x360297D7: jne 0x360297ba */ 4056 L_360297D9: 4057 ecx = MEM32(esi + 0x4); /* 0x360297D9: mov ecx, dword ptr [esi + 4] */ 4058 edx = MEM32(esi + 0x8); /* 0x360297DC: mov edx, dword ptr [esi + 8] */ 4059 MEM32(ecx + 0x4) = edx; /* 0x360297DF: mov dword ptr [ecx + 4], edx */ 4060 eax = MEM32(esi + 0x4); /* 0x360297E2: mov eax, dword ptr [esi + 4] */ 4061 MEM32(esi + 0x10) = 0; /* 0x360297E5: mov dword ptr [esi + 0x10], 0 */ 4062 MEM32(eax) = eax; /* 0x360297EC: mov dword ptr [eax], eax */ 4063 eax = MEM32(esi + 0x4); /* 0x360297EE: mov eax, dword ptr [esi + 4] */ 4064 MEM32(eax + 0x8) = eax; /* 0x360297F1: mov dword ptr [eax + 8], eax */ 4065 eax = MEM32(esi + 0x4); /* 0x360297F4: mov eax, dword ptr [esi + 4] */ 4066 ecx = MEM32(eax); /* 0x360297F7: mov ecx, dword ptr [eax] */ 4067 eax = MEM32(ebp + 0x8); /* 0x360297F9: mov eax, dword ptr [ebp + 8] */ 4068 edi = POP32_VAL(esp); /* 0x360297FC: pop edi */ 4069 esi = POP32_VAL(esp); /* 0x360297FD: pop esi */ 4070 MEM32(eax) = ecx; /* 0x360297FE: mov dword ptr [eax], ecx */ 4071 ebx = POP32_VAL(esp); /* 0x36029800: pop ebx */ 4072 ebp = POP32_VAL(esp); /* 0x36029801: pop ebp */ 4073 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029802: ret 0xc */ 4074 L_36029805: 4075 /* cmp ecx, ebx */ /* 0x36029805: cmp ecx, ebx */ 4076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4078 _flag_k = FK_CMP; 4079 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029826; /* 0x36029807: je 0x36029826 */ 4080 L_36029809: 4081 edi = ecx; /* 0x36029809: mov edi, ecx */ 4082 ecx = ebp + 0xC; /* 0x3602980B: lea ecx, [ebp + 0xc] */ 4083 RECOMP_ICALL(0x36064140u); /* 0x3602980E: call 0x36064140 */ /* not lifted */ 4084 RECOMP_FLAGS_IN(); 4085 PUSH32(esp, edi); /* 0x36029813: push edi */ 4086 ecx = ebp + 0x10; /* 0x36029814: lea ecx, [ebp + 0x10] */ 4087 PUSH32(esp, ecx); /* 0x36029817: push ecx */ 4088 ecx = esi; /* 0x36029818: mov ecx, esi */ 4089 RECOMP_ICALL(0x360588E0u); /* 0x3602981A: call 0x360588e0 */ /* not lifted */ 4090 RECOMP_FLAGS_IN(); 4091 ecx = MEM32(ebp + 0xC); /* 0x3602981F: mov ecx, dword ptr [ebp + 0xc] */ 4092 /* cmp ecx, ebx */ /* 0x36029822: cmp ecx, ebx */ 4093 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 4094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4095 _flag_k = FK_CMP; 4096 RECOMP_BACKEDGE(); 4097 if (CMP_NE(_flag_a, _flag_b)) goto L_36029809; /* 0x36029824: jne 0x36029809 */ 4098 L_36029826: 4099 eax = MEM32(ebp + 0x8); /* 0x36029826: mov eax, dword ptr [ebp + 8] */ 4100 edi = POP32_VAL(esp); /* 0x36029829: pop edi */ 4101 esi = POP32_VAL(esp); /* 0x3602982A: pop esi */ 4102 MEM32(eax) = ecx; /* 0x3602982B: mov dword ptr [eax], ecx */ 4103 ebx = POP32_VAL(esp); /* 0x3602982D: pop ebx */ 4104 ebp = POP32_VAL(esp); /* 0x3602982E: pop ebp */ 4105 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602982F: ret 0xc */ 4106 RECOMP_REGS_OUT(); 4107 } 4108 4109 void sub_36029840(void) { 4110 int _fpu_cmp = 0; 4111 uint32_t _cf = 0; 4112 int _df = 1; 4113 uint32_t _flag_k = FK_NONE; 4114 uint32_t _flag_a = 0, _flag_b = 0; 4115 uint32_t _itail_tgt = 0; 4116 RECOMP_REGS_LOCALS 4117 RECOMP_ENTER(0x36029840u); 4118 4119 L_36029840: 4120 PUSH32(esp, ebp); /* 0x36029840: push ebp */ 4121 ebp = esp; /* 0x36029841: mov ebp, esp */ 4122 eax = MEM32(ebp + 0x8); /* 0x36029843: mov eax, dword ptr [ebp + 8] */ 4123 PUSH32(esp, eax); /* 0x36029846: push eax */ 4124 RECOMP_ICALL(0x3615FCC4u); /* 0x36029847: call 0x3615fcc4 */ /* not lifted */ 4125 RECOMP_FLAGS_IN(); 4126 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4127 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4128 esp = esp + 4; /* 0x3602984C: add esp, 4 */ 4129 _flag_k = FK_ADD; 4130 ebp = POP32_VAL(esp); /* 0x3602984F: pop ebp */ 4131 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36029850: ret 8 */ 4132 RECOMP_REGS_OUT(); 4133 } 4134 4135 void sub_36029860(void) { 4136 int _fpu_cmp = 0; 4137 uint32_t _cf = 0; 4138 int _df = 1; 4139 uint32_t _flag_k = FK_NONE; 4140 uint32_t _flag_a = 0, _flag_b = 0; 4141 uint32_t _itail_tgt = 0; 4142 RECOMP_REGS_LOCALS 4143 RECOMP_ENTER(0x36029860u); 4144 4145 L_36029860: 4146 PUSH32(esp, ebp); /* 0x36029860: push ebp */ 4147 ebp = esp; /* 0x36029861: mov ebp, esp */ 4148 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4150 esp = esp - 0x10u; /* 0x36029863: sub esp, 0x10 */ 4151 _flag_k = FK_CMP; 4152 edx = MEM32(ecx + 0xC); /* 0x36029866: mov edx, dword ptr [ecx + 0xc] */ 4153 eax = MEM32(ebp + 0xC); /* 0x36029869: mov eax, dword ptr [ebp + 0xc] */ 4154 PUSH32(esp, ebx); /* 0x3602986C: push ebx */ 4155 PUSH32(esp, esi); /* 0x3602986D: push esi */ 4156 esi = MEM32(ecx + 0x8); /* 0x3602986E: mov esi, dword ptr [ecx + 8] */ 4157 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4159 edx = edx - esi; /* 0x36029871: sub edx, esi */ 4160 _flag_k = FK_CMP; 4161 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029873: sar edx, 3 */ 4162 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4163 edx = (uint32_t)((int32_t)edx >> 3u); 4164 /* cmp edx, eax */ /* 0x36029876: cmp edx, eax */ 4165 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4167 _flag_k = FK_CMP; 4168 PUSH32(esp, edi); /* 0x36029878: push edi */ 4169 MEM32(ebp + (-0x4)) = ecx; /* 0x36029879: mov dword ptr [ebp - 4], ecx */ 4170 if (CMP_AE(_flag_a, _flag_b)) goto L_36029992; /* 0x3602987C: jae 0x36029992 */ 4171 L_36029882: 4172 edx = MEM32(ecx + 0x4); /* 0x36029882: mov edx, dword ptr [ecx + 4] */ 4173 /* test edx, edx */ /* 0x36029885: test edx, edx */ 4174 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4175 _cf = 0; 4176 _flag_k = FK_TEST; 4177 if (TEST_Z(_flag_a, _flag_b)) goto L_3602989A; /* 0x36029887: je 0x3602989a */ 4178 L_36029889: 4179 ecx = esi; /* 0x36029889: mov ecx, esi */ 4180 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4182 ecx = ecx - edx; /* 0x3602988B: sub ecx, edx */ 4183 _flag_k = FK_CMP; 4184 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3602988D: sar ecx, 3 */ 4185 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4186 ecx = (uint32_t)((int32_t)ecx >> 3u); 4187 /* cmp eax, ecx */ /* 0x36029890: cmp eax, ecx */ 4188 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4189 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4190 _flag_k = FK_CMP; 4191 if (CMP_AE(_flag_a, _flag_b)) goto L_36029896; /* 0x36029892: jae 0x36029896 */ 4192 L_36029894: 4193 eax = ecx; /* 0x36029894: mov eax, ecx */ 4194 L_36029896: 4195 /* test edx, edx */ /* 0x36029896: test edx, edx */ 4196 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4197 _cf = 0; 4198 _flag_k = FK_TEST; 4199 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602989E; /* 0x36029898: jne 0x3602989e */ 4200 L_3602989A: 4201 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4202 esi = 0; /* 0x3602989A: xor esi, esi */ 4203 _cf = 0; 4204 _flag_k = FK_TEST; 4205 goto L_360298A3; /* 0x3602989C: jmp 0x360298a3 */ 4206 L_3602989E: 4207 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 4208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4209 esi = esi - edx; /* 0x3602989E: sub esi, edx */ 4210 _flag_k = FK_CMP; 4211 if (3u) _cf = (((esi) >> 2) & 1u); /* 0x360298A0: sar esi, 3 */ 4212 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)esi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4213 esi = (uint32_t)((int32_t)esi >> 3u); 4214 L_360298A3: 4215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4217 eax = eax + esi; /* 0x360298A3: add eax, esi */ 4218 _flag_k = FK_ADD; 4219 /* test eax, eax */ /* 0x360298A5: test eax, eax */ 4220 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4221 _cf = 0; 4222 _flag_k = FK_TEST; 4223 MEM32(ebp + (-0x10)) = eax; /* 0x360298A7: mov dword ptr [ebp - 0x10], eax */ 4224 if (TEST_NS(_flag_a, _flag_b)) goto L_360298AE; /* 0x360298AA: jge 0x360298ae */ 4225 L_360298AC: 4226 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4227 eax = 0; /* 0x360298AC: xor eax, eax */ 4228 _cf = 0; 4229 _flag_k = FK_TEST; 4230 L_360298AE: 4231 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x360298AE: shl eax, 3 */ 4232 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4233 eax = eax << 3u; /* 0x360298AE: shl eax, 3 */ 4234 PUSH32(esp, eax); /* 0x360298B1: push eax */ 4235 RECOMP_ICALL(0x3615FD6Au); /* 0x360298B2: call 0x3615fd6a */ /* not lifted */ 4236 RECOMP_FLAGS_IN(); 4237 ebx = MEM32(ebp + (-0x4)); /* 0x360298B7: mov ebx, dword ptr [ebp - 4] */ 4238 esi = MEM32(ebx + 0x4); /* 0x360298BA: mov esi, dword ptr [ebx + 4] */ 4239 MEM32(ebp + (-0xC)) = eax; /* 0x360298BD: mov dword ptr [ebp - 0xc], eax */ 4240 edi = eax; /* 0x360298C0: mov edi, eax */ 4241 eax = MEM32(ebp + 0x8); /* 0x360298C2: mov eax, dword ptr [ebp + 8] */ 4242 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4243 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4244 esp = esp + 4; /* 0x360298C5: add esp, 4 */ 4245 _flag_k = FK_ADD; 4246 /* cmp esi, eax */ /* 0x360298C8: cmp esi, eax */ 4247 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4249 _flag_k = FK_CMP; 4250 if (CMP_EQ(_flag_a, _flag_b)) goto L_360298E3; /* 0x360298CA: je 0x360298e3 */ 4251 L_360298CC: 4252 PUSH32(esp, esi); /* 0x360298CC: push esi */ 4253 PUSH32(esp, edi); /* 0x360298CD: push edi */ 4254 RECOMP_ICALL(0x360180C0u); /* 0x360298CE: call 0x360180c0 */ /* not lifted */ 4255 RECOMP_FLAGS_IN(); 4256 eax = MEM32(ebp + 0x8); /* 0x360298D3: mov eax, dword ptr [ebp + 8] */ 4257 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4259 esi = esi + 8; /* 0x360298D6: add esi, 8 */ 4260 _flag_k = FK_ADD; 4261 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4262 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4263 esp = esp + 8; /* 0x360298D9: add esp, 8 */ 4264 _flag_k = FK_ADD; 4265 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 4266 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4267 edi = edi + 8; /* 0x360298DC: add edi, 8 */ 4268 _flag_k = FK_ADD; 4269 /* cmp esi, eax */ /* 0x360298DF: cmp esi, eax */ 4270 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4272 _flag_k = FK_CMP; 4273 RECOMP_BACKEDGE(); 4274 if (CMP_NE(_flag_a, _flag_b)) goto L_360298CC; /* 0x360298E1: jne 0x360298cc */ 4275 L_360298E3: 4276 eax = MEM32(ebp + 0xC); /* 0x360298E3: mov eax, dword ptr [ebp + 0xc] */ 4277 /* test eax, eax */ /* 0x360298E6: test eax, eax */ 4278 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4279 _cf = 0; 4280 _flag_k = FK_TEST; 4281 esi = edi; /* 0x360298E8: mov esi, edi */ 4282 if (TEST_Z(_flag_a, _flag_b)) goto L_3602990B; /* 0x360298EA: jbe 0x3602990b */ 4283 L_360298EC: 4284 MEM32(ebp + (-0x8)) = eax; /* 0x360298EC: mov dword ptr [ebp - 8], eax */ 4285 L_360298EF: 4286 ecx = MEM32(ebp + 0x10); /* 0x360298EF: mov ecx, dword ptr [ebp + 0x10] */ 4287 PUSH32(esp, ecx); /* 0x360298F2: push ecx */ 4288 PUSH32(esp, esi); /* 0x360298F3: push esi */ 4289 RECOMP_ICALL(0x360180C0u); /* 0x360298F4: call 0x360180c0 */ /* not lifted */ 4290 RECOMP_FLAGS_IN(); 4291 eax = MEM32(ebp + (-0x8)); /* 0x360298F9: mov eax, dword ptr [ebp - 8] */ 4292 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4293 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4294 esp = esp + 8; /* 0x360298FC: add esp, 8 */ 4295 _flag_k = FK_ADD; 4296 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4298 esi = esi + 8; /* 0x360298FF: add esi, 8 */ 4299 _flag_k = FK_ADD; 4300 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4301 eax = eax - 1; /* 0x36029902: dec eax */ 4302 _flag_k = FK_DEC; 4303 MEM32(ebp + (-0x8)) = eax; /* 0x36029903: mov dword ptr [ebp - 8], eax */ 4304 RECOMP_BACKEDGE(); 4305 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_360298EF; /* 0x36029906: jne 0x360298ef */ 4306 L_36029908: 4307 eax = MEM32(ebp + 0xC); /* 0x36029908: mov eax, dword ptr [ebp + 0xc] */ 4308 L_3602990B: 4309 esi = MEM32(ebp + 0x8); /* 0x3602990B: mov esi, dword ptr [ebp + 8] */ 4310 eax = edi + eax * 8; /* 0x3602990E: lea eax, [edi + eax*8] */ 4311 edi = MEM32(ebx + 0x8); /* 0x36029911: mov edi, dword ptr [ebx + 8] */ 4312 /* cmp esi, edi */ /* 0x36029914: cmp esi, edi */ 4313 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4315 _flag_k = FK_CMP; 4316 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029938; /* 0x36029916: je 0x36029938 */ 4317 L_36029918: 4318 MEM32(ebp + 0x8) = eax; /* 0x36029918: mov dword ptr [ebp + 8], eax */ 4319 L_3602991B: 4320 edx = MEM32(ebp + 0x8); /* 0x3602991B: mov edx, dword ptr [ebp + 8] */ 4321 PUSH32(esp, esi); /* 0x3602991E: push esi */ 4322 PUSH32(esp, edx); /* 0x3602991F: push edx */ 4323 RECOMP_ICALL(0x360180C0u); /* 0x36029920: call 0x360180c0 */ /* not lifted */ 4324 RECOMP_FLAGS_IN(); 4325 ecx = MEM32(ebp + 0x8); /* 0x36029925: mov ecx, dword ptr [ebp + 8] */ 4326 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4328 esi = esi + 8; /* 0x36029928: add esi, 8 */ 4329 _flag_k = FK_ADD; 4330 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4331 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4332 ecx = ecx + 8; /* 0x3602992B: add ecx, 8 */ 4333 _flag_k = FK_ADD; 4334 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4335 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4336 esp = esp + 8; /* 0x3602992E: add esp, 8 */ 4337 _flag_k = FK_ADD; 4338 /* cmp esi, edi */ /* 0x36029931: cmp esi, edi */ 4339 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 4340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4341 _flag_k = FK_CMP; 4342 MEM32(ebp + 0x8) = ecx; /* 0x36029933: mov dword ptr [ebp + 8], ecx */ 4343 RECOMP_BACKEDGE(); 4344 if (CMP_NE(_flag_a, _flag_b)) goto L_3602991B; /* 0x36029936: jne 0x3602991b */ 4345 L_36029938: 4346 eax = MEM32(ebx + 0x4); /* 0x36029938: mov eax, dword ptr [ebx + 4] */ 4347 PUSH32(esp, eax); /* 0x3602993B: push eax */ 4348 MEM32(ebp + 0x8) = eax; /* 0x3602993C: mov dword ptr [ebp + 8], eax */ 4349 RECOMP_ICALL(0x3615FCC4u); /* 0x3602993F: call 0x3615fcc4 */ /* not lifted */ 4350 RECOMP_FLAGS_IN(); 4351 edx = MEM32(ebp + (-0xC)); /* 0x36029944: mov edx, dword ptr [ebp - 0xc] */ 4352 eax = MEM32(ebp + (-0x10)); /* 0x36029947: mov eax, dword ptr [ebp - 0x10] */ 4353 ecx = edx + eax * 8; /* 0x3602994A: lea ecx, [edx + eax*8] */ 4354 MEM32(ebx + 0xC) = ecx; /* 0x3602994D: mov dword ptr [ebx + 0xc], ecx */ 4355 ecx = MEM32(ebx + 0x4); /* 0x36029950: mov ecx, dword ptr [ebx + 4] */ 4356 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4357 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4358 esp = esp + 4; /* 0x36029953: add esp, 4 */ 4359 _flag_k = FK_ADD; 4360 /* test ecx, ecx */ /* 0x36029956: test ecx, ecx */ 4361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4362 _cf = 0; 4363 _flag_k = FK_TEST; 4364 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029973; /* 0x36029958: jne 0x36029973 */ 4365 L_3602995A: 4366 ecx = MEM32(ebp + 0xC); /* 0x3602995A: mov ecx, dword ptr [ebp + 0xc] */ 4367 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4368 eax = 0; /* 0x3602995D: xor eax, eax */ 4369 _cf = 0; 4370 _flag_k = FK_TEST; 4371 eax = ecx; /* 0x3602995F: mov eax, ecx */ 4372 edi = POP32_VAL(esp); /* 0x36029961: pop edi */ 4373 eax = edx + eax * 8; /* 0x36029962: lea eax, [edx + eax*8] */ 4374 esi = POP32_VAL(esp); /* 0x36029965: pop esi */ 4375 MEM32(ebx + 0x8) = eax; /* 0x36029966: mov dword ptr [ebx + 8], eax */ 4376 MEM32(ebx + 0x4) = edx; /* 0x36029969: mov dword ptr [ebx + 4], edx */ 4377 ebx = POP32_VAL(esp); /* 0x3602996C: pop ebx */ 4378 esp = ebp; /* 0x3602996D: mov esp, ebp */ 4379 ebp = POP32_VAL(esp); /* 0x3602996F: pop ebp */ 4380 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029970: ret 0xc */ 4381 L_36029973: 4382 eax = MEM32(ebx + 0x8); /* 0x36029973: mov eax, dword ptr [ebx + 8] */ 4383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4385 eax = eax - ecx; /* 0x36029976: sub eax, ecx */ 4386 _flag_k = FK_CMP; 4387 ecx = MEM32(ebp + 0xC); /* 0x36029978: mov ecx, dword ptr [ebp + 0xc] */ 4388 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3602997B: sar eax, 3 */ 4389 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4390 eax = (uint32_t)((int32_t)eax >> 3u); 4391 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4392 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4393 eax = eax + ecx; /* 0x3602997E: add eax, ecx */ 4394 _flag_k = FK_ADD; 4395 edi = POP32_VAL(esp); /* 0x36029980: pop edi */ 4396 eax = edx + eax * 8; /* 0x36029981: lea eax, [edx + eax*8] */ 4397 esi = POP32_VAL(esp); /* 0x36029984: pop esi */ 4398 MEM32(ebx + 0x8) = eax; /* 0x36029985: mov dword ptr [ebx + 8], eax */ 4399 MEM32(ebx + 0x4) = edx; /* 0x36029988: mov dword ptr [ebx + 4], edx */ 4400 ebx = POP32_VAL(esp); /* 0x3602998B: pop ebx */ 4401 esp = ebp; /* 0x3602998C: mov esp, ebp */ 4402 ebp = POP32_VAL(esp); /* 0x3602998E: pop ebp */ 4403 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602998F: ret 0xc */ 4404 L_36029992: 4405 ebx = MEM32(ebp + 0x8); /* 0x36029992: mov ebx, dword ptr [ebp + 8] */ 4406 edx = esi; /* 0x36029995: mov edx, esi */ 4407 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 4408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4409 edx = edx - ebx; /* 0x36029997: sub edx, ebx */ 4410 _flag_k = FK_CMP; 4411 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x36029999: sar edx, 3 */ 4412 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4413 edx = (uint32_t)((int32_t)edx >> 3u); 4414 /* cmp edx, eax */ /* 0x3602999C: cmp edx, eax */ 4415 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4417 _flag_k = FK_CMP; 4418 if (CMP_AE(_flag_a, _flag_b)) goto L_36029A35; /* 0x3602999E: jae 0x36029a35 */ 4419 L_360299A4: 4420 edx = eax * 8; /* 0x360299A4: lea edx, [eax*8] */ 4421 MEM32(ebp + (-0x8)) = edx; /* 0x360299AB: mov dword ptr [ebp - 8], edx */ 4422 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 4423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4424 edx = edx + ebx; /* 0x360299AE: add edx, ebx */ 4425 _flag_k = FK_ADD; 4426 /* cmp ebx, esi */ /* 0x360299B0: cmp ebx, esi */ 4427 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 4428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4429 _flag_k = FK_CMP; 4430 edi = ebx; /* 0x360299B2: mov edi, ebx */ 4431 if (CMP_EQ(_flag_a, _flag_b)) goto L_360299DC; /* 0x360299B4: je 0x360299dc */ 4432 L_360299B6: 4433 MEM32(ebp + 0x8) = edx; /* 0x360299B6: mov dword ptr [ebp + 8], edx */ 4434 L_360299B9: 4435 eax = MEM32(ebp + 0x8); /* 0x360299B9: mov eax, dword ptr [ebp + 8] */ 4436 PUSH32(esp, edi); /* 0x360299BC: push edi */ 4437 PUSH32(esp, eax); /* 0x360299BD: push eax */ 4438 RECOMP_ICALL(0x360180C0u); /* 0x360299BE: call 0x360180c0 */ /* not lifted */ 4439 RECOMP_FLAGS_IN(); 4440 ecx = MEM32(ebp + 0x8); /* 0x360299C3: mov ecx, dword ptr [ebp + 8] */ 4441 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 4442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4443 edi = edi + 8; /* 0x360299C6: add edi, 8 */ 4444 _flag_k = FK_ADD; 4445 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4447 ecx = ecx + 8; /* 0x360299C9: add ecx, 8 */ 4448 _flag_k = FK_ADD; 4449 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4450 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4451 esp = esp + 8; /* 0x360299CC: add esp, 8 */ 4452 _flag_k = FK_ADD; 4453 /* cmp edi, esi */ /* 0x360299CF: cmp edi, esi */ 4454 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4456 _flag_k = FK_CMP; 4457 MEM32(ebp + 0x8) = ecx; /* 0x360299D1: mov dword ptr [ebp + 8], ecx */ 4458 RECOMP_BACKEDGE(); 4459 if (CMP_NE(_flag_a, _flag_b)) goto L_360299B9; /* 0x360299D4: jne 0x360299b9 */ 4460 L_360299D6: 4461 ecx = MEM32(ebp + (-0x4)); /* 0x360299D6: mov ecx, dword ptr [ebp - 4] */ 4462 eax = MEM32(ebp + 0xC); /* 0x360299D9: mov eax, dword ptr [ebp + 0xc] */ 4463 L_360299DC: 4464 esi = MEM32(ecx + 0x8); /* 0x360299DC: mov esi, dword ptr [ecx + 8] */ 4465 edi = MEM32(ebp + 0x10); /* 0x360299DF: mov edi, dword ptr [ebp + 0x10] */ 4466 edx = esi; /* 0x360299E2: mov edx, esi */ 4467 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebx); 4468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4469 edx = edx - ebx; /* 0x360299E4: sub edx, ebx */ 4470 _flag_k = FK_CMP; 4471 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x360299E6: sar edx, 3 */ 4472 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4473 edx = (uint32_t)((int32_t)edx >> 3u); 4474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4476 eax = eax - edx; /* 0x360299E9: sub eax, edx */ 4477 _flag_k = FK_CMP; 4478 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_36029A09; /* 0x360299EB: je 0x36029a09 */ 4479 L_360299ED: 4480 MEM32(ebp + 0xC) = eax; /* 0x360299ED: mov dword ptr [ebp + 0xc], eax */ 4481 L_360299F0: 4482 PUSH32(esp, edi); /* 0x360299F0: push edi */ 4483 PUSH32(esp, esi); /* 0x360299F1: push esi */ 4484 RECOMP_ICALL(0x360180C0u); /* 0x360299F2: call 0x360180c0 */ /* not lifted */ 4485 RECOMP_FLAGS_IN(); 4486 eax = MEM32(ebp + 0xC); /* 0x360299F7: mov eax, dword ptr [ebp + 0xc] */ 4487 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4489 esp = esp + 8; /* 0x360299FA: add esp, 8 */ 4490 _flag_k = FK_ADD; 4491 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4492 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4493 esi = esi + 8; /* 0x360299FD: add esi, 8 */ 4494 _flag_k = FK_ADD; 4495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4496 eax = eax - 1; /* 0x36029A00: dec eax */ 4497 _flag_k = FK_DEC; 4498 MEM32(ebp + 0xC) = eax; /* 0x36029A01: mov dword ptr [ebp + 0xc], eax */ 4499 RECOMP_BACKEDGE(); 4500 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_360299F0; /* 0x36029A04: jne 0x360299f0 */ 4501 L_36029A06: 4502 ecx = MEM32(ebp + (-0x4)); /* 0x36029A06: mov ecx, dword ptr [ebp - 4] */ 4503 L_36029A09: 4504 eax = MEM32(ecx + 0x8); /* 0x36029A09: mov eax, dword ptr [ecx + 8] */ 4505 /* cmp ebx, eax */ /* 0x36029A0C: cmp ebx, eax */ 4506 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4507 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4508 _flag_k = FK_CMP; 4509 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029A21; /* 0x36029A0E: je 0x36029a21 */ 4510 L_36029A10: 4511 edx = MEM32(edi); /* 0x36029A10: mov edx, dword ptr [edi] */ 4512 MEM32(ebx) = edx; /* 0x36029A12: mov dword ptr [ebx], edx */ 4513 edx = MEM32(edi + 0x4); /* 0x36029A14: mov edx, dword ptr [edi + 4] */ 4514 MEM32(ebx + 0x4) = edx; /* 0x36029A17: mov dword ptr [ebx + 4], edx */ 4515 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 4516 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4517 ebx = ebx + 8; /* 0x36029A1A: add ebx, 8 */ 4518 _flag_k = FK_ADD; 4519 /* cmp ebx, eax */ /* 0x36029A1D: cmp ebx, eax */ 4520 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4521 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4522 _flag_k = FK_CMP; 4523 RECOMP_BACKEDGE(); 4524 if (CMP_NE(_flag_a, _flag_b)) goto L_36029A10; /* 0x36029A1F: jne 0x36029a10 */ 4525 L_36029A21: 4526 edx = MEM32(ecx + 0x8); /* 0x36029A21: mov edx, dword ptr [ecx + 8] */ 4527 eax = MEM32(ebp + (-0x8)); /* 0x36029A24: mov eax, dword ptr [ebp - 8] */ 4528 edi = POP32_VAL(esp); /* 0x36029A27: pop edi */ 4529 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4530 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4531 edx = edx + eax; /* 0x36029A28: add edx, eax */ 4532 _flag_k = FK_ADD; 4533 esi = POP32_VAL(esp); /* 0x36029A2A: pop esi */ 4534 MEM32(ecx + 0x8) = edx; /* 0x36029A2B: mov dword ptr [ecx + 8], edx */ 4535 ebx = POP32_VAL(esp); /* 0x36029A2E: pop ebx */ 4536 esp = ebp; /* 0x36029A2F: mov esp, ebp */ 4537 ebp = POP32_VAL(esp); /* 0x36029A31: pop ebp */ 4538 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029A32: ret 0xc */ 4539 L_36029A35: 4540 /* test eax, eax */ /* 0x36029A35: test eax, eax */ 4541 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4542 _cf = 0; 4543 _flag_k = FK_TEST; 4544 if (TEST_Z(_flag_a, _flag_b)) goto L_36029AAB; /* 0x36029A37: jbe 0x36029aab */ 4545 L_36029A39: 4546 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x36029A39: shl eax, 3 */ 4547 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4548 eax = eax << 3u; /* 0x36029A39: shl eax, 3 */ 4549 edi = esi; /* 0x36029A3C: mov edi, esi */ 4550 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4552 edi = edi - eax; /* 0x36029A3E: sub edi, eax */ 4553 _flag_k = FK_CMP; 4554 /* cmp edi, esi */ /* 0x36029A40: cmp edi, esi */ 4555 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4557 _flag_k = FK_CMP; 4558 MEM32(ebp + 0xC) = esi; /* 0x36029A42: mov dword ptr [ebp + 0xc], esi */ 4559 MEM32(ebp + (-0x8)) = eax; /* 0x36029A45: mov dword ptr [ebp - 8], eax */ 4560 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029A6A; /* 0x36029A48: je 0x36029a6a */ 4561 L_36029A4A: 4562 ecx = MEM32(ebp + 0xC); /* 0x36029A4A: mov ecx, dword ptr [ebp + 0xc] */ 4563 PUSH32(esp, edi); /* 0x36029A4D: push edi */ 4564 PUSH32(esp, ecx); /* 0x36029A4E: push ecx */ 4565 RECOMP_ICALL(0x360180C0u); /* 0x36029A4F: call 0x360180c0 */ /* not lifted */ 4566 RECOMP_FLAGS_IN(); 4567 edx = MEM32(ebp + 0xC); /* 0x36029A54: mov edx, dword ptr [ebp + 0xc] */ 4568 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 4569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4570 edx = edx + 8; /* 0x36029A57: add edx, 8 */ 4571 _flag_k = FK_ADD; 4572 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 4573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4574 edi = edi + 8; /* 0x36029A5A: add edi, 8 */ 4575 _flag_k = FK_ADD; 4576 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4578 esp = esp + 8; /* 0x36029A5D: add esp, 8 */ 4579 _flag_k = FK_ADD; 4580 /* cmp edi, esi */ /* 0x36029A60: cmp edi, esi */ 4581 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 4582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4583 _flag_k = FK_CMP; 4584 MEM32(ebp + 0xC) = edx; /* 0x36029A62: mov dword ptr [ebp + 0xc], edx */ 4585 RECOMP_BACKEDGE(); 4586 if (CMP_NE(_flag_a, _flag_b)) goto L_36029A4A; /* 0x36029A65: jne 0x36029a4a */ 4587 L_36029A67: 4588 ecx = MEM32(ebp + (-0x4)); /* 0x36029A67: mov ecx, dword ptr [ebp - 4] */ 4589 L_36029A6A: 4590 edx = MEM32(ecx + 0x8); /* 0x36029A6A: mov edx, dword ptr [ecx + 8] */ 4591 esi = MEM32(ebp + (-0x8)); /* 0x36029A6D: mov esi, dword ptr [ebp - 8] */ 4592 eax = edx; /* 0x36029A70: mov eax, edx */ 4593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 4594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4595 eax = eax - esi; /* 0x36029A72: sub eax, esi */ 4596 _flag_k = FK_CMP; 4597 /* cmp ebx, eax */ /* 0x36029A74: cmp ebx, eax */ 4598 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4599 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4600 _flag_k = FK_CMP; 4601 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029A8D; /* 0x36029A76: je 0x36029a8d */ 4602 L_36029A78: 4603 edi = MEM32(eax + (-0x8)); /* 0x36029A78: mov edi, dword ptr [eax - 8] */ 4604 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4606 eax = eax - 8; /* 0x36029A7B: sub eax, 8 */ 4607 _flag_k = FK_CMP; 4608 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 4609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4610 edx = edx - 8; /* 0x36029A7E: sub edx, 8 */ 4611 _flag_k = FK_CMP; 4612 /* cmp eax, ebx */ /* 0x36029A81: cmp eax, ebx */ 4613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 4614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4615 _flag_k = FK_CMP; 4616 MEM32(edx) = edi; /* 0x36029A83: mov dword ptr [edx], edi */ 4617 edi = MEM32(eax + 0x4); /* 0x36029A85: mov edi, dword ptr [eax + 4] */ 4618 MEM32(edx + 0x4) = edi; /* 0x36029A88: mov dword ptr [edx + 4], edi */ 4619 RECOMP_BACKEDGE(); 4620 if (CMP_NE(_flag_a, _flag_b)) goto L_36029A78; /* 0x36029A8B: jne 0x36029a78 */ 4621 L_36029A8D: 4622 edx = esi + ebx; /* 0x36029A8D: lea edx, [esi + ebx] */ 4623 /* cmp ebx, edx */ /* 0x36029A90: cmp ebx, edx */ 4624 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 4625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4626 _flag_k = FK_CMP; 4627 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029AA8; /* 0x36029A92: je 0x36029aa8 */ 4628 L_36029A94: 4629 eax = MEM32(ebp + 0x10); /* 0x36029A94: mov eax, dword ptr [ebp + 0x10] */ 4630 L_36029A97: 4631 edi = MEM32(eax); /* 0x36029A97: mov edi, dword ptr [eax] */ 4632 MEM32(ebx) = edi; /* 0x36029A99: mov dword ptr [ebx], edi */ 4633 edi = MEM32(eax + 0x4); /* 0x36029A9B: mov edi, dword ptr [eax + 4] */ 4634 MEM32(ebx + 0x4) = edi; /* 0x36029A9E: mov dword ptr [ebx + 4], edi */ 4635 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 4636 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4637 ebx = ebx + 8; /* 0x36029AA1: add ebx, 8 */ 4638 _flag_k = FK_ADD; 4639 /* cmp ebx, edx */ /* 0x36029AA4: cmp ebx, edx */ 4640 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 4641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4642 _flag_k = FK_CMP; 4643 RECOMP_BACKEDGE(); 4644 if (CMP_NE(_flag_a, _flag_b)) goto L_36029A97; /* 0x36029AA6: jne 0x36029a97 */ 4645 L_36029AA8: 4646 _flag_a = (uint32_t)(MEM32(ecx + 0x8)); _flag_b = (uint32_t)(esi); 4647 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4648 MEM32(ecx + 0x8) = MEM32(ecx + 0x8) + esi; /* 0x36029AA8: add dword ptr [ecx + 8], esi */ 4649 _flag_k = FK_ADD; 4650 L_36029AAB: 4651 edi = POP32_VAL(esp); /* 0x36029AAB: pop edi */ 4652 esi = POP32_VAL(esp); /* 0x36029AAC: pop esi */ 4653 ebx = POP32_VAL(esp); /* 0x36029AAD: pop ebx */ 4654 esp = ebp; /* 0x36029AAE: mov esp, ebp */ 4655 ebp = POP32_VAL(esp); /* 0x36029AB0: pop ebp */ 4656 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029AB1: ret 0xc */ 4657 RECOMP_REGS_OUT(); 4658 } 4659 4660 void sub_36029AC0(void) { 4661 int _fpu_cmp = 0; 4662 uint32_t _cf = 0; 4663 int _df = 1; 4664 uint32_t _flag_k = FK_NONE; 4665 uint32_t _flag_a = 0, _flag_b = 0; 4666 uint32_t _itail_tgt = 0; 4667 RECOMP_REGS_LOCALS 4668 RECOMP_ENTER(0x36029AC0u); 4669 4670 L_36029AC0: 4671 PUSH32(esp, ebp); /* 0x36029AC0: push ebp */ 4672 ebp = esp; /* 0x36029AC1: mov ebp, esp */ 4673 PUSH32(esp, ebx); /* 0x36029AC3: push ebx */ 4674 PUSH32(esp, esi); /* 0x36029AC4: push esi */ 4675 ebx = ecx; /* 0x36029AC5: mov ebx, ecx */ 4676 eax = MEM32(ebx + 0x8); /* 0x36029AC7: mov eax, dword ptr [ebx + 8] */ 4677 PUSH32(esp, edi); /* 0x36029ACA: push edi */ 4678 edi = MEM32(ebp + 0x8); /* 0x36029ACB: mov edi, dword ptr [ebp + 8] */ 4679 /* cmp edi, eax */ /* 0x36029ACE: cmp edi, eax */ 4680 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4682 _flag_k = FK_CMP; 4683 esi = edi; /* 0x36029AD0: mov esi, edi */ 4684 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029AF3; /* 0x36029AD2: je 0x36029af3 */ 4685 L_36029AD4: 4686 eax = MEM32(esi + 0x8); /* 0x36029AD4: mov eax, dword ptr [esi + 8] */ 4687 PUSH32(esp, eax); /* 0x36029AD7: push eax */ 4688 ecx = ebx; /* 0x36029AD8: mov ecx, ebx */ 4689 RECOMP_ICALL(0x36029AC0u); /* 0x36029ADA: call 0x36029ac0 */ /* not lifted */ 4690 RECOMP_FLAGS_IN(); 4691 esi = MEM32(esi); /* 0x36029ADF: mov esi, dword ptr [esi] */ 4692 PUSH32(esp, edi); /* 0x36029AE1: push edi */ 4693 RECOMP_ICALL(0x3615FCC4u); /* 0x36029AE2: call 0x3615fcc4 */ /* not lifted */ 4694 RECOMP_FLAGS_IN(); 4695 eax = MEM32(ebx + 0x8); /* 0x36029AE7: mov eax, dword ptr [ebx + 8] */ 4696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4698 esp = esp + 4; /* 0x36029AEA: add esp, 4 */ 4699 _flag_k = FK_ADD; 4700 /* cmp esi, eax */ /* 0x36029AED: cmp esi, eax */ 4701 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 4702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4703 _flag_k = FK_CMP; 4704 edi = esi; /* 0x36029AEF: mov edi, esi */ 4705 RECOMP_BACKEDGE(); 4706 if (CMP_NE(_flag_a, _flag_b)) goto L_36029AD4; /* 0x36029AF1: jne 0x36029ad4 */ 4707 L_36029AF3: 4708 edi = POP32_VAL(esp); /* 0x36029AF3: pop edi */ 4709 esi = POP32_VAL(esp); /* 0x36029AF4: pop esi */ 4710 ebx = POP32_VAL(esp); /* 0x36029AF5: pop ebx */ 4711 ebp = POP32_VAL(esp); /* 0x36029AF6: pop ebp */ 4712 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36029AF7: ret 4 */ 4713 RECOMP_REGS_OUT(); 4714 } 4715 4716 void sub_36029B00(void) { 4717 int _fpu_cmp = 0; 4718 uint32_t _cf = 0; 4719 int _df = 1; 4720 uint32_t _flag_k = FK_NONE; 4721 uint32_t _flag_a = 0, _flag_b = 0; 4722 uint32_t _itail_tgt = 0; 4723 RECOMP_REGS_LOCALS 4724 RECOMP_ENTER(0x36029B00u); 4725 4726 L_36029B00: 4727 edx = MEM32(ecx + 0x4); /* 0x36029B00: mov edx, dword ptr [ecx + 4] */ 4728 /* test edx, edx */ /* 0x36029B03: test edx, edx */ 4729 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4730 _cf = 0; 4731 _flag_k = FK_TEST; 4732 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029B0A; /* 0x36029B05: jne 0x36029b0a */ 4733 L_36029B07: 4734 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4735 eax = 0; /* 0x36029B07: xor eax, eax */ 4736 _cf = 0; 4737 _flag_k = FK_TEST; 4738 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029B09: ret */ 4739 L_36029B0A: 4740 eax = MEM32(ecx + 0x8); /* 0x36029B0A: mov eax, dword ptr [ecx + 8] */ 4741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4743 eax = eax - edx; /* 0x36029B0D: sub eax, edx */ 4744 _flag_k = FK_CMP; 4745 if (4u) _cf = (((eax) >> 3) & 1u); /* 0x36029B0F: sar eax, 4 */ 4746 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4747 eax = (uint32_t)((int32_t)eax >> 4u); 4748 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029B12: ret */ 4749 RECOMP_REGS_OUT(); 4750 } 4751 4752 void sub_36029B20(void) { 4753 int _fpu_cmp = 0; 4754 uint32_t _cf = 0; 4755 int _df = 1; 4756 uint32_t _flag_k = FK_NONE; 4757 uint32_t _flag_a = 0, _flag_b = 0; 4758 uint32_t _itail_tgt = 0; 4759 RECOMP_REGS_LOCALS 4760 RECOMP_ENTER(0x36029B20u); 4761 4762 L_36029B20: 4763 PUSH32(esp, ebp); /* 0x36029B20: push ebp */ 4764 ebp = esp; /* 0x36029B21: mov ebp, esp */ 4765 PUSH32(esp, edi); /* 0x36029B23: push edi */ 4766 edi = MEM32(ebp + 0xC); /* 0x36029B24: mov edi, dword ptr [ebp + 0xc] */ 4767 /* test edi, edi */ /* 0x36029B27: test edi, edi */ 4768 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4769 _cf = 0; 4770 _flag_k = FK_TEST; 4771 if (TEST_Z(_flag_a, _flag_b)) goto L_36029B45; /* 0x36029B29: jbe 0x36029b45 */ 4772 L_36029B2B: 4773 PUSH32(esp, ebx); /* 0x36029B2B: push ebx */ 4774 ebx = MEM32(ebp + 0x10); /* 0x36029B2C: mov ebx, dword ptr [ebp + 0x10] */ 4775 PUSH32(esp, esi); /* 0x36029B2F: push esi */ 4776 esi = MEM32(ebp + 0x8); /* 0x36029B30: mov esi, dword ptr [ebp + 8] */ 4777 L_36029B33: 4778 PUSH32(esp, ebx); /* 0x36029B33: push ebx */ 4779 PUSH32(esp, esi); /* 0x36029B34: push esi */ 4780 RECOMP_ICALL(0x361562E0u); /* 0x36029B35: call 0x361562e0 */ /* not lifted */ 4781 RECOMP_FLAGS_IN(); 4782 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4783 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4784 esp = esp + 8; /* 0x36029B3A: add esp, 8 */ 4785 _flag_k = FK_ADD; 4786 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 4787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4788 esi = esi + 0x10u; /* 0x36029B3D: add esi, 0x10 */ 4789 _flag_k = FK_ADD; 4790 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4791 edi = edi - 1; /* 0x36029B40: dec edi */ 4792 _flag_k = FK_DEC; 4793 RECOMP_BACKEDGE(); 4794 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36029B33; /* 0x36029B41: jne 0x36029b33 */ 4795 L_36029B43: 4796 esi = POP32_VAL(esp); /* 0x36029B43: pop esi */ 4797 ebx = POP32_VAL(esp); /* 0x36029B44: pop ebx */ 4798 L_36029B45: 4799 edi = POP32_VAL(esp); /* 0x36029B45: pop edi */ 4800 ebp = POP32_VAL(esp); /* 0x36029B46: pop ebp */ 4801 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029B47: ret 0xc */ 4802 RECOMP_REGS_OUT(); 4803 } 4804 4805 void sub_36029B50(void) { 4806 int _fpu_cmp = 0; 4807 uint32_t _cf = 0; 4808 int _df = 1; 4809 uint32_t _flag_k = FK_NONE; 4810 uint32_t _flag_a = 0, _flag_b = 0; 4811 uint32_t _itail_tgt = 0; 4812 RECOMP_REGS_LOCALS 4813 RECOMP_ENTER(0x36029B50u); 4814 4815 L_36029B50: 4816 PUSH32(esp, ebp); /* 0x36029B50: push ebp */ 4817 ebp = esp; /* 0x36029B51: mov ebp, esp */ 4818 PUSH32(esp, ebx); /* 0x36029B53: push ebx */ 4819 ebx = MEM32(ebp + 0xC); /* 0x36029B54: mov ebx, dword ptr [ebp + 0xc] */ 4820 PUSH32(esp, esi); /* 0x36029B57: push esi */ 4821 esi = MEM32(ebp + 0x8); /* 0x36029B58: mov esi, dword ptr [ebp + 8] */ 4822 /* cmp esi, ebx */ /* 0x36029B5B: cmp esi, ebx */ 4823 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4825 _flag_k = FK_CMP; 4826 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029B80; /* 0x36029B5D: je 0x36029b80 */ 4827 L_36029B5F: 4828 PUSH32(esp, edi); /* 0x36029B5F: push edi */ 4829 edi = MEM32(ebp + 0x10); /* 0x36029B60: mov edi, dword ptr [ebp + 0x10] */ 4830 L_36029B63: 4831 PUSH32(esp, esi); /* 0x36029B63: push esi */ 4832 PUSH32(esp, edi); /* 0x36029B64: push edi */ 4833 RECOMP_ICALL(0x360180C0u); /* 0x36029B65: call 0x360180c0 */ /* not lifted */ 4834 RECOMP_FLAGS_IN(); 4835 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4836 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4837 esi = esi + 8; /* 0x36029B6A: add esi, 8 */ 4838 _flag_k = FK_ADD; 4839 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4841 esp = esp + 8; /* 0x36029B6D: add esp, 8 */ 4842 _flag_k = FK_ADD; 4843 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 4844 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4845 edi = edi + 8; /* 0x36029B70: add edi, 8 */ 4846 _flag_k = FK_ADD; 4847 /* cmp esi, ebx */ /* 0x36029B73: cmp esi, ebx */ 4848 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4850 _flag_k = FK_CMP; 4851 RECOMP_BACKEDGE(); 4852 if (CMP_NE(_flag_a, _flag_b)) goto L_36029B63; /* 0x36029B75: jne 0x36029b63 */ 4853 L_36029B77: 4854 eax = edi; /* 0x36029B77: mov eax, edi */ 4855 edi = POP32_VAL(esp); /* 0x36029B79: pop edi */ 4856 esi = POP32_VAL(esp); /* 0x36029B7A: pop esi */ 4857 ebx = POP32_VAL(esp); /* 0x36029B7B: pop ebx */ 4858 ebp = POP32_VAL(esp); /* 0x36029B7C: pop ebp */ 4859 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029B7D: ret 0xc */ 4860 L_36029B80: 4861 eax = MEM32(ebp + 0x10); /* 0x36029B80: mov eax, dword ptr [ebp + 0x10] */ 4862 esi = POP32_VAL(esp); /* 0x36029B83: pop esi */ 4863 ebx = POP32_VAL(esp); /* 0x36029B84: pop ebx */ 4864 ebp = POP32_VAL(esp); /* 0x36029B85: pop ebp */ 4865 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029B86: ret 0xc */ 4866 RECOMP_REGS_OUT(); 4867 } 4868 4869 void sub_36029B90(void) { 4870 int _fpu_cmp = 0; 4871 uint32_t _cf = 0; 4872 int _df = 1; 4873 uint32_t _flag_k = FK_NONE; 4874 uint32_t _flag_a = 0, _flag_b = 0; 4875 uint32_t _itail_tgt = 0; 4876 RECOMP_REGS_LOCALS 4877 RECOMP_ENTER(0x36029B90u); 4878 4879 L_36029B90: 4880 PUSH32(esp, ebp); /* 0x36029B90: push ebp */ 4881 ebp = esp; /* 0x36029B91: mov ebp, esp */ 4882 PUSH32(esp, edi); /* 0x36029B93: push edi */ 4883 edi = MEM32(ebp + 0xC); /* 0x36029B94: mov edi, dword ptr [ebp + 0xc] */ 4884 /* test edi, edi */ /* 0x36029B97: test edi, edi */ 4885 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4886 _cf = 0; 4887 _flag_k = FK_TEST; 4888 if (TEST_Z(_flag_a, _flag_b)) goto L_36029BB5; /* 0x36029B99: jbe 0x36029bb5 */ 4889 L_36029B9B: 4890 PUSH32(esp, ebx); /* 0x36029B9B: push ebx */ 4891 ebx = MEM32(ebp + 0x10); /* 0x36029B9C: mov ebx, dword ptr [ebp + 0x10] */ 4892 PUSH32(esp, esi); /* 0x36029B9F: push esi */ 4893 esi = MEM32(ebp + 0x8); /* 0x36029BA0: mov esi, dword ptr [ebp + 8] */ 4894 L_36029BA3: 4895 PUSH32(esp, ebx); /* 0x36029BA3: push ebx */ 4896 PUSH32(esp, esi); /* 0x36029BA4: push esi */ 4897 RECOMP_ICALL(0x360180C0u); /* 0x36029BA5: call 0x360180c0 */ /* not lifted */ 4898 RECOMP_FLAGS_IN(); 4899 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4900 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4901 esp = esp + 8; /* 0x36029BAA: add esp, 8 */ 4902 _flag_k = FK_ADD; 4903 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 4904 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4905 esi = esi + 8; /* 0x36029BAD: add esi, 8 */ 4906 _flag_k = FK_ADD; 4907 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 4908 edi = edi - 1; /* 0x36029BB0: dec edi */ 4909 _flag_k = FK_DEC; 4910 RECOMP_BACKEDGE(); 4911 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36029BA3; /* 0x36029BB1: jne 0x36029ba3 */ 4912 L_36029BB3: 4913 esi = POP32_VAL(esp); /* 0x36029BB3: pop esi */ 4914 ebx = POP32_VAL(esp); /* 0x36029BB4: pop ebx */ 4915 L_36029BB5: 4916 edi = POP32_VAL(esp); /* 0x36029BB5: pop edi */ 4917 ebp = POP32_VAL(esp); /* 0x36029BB6: pop ebp */ 4918 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36029BB7: ret 0xc */ 4919 RECOMP_REGS_OUT(); 4920 } 4921 4922 void sub_36029BC0(void) { 4923 int _fpu_cmp = 0; 4924 uint32_t _cf = 0; 4925 int _df = 1; 4926 uint32_t _flag_k = FK_NONE; 4927 uint32_t _flag_a = 0, _flag_b = 0; 4928 uint32_t _itail_tgt = 0; 4929 RECOMP_REGS_LOCALS 4930 RECOMP_ENTER(0x36029BC0u); 4931 4932 L_36029BC0: 4933 PUSH32(esp, ebp); /* 0x36029BC0: push ebp */ 4934 ebp = esp; /* 0x36029BC1: mov ebp, esp */ 4935 PUSH32(esp, 0xFFFFFFFFu); /* 0x36029BC3: push -1 */ 4936 PUSH32(esp, 0x36163661u); /* 0x36029BC5: push 0x36163661 */ 4937 eax = MEM32(FS_BASE + (0)); /* 0x36029BCA: mov eax, dword ptr fs:[0] */ 4938 PUSH32(esp, eax); /* 0x36029BD0: push eax */ 4939 MEM32(FS_BASE + (0)) = esp; /* 0x36029BD1: mov dword ptr fs:[0], esp */ 4940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4942 esp = esp - 8; /* 0x36029BD8: sub esp, 8 */ 4943 _flag_k = FK_CMP; 4944 PUSH32(esp, ebx); /* 0x36029BDB: push ebx */ 4945 ebx = MEM32(ebp + 0x8); /* 0x36029BDC: mov ebx, dword ptr [ebp + 8] */ 4946 MEM32(ebp + (-0x14)) = ebx; /* 0x36029BDF: mov dword ptr [ebp - 0x14], ebx */ 4947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4948 edx = 0; /* 0x36029BE2: xor edx, edx */ 4949 _cf = 0; 4950 _flag_k = FK_TEST; 4951 /* cmp ebx, edx */ /* 0x36029BE4: cmp ebx, edx */ 4952 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 4953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4954 _flag_k = FK_CMP; 4955 MEM32(ebp + (-0x4)) = edx; /* 0x36029BE6: mov dword ptr [ebp - 4], edx */ 4956 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029D3D; /* 0x36029BE9: je 0x36029d3d */ 4957 L_36029BEF: 4958 PUSH32(esp, esi); /* 0x36029BEF: push esi */ 4959 esi = MEM32(ebp + 0xC); /* 0x36029BF0: mov esi, dword ptr [ebp + 0xc] */ 4960 eax = MEM32(esi); /* 0x36029BF3: mov eax, dword ptr [esi] */ 4961 MEM32(ebx) = eax; /* 0x36029BF5: mov dword ptr [ebx], eax */ 4962 eax = esi + 0x4; /* 0x36029BF7: lea eax, [esi + 4] */ 4963 ecx = ebx + 0x4; /* 0x36029BFA: lea ecx, [ebx + 4] */ 4964 /* cmp ecx, eax */ /* 0x36029BFD: cmp ecx, eax */ 4965 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4967 _flag_k = FK_CMP; 4968 PUSH32(esp, edi); /* 0x36029BFF: push edi */ 4969 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029C0C; /* 0x36029C00: je 0x36029c0c */ 4970 L_36029C02: 4971 edi = MEM32(eax); /* 0x36029C02: mov edi, dword ptr [eax] */ 4972 MEM32(ecx) = edi; /* 0x36029C04: mov dword ptr [ecx], edi */ 4973 eax = MEM32(eax + 0x4); /* 0x36029C06: mov eax, dword ptr [eax + 4] */ 4974 MEM32(ecx + 0x4) = eax; /* 0x36029C09: mov dword ptr [ecx + 4], eax */ 4975 L_36029C0C: 4976 SET_LO8(ecx, MEM8(esi + 0xC)); /* 0x36029C0C: mov cl, byte ptr [esi + 0xc] */ 4977 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 4978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4979 esi = esi + 0xCu; /* 0x36029C0F: add esi, 0xc */ 4980 _flag_k = FK_ADD; 4981 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 4982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4983 ebx = ebx + 0xCu; /* 0x36029C12: add ebx, 0xc */ 4984 _flag_k = FK_ADD; 4985 MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x36029C15: mov byte ptr [ebx], cl */ 4986 MEM32(ebx + 0x4) = edx; /* 0x36029C17: mov dword ptr [ebx + 4], edx */ 4987 MEM32(ebx + 0x8) = edx; /* 0x36029C1A: mov dword ptr [ebx + 8], edx */ 4988 MEM32(ebx + 0xC) = edx; /* 0x36029C1D: mov dword ptr [ebx + 0xc], edx */ 4989 eax = MEM32(0x3616F010); /* 0x36029C20: mov eax, dword ptr [0x3616f010] */ 4990 ecx = MEM32(esi + 0x8); /* 0x36029C25: mov ecx, dword ptr [esi + 8] */ 4991 eax = MEM32(eax); /* 0x36029C28: mov eax, dword ptr [eax] */ 4992 edi = ecx; /* 0x36029C2A: mov edi, ecx */ 4993 /* cmp eax, edi */ /* 0x36029C2C: cmp eax, edi */ 4994 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4996 _flag_k = FK_CMP; 4997 MEM32(ebp + (-0x10)) = edi; /* 0x36029C2E: mov dword ptr [ebp - 0x10], edi */ 4998 if (CMP_AE(_flag_a, _flag_b)) goto L_36029C38; /* 0x36029C31: jae 0x36029c38 */ 4999 L_36029C33: 5000 MEM32(ebp + (-0x10)) = eax; /* 0x36029C33: mov dword ptr [ebp - 0x10], eax */ 5001 edi = eax; /* 0x36029C36: mov edi, eax */ 5002 L_36029C38: 5003 /* cmp ebx, esi */ /* 0x36029C38: cmp ebx, esi */ 5004 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 5005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5006 _flag_k = FK_CMP; 5007 if (CMP_NE(_flag_a, _flag_b)) goto L_36029CA9; /* 0x36029C3A: jne 0x36029ca9 */ 5008 L_36029C3C: 5009 /* cmp edi, edx */ /* 0x36029C3C: cmp edi, edx */ 5010 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 5011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5012 _flag_k = FK_CMP; 5013 esi = eax; /* 0x36029C3E: mov esi, eax */ 5014 if (CMP_BE(_flag_a, _flag_b)) goto L_36029C48; /* 0x36029C40: jbe 0x36029c48 */ 5015 L_36029C42: 5016 RECOMP_ICALL(MEM32(0x3616F04C)); /* 0x36029C42: call dword ptr [0x3616f04c] */ 5017 RECOMP_FLAGS_IN(); 5018 L_36029C48: 5019 eax = MEM32(ebx + 0x8); /* 0x36029C48: mov eax, dword ptr [ebx + 8] */ 5020 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5021 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5022 eax = eax - edi; /* 0x36029C4B: sub eax, edi */ 5023 _flag_k = FK_CMP; 5024 /* cmp eax, esi */ /* 0x36029C4D: cmp eax, esi */ 5025 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 5026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5027 _flag_k = FK_CMP; 5028 if (CMP_AE(_flag_a, _flag_b)) goto L_36029C53; /* 0x36029C4F: jae 0x36029c53 */ 5029 L_36029C51: 5030 esi = eax; /* 0x36029C51: mov esi, eax */ 5031 L_36029C53: 5032 /* test esi, esi */ /* 0x36029C53: test esi, esi */ 5033 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5034 _cf = 0; 5035 _flag_k = FK_TEST; 5036 if (TEST_Z(_flag_a, _flag_b)) goto L_36029C98; /* 0x36029C55: jbe 0x36029c98 */ 5037 L_36029C57: 5038 ecx = ebx; /* 0x36029C57: mov ecx, ebx */ 5039 RECOMP_ICALL(MEM32(0x3616F03C)); /* 0x36029C59: call dword ptr [0x3616f03c] */ 5040 RECOMP_FLAGS_IN(); 5041 edx = MEM32(ebx + 0x8); /* 0x36029C5F: mov edx, dword ptr [ebx + 8] */ 5042 ecx = MEM32(ebx + 0x4); /* 0x36029C62: mov ecx, dword ptr [ebx + 4] */ 5043 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 5044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5045 edx = edx - esi; /* 0x36029C65: sub edx, esi */ 5046 _flag_k = FK_CMP; 5047 eax = edi + ecx; /* 0x36029C67: lea eax, [edi + ecx] */ 5048 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5050 edx = edx - edi; /* 0x36029C6A: sub edx, edi */ 5051 _flag_k = FK_CMP; 5052 PUSH32(esp, edx); /* 0x36029C6C: push edx */ 5053 ecx = eax + esi; /* 0x36029C6D: lea ecx, [eax + esi] */ 5054 PUSH32(esp, ecx); /* 0x36029C70: push ecx */ 5055 PUSH32(esp, eax); /* 0x36029C71: push eax */ 5056 RECOMP_ICALL(MEM32(0x3616F268)); /* 0x36029C72: call dword ptr [0x3616f268] */ 5057 RECOMP_FLAGS_IN(); 5058 edi = MEM32(ebx + 0x8); /* 0x36029C78: mov edi, dword ptr [ebx + 8] */ 5059 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5060 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5061 esp = esp + 0xCu; /* 0x36029C7B: add esp, 0xc */ 5062 _flag_k = FK_ADD; 5063 PUSH32(esp, 0); /* 0x36029C7E: push 0 */ 5064 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5065 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5066 edi = edi - esi; /* 0x36029C80: sub edi, esi */ 5067 _flag_k = FK_CMP; 5068 PUSH32(esp, edi); /* 0x36029C82: push edi */ 5069 ecx = ebx; /* 0x36029C83: mov ecx, ebx */ 5070 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36029C85: call dword ptr [0x3616f00c] */ 5071 RECOMP_FLAGS_IN(); 5072 /* test LO8(eax), LO8(eax) */ /* 0x36029C8B: test al, al */ 5073 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5074 _cf = 0; 5075 _flag_k = FK_NARROW(FK_TEST, 24); 5076 if (TEST_Z(_flag_a, _flag_b)) goto L_36029C98; /* 0x36029C8D: je 0x36029c98 */ 5077 L_36029C8F: 5078 PUSH32(esp, edi); /* 0x36029C8F: push edi */ 5079 ecx = ebx; /* 0x36029C90: mov ecx, ebx */ 5080 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36029C92: call dword ptr [0x3616f044] */ 5081 RECOMP_FLAGS_IN(); 5082 L_36029C98: 5083 PUSH32(esp, 0); /* 0x36029C98: push 0 */ 5084 PUSH32(esp, 0); /* 0x36029C9A: push 0 */ 5085 ecx = ebx; /* 0x36029C9C: mov ecx, ebx */ 5086 RECOMP_ICALL(MEM32(0x3616F15C)); /* 0x36029C9E: call dword ptr [0x3616f15c] */ 5087 RECOMP_FLAGS_IN(); 5088 goto L_36029D29; /* 0x36029CA4: jmp 0x36029d29 */ 5089 L_36029CA9: 5090 /* cmp edi, edx */ /* 0x36029CA9: cmp edi, edx */ 5091 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 5092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5093 _flag_k = FK_CMP; 5094 if (CMP_BE(_flag_a, _flag_b)) goto L_36029CED; /* 0x36029CAB: jbe 0x36029ced */ 5095 L_36029CAD: 5096 /* cmp edi, ecx */ /* 0x36029CAD: cmp edi, ecx */ 5097 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 5098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5099 _flag_k = FK_CMP; 5100 if (CMP_NE(_flag_a, _flag_b)) goto L_36029CED; /* 0x36029CAF: jne 0x36029ced */ 5101 L_36029CB1: 5102 eax = MEM32(esi + 0x4); /* 0x36029CB1: mov eax, dword ptr [esi + 4] */ 5103 /* cmp eax, edx */ /* 0x36029CB4: cmp eax, edx */ 5104 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 5105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5106 _flag_k = FK_CMP; 5107 if (CMP_NE(_flag_a, _flag_b)) goto L_36029CBD; /* 0x36029CB6: jne 0x36029cbd */ 5108 L_36029CB8: 5109 eax = MEM32(0x3616F10C); /* 0x36029CB8: mov eax, dword ptr [0x3616f10c] */ 5110 L_36029CBD: 5111 /* cmp MEM8(eax + (-0x1)), 0xFEu */ /* 0x36029CBD: cmp byte ptr [eax - 1], 0xfe */ 5112 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 5113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5114 _flag_k = FK_NARROW(FK_CMP, 24); 5115 if (CMP_AE(_flag_a, _flag_b)) goto L_36029CED; /* 0x36029CC1: jae 0x36029ced */ 5116 L_36029CC3: 5117 PUSH32(esp, 1); /* 0x36029CC3: push 1 */ 5118 ecx = ebx; /* 0x36029CC5: mov ecx, ebx */ 5119 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36029CC7: call dword ptr [0x3616f100] */ 5120 RECOMP_FLAGS_IN(); 5121 eax = MEM32(esi + 0x4); /* 0x36029CCD: mov eax, dword ptr [esi + 4] */ 5122 /* test eax, eax */ /* 0x36029CD0: test eax, eax */ 5123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5124 _cf = 0; 5125 _flag_k = FK_TEST; 5126 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029CD9; /* 0x36029CD2: jne 0x36029cd9 */ 5127 L_36029CD4: 5128 eax = MEM32(0x3616F10C); /* 0x36029CD4: mov eax, dword ptr [0x3616f10c] */ 5129 L_36029CD9: 5130 MEM32(ebx + 0x4) = eax; /* 0x36029CD9: mov dword ptr [ebx + 4], eax */ 5131 edx = MEM32(esi + 0x8); /* 0x36029CDC: mov edx, dword ptr [esi + 8] */ 5132 MEM32(ebx + 0x8) = edx; /* 0x36029CDF: mov dword ptr [ebx + 8], edx */ 5133 ecx = MEM32(esi + 0xC); /* 0x36029CE2: mov ecx, dword ptr [esi + 0xc] */ 5134 MEM32(ebx + 0xC) = ecx; /* 0x36029CE5: mov dword ptr [ebx + 0xc], ecx */ 5135 _flag_a = (uint32_t)(MEM8(eax + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 5136 MEM8(eax + (-0x1)) = (uint8_t)(MEM8(eax + (-0x1)) + 1); /* 0x36029CE8: inc byte ptr [eax - 1] */ 5137 _flag_k = FK_NARROW(FK_INC, 24); 5138 goto L_36029D29; /* 0x36029CEB: jmp 0x36029d29 */ 5139 L_36029CED: 5140 PUSH32(esp, 1); /* 0x36029CED: push 1 */ 5141 PUSH32(esp, edi); /* 0x36029CEF: push edi */ 5142 ecx = ebx; /* 0x36029CF0: mov ecx, ebx */ 5143 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36029CF2: call dword ptr [0x3616f00c] */ 5144 RECOMP_FLAGS_IN(); 5145 /* test LO8(eax), LO8(eax) */ /* 0x36029CF8: test al, al */ 5146 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5147 _cf = 0; 5148 _flag_k = FK_NARROW(FK_TEST, 24); 5149 if (TEST_Z(_flag_a, _flag_b)) goto L_36029D29; /* 0x36029CFA: je 0x36029d29 */ 5150 L_36029CFC: 5151 esi = MEM32(esi + 0x4); /* 0x36029CFC: mov esi, dword ptr [esi + 4] */ 5152 /* test esi, esi */ /* 0x36029CFF: test esi, esi */ 5153 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5154 _cf = 0; 5155 _flag_k = FK_TEST; 5156 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029D09; /* 0x36029D01: jne 0x36029d09 */ 5157 L_36029D03: 5158 esi = MEM32(0x3616F10C); /* 0x36029D03: mov esi, dword ptr [0x3616f10c] */ 5159 L_36029D09: 5160 eax = MEM32(ebp + (-0x10)); /* 0x36029D09: mov eax, dword ptr [ebp - 0x10] */ 5161 ecx = edi; /* 0x36029D0C: mov ecx, edi */ 5162 edi = MEM32(ebx + 0x4); /* 0x36029D0E: mov edi, dword ptr [ebx + 4] */ 5163 edx = ecx; /* 0x36029D11: mov edx, ecx */ 5164 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36029D13: shr ecx, 2 */ 5165 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5166 ecx = ecx >> 2u; /* 0x36029D13: shr ecx, 2 */ 5167 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36029D16: 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; } 5168 ecx = edx; /* 0x36029D18: mov ecx, edx */ 5169 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5170 ecx = ecx & 3; /* 0x36029D1A: and ecx, 3 */ 5171 _cf = 0; 5172 _flag_k = FK_TEST; 5173 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36029D1D: 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; } 5174 ecx = MEM32(ebx + 0x4); /* 0x36029D1F: mov ecx, dword ptr [ebx + 4] */ 5175 MEM32(ebx + 0x8) = eax; /* 0x36029D22: mov dword ptr [ebx + 8], eax */ 5176 MEM8(eax + ecx) = (uint8_t)(0); /* 0x36029D25: mov byte ptr [eax + ecx], 0 */ 5177 L_36029D29: 5178 eax = MEM32(ebp + 0xC); /* 0x36029D29: mov eax, dword ptr [ebp + 0xc] */ 5179 edx = MEM32(eax + 0x1C); /* 0x36029D2C: mov edx, dword ptr [eax + 0x1c] */ 5180 ecx = MEM32(ebp + 0x8); /* 0x36029D2F: mov ecx, dword ptr [ebp + 8] */ 5181 MEM32(ecx + 0x1C) = edx; /* 0x36029D32: mov dword ptr [ecx + 0x1c], edx */ 5182 eax = MEM32(eax + 0x20); /* 0x36029D35: mov eax, dword ptr [eax + 0x20] */ 5183 edi = POP32_VAL(esp); /* 0x36029D38: pop edi */ 5184 MEM32(ecx + 0x20) = eax; /* 0x36029D39: mov dword ptr [ecx + 0x20], eax */ 5185 esi = POP32_VAL(esp); /* 0x36029D3C: pop esi */ 5186 L_36029D3D: 5187 ecx = MEM32(ebp + (-0xC)); /* 0x36029D3D: mov ecx, dword ptr [ebp - 0xc] */ 5188 ebx = POP32_VAL(esp); /* 0x36029D40: pop ebx */ 5189 MEM32(FS_BASE + (0)) = ecx; /* 0x36029D41: mov dword ptr fs:[0], ecx */ 5190 esp = ebp; /* 0x36029D48: mov esp, ebp */ 5191 ebp = POP32_VAL(esp); /* 0x36029D4A: pop ebp */ 5192 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029D4B: ret */ 5193 RECOMP_REGS_OUT(); 5194 } 5195 5196 void sub_36029D29(void) { 5197 int _fpu_cmp = 0; 5198 uint32_t _cf = 0; 5199 int _df = 1; 5200 uint32_t _flag_k = FK_NONE; 5201 uint32_t _flag_a = 0, _flag_b = 0; 5202 uint32_t _itail_tgt = 0; 5203 RECOMP_REGS_LOCALS 5204 RECOMP_ENTER(0x36029D29u); 5205 5206 L_36029D29: 5207 eax = MEM32(ebp + 0xC); /* 0x36029D29: mov eax, dword ptr [ebp + 0xc] */ 5208 edx = MEM32(eax + 0x1C); /* 0x36029D2C: mov edx, dword ptr [eax + 0x1c] */ 5209 ecx = MEM32(ebp + 0x8); /* 0x36029D2F: mov ecx, dword ptr [ebp + 8] */ 5210 MEM32(ecx + 0x1C) = edx; /* 0x36029D32: mov dword ptr [ecx + 0x1c], edx */ 5211 eax = MEM32(eax + 0x20); /* 0x36029D35: mov eax, dword ptr [eax + 0x20] */ 5212 edi = POP32_VAL(esp); /* 0x36029D38: pop edi */ 5213 MEM32(ecx + 0x20) = eax; /* 0x36029D39: mov dword ptr [ecx + 0x20], eax */ 5214 esi = POP32_VAL(esp); /* 0x36029D3C: pop esi */ 5215 ecx = MEM32(ebp + (-0xC)); /* 0x36029D3D: mov ecx, dword ptr [ebp - 0xc] */ 5216 ebx = POP32_VAL(esp); /* 0x36029D40: pop ebx */ 5217 MEM32(FS_BASE + (0)) = ecx; /* 0x36029D41: mov dword ptr fs:[0], ecx */ 5218 esp = ebp; /* 0x36029D48: mov esp, ebp */ 5219 ebp = POP32_VAL(esp); /* 0x36029D4A: pop ebp */ 5220 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029D4B: ret */ 5221 RECOMP_REGS_OUT(); 5222 } 5223 5224 void sub_36029D50(void) { 5225 int _fpu_cmp = 0; 5226 uint32_t _cf = 0; 5227 int _df = 1; 5228 uint32_t _flag_k = FK_NONE; 5229 uint32_t _flag_a = 0, _flag_b = 0; 5230 uint32_t _itail_tgt = 0; 5231 RECOMP_REGS_LOCALS 5232 RECOMP_ENTER(0x36029D50u); 5233 5234 L_36029D50: 5235 PUSH32(esp, ebp); /* 0x36029D50: push ebp */ 5236 ebp = esp; /* 0x36029D51: mov ebp, esp */ 5237 eax = MEM32(ebp + 0x8); /* 0x36029D53: mov eax, dword ptr [ebp + 8] */ 5238 /* test eax, eax */ /* 0x36029D56: test eax, eax */ 5239 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5240 _cf = 0; 5241 _flag_k = FK_TEST; 5242 if (TEST_Z(_flag_a, _flag_b)) goto L_36029DB9; /* 0x36029D58: je 0x36029db9 */ 5243 L_36029D5A: 5244 ecx = MEM32(ebp + 0xC); /* 0x36029D5A: mov ecx, dword ptr [ebp + 0xc] */ 5245 /* cmp eax, ecx */ /* 0x36029D5D: cmp eax, ecx */ 5246 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5248 _flag_k = FK_CMP; 5249 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029D6B; /* 0x36029D5F: je 0x36029d6b */ 5250 L_36029D61: 5251 edx = MEM32(ecx); /* 0x36029D61: mov edx, dword ptr [ecx] */ 5252 MEM32(eax) = edx; /* 0x36029D63: mov dword ptr [eax], edx */ 5253 edx = MEM32(ecx + 0x4); /* 0x36029D65: mov edx, dword ptr [ecx + 4] */ 5254 MEM32(eax + 0x4) = edx; /* 0x36029D68: mov dword ptr [eax + 4], edx */ 5255 L_36029D6B: 5256 PUSH32(esp, esi); /* 0x36029D6B: push esi */ 5257 PUSH32(esp, edi); /* 0x36029D6C: push edi */ 5258 edx = ecx + 0x8; /* 0x36029D6D: lea edx, [ecx + 8] */ 5259 edi = MEM32(edx); /* 0x36029D70: mov edi, dword ptr [edx] */ 5260 esi = eax + 0x8; /* 0x36029D72: lea esi, [eax + 8] */ 5261 MEM32(esi) = edi; /* 0x36029D75: mov dword ptr [esi], edi */ 5262 edi = MEM32(edx + 0x4); /* 0x36029D77: mov edi, dword ptr [edx + 4] */ 5263 MEM32(esi + 0x4) = edi; /* 0x36029D7A: mov dword ptr [esi + 4], edi */ 5264 edx = MEM32(edx + 0x8); /* 0x36029D7D: mov edx, dword ptr [edx + 8] */ 5265 MEM32(esi + 0x8) = edx; /* 0x36029D80: mov dword ptr [esi + 8], edx */ 5266 edx = ecx + 0x14; /* 0x36029D83: lea edx, [ecx + 0x14] */ 5267 edi = MEM32(edx); /* 0x36029D86: mov edi, dword ptr [edx] */ 5268 esi = eax + 0x14; /* 0x36029D88: lea esi, [eax + 0x14] */ 5269 MEM32(esi) = edi; /* 0x36029D8B: mov dword ptr [esi], edi */ 5270 edi = MEM32(edx + 0x4); /* 0x36029D8D: mov edi, dword ptr [edx + 4] */ 5271 MEM32(esi + 0x4) = edi; /* 0x36029D90: mov dword ptr [esi + 4], edi */ 5272 edi = MEM32(edx + 0x8); /* 0x36029D93: mov edi, dword ptr [edx + 8] */ 5273 MEM32(esi + 0x8) = edi; /* 0x36029D96: mov dword ptr [esi + 8], edi */ 5274 edx = MEM32(edx + 0xC); /* 0x36029D99: mov edx, dword ptr [edx + 0xc] */ 5275 MEM32(esi + 0xC) = edx; /* 0x36029D9C: mov dword ptr [esi + 0xc], edx */ 5276 edx = MEM32(ecx + 0x24); /* 0x36029D9F: mov edx, dword ptr [ecx + 0x24] */ 5277 MEM32(eax + 0x24) = edx; /* 0x36029DA2: mov dword ptr [eax + 0x24], edx */ 5278 edx = MEM32(ecx + 0x28); /* 0x36029DA5: mov edx, dword ptr [ecx + 0x28] */ 5279 MEM32(eax + 0x28) = edx; /* 0x36029DA8: mov dword ptr [eax + 0x28], edx */ 5280 edx = MEM32(ecx + 0x2C); /* 0x36029DAB: mov edx, dword ptr [ecx + 0x2c] */ 5281 MEM32(eax + 0x2C) = edx; /* 0x36029DAE: mov dword ptr [eax + 0x2c], edx */ 5282 ecx = MEM32(ecx + 0x30); /* 0x36029DB1: mov ecx, dword ptr [ecx + 0x30] */ 5283 edi = POP32_VAL(esp); /* 0x36029DB4: pop edi */ 5284 MEM32(eax + 0x30) = ecx; /* 0x36029DB5: mov dword ptr [eax + 0x30], ecx */ 5285 esi = POP32_VAL(esp); /* 0x36029DB8: pop esi */ 5286 L_36029DB9: 5287 ebp = POP32_VAL(esp); /* 0x36029DB9: pop ebp */ 5288 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029DBA: ret */ 5289 RECOMP_REGS_OUT(); 5290 } 5291 5292 void sub_36029DC0(void) { 5293 int _fpu_cmp = 0; 5294 uint32_t _cf = 0; 5295 int _df = 1; 5296 uint32_t _flag_k = FK_NONE; 5297 uint32_t _flag_a = 0, _flag_b = 0; 5298 uint32_t _itail_tgt = 0; 5299 RECOMP_REGS_LOCALS 5300 RECOMP_ENTER(0x36029DC0u); 5301 5302 L_36029DC0: 5303 PUSH32(esp, ebp); /* 0x36029DC0: push ebp */ 5304 ebp = esp; /* 0x36029DC1: mov ebp, esp */ 5305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5307 esp = esp - 8; /* 0x36029DC3: sub esp, 8 */ 5308 _flag_k = FK_CMP; 5309 eax = ecx; /* 0x36029DC6: mov eax, ecx */ 5310 PUSH32(esp, ebx); /* 0x36029DC8: push ebx */ 5311 PUSH32(esp, esi); /* 0x36029DC9: push esi */ 5312 esi = MEM32(ebp + 0x8); /* 0x36029DCA: mov esi, dword ptr [ebp + 8] */ 5313 ecx = MEM32(esi); /* 0x36029DCD: mov ecx, dword ptr [esi] */ 5314 MEM32(eax) = ecx; /* 0x36029DCF: mov dword ptr [eax], ecx */ 5315 edx = MEM32(esi + 0x4); /* 0x36029DD1: mov edx, dword ptr [esi + 4] */ 5316 MEM32(eax + 0x4) = edx; /* 0x36029DD4: mov dword ptr [eax + 4], edx */ 5317 ecx = MEM32(esi + 0x8); /* 0x36029DD7: mov ecx, dword ptr [esi + 8] */ 5318 MEM32(eax + 0x8) = ecx; /* 0x36029DDA: mov dword ptr [eax + 8], ecx */ 5319 edx = MEM32(0x3616F010); /* 0x36029DDD: mov edx, dword ptr [0x3616f010] */ 5320 ecx = MEM32(esi + 0x14); /* 0x36029DE3: mov ecx, dword ptr [esi + 0x14] */ 5321 edx = MEM32(edx); /* 0x36029DE6: mov edx, dword ptr [edx] */ 5322 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 5323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5324 esi = esi + 0xCu; /* 0x36029DE8: add esi, 0xc */ 5325 _flag_k = FK_ADD; 5326 PUSH32(esp, edi); /* 0x36029DEB: push edi */ 5327 edi = ecx; /* 0x36029DEC: mov edi, ecx */ 5328 /* cmp edx, edi */ /* 0x36029DEE: cmp edx, edi */ 5329 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 5330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5331 _flag_k = FK_CMP; 5332 MEM32(ebp + (-0x4)) = eax; /* 0x36029DF0: mov dword ptr [ebp - 4], eax */ 5333 ebx = eax + 0xC; /* 0x36029DF3: lea ebx, [eax + 0xc] */ 5334 MEM32(ebp + (-0x8)) = edi; /* 0x36029DF6: mov dword ptr [ebp - 8], edi */ 5335 if (CMP_AE(_flag_a, _flag_b)) goto L_36029E00; /* 0x36029DF9: jae 0x36029e00 */ 5336 L_36029DFB: 5337 MEM32(ebp + (-0x8)) = edx; /* 0x36029DFB: mov dword ptr [ebp - 8], edx */ 5338 edi = edx; /* 0x36029DFE: mov edi, edx */ 5339 L_36029E00: 5340 /* cmp ebx, esi */ /* 0x36029E00: cmp ebx, esi */ 5341 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 5342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5343 _flag_k = FK_CMP; 5344 if (CMP_NE(_flag_a, _flag_b)) goto L_36029E70; /* 0x36029E02: jne 0x36029e70 */ 5345 L_36029E04: 5346 /* cmp MEM32(ebx + 0x8), edi */ /* 0x36029E04: cmp dword ptr [ebx + 8], edi */ 5347 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(edi); 5348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5349 _flag_k = FK_CMP; 5350 esi = edx; /* 0x36029E07: mov esi, edx */ 5351 if (CMP_AE(_flag_a, _flag_b)) goto L_36029E14; /* 0x36029E09: jae 0x36029e14 */ 5352 L_36029E0B: 5353 RECOMP_ICALL(MEM32(0x3616F04C)); /* 0x36029E0B: call dword ptr [0x3616f04c] */ 5354 RECOMP_FLAGS_IN(); 5355 eax = MEM32(ebp + (-0x4)); /* 0x36029E11: mov eax, dword ptr [ebp - 4] */ 5356 L_36029E14: 5357 ecx = MEM32(ebx + 0x8); /* 0x36029E14: mov ecx, dword ptr [ebx + 8] */ 5358 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5359 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5360 ecx = ecx - edi; /* 0x36029E17: sub ecx, edi */ 5361 _flag_k = FK_CMP; 5362 /* cmp ecx, esi */ /* 0x36029E19: cmp ecx, esi */ 5363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 5364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5365 _flag_k = FK_CMP; 5366 if (CMP_AE(_flag_a, _flag_b)) goto L_36029E1F; /* 0x36029E1B: jae 0x36029e1f */ 5367 L_36029E1D: 5368 esi = ecx; /* 0x36029E1D: mov esi, ecx */ 5369 L_36029E1F: 5370 /* test esi, esi */ /* 0x36029E1F: test esi, esi */ 5371 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5372 _cf = 0; 5373 _flag_k = FK_TEST; 5374 if (TEST_Z(_flag_a, _flag_b)) goto L_36029F1F; /* 0x36029E21: jbe 0x36029f1f */ 5375 L_36029E27: 5376 ecx = ebx; /* 0x36029E27: mov ecx, ebx */ 5377 RECOMP_ICALL(MEM32(0x3616F03C)); /* 0x36029E29: call dword ptr [0x3616f03c] */ 5378 RECOMP_FLAGS_IN(); 5379 ecx = MEM32(ebx + 0x8); /* 0x36029E2F: mov ecx, dword ptr [ebx + 8] */ 5380 eax = MEM32(ebx + 0x4); /* 0x36029E32: mov eax, dword ptr [ebx + 4] */ 5381 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 5382 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5383 ecx = ecx - esi; /* 0x36029E35: sub ecx, esi */ 5384 _flag_k = FK_CMP; 5385 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5387 eax = eax + edi; /* 0x36029E37: add eax, edi */ 5388 _flag_k = FK_ADD; 5389 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5391 ecx = ecx - edi; /* 0x36029E39: sub ecx, edi */ 5392 _flag_k = FK_CMP; 5393 PUSH32(esp, ecx); /* 0x36029E3B: push ecx */ 5394 edx = eax + esi; /* 0x36029E3C: lea edx, [eax + esi] */ 5395 PUSH32(esp, edx); /* 0x36029E3F: push edx */ 5396 PUSH32(esp, eax); /* 0x36029E40: push eax */ 5397 RECOMP_ICALL(MEM32(0x3616F268)); /* 0x36029E41: call dword ptr [0x3616f268] */ 5398 RECOMP_FLAGS_IN(); 5399 edi = MEM32(ebx + 0x8); /* 0x36029E47: mov edi, dword ptr [ebx + 8] */ 5400 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5402 esp = esp + 0xCu; /* 0x36029E4A: add esp, 0xc */ 5403 _flag_k = FK_ADD; 5404 PUSH32(esp, 0); /* 0x36029E4D: push 0 */ 5405 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 5406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5407 edi = edi - esi; /* 0x36029E4F: sub edi, esi */ 5408 _flag_k = FK_CMP; 5409 PUSH32(esp, edi); /* 0x36029E51: push edi */ 5410 ecx = ebx; /* 0x36029E52: mov ecx, ebx */ 5411 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36029E54: call dword ptr [0x3616f00c] */ 5412 RECOMP_FLAGS_IN(); 5413 /* test LO8(eax), LO8(eax) */ /* 0x36029E5A: test al, al */ 5414 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5415 _cf = 0; 5416 _flag_k = FK_NARROW(FK_TEST, 24); 5417 if (TEST_Z(_flag_a, _flag_b)) goto L_36029F1C; /* 0x36029E5C: je 0x36029f1c */ 5418 L_36029E62: 5419 PUSH32(esp, edi); /* 0x36029E62: push edi */ 5420 ecx = ebx; /* 0x36029E63: mov ecx, ebx */ 5421 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x36029E65: call dword ptr [0x3616f044] */ 5422 RECOMP_FLAGS_IN(); 5423 goto L_36029F1C; /* 0x36029E6B: jmp 0x36029f1c */ 5424 L_36029E70: 5425 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5426 edx = 0; /* 0x36029E70: xor edx, edx */ 5427 _cf = 0; 5428 _flag_k = FK_TEST; 5429 /* cmp edi, edx */ /* 0x36029E72: cmp edi, edx */ 5430 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 5431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5432 _flag_k = FK_CMP; 5433 if (CMP_BE(_flag_a, _flag_b)) goto L_36029EE0; /* 0x36029E74: jbe 0x36029ee0 */ 5434 L_36029E76: 5435 /* cmp edi, ecx */ /* 0x36029E76: cmp edi, ecx */ 5436 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 5437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5438 _flag_k = FK_CMP; 5439 if (CMP_NE(_flag_a, _flag_b)) goto L_36029EE0; /* 0x36029E78: jne 0x36029ee0 */ 5440 L_36029E7A: 5441 ecx = MEM32(esi + 0x4); /* 0x36029E7A: mov ecx, dword ptr [esi + 4] */ 5442 /* cmp ecx, edx */ /* 0x36029E7D: cmp ecx, edx */ 5443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5445 _flag_k = FK_CMP; 5446 if (CMP_NE(_flag_a, _flag_b)) goto L_36029E87; /* 0x36029E7F: jne 0x36029e87 */ 5447 L_36029E81: 5448 ecx = MEM32(0x3616F10C); /* 0x36029E81: mov ecx, dword ptr [0x3616f10c] */ 5449 L_36029E87: 5450 /* cmp MEM8(ecx + (-0x1)), 0xFEu */ /* 0x36029E87: cmp byte ptr [ecx - 1], 0xfe */ 5451 _flag_a = (uint32_t)(MEM8(ecx + (-0x1))) << 24; _flag_b = (uint32_t)(0xFEu) << 24; 5452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5453 _flag_k = FK_NARROW(FK_CMP, 24); 5454 if (CMP_AE(_flag_a, _flag_b)) goto L_36029EE0; /* 0x36029E8B: jae 0x36029ee0 */ 5455 L_36029E8D: 5456 ecx = MEM32(ebx + 0x4); /* 0x36029E8D: mov ecx, dword ptr [ebx + 4] */ 5457 /* cmp ecx, edx */ /* 0x36029E90: cmp ecx, edx */ 5458 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5460 _flag_k = FK_CMP; 5461 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029EB6; /* 0x36029E92: je 0x36029eb6 */ 5462 L_36029E94: 5463 edi = ecx + (-0x1); /* 0x36029E94: lea edi, [ecx - 1] */ 5464 SET_LO8(ecx, MEM8(edi)); /* 0x36029E97: mov cl, byte ptr [edi] */ 5465 /* test LO8(ecx), LO8(ecx) */ /* 0x36029E99: test cl, cl */ 5466 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 5467 _cf = 0; 5468 _flag_k = FK_NARROW(FK_TEST, 24); 5469 if (TEST_Z(_flag_a, _flag_b)) goto L_36029EA8; /* 0x36029E9B: je 0x36029ea8 */ 5470 L_36029E9D: 5471 /* cmp LO8(ecx), 0xFFu */ /* 0x36029E9D: cmp cl, 0xff */ 5472 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 5473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5474 _flag_k = FK_NARROW(FK_CMP, 24); 5475 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029EA8; /* 0x36029EA0: je 0x36029ea8 */ 5476 L_36029EA2: 5477 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(1) << 24; 5478 SET_LO8(ecx, LO8(ecx) - 1); /* 0x36029EA2: dec cl */ 5479 _flag_k = FK_NARROW(FK_DEC, 24); 5480 MEM8(edi) = (uint8_t)(LO8(ecx)); /* 0x36029EA4: mov byte ptr [edi], cl */ 5481 goto L_36029EB6; /* 0x36029EA6: jmp 0x36029eb6 */ 5482 L_36029EA8: 5483 PUSH32(esp, edi); /* 0x36029EA8: push edi */ 5484 RECOMP_ICALL(0x3615FCC4u); /* 0x36029EA9: call 0x3615fcc4 */ /* not lifted */ 5485 RECOMP_FLAGS_IN(); 5486 eax = MEM32(ebp + (-0x4)); /* 0x36029EAE: mov eax, dword ptr [ebp - 4] */ 5487 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5489 esp = esp + 4; /* 0x36029EB1: add esp, 4 */ 5490 _flag_k = FK_ADD; 5491 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5492 edx = 0; /* 0x36029EB4: xor edx, edx */ 5493 _cf = 0; 5494 _flag_k = FK_TEST; 5495 L_36029EB6: 5496 MEM32(ebx + 0x4) = edx; /* 0x36029EB6: mov dword ptr [ebx + 4], edx */ 5497 MEM32(ebx + 0x8) = edx; /* 0x36029EB9: mov dword ptr [ebx + 8], edx */ 5498 MEM32(ebx + 0xC) = edx; /* 0x36029EBC: mov dword ptr [ebx + 0xc], edx */ 5499 ecx = MEM32(esi + 0x4); /* 0x36029EBF: mov ecx, dword ptr [esi + 4] */ 5500 /* cmp ecx, edx */ /* 0x36029EC2: cmp ecx, edx */ 5501 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 5502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5503 _flag_k = FK_CMP; 5504 if (CMP_NE(_flag_a, _flag_b)) goto L_36029ECC; /* 0x36029EC4: jne 0x36029ecc */ 5505 L_36029EC6: 5506 ecx = MEM32(0x3616F10C); /* 0x36029EC6: mov ecx, dword ptr [0x3616f10c] */ 5507 L_36029ECC: 5508 MEM32(ebx + 0x4) = ecx; /* 0x36029ECC: mov dword ptr [ebx + 4], ecx */ 5509 edx = MEM32(esi + 0x8); /* 0x36029ECF: mov edx, dword ptr [esi + 8] */ 5510 MEM32(ebx + 0x8) = edx; /* 0x36029ED2: mov dword ptr [ebx + 8], edx */ 5511 edx = MEM32(esi + 0xC); /* 0x36029ED5: mov edx, dword ptr [esi + 0xc] */ 5512 MEM32(ebx + 0xC) = edx; /* 0x36029ED8: mov dword ptr [ebx + 0xc], edx */ 5513 _flag_a = (uint32_t)(MEM8(ecx + (-0x1))) << 24; _flag_b = (uint32_t)(1) << 24; 5514 MEM8(ecx + (-0x1)) = (uint8_t)(MEM8(ecx + (-0x1)) + 1); /* 0x36029EDB: inc byte ptr [ecx - 1] */ 5515 _flag_k = FK_NARROW(FK_INC, 24); 5516 goto L_36029F1F; /* 0x36029EDE: jmp 0x36029f1f */ 5517 L_36029EE0: 5518 PUSH32(esp, 1); /* 0x36029EE0: push 1 */ 5519 PUSH32(esp, edi); /* 0x36029EE2: push edi */ 5520 ecx = ebx; /* 0x36029EE3: mov ecx, ebx */ 5521 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36029EE5: call dword ptr [0x3616f00c] */ 5522 RECOMP_FLAGS_IN(); 5523 /* test LO8(eax), LO8(eax) */ /* 0x36029EEB: test al, al */ 5524 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5525 _cf = 0; 5526 _flag_k = FK_NARROW(FK_TEST, 24); 5527 if (TEST_Z(_flag_a, _flag_b)) goto L_36029F1C; /* 0x36029EED: je 0x36029f1c */ 5528 L_36029EEF: 5529 esi = MEM32(esi + 0x4); /* 0x36029EEF: mov esi, dword ptr [esi + 4] */ 5530 /* test esi, esi */ /* 0x36029EF2: test esi, esi */ 5531 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5532 _cf = 0; 5533 _flag_k = FK_TEST; 5534 if (TEST_NZ(_flag_a, _flag_b)) goto L_36029EFC; /* 0x36029EF4: jne 0x36029efc */ 5535 L_36029EF6: 5536 esi = MEM32(0x3616F10C); /* 0x36029EF6: mov esi, dword ptr [0x3616f10c] */ 5537 L_36029EFC: 5538 ecx = edi; /* 0x36029EFC: mov ecx, edi */ 5539 edi = MEM32(ebx + 0x4); /* 0x36029EFE: mov edi, dword ptr [ebx + 4] */ 5540 eax = ecx; /* 0x36029F01: mov eax, ecx */ 5541 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36029F03: shr ecx, 2 */ 5542 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5543 ecx = ecx >> 2u; /* 0x36029F03: shr ecx, 2 */ 5544 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36029F06: 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; } 5545 ecx = eax; /* 0x36029F08: mov ecx, eax */ 5546 eax = MEM32(ebp + (-0x8)); /* 0x36029F0A: mov eax, dword ptr [ebp - 8] */ 5547 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5548 ecx = ecx & 3; /* 0x36029F0D: and ecx, 3 */ 5549 _cf = 0; 5550 _flag_k = FK_TEST; 5551 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36029F10: 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; } 5552 ecx = MEM32(ebx + 0x4); /* 0x36029F12: mov ecx, dword ptr [ebx + 4] */ 5553 MEM32(ebx + 0x8) = eax; /* 0x36029F15: mov dword ptr [ebx + 8], eax */ 5554 MEM8(eax + ecx) = (uint8_t)(0); /* 0x36029F18: mov byte ptr [eax + ecx], 0 */ 5555 L_36029F1C: 5556 eax = MEM32(ebp + (-0x4)); /* 0x36029F1C: mov eax, dword ptr [ebp - 4] */ 5557 L_36029F1F: 5558 ecx = MEM32(ebp + 0x8); /* 0x36029F1F: mov ecx, dword ptr [ebp + 8] */ 5559 edx = MEM32(ecx + 0x1C); /* 0x36029F22: mov edx, dword ptr [ecx + 0x1c] */ 5560 edi = POP32_VAL(esp); /* 0x36029F25: pop edi */ 5561 MEM32(eax + 0x1C) = edx; /* 0x36029F26: mov dword ptr [eax + 0x1c], edx */ 5562 ecx = MEM32(ecx + 0x20); /* 0x36029F29: mov ecx, dword ptr [ecx + 0x20] */ 5563 esi = POP32_VAL(esp); /* 0x36029F2C: pop esi */ 5564 MEM32(eax + 0x20) = ecx; /* 0x36029F2D: mov dword ptr [eax + 0x20], ecx */ 5565 ebx = POP32_VAL(esp); /* 0x36029F30: pop ebx */ 5566 esp = ebp; /* 0x36029F31: mov esp, ebp */ 5567 ebp = POP32_VAL(esp); /* 0x36029F33: pop ebp */ 5568 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36029F34: ret 4 */ 5569 RECOMP_REGS_OUT(); 5570 } 5571 5572 void sub_36029F1C(void) { 5573 int _fpu_cmp = 0; 5574 uint32_t _cf = 0; 5575 int _df = 1; 5576 uint32_t _flag_k = FK_NONE; 5577 uint32_t _flag_a = 0, _flag_b = 0; 5578 uint32_t _itail_tgt = 0; 5579 RECOMP_REGS_LOCALS 5580 RECOMP_ENTER(0x36029F1Cu); 5581 5582 L_36029F1C: 5583 eax = MEM32(ebp + (-0x4)); /* 0x36029F1C: mov eax, dword ptr [ebp - 4] */ 5584 ecx = MEM32(ebp + 0x8); /* 0x36029F1F: mov ecx, dword ptr [ebp + 8] */ 5585 edx = MEM32(ecx + 0x1C); /* 0x36029F22: mov edx, dword ptr [ecx + 0x1c] */ 5586 edi = POP32_VAL(esp); /* 0x36029F25: pop edi */ 5587 MEM32(eax + 0x1C) = edx; /* 0x36029F26: mov dword ptr [eax + 0x1c], edx */ 5588 ecx = MEM32(ecx + 0x20); /* 0x36029F29: mov ecx, dword ptr [ecx + 0x20] */ 5589 esi = POP32_VAL(esp); /* 0x36029F2C: pop esi */ 5590 MEM32(eax + 0x20) = ecx; /* 0x36029F2D: mov dword ptr [eax + 0x20], ecx */ 5591 ebx = POP32_VAL(esp); /* 0x36029F30: pop ebx */ 5592 esp = ebp; /* 0x36029F31: mov esp, ebp */ 5593 ebp = POP32_VAL(esp); /* 0x36029F33: pop ebp */ 5594 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36029F34: ret 4 */ 5595 RECOMP_REGS_OUT(); 5596 } 5597 5598 void sub_36029F40(void) { 5599 int _fpu_cmp = 0; 5600 uint32_t _cf = 0; 5601 int _df = 1; 5602 uint32_t _flag_k = FK_NONE; 5603 uint32_t _flag_a = 0, _flag_b = 0; 5604 uint32_t _itail_tgt = 0; 5605 RECOMP_REGS_LOCALS 5606 RECOMP_ENTER(0x36029F40u); 5607 5608 L_36029F40: 5609 PUSH32(esp, esi); /* 0x36029F40: push esi */ 5610 esi = ecx; /* 0x36029F41: mov esi, ecx */ 5611 eax = MEM32(esi + 0x10); /* 0x36029F43: mov eax, dword ptr [esi + 0x10] */ 5612 /* test eax, eax */ /* 0x36029F46: test eax, eax */ 5613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5614 _cf = 0; 5615 _flag_k = FK_TEST; 5616 if (TEST_Z(_flag_a, _flag_b)) goto L_36029F66; /* 0x36029F48: je 0x36029f66 */ 5617 L_36029F4A: 5618 ecx = eax + (-0x1); /* 0x36029F4A: lea ecx, [eax - 1] */ 5619 SET_LO8(eax, MEM8(ecx)); /* 0x36029F4D: mov al, byte ptr [ecx] */ 5620 /* test LO8(eax), LO8(eax) */ /* 0x36029F4F: test al, al */ 5621 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5622 _cf = 0; 5623 _flag_k = FK_NARROW(FK_TEST, 24); 5624 if (TEST_Z(_flag_a, _flag_b)) goto L_36029F5D; /* 0x36029F51: je 0x36029f5d */ 5625 L_36029F53: 5626 /* cmp LO8(eax), 0xFFu */ /* 0x36029F53: cmp al, 0xff */ 5627 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 5628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5629 _flag_k = FK_NARROW(FK_CMP, 24); 5630 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029F5D; /* 0x36029F55: je 0x36029f5d */ 5631 L_36029F57: 5632 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5633 SET_LO8(eax, LO8(eax) - 1); /* 0x36029F57: dec al */ 5634 _flag_k = FK_NARROW(FK_DEC, 24); 5635 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36029F59: mov byte ptr [ecx], al */ 5636 goto L_36029F66; /* 0x36029F5B: jmp 0x36029f66 */ 5637 L_36029F5D: 5638 PUSH32(esp, ecx); /* 0x36029F5D: push ecx */ 5639 RECOMP_ICALL(0x3615FCC4u); /* 0x36029F5E: call 0x3615fcc4 */ /* not lifted */ 5640 RECOMP_FLAGS_IN(); 5641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5643 esp = esp + 4; /* 0x36029F63: add esp, 4 */ 5644 _flag_k = FK_ADD; 5645 L_36029F66: 5646 MEM32(esi + 0x10) = 0; /* 0x36029F66: mov dword ptr [esi + 0x10], 0 */ 5647 MEM32(esi + 0x14) = 0; /* 0x36029F6D: mov dword ptr [esi + 0x14], 0 */ 5648 MEM32(esi + 0x18) = 0; /* 0x36029F74: mov dword ptr [esi + 0x18], 0 */ 5649 esi = POP32_VAL(esp); /* 0x36029F7B: pop esi */ 5650 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36029F7C: ret */ 5651 RECOMP_REGS_OUT(); 5652 } 5653 5654 void sub_36029F80(void) { 5655 int _fpu_cmp = 0; 5656 uint32_t _cf = 0; 5657 int _df = 1; 5658 uint32_t _flag_k = FK_NONE; 5659 uint32_t _flag_a = 0, _flag_b = 0; 5660 uint32_t _itail_tgt = 0; 5661 RECOMP_REGS_LOCALS 5662 RECOMP_ENTER(0x36029F80u); 5663 5664 L_36029F80: 5665 PUSH32(esp, ebp); /* 0x36029F80: push ebp */ 5666 ebp = esp; /* 0x36029F81: mov ebp, esp */ 5667 eax = MEM32(ebp + 0x8); /* 0x36029F83: mov eax, dword ptr [ebp + 8] */ 5668 PUSH32(esp, ebx); /* 0x36029F86: push ebx */ 5669 PUSH32(esp, esi); /* 0x36029F87: push esi */ 5670 esi = ecx; /* 0x36029F88: mov esi, ecx */ 5671 ecx = MEM32(ebp + 0xC); /* 0x36029F8A: mov ecx, dword ptr [ebp + 0xc] */ 5672 edx = MEM32(esi + 0x104); /* 0x36029F8D: mov edx, dword ptr [esi + 0x104] */ 5673 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5674 ebx = 0; /* 0x36029F93: xor ebx, ebx */ 5675 _cf = 0; 5676 _flag_k = FK_TEST; 5677 MEM32(esi + 0xFC) = ecx; /* 0x36029F95: mov dword ptr [esi + 0xfc], ecx */ 5678 PUSH32(esp, edi); /* 0x36029F9B: push edi */ 5679 ecx = esi; /* 0x36029F9C: mov ecx, esi */ 5680 MEM32(esi + 0xF8) = eax; /* 0x36029F9E: mov dword ptr [esi + 0xf8], eax */ 5681 MEM32(esi + 0x100) = edx; /* 0x36029FA4: mov dword ptr [esi + 0x100], edx */ 5682 MEM32(esi + 0x104) = ebx; /* 0x36029FAA: mov dword ptr [esi + 0x104], ebx */ 5683 MEM32(esi + 0x108) = ebx; /* 0x36029FB0: mov dword ptr [esi + 0x108], ebx */ 5684 MEM32(esi + 0x10C) = ebx; /* 0x36029FB6: mov dword ptr [esi + 0x10c], ebx */ 5685 RECOMP_ICALL(0x3601F240u); /* 0x36029FBC: call 0x3601f240 */ /* not lifted */ 5686 RECOMP_FLAGS_IN(); 5687 edi = eax; /* 0x36029FC1: mov edi, eax */ 5688 /* cmp edi, ebx */ /* 0x36029FC3: cmp edi, ebx */ 5689 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 5690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5691 _flag_k = FK_CMP; 5692 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029FF9; /* 0x36029FC5: je 0x36029ff9 */ 5693 L_36029FC7: 5694 eax = MEM32(edi + 0xE4); /* 0x36029FC7: mov eax, dword ptr [edi + 0xe4] */ 5695 ebx = edi + 0xE4; /* 0x36029FCD: lea ebx, [edi + 0xe4] */ 5696 PUSH32(esp, 2); /* 0x36029FD3: push 2 */ 5697 PUSH32(esp, 0xC2u); /* 0x36029FD5: push 0xc2 */ 5698 ecx = ebx; /* 0x36029FDA: mov ecx, ebx */ 5699 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36029FDC: call dword ptr [eax + 4] */ 5700 RECOMP_FLAGS_IN(); 5701 /* test eax, eax */ /* 0x36029FDF: test eax, eax */ 5702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5703 _cf = 0; 5704 _flag_k = FK_TEST; 5705 if (TEST_Z(_flag_a, _flag_b)) goto L_36029FF9; /* 0x36029FE1: je 0x36029ff9 */ 5706 L_36029FE3: 5707 /* cmp MEM8(edi + 0x94), 1 */ /* 0x36029FE3: cmp byte ptr [edi + 0x94], 1 */ 5708 _flag_a = (uint32_t)(MEM8(edi + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24; 5709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5710 _flag_k = FK_NARROW(FK_CMP, 24); 5711 if (CMP_EQ(_flag_a, _flag_b)) goto L_36029FF9; /* 0x36029FEA: je 0x36029ff9 */ 5712 L_36029FEC: 5713 edx = MEM32(ebx); /* 0x36029FEC: mov edx, dword ptr [ebx] */ 5714 PUSH32(esp, 0x20u); /* 0x36029FEE: push 0x20 */ 5715 ecx = ebx; /* 0x36029FF0: mov ecx, ebx */ 5716 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x36029FF2: call dword ptr [edx + 0x1c] */ 5717 RECOMP_FLAGS_IN(); 5718 /* cmp LO8(eax), 1 */ /* 0x36029FF5: cmp al, 1 */ 5719 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 5720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5721 _flag_k = FK_NARROW(FK_CMP, 24); 5722 if (CMP_NE(_flag_a, _flag_b)) goto L_3602A003; /* 0x36029FF7: jne 0x3602a003 */ 5723 L_36029FF9: 5724 MEM32(esi + 0x118) = 0xAu; /* 0x36029FF9: mov dword ptr [esi + 0x118], 0xa */ 5725 L_3602A003: 5726 edi = POP32_VAL(esp); /* 0x3602A003: pop edi */ 5727 esi = POP32_VAL(esp); /* 0x3602A004: pop esi */ 5728 ebx = POP32_VAL(esp); /* 0x3602A005: pop ebx */ 5729 ebp = POP32_VAL(esp); /* 0x3602A006: pop ebp */ 5730 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602A007: ret 8 */ 5731 RECOMP_REGS_OUT(); 5732 } 5733 5734 void sub_3602A010(void) { 5735 int _fpu_cmp = 0; 5736 uint32_t _cf = 0; 5737 int _df = 1; 5738 uint32_t _flag_k = FK_NONE; 5739 uint32_t _flag_a = 0, _flag_b = 0; 5740 uint32_t _itail_tgt = 0; 5741 RECOMP_REGS_LOCALS 5742 RECOMP_ENTER(0x3602A010u); 5743 5744 L_3602A010: 5745 PUSH32(esp, ebp); /* 0x3602A010: push ebp */ 5746 ebp = esp; /* 0x3602A011: mov ebp, esp */ 5747 PUSH32(esp, esi); /* 0x3602A013: push esi */ 5748 esi = ecx; /* 0x3602A014: mov esi, ecx */ 5749 edx = MEM32(esi + 0x104); /* 0x3602A016: mov edx, dword ptr [esi + 0x104] */ 5750 ecx = MEM32(esi + 0xFC); /* 0x3602A01C: mov ecx, dword ptr [esi + 0xfc] */ 5751 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 5752 edx = edx + 1; /* 0x3602A022: inc edx */ 5753 _flag_k = FK_INC; 5754 eax = edx; /* 0x3602A023: mov eax, edx */ 5755 /* cmp eax, ecx */ /* 0x3602A025: cmp eax, ecx */ 5756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5758 _flag_k = FK_CMP; 5759 MEM32(esi + 0x104) = edx; /* 0x3602A027: mov dword ptr [esi + 0x104], edx */ 5760 if (CMP_G(_flag_a, _flag_b)) goto L_3602A036; /* 0x3602A02D: jg 0x3602a036 */ 5761 L_3602A02F: 5762 SET_LO8(eax, 1); /* 0x3602A02F: mov al, 1 */ 5763 esi = POP32_VAL(esp); /* 0x3602A031: pop esi */ 5764 ebp = POP32_VAL(esp); /* 0x3602A032: pop ebp */ 5765 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A033: ret 4 */ 5766 L_3602A036: 5767 PUSH32(esp, edi); /* 0x3602A036: push edi */ 5768 edi = MEM32(ebp + 0x8); /* 0x3602A037: mov edi, dword ptr [ebp + 8] */ 5769 PUSH32(esp, 0); /* 0x3602A03A: push 0 */ 5770 PUSH32(esp, 0x361B66F0u); /* 0x3602A03C: push 0x361b66f0 */ 5771 PUSH32(esp, 0x361B3CF0u); /* 0x3602A041: push 0x361b3cf0 */ 5772 PUSH32(esp, 0); /* 0x3602A046: push 0 */ 5773 PUSH32(esp, edi); /* 0x3602A048: push edi */ 5774 RECOMP_ICALL(0x3615FD86u); /* 0x3602A049: call 0x3615fd86 */ /* not lifted */ 5775 RECOMP_FLAGS_IN(); 5776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5778 esp = esp + 0x14u; /* 0x3602A04E: add esp, 0x14 */ 5779 _flag_k = FK_ADD; 5780 /* test eax, eax */ /* 0x3602A051: test eax, eax */ 5781 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5782 _cf = 0; 5783 _flag_k = FK_TEST; 5784 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A067; /* 0x3602A053: je 0x3602a067 */ 5785 L_3602A055: 5786 _flag_a = (uint32_t)(MEM32(esi + 0x108)); _flag_b = (uint32_t)(1); 5787 MEM32(esi + 0x108) = MEM32(esi + 0x108) + 1; /* 0x3602A055: inc dword ptr [esi + 0x108] */ 5788 _flag_k = FK_INC; 5789 MEM32(esi + 0x118) = 0xAu; /* 0x3602A05B: mov dword ptr [esi + 0x118], 0xa */ 5790 goto L_3602A088; /* 0x3602A065: jmp 0x3602a088 */ 5791 L_3602A067: 5792 PUSH32(esp, 0); /* 0x3602A067: push 0 */ 5793 PUSH32(esp, 0x361B66C8u); /* 0x3602A069: push 0x361b66c8 */ 5794 PUSH32(esp, 0x361B3CF0u); /* 0x3602A06E: push 0x361b3cf0 */ 5795 PUSH32(esp, 0); /* 0x3602A073: push 0 */ 5796 PUSH32(esp, edi); /* 0x3602A075: push edi */ 5797 RECOMP_ICALL(0x3615FD86u); /* 0x3602A076: call 0x3615fd86 */ /* not lifted */ 5798 RECOMP_FLAGS_IN(); 5799 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5801 esp = esp + 0x14u; /* 0x3602A07B: add esp, 0x14 */ 5802 _flag_k = FK_ADD; 5803 /* test eax, eax */ /* 0x3602A07E: test eax, eax */ 5804 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5805 _cf = 0; 5806 _flag_k = FK_TEST; 5807 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A088; /* 0x3602A080: je 0x3602a088 */ 5808 L_3602A082: 5809 _flag_a = (uint32_t)(MEM32(esi + 0x10C)); _flag_b = (uint32_t)(1); 5810 MEM32(esi + 0x10C) = MEM32(esi + 0x10C) + 1; /* 0x3602A082: inc dword ptr [esi + 0x10c] */ 5811 _flag_k = FK_INC; 5812 L_3602A088: 5813 ecx = MEM32(esi + 0x118); /* 0x3602A088: mov ecx, dword ptr [esi + 0x118] */ 5814 /* test ecx, ecx */ /* 0x3602A08E: test ecx, ecx */ 5815 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5816 _cf = 0; 5817 _flag_k = FK_TEST; 5818 eax = 1; /* 0x3602A090: mov eax, 1 */ 5819 edi = POP32_VAL(esp); /* 0x3602A095: pop edi */ 5820 if (TEST_G(_flag_a, _flag_b)) goto L_3602A0C1; /* 0x3602A096: jg 0x3602a0c1 */ 5821 L_3602A098: 5822 ecx = MEM32(esi + 0x108); /* 0x3602A098: mov ecx, dword ptr [esi + 0x108] */ 5823 /* test ecx, ecx */ /* 0x3602A09E: test ecx, ecx */ 5824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5825 _cf = 0; 5826 _flag_k = FK_TEST; 5827 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602A0C1; /* 0x3602A0A0: jne 0x3602a0c1 */ 5828 L_3602A0A2: 5829 /* cmp MEM32(esi + 0x10C), eax */ /* 0x3602A0A2: cmp dword ptr [esi + 0x10c], eax */ 5830 _flag_a = (uint32_t)(MEM32(esi + 0x10C)); _flag_b = (uint32_t)(eax); 5831 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5832 _flag_k = FK_CMP; 5833 if (CMP_L(_flag_a, _flag_b)) goto L_3602A0C1; /* 0x3602A0A8: jl 0x3602a0c1 */ 5834 L_3602A0AA: 5835 /* cmp MEM32(esi + 0xF8), 0x100u */ /* 0x3602A0AA: cmp dword ptr [esi + 0xf8], 0x100 */ 5836 _flag_a = (uint32_t)(MEM32(esi + 0xF8)); _flag_b = (uint32_t)(0x100u); 5837 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5838 _flag_k = FK_CMP; 5839 if (CMP_L(_flag_a, _flag_b)) goto L_3602A0BF; /* 0x3602A0B4: jl 0x3602a0bf */ 5840 L_3602A0B6: 5841 /* cmp MEM32(esi + 0x104), 0x40u */ /* 0x3602A0B6: cmp dword ptr [esi + 0x104], 0x40 */ 5842 _flag_a = (uint32_t)(MEM32(esi + 0x104)); _flag_b = (uint32_t)(0x40u); 5843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5844 _flag_k = FK_CMP; 5845 if (CMP_LE(_flag_a, _flag_b)) goto L_3602A0C1; /* 0x3602A0BD: jle 0x3602a0c1 */ 5846 L_3602A0BF: 5847 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 5848 SET_LO8(eax, 0); /* 0x3602A0BF: xor al, al */ 5849 _cf = 0; 5850 _flag_k = FK_NARROW(FK_TEST, 24); 5851 L_3602A0C1: 5852 esi = POP32_VAL(esp); /* 0x3602A0C1: pop esi */ 5853 ebp = POP32_VAL(esp); /* 0x3602A0C2: pop ebp */ 5854 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A0C3: ret 4 */ 5855 RECOMP_REGS_OUT(); 5856 } 5857 5858 void sub_3602A0D0(void) { 5859 int _fpu_cmp = 0; 5860 uint32_t _cf = 0; 5861 int _df = 1; 5862 uint32_t _flag_k = FK_NONE; 5863 uint32_t _flag_a = 0, _flag_b = 0; 5864 uint32_t _itail_tgt = 0; 5865 RECOMP_REGS_LOCALS 5866 RECOMP_ENTER(0x3602A0D0u); 5867 5868 L_3602A0D0: 5869 eax = MEM32(ecx + 0x104); /* 0x3602A0D0: mov eax, dword ptr [ecx + 0x104] */ 5870 edx = MEM32(ecx + 0x110); /* 0x3602A0D6: mov edx, dword ptr [ecx + 0x110] */ 5871 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5873 edx = edx + eax; /* 0x3602A0DC: add edx, eax */ 5874 _flag_k = FK_ADD; 5875 _flag_a = (uint32_t)(MEM32(ecx + 0x114)); _flag_b = (uint32_t)(1); 5876 MEM32(ecx + 0x114) = MEM32(ecx + 0x114) + 1; /* 0x3602A0DE: inc dword ptr [ecx + 0x114] */ 5877 _flag_k = FK_INC; 5878 eax = MEM32(ecx + 0x118); /* 0x3602A0E4: mov eax, dword ptr [ecx + 0x118] */ 5879 /* test eax, eax */ /* 0x3602A0EA: test eax, eax */ 5880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5881 _cf = 0; 5882 _flag_k = FK_TEST; 5883 MEM32(ecx + 0x110) = edx; /* 0x3602A0EC: mov dword ptr [ecx + 0x110], edx */ 5884 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A0FB; /* 0x3602A0F2: je 0x3602a0fb */ 5885 L_3602A0F4: 5886 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5887 eax = eax - 1; /* 0x3602A0F4: dec eax */ 5888 _flag_k = FK_DEC; 5889 MEM32(ecx + 0x118) = eax; /* 0x3602A0F5: mov dword ptr [ecx + 0x118], eax */ 5890 L_3602A0FB: 5891 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A0FB: ret 4 */ 5892 RECOMP_REGS_OUT(); 5893 } 5894 5895 void sub_3602A100(void) { 5896 int _fpu_cmp = 0; 5897 uint32_t _cf = 0; 5898 int _df = 1; 5899 uint32_t _flag_k = FK_NONE; 5900 uint32_t _flag_a = 0, _flag_b = 0; 5901 uint32_t _itail_tgt = 0; 5902 RECOMP_REGS_LOCALS 5903 RECOMP_ENTER(0x3602A100u); 5904 5905 L_3602A100: 5906 goto L_3602A110; /* 0x3602A100: jmp 0x3602a110 */ 5907 L_3602A110: 5908 MEM32(0x36305B38) = 0; /* 0x3602A110: mov dword ptr [0x36305b38], 0 */ 5909 MEM32(0x36305B3C) = 0xDEADBEEFu; /* 0x3602A11A: mov dword ptr [0x36305b3c], 0xdeadbeef */ 5910 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602A124: ret */ 5911 RECOMP_REGS_OUT(); 5912 } 5913 5914 void sub_3602A110(void) { 5915 int _fpu_cmp = 0; 5916 uint32_t _cf = 0; 5917 int _df = 1; 5918 uint32_t _flag_k = FK_NONE; 5919 uint32_t _flag_a = 0, _flag_b = 0; 5920 uint32_t _itail_tgt = 0; 5921 RECOMP_REGS_LOCALS 5922 RECOMP_ENTER(0x3602A110u); 5923 5924 L_3602A110: 5925 MEM32(0x36305B38) = 0; /* 0x3602A110: mov dword ptr [0x36305b38], 0 */ 5926 MEM32(0x36305B3C) = 0xDEADBEEFu; /* 0x3602A11A: mov dword ptr [0x36305b3c], 0xdeadbeef */ 5927 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602A124: ret */ 5928 RECOMP_REGS_OUT(); 5929 } 5930 5931 void sub_3602A130(void) { 5932 int _fpu_cmp = 0; 5933 uint32_t _cf = 0; 5934 int _df = 1; 5935 uint32_t _flag_k = FK_NONE; 5936 uint32_t _flag_a = 0, _flag_b = 0; 5937 uint32_t _itail_tgt = 0; 5938 RECOMP_REGS_LOCALS 5939 RECOMP_ENTER(0x3602A130u); 5940 5941 L_3602A130: 5942 eax = MEM32(ecx + 0x88); /* 0x3602A130: mov eax, dword ptr [ecx + 0x88] */ 5943 PUSH32(esp, 0); /* 0x3602A136: push 0 */ 5944 PUSH32(esp, 0x361B2CD8u); /* 0x3602A138: push 0x361b2cd8 */ 5945 PUSH32(esp, 0x361B2CC0u); /* 0x3602A13D: push 0x361b2cc0 */ 5946 PUSH32(esp, 0); /* 0x3602A142: push 0 */ 5947 PUSH32(esp, eax); /* 0x3602A144: push eax */ 5948 RECOMP_ICALL(0x3615FD86u); /* 0x3602A145: call 0x3615fd86 */ /* not lifted */ 5949 RECOMP_FLAGS_IN(); 5950 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5952 esp = esp + 0x14u; /* 0x3602A14A: add esp, 0x14 */ 5953 _flag_k = FK_ADD; 5954 /* test eax, eax */ /* 0x3602A14D: test eax, eax */ 5955 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5956 _cf = 0; 5957 _flag_k = FK_TEST; 5958 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602A152; /* 0x3602A14F: jne 0x3602a152 */ 5959 L_3602A151: 5960 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602A151: ret */ 5961 L_3602A152: 5962 ecx = MEM32(eax + 0x150); /* 0x3602A152: mov ecx, dword ptr [eax + 0x150] */ 5963 goto L_3605C830; /* 0x3602A158: jmp 0x3605c830 */ 5964 L_3605C830: 5965 PUSH32(esp, ebp); /* 0x3605C830: push ebp */ 5966 ebp = esp; /* 0x3605C831: mov ebp, esp */ 5967 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5969 esp = esp - 8; /* 0x3605C833: sub esp, 8 */ 5970 _flag_k = FK_CMP; 5971 PUSH32(esp, edi); /* 0x3605C836: push edi */ 5972 edi = ecx; /* 0x3605C837: mov edi, ecx */ 5973 ecx = MEM32(edi + 0x8); /* 0x3605C839: mov ecx, dword ptr [edi + 8] */ 5974 RECOMP_ICALL(0x3601E390u); /* 0x3605C83C: call 0x3601e390 */ /* not lifted */ 5975 RECOMP_FLAGS_IN(); 5976 ecx = MEM32(edi + 0xC); /* 0x3605C841: mov ecx, dword ptr [edi + 0xc] */ 5977 eax = MEM32(ecx + 0x8); /* 0x3605C844: mov eax, dword ptr [ecx + 8] */ 5978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 5979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5980 eax = eax - 0x30u; /* 0x3605C847: sub eax, 0x30 */ 5981 _flag_k = FK_CMP; 5982 /* test eax, eax */ /* 0x3605C84A: test eax, eax */ 5983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5984 _cf = 0; 5985 _flag_k = FK_TEST; 5986 if (TEST_LE(_flag_a, _flag_b)) goto L_3605C89E; /* 0x3605C84C: jle 0x3605c89e */ 5987 L_3605C84E: 5988 PUSH32(esp, esi); /* 0x3605C84E: push esi */ 5989 esi = 0x30u; /* 0x3605C84F: mov esi, 0x30 */ 5990 L_3605C854: 5991 PUSH32(esp, esi); /* 0x3605C854: push esi */ 5992 RECOMP_ICALL(0x3602D270u); /* 0x3605C855: call 0x3602d270 */ /* not lifted */ 5993 RECOMP_FLAGS_IN(); 5994 /* test eax, eax */ /* 0x3605C85A: test eax, eax */ 5995 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5996 _cf = 0; 5997 _flag_k = FK_TEST; 5998 if (TEST_Z(_flag_a, _flag_b)) goto L_3605C88C; /* 0x3605C85C: je 0x3605c88c */ 5999 L_3605C85E: 6000 ecx = MEM32(edi + 0xC); /* 0x3605C85E: mov ecx, dword ptr [edi + 0xc] */ 6001 PUSH32(esp, esi); /* 0x3605C861: push esi */ 6002 RECOMP_ICALL(0x3602DAE0u); /* 0x3605C862: call 0x3602dae0 */ /* not lifted */ 6003 RECOMP_FLAGS_IN(); 6004 /* test LO8(eax), LO8(eax) */ /* 0x3605C867: test al, al */ 6005 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6006 _cf = 0; 6007 _flag_k = FK_NARROW(FK_TEST, 24); 6008 if (TEST_Z(_flag_a, _flag_b)) goto L_3605C88C; /* 0x3605C869: je 0x3605c88c */ 6009 L_3605C86B: 6010 PUSH32(esp, 0); /* 0x3605C86B: push 0 */ 6011 ecx = esi + (-0x30); /* 0x3605C86D: lea ecx, [esi - 0x30] */ 6012 PUSH32(esp, ecx); /* 0x3605C870: push ecx */ 6013 ecx = MEM32(edi + 0x8); /* 0x3605C871: mov ecx, dword ptr [edi + 8] */ 6014 PUSH32(esp, 0x362EA510u); /* 0x3605C874: push 0x362ea510 */ 6015 edx = ebp + (-0x8); /* 0x3605C879: lea edx, [ebp - 8] */ 6016 PUSH32(esp, edx); /* 0x3605C87C: push edx */ 6017 MEM32(ebp + (-0x8)) = 0x68u; /* 0x3605C87D: mov dword ptr [ebp - 8], 0x68 */ 6018 MEM32(ebp + (-0x4)) = esi; /* 0x3605C884: mov dword ptr [ebp - 4], esi */ 6019 RECOMP_ICALL(0x3601E210u); /* 0x3605C887: call 0x3601e210 */ /* not lifted */ 6020 RECOMP_FLAGS_IN(); 6021 L_3605C88C: 6022 ecx = MEM32(edi + 0xC); /* 0x3605C88C: mov ecx, dword ptr [edi + 0xc] */ 6023 eax = MEM32(ecx + 0x8); /* 0x3605C88F: mov eax, dword ptr [ecx + 8] */ 6024 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6025 esi = esi + 1; /* 0x3605C892: inc esi */ 6026 _flag_k = FK_INC; 6027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x30u); 6028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6029 eax = eax - 0x30u; /* 0x3605C893: sub eax, 0x30 */ 6030 _flag_k = FK_CMP; 6031 edx = esi + (-0x30); /* 0x3605C896: lea edx, [esi - 0x30] */ 6032 /* cmp edx, eax */ /* 0x3605C899: cmp edx, eax */ 6033 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6035 _flag_k = FK_CMP; 6036 RECOMP_BACKEDGE(); 6037 if (CMP_L(_flag_a, _flag_b)) goto L_3605C854; /* 0x3605C89B: jl 0x3605c854 */ 6038 L_3605C89D: 6039 esi = POP32_VAL(esp); /* 0x3605C89D: pop esi */ 6040 L_3605C89E: 6041 ecx = MEM32(edi + 0x8); /* 0x3605C89E: mov ecx, dword ptr [edi + 8] */ 6042 RECOMP_ICALL(0x3609BF50u); /* 0x3605C8A1: call 0x3609bf50 */ /* not lifted */ 6043 RECOMP_FLAGS_IN(); 6044 edi = POP32_VAL(esp); /* 0x3605C8A6: pop edi */ 6045 esp = ebp; /* 0x3605C8A7: mov esp, ebp */ 6046 ebp = POP32_VAL(esp); /* 0x3605C8A9: pop ebp */ 6047 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605C8AA: ret */ 6048 RECOMP_REGS_OUT(); 6049 } 6050 6051 void sub_3602A160(void) { 6052 int _fpu_cmp = 0; 6053 uint32_t _cf = 0; 6054 int _df = 1; 6055 uint32_t _flag_k = FK_NONE; 6056 uint32_t _flag_a = 0, _flag_b = 0; 6057 uint32_t _itail_tgt = 0; 6058 RECOMP_REGS_LOCALS 6059 RECOMP_ENTER(0x3602A160u); 6060 6061 L_3602A160: 6062 eax = MEM32(ecx + 0x88); /* 0x3602A160: mov eax, dword ptr [ecx + 0x88] */ 6063 PUSH32(esp, 0); /* 0x3602A166: push 0 */ 6064 PUSH32(esp, 0x361B2CD8u); /* 0x3602A168: push 0x361b2cd8 */ 6065 PUSH32(esp, 0x361B2CC0u); /* 0x3602A16D: push 0x361b2cc0 */ 6066 PUSH32(esp, 0); /* 0x3602A172: push 0 */ 6067 PUSH32(esp, eax); /* 0x3602A174: push eax */ 6068 RECOMP_ICALL(0x3615FD86u); /* 0x3602A175: call 0x3615fd86 */ /* not lifted */ 6069 RECOMP_FLAGS_IN(); 6070 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6072 esp = esp + 0x14u; /* 0x3602A17A: add esp, 0x14 */ 6073 _flag_k = FK_ADD; 6074 /* test eax, eax */ /* 0x3602A17D: test eax, eax */ 6075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6076 _cf = 0; 6077 _flag_k = FK_TEST; 6078 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A18C; /* 0x3602A17F: je 0x3602a18c */ 6079 L_3602A181: 6080 ecx = MEM32(eax + 0x150); /* 0x3602A181: mov ecx, dword ptr [eax + 0x150] */ 6081 goto L_3605C8B0; /* 0x3602A187: jmp 0x3605c8b0 */ 6082 L_3602A18C: 6083 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6084 eax = 0; /* 0x3602A18C: xor eax, eax */ 6085 _cf = 0; 6086 _flag_k = FK_TEST; 6087 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602A18E: ret */ 6088 L_3605C8B0: 6089 PUSH32(esp, ebp); /* 0x3605C8B0: push ebp */ 6090 ebp = esp; /* 0x3605C8B1: mov ebp, esp */ 6091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6093 esp = esp - 8; /* 0x3605C8B3: sub esp, 8 */ 6094 _flag_k = FK_CMP; 6095 PUSH32(esp, ebx); /* 0x3605C8B6: push ebx */ 6096 PUSH32(esp, esi); /* 0x3605C8B7: push esi */ 6097 ebx = ecx; /* 0x3605C8B8: mov ebx, ecx */ 6098 ecx = MEM32(ebx + 0x8); /* 0x3605C8BA: mov ecx, dword ptr [ebx + 8] */ 6099 PUSH32(esp, edi); /* 0x3605C8BD: push edi */ 6100 RECOMP_ICALL(0x3601E390u); /* 0x3605C8BE: call 0x3601e390 */ /* not lifted */ 6101 RECOMP_FLAGS_IN(); 6102 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6103 esi = 0; /* 0x3605C8C3: xor esi, esi */ 6104 _cf = 0; 6105 _flag_k = FK_TEST; 6106 L_3605C8C5: 6107 ecx = MEM32(ebx + 0xC); /* 0x3605C8C5: mov ecx, dword ptr [ebx + 0xc] */ 6108 edi = esi + 0x10; /* 0x3605C8C8: lea edi, [esi + 0x10] */ 6109 PUSH32(esp, edi); /* 0x3605C8CB: push edi */ 6110 RECOMP_ICALL(0x3602DAE0u); /* 0x3605C8CC: call 0x3602dae0 */ /* not lifted */ 6111 RECOMP_FLAGS_IN(); 6112 /* test LO8(eax), LO8(eax) */ /* 0x3605C8D1: test al, al */ 6113 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6114 _cf = 0; 6115 _flag_k = FK_NARROW(FK_TEST, 24); 6116 if (TEST_Z(_flag_a, _flag_b)) goto L_3605C8F3; /* 0x3605C8D3: je 0x3605c8f3 */ 6117 L_3605C8D5: 6118 ecx = MEM32(ebx + 0x8); /* 0x3605C8D5: mov ecx, dword ptr [ebx + 8] */ 6119 PUSH32(esp, 0); /* 0x3605C8D8: push 0 */ 6120 PUSH32(esp, esi); /* 0x3605C8DA: push esi */ 6121 PUSH32(esp, 0x362EA510u); /* 0x3605C8DB: push 0x362ea510 */ 6122 eax = ebp + (-0x8); /* 0x3605C8E0: lea eax, [ebp - 8] */ 6123 PUSH32(esp, eax); /* 0x3605C8E3: push eax */ 6124 MEM32(ebp + (-0x8)) = 0x66u; /* 0x3605C8E4: mov dword ptr [ebp - 8], 0x66 */ 6125 MEM32(ebp + (-0x4)) = edi; /* 0x3605C8EB: mov dword ptr [ebp - 4], edi */ 6126 RECOMP_ICALL(0x3601E210u); /* 0x3605C8EE: call 0x3601e210 */ /* not lifted */ 6127 RECOMP_FLAGS_IN(); 6128 L_3605C8F3: 6129 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6130 esi = esi + 1; /* 0x3605C8F3: inc esi */ 6131 _flag_k = FK_INC; 6132 /* cmp esi, 0x10u */ /* 0x3605C8F4: cmp esi, 0x10 */ 6133 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6135 _flag_k = FK_CMP; 6136 RECOMP_BACKEDGE(); 6137 if (CMP_L(_flag_a, _flag_b)) goto L_3605C8C5; /* 0x3605C8F7: jl 0x3605c8c5 */ 6138 L_3605C8F9: 6139 ecx = MEM32(ebx + 0x8); /* 0x3605C8F9: mov ecx, dword ptr [ebx + 8] */ 6140 RECOMP_ICALL(0x3609BF50u); /* 0x3605C8FC: call 0x3609bf50 */ /* not lifted */ 6141 RECOMP_FLAGS_IN(); 6142 edi = POP32_VAL(esp); /* 0x3605C901: pop edi */ 6143 esi = POP32_VAL(esp); /* 0x3605C902: pop esi */ 6144 ebx = POP32_VAL(esp); /* 0x3605C903: pop ebx */ 6145 esp = ebp; /* 0x3605C904: mov esp, ebp */ 6146 ebp = POP32_VAL(esp); /* 0x3605C906: pop ebp */ 6147 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605C907: ret */ 6148 RECOMP_REGS_OUT(); 6149 } 6150 6151 void sub_3602A190(void) { 6152 int _fpu_cmp = 0; 6153 uint32_t _cf = 0; 6154 int _df = 1; 6155 uint32_t _flag_k = FK_NONE; 6156 uint32_t _flag_a = 0, _flag_b = 0; 6157 uint32_t _itail_tgt = 0; 6158 RECOMP_REGS_LOCALS 6159 RECOMP_ENTER(0x3602A190u); 6160 6161 L_3602A190: 6162 eax = MEM32(ecx + 0x88); /* 0x3602A190: mov eax, dword ptr [ecx + 0x88] */ 6163 PUSH32(esp, 0); /* 0x3602A196: push 0 */ 6164 PUSH32(esp, 0x361B2CD8u); /* 0x3602A198: push 0x361b2cd8 */ 6165 PUSH32(esp, 0x361B2CC0u); /* 0x3602A19D: push 0x361b2cc0 */ 6166 PUSH32(esp, 0); /* 0x3602A1A2: push 0 */ 6167 PUSH32(esp, eax); /* 0x3602A1A4: push eax */ 6168 RECOMP_ICALL(0x3615FD86u); /* 0x3602A1A5: call 0x3615fd86 */ /* not lifted */ 6169 RECOMP_FLAGS_IN(); 6170 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6171 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6172 esp = esp + 0x14u; /* 0x3602A1AA: add esp, 0x14 */ 6173 _flag_k = FK_ADD; 6174 /* test eax, eax */ /* 0x3602A1AD: test eax, eax */ 6175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6176 _cf = 0; 6177 _flag_k = FK_TEST; 6178 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A1BC; /* 0x3602A1AF: je 0x3602a1bc */ 6179 L_3602A1B1: 6180 ecx = MEM32(eax + 0x150); /* 0x3602A1B1: mov ecx, dword ptr [eax + 0x150] */ 6181 goto L_3605C910; /* 0x3602A1B7: jmp 0x3605c910 */ 6182 L_3602A1BC: 6183 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6184 eax = 0; /* 0x3602A1BC: xor eax, eax */ 6185 _cf = 0; 6186 _flag_k = FK_TEST; 6187 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602A1BE: ret */ 6188 L_3605C910: 6189 PUSH32(esp, ebp); /* 0x3605C910: push ebp */ 6190 ebp = esp; /* 0x3605C911: mov ebp, esp */ 6191 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6193 esp = esp - 8; /* 0x3605C913: sub esp, 8 */ 6194 _flag_k = FK_CMP; 6195 PUSH32(esp, esi); /* 0x3605C916: push esi */ 6196 PUSH32(esp, edi); /* 0x3605C917: push edi */ 6197 edi = ecx; /* 0x3605C918: mov edi, ecx */ 6198 ecx = MEM32(edi + 0x8); /* 0x3605C91A: mov ecx, dword ptr [edi + 8] */ 6199 RECOMP_ICALL(0x3601E390u); /* 0x3605C91D: call 0x3601e390 */ /* not lifted */ 6200 RECOMP_FLAGS_IN(); 6201 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6202 esi = 0; /* 0x3605C922: xor esi, esi */ 6203 _cf = 0; 6204 _flag_k = FK_TEST; 6205 L_3605C924: 6206 ecx = MEM32(edi + 0xC); /* 0x3605C924: mov ecx, dword ptr [edi + 0xc] */ 6207 PUSH32(esp, esi); /* 0x3605C927: push esi */ 6208 RECOMP_ICALL(0x3602DAE0u); /* 0x3605C928: call 0x3602dae0 */ /* not lifted */ 6209 RECOMP_FLAGS_IN(); 6210 /* test LO8(eax), LO8(eax) */ /* 0x3605C92D: test al, al */ 6211 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6212 _cf = 0; 6213 _flag_k = FK_NARROW(FK_TEST, 24); 6214 if (TEST_Z(_flag_a, _flag_b)) goto L_3605C94F; /* 0x3605C92F: je 0x3605c94f */ 6215 L_3605C931: 6216 ecx = MEM32(edi + 0x8); /* 0x3605C931: mov ecx, dword ptr [edi + 8] */ 6217 PUSH32(esp, 0); /* 0x3605C934: push 0 */ 6218 PUSH32(esp, esi); /* 0x3605C936: push esi */ 6219 PUSH32(esp, 0x362EA510u); /* 0x3605C937: push 0x362ea510 */ 6220 eax = ebp + (-0x8); /* 0x3605C93C: lea eax, [ebp - 8] */ 6221 PUSH32(esp, eax); /* 0x3605C93F: push eax */ 6222 MEM32(ebp + (-0x8)) = 0x65u; /* 0x3605C940: mov dword ptr [ebp - 8], 0x65 */ 6223 MEM32(ebp + (-0x4)) = esi; /* 0x3605C947: mov dword ptr [ebp - 4], esi */ 6224 RECOMP_ICALL(0x3601E210u); /* 0x3605C94A: call 0x3601e210 */ /* not lifted */ 6225 RECOMP_FLAGS_IN(); 6226 L_3605C94F: 6227 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6228 esi = esi + 1; /* 0x3605C94F: inc esi */ 6229 _flag_k = FK_INC; 6230 /* cmp esi, 0x10u */ /* 0x3605C950: cmp esi, 0x10 */ 6231 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6233 _flag_k = FK_CMP; 6234 RECOMP_BACKEDGE(); 6235 if (CMP_L(_flag_a, _flag_b)) goto L_3605C924; /* 0x3605C953: jl 0x3605c924 */ 6236 L_3605C955: 6237 ecx = MEM32(edi + 0x8); /* 0x3605C955: mov ecx, dword ptr [edi + 8] */ 6238 RECOMP_ICALL(0x3609BF50u); /* 0x3605C958: call 0x3609bf50 */ /* not lifted */ 6239 RECOMP_FLAGS_IN(); 6240 edi = POP32_VAL(esp); /* 0x3605C95D: pop edi */ 6241 esi = POP32_VAL(esp); /* 0x3605C95E: pop esi */ 6242 esp = ebp; /* 0x3605C95F: mov esp, ebp */ 6243 ebp = POP32_VAL(esp); /* 0x3605C961: pop ebp */ 6244 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605C962: ret */ 6245 RECOMP_REGS_OUT(); 6246 } 6247 6248 void sub_3602A1C0(void) { 6249 int _fpu_cmp = 0; 6250 uint32_t _cf = 0; 6251 int _df = 1; 6252 uint32_t _flag_k = FK_NONE; 6253 uint32_t _flag_a = 0, _flag_b = 0; 6254 uint32_t _itail_tgt = 0; 6255 RECOMP_REGS_LOCALS 6256 RECOMP_ENTER(0x3602A1C0u); 6257 6258 L_3602A1C0: 6259 eax = MEM32(ecx + 0x88); /* 0x3602A1C0: mov eax, dword ptr [ecx + 0x88] */ 6260 PUSH32(esp, 0); /* 0x3602A1C6: push 0 */ 6261 PUSH32(esp, 0x361B2CD8u); /* 0x3602A1C8: push 0x361b2cd8 */ 6262 PUSH32(esp, 0x361B2CC0u); /* 0x3602A1CD: push 0x361b2cc0 */ 6263 PUSH32(esp, 0); /* 0x3602A1D2: push 0 */ 6264 PUSH32(esp, eax); /* 0x3602A1D4: push eax */ 6265 RECOMP_ICALL(0x3615FD86u); /* 0x3602A1D5: call 0x3615fd86 */ /* not lifted */ 6266 RECOMP_FLAGS_IN(); 6267 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6269 esp = esp + 0x14u; /* 0x3602A1DA: add esp, 0x14 */ 6270 _flag_k = FK_ADD; 6271 /* test eax, eax */ /* 0x3602A1DD: test eax, eax */ 6272 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6273 _cf = 0; 6274 _flag_k = FK_TEST; 6275 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A1EC; /* 0x3602A1DF: je 0x3602a1ec */ 6276 L_3602A1E1: 6277 ecx = MEM32(eax + 0x150); /* 0x3602A1E1: mov ecx, dword ptr [eax + 0x150] */ 6278 goto L_3605C970; /* 0x3602A1E7: jmp 0x3605c970 */ 6279 L_3602A1EC: 6280 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6281 eax = 0; /* 0x3602A1EC: xor eax, eax */ 6282 _cf = 0; 6283 _flag_k = FK_TEST; 6284 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602A1EE: ret */ 6285 L_3605C970: 6286 PUSH32(esp, ebp); /* 0x3605C970: push ebp */ 6287 ebp = esp; /* 0x3605C971: mov ebp, esp */ 6288 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6290 esp = esp - 8; /* 0x3605C973: sub esp, 8 */ 6291 _flag_k = FK_CMP; 6292 PUSH32(esp, ebx); /* 0x3605C976: push ebx */ 6293 PUSH32(esp, esi); /* 0x3605C977: push esi */ 6294 ebx = ecx; /* 0x3605C978: mov ebx, ecx */ 6295 ecx = MEM32(ebx + 0x8); /* 0x3605C97A: mov ecx, dword ptr [ebx + 8] */ 6296 PUSH32(esp, edi); /* 0x3605C97D: push edi */ 6297 RECOMP_ICALL(0x3601E390u); /* 0x3605C97E: call 0x3601e390 */ /* not lifted */ 6298 RECOMP_FLAGS_IN(); 6299 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6300 esi = 0; /* 0x3605C983: xor esi, esi */ 6301 _cf = 0; 6302 _flag_k = FK_TEST; 6303 L_3605C985: 6304 ecx = MEM32(ebx + 0xC); /* 0x3605C985: mov ecx, dword ptr [ebx + 0xc] */ 6305 edi = esi + 0x20; /* 0x3605C988: lea edi, [esi + 0x20] */ 6306 PUSH32(esp, edi); /* 0x3605C98B: push edi */ 6307 RECOMP_ICALL(0x3602DAE0u); /* 0x3605C98C: call 0x3602dae0 */ /* not lifted */ 6308 RECOMP_FLAGS_IN(); 6309 /* test LO8(eax), LO8(eax) */ /* 0x3605C991: test al, al */ 6310 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6311 _cf = 0; 6312 _flag_k = FK_NARROW(FK_TEST, 24); 6313 if (TEST_Z(_flag_a, _flag_b)) goto L_3605C9B3; /* 0x3605C993: je 0x3605c9b3 */ 6314 L_3605C995: 6315 ecx = MEM32(ebx + 0x8); /* 0x3605C995: mov ecx, dword ptr [ebx + 8] */ 6316 PUSH32(esp, 0); /* 0x3605C998: push 0 */ 6317 PUSH32(esp, esi); /* 0x3605C99A: push esi */ 6318 PUSH32(esp, 0x362EA510u); /* 0x3605C99B: push 0x362ea510 */ 6319 eax = ebp + (-0x8); /* 0x3605C9A0: lea eax, [ebp - 8] */ 6320 PUSH32(esp, eax); /* 0x3605C9A3: push eax */ 6321 MEM32(ebp + (-0x8)) = 0x67u; /* 0x3605C9A4: mov dword ptr [ebp - 8], 0x67 */ 6322 MEM32(ebp + (-0x4)) = edi; /* 0x3605C9AB: mov dword ptr [ebp - 4], edi */ 6323 RECOMP_ICALL(0x3601E210u); /* 0x3605C9AE: call 0x3601e210 */ /* not lifted */ 6324 RECOMP_FLAGS_IN(); 6325 L_3605C9B3: 6326 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 6327 esi = esi + 1; /* 0x3605C9B3: inc esi */ 6328 _flag_k = FK_INC; 6329 /* cmp esi, 0x10u */ /* 0x3605C9B4: cmp esi, 0x10 */ 6330 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 6331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6332 _flag_k = FK_CMP; 6333 RECOMP_BACKEDGE(); 6334 if (CMP_L(_flag_a, _flag_b)) goto L_3605C985; /* 0x3605C9B7: jl 0x3605c985 */ 6335 L_3605C9B9: 6336 ecx = MEM32(ebx + 0x8); /* 0x3605C9B9: mov ecx, dword ptr [ebx + 8] */ 6337 RECOMP_ICALL(0x3609BF50u); /* 0x3605C9BC: call 0x3609bf50 */ /* not lifted */ 6338 RECOMP_FLAGS_IN(); 6339 edi = POP32_VAL(esp); /* 0x3605C9C1: pop edi */ 6340 esi = POP32_VAL(esp); /* 0x3605C9C2: pop esi */ 6341 ebx = POP32_VAL(esp); /* 0x3605C9C3: pop ebx */ 6342 esp = ebp; /* 0x3605C9C4: mov esp, ebp */ 6343 ebp = POP32_VAL(esp); /* 0x3605C9C6: pop ebp */ 6344 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3605C9C7: ret */ 6345 RECOMP_REGS_OUT(); 6346 } 6347 6348 void sub_3602A1F0(void) { 6349 int _fpu_cmp = 0; 6350 uint32_t _cf = 0; 6351 int _df = 1; 6352 uint32_t _flag_k = FK_NONE; 6353 uint32_t _flag_a = 0, _flag_b = 0; 6354 uint32_t _itail_tgt = 0; 6355 RECOMP_REGS_LOCALS 6356 RECOMP_ENTER(0x3602A1F0u); 6357 6358 L_3602A1F0: 6359 PUSH32(esp, ebp); /* 0x3602A1F0: push ebp */ 6360 L_3602A1F1: 6361 ebp = esp; /* 0x3602A1F1: mov ebp, esp */ 6362 L_3602A1F3: 6363 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602A1F3: push -1 */ 6364 L_3602A1F5: 6365 PUSH32(esp, 0x3616367Bu); /* 0x3602A1F5: push 0x3616367b */ 6366 L_3602A1FA: 6367 eax = MEM32(FS_BASE + (0)); /* 0x3602A1FA: mov eax, dword ptr fs:[0] */ 6368 L_3602A200: 6369 PUSH32(esp, eax); /* 0x3602A200: push eax */ 6370 L_3602A201: 6371 MEM32(FS_BASE + (0)) = esp; /* 0x3602A201: mov dword ptr fs:[0], esp */ 6372 L_3602A208: 6373 PUSH32(esp, ecx); /* 0x3602A208: push ecx */ 6374 L_3602A209: 6375 PUSH32(esp, ebx); /* 0x3602A209: push ebx */ 6376 L_3602A20A: 6377 PUSH32(esp, esi); /* 0x3602A20A: push esi */ 6378 L_3602A20B: 6379 PUSH32(esp, edi); /* 0x3602A20B: push edi */ 6380 L_3602A20C: 6381 ebx = ecx; /* 0x3602A20C: mov ebx, ecx */ 6382 L_3602A20E: 6383 RECOMP_ICALL(0x3601F240u); /* 0x3602A20E: call 0x3601f240 */ /* not lifted */ 6384 RECOMP_FLAGS_IN(); 6385 L_3602A213: 6386 /* test eax, eax */ /* 0x3602A213: test eax, eax */ 6387 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6388 _cf = 0; 6389 _flag_k = FK_TEST; 6390 L_3602A215: 6391 MEM32(ebp + (-0x10)) = eax; /* 0x3602A215: mov dword ptr [ebp - 0x10], eax */ 6392 L_3602A218: 6393 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3602A26B; /* 0x3602A218: je 0x3602a26b */ 6394 L_3602A21A: 6395 eax = MEM32(ebp + 0xC); /* 0x3602A21A: mov eax, dword ptr [ebp + 0xc] */ 6396 L_3602A21D: 6397 esi = MEM32(ebp + 0x8); /* 0x3602A21D: mov esi, dword ptr [ebp + 8] */ 6398 L_3602A220: 6399 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6400 eax = eax - 1; /* 0x3602A220: dec eax */ 6401 _flag_k = FK_DEC; 6402 L_3602A221: 6403 /* cmp eax, 7 */ /* 0x3602A221: cmp eax, 7 */ 6404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 6405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6406 _flag_k = FK_CMP; 6407 L_3602A224: 6408 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3602A296; /* 0x3602A224: ja 0x3602a296 */ 6409 L_3602A226: 6410 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x3602A39C)); goto _ljump; } 6411 L_3602A22D: 6412 edi = MEM32(ebp + 0x10); /* 0x3602A22D: mov edi, dword ptr [ebp + 0x10] */ 6413 L_3602A230: 6414 PUSH32(esp, 1); /* 0x3602A230: push 1 */ 6415 L_3602A232: 6416 PUSH32(esp, 2); /* 0x3602A232: push 2 */ 6417 L_3602A234: 6418 PUSH32(esp, edi); /* 0x3602A234: push edi */ 6419 L_3602A235: 6420 PUSH32(esp, esi); /* 0x3602A235: push esi */ 6421 L_3602A236: 6422 ecx = ebx; /* 0x3602A236: mov ecx, ebx */ 6423 L_3602A238: 6424 RECOMP_ICALL(0x3602B450u); /* 0x3602A238: call 0x3602b450 */ /* not lifted */ 6425 RECOMP_FLAGS_IN(); 6426 L_3602A23D: 6427 /* test LO8(eax), LO8(eax) */ /* 0x3602A23D: test al, al */ 6428 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6429 _cf = 0; 6430 _flag_k = FK_NARROW(FK_TEST, 24); 6431 L_3602A23F: 6432 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3602A26B; /* 0x3602A23F: je 0x3602a26b */ 6433 L_3602A241: 6434 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 6435 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6436 edi = edi + 0x10u; /* 0x3602A241: add edi, 0x10 */ 6437 _flag_k = FK_ADD; 6438 L_3602A244: 6439 goto L_3602A299; /* 0x3602A244: jmp 0x3602a299 */ 6440 L_3602A246: 6441 edi = MEM32(ebp + 0x10); /* 0x3602A246: mov edi, dword ptr [ebp + 0x10] */ 6442 L_3602A249: 6443 PUSH32(esp, 1); /* 0x3602A249: push 1 */ 6444 L_3602A24B: 6445 PUSH32(esp, 3); /* 0x3602A24B: push 3 */ 6446 L_3602A24D: 6447 PUSH32(esp, edi); /* 0x3602A24D: push edi */ 6448 L_3602A24E: 6449 PUSH32(esp, esi); /* 0x3602A24E: push esi */ 6450 L_3602A24F: 6451 ecx = ebx; /* 0x3602A24F: mov ecx, ebx */ 6452 L_3602A251: 6453 RECOMP_ICALL(0x3602B450u); /* 0x3602A251: call 0x3602b450 */ /* not lifted */ 6454 RECOMP_FLAGS_IN(); 6455 L_3602A256: 6456 /* test LO8(eax), LO8(eax) */ /* 0x3602A256: test al, al */ 6457 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6458 _cf = 0; 6459 _flag_k = FK_NARROW(FK_TEST, 24); 6460 L_3602A258: 6461 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3602A26B; /* 0x3602A258: je 0x3602a26b */ 6462 L_3602A25A: 6463 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x20u); 6464 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6465 edi = edi + 0x20u; /* 0x3602A25A: add edi, 0x20 */ 6466 _flag_k = FK_ADD; 6467 L_3602A25D: 6468 goto L_3602A299; /* 0x3602A25D: jmp 0x3602a299 */ 6469 L_3602A25F: 6470 PUSH32(esp, esi); /* 0x3602A25F: push esi */ 6471 L_3602A260: 6472 ecx = ebx; /* 0x3602A260: mov ecx, ebx */ 6473 L_3602A262: 6474 RECOMP_ICALL(0x3602A3C0u); /* 0x3602A262: call 0x3602a3c0 */ /* not lifted */ 6475 RECOMP_FLAGS_IN(); 6476 L_3602A267: 6477 /* test LO8(eax), LO8(eax) */ /* 0x3602A267: test al, al */ 6478 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6479 _cf = 0; 6480 _flag_k = FK_NARROW(FK_TEST, 24); 6481 L_3602A269: 6482 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3602A296; /* 0x3602A269: jne 0x3602a296 */ 6483 L_3602A26B: 6484 edi = POP32_VAL(esp); /* 0x3602A26B: pop edi */ 6485 L_3602A26C: 6486 esi = POP32_VAL(esp); /* 0x3602A26C: pop esi */ 6487 L_3602A26D: 6488 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6489 SET_LO8(eax, 0); /* 0x3602A26D: xor al, al */ 6490 _cf = 0; 6491 _flag_k = FK_NARROW(FK_TEST, 24); 6492 L_3602A26F: 6493 ebx = POP32_VAL(esp); /* 0x3602A26F: pop ebx */ 6494 L_3602A270: 6495 ecx = MEM32(ebp + (-0xC)); /* 0x3602A270: mov ecx, dword ptr [ebp - 0xc] */ 6496 L_3602A273: 6497 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A273: mov dword ptr fs:[0], ecx */ 6498 L_3602A27A: 6499 esp = ebp; /* 0x3602A27A: mov esp, ebp */ 6500 L_3602A27C: 6501 ebp = POP32_VAL(esp); /* 0x3602A27C: pop ebp */ 6502 L_3602A27D: 6503 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A27D: ret 0xc */ 6504 L_3602A280: 6505 edi = MEM32(ebp + 0x10); /* 0x3602A280: mov edi, dword ptr [ebp + 0x10] */ 6506 L_3602A283: 6507 PUSH32(esp, 1); /* 0x3602A283: push 1 */ 6508 L_3602A285: 6509 PUSH32(esp, 1); /* 0x3602A285: push 1 */ 6510 L_3602A287: 6511 PUSH32(esp, edi); /* 0x3602A287: push edi */ 6512 L_3602A288: 6513 PUSH32(esp, esi); /* 0x3602A288: push esi */ 6514 L_3602A289: 6515 ecx = ebx; /* 0x3602A289: mov ecx, ebx */ 6516 L_3602A28B: 6517 RECOMP_ICALL(0x3602B450u); /* 0x3602A28B: call 0x3602b450 */ /* not lifted */ 6518 RECOMP_FLAGS_IN(); 6519 L_3602A290: 6520 /* test LO8(eax), LO8(eax) */ /* 0x3602A290: test al, al */ 6521 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6522 _cf = 0; 6523 _flag_k = FK_NARROW(FK_TEST, 24); 6524 L_3602A292: 6525 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3602A299; /* 0x3602A292: jne 0x3602a299 */ 6526 L_3602A294: 6527 RECOMP_BACKEDGE(); 6528 goto L_3602A26B; /* 0x3602A294: jmp 0x3602a26b */ 6529 L_3602A296: 6530 edi = MEM32(ebp + 0x10); /* 0x3602A296: mov edi, dword ptr [ebp + 0x10] */ 6531 L_3602A299: 6532 /* cmp MEM32(ebp + 0xC), 1 */ /* 0x3602A299: cmp dword ptr [ebp + 0xc], 1 */ 6533 _flag_a = (uint32_t)(MEM32(ebp + 0xC)); _flag_b = (uint32_t)(1); 6534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6535 _flag_k = FK_CMP; 6536 L_3602A29D: 6537 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3602A2DD; /* 0x3602A29D: jne 0x3602a2dd */ 6538 L_3602A29F: 6539 ecx = MEM32(ebp + (-0x10)); /* 0x3602A29F: mov ecx, dword ptr [ebp - 0x10] */ 6540 L_3602A2A2: 6541 eax = MEM32(ecx + 0x150); /* 0x3602A2A2: mov eax, dword ptr [ecx + 0x150] */ 6542 L_3602A2A8: 6543 eax = MEM32(eax + 0xC); /* 0x3602A2A8: mov eax, dword ptr [eax + 0xc] */ 6544 L_3602A2AB: 6545 PUSH32(esp, 0x30u); /* 0x3602A2AB: push 0x30 */ 6546 L_3602A2AD: 6547 ecx = eax; /* 0x3602A2AD: mov ecx, eax */ 6548 L_3602A2AF: 6549 RECOMP_ICALL(0x3602D210u); /* 0x3602A2AF: call 0x3602d210 */ /* not lifted */ 6550 RECOMP_FLAGS_IN(); 6551 L_3602A2B4: 6552 /* cmp eax, 0xFFFFFFFFu */ /* 0x3602A2B4: cmp eax, -1 */ 6553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 6554 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6555 _flag_k = FK_CMP; 6556 L_3602A2B7: 6557 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3602A2DD; /* 0x3602A2B7: jne 0x3602a2dd */ 6558 L_3602A2B9: 6559 PUSH32(esp, 0); /* 0x3602A2B9: push 0 */ 6560 L_3602A2BB: 6561 PUSH32(esp, 0x361B671Cu); /* 0x3602A2BB: push 0x361b671c */ 6562 L_3602A2C0: 6563 RECOMP_ICALL(0x3601C590u); /* 0x3602A2C0: call 0x3601c590 */ /* not lifted */ 6564 RECOMP_FLAGS_IN(); 6565 L_3602A2C5: 6566 ecx = eax; /* 0x3602A2C5: mov ecx, eax */ 6567 L_3602A2C7: 6568 RECOMP_ICALL(0x3601C8C0u); /* 0x3602A2C7: call 0x3601c8c0 */ /* not lifted */ 6569 RECOMP_FLAGS_IN(); 6570 L_3602A2CC: 6571 edx = MEM32(ebp + (-0x10)); /* 0x3602A2CC: mov edx, dword ptr [ebp - 0x10] */ 6572 L_3602A2CF: 6573 ecx = MEM32(edx + 0x150); /* 0x3602A2CF: mov ecx, dword ptr [edx + 0x150] */ 6574 L_3602A2D5: 6575 PUSH32(esp, esi); /* 0x3602A2D5: push esi */ 6576 L_3602A2D6: 6577 RECOMP_ICALL(0x360624B0u); /* 0x3602A2D6: call 0x360624b0 */ /* not lifted */ 6578 RECOMP_FLAGS_IN(); 6579 L_3602A2DB: 6580 RECOMP_BACKEDGE(); 6581 goto L_3602A26B; /* 0x3602A2DB: jmp 0x3602a26b */ 6582 L_3602A2DD: 6583 /* cmp MEM32(esi + 0x4), edi */ /* 0x3602A2DD: cmp dword ptr [esi + 4], edi */ 6584 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(edi); 6585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6586 _flag_k = FK_CMP; 6587 L_3602A2E0: 6588 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3602A2FA; /* 0x3602A2E0: je 0x3602a2fa */ 6589 L_3602A2E2: 6590 ebx = MEM32(ebp + (-0x10)); /* 0x3602A2E2: mov ebx, dword ptr [ebp - 0x10] */ 6591 L_3602A2E5: 6592 ecx = MEM32(ebx + 0x150); /* 0x3602A2E5: mov ecx, dword ptr [ebx + 0x150] */ 6593 L_3602A2EB: 6594 PUSH32(esp, edi); /* 0x3602A2EB: push edi */ 6595 L_3602A2EC: 6596 PUSH32(esp, esi); /* 0x3602A2EC: push esi */ 6597 L_3602A2ED: 6598 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 6599 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6600 ebx = ebx + 4; /* 0x3602A2ED: add ebx, 4 */ 6601 _flag_k = FK_ADD; 6602 L_3602A2F0: 6603 PUSH32(esp, ebx); /* 0x3602A2F0: push ebx */ 6604 L_3602A2F1: 6605 RECOMP_ICALL(0x36060510u); /* 0x3602A2F1: call 0x36060510 */ /* not lifted */ 6606 RECOMP_FLAGS_IN(); 6607 L_3602A2F6: 6608 /* test LO8(eax), LO8(eax) */ /* 0x3602A2F6: test al, al */ 6609 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6610 _cf = 0; 6611 _flag_k = FK_NARROW(FK_TEST, 24); 6612 L_3602A2F8: 6613 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3602A337; /* 0x3602A2F8: jne 0x3602a337 */ 6614 L_3602A2FA: 6615 PUSH32(esp, 1); /* 0x3602A2FA: push 1 */ 6616 L_3602A2FC: 6617 RECOMP_ICALL(0x3601C590u); /* 0x3602A2FC: call 0x3601c590 */ /* not lifted */ 6618 RECOMP_FLAGS_IN(); 6619 L_3602A301: 6620 ecx = eax; /* 0x3602A301: mov ecx, eax */ 6621 L_3602A303: 6622 RECOMP_ICALL(0x3601C880u); /* 0x3602A303: call 0x3601c880 */ /* not lifted */ 6623 RECOMP_FLAGS_IN(); 6624 L_3602A308: 6625 PUSH32(esp, 3); /* 0x3602A308: push 3 */ 6626 L_3602A30A: 6627 RECOMP_ICALL(0x3601C590u); /* 0x3602A30A: call 0x3601c590 */ /* not lifted */ 6628 RECOMP_FLAGS_IN(); 6629 L_3602A30F: 6630 ecx = eax; /* 0x3602A30F: mov ecx, eax */ 6631 L_3602A311: 6632 RECOMP_ICALL(0x3601C880u); /* 0x3602A311: call 0x3601c880 */ /* not lifted */ 6633 RECOMP_FLAGS_IN(); 6634 L_3602A316: 6635 PUSH32(esp, 7); /* 0x3602A316: push 7 */ 6636 L_3602A318: 6637 RECOMP_ICALL(0x3601C590u); /* 0x3602A318: call 0x3601c590 */ /* not lifted */ 6638 RECOMP_FLAGS_IN(); 6639 L_3602A31D: 6640 ecx = eax; /* 0x3602A31D: mov ecx, eax */ 6641 L_3602A31F: 6642 RECOMP_ICALL(0x3601C880u); /* 0x3602A31F: call 0x3601c880 */ /* not lifted */ 6643 RECOMP_FLAGS_IN(); 6644 L_3602A324: 6645 PUSH32(esp, 8); /* 0x3602A324: push 8 */ 6646 L_3602A326: 6647 RECOMP_ICALL(0x3601C590u); /* 0x3602A326: call 0x3601c590 */ /* not lifted */ 6648 RECOMP_FLAGS_IN(); 6649 L_3602A32B: 6650 ecx = eax; /* 0x3602A32B: mov ecx, eax */ 6651 L_3602A32D: 6652 RECOMP_ICALL(0x3601C880u); /* 0x3602A32D: call 0x3601c880 */ /* not lifted */ 6653 RECOMP_FLAGS_IN(); 6654 L_3602A332: 6655 RECOMP_BACKEDGE(); 6656 goto L_3602A26B; /* 0x3602A332: jmp 0x3602a26b */ 6657 L_3602A337: 6658 eax = MEM32(ebp + (-0x10)); /* 0x3602A337: mov eax, dword ptr [ebp - 0x10] */ 6659 L_3602A33A: 6660 ecx = MEM32(eax + 0x150); /* 0x3602A33A: mov ecx, dword ptr [eax + 0x150] */ 6661 L_3602A340: 6662 PUSH32(esp, edi); /* 0x3602A340: push edi */ 6663 L_3602A341: 6664 PUSH32(esp, esi); /* 0x3602A341: push esi */ 6665 L_3602A342: 6666 PUSH32(esp, ebx); /* 0x3602A342: push ebx */ 6667 L_3602A343: 6668 RECOMP_ICALL(0x360628B0u); /* 0x3602A343: call 0x360628b0 */ /* not lifted */ 6669 RECOMP_FLAGS_IN(); 6670 L_3602A348: 6671 PUSH32(esp, 0x34u); /* 0x3602A348: push 0x34 */ 6672 L_3602A34A: 6673 RECOMP_ICALL(0x3615FD6Au); /* 0x3602A34A: call 0x3615fd6a */ /* not lifted */ 6674 RECOMP_FLAGS_IN(); 6675 L_3602A34F: 6676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6678 esp = esp + 4; /* 0x3602A34F: add esp, 4 */ 6679 _flag_k = FK_ADD; 6680 L_3602A352: 6681 MEM32(ebp + 0x10) = eax; /* 0x3602A352: mov dword ptr [ebp + 0x10], eax */ 6682 L_3602A355: 6683 /* test eax, eax */ /* 0x3602A355: test eax, eax */ 6684 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6685 _cf = 0; 6686 _flag_k = FK_TEST; 6687 L_3602A357: 6688 MEM32(ebp + (-0x4)) = 0; /* 0x3602A357: mov dword ptr [ebp - 4], 0 */ 6689 L_3602A35E: 6690 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3602A36D; /* 0x3602A35E: je 0x3602a36d */ 6691 L_3602A360: 6692 PUSH32(esp, edi); /* 0x3602A360: push edi */ 6693 L_3602A361: 6694 PUSH32(esp, esi); /* 0x3602A361: push esi */ 6695 L_3602A362: 6696 PUSH32(esp, ebx); /* 0x3602A362: push ebx */ 6697 L_3602A363: 6698 PUSH32(esp, ebx); /* 0x3602A363: push ebx */ 6699 L_3602A364: 6700 ecx = eax; /* 0x3602A364: mov ecx, eax */ 6701 L_3602A366: 6702 RECOMP_ICALL(0x360425C0u); /* 0x3602A366: call 0x360425c0 */ /* not lifted */ 6703 RECOMP_FLAGS_IN(); 6704 L_3602A36B: 6705 goto L_3602A36F; /* 0x3602A36B: jmp 0x3602a36f */ 6706 L_3602A36D: 6707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6708 eax = 0; /* 0x3602A36D: xor eax, eax */ 6709 _cf = 0; 6710 _flag_k = FK_TEST; 6711 L_3602A36F: 6712 ecx = ebp + 0x8; /* 0x3602A36F: lea ecx, [ebp + 8] */ 6713 L_3602A372: 6714 PUSH32(esp, ecx); /* 0x3602A372: push ecx */ 6715 L_3602A373: 6716 ecx = MEM32(ebp + (-0x10)); /* 0x3602A373: mov ecx, dword ptr [ebp - 0x10] */ 6717 L_3602A376: 6718 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602A376: mov dword ptr [ebp - 4], 0xffffffff */ 6719 L_3602A37D: 6720 MEM32(ebp + 0x8) = eax; /* 0x3602A37D: mov dword ptr [ebp + 8], eax */ 6721 L_3602A380: 6722 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602A380: call dword ptr [0x3617004c] */ 6723 RECOMP_FLAGS_IN(); 6724 L_3602A386: 6725 ecx = MEM32(ebp + (-0xC)); /* 0x3602A386: mov ecx, dword ptr [ebp - 0xc] */ 6726 L_3602A389: 6727 edi = POP32_VAL(esp); /* 0x3602A389: pop edi */ 6728 L_3602A38A: 6729 esi = POP32_VAL(esp); /* 0x3602A38A: pop esi */ 6730 L_3602A38B: 6731 SET_LO8(eax, 1); /* 0x3602A38B: mov al, 1 */ 6732 L_3602A38D: 6733 ebx = POP32_VAL(esp); /* 0x3602A38D: pop ebx */ 6734 L_3602A38E: 6735 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A38E: mov dword ptr fs:[0], ecx */ 6736 L_3602A395: 6737 esp = ebp; /* 0x3602A395: mov esp, ebp */ 6738 L_3602A397: 6739 ebp = POP32_VAL(esp); /* 0x3602A397: pop ebp */ 6740 L_3602A398: 6741 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A398: ret 0xc */ 6742 _ljump: 6743 switch (_itail_tgt) { 6744 case 0x3602A1F0u: goto L_3602A1F0; 6745 case 0x3602A1F1u: goto L_3602A1F1; 6746 case 0x3602A1F3u: goto L_3602A1F3; 6747 case 0x3602A1F5u: goto L_3602A1F5; 6748 case 0x3602A1FAu: goto L_3602A1FA; 6749 case 0x3602A200u: goto L_3602A200; 6750 case 0x3602A201u: goto L_3602A201; 6751 case 0x3602A208u: goto L_3602A208; 6752 case 0x3602A209u: goto L_3602A209; 6753 case 0x3602A20Au: goto L_3602A20A; 6754 case 0x3602A20Bu: goto L_3602A20B; 6755 case 0x3602A20Cu: goto L_3602A20C; 6756 case 0x3602A20Eu: goto L_3602A20E; 6757 case 0x3602A213u: goto L_3602A213; 6758 case 0x3602A215u: goto L_3602A215; 6759 case 0x3602A218u: goto L_3602A218; 6760 case 0x3602A21Au: goto L_3602A21A; 6761 case 0x3602A21Du: goto L_3602A21D; 6762 case 0x3602A220u: goto L_3602A220; 6763 case 0x3602A221u: goto L_3602A221; 6764 case 0x3602A224u: goto L_3602A224; 6765 case 0x3602A226u: goto L_3602A226; 6766 case 0x3602A22Du: goto L_3602A22D; 6767 case 0x3602A230u: goto L_3602A230; 6768 case 0x3602A232u: goto L_3602A232; 6769 case 0x3602A234u: goto L_3602A234; 6770 case 0x3602A235u: goto L_3602A235; 6771 case 0x3602A236u: goto L_3602A236; 6772 case 0x3602A238u: goto L_3602A238; 6773 case 0x3602A23Du: goto L_3602A23D; 6774 case 0x3602A23Fu: goto L_3602A23F; 6775 case 0x3602A241u: goto L_3602A241; 6776 case 0x3602A244u: goto L_3602A244; 6777 case 0x3602A246u: goto L_3602A246; 6778 case 0x3602A249u: goto L_3602A249; 6779 case 0x3602A24Bu: goto L_3602A24B; 6780 case 0x3602A24Du: goto L_3602A24D; 6781 case 0x3602A24Eu: goto L_3602A24E; 6782 case 0x3602A24Fu: goto L_3602A24F; 6783 case 0x3602A251u: goto L_3602A251; 6784 case 0x3602A256u: goto L_3602A256; 6785 case 0x3602A258u: goto L_3602A258; 6786 case 0x3602A25Au: goto L_3602A25A; 6787 case 0x3602A25Du: goto L_3602A25D; 6788 case 0x3602A25Fu: goto L_3602A25F; 6789 case 0x3602A260u: goto L_3602A260; 6790 case 0x3602A262u: goto L_3602A262; 6791 case 0x3602A267u: goto L_3602A267; 6792 case 0x3602A269u: goto L_3602A269; 6793 case 0x3602A26Bu: goto L_3602A26B; 6794 case 0x3602A26Cu: goto L_3602A26C; 6795 case 0x3602A26Du: goto L_3602A26D; 6796 case 0x3602A26Fu: goto L_3602A26F; 6797 case 0x3602A270u: goto L_3602A270; 6798 case 0x3602A273u: goto L_3602A273; 6799 case 0x3602A27Au: goto L_3602A27A; 6800 case 0x3602A27Cu: goto L_3602A27C; 6801 case 0x3602A27Du: goto L_3602A27D; 6802 case 0x3602A280u: goto L_3602A280; 6803 case 0x3602A283u: goto L_3602A283; 6804 case 0x3602A285u: goto L_3602A285; 6805 case 0x3602A287u: goto L_3602A287; 6806 case 0x3602A288u: goto L_3602A288; 6807 case 0x3602A289u: goto L_3602A289; 6808 case 0x3602A28Bu: goto L_3602A28B; 6809 case 0x3602A290u: goto L_3602A290; 6810 case 0x3602A292u: goto L_3602A292; 6811 case 0x3602A294u: goto L_3602A294; 6812 case 0x3602A296u: goto L_3602A296; 6813 case 0x3602A299u: goto L_3602A299; 6814 case 0x3602A29Du: goto L_3602A29D; 6815 case 0x3602A29Fu: goto L_3602A29F; 6816 case 0x3602A2A2u: goto L_3602A2A2; 6817 case 0x3602A2A8u: goto L_3602A2A8; 6818 case 0x3602A2ABu: goto L_3602A2AB; 6819 case 0x3602A2ADu: goto L_3602A2AD; 6820 case 0x3602A2AFu: goto L_3602A2AF; 6821 case 0x3602A2B4u: goto L_3602A2B4; 6822 case 0x3602A2B7u: goto L_3602A2B7; 6823 case 0x3602A2B9u: goto L_3602A2B9; 6824 case 0x3602A2BBu: goto L_3602A2BB; 6825 case 0x3602A2C0u: goto L_3602A2C0; 6826 case 0x3602A2C5u: goto L_3602A2C5; 6827 case 0x3602A2C7u: goto L_3602A2C7; 6828 case 0x3602A2CCu: goto L_3602A2CC; 6829 case 0x3602A2CFu: goto L_3602A2CF; 6830 case 0x3602A2D5u: goto L_3602A2D5; 6831 case 0x3602A2D6u: goto L_3602A2D6; 6832 case 0x3602A2DBu: goto L_3602A2DB; 6833 case 0x3602A2DDu: goto L_3602A2DD; 6834 case 0x3602A2E0u: goto L_3602A2E0; 6835 case 0x3602A2E2u: goto L_3602A2E2; 6836 case 0x3602A2E5u: goto L_3602A2E5; 6837 case 0x3602A2EBu: goto L_3602A2EB; 6838 case 0x3602A2ECu: goto L_3602A2EC; 6839 case 0x3602A2EDu: goto L_3602A2ED; 6840 case 0x3602A2F0u: goto L_3602A2F0; 6841 case 0x3602A2F1u: goto L_3602A2F1; 6842 case 0x3602A2F6u: goto L_3602A2F6; 6843 case 0x3602A2F8u: goto L_3602A2F8; 6844 case 0x3602A2FAu: goto L_3602A2FA; 6845 case 0x3602A2FCu: goto L_3602A2FC; 6846 case 0x3602A301u: goto L_3602A301; 6847 case 0x3602A303u: goto L_3602A303; 6848 case 0x3602A308u: goto L_3602A308; 6849 case 0x3602A30Au: goto L_3602A30A; 6850 case 0x3602A30Fu: goto L_3602A30F; 6851 case 0x3602A311u: goto L_3602A311; 6852 case 0x3602A316u: goto L_3602A316; 6853 case 0x3602A318u: goto L_3602A318; 6854 case 0x3602A31Du: goto L_3602A31D; 6855 case 0x3602A31Fu: goto L_3602A31F; 6856 case 0x3602A324u: goto L_3602A324; 6857 case 0x3602A326u: goto L_3602A326; 6858 case 0x3602A32Bu: goto L_3602A32B; 6859 case 0x3602A32Du: goto L_3602A32D; 6860 case 0x3602A332u: goto L_3602A332; 6861 case 0x3602A337u: goto L_3602A337; 6862 case 0x3602A33Au: goto L_3602A33A; 6863 case 0x3602A340u: goto L_3602A340; 6864 case 0x3602A341u: goto L_3602A341; 6865 case 0x3602A342u: goto L_3602A342; 6866 case 0x3602A343u: goto L_3602A343; 6867 case 0x3602A348u: goto L_3602A348; 6868 case 0x3602A34Au: goto L_3602A34A; 6869 case 0x3602A34Fu: goto L_3602A34F; 6870 case 0x3602A352u: goto L_3602A352; 6871 case 0x3602A355u: goto L_3602A355; 6872 case 0x3602A357u: goto L_3602A357; 6873 case 0x3602A35Eu: goto L_3602A35E; 6874 case 0x3602A360u: goto L_3602A360; 6875 case 0x3602A361u: goto L_3602A361; 6876 case 0x3602A362u: goto L_3602A362; 6877 case 0x3602A363u: goto L_3602A363; 6878 case 0x3602A364u: goto L_3602A364; 6879 case 0x3602A366u: goto L_3602A366; 6880 case 0x3602A36Bu: goto L_3602A36B; 6881 case 0x3602A36Du: goto L_3602A36D; 6882 case 0x3602A36Fu: goto L_3602A36F; 6883 case 0x3602A372u: goto L_3602A372; 6884 case 0x3602A373u: goto L_3602A373; 6885 case 0x3602A376u: goto L_3602A376; 6886 case 0x3602A37Du: goto L_3602A37D; 6887 case 0x3602A380u: goto L_3602A380; 6888 case 0x3602A386u: goto L_3602A386; 6889 case 0x3602A389u: goto L_3602A389; 6890 case 0x3602A38Au: goto L_3602A38A; 6891 case 0x3602A38Bu: goto L_3602A38B; 6892 case 0x3602A38Du: goto L_3602A38D; 6893 case 0x3602A38Eu: goto L_3602A38E; 6894 case 0x3602A395u: goto L_3602A395; 6895 case 0x3602A397u: goto L_3602A397; 6896 case 0x3602A398u: goto L_3602A398; 6897 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6898 } 6899 RECOMP_REGS_OUT(); 6900 } 6901 6902 void sub_3602A26B(void) { 6903 int _fpu_cmp = 0; 6904 uint32_t _cf = 0; 6905 int _df = 1; 6906 uint32_t _flag_k = FK_NONE; 6907 uint32_t _flag_a = 0, _flag_b = 0; 6908 uint32_t _itail_tgt = 0; 6909 RECOMP_REGS_LOCALS 6910 RECOMP_ENTER(0x3602A26Bu); 6911 6912 L_3602A26B: 6913 edi = POP32_VAL(esp); /* 0x3602A26B: pop edi */ 6914 esi = POP32_VAL(esp); /* 0x3602A26C: pop esi */ 6915 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6916 SET_LO8(eax, 0); /* 0x3602A26D: xor al, al */ 6917 _cf = 0; 6918 _flag_k = FK_NARROW(FK_TEST, 24); 6919 ebx = POP32_VAL(esp); /* 0x3602A26F: pop ebx */ 6920 ecx = MEM32(ebp + (-0xC)); /* 0x3602A270: mov ecx, dword ptr [ebp - 0xc] */ 6921 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A273: mov dword ptr fs:[0], ecx */ 6922 esp = ebp; /* 0x3602A27A: mov esp, ebp */ 6923 ebp = POP32_VAL(esp); /* 0x3602A27C: pop ebp */ 6924 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A27D: ret 0xc */ 6925 RECOMP_REGS_OUT(); 6926 } 6927 6928 void sub_3602A3C0(void) { 6929 int _fpu_cmp = 0; 6930 uint32_t _cf = 0; 6931 int _df = 1; 6932 uint32_t _flag_k = FK_NONE; 6933 uint32_t _flag_a = 0, _flag_b = 0; 6934 uint32_t _itail_tgt = 0; 6935 RECOMP_REGS_LOCALS 6936 RECOMP_ENTER(0x3602A3C0u); 6937 6938 L_3602A3C0: 6939 PUSH32(esp, ebp); /* 0x3602A3C0: push ebp */ 6940 ebp = esp; /* 0x3602A3C1: mov ebp, esp */ 6941 PUSH32(esp, esi); /* 0x3602A3C3: push esi */ 6942 esi = MEM32(ebp + 0x8); /* 0x3602A3C4: mov esi, dword ptr [ebp + 8] */ 6943 eax = MEM32(esi); /* 0x3602A3C7: mov eax, dword ptr [esi] */ 6944 /* cmp eax, 0x66u */ /* 0x3602A3C9: cmp eax, 0x66 */ 6945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x66u); 6946 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6947 _flag_k = FK_CMP; 6948 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A3DA; /* 0x3602A3CC: je 0x3602a3da */ 6949 L_3602A3CE: 6950 /* cmp eax, 0x67u */ /* 0x3602A3CE: cmp eax, 0x67 */ 6951 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x67u); 6952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6953 _flag_k = FK_CMP; 6954 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A3DA; /* 0x3602A3D1: je 0x3602a3da */ 6955 L_3602A3D3: 6956 SET_LO8(eax, 1); /* 0x3602A3D3: mov al, 1 */ 6957 esi = POP32_VAL(esp); /* 0x3602A3D5: pop esi */ 6958 ebp = POP32_VAL(esp); /* 0x3602A3D6: pop ebp */ 6959 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A3D7: ret 4 */ 6960 L_3602A3DA: 6961 RECOMP_ICALL(0x3601F240u); /* 0x3602A3DA: call 0x3601f240 */ /* not lifted */ 6962 RECOMP_FLAGS_IN(); 6963 /* test eax, eax */ /* 0x3602A3DF: test eax, eax */ 6964 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6965 _cf = 0; 6966 _flag_k = FK_TEST; 6967 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A3F6; /* 0x3602A3E1: je 0x3602a3f6 */ 6968 L_3602A3E3: 6969 eax = MEM32(eax + 0x150); /* 0x3602A3E3: mov eax, dword ptr [eax + 0x150] */ 6970 PUSH32(esp, esi); /* 0x3602A3E9: push esi */ 6971 ecx = eax; /* 0x3602A3EA: mov ecx, eax */ 6972 RECOMP_ICALL(0x3605E2E0u); /* 0x3602A3EC: call 0x3605e2e0 */ /* not lifted */ 6973 RECOMP_FLAGS_IN(); 6974 esi = POP32_VAL(esp); /* 0x3602A3F1: pop esi */ 6975 ebp = POP32_VAL(esp); /* 0x3602A3F2: pop ebp */ 6976 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A3F3: ret 4 */ 6977 L_3602A3F6: 6978 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6979 SET_LO8(eax, 0); /* 0x3602A3F6: xor al, al */ 6980 _cf = 0; 6981 _flag_k = FK_NARROW(FK_TEST, 24); 6982 esi = POP32_VAL(esp); /* 0x3602A3F8: pop esi */ 6983 ebp = POP32_VAL(esp); /* 0x3602A3F9: pop ebp */ 6984 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A3FA: ret 4 */ 6985 RECOMP_REGS_OUT(); 6986 } 6987 6988 void sub_3602A400(void) { 6989 int _fpu_cmp = 0; 6990 uint32_t _cf = 0; 6991 int _df = 1; 6992 uint32_t _flag_k = FK_NONE; 6993 uint32_t _flag_a = 0, _flag_b = 0; 6994 uint32_t _itail_tgt = 0; 6995 RECOMP_REGS_LOCALS 6996 RECOMP_ENTER(0x3602A400u); 6997 6998 L_3602A400: 6999 PUSH32(esp, ebp); /* 0x3602A400: push ebp */ 7000 ebp = esp; /* 0x3602A401: mov ebp, esp */ 7001 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602A403: push -1 */ 7002 PUSH32(esp, 0x3616369Bu); /* 0x3602A405: push 0x3616369b */ 7003 eax = MEM32(FS_BASE + (0)); /* 0x3602A40A: mov eax, dword ptr fs:[0] */ 7004 PUSH32(esp, eax); /* 0x3602A410: push eax */ 7005 MEM32(FS_BASE + (0)) = esp; /* 0x3602A411: mov dword ptr fs:[0], esp */ 7006 PUSH32(esp, ecx); /* 0x3602A418: push ecx */ 7007 eax = MEM32(ecx + 0x88); /* 0x3602A419: mov eax, dword ptr [ecx + 0x88] */ 7008 PUSH32(esp, ebx); /* 0x3602A41F: push ebx */ 7009 PUSH32(esp, esi); /* 0x3602A420: push esi */ 7010 PUSH32(esp, edi); /* 0x3602A421: push edi */ 7011 PUSH32(esp, 0); /* 0x3602A422: push 0 */ 7012 PUSH32(esp, 0x361B2CD8u); /* 0x3602A424: push 0x361b2cd8 */ 7013 PUSH32(esp, 0x361B2CC0u); /* 0x3602A429: push 0x361b2cc0 */ 7014 PUSH32(esp, 0); /* 0x3602A42E: push 0 */ 7015 PUSH32(esp, eax); /* 0x3602A430: push eax */ 7016 RECOMP_ICALL(0x3615FD86u); /* 0x3602A431: call 0x3615fd86 */ /* not lifted */ 7017 RECOMP_FLAGS_IN(); 7018 esi = eax; /* 0x3602A436: mov esi, eax */ 7019 eax = MEM32(esi + 0x150); /* 0x3602A438: mov eax, dword ptr [esi + 0x150] */ 7020 eax = MEM32(eax + 0xC); /* 0x3602A43E: mov eax, dword ptr [eax + 0xc] */ 7021 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7022 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7023 esp = esp + 0x14u; /* 0x3602A441: add esp, 0x14 */ 7024 _flag_k = FK_ADD; 7025 PUSH32(esp, 0x30u); /* 0x3602A444: push 0x30 */ 7026 ecx = eax; /* 0x3602A446: mov ecx, eax */ 7027 RECOMP_ICALL(0x3602D210u); /* 0x3602A448: call 0x3602d210 */ /* not lifted */ 7028 RECOMP_FLAGS_IN(); 7029 /* cmp eax, 0xFFFFFFFFu */ /* 0x3602A44D: cmp eax, -1 */ 7030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 7031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7032 _flag_k = FK_CMP; 7033 PUSH32(esp, 0); /* 0x3602A450: push 0 */ 7034 if (CMP_NE(_flag_a, _flag_b)) goto L_3602A478; /* 0x3602A452: jne 0x3602a478 */ 7035 L_3602A454: 7036 PUSH32(esp, 0x361B6758u); /* 0x3602A454: push 0x361b6758 */ 7037 RECOMP_ICALL(0x3601C590u); /* 0x3602A459: call 0x3601c590 */ /* not lifted */ 7038 RECOMP_FLAGS_IN(); 7039 ecx = eax; /* 0x3602A45E: mov ecx, eax */ 7040 RECOMP_ICALL(0x3601C8C0u); /* 0x3602A460: call 0x3601c8c0 */ /* not lifted */ 7041 RECOMP_FLAGS_IN(); 7042 edi = POP32_VAL(esp); /* 0x3602A465: pop edi */ 7043 esi = POP32_VAL(esp); /* 0x3602A466: pop esi */ 7044 ebx = POP32_VAL(esp); /* 0x3602A467: pop ebx */ 7045 ecx = MEM32(ebp + (-0xC)); /* 0x3602A468: mov ecx, dword ptr [ebp - 0xc] */ 7046 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A46B: mov dword ptr fs:[0], ecx */ 7047 esp = ebp; /* 0x3602A472: mov esp, ebp */ 7048 ebp = POP32_VAL(esp); /* 0x3602A474: pop ebp */ 7049 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A475: ret 4 */ 7050 L_3602A478: 7051 ebx = MEM32(ebp + 0x8); /* 0x3602A478: mov ebx, dword ptr [ebp + 8] */ 7052 PUSH32(esp, 0x361B2CF8u); /* 0x3602A47B: push 0x361b2cf8 */ 7053 PUSH32(esp, 0x361B2CC0u); /* 0x3602A480: push 0x361b2cc0 */ 7054 PUSH32(esp, 0); /* 0x3602A485: push 0 */ 7055 PUSH32(esp, ebx); /* 0x3602A487: push ebx */ 7056 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602A488: call dword ptr [0x3616ff70] */ 7057 RECOMP_FLAGS_IN(); 7058 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7059 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7060 esp = esp + 4; /* 0x3602A48E: add esp, 4 */ 7061 _flag_k = FK_ADD; 7062 PUSH32(esp, eax); /* 0x3602A491: push eax */ 7063 RECOMP_ICALL(0x3615FD86u); /* 0x3602A492: call 0x3615fd86 */ /* not lifted */ 7064 RECOMP_FLAGS_IN(); 7065 edi = eax; /* 0x3602A497: mov edi, eax */ 7066 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7067 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7068 esp = esp + 0x14u; /* 0x3602A499: add esp, 0x14 */ 7069 _flag_k = FK_ADD; 7070 /* test edi, edi */ /* 0x3602A49C: test edi, edi */ 7071 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7072 _cf = 0; 7073 _flag_k = FK_TEST; 7074 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A4C6; /* 0x3602A49E: je 0x3602a4c6 */ 7075 L_3602A4A0: 7076 /* cmp MEM8(edi + 0x120), 1 */ /* 0x3602A4A0: cmp byte ptr [edi + 0x120], 1 */ 7077 _flag_a = (uint32_t)(MEM8(edi + 0x120)) << 24; _flag_b = (uint32_t)(1) << 24; 7078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7079 _flag_k = FK_NARROW(FK_CMP, 24); 7080 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A50B; /* 0x3602A4A7: je 0x3602a50b */ 7081 L_3602A4A9: 7082 edx = MEM32(edi); /* 0x3602A4A9: mov edx, dword ptr [edi] */ 7083 PUSH32(esp, esi); /* 0x3602A4AB: push esi */ 7084 ecx = edi; /* 0x3602A4AC: mov ecx, edi */ 7085 RECOMP_ICALL(MEM32(edx + 0xF8)); /* 0x3602A4AE: call dword ptr [edx + 0xf8] */ 7086 RECOMP_FLAGS_IN(); 7087 /* cmp eax, 2 */ /* 0x3602A4B4: cmp eax, 2 */ 7088 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 7089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7090 _flag_k = FK_CMP; 7091 if (CMP_NE(_flag_a, _flag_b)) goto L_3602A50B; /* 0x3602A4B7: jne 0x3602a50b */ 7092 L_3602A4B9: 7093 eax = MEM32(edi); /* 0x3602A4B9: mov eax, dword ptr [edi] */ 7094 PUSH32(esp, 1); /* 0x3602A4BB: push 1 */ 7095 PUSH32(esp, esi); /* 0x3602A4BD: push esi */ 7096 ecx = edi; /* 0x3602A4BE: mov ecx, edi */ 7097 RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x3602A4C0: call dword ptr [eax + 0x80] */ 7098 RECOMP_FLAGS_IN(); 7099 L_3602A4C6: 7100 PUSH32(esp, 0x34u); /* 0x3602A4C6: push 0x34 */ 7101 RECOMP_ICALL(0x3615FD6Au); /* 0x3602A4C8: call 0x3615fd6a */ /* not lifted */ 7102 RECOMP_FLAGS_IN(); 7103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7105 esp = esp + 4; /* 0x3602A4CD: add esp, 4 */ 7106 _flag_k = FK_ADD; 7107 MEM32(ebp + 0x8) = eax; /* 0x3602A4D0: mov dword ptr [ebp + 8], eax */ 7108 /* test eax, eax */ /* 0x3602A4D3: test eax, eax */ 7109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7110 _cf = 0; 7111 _flag_k = FK_TEST; 7112 MEM32(ebp + (-0x4)) = 0; /* 0x3602A4D5: mov dword ptr [ebp - 4], 0 */ 7113 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A4F3; /* 0x3602A4DC: je 0x3602a4f3 */ 7114 L_3602A4DE: 7115 PUSH32(esp, 0x6Fu); /* 0x3602A4DE: push 0x6f */ 7116 PUSH32(esp, ebx); /* 0x3602A4E0: push ebx */ 7117 PUSH32(esp, 0x362EA510u); /* 0x3602A4E1: push 0x362ea510 */ 7118 ecx = esi + 0x4; /* 0x3602A4E6: lea ecx, [esi + 4] */ 7119 PUSH32(esp, ecx); /* 0x3602A4E9: push ecx */ 7120 ecx = eax; /* 0x3602A4EA: mov ecx, eax */ 7121 RECOMP_ICALL(0x360425C0u); /* 0x3602A4EC: call 0x360425c0 */ /* not lifted */ 7122 RECOMP_FLAGS_IN(); 7123 goto L_3602A4F5; /* 0x3602A4F1: jmp 0x3602a4f5 */ 7124 L_3602A4F3: 7125 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7126 eax = 0; /* 0x3602A4F3: xor eax, eax */ 7127 _cf = 0; 7128 _flag_k = FK_TEST; 7129 L_3602A4F5: 7130 edx = ebp + (-0x10); /* 0x3602A4F5: lea edx, [ebp - 0x10] */ 7131 PUSH32(esp, edx); /* 0x3602A4F8: push edx */ 7132 ecx = esi; /* 0x3602A4F9: mov ecx, esi */ 7133 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602A4FB: mov dword ptr [ebp - 4], 0xffffffff */ 7134 MEM32(ebp + (-0x10)) = eax; /* 0x3602A502: mov dword ptr [ebp - 0x10], eax */ 7135 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602A505: call dword ptr [0x3617004c] */ 7136 RECOMP_FLAGS_IN(); 7137 L_3602A50B: 7138 ecx = MEM32(ebp + (-0xC)); /* 0x3602A50B: mov ecx, dword ptr [ebp - 0xc] */ 7139 edi = POP32_VAL(esp); /* 0x3602A50E: pop edi */ 7140 esi = POP32_VAL(esp); /* 0x3602A50F: pop esi */ 7141 ebx = POP32_VAL(esp); /* 0x3602A510: pop ebx */ 7142 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A511: mov dword ptr fs:[0], ecx */ 7143 esp = ebp; /* 0x3602A518: mov esp, ebp */ 7144 ebp = POP32_VAL(esp); /* 0x3602A51A: pop ebp */ 7145 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602A51B: ret 4 */ 7146 RECOMP_REGS_OUT(); 7147 } 7148 7149 void sub_3602A520(void) { 7150 int _fpu_cmp = 0; 7151 uint32_t _cf = 0; 7152 int _df = 1; 7153 uint32_t _flag_k = FK_NONE; 7154 uint32_t _flag_a = 0, _flag_b = 0; 7155 uint32_t _itail_tgt = 0; 7156 RECOMP_REGS_LOCALS 7157 RECOMP_ENTER(0x3602A520u); 7158 7159 L_3602A520: 7160 PUSH32(esp, ebp); /* 0x3602A520: push ebp */ 7161 ebp = esp; /* 0x3602A521: mov ebp, esp */ 7162 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602A523: push -1 */ 7163 PUSH32(esp, 0x361636BBu); /* 0x3602A525: push 0x361636bb */ 7164 eax = MEM32(FS_BASE + (0)); /* 0x3602A52A: mov eax, dword ptr fs:[0] */ 7165 PUSH32(esp, eax); /* 0x3602A530: push eax */ 7166 MEM32(FS_BASE + (0)) = esp; /* 0x3602A531: mov dword ptr fs:[0], esp */ 7167 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 7168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7169 esp = esp - 0x20u; /* 0x3602A538: sub esp, 0x20 */ 7170 _flag_k = FK_CMP; 7171 eax = MEM32(ecx + 0x88); /* 0x3602A53B: mov eax, dword ptr [ecx + 0x88] */ 7172 PUSH32(esp, ebx); /* 0x3602A541: push ebx */ 7173 PUSH32(esp, esi); /* 0x3602A542: push esi */ 7174 PUSH32(esp, edi); /* 0x3602A543: push edi */ 7175 PUSH32(esp, 0); /* 0x3602A544: push 0 */ 7176 PUSH32(esp, 0x361B2CD8u); /* 0x3602A546: push 0x361b2cd8 */ 7177 PUSH32(esp, 0x361B2CC0u); /* 0x3602A54B: push 0x361b2cc0 */ 7178 PUSH32(esp, 0); /* 0x3602A550: push 0 */ 7179 PUSH32(esp, eax); /* 0x3602A552: push eax */ 7180 RECOMP_ICALL(0x3615FD86u); /* 0x3602A553: call 0x3615fd86 */ /* not lifted */ 7181 RECOMP_FLAGS_IN(); 7182 esi = eax; /* 0x3602A558: mov esi, eax */ 7183 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7185 esp = esp + 0x14u; /* 0x3602A55A: add esp, 0x14 */ 7186 _flag_k = FK_ADD; 7187 ecx = esi; /* 0x3602A55D: mov ecx, esi */ 7188 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602A55F: call dword ptr [0x3616ffb0] */ 7189 RECOMP_FLAGS_IN(); 7190 ecx = MEM32(eax); /* 0x3602A565: mov ecx, dword ptr [eax] */ 7191 edx = MEM32(eax + 0x4); /* 0x3602A567: mov edx, dword ptr [eax + 4] */ 7192 ebx = MEM32(ebp + 0x10); /* 0x3602A56A: mov ebx, dword ptr [ebp + 0x10] */ 7193 eax = MEM32(eax + 0x8); /* 0x3602A56D: mov eax, dword ptr [eax + 8] */ 7194 MEM32(ebp + (-0x20)) = ecx; /* 0x3602A570: mov dword ptr [ebp - 0x20], ecx */ 7195 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3602A573: fld dword ptr [ebp - 0x20] */ 7196 _st[0] -= (double)*(float*)ADDR(ebx); /* 0x3602A576: fsub dword ptr [ebx] */ 7197 MEM32(ebp + (-0x1C)) = edx; /* 0x3602A578: mov dword ptr [ebp - 0x1c], edx */ 7198 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3602A57B: fld dword ptr [ebp - 0x1c] */ 7199 MEM32(ebp + (-0x18)) = eax; /* 0x3602A57E: mov dword ptr [ebp - 0x18], eax */ 7200 _st[0] -= (double)*(float*)ADDR(ebx + 0x4); /* 0x3602A581: fsub dword ptr [ebx + 4] */ 7201 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3602A584: fld dword ptr [ebp - 0x18] */ 7202 _st[0] -= (double)*(float*)ADDR(ebx + 0x8); /* 0x3602A587: fsub dword ptr [ebx + 8] */ 7203 fp_push(_st[0]); /* 0x3602A58A: fld st(0) */ 7204 _st[0] *= _st[1]; /* 0x3602A58C: fmul st(1) */ 7205 fp_push(_st[2]); /* 0x3602A58E: fld st(2) */ 7206 _st[0] *= _st[3]; /* 0x3602A590: fmul st(3) */ 7207 { double _v = fp_pop(); _st[0] += _v; } /* 0x3602A592: faddp st(1) */ 7208 fp_push(_st[3]); /* 0x3602A594: fld st(3) */ 7209 _st[0] *= _st[4]; /* 0x3602A596: fmul st(4) */ 7210 { double _v = fp_pop(); _st[0] += _v; } /* 0x3602A598: faddp st(1) */ 7211 _st[0] = sqrt(_st[0]); /* 0x3602A59A: fsqrt */ 7212 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3602A59C: fstp st(3) */ 7213 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3602A59E: fstp st(0) */ 7214 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3602A5A0: fstp st(0) */ 7215 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x3602A5A2: fcomp qword ptr [0x36170808] */ 7216 fp_pop(); 7217 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3602A5A8: fnstsw ax */ 7218 /* test HI8(eax), 0x41u */ /* 0x3602A5AA: test ah, 0x41 */ 7219 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 7220 _cf = 0; 7221 _flag_k = FK_NARROW(FK_TEST, 24); 7222 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602A5FF; /* 0x3602A5AD: jne 0x3602a5ff */ 7223 L_3602A5AF: 7224 PUSH32(esp, 0); /* 0x3602A5AF: push 0 */ 7225 PUSH32(esp, 0x361B6824u); /* 0x3602A5B1: push 0x361b6824 */ 7226 RECOMP_ICALL(0x3601C590u); /* 0x3602A5B6: call 0x3601c590 */ /* not lifted */ 7227 RECOMP_FLAGS_IN(); 7228 ecx = eax; /* 0x3602A5BB: mov ecx, eax */ 7229 RECOMP_ICALL(0x3601C8C0u); /* 0x3602A5BD: call 0x3601c8c0 */ /* not lifted */ 7230 RECOMP_FLAGS_IN(); 7231 L_3602A5C2: 7232 PUSH32(esp, 1); /* 0x3602A5C2: push 1 */ 7233 RECOMP_ICALL(0x3601C590u); /* 0x3602A5C4: call 0x3601c590 */ /* not lifted */ 7234 RECOMP_FLAGS_IN(); 7235 ecx = eax; /* 0x3602A5C9: mov ecx, eax */ 7236 RECOMP_ICALL(0x3601C880u); /* 0x3602A5CB: call 0x3601c880 */ /* not lifted */ 7237 RECOMP_FLAGS_IN(); 7238 PUSH32(esp, 3); /* 0x3602A5D0: push 3 */ 7239 RECOMP_ICALL(0x3601C590u); /* 0x3602A5D2: call 0x3601c590 */ /* not lifted */ 7240 RECOMP_FLAGS_IN(); 7241 ecx = eax; /* 0x3602A5D7: mov ecx, eax */ 7242 RECOMP_ICALL(0x3601C880u); /* 0x3602A5D9: call 0x3601c880 */ /* not lifted */ 7243 RECOMP_FLAGS_IN(); 7244 PUSH32(esp, 7); /* 0x3602A5DE: push 7 */ 7245 RECOMP_ICALL(0x3601C590u); /* 0x3602A5E0: call 0x3601c590 */ /* not lifted */ 7246 RECOMP_FLAGS_IN(); 7247 ecx = eax; /* 0x3602A5E5: mov ecx, eax */ 7248 RECOMP_ICALL(0x3601C880u); /* 0x3602A5E7: call 0x3601c880 */ /* not lifted */ 7249 RECOMP_FLAGS_IN(); 7250 edi = POP32_VAL(esp); /* 0x3602A5EC: pop edi */ 7251 esi = POP32_VAL(esp); /* 0x3602A5ED: pop esi */ 7252 ebx = POP32_VAL(esp); /* 0x3602A5EE: pop ebx */ 7253 ecx = MEM32(ebp + (-0xC)); /* 0x3602A5EF: mov ecx, dword ptr [ebp - 0xc] */ 7254 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A5F2: mov dword ptr fs:[0], ecx */ 7255 esp = ebp; /* 0x3602A5F9: mov esp, ebp */ 7256 ebp = POP32_VAL(esp); /* 0x3602A5FB: pop ebp */ 7257 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A5FC: ret 0xc */ 7258 L_3602A5FF: 7259 edi = MEM32(ebp + 0x8); /* 0x3602A5FF: mov edi, dword ptr [ebp + 8] */ 7260 /* cmp MEM32(edi), 0x68u */ /* 0x3602A602: cmp dword ptr [edi], 0x68 */ 7261 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0x68u); 7262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7263 _flag_k = FK_CMP; 7264 if (CMP_GE(_flag_a, _flag_b)) goto L_3602A639; /* 0x3602A605: jge 0x3602a639 */ 7265 L_3602A607: 7266 PUSH32(esp, 0); /* 0x3602A607: push 0 */ 7267 PUSH32(esp, 0x361B67ECu); /* 0x3602A609: push 0x361b67ec */ 7268 RECOMP_ICALL(0x3601C590u); /* 0x3602A60E: call 0x3601c590 */ /* not lifted */ 7269 RECOMP_FLAGS_IN(); 7270 ecx = eax; /* 0x3602A613: mov ecx, eax */ 7271 RECOMP_ICALL(0x3601C8C0u); /* 0x3602A615: call 0x3601c8c0 */ /* not lifted */ 7272 RECOMP_FLAGS_IN(); 7273 ecx = MEM32(esi + 0x150); /* 0x3602A61A: mov ecx, dword ptr [esi + 0x150] */ 7274 PUSH32(esp, edi); /* 0x3602A620: push edi */ 7275 RECOMP_ICALL(0x360624B0u); /* 0x3602A621: call 0x360624b0 */ /* not lifted */ 7276 RECOMP_FLAGS_IN(); 7277 edi = POP32_VAL(esp); /* 0x3602A626: pop edi */ 7278 esi = POP32_VAL(esp); /* 0x3602A627: pop esi */ 7279 ebx = POP32_VAL(esp); /* 0x3602A628: pop ebx */ 7280 ecx = MEM32(ebp + (-0xC)); /* 0x3602A629: mov ecx, dword ptr [ebp - 0xc] */ 7281 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A62C: mov dword ptr fs:[0], ecx */ 7282 esp = ebp; /* 0x3602A633: mov esp, ebp */ 7283 ebp = POP32_VAL(esp); /* 0x3602A635: pop ebp */ 7284 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A636: ret 0xc */ 7285 L_3602A639: 7286 eax = MEM32(esi + 0x78); /* 0x3602A639: mov eax, dword ptr [esi + 0x78] */ 7287 PUSH32(esp, eax); /* 0x3602A63C: push eax */ 7288 RECOMP_ICALL(0x3614CDD0u); /* 0x3602A63D: call 0x3614cdd0 */ /* not lifted */ 7289 RECOMP_FLAGS_IN(); 7290 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7291 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7292 esp = esp + 4; /* 0x3602A642: add esp, 4 */ 7293 _flag_k = FK_ADD; 7294 /* test eax, eax */ /* 0x3602A645: test eax, eax */ 7295 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7296 _cf = 0; 7297 _flag_k = FK_TEST; 7298 MEM32(ebp + 0x8) = eax; /* 0x3602A647: mov dword ptr [ebp + 8], eax */ 7299 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A89A; /* 0x3602A64A: je 0x3602a89a */ 7300 L_3602A650: 7301 ecx = eax; /* 0x3602A650: mov ecx, eax */ 7302 RECOMP_ICALL(MEM32(0x361700F0)); /* 0x3602A652: call dword ptr [0x361700f0] */ 7303 RECOMP_FLAGS_IN(); 7304 /* test LO8(eax), LO8(eax) */ /* 0x3602A658: test al, al */ 7305 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7306 _cf = 0; 7307 _flag_k = FK_NARROW(FK_TEST, 24); 7308 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602A89A; /* 0x3602A65A: jne 0x3602a89a */ 7309 L_3602A660: 7310 ecx = MEM32(ebx); /* 0x3602A660: mov ecx, dword ptr [ebx] */ 7311 edx = MEM32(ebx + 0x4); /* 0x3602A662: mov edx, dword ptr [ebx + 4] */ 7312 eax = MEM32(ebx + 0x8); /* 0x3602A665: mov eax, dword ptr [ebx + 8] */ 7313 MEM32(ebp + (-0x2C)) = ecx; /* 0x3602A668: mov dword ptr [ebp - 0x2c], ecx */ 7314 ecx = MEM32(ebp + 0x8); /* 0x3602A66B: mov ecx, dword ptr [ebp + 8] */ 7315 MEM32(ebp + (-0x28)) = edx; /* 0x3602A66E: mov dword ptr [ebp - 0x28], edx */ 7316 MEM32(ebp + (-0x24)) = eax; /* 0x3602A671: mov dword ptr [ebp - 0x24], eax */ 7317 RECOMP_ICALL(MEM32(0x361700C0)); /* 0x3602A674: call dword ptr [0x361700c0] */ 7318 RECOMP_FLAGS_IN(); 7319 edx = MEM32(eax); /* 0x3602A67A: mov edx, dword ptr [eax] */ 7320 PUSH32(esp, 0); /* 0x3602A67C: push 0 */ 7321 PUSH32(esp, 0); /* 0x3602A67E: push 0 */ 7322 ecx = ebp + (-0x2C); /* 0x3602A680: lea ecx, [ebp - 0x2c] */ 7323 PUSH32(esp, ecx); /* 0x3602A683: push ecx */ 7324 ecx = eax; /* 0x3602A684: mov ecx, eax */ 7325 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3602A686: call dword ptr [edx + 0x20] */ 7326 RECOMP_FLAGS_IN(); 7327 /* test LO8(eax), LO8(eax) */ /* 0x3602A689: test al, al */ 7328 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7329 _cf = 0; 7330 _flag_k = FK_NARROW(FK_TEST, 24); 7331 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A6C1; /* 0x3602A68B: je 0x3602a6c1 */ 7332 L_3602A68D: 7333 PUSH32(esp, 0); /* 0x3602A68D: push 0 */ 7334 PUSH32(esp, 0x361B67CCu); /* 0x3602A68F: push 0x361b67cc */ 7335 L_3602A694: 7336 RECOMP_ICALL(0x3601C590u); /* 0x3602A694: call 0x3601c590 */ /* not lifted */ 7337 RECOMP_FLAGS_IN(); 7338 ecx = eax; /* 0x3602A699: mov ecx, eax */ 7339 RECOMP_ICALL(0x3601C8C0u); /* 0x3602A69B: call 0x3601c8c0 */ /* not lifted */ 7340 RECOMP_FLAGS_IN(); 7341 PUSH32(esp, 1); /* 0x3602A6A0: push 1 */ 7342 RECOMP_ICALL(0x3601C590u); /* 0x3602A6A2: call 0x3601c590 */ /* not lifted */ 7343 RECOMP_FLAGS_IN(); 7344 ecx = eax; /* 0x3602A6A7: mov ecx, eax */ 7345 RECOMP_ICALL(0x3601C880u); /* 0x3602A6A9: call 0x3601c880 */ /* not lifted */ 7346 RECOMP_FLAGS_IN(); 7347 edi = POP32_VAL(esp); /* 0x3602A6AE: pop edi */ 7348 esi = POP32_VAL(esp); /* 0x3602A6AF: pop esi */ 7349 ebx = POP32_VAL(esp); /* 0x3602A6B0: pop ebx */ 7350 ecx = MEM32(ebp + (-0xC)); /* 0x3602A6B1: mov ecx, dword ptr [ebp - 0xc] */ 7351 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A6B4: mov dword ptr fs:[0], ecx */ 7352 esp = ebp; /* 0x3602A6BB: mov esp, ebp */ 7353 ebp = POP32_VAL(esp); /* 0x3602A6BD: pop ebp */ 7354 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A6BE: ret 0xc */ 7355 L_3602A6C1: 7356 ecx = MEM32(esi + 0x150); /* 0x3602A6C1: mov ecx, dword ptr [esi + 0x150] */ 7357 PUSH32(esp, edi); /* 0x3602A6C7: push edi */ 7358 RECOMP_ICALL(0x3605F970u); /* 0x3602A6C8: call 0x3605f970 */ /* not lifted */ 7359 RECOMP_FLAGS_IN(); 7360 ebx = eax; /* 0x3602A6CD: mov ebx, eax */ 7361 /* test ebx, ebx */ /* 0x3602A6CF: test ebx, ebx */ 7362 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 7363 _cf = 0; 7364 _flag_k = FK_TEST; 7365 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A757; /* 0x3602A6D1: je 0x3602a757 */ 7366 L_3602A6D7: 7367 edx = MEM32(ebx); /* 0x3602A6D7: mov edx, dword ptr [ebx] */ 7368 PUSH32(esp, 2); /* 0x3602A6D9: push 2 */ 7369 PUSH32(esp, esi); /* 0x3602A6DB: push esi */ 7370 ecx = ebx; /* 0x3602A6DC: mov ecx, ebx */ 7371 RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x3602A6DE: call dword ptr [edx + 0x80] */ 7372 RECOMP_FLAGS_IN(); 7373 eax = MEM32(ebx); /* 0x3602A6E4: mov eax, dword ptr [ebx] */ 7374 PUSH32(esp, 0x04000000u); /* 0x3602A6E6: push 0x4000000 */ 7375 ecx = ebx; /* 0x3602A6EB: mov ecx, ebx */ 7376 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x3602A6ED: call dword ptr [eax + 0x1c] */ 7377 RECOMP_FLAGS_IN(); 7378 /* test LO8(eax), LO8(eax) */ /* 0x3602A6F0: test al, al */ 7379 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7380 _cf = 0; 7381 _flag_k = FK_NARROW(FK_TEST, 24); 7382 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A757; /* 0x3602A6F2: je 0x3602a757 */ 7383 L_3602A6F4: 7384 PUSH32(esp, 0); /* 0x3602A6F4: push 0 */ 7385 PUSH32(esp, 0x361B679Cu); /* 0x3602A6F6: push 0x361b679c */ 7386 RECOMP_ICALL(0x3601C590u); /* 0x3602A6FB: call 0x3601c590 */ /* not lifted */ 7387 RECOMP_FLAGS_IN(); 7388 ecx = eax; /* 0x3602A700: mov ecx, eax */ 7389 RECOMP_ICALL(0x3601C8C0u); /* 0x3602A702: call 0x3601c8c0 */ /* not lifted */ 7390 RECOMP_FLAGS_IN(); 7391 /* cmp MEM32(edi), 0x6Bu */ /* 0x3602A707: cmp dword ptr [edi], 0x6b */ 7392 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0x6Bu); 7393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7394 _flag_k = FK_CMP; 7395 RECOMP_BACKEDGE(); 7396 if (CMP_NE(_flag_a, _flag_b)) goto L_3602A5C2; /* 0x3602A70A: jne 0x3602a5c2 */ 7397 L_3602A710: 7398 edi = MEM32(edi + 0x4); /* 0x3602A710: mov edi, dword ptr [edi + 4] */ 7399 ecx = MEM32(esi + 0x150); /* 0x3602A713: mov ecx, dword ptr [esi + 0x150] */ 7400 if (16u) _cf = (((edi) >> 15) & 1u); /* 0x3602A719: shr edi, 0x10 */ 7401 if (16u) { _flag_a = recomp_flags_pack((edi >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7402 edi = edi >> 16u; /* 0x3602A719: shr edi, 0x10 */ 7403 PUSH32(esp, edi); /* 0x3602A71C: push edi */ 7404 RECOMP_ICALL(0x3605E110u); /* 0x3602A71D: call 0x3605e110 */ /* not lifted */ 7405 RECOMP_FLAGS_IN(); 7406 ecx = ebp + (-0x14); /* 0x3602A722: lea ecx, [ebp - 0x14] */ 7407 /* cmp ecx, eax */ /* 0x3602A725: cmp ecx, eax */ 7408 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7410 _flag_k = FK_CMP; 7411 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A734; /* 0x3602A727: je 0x3602a734 */ 7412 L_3602A729: 7413 edx = MEM32(eax); /* 0x3602A729: mov edx, dword ptr [eax] */ 7414 MEM32(ebp + (-0x14)) = edx; /* 0x3602A72B: mov dword ptr [ebp - 0x14], edx */ 7415 eax = MEM32(eax + 0x4); /* 0x3602A72E: mov eax, dword ptr [eax + 4] */ 7416 MEM32(ebp + (-0x10)) = eax; /* 0x3602A731: mov dword ptr [ebp - 0x10], eax */ 7417 L_3602A734: 7418 ecx = ebp + (-0x14); /* 0x3602A734: lea ecx, [ebp - 0x14] */ 7419 PUSH32(esp, ecx); /* 0x3602A737: push ecx */ 7420 RECOMP_ICALL(0x3601C590u); /* 0x3602A738: call 0x3601c590 */ /* not lifted */ 7421 RECOMP_FLAGS_IN(); 7422 ecx = eax; /* 0x3602A73D: mov ecx, eax */ 7423 RECOMP_ICALL(0x3601CA80u); /* 0x3602A73F: call 0x3601ca80 */ /* not lifted */ 7424 RECOMP_FLAGS_IN(); 7425 edi = POP32_VAL(esp); /* 0x3602A744: pop edi */ 7426 esi = POP32_VAL(esp); /* 0x3602A745: pop esi */ 7427 ebx = POP32_VAL(esp); /* 0x3602A746: pop ebx */ 7428 ecx = MEM32(ebp + (-0xC)); /* 0x3602A747: mov ecx, dword ptr [ebp - 0xc] */ 7429 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A74A: mov dword ptr fs:[0], ecx */ 7430 esp = ebp; /* 0x3602A751: mov esp, ebp */ 7431 ebp = POP32_VAL(esp); /* 0x3602A753: pop ebp */ 7432 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A754: ret 0xc */ 7433 L_3602A757: 7434 eax = MEM32(esi + 0x150); /* 0x3602A757: mov eax, dword ptr [esi + 0x150] */ 7435 ebx = MEM32(edi + 0x4); /* 0x3602A75D: mov ebx, dword ptr [edi + 4] */ 7436 eax = MEM32(eax + 0xC); /* 0x3602A760: mov eax, dword ptr [eax + 0xc] */ 7437 PUSH32(esp, ebx); /* 0x3602A763: push ebx */ 7438 ecx = eax; /* 0x3602A764: mov ecx, eax */ 7439 RECOMP_ICALL(0x3602D7B0u); /* 0x3602A766: call 0x3602d7b0 */ /* not lifted */ 7440 RECOMP_FLAGS_IN(); 7441 /* test LO8(eax), LO8(eax) */ /* 0x3602A76B: test al, al */ 7442 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7443 _cf = 0; 7444 _flag_k = FK_NARROW(FK_TEST, 24); 7445 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A7C7; /* 0x3602A76D: je 0x3602a7c7 */ 7446 L_3602A76F: 7447 eax = MEM32(esi + 0x150); /* 0x3602A76F: mov eax, dword ptr [esi + 0x150] */ 7448 eax = MEM32(eax + 0xC); /* 0x3602A775: mov eax, dword ptr [eax + 0xc] */ 7449 PUSH32(esp, ebx); /* 0x3602A778: push ebx */ 7450 ecx = eax; /* 0x3602A779: mov ecx, eax */ 7451 RECOMP_ICALL(0x3602D980u); /* 0x3602A77B: call 0x3602d980 */ /* not lifted */ 7452 RECOMP_FLAGS_IN(); 7453 /* test eax, eax */ /* 0x3602A780: test eax, eax */ 7454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7455 _cf = 0; 7456 _flag_k = FK_TEST; 7457 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A7C7; /* 0x3602A782: je 0x3602a7c7 */ 7458 L_3602A784: 7459 /* cmp MEM32(eax + 0x90), 0xC749u */ /* 0x3602A784: cmp dword ptr [eax + 0x90], 0xc749 */ 7460 _flag_a = (uint32_t)(MEM32(eax + 0x90)); _flag_b = (uint32_t)(0xC749u); 7461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7462 _flag_k = FK_CMP; 7463 if (CMP_NE(_flag_a, _flag_b)) goto L_3602A7C7; /* 0x3602A78E: jne 0x3602a7c7 */ 7464 L_3602A790: 7465 PUSH32(esp, 0); /* 0x3602A790: push 0 */ 7466 PUSH32(esp, 0x361B5C10u); /* 0x3602A792: push 0x361b5c10 */ 7467 PUSH32(esp, 0x361B2CF8u); /* 0x3602A797: push 0x361b2cf8 */ 7468 PUSH32(esp, 0); /* 0x3602A79C: push 0 */ 7469 PUSH32(esp, eax); /* 0x3602A79E: push eax */ 7470 RECOMP_ICALL(0x3615FD86u); /* 0x3602A79F: call 0x3615fd86 */ /* not lifted */ 7471 RECOMP_FLAGS_IN(); 7472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7474 esp = esp + 0x14u; /* 0x3602A7A4: add esp, 0x14 */ 7475 _flag_k = FK_ADD; 7476 /* test eax, eax */ /* 0x3602A7A7: test eax, eax */ 7477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7478 _cf = 0; 7479 _flag_k = FK_TEST; 7480 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A7C7; /* 0x3602A7A9: je 0x3602a7c7 */ 7481 L_3602A7AB: 7482 PUSH32(esp, 0x04000000u); /* 0x3602A7AB: push 0x4000000 */ 7483 ecx = eax; /* 0x3602A7B0: mov ecx, eax */ 7484 RECOMP_ICALL(0x3608BDD0u); /* 0x3602A7B2: call 0x3608bdd0 */ /* not lifted */ 7485 RECOMP_FLAGS_IN(); 7486 /* test LO8(eax), LO8(eax) */ /* 0x3602A7B7: test al, al */ 7487 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7488 _cf = 0; 7489 _flag_k = FK_NARROW(FK_TEST, 24); 7490 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A7C7; /* 0x3602A7B9: je 0x3602a7c7 */ 7491 L_3602A7BB: 7492 PUSH32(esp, 0); /* 0x3602A7BB: push 0 */ 7493 PUSH32(esp, 0x361B6768u); /* 0x3602A7BD: push 0x361b6768 */ 7494 RECOMP_BACKEDGE(); 7495 goto L_3602A694; /* 0x3602A7C2: jmp 0x3602a694 */ 7496 L_3602A7C7: 7497 eax = MEM32(edi); /* 0x3602A7C7: mov eax, dword ptr [edi] */ 7498 /* cmp eax, 0x64u */ /* 0x3602A7C9: cmp eax, 0x64 */ 7499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u); 7500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7501 _flag_k = FK_CMP; 7502 if (CMP_LE(_flag_a, _flag_b)) goto L_3602A89A; /* 0x3602A7CC: jle 0x3602a89a */ 7503 L_3602A7D2: 7504 /* cmp eax, 0xFAu */ /* 0x3602A7D2: cmp eax, 0xfa */ 7505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFAu); 7506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7507 _flag_k = FK_CMP; 7508 if (CMP_GE(_flag_a, _flag_b)) goto L_3602A89A; /* 0x3602A7D7: jge 0x3602a89a */ 7509 L_3602A7DD: 7510 ebx = MEM32(ebp + 0x10); /* 0x3602A7DD: mov ebx, dword ptr [ebp + 0x10] */ 7511 ecx = MEM32(esi + 0x150); /* 0x3602A7E0: mov ecx, dword ptr [esi + 0x150] */ 7512 PUSH32(esp, ebx); /* 0x3602A7E6: push ebx */ 7513 PUSH32(esp, edi); /* 0x3602A7E7: push edi */ 7514 RECOMP_ICALL(0x36061D70u); /* 0x3602A7E8: call 0x36061d70 */ /* not lifted */ 7515 RECOMP_FLAGS_IN(); 7516 /* test LO8(eax), LO8(eax) */ /* 0x3602A7ED: test al, al */ 7517 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7518 _cf = 0; 7519 _flag_k = FK_NARROW(FK_TEST, 24); 7520 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602A84D; /* 0x3602A7EF: jne 0x3602a84d */ 7521 L_3602A7F1: 7522 ecx = MEM32(esi + 0x150); /* 0x3602A7F1: mov ecx, dword ptr [esi + 0x150] */ 7523 PUSH32(esp, edi); /* 0x3602A7F7: push edi */ 7524 RECOMP_ICALL(0x360624B0u); /* 0x3602A7F8: call 0x360624b0 */ /* not lifted */ 7525 RECOMP_FLAGS_IN(); 7526 /* cmp MEM32(edi), 0x6Bu */ /* 0x3602A7FD: cmp dword ptr [edi], 0x6b */ 7527 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(0x6Bu); 7528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7529 _flag_k = FK_CMP; 7530 if (CMP_NE(_flag_a, _flag_b)) goto L_3602A89A; /* 0x3602A800: jne 0x3602a89a */ 7531 L_3602A806: 7532 edi = MEM32(edi + 0x4); /* 0x3602A806: mov edi, dword ptr [edi + 4] */ 7533 ecx = MEM32(esi + 0x150); /* 0x3602A809: mov ecx, dword ptr [esi + 0x150] */ 7534 if (16u) _cf = (((edi) >> 15) & 1u); /* 0x3602A80F: shr edi, 0x10 */ 7535 if (16u) { _flag_a = recomp_flags_pack((edi >> 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7536 edi = edi >> 16u; /* 0x3602A80F: shr edi, 0x10 */ 7537 PUSH32(esp, edi); /* 0x3602A812: push edi */ 7538 RECOMP_ICALL(0x3605E110u); /* 0x3602A813: call 0x3605e110 */ /* not lifted */ 7539 RECOMP_FLAGS_IN(); 7540 edx = ebp + (-0x1C); /* 0x3602A818: lea edx, [ebp - 0x1c] */ 7541 /* cmp edx, eax */ /* 0x3602A81B: cmp edx, eax */ 7542 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7544 _flag_k = FK_CMP; 7545 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A82A; /* 0x3602A81D: je 0x3602a82a */ 7546 L_3602A81F: 7547 ecx = MEM32(eax); /* 0x3602A81F: mov ecx, dword ptr [eax] */ 7548 MEM32(ebp + (-0x1C)) = ecx; /* 0x3602A821: mov dword ptr [ebp - 0x1c], ecx */ 7549 edx = MEM32(eax + 0x4); /* 0x3602A824: mov edx, dword ptr [eax + 4] */ 7550 MEM32(ebp + (-0x18)) = edx; /* 0x3602A827: mov dword ptr [ebp - 0x18], edx */ 7551 L_3602A82A: 7552 eax = ebp + (-0x1C); /* 0x3602A82A: lea eax, [ebp - 0x1c] */ 7553 PUSH32(esp, eax); /* 0x3602A82D: push eax */ 7554 RECOMP_ICALL(0x3601C590u); /* 0x3602A82E: call 0x3601c590 */ /* not lifted */ 7555 RECOMP_FLAGS_IN(); 7556 ecx = eax; /* 0x3602A833: mov ecx, eax */ 7557 RECOMP_ICALL(0x3601CA80u); /* 0x3602A835: call 0x3601ca80 */ /* not lifted */ 7558 RECOMP_FLAGS_IN(); 7559 edi = POP32_VAL(esp); /* 0x3602A83A: pop edi */ 7560 esi = POP32_VAL(esp); /* 0x3602A83B: pop esi */ 7561 ebx = POP32_VAL(esp); /* 0x3602A83C: pop ebx */ 7562 ecx = MEM32(ebp + (-0xC)); /* 0x3602A83D: mov ecx, dword ptr [ebp - 0xc] */ 7563 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A840: mov dword ptr fs:[0], ecx */ 7564 esp = ebp; /* 0x3602A847: mov esp, ebp */ 7565 ebp = POP32_VAL(esp); /* 0x3602A849: pop ebp */ 7566 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A84A: ret 0xc */ 7567 L_3602A84D: 7568 PUSH32(esp, 0x34u); /* 0x3602A84D: push 0x34 */ 7569 RECOMP_ICALL(0x3615FD6Au); /* 0x3602A84F: call 0x3615fd6a */ /* not lifted */ 7570 RECOMP_FLAGS_IN(); 7571 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7573 esp = esp + 4; /* 0x3602A854: add esp, 4 */ 7574 _flag_k = FK_ADD; 7575 MEM32(ebp + 0x8) = eax; /* 0x3602A857: mov dword ptr [ebp + 8], eax */ 7576 /* test eax, eax */ /* 0x3602A85A: test eax, eax */ 7577 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7578 _cf = 0; 7579 _flag_k = FK_TEST; 7580 MEM32(ebp + (-0x4)) = 0; /* 0x3602A85C: mov dword ptr [ebp - 4], 0 */ 7581 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A874; /* 0x3602A863: je 0x3602a874 */ 7582 L_3602A865: 7583 PUSH32(esp, ebx); /* 0x3602A865: push ebx */ 7584 PUSH32(esp, edi); /* 0x3602A866: push edi */ 7585 ecx = esi + 0x4; /* 0x3602A867: lea ecx, [esi + 4] */ 7586 PUSH32(esp, ecx); /* 0x3602A86A: push ecx */ 7587 ecx = eax; /* 0x3602A86B: mov ecx, eax */ 7588 RECOMP_ICALL(0x3607DFA0u); /* 0x3602A86D: call 0x3607dfa0 */ /* not lifted */ 7589 RECOMP_FLAGS_IN(); 7590 goto L_3602A876; /* 0x3602A872: jmp 0x3602a876 */ 7591 L_3602A874: 7592 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7593 eax = 0; /* 0x3602A874: xor eax, eax */ 7594 _cf = 0; 7595 _flag_k = FK_TEST; 7596 L_3602A876: 7597 edx = ebp + 0x10; /* 0x3602A876: lea edx, [ebp + 0x10] */ 7598 PUSH32(esp, edx); /* 0x3602A879: push edx */ 7599 ecx = esi; /* 0x3602A87A: mov ecx, esi */ 7600 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602A87C: mov dword ptr [ebp - 4], 0xffffffff */ 7601 MEM32(ebp + 0x10) = eax; /* 0x3602A883: mov dword ptr [ebp + 0x10], eax */ 7602 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602A886: call dword ptr [0x3617004c] */ 7603 RECOMP_FLAGS_IN(); 7604 ecx = esi; /* 0x3602A88C: mov ecx, esi */ 7605 RECOMP_ICALL(0x36072000u); /* 0x3602A88E: call 0x36072000 */ /* not lifted */ 7606 RECOMP_FLAGS_IN(); 7607 ecx = eax; /* 0x3602A893: mov ecx, eax */ 7608 RECOMP_ICALL(0x36057C40u); /* 0x3602A895: call 0x36057c40 */ /* not lifted */ 7609 RECOMP_FLAGS_IN(); 7610 L_3602A89A: 7611 ecx = MEM32(ebp + (-0xC)); /* 0x3602A89A: mov ecx, dword ptr [ebp - 0xc] */ 7612 edi = POP32_VAL(esp); /* 0x3602A89D: pop edi */ 7613 esi = POP32_VAL(esp); /* 0x3602A89E: pop esi */ 7614 ebx = POP32_VAL(esp); /* 0x3602A89F: pop ebx */ 7615 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A8A0: mov dword ptr fs:[0], ecx */ 7616 esp = ebp; /* 0x3602A8A7: mov esp, ebp */ 7617 ebp = POP32_VAL(esp); /* 0x3602A8A9: pop ebp */ 7618 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A8AA: ret 0xc */ 7619 RECOMP_REGS_OUT(); 7620 } 7621 7622 void sub_3602A694(void) { 7623 int _fpu_cmp = 0; 7624 uint32_t _cf = 0; 7625 int _df = 1; 7626 uint32_t _flag_k = FK_NONE; 7627 uint32_t _flag_a = 0, _flag_b = 0; 7628 uint32_t _itail_tgt = 0; 7629 RECOMP_REGS_LOCALS 7630 RECOMP_ENTER(0x3602A694u); 7631 7632 L_3602A694: 7633 RECOMP_ICALL(0x3601C590u); /* 0x3602A694: call 0x3601c590 */ /* not lifted */ 7634 RECOMP_FLAGS_IN(); 7635 ecx = eax; /* 0x3602A699: mov ecx, eax */ 7636 RECOMP_ICALL(0x3601C8C0u); /* 0x3602A69B: call 0x3601c8c0 */ /* not lifted */ 7637 RECOMP_FLAGS_IN(); 7638 PUSH32(esp, 1); /* 0x3602A6A0: push 1 */ 7639 RECOMP_ICALL(0x3601C590u); /* 0x3602A6A2: call 0x3601c590 */ /* not lifted */ 7640 RECOMP_FLAGS_IN(); 7641 ecx = eax; /* 0x3602A6A7: mov ecx, eax */ 7642 RECOMP_ICALL(0x3601C880u); /* 0x3602A6A9: call 0x3601c880 */ /* not lifted */ 7643 RECOMP_FLAGS_IN(); 7644 edi = POP32_VAL(esp); /* 0x3602A6AE: pop edi */ 7645 esi = POP32_VAL(esp); /* 0x3602A6AF: pop esi */ 7646 ebx = POP32_VAL(esp); /* 0x3602A6B0: pop ebx */ 7647 ecx = MEM32(ebp + (-0xC)); /* 0x3602A6B1: mov ecx, dword ptr [ebp - 0xc] */ 7648 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A6B4: mov dword ptr fs:[0], ecx */ 7649 esp = ebp; /* 0x3602A6BB: mov esp, ebp */ 7650 ebp = POP32_VAL(esp); /* 0x3602A6BD: pop ebp */ 7651 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602A6BE: ret 0xc */ 7652 RECOMP_REGS_OUT(); 7653 } 7654 7655 void sub_3602A8B0(void) { 7656 int _fpu_cmp = 0; 7657 uint32_t _cf = 0; 7658 int _df = 1; 7659 uint32_t _flag_k = FK_NONE; 7660 uint32_t _flag_a = 0, _flag_b = 0; 7661 uint32_t _itail_tgt = 0; 7662 RECOMP_REGS_LOCALS 7663 RECOMP_ENTER(0x3602A8B0u); 7664 7665 L_3602A8B0: 7666 PUSH32(esp, ebp); /* 0x3602A8B0: push ebp */ 7667 ebp = esp; /* 0x3602A8B1: mov ebp, esp */ 7668 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602A8B3: push -1 */ 7669 PUSH32(esp, 0x361636E6u); /* 0x3602A8B5: push 0x361636e6 */ 7670 eax = MEM32(FS_BASE + (0)); /* 0x3602A8BA: mov eax, dword ptr fs:[0] */ 7671 PUSH32(esp, eax); /* 0x3602A8C0: push eax */ 7672 MEM32(FS_BASE + (0)) = esp; /* 0x3602A8C1: mov dword ptr fs:[0], esp */ 7673 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7675 esp = esp - 0xCu; /* 0x3602A8C8: sub esp, 0xc */ 7676 _flag_k = FK_CMP; 7677 PUSH32(esp, ebx); /* 0x3602A8CB: push ebx */ 7678 ebx = MEM32(ebp + 0xC); /* 0x3602A8CC: mov ebx, dword ptr [ebp + 0xc] */ 7679 edx = MEM32(ebx + 0x4); /* 0x3602A8CF: mov edx, dword ptr [ebx + 4] */ 7680 PUSH32(esp, esi); /* 0x3602A8D2: push esi */ 7681 PUSH32(esp, edi); /* 0x3602A8D3: push edi */ 7682 edi = MEM32(ebp + 0x8); /* 0x3602A8D4: mov edi, dword ptr [ebp + 8] */ 7683 eax = MEM32(edi + 0x4); /* 0x3602A8D7: mov eax, dword ptr [edi + 4] */ 7684 /* cmp eax, edx */ /* 0x3602A8DA: cmp eax, edx */ 7685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7687 _flag_k = FK_CMP; 7688 MEM32(ebp + (-0x10)) = ecx; /* 0x3602A8DC: mov dword ptr [ebp - 0x10], ecx */ 7689 if (CMP_NE(_flag_a, _flag_b)) goto L_3602A8EB; /* 0x3602A8DF: jne 0x3602a8eb */ 7690 L_3602A8E1: 7691 edx = MEM32(edi); /* 0x3602A8E1: mov edx, dword ptr [edi] */ 7692 /* cmp edx, MEM32(ebx) */ /* 0x3602A8E3: cmp edx, dword ptr [ebx] */ 7693 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebx)); 7694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7695 _flag_k = FK_CMP; 7696 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A9A5; /* 0x3602A8E5: je 0x3602a9a5 */ 7697 L_3602A8EB: 7698 eax = MEM32(ecx + 0x88); /* 0x3602A8EB: mov eax, dword ptr [ecx + 0x88] */ 7699 PUSH32(esp, 0); /* 0x3602A8F1: push 0 */ 7700 PUSH32(esp, 0x361B2CD8u); /* 0x3602A8F3: push 0x361b2cd8 */ 7701 PUSH32(esp, 0x361B2CC0u); /* 0x3602A8F8: push 0x361b2cc0 */ 7702 PUSH32(esp, 0); /* 0x3602A8FD: push 0 */ 7703 PUSH32(esp, eax); /* 0x3602A8FF: push eax */ 7704 RECOMP_ICALL(0x3615FD86u); /* 0x3602A900: call 0x3615fd86 */ /* not lifted */ 7705 RECOMP_FLAGS_IN(); 7706 esi = eax; /* 0x3602A905: mov esi, eax */ 7707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7709 esp = esp + 0x14u; /* 0x3602A907: add esp, 0x14 */ 7710 _flag_k = FK_ADD; 7711 /* test esi, esi */ /* 0x3602A90A: test esi, esi */ 7712 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7713 _cf = 0; 7714 _flag_k = FK_TEST; 7715 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A9A5; /* 0x3602A90C: je 0x3602a9a5 */ 7716 L_3602A912: 7717 ecx = MEM32(esi + 0x150); /* 0x3602A912: mov ecx, dword ptr [esi + 0x150] */ 7718 PUSH32(esp, edi); /* 0x3602A918: push edi */ 7719 RECOMP_ICALL(0x3605F970u); /* 0x3602A919: call 0x3605f970 */ /* not lifted */ 7720 RECOMP_FLAGS_IN(); 7721 /* test eax, eax */ /* 0x3602A91E: test eax, eax */ 7722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7723 _cf = 0; 7724 _flag_k = FK_TEST; 7725 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A92F; /* 0x3602A920: je 0x3602a92f */ 7726 L_3602A922: 7727 edx = MEM32(eax); /* 0x3602A922: mov edx, dword ptr [eax] */ 7728 PUSH32(esp, 5); /* 0x3602A924: push 5 */ 7729 PUSH32(esp, esi); /* 0x3602A926: push esi */ 7730 ecx = eax; /* 0x3602A927: mov ecx, eax */ 7731 RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x3602A929: call dword ptr [edx + 0x80] */ 7732 RECOMP_FLAGS_IN(); 7733 L_3602A92F: 7734 eax = esi + 0x4; /* 0x3602A92F: lea eax, [esi + 4] */ 7735 ecx = ebp + (-0x18); /* 0x3602A932: lea ecx, [ebp - 0x18] */ 7736 /* cmp ecx, eax */ /* 0x3602A935: cmp ecx, eax */ 7737 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7739 _flag_k = FK_CMP; 7740 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A944; /* 0x3602A937: je 0x3602a944 */ 7741 L_3602A939: 7742 edx = MEM32(eax); /* 0x3602A939: mov edx, dword ptr [eax] */ 7743 eax = MEM32(eax + 0x4); /* 0x3602A93B: mov eax, dword ptr [eax + 4] */ 7744 MEM32(ebp + (-0x18)) = edx; /* 0x3602A93E: mov dword ptr [ebp - 0x18], edx */ 7745 MEM32(ebp + (-0x14)) = eax; /* 0x3602A941: mov dword ptr [ebp - 0x14], eax */ 7746 L_3602A944: 7747 PUSH32(esp, 0x24u); /* 0x3602A944: push 0x24 */ 7748 RECOMP_ICALL(0x3615FD6Au); /* 0x3602A946: call 0x3615fd6a */ /* not lifted */ 7749 RECOMP_FLAGS_IN(); 7750 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7752 esp = esp + 4; /* 0x3602A94B: add esp, 4 */ 7753 _flag_k = FK_ADD; 7754 MEM32(ebp + 0x8) = eax; /* 0x3602A94E: mov dword ptr [ebp + 8], eax */ 7755 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7756 esi = 0; /* 0x3602A951: xor esi, esi */ 7757 _cf = 0; 7758 _flag_k = FK_TEST; 7759 /* cmp eax, esi */ /* 0x3602A953: cmp eax, esi */ 7760 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7762 _flag_k = FK_CMP; 7763 MEM32(ebp + (-0x4)) = esi; /* 0x3602A955: mov dword ptr [ebp - 4], esi */ 7764 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602A969; /* 0x3602A958: je 0x3602a969 */ 7765 L_3602A95A: 7766 PUSH32(esp, ebx); /* 0x3602A95A: push ebx */ 7767 PUSH32(esp, edi); /* 0x3602A95B: push edi */ 7768 ecx = ebp + (-0x18); /* 0x3602A95C: lea ecx, [ebp - 0x18] */ 7769 PUSH32(esp, ecx); /* 0x3602A95F: push ecx */ 7770 ecx = eax; /* 0x3602A960: mov ecx, eax */ 7771 RECOMP_ICALL(0x3604BFA0u); /* 0x3602A962: call 0x3604bfa0 */ /* not lifted */ 7772 RECOMP_FLAGS_IN(); 7773 esi = eax; /* 0x3602A967: mov esi, eax */ 7774 L_3602A969: 7775 _flag_a = (uint32_t)((edi | 0xFFFFFFFFu)); _flag_b = (uint32_t)((edi | 0xFFFFFFFFu)); 7776 edi = edi | 0xFFFFFFFFu; /* 0x3602A969: or edi, 0xffffffff */ 7777 _cf = 0; 7778 _flag_k = FK_TEST; 7779 PUSH32(esp, 0x34u); /* 0x3602A96C: push 0x34 */ 7780 MEM32(ebp + (-0x4)) = edi; /* 0x3602A96E: mov dword ptr [ebp - 4], edi */ 7781 RECOMP_ICALL(0x3615FD6Au); /* 0x3602A971: call 0x3615fd6a */ /* not lifted */ 7782 RECOMP_FLAGS_IN(); 7783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7785 esp = esp + 4; /* 0x3602A976: add esp, 4 */ 7786 _flag_k = FK_ADD; 7787 MEM32(ebp + 0x8) = eax; /* 0x3602A979: mov dword ptr [ebp + 8], eax */ 7788 /* test eax, eax */ /* 0x3602A97C: test eax, eax */ 7789 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7790 _cf = 0; 7791 _flag_k = FK_TEST; 7792 MEM32(ebp + (-0x4)) = 1; /* 0x3602A97E: mov dword ptr [ebp - 4], 1 */ 7793 if (TEST_Z(_flag_a, _flag_b)) goto L_3602A997; /* 0x3602A985: je 0x3602a997 */ 7794 L_3602A987: 7795 PUSH32(esp, 5); /* 0x3602A987: push 5 */ 7796 PUSH32(esp, esi); /* 0x3602A989: push esi */ 7797 edx = ebp + (-0x18); /* 0x3602A98A: lea edx, [ebp - 0x18] */ 7798 PUSH32(esp, edx); /* 0x3602A98D: push edx */ 7799 ecx = eax; /* 0x3602A98E: mov ecx, eax */ 7800 RECOMP_ICALL(0x36087850u); /* 0x3602A990: call 0x36087850 */ /* not lifted */ 7801 RECOMP_FLAGS_IN(); 7802 goto L_3602A999; /* 0x3602A995: jmp 0x3602a999 */ 7803 L_3602A997: 7804 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7805 eax = 0; /* 0x3602A997: xor eax, eax */ 7806 _cf = 0; 7807 _flag_k = FK_TEST; 7808 L_3602A999: 7809 ecx = MEM32(ebp + (-0x10)); /* 0x3602A999: mov ecx, dword ptr [ebp - 0x10] */ 7810 edx = MEM32(ecx); /* 0x3602A99C: mov edx, dword ptr [ecx] */ 7811 PUSH32(esp, eax); /* 0x3602A99E: push eax */ 7812 MEM32(ebp + (-0x4)) = edi; /* 0x3602A99F: mov dword ptr [ebp - 4], edi */ 7813 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3602A9A2: call dword ptr [edx + 0x38] */ 7814 RECOMP_FLAGS_IN(); 7815 L_3602A9A5: 7816 ecx = MEM32(ebp + (-0xC)); /* 0x3602A9A5: mov ecx, dword ptr [ebp - 0xc] */ 7817 edi = POP32_VAL(esp); /* 0x3602A9A8: pop edi */ 7818 esi = POP32_VAL(esp); /* 0x3602A9A9: pop esi */ 7819 ebx = POP32_VAL(esp); /* 0x3602A9AA: pop ebx */ 7820 MEM32(FS_BASE + (0)) = ecx; /* 0x3602A9AB: mov dword ptr fs:[0], ecx */ 7821 esp = ebp; /* 0x3602A9B2: mov esp, ebp */ 7822 ebp = POP32_VAL(esp); /* 0x3602A9B4: pop ebp */ 7823 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602A9B5: ret 8 */ 7824 RECOMP_REGS_OUT(); 7825 } 7826 7827 void sub_3602A9C0(void) { 7828 int _fpu_cmp = 0; 7829 uint32_t _cf = 0; 7830 int _df = 1; 7831 uint32_t _flag_k = FK_NONE; 7832 uint32_t _flag_a = 0, _flag_b = 0; 7833 uint32_t _itail_tgt = 0; 7834 RECOMP_REGS_LOCALS 7835 RECOMP_ENTER(0x3602A9C0u); 7836 7837 L_3602A9C0: 7838 PUSH32(esp, ebp); /* 0x3602A9C0: push ebp */ 7839 ebp = esp; /* 0x3602A9C1: mov ebp, esp */ 7840 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602A9C3: push -1 */ 7841 PUSH32(esp, 0x36163706u); /* 0x3602A9C5: push 0x36163706 */ 7842 eax = MEM32(FS_BASE + (0)); /* 0x3602A9CA: mov eax, dword ptr fs:[0] */ 7843 PUSH32(esp, eax); /* 0x3602A9D0: push eax */ 7844 MEM32(FS_BASE + (0)) = esp; /* 0x3602A9D1: mov dword ptr fs:[0], esp */ 7845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7847 esp = esp - 0xCu; /* 0x3602A9D8: sub esp, 0xc */ 7848 _flag_k = FK_CMP; 7849 PUSH32(esp, esi); /* 0x3602A9DB: push esi */ 7850 PUSH32(esp, edi); /* 0x3602A9DC: push edi */ 7851 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7852 edi = 0; /* 0x3602A9DD: xor edi, edi */ 7853 _cf = 0; 7854 _flag_k = FK_TEST; 7855 PUSH32(esp, edi); /* 0x3602A9DF: push edi */ 7856 PUSH32(esp, 0x361B2CD8u); /* 0x3602A9E0: push 0x361b2cd8 */ 7857 esi = ecx; /* 0x3602A9E5: mov esi, ecx */ 7858 eax = MEM32(esi + 0x88); /* 0x3602A9E7: mov eax, dword ptr [esi + 0x88] */ 7859 PUSH32(esp, 0x361B2CC0u); /* 0x3602A9ED: push 0x361b2cc0 */ 7860 PUSH32(esp, edi); /* 0x3602A9F2: push edi */ 7861 PUSH32(esp, eax); /* 0x3602A9F3: push eax */ 7862 RECOMP_ICALL(0x3615FD86u); /* 0x3602A9F4: call 0x3615fd86 */ /* not lifted */ 7863 RECOMP_FLAGS_IN(); 7864 eax = MEM32(esi + 0x84); /* 0x3602A9F9: mov eax, dword ptr [esi + 0x84] */ 7865 PUSH32(esp, 0x24u); /* 0x3602A9FF: push 0x24 */ 7866 MEM32(ebp + (-0x18)) = 0xC350u; /* 0x3602AA01: mov dword ptr [ebp - 0x18], 0xc350 */ 7867 MEM32(ebp + (-0x14)) = eax; /* 0x3602AA08: mov dword ptr [ebp - 0x14], eax */ 7868 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AA0B: call 0x3615fd6a */ /* not lifted */ 7869 RECOMP_FLAGS_IN(); 7870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 7871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7872 esp = esp + 0x18u; /* 0x3602AA10: add esp, 0x18 */ 7873 _flag_k = FK_ADD; 7874 MEM32(ebp + (-0x10)) = eax; /* 0x3602AA13: mov dword ptr [ebp - 0x10], eax */ 7875 /* cmp eax, edi */ /* 0x3602AA16: cmp eax, edi */ 7876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7878 _flag_k = FK_CMP; 7879 MEM32(ebp + (-0x4)) = edi; /* 0x3602AA18: mov dword ptr [ebp - 4], edi */ 7880 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602AA32; /* 0x3602AA1B: je 0x3602aa32 */ 7881 L_3602AA1D: 7882 ecx = MEM32(ebp + 0xC); /* 0x3602AA1D: mov ecx, dword ptr [ebp + 0xc] */ 7883 edx = MEM32(ebp + 0x8); /* 0x3602AA20: mov edx, dword ptr [ebp + 8] */ 7884 PUSH32(esp, ecx); /* 0x3602AA23: push ecx */ 7885 PUSH32(esp, edx); /* 0x3602AA24: push edx */ 7886 ecx = ebp + (-0x18); /* 0x3602AA25: lea ecx, [ebp - 0x18] */ 7887 PUSH32(esp, ecx); /* 0x3602AA28: push ecx */ 7888 ecx = eax; /* 0x3602AA29: mov ecx, eax */ 7889 RECOMP_ICALL(0x3604BFA0u); /* 0x3602AA2B: call 0x3604bfa0 */ /* not lifted */ 7890 RECOMP_FLAGS_IN(); 7891 edi = eax; /* 0x3602AA30: mov edi, eax */ 7892 L_3602AA32: 7893 PUSH32(esp, 0x34u); /* 0x3602AA32: push 0x34 */ 7894 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602AA34: mov dword ptr [ebp - 4], 0xffffffff */ 7895 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AA3B: call 0x3615fd6a */ /* not lifted */ 7896 RECOMP_FLAGS_IN(); 7897 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7898 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7899 esp = esp + 4; /* 0x3602AA40: add esp, 4 */ 7900 _flag_k = FK_ADD; 7901 MEM32(ebp + 0xC) = eax; /* 0x3602AA43: mov dword ptr [ebp + 0xc], eax */ 7902 /* test eax, eax */ /* 0x3602AA46: test eax, eax */ 7903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7904 _cf = 0; 7905 _flag_k = FK_TEST; 7906 MEM32(ebp + (-0x4)) = 1; /* 0x3602AA48: mov dword ptr [ebp - 4], 1 */ 7907 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AA61; /* 0x3602AA4F: je 0x3602aa61 */ 7908 L_3602AA51: 7909 PUSH32(esp, 0x20u); /* 0x3602AA51: push 0x20 */ 7910 PUSH32(esp, edi); /* 0x3602AA53: push edi */ 7911 edx = ebp + (-0x18); /* 0x3602AA54: lea edx, [ebp - 0x18] */ 7912 PUSH32(esp, edx); /* 0x3602AA57: push edx */ 7913 ecx = eax; /* 0x3602AA58: mov ecx, eax */ 7914 RECOMP_ICALL(0x36087850u); /* 0x3602AA5A: call 0x36087850 */ /* not lifted */ 7915 RECOMP_FLAGS_IN(); 7916 goto L_3602AA63; /* 0x3602AA5F: jmp 0x3602aa63 */ 7917 L_3602AA61: 7918 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7919 eax = 0; /* 0x3602AA61: xor eax, eax */ 7920 _cf = 0; 7921 _flag_k = FK_TEST; 7922 L_3602AA63: 7923 edx = MEM32(esi); /* 0x3602AA63: mov edx, dword ptr [esi] */ 7924 PUSH32(esp, eax); /* 0x3602AA65: push eax */ 7925 ecx = esi; /* 0x3602AA66: mov ecx, esi */ 7926 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602AA68: mov dword ptr [ebp - 4], 0xffffffff */ 7927 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3602AA6F: call dword ptr [edx + 0x38] */ 7928 RECOMP_FLAGS_IN(); 7929 ecx = MEM32(ebp + (-0xC)); /* 0x3602AA72: mov ecx, dword ptr [ebp - 0xc] */ 7930 edi = POP32_VAL(esp); /* 0x3602AA75: pop edi */ 7931 esi = POP32_VAL(esp); /* 0x3602AA76: pop esi */ 7932 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AA77: mov dword ptr fs:[0], ecx */ 7933 esp = ebp; /* 0x3602AA7E: mov esp, ebp */ 7934 ebp = POP32_VAL(esp); /* 0x3602AA80: pop ebp */ 7935 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602AA81: ret 8 */ 7936 RECOMP_REGS_OUT(); 7937 } 7938 7939 void sub_3602AA90(void) { 7940 int _fpu_cmp = 0; 7941 uint32_t _cf = 0; 7942 int _df = 1; 7943 uint32_t _flag_k = FK_NONE; 7944 uint32_t _flag_a = 0, _flag_b = 0; 7945 uint32_t _itail_tgt = 0; 7946 RECOMP_REGS_LOCALS 7947 RECOMP_ENTER(0x3602AA90u); 7948 7949 L_3602AA90: 7950 PUSH32(esp, ebp); /* 0x3602AA90: push ebp */ 7951 ebp = esp; /* 0x3602AA91: mov ebp, esp */ 7952 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602AA93: push -1 */ 7953 PUSH32(esp, 0x3616371Bu); /* 0x3602AA95: push 0x3616371b */ 7954 eax = MEM32(FS_BASE + (0)); /* 0x3602AA9A: mov eax, dword ptr fs:[0] */ 7955 PUSH32(esp, eax); /* 0x3602AAA0: push eax */ 7956 MEM32(FS_BASE + (0)) = esp; /* 0x3602AAA1: mov dword ptr fs:[0], esp */ 7957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu); 7958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7959 esp = esp - 0x1Cu; /* 0x3602AAA8: sub esp, 0x1c */ 7960 _flag_k = FK_CMP; 7961 eax = MEM32(ebp + 0x8); /* 0x3602AAAB: mov eax, dword ptr [ebp + 8] */ 7962 PUSH32(esp, ebx); /* 0x3602AAAE: push ebx */ 7963 PUSH32(esp, esi); /* 0x3602AAAF: push esi */ 7964 PUSH32(esp, edi); /* 0x3602AAB0: push edi */ 7965 edi = MEM32(0x3616FF70); /* 0x3602AAB1: mov edi, dword ptr [0x3616ff70] */ 7966 PUSH32(esp, 0); /* 0x3602AAB7: push 0 */ 7967 PUSH32(esp, 0x361B2CF8u); /* 0x3602AAB9: push 0x361b2cf8 */ 7968 PUSH32(esp, 0x361B2CC0u); /* 0x3602AABE: push 0x361b2cc0 */ 7969 ebx = ecx; /* 0x3602AAC3: mov ebx, ecx */ 7970 PUSH32(esp, 0); /* 0x3602AAC5: push 0 */ 7971 PUSH32(esp, eax); /* 0x3602AAC7: push eax */ 7972 MEM32(ebp + (-0x10)) = ebx; /* 0x3602AAC8: mov dword ptr [ebp - 0x10], ebx */ 7973 RECOMP_ICALL(edi); /* 0x3602AACB: call edi */ 7974 RECOMP_FLAGS_IN(); 7975 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7976 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7977 esp = esp + 4; /* 0x3602AACD: add esp, 4 */ 7978 _flag_k = FK_ADD; 7979 PUSH32(esp, eax); /* 0x3602AAD0: push eax */ 7980 RECOMP_ICALL(0x3615FD86u); /* 0x3602AAD1: call 0x3615fd86 */ /* not lifted */ 7981 RECOMP_FLAGS_IN(); 7982 ecx = MEM32(ebp + 0xC); /* 0x3602AAD6: mov ecx, dword ptr [ebp + 0xc] */ 7983 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 7984 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7985 esp = esp + 0x14u; /* 0x3602AAD9: add esp, 0x14 */ 7986 _flag_k = FK_ADD; 7987 PUSH32(esp, 0); /* 0x3602AADC: push 0 */ 7988 PUSH32(esp, 0x361B2CF8u); /* 0x3602AADE: push 0x361b2cf8 */ 7989 PUSH32(esp, 0x361B2CC0u); /* 0x3602AAE3: push 0x361b2cc0 */ 7990 PUSH32(esp, 0); /* 0x3602AAE8: push 0 */ 7991 PUSH32(esp, ecx); /* 0x3602AAEA: push ecx */ 7992 esi = eax; /* 0x3602AAEB: mov esi, eax */ 7993 RECOMP_ICALL(edi); /* 0x3602AAED: call edi */ 7994 RECOMP_FLAGS_IN(); 7995 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7996 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7997 esp = esp + 4; /* 0x3602AAEF: add esp, 4 */ 7998 _flag_k = FK_ADD; 7999 PUSH32(esp, eax); /* 0x3602AAF2: push eax */ 8000 RECOMP_ICALL(0x3615FD86u); /* 0x3602AAF3: call 0x3615fd86 */ /* not lifted */ 8001 RECOMP_FLAGS_IN(); 8002 edi = MEM32(ebx + 0x88); /* 0x3602AAF8: mov edi, dword ptr [ebx + 0x88] */ 8003 ebx = MEM32(0x3616FFB0); /* 0x3602AAFE: mov ebx, dword ptr [0x3616ffb0] */ 8004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 8005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8006 esp = esp + 0x14u; /* 0x3602AB04: add esp, 0x14 */ 8007 _flag_k = FK_ADD; 8008 /* test esi, esi */ /* 0x3602AB07: test esi, esi */ 8009 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8010 _cf = 0; 8011 _flag_k = FK_TEST; 8012 MEM32(ebp + (-0x18)) = eax; /* 0x3602AB09: mov dword ptr [ebp - 0x18], eax */ 8013 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AB7F; /* 0x3602AB0C: je 0x3602ab7f */ 8014 L_3602AB0E: 8015 ecx = esi + 0x8C; /* 0x3602AB0E: lea ecx, [esi + 0x8c] */ 8016 MEM32(ebp + (-0x14)) = ecx; /* 0x3602AB14: mov dword ptr [ebp - 0x14], ecx */ 8017 RECOMP_ICALL(MEM32(0x361700F4)); /* 0x3602AB17: call dword ptr [0x361700f4] */ 8018 RECOMP_FLAGS_IN(); 8019 /* test LO8(eax), LO8(eax) */ /* 0x3602AB1D: test al, al */ 8020 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8021 _cf = 0; 8022 _flag_k = FK_NARROW(FK_TEST, 24); 8023 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AB7F; /* 0x3602AB1F: je 0x3602ab7f */ 8024 L_3602AB21: 8025 ecx = edi; /* 0x3602AB21: mov ecx, edi */ 8026 RECOMP_ICALL(ebx); /* 0x3602AB23: call ebx */ 8027 RECOMP_FLAGS_IN(); 8028 ecx = MEM32(ebp + (-0x14)); /* 0x3602AB25: mov ecx, dword ptr [ebp - 0x14] */ 8029 esi = eax; /* 0x3602AB28: mov esi, eax */ 8030 RECOMP_ICALL(ebx); /* 0x3602AB2A: call ebx */ 8031 RECOMP_FLAGS_IN(); 8032 edx = MEM32(eax); /* 0x3602AB2C: mov edx, dword ptr [eax] */ 8033 ecx = MEM32(eax + 0x4); /* 0x3602AB2E: mov ecx, dword ptr [eax + 4] */ 8034 MEM32(ebp + (-0x28)) = edx; /* 0x3602AB31: mov dword ptr [ebp - 0x28], edx */ 8035 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3602AB34: fld dword ptr [ebp - 0x28] */ 8036 _st[0] -= (double)*(float*)ADDR(esi); /* 0x3602AB37: fsub dword ptr [esi] */ 8037 edx = MEM32(eax + 0x8); /* 0x3602AB39: mov edx, dword ptr [eax + 8] */ 8038 MEM32(ebp + (-0x24)) = ecx; /* 0x3602AB3C: mov dword ptr [ebp - 0x24], ecx */ 8039 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3602AB3F: fld dword ptr [ebp - 0x24] */ 8040 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3602AB42: fsub dword ptr [esi + 4] */ 8041 MEM32(ebp + (-0x20)) = edx; /* 0x3602AB45: mov dword ptr [ebp - 0x20], edx */ 8042 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3602AB48: fld dword ptr [ebp - 0x20] */ 8043 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3602AB4B: fsub dword ptr [esi + 8] */ 8044 fp_push(_st[0]); /* 0x3602AB4E: fld st(0) */ 8045 _st[0] *= _st[1]; /* 0x3602AB50: fmul st(1) */ 8046 fp_push(_st[2]); /* 0x3602AB52: fld st(2) */ 8047 _st[0] *= _st[3]; /* 0x3602AB54: fmul st(3) */ 8048 { double _v = fp_pop(); _st[0] += _v; } /* 0x3602AB56: faddp st(1) */ 8049 fp_push(_st[3]); /* 0x3602AB58: fld st(3) */ 8050 _st[0] *= _st[4]; /* 0x3602AB5A: fmul st(4) */ 8051 { double _v = fp_pop(); _st[0] += _v; } /* 0x3602AB5C: faddp st(1) */ 8052 _st[0] = sqrt(_st[0]); /* 0x3602AB5E: fsqrt */ 8053 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3602AB60: fstp st(3) */ 8054 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3602AB62: fstp st(0) */ 8055 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3602AB64: fstp st(0) */ 8056 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x3602AB66: fcomp qword ptr [0x36170808] */ 8057 fp_pop(); 8058 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3602AB6C: fnstsw ax */ 8059 /* test HI8(eax), 0x41u */ /* 0x3602AB6E: test ah, 0x41 */ 8060 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8061 _cf = 0; 8062 _flag_k = FK_NARROW(FK_TEST, 24); 8063 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602AB9E; /* 0x3602AB71: jne 0x3602ab9e */ 8064 L_3602AB73: 8065 PUSH32(esp, 0); /* 0x3602AB73: push 0 */ 8066 PUSH32(esp, 0x361B6880u); /* 0x3602AB75: push 0x361b6880 */ 8067 goto L_3602ACB1; /* 0x3602AB7A: jmp 0x3602acb1 */ 8068 L_3602AB7F: 8069 eax = MEM32(ebp + 0x8); /* 0x3602AB7F: mov eax, dword ptr [ebp + 8] */ 8070 ecx = MEM32(edi + 0x150); /* 0x3602AB82: mov ecx, dword ptr [edi + 0x150] */ 8071 PUSH32(esp, eax); /* 0x3602AB88: push eax */ 8072 RECOMP_ICALL(0x360619D0u); /* 0x3602AB89: call 0x360619d0 */ /* not lifted */ 8073 RECOMP_FLAGS_IN(); 8074 /* test LO8(eax), LO8(eax) */ /* 0x3602AB8E: test al, al */ 8075 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8076 _cf = 0; 8077 _flag_k = FK_NARROW(FK_TEST, 24); 8078 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602AB9E; /* 0x3602AB90: jne 0x3602ab9e */ 8079 L_3602AB92: 8080 PUSH32(esp, 0); /* 0x3602AB92: push 0 */ 8081 PUSH32(esp, 0x361B6864u); /* 0x3602AB94: push 0x361b6864 */ 8082 goto L_3602ACB1; /* 0x3602AB99: jmp 0x3602acb1 */ 8083 L_3602AB9E: 8084 eax = MEM32(ebp + (-0x18)); /* 0x3602AB9E: mov eax, dword ptr [ebp - 0x18] */ 8085 /* test eax, eax */ /* 0x3602ABA1: test eax, eax */ 8086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8087 _cf = 0; 8088 _flag_k = FK_TEST; 8089 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AC16; /* 0x3602ABA3: je 0x3602ac16 */ 8090 L_3602ABA5: 8091 ecx = eax + 0x8C; /* 0x3602ABA5: lea ecx, [eax + 0x8c] */ 8092 MEM32(ebp + (-0x18)) = ecx; /* 0x3602ABAB: mov dword ptr [ebp - 0x18], ecx */ 8093 RECOMP_ICALL(MEM32(0x361700F4)); /* 0x3602ABAE: call dword ptr [0x361700f4] */ 8094 RECOMP_FLAGS_IN(); 8095 /* test LO8(eax), LO8(eax) */ /* 0x3602ABB4: test al, al */ 8096 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8097 _cf = 0; 8098 _flag_k = FK_NARROW(FK_TEST, 24); 8099 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AC16; /* 0x3602ABB6: je 0x3602ac16 */ 8100 L_3602ABB8: 8101 ecx = edi; /* 0x3602ABB8: mov ecx, edi */ 8102 RECOMP_ICALL(ebx); /* 0x3602ABBA: call ebx */ 8103 RECOMP_FLAGS_IN(); 8104 ecx = MEM32(ebp + (-0x18)); /* 0x3602ABBC: mov ecx, dword ptr [ebp - 0x18] */ 8105 esi = eax; /* 0x3602ABBF: mov esi, eax */ 8106 RECOMP_ICALL(ebx); /* 0x3602ABC1: call ebx */ 8107 RECOMP_FLAGS_IN(); 8108 ecx = MEM32(eax); /* 0x3602ABC3: mov ecx, dword ptr [eax] */ 8109 edx = MEM32(eax + 0x4); /* 0x3602ABC5: mov edx, dword ptr [eax + 4] */ 8110 eax = MEM32(eax + 0x8); /* 0x3602ABC8: mov eax, dword ptr [eax + 8] */ 8111 MEM32(ebp + (-0x28)) = ecx; /* 0x3602ABCB: mov dword ptr [ebp - 0x28], ecx */ 8112 fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3602ABCE: fld dword ptr [ebp - 0x28] */ 8113 _st[0] -= (double)*(float*)ADDR(esi); /* 0x3602ABD1: fsub dword ptr [esi] */ 8114 MEM32(ebp + (-0x24)) = edx; /* 0x3602ABD3: mov dword ptr [ebp - 0x24], edx */ 8115 fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3602ABD6: fld dword ptr [ebp - 0x24] */ 8116 MEM32(ebp + (-0x20)) = eax; /* 0x3602ABD9: mov dword ptr [ebp - 0x20], eax */ 8117 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3602ABDC: fsub dword ptr [esi + 4] */ 8118 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3602ABDF: fld dword ptr [ebp - 0x20] */ 8119 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3602ABE2: fsub dword ptr [esi + 8] */ 8120 fp_push(_st[0]); /* 0x3602ABE5: fld st(0) */ 8121 _st[0] *= _st[1]; /* 0x3602ABE7: fmul st(1) */ 8122 fp_push(_st[2]); /* 0x3602ABE9: fld st(2) */ 8123 _st[0] *= _st[3]; /* 0x3602ABEB: fmul st(3) */ 8124 { double _v = fp_pop(); _st[0] += _v; } /* 0x3602ABED: faddp st(1) */ 8125 fp_push(_st[3]); /* 0x3602ABEF: fld st(3) */ 8126 _st[0] *= _st[4]; /* 0x3602ABF1: fmul st(4) */ 8127 { double _v = fp_pop(); _st[0] += _v; } /* 0x3602ABF3: faddp st(1) */ 8128 _st[0] = sqrt(_st[0]); /* 0x3602ABF5: fsqrt */ 8129 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3602ABF7: fstp st(3) */ 8130 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3602ABF9: fstp st(0) */ 8131 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3602ABFB: fstp st(0) */ 8132 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x3602ABFD: fcomp qword ptr [0x36170808] */ 8133 fp_pop(); 8134 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3602AC03: fnstsw ax */ 8135 /* test HI8(eax), 0x41u */ /* 0x3602AC05: test ah, 0x41 */ 8136 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 8137 _cf = 0; 8138 _flag_k = FK_NARROW(FK_TEST, 24); 8139 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602AC34; /* 0x3602AC08: jne 0x3602ac34 */ 8140 L_3602AC0A: 8141 PUSH32(esp, 0); /* 0x3602AC0A: push 0 */ 8142 PUSH32(esp, 0x361B6880u); /* 0x3602AC0C: push 0x361b6880 */ 8143 goto L_3602ACB1; /* 0x3602AC11: jmp 0x3602acb1 */ 8144 L_3602AC16: 8145 edi = MEM32(edi + 0x150); /* 0x3602AC16: mov edi, dword ptr [edi + 0x150] */ 8146 esi = MEM32(ebp + 0xC); /* 0x3602AC1C: mov esi, dword ptr [ebp + 0xc] */ 8147 PUSH32(esp, esi); /* 0x3602AC1F: push esi */ 8148 ecx = edi; /* 0x3602AC20: mov ecx, edi */ 8149 RECOMP_ICALL(0x360619D0u); /* 0x3602AC22: call 0x360619d0 */ /* not lifted */ 8150 RECOMP_FLAGS_IN(); 8151 /* test LO8(eax), LO8(eax) */ /* 0x3602AC27: test al, al */ 8152 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8153 _cf = 0; 8154 _flag_k = FK_NARROW(FK_TEST, 24); 8155 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602AC37; /* 0x3602AC29: jne 0x3602ac37 */ 8156 L_3602AC2B: 8157 PUSH32(esp, 0); /* 0x3602AC2B: push 0 */ 8158 PUSH32(esp, 0x361B6864u); /* 0x3602AC2D: push 0x361b6864 */ 8159 goto L_3602ACB1; /* 0x3602AC32: jmp 0x3602acb1 */ 8160 L_3602AC34: 8161 esi = MEM32(ebp + 0xC); /* 0x3602AC34: mov esi, dword ptr [ebp + 0xc] */ 8162 L_3602AC37: 8163 edi = MEM32(ebp + 0x8); /* 0x3602AC37: mov edi, dword ptr [ebp + 8] */ 8164 eax = MEM32(edi); /* 0x3602AC3A: mov eax, dword ptr [edi] */ 8165 /* cmp eax, 0x68u */ /* 0x3602AC3C: cmp eax, 0x68 */ 8166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x68u); 8167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8168 _flag_k = FK_CMP; 8169 if (CMP_NE(_flag_a, _flag_b)) goto L_3602ACAA; /* 0x3602AC3F: jne 0x3602acaa */ 8170 L_3602AC41: 8171 /* cmp MEM32(esi), 0x68u */ /* 0x3602AC41: cmp dword ptr [esi], 0x68 */ 8172 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0x68u); 8173 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8174 _flag_k = FK_CMP; 8175 if (CMP_NE(_flag_a, _flag_b)) goto L_3602ACAA; /* 0x3602AC44: jne 0x3602acaa */ 8176 L_3602AC46: 8177 PUSH32(esp, 0x34u); /* 0x3602AC46: push 0x34 */ 8178 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AC48: call 0x3615fd6a */ /* not lifted */ 8179 RECOMP_FLAGS_IN(); 8180 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8182 esp = esp + 4; /* 0x3602AC4D: add esp, 4 */ 8183 _flag_k = FK_ADD; 8184 MEM32(ebp + 0xC) = eax; /* 0x3602AC50: mov dword ptr [ebp + 0xc], eax */ 8185 /* test eax, eax */ /* 0x3602AC53: test eax, eax */ 8186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8187 _cf = 0; 8188 _flag_k = FK_TEST; 8189 MEM32(ebp + (-0x4)) = 0; /* 0x3602AC55: mov dword ptr [ebp - 4], 0 */ 8190 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AC78; /* 0x3602AC5C: je 0x3602ac78 */ 8191 L_3602AC5E: 8192 ecx = MEM32(ebp + (-0x10)); /* 0x3602AC5E: mov ecx, dword ptr [ebp - 0x10] */ 8193 edx = MEM32(ecx + 0x88); /* 0x3602AC61: mov edx, dword ptr [ecx + 0x88] */ 8194 PUSH32(esp, esi); /* 0x3602AC67: push esi */ 8195 PUSH32(esp, 0x51u); /* 0x3602AC68: push 0x51 */ 8196 PUSH32(esp, edi); /* 0x3602AC6A: push edi */ 8197 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 8198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8199 edx = edx + 4; /* 0x3602AC6B: add edx, 4 */ 8200 _flag_k = FK_ADD; 8201 PUSH32(esp, edx); /* 0x3602AC6E: push edx */ 8202 ecx = eax; /* 0x3602AC6F: mov ecx, eax */ 8203 RECOMP_ICALL(0x3607D4B0u); /* 0x3602AC71: call 0x3607d4b0 */ /* not lifted */ 8204 RECOMP_FLAGS_IN(); 8205 goto L_3602AC7A; /* 0x3602AC76: jmp 0x3602ac7a */ 8206 L_3602AC78: 8207 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8208 eax = 0; /* 0x3602AC78: xor eax, eax */ 8209 _cf = 0; 8210 _flag_k = FK_TEST; 8211 L_3602AC7A: 8212 ecx = MEM32(ebp + (-0x10)); /* 0x3602AC7A: mov ecx, dword ptr [ebp - 0x10] */ 8213 ecx = MEM32(ecx + 0x88); /* 0x3602AC7D: mov ecx, dword ptr [ecx + 0x88] */ 8214 MEM32(ebp + (-0x1C)) = eax; /* 0x3602AC83: mov dword ptr [ebp - 0x1c], eax */ 8215 eax = ebp + (-0x1C); /* 0x3602AC86: lea eax, [ebp - 0x1c] */ 8216 PUSH32(esp, eax); /* 0x3602AC89: push eax */ 8217 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602AC8A: mov dword ptr [ebp - 4], 0xffffffff */ 8218 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602AC91: call dword ptr [0x3617004c] */ 8219 RECOMP_FLAGS_IN(); 8220 edi = POP32_VAL(esp); /* 0x3602AC97: pop edi */ 8221 esi = POP32_VAL(esp); /* 0x3602AC98: pop esi */ 8222 ebx = POP32_VAL(esp); /* 0x3602AC99: pop ebx */ 8223 ecx = MEM32(ebp + (-0xC)); /* 0x3602AC9A: mov ecx, dword ptr [ebp - 0xc] */ 8224 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AC9D: mov dword ptr fs:[0], ecx */ 8225 esp = ebp; /* 0x3602ACA4: mov esp, ebp */ 8226 ebp = POP32_VAL(esp); /* 0x3602ACA6: pop ebp */ 8227 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602ACA7: ret 8 */ 8228 L_3602ACAA: 8229 PUSH32(esp, 0); /* 0x3602ACAA: push 0 */ 8230 PUSH32(esp, 0x361B6834u); /* 0x3602ACAC: push 0x361b6834 */ 8231 L_3602ACB1: 8232 RECOMP_ICALL(0x3601C590u); /* 0x3602ACB1: call 0x3601c590 */ /* not lifted */ 8233 RECOMP_FLAGS_IN(); 8234 ecx = eax; /* 0x3602ACB6: mov ecx, eax */ 8235 RECOMP_ICALL(0x3601C8C0u); /* 0x3602ACB8: call 0x3601c8c0 */ /* not lifted */ 8236 RECOMP_FLAGS_IN(); 8237 ecx = MEM32(ebp + (-0xC)); /* 0x3602ACBD: mov ecx, dword ptr [ebp - 0xc] */ 8238 edi = POP32_VAL(esp); /* 0x3602ACC0: pop edi */ 8239 esi = POP32_VAL(esp); /* 0x3602ACC1: pop esi */ 8240 ebx = POP32_VAL(esp); /* 0x3602ACC2: pop ebx */ 8241 MEM32(FS_BASE + (0)) = ecx; /* 0x3602ACC3: mov dword ptr fs:[0], ecx */ 8242 esp = ebp; /* 0x3602ACCA: mov esp, ebp */ 8243 ebp = POP32_VAL(esp); /* 0x3602ACCC: pop ebp */ 8244 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602ACCD: ret 8 */ 8245 RECOMP_REGS_OUT(); 8246 } 8247 8248 void sub_3602ACB1(void) { 8249 int _fpu_cmp = 0; 8250 uint32_t _cf = 0; 8251 int _df = 1; 8252 uint32_t _flag_k = FK_NONE; 8253 uint32_t _flag_a = 0, _flag_b = 0; 8254 uint32_t _itail_tgt = 0; 8255 RECOMP_REGS_LOCALS 8256 RECOMP_ENTER(0x3602ACB1u); 8257 8258 L_3602ACB1: 8259 RECOMP_ICALL(0x3601C590u); /* 0x3602ACB1: call 0x3601c590 */ /* not lifted */ 8260 RECOMP_FLAGS_IN(); 8261 ecx = eax; /* 0x3602ACB6: mov ecx, eax */ 8262 RECOMP_ICALL(0x3601C8C0u); /* 0x3602ACB8: call 0x3601c8c0 */ /* not lifted */ 8263 RECOMP_FLAGS_IN(); 8264 ecx = MEM32(ebp + (-0xC)); /* 0x3602ACBD: mov ecx, dword ptr [ebp - 0xc] */ 8265 edi = POP32_VAL(esp); /* 0x3602ACC0: pop edi */ 8266 esi = POP32_VAL(esp); /* 0x3602ACC1: pop esi */ 8267 ebx = POP32_VAL(esp); /* 0x3602ACC2: pop ebx */ 8268 MEM32(FS_BASE + (0)) = ecx; /* 0x3602ACC3: mov dword ptr fs:[0], ecx */ 8269 esp = ebp; /* 0x3602ACCA: mov esp, ebp */ 8270 ebp = POP32_VAL(esp); /* 0x3602ACCC: pop ebp */ 8271 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602ACCD: ret 8 */ 8272 RECOMP_REGS_OUT(); 8273 } 8274 8275 void sub_3602ACD0(void) { 8276 int _fpu_cmp = 0; 8277 uint32_t _cf = 0; 8278 int _df = 1; 8279 uint32_t _flag_k = FK_NONE; 8280 uint32_t _flag_a = 0, _flag_b = 0; 8281 uint32_t _itail_tgt = 0; 8282 RECOMP_REGS_LOCALS 8283 RECOMP_ENTER(0x3602ACD0u); 8284 8285 L_3602ACD0: 8286 PUSH32(esp, ebp); /* 0x3602ACD0: push ebp */ 8287 ebp = esp; /* 0x3602ACD1: mov ebp, esp */ 8288 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602ACD3: push -1 */ 8289 PUSH32(esp, 0x3616377Du); /* 0x3602ACD5: push 0x3616377d */ 8290 eax = MEM32(FS_BASE + (0)); /* 0x3602ACDA: mov eax, dword ptr fs:[0] */ 8291 PUSH32(esp, eax); /* 0x3602ACE0: push eax */ 8292 MEM32(FS_BASE + (0)) = esp; /* 0x3602ACE1: mov dword ptr fs:[0], esp */ 8293 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8295 esp = esp - 0x18u; /* 0x3602ACE8: sub esp, 0x18 */ 8296 _flag_k = FK_CMP; 8297 PUSH32(esp, ebx); /* 0x3602ACEB: push ebx */ 8298 PUSH32(esp, esi); /* 0x3602ACEC: push esi */ 8299 PUSH32(esp, edi); /* 0x3602ACED: push edi */ 8300 PUSH32(esp, 0); /* 0x3602ACEE: push 0 */ 8301 PUSH32(esp, 0x361B2CD8u); /* 0x3602ACF0: push 0x361b2cd8 */ 8302 edi = ecx; /* 0x3602ACF5: mov edi, ecx */ 8303 eax = MEM32(edi + 0x88); /* 0x3602ACF7: mov eax, dword ptr [edi + 0x88] */ 8304 PUSH32(esp, 0x361B2CC0u); /* 0x3602ACFD: push 0x361b2cc0 */ 8305 PUSH32(esp, 0); /* 0x3602AD02: push 0 */ 8306 PUSH32(esp, eax); /* 0x3602AD04: push eax */ 8307 RECOMP_ICALL(0x3615FD86u); /* 0x3602AD05: call 0x3615fd86 */ /* not lifted */ 8308 RECOMP_FLAGS_IN(); 8309 esi = MEM32(ebp + 0x8); /* 0x3602AD0A: mov esi, dword ptr [ebp + 8] */ 8310 ecx = ebp + (-0x14); /* 0x3602AD0D: lea ecx, [ebp - 0x14] */ 8311 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 8312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8313 esp = esp + 0x14u; /* 0x3602AD10: add esp, 0x14 */ 8314 _flag_k = FK_ADD; 8315 /* cmp ecx, esi */ /* 0x3602AD13: cmp ecx, esi */ 8316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 8317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8318 _flag_k = FK_CMP; 8319 ebx = eax; /* 0x3602AD15: mov ebx, eax */ 8320 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602AD24; /* 0x3602AD17: je 0x3602ad24 */ 8321 L_3602AD19: 8322 edx = MEM32(esi); /* 0x3602AD19: mov edx, dword ptr [esi] */ 8323 eax = MEM32(esi + 0x4); /* 0x3602AD1B: mov eax, dword ptr [esi + 4] */ 8324 MEM32(ebp + (-0x14)) = edx; /* 0x3602AD1E: mov dword ptr [ebp - 0x14], edx */ 8325 MEM32(ebp + (-0x10)) = eax; /* 0x3602AD21: mov dword ptr [ebp - 0x10], eax */ 8326 L_3602AD24: 8327 /* test ebx, ebx */ /* 0x3602AD24: test ebx, ebx */ 8328 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8329 _cf = 0; 8330 _flag_k = FK_TEST; 8331 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B161; /* 0x3602AD26: je 0x3602b161 */ 8332 L_3602AD2C: 8333 eax = MEM32(esi); /* 0x3602AD2C: mov eax, dword ptr [esi] */ 8334 /* cmp eax, 0xDEADu */ /* 0x3602AD2E: cmp eax, 0xdead */ 8335 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEADu); 8336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8337 _flag_k = FK_CMP; 8338 if (CMP_NE(_flag_a, _flag_b)) goto L_3602AD9C; /* 0x3602AD33: jne 0x3602ad9c */ 8339 L_3602AD35: 8340 ecx = MEM32(ebx + 0x150); /* 0x3602AD35: mov ecx, dword ptr [ebx + 0x150] */ 8341 RECOMP_ICALL(0x3605DC00u); /* 0x3602AD3B: call 0x3605dc00 */ /* not lifted */ 8342 RECOMP_FLAGS_IN(); 8343 PUSH32(esp, 0x34u); /* 0x3602AD40: push 0x34 */ 8344 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AD42: call 0x3615fd6a */ /* not lifted */ 8345 RECOMP_FLAGS_IN(); 8346 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8348 esp = esp + 4; /* 0x3602AD47: add esp, 4 */ 8349 _flag_k = FK_ADD; 8350 MEM32(ebp + 0x8) = eax; /* 0x3602AD4A: mov dword ptr [ebp + 8], eax */ 8351 /* test eax, eax */ /* 0x3602AD4D: test eax, eax */ 8352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8353 _cf = 0; 8354 _flag_k = FK_TEST; 8355 MEM32(ebp + (-0x4)) = 0; /* 0x3602AD4F: mov dword ptr [ebp - 4], 0 */ 8356 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AD71; /* 0x3602AD56: je 0x3602ad71 */ 8357 L_3602AD58: 8358 PUSH32(esp, 0x362EA510u); /* 0x3602AD58: push 0x362ea510 */ 8359 PUSH32(esp, 0x6Au); /* 0x3602AD5D: push 0x6a */ 8360 PUSH32(esp, 0x362EA510u); /* 0x3602AD5F: push 0x362ea510 */ 8361 ecx = ebx + 0x4; /* 0x3602AD64: lea ecx, [ebx + 4] */ 8362 PUSH32(esp, ecx); /* 0x3602AD67: push ecx */ 8363 ecx = eax; /* 0x3602AD68: mov ecx, eax */ 8364 RECOMP_ICALL(0x3607D4B0u); /* 0x3602AD6A: call 0x3607d4b0 */ /* not lifted */ 8365 RECOMP_FLAGS_IN(); 8366 goto L_3602AD73; /* 0x3602AD6F: jmp 0x3602ad73 */ 8367 L_3602AD71: 8368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8369 eax = 0; /* 0x3602AD71: xor eax, eax */ 8370 _cf = 0; 8371 _flag_k = FK_TEST; 8372 L_3602AD73: 8373 edx = ebp + 0xC; /* 0x3602AD73: lea edx, [ebp + 0xc] */ 8374 PUSH32(esp, edx); /* 0x3602AD76: push edx */ 8375 ecx = ebx; /* 0x3602AD77: mov ecx, ebx */ 8376 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602AD79: mov dword ptr [ebp - 4], 0xffffffff */ 8377 MEM32(ebp + 0xC) = eax; /* 0x3602AD80: mov dword ptr [ebp + 0xc], eax */ 8378 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602AD83: call dword ptr [0x3617004c] */ 8379 RECOMP_FLAGS_IN(); 8380 edi = POP32_VAL(esp); /* 0x3602AD89: pop edi */ 8381 esi = POP32_VAL(esp); /* 0x3602AD8A: pop esi */ 8382 ebx = POP32_VAL(esp); /* 0x3602AD8B: pop ebx */ 8383 ecx = MEM32(ebp + (-0xC)); /* 0x3602AD8C: mov ecx, dword ptr [ebp - 0xc] */ 8384 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AD8F: mov dword ptr fs:[0], ecx */ 8385 esp = ebp; /* 0x3602AD96: mov esp, ebp */ 8386 ebp = POP32_VAL(esp); /* 0x3602AD98: pop ebp */ 8387 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602AD99: ret 8 */ 8388 L_3602AD9C: 8389 /* cmp eax, 0x69u */ /* 0x3602AD9C: cmp eax, 0x69 */ 8390 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x69u); 8391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8392 _flag_k = FK_CMP; 8393 if (CMP_NE(_flag_a, _flag_b)) goto L_3602ADC7; /* 0x3602AD9F: jne 0x3602adc7 */ 8394 L_3602ADA1: 8395 PUSH32(esp, 0); /* 0x3602ADA1: push 0 */ 8396 PUSH32(esp, 0x361B6908u); /* 0x3602ADA3: push 0x361b6908 */ 8397 RECOMP_ICALL(0x3601C590u); /* 0x3602ADA8: call 0x3601c590 */ /* not lifted */ 8398 RECOMP_FLAGS_IN(); 8399 ecx = eax; /* 0x3602ADAD: mov ecx, eax */ 8400 RECOMP_ICALL(0x3601C8C0u); /* 0x3602ADAF: call 0x3601c8c0 */ /* not lifted */ 8401 RECOMP_FLAGS_IN(); 8402 edi = POP32_VAL(esp); /* 0x3602ADB4: pop edi */ 8403 esi = POP32_VAL(esp); /* 0x3602ADB5: pop esi */ 8404 ebx = POP32_VAL(esp); /* 0x3602ADB6: pop ebx */ 8405 ecx = MEM32(ebp + (-0xC)); /* 0x3602ADB7: mov ecx, dword ptr [ebp - 0xc] */ 8406 MEM32(FS_BASE + (0)) = ecx; /* 0x3602ADBA: mov dword ptr fs:[0], ecx */ 8407 esp = ebp; /* 0x3602ADC1: mov esp, ebp */ 8408 ebp = POP32_VAL(esp); /* 0x3602ADC3: pop ebp */ 8409 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602ADC4: ret 8 */ 8410 L_3602ADC7: 8411 /* cmp eax, 0x6Eu */ /* 0x3602ADC7: cmp eax, 0x6e */ 8412 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Eu); 8413 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8414 _flag_k = FK_CMP; 8415 if (CMP_NE(_flag_a, _flag_b)) goto L_3602AE1E; /* 0x3602ADCA: jne 0x3602ae1e */ 8416 L_3602ADCC: 8417 eax = MEM32(edi + 0x88); /* 0x3602ADCC: mov eax, dword ptr [edi + 0x88] */ 8418 ecx = MEM32(esi + 0x4); /* 0x3602ADD2: mov ecx, dword ptr [esi + 4] */ 8419 /* cmp ecx, MEM32(eax + 0x8) */ /* 0x3602ADD5: cmp ecx, dword ptr [eax + 8] */ 8420 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 8421 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8422 _flag_k = FK_CMP; 8423 if (CMP_NE(_flag_a, _flag_b)) goto L_3602ADF8; /* 0x3602ADD8: jne 0x3602adf8 */ 8424 L_3602ADDA: 8425 ecx = MEM32(ebx + 0x150); /* 0x3602ADDA: mov ecx, dword ptr [ebx + 0x150] */ 8426 RECOMP_ICALL(0x36062EA0u); /* 0x3602ADE0: call 0x36062ea0 */ /* not lifted */ 8427 RECOMP_FLAGS_IN(); 8428 edi = POP32_VAL(esp); /* 0x3602ADE5: pop edi */ 8429 esi = POP32_VAL(esp); /* 0x3602ADE6: pop esi */ 8430 ebx = POP32_VAL(esp); /* 0x3602ADE7: pop ebx */ 8431 ecx = MEM32(ebp + (-0xC)); /* 0x3602ADE8: mov ecx, dword ptr [ebp - 0xc] */ 8432 MEM32(FS_BASE + (0)) = ecx; /* 0x3602ADEB: mov dword ptr fs:[0], ecx */ 8433 esp = ebp; /* 0x3602ADF2: mov esp, ebp */ 8434 ebp = POP32_VAL(esp); /* 0x3602ADF4: pop ebp */ 8435 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602ADF5: ret 8 */ 8436 L_3602ADF8: 8437 PUSH32(esp, 0); /* 0x3602ADF8: push 0 */ 8438 PUSH32(esp, 0x361B68E0u); /* 0x3602ADFA: push 0x361b68e0 */ 8439 RECOMP_ICALL(0x3601C590u); /* 0x3602ADFF: call 0x3601c590 */ /* not lifted */ 8440 RECOMP_FLAGS_IN(); 8441 ecx = eax; /* 0x3602AE04: mov ecx, eax */ 8442 RECOMP_ICALL(0x3601C8C0u); /* 0x3602AE06: call 0x3601c8c0 */ /* not lifted */ 8443 RECOMP_FLAGS_IN(); 8444 edi = POP32_VAL(esp); /* 0x3602AE0B: pop edi */ 8445 esi = POP32_VAL(esp); /* 0x3602AE0C: pop esi */ 8446 ebx = POP32_VAL(esp); /* 0x3602AE0D: pop ebx */ 8447 ecx = MEM32(ebp + (-0xC)); /* 0x3602AE0E: mov ecx, dword ptr [ebp - 0xc] */ 8448 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AE11: mov dword ptr fs:[0], ecx */ 8449 esp = ebp; /* 0x3602AE18: mov esp, ebp */ 8450 ebp = POP32_VAL(esp); /* 0x3602AE1A: pop ebp */ 8451 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602AE1B: ret 8 */ 8452 L_3602AE1E: 8453 /* cmp eax, 0x6Au */ /* 0x3602AE1E: cmp eax, 0x6a */ 8454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Au); 8455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8456 _flag_k = FK_CMP; 8457 if (CMP_NE(_flag_a, _flag_b)) goto L_3602AE49; /* 0x3602AE21: jne 0x3602ae49 */ 8458 L_3602AE23: 8459 PUSH32(esp, 0); /* 0x3602AE23: push 0 */ 8460 PUSH32(esp, 0x361B68B0u); /* 0x3602AE25: push 0x361b68b0 */ 8461 RECOMP_ICALL(0x3601C590u); /* 0x3602AE2A: call 0x3601c590 */ /* not lifted */ 8462 RECOMP_FLAGS_IN(); 8463 ecx = eax; /* 0x3602AE2F: mov ecx, eax */ 8464 RECOMP_ICALL(0x3601C8C0u); /* 0x3602AE31: call 0x3601c8c0 */ /* not lifted */ 8465 RECOMP_FLAGS_IN(); 8466 edi = POP32_VAL(esp); /* 0x3602AE36: pop edi */ 8467 esi = POP32_VAL(esp); /* 0x3602AE37: pop esi */ 8468 ebx = POP32_VAL(esp); /* 0x3602AE38: pop ebx */ 8469 ecx = MEM32(ebp + (-0xC)); /* 0x3602AE39: mov ecx, dword ptr [ebp - 0xc] */ 8470 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AE3C: mov dword ptr fs:[0], ecx */ 8471 esp = ebp; /* 0x3602AE43: mov esp, ebp */ 8472 ebp = POP32_VAL(esp); /* 0x3602AE45: pop ebp */ 8473 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602AE46: ret 8 */ 8474 L_3602AE49: 8475 /* cmp eax, 0xDEAEu */ /* 0x3602AE49: cmp eax, 0xdeae */ 8476 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEAEu); 8477 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8478 _flag_k = FK_CMP; 8479 if (CMP_NE(_flag_a, _flag_b)) goto L_3602AE63; /* 0x3602AE4E: jne 0x3602ae63 */ 8480 L_3602AE50: 8481 ecx = ebx; /* 0x3602AE50: mov ecx, ebx */ 8482 RECOMP_ICALL(0x36072000u); /* 0x3602AE52: call 0x36072000 */ /* not lifted */ 8483 RECOMP_FLAGS_IN(); 8484 edx = MEM32(eax + 0x78); /* 0x3602AE57: mov edx, dword ptr [eax + 0x78] */ 8485 MEM32(ebp + (-0x14)) = edx; /* 0x3602AE5A: mov dword ptr [ebp - 0x14], edx */ 8486 eax = MEM32(eax + 0x7C); /* 0x3602AE5D: mov eax, dword ptr [eax + 0x7c] */ 8487 MEM32(ebp + (-0x10)) = eax; /* 0x3602AE60: mov dword ptr [ebp - 0x10], eax */ 8488 L_3602AE63: 8489 ecx = MEM32(esi); /* 0x3602AE63: mov ecx, dword ptr [esi] */ 8490 /* cmp ecx, 0xC350u */ /* 0x3602AE65: cmp ecx, 0xc350 */ 8491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC350u); 8492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8493 _flag_k = FK_CMP; 8494 eax = MEM32(edi + 0x84); /* 0x3602AE6B: mov eax, dword ptr [edi + 0x84] */ 8495 MEM32(ebp + (-0x1C)) = 0xC350u; /* 0x3602AE71: mov dword ptr [ebp - 0x1c], 0xc350 */ 8496 MEM32(ebp + (-0x18)) = eax; /* 0x3602AE78: mov dword ptr [ebp - 0x18], eax */ 8497 if (CMP_NE(_flag_a, _flag_b)) goto L_3602AEE5; /* 0x3602AE7B: jne 0x3602aee5 */ 8498 L_3602AE7D: 8499 /* cmp MEM32(esi + 0x4), eax */ /* 0x3602AE7D: cmp dword ptr [esi + 4], eax */ 8500 _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(eax); 8501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8502 _flag_k = FK_CMP; 8503 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602B161; /* 0x3602AE80: je 0x3602b161 */ 8504 L_3602AE86: 8505 PUSH32(esp, 0x1Cu); /* 0x3602AE86: push 0x1c */ 8506 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AE88: call 0x3615fd6a */ /* not lifted */ 8507 RECOMP_FLAGS_IN(); 8508 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8509 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8510 esp = esp + 4; /* 0x3602AE8D: add esp, 4 */ 8511 _flag_k = FK_ADD; 8512 MEM32(ebp + 0xC) = eax; /* 0x3602AE90: mov dword ptr [ebp + 0xc], eax */ 8513 /* test eax, eax */ /* 0x3602AE93: test eax, eax */ 8514 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8515 _cf = 0; 8516 _flag_k = FK_TEST; 8517 MEM32(ebp + (-0x4)) = 1; /* 0x3602AE95: mov dword ptr [ebp - 4], 1 */ 8518 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AEAE; /* 0x3602AE9C: je 0x3602aeae */ 8519 L_3602AE9E: 8520 PUSH32(esp, esi); /* 0x3602AE9E: push esi */ 8521 ecx = ebp + (-0x1C); /* 0x3602AE9F: lea ecx, [ebp - 0x1c] */ 8522 PUSH32(esp, ecx); /* 0x3602AEA2: push ecx */ 8523 ecx = eax; /* 0x3602AEA3: mov ecx, eax */ 8524 RECOMP_ICALL(0x3604BEE0u); /* 0x3602AEA5: call 0x3604bee0 */ /* not lifted */ 8525 RECOMP_FLAGS_IN(); 8526 esi = eax; /* 0x3602AEAA: mov esi, eax */ 8527 goto L_3602AEB0; /* 0x3602AEAC: jmp 0x3602aeb0 */ 8528 L_3602AEAE: 8529 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8530 esi = 0; /* 0x3602AEAE: xor esi, esi */ 8531 _cf = 0; 8532 _flag_k = FK_TEST; 8533 L_3602AEB0: 8534 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 8535 ebx = ebx | 0xFFFFFFFFu; /* 0x3602AEB0: or ebx, 0xffffffff */ 8536 _cf = 0; 8537 _flag_k = FK_TEST; 8538 PUSH32(esp, 0x34u); /* 0x3602AEB3: push 0x34 */ 8539 MEM32(ebp + (-0x4)) = ebx; /* 0x3602AEB5: mov dword ptr [ebp - 4], ebx */ 8540 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AEB8: call 0x3615fd6a */ /* not lifted */ 8541 RECOMP_FLAGS_IN(); 8542 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8544 esp = esp + 4; /* 0x3602AEBD: add esp, 4 */ 8545 _flag_k = FK_ADD; 8546 MEM32(ebp + 0xC) = eax; /* 0x3602AEC0: mov dword ptr [ebp + 0xc], eax */ 8547 /* test eax, eax */ /* 0x3602AEC3: test eax, eax */ 8548 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8549 _cf = 0; 8550 _flag_k = FK_TEST; 8551 MEM32(ebp + (-0x4)) = 2; /* 0x3602AEC5: mov dword ptr [ebp - 4], 2 */ 8552 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B154; /* 0x3602AECC: je 0x3602b154 */ 8553 L_3602AED2: 8554 PUSH32(esp, 3); /* 0x3602AED2: push 3 */ 8555 PUSH32(esp, esi); /* 0x3602AED4: push esi */ 8556 edx = ebp + (-0x1C); /* 0x3602AED5: lea edx, [ebp - 0x1c] */ 8557 PUSH32(esp, edx); /* 0x3602AED8: push edx */ 8558 ecx = eax; /* 0x3602AED9: mov ecx, eax */ 8559 RECOMP_ICALL(0x36087850u); /* 0x3602AEDB: call 0x36087850 */ /* not lifted */ 8560 RECOMP_FLAGS_IN(); 8561 goto L_3602B156; /* 0x3602AEE0: jmp 0x3602b156 */ 8562 L_3602AEE5: 8563 /* cmp ecx, 0xDAC3u */ /* 0x3602AEE5: cmp ecx, 0xdac3 */ 8564 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xDAC3u); 8565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8566 _flag_k = FK_CMP; 8567 if (CMP_NE(_flag_a, _flag_b)) goto L_3602AF4F; /* 0x3602AEEB: jne 0x3602af4f */ 8568 L_3602AEED: 8569 PUSH32(esp, 0x34u); /* 0x3602AEED: push 0x34 */ 8570 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AEEF: call 0x3615fd6a */ /* not lifted */ 8571 RECOMP_FLAGS_IN(); 8572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8574 esp = esp + 4; /* 0x3602AEF4: add esp, 4 */ 8575 _flag_k = FK_ADD; 8576 MEM32(ebp + 0x8) = eax; /* 0x3602AEF7: mov dword ptr [ebp + 8], eax */ 8577 /* test eax, eax */ /* 0x3602AEFA: test eax, eax */ 8578 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8579 _cf = 0; 8580 _flag_k = FK_TEST; 8581 MEM32(ebp + (-0x4)) = 3; /* 0x3602AEFC: mov dword ptr [ebp - 4], 3 */ 8582 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AF20; /* 0x3602AF03: je 0x3602af20 */ 8583 L_3602AF05: 8584 ecx = MEM32(edi + 0x88); /* 0x3602AF05: mov ecx, dword ptr [edi + 0x88] */ 8585 PUSH32(esp, 0x36305AE0u); /* 0x3602AF0B: push 0x36305ae0 */ 8586 PUSH32(esp, 0x39u); /* 0x3602AF10: push 0x39 */ 8587 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 8588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8589 ecx = ecx + 4; /* 0x3602AF12: add ecx, 4 */ 8590 _flag_k = FK_ADD; 8591 PUSH32(esp, esi); /* 0x3602AF15: push esi */ 8592 PUSH32(esp, ecx); /* 0x3602AF16: push ecx */ 8593 ecx = eax; /* 0x3602AF17: mov ecx, eax */ 8594 RECOMP_ICALL(0x3607D4B0u); /* 0x3602AF19: call 0x3607d4b0 */ /* not lifted */ 8595 RECOMP_FLAGS_IN(); 8596 goto L_3602AF22; /* 0x3602AF1E: jmp 0x3602af22 */ 8597 L_3602AF20: 8598 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8599 eax = 0; /* 0x3602AF20: xor eax, eax */ 8600 _cf = 0; 8601 _flag_k = FK_TEST; 8602 L_3602AF22: 8603 ecx = MEM32(edi + 0x88); /* 0x3602AF22: mov ecx, dword ptr [edi + 0x88] */ 8604 edx = ebp + 0xC; /* 0x3602AF28: lea edx, [ebp + 0xc] */ 8605 PUSH32(esp, edx); /* 0x3602AF2B: push edx */ 8606 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602AF2C: mov dword ptr [ebp - 4], 0xffffffff */ 8607 MEM32(ebp + 0xC) = eax; /* 0x3602AF33: mov dword ptr [ebp + 0xc], eax */ 8608 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602AF36: call dword ptr [0x3617004c] */ 8609 RECOMP_FLAGS_IN(); 8610 edi = POP32_VAL(esp); /* 0x3602AF3C: pop edi */ 8611 esi = POP32_VAL(esp); /* 0x3602AF3D: pop esi */ 8612 ebx = POP32_VAL(esp); /* 0x3602AF3E: pop ebx */ 8613 ecx = MEM32(ebp + (-0xC)); /* 0x3602AF3F: mov ecx, dword ptr [ebp - 0xc] */ 8614 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AF42: mov dword ptr fs:[0], ecx */ 8615 esp = ebp; /* 0x3602AF49: mov esp, ebp */ 8616 ebp = POP32_VAL(esp); /* 0x3602AF4B: pop ebp */ 8617 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602AF4C: ret 8 */ 8618 L_3602AF4F: 8619 /* cmp ecx, 0xDEAAu */ /* 0x3602AF4F: cmp ecx, 0xdeaa */ 8620 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xDEAAu); 8621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8622 _flag_k = FK_CMP; 8623 if (CMP_NE(_flag_a, _flag_b)) goto L_3602AFA9; /* 0x3602AF55: jne 0x3602afa9 */ 8624 L_3602AF57: 8625 PUSH32(esp, 0x3Cu); /* 0x3602AF57: push 0x3c */ 8626 RECOMP_ICALL(0x3615FD6Au); /* 0x3602AF59: call 0x3615fd6a */ /* not lifted */ 8627 RECOMP_FLAGS_IN(); 8628 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8629 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8630 esp = esp + 4; /* 0x3602AF5E: add esp, 4 */ 8631 _flag_k = FK_ADD; 8632 MEM32(ebp + 0x8) = eax; /* 0x3602AF61: mov dword ptr [ebp + 8], eax */ 8633 /* test eax, eax */ /* 0x3602AF64: test eax, eax */ 8634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8635 _cf = 0; 8636 _flag_k = FK_TEST; 8637 MEM32(ebp + (-0x4)) = 4; /* 0x3602AF66: mov dword ptr [ebp - 4], 4 */ 8638 if (TEST_Z(_flag_a, _flag_b)) goto L_3602AF7E; /* 0x3602AF6D: je 0x3602af7e */ 8639 L_3602AF6F: 8640 PUSH32(esp, 4); /* 0x3602AF6F: push 4 */ 8641 ecx = ebx + 0x4; /* 0x3602AF71: lea ecx, [ebx + 4] */ 8642 PUSH32(esp, ecx); /* 0x3602AF74: push ecx */ 8643 ecx = eax; /* 0x3602AF75: mov ecx, eax */ 8644 RECOMP_ICALL(0x36151BD0u); /* 0x3602AF77: call 0x36151bd0 */ /* not lifted */ 8645 RECOMP_FLAGS_IN(); 8646 goto L_3602AF80; /* 0x3602AF7C: jmp 0x3602af80 */ 8647 L_3602AF7E: 8648 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8649 eax = 0; /* 0x3602AF7E: xor eax, eax */ 8650 _cf = 0; 8651 _flag_k = FK_TEST; 8652 L_3602AF80: 8653 edx = ebp + 0xC; /* 0x3602AF80: lea edx, [ebp + 0xc] */ 8654 PUSH32(esp, edx); /* 0x3602AF83: push edx */ 8655 ecx = ebx; /* 0x3602AF84: mov ecx, ebx */ 8656 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602AF86: mov dword ptr [ebp - 4], 0xffffffff */ 8657 MEM32(ebp + 0xC) = eax; /* 0x3602AF8D: mov dword ptr [ebp + 0xc], eax */ 8658 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602AF90: call dword ptr [0x3617004c] */ 8659 RECOMP_FLAGS_IN(); 8660 edi = POP32_VAL(esp); /* 0x3602AF96: pop edi */ 8661 esi = POP32_VAL(esp); /* 0x3602AF97: pop esi */ 8662 ebx = POP32_VAL(esp); /* 0x3602AF98: pop ebx */ 8663 ecx = MEM32(ebp + (-0xC)); /* 0x3602AF99: mov ecx, dword ptr [ebp - 0xc] */ 8664 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AF9C: mov dword ptr fs:[0], ecx */ 8665 esp = ebp; /* 0x3602AFA3: mov esp, ebp */ 8666 ebp = POP32_VAL(esp); /* 0x3602AFA5: pop ebp */ 8667 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602AFA6: ret 8 */ 8668 L_3602AFA9: 8669 ecx = MEM32(ebx + 0x150); /* 0x3602AFA9: mov ecx, dword ptr [ebx + 0x150] */ 8670 PUSH32(esp, esi); /* 0x3602AFAF: push esi */ 8671 RECOMP_ICALL(0x360619D0u); /* 0x3602AFB0: call 0x360619d0 */ /* not lifted */ 8672 RECOMP_FLAGS_IN(); 8673 /* test LO8(eax), LO8(eax) */ /* 0x3602AFB5: test al, al */ 8674 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8675 _cf = 0; 8676 _flag_k = FK_NARROW(FK_TEST, 24); 8677 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B0A8; /* 0x3602AFB7: je 0x3602b0a8 */ 8678 L_3602AFBD: 8679 PUSH32(esp, 2); /* 0x3602AFBD: push 2 */ 8680 PUSH32(esp, 0x1Eu); /* 0x3602AFBF: push 0x1e */ 8681 PUSH32(esp, esi); /* 0x3602AFC1: push esi */ 8682 ecx = edi; /* 0x3602AFC2: mov ecx, edi */ 8683 RECOMP_ICALL(0x3602BD80u); /* 0x3602AFC4: call 0x3602bd80 */ /* not lifted */ 8684 RECOMP_FLAGS_IN(); 8685 /* test LO8(eax), 8 */ /* 0x3602AFC9: test al, 8 */ 8686 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(8) << 24; 8687 _cf = 0; 8688 _flag_k = FK_NARROW(FK_TEST, 24); 8689 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B0A8; /* 0x3602AFCB: jne 0x3602b0a8 */ 8690 L_3602AFD1: 8691 ecx = MEM32(ebx + 0x150); /* 0x3602AFD1: mov ecx, dword ptr [ebx + 0x150] */ 8692 PUSH32(esp, esi); /* 0x3602AFD7: push esi */ 8693 RECOMP_ICALL(0x36061B10u); /* 0x3602AFD8: call 0x36061b10 */ /* not lifted */ 8694 RECOMP_FLAGS_IN(); 8695 /* test LO8(eax), LO8(eax) */ /* 0x3602AFDD: test al, al */ 8696 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8697 _cf = 0; 8698 _flag_k = FK_NARROW(FK_TEST, 24); 8699 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B000; /* 0x3602AFDF: je 0x3602b000 */ 8700 L_3602AFE1: 8701 PUSH32(esp, 0x6Fu); /* 0x3602AFE1: push 0x6f */ 8702 PUSH32(esp, 1); /* 0x3602AFE3: push 1 */ 8703 PUSH32(esp, esi); /* 0x3602AFE5: push esi */ 8704 ecx = edi; /* 0x3602AFE6: mov ecx, edi */ 8705 RECOMP_ICALL(0x3602A1F0u); /* 0x3602AFE8: call 0x3602a1f0 */ /* not lifted */ 8706 RECOMP_FLAGS_IN(); 8707 edi = POP32_VAL(esp); /* 0x3602AFED: pop edi */ 8708 esi = POP32_VAL(esp); /* 0x3602AFEE: pop esi */ 8709 ebx = POP32_VAL(esp); /* 0x3602AFEF: pop ebx */ 8710 ecx = MEM32(ebp + (-0xC)); /* 0x3602AFF0: mov ecx, dword ptr [ebp - 0xc] */ 8711 MEM32(FS_BASE + (0)) = ecx; /* 0x3602AFF3: mov dword ptr fs:[0], ecx */ 8712 esp = ebp; /* 0x3602AFFA: mov esp, ebp */ 8713 ebp = POP32_VAL(esp); /* 0x3602AFFC: pop ebp */ 8714 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602AFFD: ret 8 */ 8715 L_3602B000: 8716 PUSH32(esp, 2); /* 0x3602B000: push 2 */ 8717 PUSH32(esp, 0x4Cu); /* 0x3602B002: push 0x4c */ 8718 PUSH32(esp, esi); /* 0x3602B004: push esi */ 8719 ecx = edi; /* 0x3602B005: mov ecx, edi */ 8720 RECOMP_ICALL(0x3602BD80u); /* 0x3602B007: call 0x3602bd80 */ /* not lifted */ 8721 RECOMP_FLAGS_IN(); 8722 PUSH32(esp, 2); /* 0x3602B00C: push 2 */ 8723 PUSH32(esp, 0x58u); /* 0x3602B00E: push 0x58 */ 8724 PUSH32(esp, esi); /* 0x3602B010: push esi */ 8725 ecx = edi; /* 0x3602B011: mov ecx, edi */ 8726 MEM32(ebp + 0xC) = eax; /* 0x3602B013: mov dword ptr [ebp + 0xc], eax */ 8727 RECOMP_ICALL(0x3602BD80u); /* 0x3602B016: call 0x3602bd80 */ /* not lifted */ 8728 RECOMP_FLAGS_IN(); 8729 PUSH32(esp, 2); /* 0x3602B01B: push 2 */ 8730 PUSH32(esp, 0x1Au); /* 0x3602B01D: push 0x1a */ 8731 PUSH32(esp, esi); /* 0x3602B01F: push esi */ 8732 ecx = edi; /* 0x3602B020: mov ecx, edi */ 8733 ebx = eax; /* 0x3602B022: mov ebx, eax */ 8734 RECOMP_ICALL(0x3602BD80u); /* 0x3602B024: call 0x3602bd80 */ /* not lifted */ 8735 RECOMP_FLAGS_IN(); 8736 PUSH32(esp, 2); /* 0x3602B029: push 2 */ 8737 PUSH32(esp, 0x1A4u); /* 0x3602B02B: push 0x1a4 */ 8738 PUSH32(esp, esi); /* 0x3602B030: push esi */ 8739 ecx = edi; /* 0x3602B031: mov ecx, edi */ 8740 RECOMP_ICALL(0x3602BD80u); /* 0x3602B033: call 0x3602bd80 */ /* not lifted */ 8741 RECOMP_FLAGS_IN(); 8742 eax = MEM32(ebp + 0xC); /* 0x3602B038: mov eax, dword ptr [ebp + 0xc] */ 8743 /* cmp eax, 1 */ /* 0x3602B03B: cmp eax, 1 */ 8744 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8746 _flag_k = FK_CMP; 8747 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B05E; /* 0x3602B03E: jne 0x3602b05e */ 8748 L_3602B040: 8749 PUSH32(esp, ebx); /* 0x3602B040: push ebx */ 8750 PUSH32(esp, 7); /* 0x3602B041: push 7 */ 8751 PUSH32(esp, esi); /* 0x3602B043: push esi */ 8752 ecx = edi; /* 0x3602B044: mov ecx, edi */ 8753 RECOMP_ICALL(0x3602A1F0u); /* 0x3602B046: call 0x3602a1f0 */ /* not lifted */ 8754 RECOMP_FLAGS_IN(); 8755 edi = POP32_VAL(esp); /* 0x3602B04B: pop edi */ 8756 esi = POP32_VAL(esp); /* 0x3602B04C: pop esi */ 8757 ebx = POP32_VAL(esp); /* 0x3602B04D: pop ebx */ 8758 ecx = MEM32(ebp + (-0xC)); /* 0x3602B04E: mov ecx, dword ptr [ebp - 0xc] */ 8759 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B051: mov dword ptr fs:[0], ecx */ 8760 esp = ebp; /* 0x3602B058: mov esp, ebp */ 8761 ebp = POP32_VAL(esp); /* 0x3602B05A: pop ebp */ 8762 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B05B: ret 8 */ 8763 L_3602B05E: 8764 /* cmp eax, 2 */ /* 0x3602B05E: cmp eax, 2 */ 8765 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 8766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8767 _flag_k = FK_CMP; 8768 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B081; /* 0x3602B061: jne 0x3602b081 */ 8769 L_3602B063: 8770 PUSH32(esp, ebx); /* 0x3602B063: push ebx */ 8771 PUSH32(esp, 3); /* 0x3602B064: push 3 */ 8772 PUSH32(esp, esi); /* 0x3602B066: push esi */ 8773 ecx = edi; /* 0x3602B067: mov ecx, edi */ 8774 RECOMP_ICALL(0x3602A1F0u); /* 0x3602B069: call 0x3602a1f0 */ /* not lifted */ 8775 RECOMP_FLAGS_IN(); 8776 edi = POP32_VAL(esp); /* 0x3602B06E: pop edi */ 8777 esi = POP32_VAL(esp); /* 0x3602B06F: pop esi */ 8778 ebx = POP32_VAL(esp); /* 0x3602B070: pop ebx */ 8779 ecx = MEM32(ebp + (-0xC)); /* 0x3602B071: mov ecx, dword ptr [ebp - 0xc] */ 8780 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B074: mov dword ptr fs:[0], ecx */ 8781 esp = ebp; /* 0x3602B07B: mov esp, ebp */ 8782 ebp = POP32_VAL(esp); /* 0x3602B07D: pop ebp */ 8783 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B07E: ret 8 */ 8784 L_3602B081: 8785 /* cmp eax, 3 */ /* 0x3602B081: cmp eax, 3 */ 8786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 8787 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8788 _flag_k = FK_CMP; 8789 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B161; /* 0x3602B084: jne 0x3602b161 */ 8790 L_3602B08A: 8791 PUSH32(esp, ebx); /* 0x3602B08A: push ebx */ 8792 PUSH32(esp, 8); /* 0x3602B08B: push 8 */ 8793 PUSH32(esp, esi); /* 0x3602B08D: push esi */ 8794 ecx = edi; /* 0x3602B08E: mov ecx, edi */ 8795 RECOMP_ICALL(0x3602A1F0u); /* 0x3602B090: call 0x3602a1f0 */ /* not lifted */ 8796 RECOMP_FLAGS_IN(); 8797 edi = POP32_VAL(esp); /* 0x3602B095: pop edi */ 8798 esi = POP32_VAL(esp); /* 0x3602B096: pop esi */ 8799 ebx = POP32_VAL(esp); /* 0x3602B097: pop ebx */ 8800 ecx = MEM32(ebp + (-0xC)); /* 0x3602B098: mov ecx, dword ptr [ebp - 0xc] */ 8801 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B09B: mov dword ptr fs:[0], ecx */ 8802 esp = ebp; /* 0x3602B0A2: mov esp, ebp */ 8803 ebp = POP32_VAL(esp); /* 0x3602B0A4: pop ebp */ 8804 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B0A5: ret 8 */ 8805 L_3602B0A8: 8806 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x3602B0A8: mov al, byte ptr [ebp + 0xc] */ 8807 /* test LO8(eax), LO8(eax) */ /* 0x3602B0AB: test al, al */ 8808 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8809 _cf = 0; 8810 _flag_k = FK_NARROW(FK_TEST, 24); 8811 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B0F9; /* 0x3602B0AD: jne 0x3602b0f9 */ 8812 L_3602B0AF: 8813 PUSH32(esp, 2); /* 0x3602B0AF: push 2 */ 8814 PUSH32(esp, 0x1Eu); /* 0x3602B0B1: push 0x1e */ 8815 eax = ebp + (-0x14); /* 0x3602B0B3: lea eax, [ebp - 0x14] */ 8816 PUSH32(esp, eax); /* 0x3602B0B6: push eax */ 8817 ecx = edi; /* 0x3602B0B7: mov ecx, edi */ 8818 RECOMP_ICALL(0x3602BD80u); /* 0x3602B0B9: call 0x3602bd80 */ /* not lifted */ 8819 RECOMP_FLAGS_IN(); 8820 /* test LO8(eax), 0x10u */ /* 0x3602B0BE: test al, 0x10 */ 8821 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0x10u) << 24; 8822 _cf = 0; 8823 _flag_k = FK_NARROW(FK_TEST, 24); 8824 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B0F9; /* 0x3602B0C0: je 0x3602b0f9 */ 8825 L_3602B0C2: 8826 ecx = ebp + (-0x24); /* 0x3602B0C2: lea ecx, [ebp - 0x24] */ 8827 PUSH32(esp, ecx); /* 0x3602B0C5: push ecx */ 8828 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8829 eax = 0; /* 0x3602B0C6: xor eax, eax */ 8830 _cf = 0; 8831 _flag_k = FK_TEST; 8832 edx = ebp + (-0x14); /* 0x3602B0C8: lea edx, [ebp - 0x14] */ 8833 PUSH32(esp, edx); /* 0x3602B0CB: push edx */ 8834 PUSH32(esp, eax); /* 0x3602B0CC: push eax */ 8835 PUSH32(esp, 0x39u); /* 0x3602B0CD: push 0x39 */ 8836 PUSH32(esp, 0x361B68A0u); /* 0x3602B0CF: push 0x361b68a0 */ 8837 MEM32(ebp + (-0x24)) = eax; /* 0x3602B0D4: mov dword ptr [ebp - 0x24], eax */ 8838 MEM32(ebp + (-0x20)) = eax; /* 0x3602B0D7: mov dword ptr [ebp - 0x20], eax */ 8839 RECOMP_ICALL(0x3601C590u); /* 0x3602B0DA: call 0x3601c590 */ /* not lifted */ 8840 RECOMP_FLAGS_IN(); 8841 ecx = eax; /* 0x3602B0DF: mov ecx, eax */ 8842 RECOMP_ICALL(0x3601DC50u); /* 0x3602B0E1: call 0x3601dc50 */ /* not lifted */ 8843 RECOMP_FLAGS_IN(); 8844 edi = POP32_VAL(esp); /* 0x3602B0E6: pop edi */ 8845 esi = POP32_VAL(esp); /* 0x3602B0E7: pop esi */ 8846 ebx = POP32_VAL(esp); /* 0x3602B0E8: pop ebx */ 8847 ecx = MEM32(ebp + (-0xC)); /* 0x3602B0E9: mov ecx, dword ptr [ebp - 0xc] */ 8848 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B0EC: mov dword ptr fs:[0], ecx */ 8849 esp = ebp; /* 0x3602B0F3: mov esp, ebp */ 8850 ebp = POP32_VAL(esp); /* 0x3602B0F5: pop ebp */ 8851 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B0F6: ret 8 */ 8852 L_3602B0F9: 8853 PUSH32(esp, 0x1Cu); /* 0x3602B0F9: push 0x1c */ 8854 RECOMP_ICALL(0x3615FD6Au); /* 0x3602B0FB: call 0x3615fd6a */ /* not lifted */ 8855 RECOMP_FLAGS_IN(); 8856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8858 esp = esp + 4; /* 0x3602B100: add esp, 4 */ 8859 _flag_k = FK_ADD; 8860 MEM32(ebp + 0xC) = eax; /* 0x3602B103: mov dword ptr [ebp + 0xc], eax */ 8861 /* test eax, eax */ /* 0x3602B106: test eax, eax */ 8862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8863 _cf = 0; 8864 _flag_k = FK_TEST; 8865 MEM32(ebp + (-0x4)) = 5; /* 0x3602B108: mov dword ptr [ebp - 4], 5 */ 8866 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B124; /* 0x3602B10F: je 0x3602b124 */ 8867 L_3602B111: 8868 ecx = ebp + (-0x14); /* 0x3602B111: lea ecx, [ebp - 0x14] */ 8869 PUSH32(esp, ecx); /* 0x3602B114: push ecx */ 8870 edx = ebp + (-0x1C); /* 0x3602B115: lea edx, [ebp - 0x1c] */ 8871 PUSH32(esp, edx); /* 0x3602B118: push edx */ 8872 ecx = eax; /* 0x3602B119: mov ecx, eax */ 8873 RECOMP_ICALL(0x3604BEE0u); /* 0x3602B11B: call 0x3604bee0 */ /* not lifted */ 8874 RECOMP_FLAGS_IN(); 8875 esi = eax; /* 0x3602B120: mov esi, eax */ 8876 goto L_3602B126; /* 0x3602B122: jmp 0x3602b126 */ 8877 L_3602B124: 8878 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8879 esi = 0; /* 0x3602B124: xor esi, esi */ 8880 _cf = 0; 8881 _flag_k = FK_TEST; 8882 L_3602B126: 8883 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 8884 ebx = ebx | 0xFFFFFFFFu; /* 0x3602B126: or ebx, 0xffffffff */ 8885 _cf = 0; 8886 _flag_k = FK_TEST; 8887 PUSH32(esp, 0x34u); /* 0x3602B129: push 0x34 */ 8888 MEM32(ebp + (-0x4)) = ebx; /* 0x3602B12B: mov dword ptr [ebp - 4], ebx */ 8889 RECOMP_ICALL(0x3615FD6Au); /* 0x3602B12E: call 0x3615fd6a */ /* not lifted */ 8890 RECOMP_FLAGS_IN(); 8891 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8892 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8893 esp = esp + 4; /* 0x3602B133: add esp, 4 */ 8894 _flag_k = FK_ADD; 8895 MEM32(ebp + 0xC) = eax; /* 0x3602B136: mov dword ptr [ebp + 0xc], eax */ 8896 /* test eax, eax */ /* 0x3602B139: test eax, eax */ 8897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8898 _cf = 0; 8899 _flag_k = FK_TEST; 8900 MEM32(ebp + (-0x4)) = 6; /* 0x3602B13B: mov dword ptr [ebp - 4], 6 */ 8901 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B154; /* 0x3602B142: je 0x3602b154 */ 8902 L_3602B144: 8903 PUSH32(esp, 3); /* 0x3602B144: push 3 */ 8904 PUSH32(esp, esi); /* 0x3602B146: push esi */ 8905 ecx = ebp + (-0x1C); /* 0x3602B147: lea ecx, [ebp - 0x1c] */ 8906 PUSH32(esp, ecx); /* 0x3602B14A: push ecx */ 8907 ecx = eax; /* 0x3602B14B: mov ecx, eax */ 8908 RECOMP_ICALL(0x36087850u); /* 0x3602B14D: call 0x36087850 */ /* not lifted */ 8909 RECOMP_FLAGS_IN(); 8910 goto L_3602B156; /* 0x3602B152: jmp 0x3602b156 */ 8911 L_3602B154: 8912 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8913 eax = 0; /* 0x3602B154: xor eax, eax */ 8914 _cf = 0; 8915 _flag_k = FK_TEST; 8916 L_3602B156: 8917 edx = MEM32(edi); /* 0x3602B156: mov edx, dword ptr [edi] */ 8918 PUSH32(esp, eax); /* 0x3602B158: push eax */ 8919 ecx = edi; /* 0x3602B159: mov ecx, edi */ 8920 MEM32(ebp + (-0x4)) = ebx; /* 0x3602B15B: mov dword ptr [ebp - 4], ebx */ 8921 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3602B15E: call dword ptr [edx + 0x38] */ 8922 RECOMP_FLAGS_IN(); 8923 L_3602B161: 8924 ecx = MEM32(ebp + (-0xC)); /* 0x3602B161: mov ecx, dword ptr [ebp - 0xc] */ 8925 edi = POP32_VAL(esp); /* 0x3602B164: pop edi */ 8926 esi = POP32_VAL(esp); /* 0x3602B165: pop esi */ 8927 ebx = POP32_VAL(esp); /* 0x3602B166: pop ebx */ 8928 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B167: mov dword ptr fs:[0], ecx */ 8929 esp = ebp; /* 0x3602B16E: mov esp, ebp */ 8930 ebp = POP32_VAL(esp); /* 0x3602B170: pop ebp */ 8931 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B171: ret 8 */ 8932 RECOMP_REGS_OUT(); 8933 } 8934 8935 void sub_3602B156(void) { 8936 int _fpu_cmp = 0; 8937 uint32_t _cf = 0; 8938 int _df = 1; 8939 uint32_t _flag_k = FK_NONE; 8940 uint32_t _flag_a = 0, _flag_b = 0; 8941 uint32_t _itail_tgt = 0; 8942 RECOMP_REGS_LOCALS 8943 RECOMP_ENTER(0x3602B156u); 8944 8945 L_3602B156: 8946 edx = MEM32(edi); /* 0x3602B156: mov edx, dword ptr [edi] */ 8947 PUSH32(esp, eax); /* 0x3602B158: push eax */ 8948 ecx = edi; /* 0x3602B159: mov ecx, edi */ 8949 MEM32(ebp + (-0x4)) = ebx; /* 0x3602B15B: mov dword ptr [ebp - 4], ebx */ 8950 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3602B15E: call dword ptr [edx + 0x38] */ 8951 RECOMP_FLAGS_IN(); 8952 ecx = MEM32(ebp + (-0xC)); /* 0x3602B161: mov ecx, dword ptr [ebp - 0xc] */ 8953 edi = POP32_VAL(esp); /* 0x3602B164: pop edi */ 8954 esi = POP32_VAL(esp); /* 0x3602B165: pop esi */ 8955 ebx = POP32_VAL(esp); /* 0x3602B166: pop ebx */ 8956 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B167: mov dword ptr fs:[0], ecx */ 8957 esp = ebp; /* 0x3602B16E: mov esp, ebp */ 8958 ebp = POP32_VAL(esp); /* 0x3602B170: pop ebp */ 8959 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B171: ret 8 */ 8960 RECOMP_REGS_OUT(); 8961 } 8962 8963 void sub_3602B180(void) { 8964 int _fpu_cmp = 0; 8965 uint32_t _cf = 0; 8966 int _df = 1; 8967 uint32_t _flag_k = FK_NONE; 8968 uint32_t _flag_a = 0, _flag_b = 0; 8969 uint32_t _itail_tgt = 0; 8970 RECOMP_REGS_LOCALS 8971 RECOMP_ENTER(0x3602B180u); 8972 8973 L_3602B180: 8974 PUSH32(esp, ebp); /* 0x3602B180: push ebp */ 8975 ebp = esp; /* 0x3602B181: mov ebp, esp */ 8976 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602B183: push -1 */ 8977 PUSH32(esp, 0x3616379Bu); /* 0x3602B185: push 0x3616379b */ 8978 eax = MEM32(FS_BASE + (0)); /* 0x3602B18A: mov eax, dword ptr fs:[0] */ 8979 PUSH32(esp, eax); /* 0x3602B190: push eax */ 8980 MEM32(FS_BASE + (0)) = esp; /* 0x3602B191: mov dword ptr fs:[0], esp */ 8981 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8983 esp = esp - 0x10u; /* 0x3602B198: sub esp, 0x10 */ 8984 _flag_k = FK_CMP; 8985 PUSH32(esp, esi); /* 0x3602B19B: push esi */ 8986 esi = ecx; /* 0x3602B19C: mov esi, ecx */ 8987 RECOMP_ICALL(0x3602B220u); /* 0x3602B19E: call 0x3602b220 */ /* not lifted */ 8988 RECOMP_FLAGS_IN(); 8989 /* test LO8(eax), LO8(eax) */ /* 0x3602B1A3: test al, al */ 8990 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8991 _cf = 0; 8992 _flag_k = FK_NARROW(FK_TEST, 24); 8993 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B209; /* 0x3602B1A5: je 0x3602b209 */ 8994 L_3602B1A7: 8995 eax = MEM32(esi + 0x84); /* 0x3602B1A7: mov eax, dword ptr [esi + 0x84] */ 8996 MEM32(ebp + (-0x18)) = eax; /* 0x3602B1AD: mov dword ptr [ebp - 0x18], eax */ 8997 eax = ebp + (-0x1C); /* 0x3602B1B0: lea eax, [ebp - 0x1c] */ 8998 PUSH32(esp, eax); /* 0x3602B1B3: push eax */ 8999 MEM32(ebp + (-0x1C)) = 0xC350u; /* 0x3602B1B4: mov dword ptr [ebp - 0x1c], 0xc350 */ 9000 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602B1BB: call dword ptr [0x3616ff70] */ 9001 RECOMP_FLAGS_IN(); 9002 esi = eax; /* 0x3602B1C1: mov esi, eax */ 9003 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9005 esp = esp + 4; /* 0x3602B1C3: add esp, 4 */ 9006 _flag_k = FK_ADD; 9007 /* test esi, esi */ /* 0x3602B1C6: test esi, esi */ 9008 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9009 _cf = 0; 9010 _flag_k = FK_TEST; 9011 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B209; /* 0x3602B1C8: je 0x3602b209 */ 9012 L_3602B1CA: 9013 PUSH32(esp, 0x24u); /* 0x3602B1CA: push 0x24 */ 9014 RECOMP_ICALL(0x3615FD6Au); /* 0x3602B1CC: call 0x3615fd6a */ /* not lifted */ 9015 RECOMP_FLAGS_IN(); 9016 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9018 esp = esp + 4; /* 0x3602B1D1: add esp, 4 */ 9019 _flag_k = FK_ADD; 9020 MEM32(ebp + (-0x14)) = eax; /* 0x3602B1D4: mov dword ptr [ebp - 0x14], eax */ 9021 /* test eax, eax */ /* 0x3602B1D7: test eax, eax */ 9022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9023 _cf = 0; 9024 _flag_k = FK_TEST; 9025 MEM32(ebp + (-0x4)) = 0; /* 0x3602B1D9: mov dword ptr [ebp - 4], 0 */ 9026 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B1F1; /* 0x3602B1E0: je 0x3602b1f1 */ 9027 L_3602B1E2: 9028 PUSH32(esp, 1); /* 0x3602B1E2: push 1 */ 9029 ecx = ebp + (-0x1C); /* 0x3602B1E4: lea ecx, [ebp - 0x1c] */ 9030 PUSH32(esp, ecx); /* 0x3602B1E7: push ecx */ 9031 ecx = eax; /* 0x3602B1E8: mov ecx, eax */ 9032 RECOMP_ICALL(0x360841F0u); /* 0x3602B1EA: call 0x360841f0 */ /* not lifted */ 9033 RECOMP_FLAGS_IN(); 9034 goto L_3602B1F3; /* 0x3602B1EF: jmp 0x3602b1f3 */ 9035 L_3602B1F1: 9036 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9037 eax = 0; /* 0x3602B1F1: xor eax, eax */ 9038 _cf = 0; 9039 _flag_k = FK_TEST; 9040 L_3602B1F3: 9041 edx = ebp + (-0x10); /* 0x3602B1F3: lea edx, [ebp - 0x10] */ 9042 PUSH32(esp, edx); /* 0x3602B1F6: push edx */ 9043 ecx = esi; /* 0x3602B1F7: mov ecx, esi */ 9044 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602B1F9: mov dword ptr [ebp - 4], 0xffffffff */ 9045 MEM32(ebp + (-0x10)) = eax; /* 0x3602B200: mov dword ptr [ebp - 0x10], eax */ 9046 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602B203: call dword ptr [0x3617004c] */ 9047 RECOMP_FLAGS_IN(); 9048 L_3602B209: 9049 ecx = MEM32(ebp + (-0xC)); /* 0x3602B209: mov ecx, dword ptr [ebp - 0xc] */ 9050 esi = POP32_VAL(esp); /* 0x3602B20C: pop esi */ 9051 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B20D: mov dword ptr fs:[0], ecx */ 9052 esp = ebp; /* 0x3602B214: mov esp, ebp */ 9053 ebp = POP32_VAL(esp); /* 0x3602B216: pop ebp */ 9054 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B217: ret */ 9055 RECOMP_REGS_OUT(); 9056 } 9057 9058 void sub_3602B220(void) { 9059 int _fpu_cmp = 0; 9060 uint32_t _cf = 0; 9061 int _df = 1; 9062 uint32_t _flag_k = FK_NONE; 9063 uint32_t _flag_a = 0, _flag_b = 0; 9064 uint32_t _itail_tgt = 0; 9065 RECOMP_REGS_LOCALS 9066 RECOMP_ENTER(0x3602B220u); 9067 9068 L_3602B220: 9069 eax = MEM32(ecx + 0x88); /* 0x3602B220: mov eax, dword ptr [ecx + 0x88] */ 9070 PUSH32(esp, 0); /* 0x3602B226: push 0 */ 9071 PUSH32(esp, 0x361B2CD8u); /* 0x3602B228: push 0x361b2cd8 */ 9072 PUSH32(esp, 0x361B2CC0u); /* 0x3602B22D: push 0x361b2cc0 */ 9073 PUSH32(esp, 0); /* 0x3602B232: push 0 */ 9074 PUSH32(esp, eax); /* 0x3602B234: push eax */ 9075 RECOMP_ICALL(0x3615FD86u); /* 0x3602B235: call 0x3615fd86 */ /* not lifted */ 9076 RECOMP_FLAGS_IN(); 9077 ecx = MEM32(eax + 0x16C); /* 0x3602B23A: mov ecx, dword ptr [eax + 0x16c] */ 9078 edx = MEM32(ecx + 0x50); /* 0x3602B240: mov edx, dword ptr [ecx + 0x50] */ 9079 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9080 eax = 0; /* 0x3602B243: xor eax, eax */ 9081 _cf = 0; 9082 _flag_k = FK_TEST; 9083 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9084 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9085 esp = esp + 0x14u; /* 0x3602B245: add esp, 0x14 */ 9086 _flag_k = FK_ADD; 9087 /* cmp edx, 1 */ /* 0x3602B248: cmp edx, 1 */ 9088 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9090 _flag_k = FK_CMP; 9091 SET_LO8(eax, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x3602B24B: setne al */ 9092 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B24E: ret */ 9093 RECOMP_REGS_OUT(); 9094 } 9095 9096 void sub_3602B250(void) { 9097 int _fpu_cmp = 0; 9098 uint32_t _cf = 0; 9099 int _df = 1; 9100 uint32_t _flag_k = FK_NONE; 9101 uint32_t _flag_a = 0, _flag_b = 0; 9102 uint32_t _itail_tgt = 0; 9103 RECOMP_REGS_LOCALS 9104 RECOMP_ENTER(0x3602B250u); 9105 9106 L_3602B250: 9107 PUSH32(esp, ebp); /* 0x3602B250: push ebp */ 9108 ebp = esp; /* 0x3602B251: mov ebp, esp */ 9109 eax = MEM32(ecx + 0x88); /* 0x3602B253: mov eax, dword ptr [ecx + 0x88] */ 9110 PUSH32(esp, 0); /* 0x3602B259: push 0 */ 9111 PUSH32(esp, 0x361B2CD8u); /* 0x3602B25B: push 0x361b2cd8 */ 9112 PUSH32(esp, 0x361B2CC0u); /* 0x3602B260: push 0x361b2cc0 */ 9113 PUSH32(esp, 0); /* 0x3602B265: push 0 */ 9114 PUSH32(esp, eax); /* 0x3602B267: push eax */ 9115 RECOMP_ICALL(0x3615FD86u); /* 0x3602B268: call 0x3615fd86 */ /* not lifted */ 9116 RECOMP_FLAGS_IN(); 9117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9119 esp = esp + 0x14u; /* 0x3602B26D: add esp, 0x14 */ 9120 _flag_k = FK_ADD; 9121 /* test eax, eax */ /* 0x3602B270: test eax, eax */ 9122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9123 _cf = 0; 9124 _flag_k = FK_TEST; 9125 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B2A1; /* 0x3602B272: je 0x3602b2a1 */ 9126 L_3602B274: 9127 edx = MEM32(eax + 0x16C); /* 0x3602B274: mov edx, dword ptr [eax + 0x16c] */ 9128 ecx = MEM32(ebp + 0x8); /* 0x3602B27A: mov ecx, dword ptr [ebp + 8] */ 9129 PUSH32(esp, esi); /* 0x3602B27D: push esi */ 9130 esi = MEM32(edx + 0x58); /* 0x3602B27E: mov esi, dword ptr [edx + 0x58] */ 9131 MEM32(ecx) = esi; /* 0x3602B281: mov dword ptr [ecx], esi */ 9132 edx = MEM32(edx + 0x5C); /* 0x3602B283: mov edx, dword ptr [edx + 0x5c] */ 9133 MEM32(ecx + 0x4) = edx; /* 0x3602B286: mov dword ptr [ecx + 4], edx */ 9134 eax = MEM32(eax + 0x16C); /* 0x3602B289: mov eax, dword ptr [eax + 0x16c] */ 9135 edx = MEM32(eax + 0x50); /* 0x3602B28F: mov edx, dword ptr [eax + 0x50] */ 9136 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9137 ecx = 0; /* 0x3602B292: xor ecx, ecx */ 9138 _cf = 0; 9139 _flag_k = FK_TEST; 9140 /* cmp edx, 1 */ /* 0x3602B294: cmp edx, 1 */ 9141 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 9142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9143 _flag_k = FK_CMP; 9144 SET_LO8(ecx, (CMP_NE(_flag_a, _flag_b)) ? 1 : 0); /* 0x3602B297: setne cl */ 9145 SET_LO8(eax, LO8(ecx)); /* 0x3602B29A: mov al, cl */ 9146 esi = POP32_VAL(esp); /* 0x3602B29C: pop esi */ 9147 ebp = POP32_VAL(esp); /* 0x3602B29D: pop ebp */ 9148 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B29E: ret 4 */ 9149 L_3602B2A1: 9150 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 9151 SET_LO8(eax, 0); /* 0x3602B2A1: xor al, al */ 9152 _cf = 0; 9153 _flag_k = FK_NARROW(FK_TEST, 24); 9154 ebp = POP32_VAL(esp); /* 0x3602B2A3: pop ebp */ 9155 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B2A4: ret 4 */ 9156 RECOMP_REGS_OUT(); 9157 } 9158 9159 void sub_3602B2B0(void) { 9160 int _fpu_cmp = 0; 9161 uint32_t _cf = 0; 9162 int _df = 1; 9163 uint32_t _flag_k = FK_NONE; 9164 uint32_t _flag_a = 0, _flag_b = 0; 9165 uint32_t _itail_tgt = 0; 9166 RECOMP_REGS_LOCALS 9167 RECOMP_ENTER(0x3602B2B0u); 9168 9169 L_3602B2B0: 9170 PUSH32(esp, ebp); /* 0x3602B2B0: push ebp */ 9171 ebp = esp; /* 0x3602B2B1: mov ebp, esp */ 9172 PUSH32(esp, esi); /* 0x3602B2B3: push esi */ 9173 esi = MEM32(ecx + 0x88); /* 0x3602B2B4: mov esi, dword ptr [ecx + 0x88] */ 9174 eax = MEM32(esi + 0x16C); /* 0x3602B2BA: mov eax, dword ptr [esi + 0x16c] */ 9175 edx = MEM32(eax + 0x50); /* 0x3602B2C0: mov edx, dword ptr [eax + 0x50] */ 9176 PUSH32(esp, edi); /* 0x3602B2C3: push edi */ 9177 edi = 1; /* 0x3602B2C4: mov edi, 1 */ 9178 /* cmp edx, edi */ /* 0x3602B2C9: cmp edx, edi */ 9179 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 9180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9181 _flag_k = FK_CMP; 9182 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602B2D2; /* 0x3602B2CB: je 0x3602b2d2 */ 9183 L_3602B2CD: 9184 RECOMP_ICALL(0x3602B180u); /* 0x3602B2CD: call 0x3602b180 */ /* not lifted */ 9185 RECOMP_FLAGS_IN(); 9186 L_3602B2D2: 9187 ecx = esi; /* 0x3602B2D2: mov ecx, esi */ 9188 RECOMP_ICALL(0x3606D5A0u); /* 0x3602B2D4: call 0x3606d5a0 */ /* not lifted */ 9189 RECOMP_FLAGS_IN(); 9190 ecx = eax; /* 0x3602B2D9: mov ecx, eax */ 9191 RECOMP_ICALL(0x36047900u); /* 0x3602B2DB: call 0x36047900 */ /* not lifted */ 9192 RECOMP_FLAGS_IN(); 9193 ecx = eax; /* 0x3602B2E0: mov ecx, eax */ 9194 RECOMP_ICALL(0x36008320u); /* 0x3602B2E2: call 0x36008320 */ /* not lifted */ 9195 RECOMP_FLAGS_IN(); 9196 /* cmp eax, 4 */ /* 0x3602B2E7: cmp eax, 4 */ 9197 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 9198 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9199 _flag_k = FK_CMP; 9200 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B305; /* 0x3602B2EA: jne 0x3602b305 */ 9201 L_3602B2EC: 9202 PUSH32(esp, 0); /* 0x3602B2EC: push 0 */ 9203 PUSH32(esp, 0x361B695Cu); /* 0x3602B2EE: push 0x361b695c */ 9204 RECOMP_ICALL(0x3601C590u); /* 0x3602B2F3: call 0x3601c590 */ /* not lifted */ 9205 RECOMP_FLAGS_IN(); 9206 ecx = eax; /* 0x3602B2F8: mov ecx, eax */ 9207 RECOMP_ICALL(0x3601C8C0u); /* 0x3602B2FA: call 0x3601c8c0 */ /* not lifted */ 9208 RECOMP_FLAGS_IN(); 9209 edi = POP32_VAL(esp); /* 0x3602B2FF: pop edi */ 9210 esi = POP32_VAL(esp); /* 0x3602B300: pop esi */ 9211 ebp = POP32_VAL(esp); /* 0x3602B301: pop ebp */ 9212 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B302: ret 4 */ 9213 L_3602B305: 9214 ecx = MEM32(esi + 0x16C); /* 0x3602B305: mov ecx, dword ptr [esi + 0x16c] */ 9215 /* cmp MEM32(ecx + 0x50), edi */ /* 0x3602B30B: cmp dword ptr [ecx + 0x50], edi */ 9216 _flag_a = (uint32_t)(MEM32(ecx + 0x50)); _flag_b = (uint32_t)(edi); 9217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9218 _flag_k = FK_CMP; 9219 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B354; /* 0x3602B30E: jne 0x3602b354 */ 9220 L_3602B310: 9221 PUSH32(esp, 0); /* 0x3602B310: push 0 */ 9222 PUSH32(esp, edi); /* 0x3602B312: push edi */ 9223 edi = MEM32(ebp + 0x8); /* 0x3602B313: mov edi, dword ptr [ebp + 8] */ 9224 PUSH32(esp, edi); /* 0x3602B316: push edi */ 9225 RECOMP_ICALL(0x36079880u); /* 0x3602B317: call 0x36079880 */ /* not lifted */ 9226 RECOMP_FLAGS_IN(); 9227 /* test LO8(eax), LO8(eax) */ /* 0x3602B31C: test al, al */ 9228 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9229 _cf = 0; 9230 _flag_k = FK_NARROW(FK_TEST, 24); 9231 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B354; /* 0x3602B31E: je 0x3602b354 */ 9232 L_3602B320: 9233 ecx = MEM32(esi + 0x16C); /* 0x3602B320: mov ecx, dword ptr [esi + 0x16c] */ 9234 RECOMP_ICALL(0x3607BEC0u); /* 0x3602B326: call 0x3607bec0 */ /* not lifted */ 9235 RECOMP_FLAGS_IN(); 9236 /* test LO8(eax), LO8(eax) */ /* 0x3602B32B: test al, al */ 9237 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9238 _cf = 0; 9239 _flag_k = FK_NARROW(FK_TEST, 24); 9240 PUSH32(esp, 0); /* 0x3602B32D: push 0 */ 9241 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B348; /* 0x3602B32F: je 0x3602b348 */ 9242 L_3602B331: 9243 PUSH32(esp, 0x361B6934u); /* 0x3602B331: push 0x361b6934 */ 9244 RECOMP_ICALL(0x3601C590u); /* 0x3602B336: call 0x3601c590 */ /* not lifted */ 9245 RECOMP_FLAGS_IN(); 9246 ecx = eax; /* 0x3602B33B: mov ecx, eax */ 9247 RECOMP_ICALL(0x3601C8C0u); /* 0x3602B33D: call 0x3601c8c0 */ /* not lifted */ 9248 RECOMP_FLAGS_IN(); 9249 edi = POP32_VAL(esp); /* 0x3602B342: pop edi */ 9250 esi = POP32_VAL(esp); /* 0x3602B343: pop esi */ 9251 ebp = POP32_VAL(esp); /* 0x3602B344: pop ebp */ 9252 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B345: ret 4 */ 9253 L_3602B348: 9254 ecx = MEM32(esi + 0x16C); /* 0x3602B348: mov ecx, dword ptr [esi + 0x16c] */ 9255 PUSH32(esp, edi); /* 0x3602B34E: push edi */ 9256 RECOMP_ICALL(0x3607BEE0u); /* 0x3602B34F: call 0x3607bee0 */ /* not lifted */ 9257 RECOMP_FLAGS_IN(); 9258 L_3602B354: 9259 edi = POP32_VAL(esp); /* 0x3602B354: pop edi */ 9260 esi = POP32_VAL(esp); /* 0x3602B355: pop esi */ 9261 ebp = POP32_VAL(esp); /* 0x3602B356: pop ebp */ 9262 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B357: ret 4 */ 9263 RECOMP_REGS_OUT(); 9264 } 9265 9266 void sub_3602B360(void) { 9267 int _fpu_cmp = 0; 9268 uint32_t _cf = 0; 9269 int _df = 1; 9270 uint32_t _flag_k = FK_NONE; 9271 uint32_t _flag_a = 0, _flag_b = 0; 9272 uint32_t _itail_tgt = 0; 9273 RECOMP_REGS_LOCALS 9274 RECOMP_ENTER(0x3602B360u); 9275 9276 L_3602B360: 9277 PUSH32(esp, ebp); /* 0x3602B360: push ebp */ 9278 ebp = esp; /* 0x3602B361: mov ebp, esp */ 9279 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602B363: push -1 */ 9280 PUSH32(esp, 0x361637BBu); /* 0x3602B365: push 0x361637bb */ 9281 eax = MEM32(FS_BASE + (0)); /* 0x3602B36A: mov eax, dword ptr fs:[0] */ 9282 PUSH32(esp, eax); /* 0x3602B370: push eax */ 9283 MEM32(FS_BASE + (0)) = esp; /* 0x3602B371: mov dword ptr fs:[0], esp */ 9284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9286 esp = esp - 0xCu; /* 0x3602B378: sub esp, 0xc */ 9287 _flag_k = FK_CMP; 9288 PUSH32(esp, esi); /* 0x3602B37B: push esi */ 9289 esi = ecx; /* 0x3602B37C: mov esi, ecx */ 9290 ecx = MEM32(esi + 0x88); /* 0x3602B37E: mov ecx, dword ptr [esi + 0x88] */ 9291 /* test ecx, ecx */ /* 0x3602B384: test ecx, ecx */ 9292 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9293 _cf = 0; 9294 _flag_k = FK_TEST; 9295 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B412; /* 0x3602B386: je 0x3602b412 */ 9296 L_3602B38C: 9297 RECOMP_ICALL(0x3606D5A0u); /* 0x3602B38C: call 0x3606d5a0 */ /* not lifted */ 9298 RECOMP_FLAGS_IN(); 9299 ecx = eax; /* 0x3602B391: mov ecx, eax */ 9300 RECOMP_ICALL(0x36047900u); /* 0x3602B393: call 0x36047900 */ /* not lifted */ 9301 RECOMP_FLAGS_IN(); 9302 ecx = eax; /* 0x3602B398: mov ecx, eax */ 9303 RECOMP_ICALL(0x36008320u); /* 0x3602B39A: call 0x36008320 */ /* not lifted */ 9304 RECOMP_FLAGS_IN(); 9305 /* cmp eax, 4 */ /* 0x3602B39F: cmp eax, 4 */ 9306 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 9307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9308 _flag_k = FK_CMP; 9309 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B3C8; /* 0x3602B3A2: jne 0x3602b3c8 */ 9310 L_3602B3A4: 9311 PUSH32(esp, 0); /* 0x3602B3A4: push 0 */ 9312 PUSH32(esp, 0x361B6984u); /* 0x3602B3A6: push 0x361b6984 */ 9313 RECOMP_ICALL(0x3601C590u); /* 0x3602B3AB: call 0x3601c590 */ /* not lifted */ 9314 RECOMP_FLAGS_IN(); 9315 ecx = eax; /* 0x3602B3B0: mov ecx, eax */ 9316 RECOMP_ICALL(0x3601C8C0u); /* 0x3602B3B2: call 0x3601c8c0 */ /* not lifted */ 9317 RECOMP_FLAGS_IN(); 9318 esi = POP32_VAL(esp); /* 0x3602B3B7: pop esi */ 9319 ecx = MEM32(ebp + (-0xC)); /* 0x3602B3B8: mov ecx, dword ptr [ebp - 0xc] */ 9320 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B3BB: mov dword ptr fs:[0], ecx */ 9321 esp = ebp; /* 0x3602B3C2: mov esp, ebp */ 9322 ebp = POP32_VAL(esp); /* 0x3602B3C4: pop ebp */ 9323 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B3C5: ret 4 */ 9324 L_3602B3C8: 9325 eax = MEM32(esi + 0x84); /* 0x3602B3C8: mov eax, dword ptr [esi + 0x84] */ 9326 PUSH32(esp, 0x2Cu); /* 0x3602B3CE: push 0x2c */ 9327 MEM32(ebp + (-0x18)) = 0xC350u; /* 0x3602B3D0: mov dword ptr [ebp - 0x18], 0xc350 */ 9328 MEM32(ebp + (-0x14)) = eax; /* 0x3602B3D7: mov dword ptr [ebp - 0x14], eax */ 9329 RECOMP_ICALL(0x3615FD6Au); /* 0x3602B3DA: call 0x3615fd6a */ /* not lifted */ 9330 RECOMP_FLAGS_IN(); 9331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9333 esp = esp + 4; /* 0x3602B3DF: add esp, 4 */ 9334 _flag_k = FK_ADD; 9335 MEM32(ebp + (-0x10)) = eax; /* 0x3602B3E2: mov dword ptr [ebp - 0x10], eax */ 9336 /* test eax, eax */ /* 0x3602B3E5: test eax, eax */ 9337 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9338 _cf = 0; 9339 _flag_k = FK_TEST; 9340 MEM32(ebp + (-0x4)) = 0; /* 0x3602B3E7: mov dword ptr [ebp - 4], 0 */ 9341 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B401; /* 0x3602B3EE: je 0x3602b401 */ 9342 L_3602B3F0: 9343 ecx = MEM32(ebp + 0x8); /* 0x3602B3F0: mov ecx, dword ptr [ebp + 8] */ 9344 PUSH32(esp, ecx); /* 0x3602B3F3: push ecx */ 9345 edx = ebp + (-0x18); /* 0x3602B3F4: lea edx, [ebp - 0x18] */ 9346 PUSH32(esp, edx); /* 0x3602B3F7: push edx */ 9347 ecx = eax; /* 0x3602B3F8: mov ecx, eax */ 9348 RECOMP_ICALL(0x36084E20u); /* 0x3602B3FA: call 0x36084e20 */ /* not lifted */ 9349 RECOMP_FLAGS_IN(); 9350 goto L_3602B403; /* 0x3602B3FF: jmp 0x3602b403 */ 9351 L_3602B401: 9352 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9353 eax = 0; /* 0x3602B401: xor eax, eax */ 9354 _cf = 0; 9355 _flag_k = FK_TEST; 9356 L_3602B403: 9357 edx = MEM32(esi); /* 0x3602B403: mov edx, dword ptr [esi] */ 9358 PUSH32(esp, eax); /* 0x3602B405: push eax */ 9359 ecx = esi; /* 0x3602B406: mov ecx, esi */ 9360 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602B408: mov dword ptr [ebp - 4], 0xffffffff */ 9361 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3602B40F: call dword ptr [edx + 0x38] */ 9362 RECOMP_FLAGS_IN(); 9363 L_3602B412: 9364 ecx = MEM32(ebp + (-0xC)); /* 0x3602B412: mov ecx, dword ptr [ebp - 0xc] */ 9365 esi = POP32_VAL(esp); /* 0x3602B415: pop esi */ 9366 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B416: mov dword ptr fs:[0], ecx */ 9367 esp = ebp; /* 0x3602B41D: mov esp, ebp */ 9368 ebp = POP32_VAL(esp); /* 0x3602B41F: pop ebp */ 9369 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B420: ret 4 */ 9370 RECOMP_REGS_OUT(); 9371 } 9372 9373 void sub_3602B430(void) { 9374 int _fpu_cmp = 0; 9375 uint32_t _cf = 0; 9376 int _df = 1; 9377 uint32_t _flag_k = FK_NONE; 9378 uint32_t _flag_a = 0, _flag_b = 0; 9379 uint32_t _itail_tgt = 0; 9380 RECOMP_REGS_LOCALS 9381 RECOMP_ENTER(0x3602B430u); 9382 9383 L_3602B430: 9384 PUSH32(esp, ebp); /* 0x3602B430: push ebp */ 9385 ebp = esp; /* 0x3602B431: mov ebp, esp */ 9386 eax = MEM32(ebp + 0x8); /* 0x3602B433: mov eax, dword ptr [ebp + 8] */ 9387 PUSH32(esp, eax); /* 0x3602B436: push eax */ 9388 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602B437: call dword ptr [0x3616ff70] */ 9389 RECOMP_FLAGS_IN(); 9390 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9391 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9392 esp = esp + 4; /* 0x3602B43D: add esp, 4 */ 9393 _flag_k = FK_ADD; 9394 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 9395 SET_LO8(eax, 0); /* 0x3602B440: xor al, al */ 9396 _cf = 0; 9397 _flag_k = FK_NARROW(FK_TEST, 24); 9398 ebp = POP32_VAL(esp); /* 0x3602B442: pop ebp */ 9399 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B443: ret 4 */ 9400 RECOMP_REGS_OUT(); 9401 } 9402 9403 void sub_3602B450(void) { 9404 int _fpu_cmp = 0; 9405 uint32_t _cf = 0; 9406 int _df = 1; 9407 uint32_t _flag_k = FK_NONE; 9408 uint32_t _flag_a = 0, _flag_b = 0; 9409 uint32_t _itail_tgt = 0; 9410 RECOMP_REGS_LOCALS 9411 RECOMP_ENTER(0x3602B450u); 9412 9413 L_3602B450: 9414 PUSH32(esp, ebp); /* 0x3602B450: push ebp */ 9415 ebp = esp; /* 0x3602B451: mov ebp, esp */ 9416 PUSH32(esp, ebx); /* 0x3602B453: push ebx */ 9417 PUSH32(esp, esi); /* 0x3602B454: push esi */ 9418 esi = MEM32(ebp + 0x8); /* 0x3602B455: mov esi, dword ptr [ebp + 8] */ 9419 eax = MEM32(esi); /* 0x3602B458: mov eax, dword ptr [esi] */ 9420 /* cmp eax, 0x64u */ /* 0x3602B45A: cmp eax, 0x64 */ 9421 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u); 9422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9423 _flag_k = FK_CMP; 9424 PUSH32(esp, edi); /* 0x3602B45D: push edi */ 9425 ebx = ecx; /* 0x3602B45E: mov ebx, ecx */ 9426 if (CMP_LE(_flag_a, _flag_b)) goto L_3602B497; /* 0x3602B460: jle 0x3602b497 */ 9427 L_3602B462: 9428 /* cmp eax, 0xFAu */ /* 0x3602B462: cmp eax, 0xfa */ 9429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFAu); 9430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9431 _flag_k = FK_CMP; 9432 if (CMP_GE(_flag_a, _flag_b)) goto L_3602B497; /* 0x3602B467: jge 0x3602b497 */ 9433 L_3602B469: 9434 RECOMP_ICALL(0x3601F240u); /* 0x3602B469: call 0x3601f240 */ /* not lifted */ 9435 RECOMP_FLAGS_IN(); 9436 /* test eax, eax */ /* 0x3602B46E: test eax, eax */ 9437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9438 _cf = 0; 9439 _flag_k = FK_TEST; 9440 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B4FF; /* 0x3602B470: je 0x3602b4ff */ 9441 L_3602B476: 9442 ecx = MEM32(ebp + 0x14); /* 0x3602B476: mov ecx, dword ptr [ebp + 0x14] */ 9443 edx = MEM32(ebp + 0x10); /* 0x3602B479: mov edx, dword ptr [ebp + 0x10] */ 9444 eax = MEM32(eax + 0x150); /* 0x3602B47C: mov eax, dword ptr [eax + 0x150] */ 9445 PUSH32(esp, ecx); /* 0x3602B482: push ecx */ 9446 ecx = MEM32(ebp + 0xC); /* 0x3602B483: mov ecx, dword ptr [ebp + 0xc] */ 9447 PUSH32(esp, edx); /* 0x3602B486: push edx */ 9448 PUSH32(esp, ecx); /* 0x3602B487: push ecx */ 9449 PUSH32(esp, esi); /* 0x3602B488: push esi */ 9450 ecx = eax; /* 0x3602B489: mov ecx, eax */ 9451 RECOMP_ICALL(0x3605E1F0u); /* 0x3602B48B: call 0x3605e1f0 */ /* not lifted */ 9452 RECOMP_FLAGS_IN(); 9453 edi = POP32_VAL(esp); /* 0x3602B490: pop edi */ 9454 esi = POP32_VAL(esp); /* 0x3602B491: pop esi */ 9455 ebx = POP32_VAL(esp); /* 0x3602B492: pop ebx */ 9456 ebp = POP32_VAL(esp); /* 0x3602B493: pop ebp */ 9457 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3602B494: ret 0x10 */ 9458 L_3602B497: 9459 PUSH32(esp, 0); /* 0x3602B497: push 0 */ 9460 PUSH32(esp, 0x361B2CF8u); /* 0x3602B499: push 0x361b2cf8 */ 9461 PUSH32(esp, 0x361B2CC0u); /* 0x3602B49E: push 0x361b2cc0 */ 9462 PUSH32(esp, 0); /* 0x3602B4A3: push 0 */ 9463 PUSH32(esp, esi); /* 0x3602B4A5: push esi */ 9464 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602B4A6: call dword ptr [0x3616ff70] */ 9465 RECOMP_FLAGS_IN(); 9466 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9467 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9468 esp = esp + 4; /* 0x3602B4AC: add esp, 4 */ 9469 _flag_k = FK_ADD; 9470 PUSH32(esp, eax); /* 0x3602B4AF: push eax */ 9471 RECOMP_ICALL(0x3615FD86u); /* 0x3602B4B0: call 0x3615fd86 */ /* not lifted */ 9472 RECOMP_FLAGS_IN(); 9473 esi = eax; /* 0x3602B4B5: mov esi, eax */ 9474 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9476 esp = esp + 0x14u; /* 0x3602B4B7: add esp, 0x14 */ 9477 _flag_k = FK_ADD; 9478 /* test esi, esi */ /* 0x3602B4BA: test esi, esi */ 9479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9480 _cf = 0; 9481 _flag_k = FK_TEST; 9482 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B4FF; /* 0x3602B4BC: je 0x3602b4ff */ 9483 L_3602B4BE: 9484 edx = MEM32(esi); /* 0x3602B4BE: mov edx, dword ptr [esi] */ 9485 PUSH32(esp, 2); /* 0x3602B4C0: push 2 */ 9486 PUSH32(esp, 0x4Cu); /* 0x3602B4C2: push 0x4c */ 9487 ecx = esi; /* 0x3602B4C4: mov ecx, esi */ 9488 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602B4C6: call dword ptr [edx + 4] */ 9489 RECOMP_FLAGS_IN(); 9490 edi = eax; /* 0x3602B4C9: mov edi, eax */ 9491 /* cmp edi, 1 */ /* 0x3602B4CB: cmp edi, 1 */ 9492 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 9493 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9494 _flag_k = FK_CMP; 9495 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602B4DA; /* 0x3602B4CE: je 0x3602b4da */ 9496 L_3602B4D0: 9497 /* cmp edi, 2 */ /* 0x3602B4D0: cmp edi, 2 */ 9498 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 9499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9500 _flag_k = FK_CMP; 9501 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602B4DA; /* 0x3602B4D3: je 0x3602b4da */ 9502 L_3602B4D5: 9503 /* cmp edi, 3 */ /* 0x3602B4D5: cmp edi, 3 */ 9504 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3); 9505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9506 _flag_k = FK_CMP; 9507 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B4FF; /* 0x3602B4D8: jne 0x3602b4ff */ 9508 L_3602B4DA: 9509 ebx = MEM32(ebx + 0x88); /* 0x3602B4DA: mov ebx, dword ptr [ebx + 0x88] */ 9510 PUSH32(esp, ebx); /* 0x3602B4E0: push ebx */ 9511 ecx = esi; /* 0x3602B4E1: mov ecx, esi */ 9512 RECOMP_ICALL(0x3609F700u); /* 0x3602B4E3: call 0x3609f700 */ /* not lifted */ 9513 RECOMP_FLAGS_IN(); 9514 /* test LO8(eax), LO8(eax) */ /* 0x3602B4E8: test al, al */ 9515 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9516 _cf = 0; 9517 _flag_k = FK_NARROW(FK_TEST, 24); 9518 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B508; /* 0x3602B4EA: jne 0x3602b508 */ 9519 L_3602B4EC: 9520 PUSH32(esp, 0); /* 0x3602B4EC: push 0 */ 9521 PUSH32(esp, 0x361B69D0u); /* 0x3602B4EE: push 0x361b69d0 */ 9522 L_3602B4F3: 9523 RECOMP_ICALL(0x3601C590u); /* 0x3602B4F3: call 0x3601c590 */ /* not lifted */ 9524 RECOMP_FLAGS_IN(); 9525 ecx = eax; /* 0x3602B4F8: mov ecx, eax */ 9526 RECOMP_ICALL(0x3601C8C0u); /* 0x3602B4FA: call 0x3601c8c0 */ /* not lifted */ 9527 RECOMP_FLAGS_IN(); 9528 L_3602B4FF: 9529 edi = POP32_VAL(esp); /* 0x3602B4FF: pop edi */ 9530 esi = POP32_VAL(esp); /* 0x3602B500: pop esi */ 9531 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 9532 SET_LO8(eax, 0); /* 0x3602B501: xor al, al */ 9533 _cf = 0; 9534 _flag_k = FK_NARROW(FK_TEST, 24); 9535 ebx = POP32_VAL(esp); /* 0x3602B503: pop ebx */ 9536 ebp = POP32_VAL(esp); /* 0x3602B504: pop ebp */ 9537 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3602B505: ret 0x10 */ 9538 L_3602B508: 9539 /* cmp edi, 3 */ /* 0x3602B508: cmp edi, 3 */ 9540 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(3); 9541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9542 _flag_k = FK_CMP; 9543 if (CMP_NE(_flag_a, _flag_b)) goto L_3602B52E; /* 0x3602B50B: jne 0x3602b52e */ 9544 L_3602B50D: 9545 ecx = MEM32(ebx + 0x188); /* 0x3602B50D: mov ecx, dword ptr [ebx + 0x188] */ 9546 PUSH32(esp, 0x10u); /* 0x3602B513: push 0x10 */ 9547 RECOMP_ICALL(0x36059BA0u); /* 0x3602B515: call 0x36059ba0 */ /* not lifted */ 9548 RECOMP_FLAGS_IN(); 9549 /* test LO8(eax), LO8(eax) */ /* 0x3602B51A: test al, al */ 9550 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9551 _cf = 0; 9552 _flag_k = FK_NARROW(FK_TEST, 24); 9553 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B52E; /* 0x3602B51C: jne 0x3602b52e */ 9554 L_3602B51E: 9555 SET_LO8(eax, MEM8(ebp + 0x14)); /* 0x3602B51E: mov al, byte ptr [ebp + 0x14] */ 9556 /* test LO8(eax), LO8(eax) */ /* 0x3602B521: test al, al */ 9557 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9558 _cf = 0; 9559 _flag_k = FK_NARROW(FK_TEST, 24); 9560 RECOMP_BACKEDGE(); 9561 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B4FF; /* 0x3602B523: je 0x3602b4ff */ 9562 L_3602B525: 9563 PUSH32(esp, 0); /* 0x3602B525: push 0 */ 9564 PUSH32(esp, 0x361B6998u); /* 0x3602B527: push 0x361b6998 */ 9565 RECOMP_BACKEDGE(); 9566 goto L_3602B4F3; /* 0x3602B52C: jmp 0x3602b4f3 */ 9567 L_3602B52E: 9568 eax = MEM32(ebp + 0xC); /* 0x3602B52E: mov eax, dword ptr [ebp + 0xc] */ 9569 PUSH32(esp, eax); /* 0x3602B531: push eax */ 9570 ecx = esi; /* 0x3602B532: mov ecx, esi */ 9571 RECOMP_ICALL(0x3608EDA0u); /* 0x3602B534: call 0x3608eda0 */ /* not lifted */ 9572 RECOMP_FLAGS_IN(); 9573 /* test LO8(eax), LO8(eax) */ /* 0x3602B539: test al, al */ 9574 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9575 _cf = 0; 9576 _flag_k = FK_NARROW(FK_TEST, 24); 9577 RECOMP_BACKEDGE(); 9578 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B4FF; /* 0x3602B53B: je 0x3602b4ff */ 9579 L_3602B53D: 9580 edx = MEM32(esi); /* 0x3602B53D: mov edx, dword ptr [esi] */ 9581 PUSH32(esp, 1); /* 0x3602B53F: push 1 */ 9582 PUSH32(esp, ebx); /* 0x3602B541: push ebx */ 9583 ecx = esi; /* 0x3602B542: mov ecx, esi */ 9584 RECOMP_ICALL(MEM32(edx + 0x60)); /* 0x3602B544: call dword ptr [edx + 0x60] */ 9585 RECOMP_FLAGS_IN(); 9586 /* test eax, eax */ /* 0x3602B547: test eax, eax */ 9587 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9588 _cf = 0; 9589 _flag_k = FK_TEST; 9590 RECOMP_BACKEDGE(); 9591 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B4FF; /* 0x3602B549: je 0x3602b4ff */ 9592 L_3602B54B: 9593 eax = MEM32(ebp + 0xC); /* 0x3602B54B: mov eax, dword ptr [ebp + 0xc] */ 9594 ecx = MEM32(ebx + 0x150); /* 0x3602B54E: mov ecx, dword ptr [ebx + 0x150] */ 9595 PUSH32(esp, eax); /* 0x3602B554: push eax */ 9596 PUSH32(esp, edi); /* 0x3602B555: push edi */ 9597 RECOMP_ICALL(0x3605C610u); /* 0x3602B556: call 0x3605c610 */ /* not lifted */ 9598 RECOMP_FLAGS_IN(); 9599 /* test LO8(eax), LO8(eax) */ /* 0x3602B55B: test al, al */ 9600 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9601 _cf = 0; 9602 _flag_k = FK_NARROW(FK_TEST, 24); 9603 RECOMP_BACKEDGE(); 9604 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B4FF; /* 0x3602B55D: je 0x3602b4ff */ 9605 L_3602B55F: 9606 edi = POP32_VAL(esp); /* 0x3602B55F: pop edi */ 9607 esi = POP32_VAL(esp); /* 0x3602B560: pop esi */ 9608 SET_LO8(eax, 1); /* 0x3602B561: mov al, 1 */ 9609 ebx = POP32_VAL(esp); /* 0x3602B563: pop ebx */ 9610 ebp = POP32_VAL(esp); /* 0x3602B564: pop ebp */ 9611 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3602B565: ret 0x10 */ 9612 RECOMP_REGS_OUT(); 9613 } 9614 9615 void sub_3602B570(void) { 9616 int _fpu_cmp = 0; 9617 uint32_t _cf = 0; 9618 int _df = 1; 9619 uint32_t _flag_k = FK_NONE; 9620 uint32_t _flag_a = 0, _flag_b = 0; 9621 uint32_t _itail_tgt = 0; 9622 RECOMP_REGS_LOCALS 9623 RECOMP_ENTER(0x3602B570u); 9624 9625 L_3602B570: 9626 eax = MEM32(ecx + 0x88); /* 0x3602B570: mov eax, dword ptr [ecx + 0x88] */ 9627 PUSH32(esp, 0); /* 0x3602B576: push 0 */ 9628 PUSH32(esp, 0x361B2CD8u); /* 0x3602B578: push 0x361b2cd8 */ 9629 PUSH32(esp, 0x361B2CC0u); /* 0x3602B57D: push 0x361b2cc0 */ 9630 PUSH32(esp, 0); /* 0x3602B582: push 0 */ 9631 PUSH32(esp, eax); /* 0x3602B584: push eax */ 9632 RECOMP_ICALL(0x3615FD86u); /* 0x3602B585: call 0x3615fd86 */ /* not lifted */ 9633 RECOMP_FLAGS_IN(); 9634 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9635 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9636 esp = esp + 0x14u; /* 0x3602B58A: add esp, 0x14 */ 9637 _flag_k = FK_ADD; 9638 /* test eax, eax */ /* 0x3602B58D: test eax, eax */ 9639 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9640 _cf = 0; 9641 _flag_k = FK_TEST; 9642 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B592; /* 0x3602B58F: jne 0x3602b592 */ 9643 L_3602B591: 9644 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B591: ret */ 9645 L_3602B592: 9646 edx = MEM32(eax + 0xE4); /* 0x3602B592: mov edx, dword ptr [eax + 0xe4] */ 9647 ecx = eax + 0xE4; /* 0x3602B598: lea ecx, [eax + 0xe4] */ 9648 PUSH32(esp, 2); /* 0x3602B59E: push 2 */ 9649 PUSH32(esp, 0x33u); /* 0x3602B5A0: push 0x33 */ 9650 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602B5A2: call dword ptr [edx + 4] */ 9651 RECOMP_FLAGS_IN(); 9652 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B5A5: ret */ 9653 RECOMP_REGS_OUT(); 9654 } 9655 9656 void sub_3602B5B0(void) { 9657 int _fpu_cmp = 0; 9658 uint32_t _cf = 0; 9659 int _df = 1; 9660 uint32_t _flag_k = FK_NONE; 9661 uint32_t _flag_a = 0, _flag_b = 0; 9662 uint32_t _itail_tgt = 0; 9663 RECOMP_REGS_LOCALS 9664 RECOMP_ENTER(0x3602B5B0u); 9665 9666 L_3602B5B0: 9667 PUSH32(esp, ebp); /* 0x3602B5B0: push ebp */ 9668 ebp = esp; /* 0x3602B5B1: mov ebp, esp */ 9669 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602B5B3: push -1 */ 9670 PUSH32(esp, 0x361637DBu); /* 0x3602B5B5: push 0x361637db */ 9671 eax = MEM32(FS_BASE + (0)); /* 0x3602B5BA: mov eax, dword ptr fs:[0] */ 9672 PUSH32(esp, eax); /* 0x3602B5C0: push eax */ 9673 MEM32(FS_BASE + (0)) = esp; /* 0x3602B5C1: mov dword ptr fs:[0], esp */ 9674 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 9675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9676 esp = esp - 0xCu; /* 0x3602B5C8: sub esp, 0xc */ 9677 _flag_k = FK_CMP; 9678 PUSH32(esp, esi); /* 0x3602B5CB: push esi */ 9679 PUSH32(esp, 0x24u); /* 0x3602B5CC: push 0x24 */ 9680 esi = ecx; /* 0x3602B5CE: mov esi, ecx */ 9681 RECOMP_ICALL(0x3615FD6Au); /* 0x3602B5D0: call 0x3615fd6a */ /* not lifted */ 9682 RECOMP_FLAGS_IN(); 9683 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9684 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9685 esp = esp + 4; /* 0x3602B5D5: add esp, 4 */ 9686 _flag_k = FK_ADD; 9687 MEM32(ebp + (-0x10)) = eax; /* 0x3602B5D8: mov dword ptr [ebp - 0x10], eax */ 9688 /* test eax, eax */ /* 0x3602B5DB: test eax, eax */ 9689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9690 _cf = 0; 9691 _flag_k = FK_TEST; 9692 MEM32(ebp + (-0x4)) = 0; /* 0x3602B5DD: mov dword ptr [ebp - 4], 0 */ 9693 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B607; /* 0x3602B5E4: je 0x3602b607 */ 9694 L_3602B5E6: 9695 ecx = MEM32(esi + 0x84); /* 0x3602B5E6: mov ecx, dword ptr [esi + 0x84] */ 9696 MEM32(ebp + (-0x14)) = ecx; /* 0x3602B5EC: mov dword ptr [ebp - 0x14], ecx */ 9697 ecx = MEM32(ebp + 0x8); /* 0x3602B5EF: mov ecx, dword ptr [ebp + 8] */ 9698 PUSH32(esp, ecx); /* 0x3602B5F2: push ecx */ 9699 edx = ebp + (-0x18); /* 0x3602B5F3: lea edx, [ebp - 0x18] */ 9700 PUSH32(esp, edx); /* 0x3602B5F6: push edx */ 9701 ecx = eax; /* 0x3602B5F7: mov ecx, eax */ 9702 MEM32(ebp + (-0x18)) = 0xC350u; /* 0x3602B5F9: mov dword ptr [ebp - 0x18], 0xc350 */ 9703 RECOMP_ICALL(0x36080F10u); /* 0x3602B600: call 0x36080f10 */ /* not lifted */ 9704 RECOMP_FLAGS_IN(); 9705 goto L_3602B609; /* 0x3602B605: jmp 0x3602b609 */ 9706 L_3602B607: 9707 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9708 eax = 0; /* 0x3602B607: xor eax, eax */ 9709 _cf = 0; 9710 _flag_k = FK_TEST; 9711 L_3602B609: 9712 edx = MEM32(esi); /* 0x3602B609: mov edx, dword ptr [esi] */ 9713 PUSH32(esp, eax); /* 0x3602B60B: push eax */ 9714 ecx = esi; /* 0x3602B60C: mov ecx, esi */ 9715 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602B60E: mov dword ptr [ebp - 4], 0xffffffff */ 9716 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3602B615: call dword ptr [edx + 0x38] */ 9717 RECOMP_FLAGS_IN(); 9718 ecx = MEM32(ebp + (-0xC)); /* 0x3602B618: mov ecx, dword ptr [ebp - 0xc] */ 9719 esi = POP32_VAL(esp); /* 0x3602B61B: pop esi */ 9720 MEM32(FS_BASE + (0)) = ecx; /* 0x3602B61C: mov dword ptr fs:[0], ecx */ 9721 esp = ebp; /* 0x3602B623: mov esp, ebp */ 9722 ebp = POP32_VAL(esp); /* 0x3602B625: pop ebp */ 9723 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B626: ret 4 */ 9724 RECOMP_REGS_OUT(); 9725 } 9726 9727 void sub_3602B630(void) { 9728 int _fpu_cmp = 0; 9729 uint32_t _cf = 0; 9730 int _df = 1; 9731 uint32_t _flag_k = FK_NONE; 9732 uint32_t _flag_a = 0, _flag_b = 0; 9733 uint32_t _itail_tgt = 0; 9734 RECOMP_REGS_LOCALS 9735 RECOMP_ENTER(0x3602B630u); 9736 9737 L_3602B630: 9738 PUSH32(esp, ebp); /* 0x3602B630: push ebp */ 9739 L_3602B631: 9740 ebp = esp; /* 0x3602B631: mov ebp, esp */ 9741 L_3602B633: 9742 eax = MEM32(ecx + 0x88); /* 0x3602B633: mov eax, dword ptr [ecx + 0x88] */ 9743 L_3602B639: 9744 PUSH32(esp, 0); /* 0x3602B639: push 0 */ 9745 L_3602B63B: 9746 PUSH32(esp, 0x361B2CD8u); /* 0x3602B63B: push 0x361b2cd8 */ 9747 L_3602B640: 9748 PUSH32(esp, 0x361B2CC0u); /* 0x3602B640: push 0x361b2cc0 */ 9749 L_3602B645: 9750 PUSH32(esp, 0); /* 0x3602B645: push 0 */ 9751 L_3602B647: 9752 PUSH32(esp, eax); /* 0x3602B647: push eax */ 9753 L_3602B648: 9754 RECOMP_ICALL(0x3615FD86u); /* 0x3602B648: call 0x3615fd86 */ /* not lifted */ 9755 RECOMP_FLAGS_IN(); 9756 L_3602B64D: 9757 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9759 esp = esp + 0x14u; /* 0x3602B64D: add esp, 0x14 */ 9760 _flag_k = FK_ADD; 9761 L_3602B650: 9762 /* test eax, eax */ /* 0x3602B650: test eax, eax */ 9763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9764 _cf = 0; 9765 _flag_k = FK_TEST; 9766 L_3602B652: 9767 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_3602B658; /* 0x3602B652: jne 0x3602b658 */ 9768 L_3602B654: 9769 ebp = POP32_VAL(esp); /* 0x3602B654: pop ebp */ 9770 L_3602B655: 9771 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B655: ret 8 */ 9772 L_3602B658: 9773 ecx = MEM32(ebp + 0xC); /* 0x3602B658: mov ecx, dword ptr [ebp + 0xc] */ 9774 L_3602B65B: 9775 /* cmp ecx, 3 */ /* 0x3602B65B: cmp ecx, 3 */ 9776 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9778 _flag_k = FK_CMP; 9779 L_3602B65E: 9780 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3602B6A6; /* 0x3602B65E: ja 0x3602b6a6 */ 9781 L_3602B660: 9782 { _itail_tgt = (uint32_t)(MEM32(ecx * 4 + 0x3602B6C0)); goto _ljump; } 9783 L_3602B667: 9784 ecx = MEM32(ebp + 0x8); /* 0x3602B667: mov ecx, dword ptr [ebp + 8] */ 9785 L_3602B66A: 9786 eax = MEM32(eax + 0x154); /* 0x3602B66A: mov eax, dword ptr [eax + 0x154] */ 9787 L_3602B670: 9788 PUSH32(esp, ecx); /* 0x3602B670: push ecx */ 9789 L_3602B671: 9790 ecx = eax; /* 0x3602B671: mov ecx, eax */ 9791 L_3602B673: 9792 RECOMP_ICALL(0x36075C60u); /* 0x3602B673: call 0x36075c60 */ /* not lifted */ 9793 RECOMP_FLAGS_IN(); 9794 L_3602B678: 9795 ebp = POP32_VAL(esp); /* 0x3602B678: pop ebp */ 9796 L_3602B679: 9797 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B679: ret 8 */ 9798 L_3602B67C: 9799 eax = MEM32(eax + 0x154); /* 0x3602B67C: mov eax, dword ptr [eax + 0x154] */ 9800 L_3602B682: 9801 edx = MEM32(ebp + 0x8); /* 0x3602B682: mov edx, dword ptr [ebp + 8] */ 9802 L_3602B685: 9803 PUSH32(esp, edx); /* 0x3602B685: push edx */ 9804 L_3602B686: 9805 ecx = eax; /* 0x3602B686: mov ecx, eax */ 9806 L_3602B688: 9807 RECOMP_ICALL(0x36075CA0u); /* 0x3602B688: call 0x36075ca0 */ /* not lifted */ 9808 RECOMP_FLAGS_IN(); 9809 L_3602B68D: 9810 ebp = POP32_VAL(esp); /* 0x3602B68D: pop ebp */ 9811 L_3602B68E: 9812 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B68E: ret 8 */ 9813 L_3602B691: 9814 ecx = MEM32(ebp + 0x8); /* 0x3602B691: mov ecx, dword ptr [ebp + 8] */ 9815 L_3602B694: 9816 eax = MEM32(eax + 0x154); /* 0x3602B694: mov eax, dword ptr [eax + 0x154] */ 9817 L_3602B69A: 9818 PUSH32(esp, ecx); /* 0x3602B69A: push ecx */ 9819 L_3602B69B: 9820 ecx = eax; /* 0x3602B69B: mov ecx, eax */ 9821 L_3602B69D: 9822 RECOMP_ICALL(0x36075CD0u); /* 0x3602B69D: call 0x36075cd0 */ /* not lifted */ 9823 RECOMP_FLAGS_IN(); 9824 L_3602B6A2: 9825 ebp = POP32_VAL(esp); /* 0x3602B6A2: pop ebp */ 9826 L_3602B6A3: 9827 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B6A3: ret 8 */ 9828 L_3602B6A6: 9829 edx = MEM32(eax + 0xE4); /* 0x3602B6A6: mov edx, dword ptr [eax + 0xe4] */ 9830 L_3602B6AC: 9831 ecx = eax + 0xE4; /* 0x3602B6AC: lea ecx, [eax + 0xe4] */ 9832 L_3602B6B2: 9833 eax = MEM32(ebp + 0x8); /* 0x3602B6B2: mov eax, dword ptr [ebp + 8] */ 9834 L_3602B6B5: 9835 PUSH32(esp, 2); /* 0x3602B6B5: push 2 */ 9836 L_3602B6B7: 9837 PUSH32(esp, eax); /* 0x3602B6B7: push eax */ 9838 L_3602B6B8: 9839 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602B6B8: call dword ptr [edx + 4] */ 9840 RECOMP_FLAGS_IN(); 9841 L_3602B6BB: 9842 ebp = POP32_VAL(esp); /* 0x3602B6BB: pop ebp */ 9843 L_3602B6BC: 9844 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B6BC: ret 8 */ 9845 _ljump: 9846 switch (_itail_tgt) { 9847 case 0x3602B630u: goto L_3602B630; 9848 case 0x3602B631u: goto L_3602B631; 9849 case 0x3602B633u: goto L_3602B633; 9850 case 0x3602B639u: goto L_3602B639; 9851 case 0x3602B63Bu: goto L_3602B63B; 9852 case 0x3602B640u: goto L_3602B640; 9853 case 0x3602B645u: goto L_3602B645; 9854 case 0x3602B647u: goto L_3602B647; 9855 case 0x3602B648u: goto L_3602B648; 9856 case 0x3602B64Du: goto L_3602B64D; 9857 case 0x3602B650u: goto L_3602B650; 9858 case 0x3602B652u: goto L_3602B652; 9859 case 0x3602B654u: goto L_3602B654; 9860 case 0x3602B655u: goto L_3602B655; 9861 case 0x3602B658u: goto L_3602B658; 9862 case 0x3602B65Bu: goto L_3602B65B; 9863 case 0x3602B65Eu: goto L_3602B65E; 9864 case 0x3602B660u: goto L_3602B660; 9865 case 0x3602B667u: goto L_3602B667; 9866 case 0x3602B66Au: goto L_3602B66A; 9867 case 0x3602B670u: goto L_3602B670; 9868 case 0x3602B671u: goto L_3602B671; 9869 case 0x3602B673u: goto L_3602B673; 9870 case 0x3602B678u: goto L_3602B678; 9871 case 0x3602B679u: goto L_3602B679; 9872 case 0x3602B67Cu: goto L_3602B67C; 9873 case 0x3602B682u: goto L_3602B682; 9874 case 0x3602B685u: goto L_3602B685; 9875 case 0x3602B686u: goto L_3602B686; 9876 case 0x3602B688u: goto L_3602B688; 9877 case 0x3602B68Du: goto L_3602B68D; 9878 case 0x3602B68Eu: goto L_3602B68E; 9879 case 0x3602B691u: goto L_3602B691; 9880 case 0x3602B694u: goto L_3602B694; 9881 case 0x3602B69Au: goto L_3602B69A; 9882 case 0x3602B69Bu: goto L_3602B69B; 9883 case 0x3602B69Du: goto L_3602B69D; 9884 case 0x3602B6A2u: goto L_3602B6A2; 9885 case 0x3602B6A3u: goto L_3602B6A3; 9886 case 0x3602B6A6u: goto L_3602B6A6; 9887 case 0x3602B6ACu: goto L_3602B6AC; 9888 case 0x3602B6B2u: goto L_3602B6B2; 9889 case 0x3602B6B5u: goto L_3602B6B5; 9890 case 0x3602B6B7u: goto L_3602B6B7; 9891 case 0x3602B6B8u: goto L_3602B6B8; 9892 case 0x3602B6BBu: goto L_3602B6BB; 9893 case 0x3602B6BCu: goto L_3602B6BC; 9894 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9895 } 9896 RECOMP_REGS_OUT(); 9897 } 9898 9899 void sub_3602B6D0(void) { 9900 int _fpu_cmp = 0; 9901 uint32_t _cf = 0; 9902 int _df = 1; 9903 uint32_t _flag_k = FK_NONE; 9904 uint32_t _flag_a = 0, _flag_b = 0; 9905 uint32_t _itail_tgt = 0; 9906 RECOMP_REGS_LOCALS 9907 RECOMP_ENTER(0x3602B6D0u); 9908 9909 L_3602B6D0: 9910 PUSH32(esp, ebp); /* 0x3602B6D0: push ebp */ 9911 ebp = esp; /* 0x3602B6D1: mov ebp, esp */ 9912 eax = MEM32(ecx + 0x88); /* 0x3602B6D3: mov eax, dword ptr [ecx + 0x88] */ 9913 PUSH32(esp, 0); /* 0x3602B6D9: push 0 */ 9914 PUSH32(esp, 0x361B2CD8u); /* 0x3602B6DB: push 0x361b2cd8 */ 9915 PUSH32(esp, 0x361B2CC0u); /* 0x3602B6E0: push 0x361b2cc0 */ 9916 PUSH32(esp, 0); /* 0x3602B6E5: push 0 */ 9917 PUSH32(esp, eax); /* 0x3602B6E7: push eax */ 9918 RECOMP_ICALL(0x3615FD86u); /* 0x3602B6E8: call 0x3615fd86 */ /* not lifted */ 9919 RECOMP_FLAGS_IN(); 9920 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9922 esp = esp + 0x14u; /* 0x3602B6ED: add esp, 0x14 */ 9923 _flag_k = FK_ADD; 9924 /* test eax, eax */ /* 0x3602B6F0: test eax, eax */ 9925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9926 _cf = 0; 9927 _flag_k = FK_TEST; 9928 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B6F8; /* 0x3602B6F2: jne 0x3602b6f8 */ 9929 L_3602B6F4: 9930 ebp = POP32_VAL(esp); /* 0x3602B6F4: pop ebp */ 9931 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B6F5: ret 4 */ 9932 L_3602B6F8: 9933 ecx = MEM32(ebp + 0x8); /* 0x3602B6F8: mov ecx, dword ptr [ebp + 8] */ 9934 eax = MEM32(eax + 0x154); /* 0x3602B6FB: mov eax, dword ptr [eax + 0x154] */ 9935 PUSH32(esp, 1); /* 0x3602B701: push 1 */ 9936 PUSH32(esp, ecx); /* 0x3602B703: push ecx */ 9937 ecx = eax; /* 0x3602B704: mov ecx, eax */ 9938 RECOMP_ICALL(0x36073FA0u); /* 0x3602B706: call 0x36073fa0 */ /* not lifted */ 9939 RECOMP_FLAGS_IN(); 9940 RECOMP_ICALL(0x3615FD8Cu); /* 0x3602B70B: call 0x3615fd8c */ /* not lifted */ 9941 RECOMP_FLAGS_IN(); 9942 ebp = POP32_VAL(esp); /* 0x3602B710: pop ebp */ 9943 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B711: ret 4 */ 9944 RECOMP_REGS_OUT(); 9945 } 9946 9947 void sub_3602B720(void) { 9948 int _fpu_cmp = 0; 9949 uint32_t _cf = 0; 9950 int _df = 1; 9951 uint32_t _flag_k = FK_NONE; 9952 uint32_t _flag_a = 0, _flag_b = 0; 9953 uint32_t _itail_tgt = 0; 9954 RECOMP_REGS_LOCALS 9955 RECOMP_ENTER(0x3602B720u); 9956 9957 L_3602B720: 9958 PUSH32(esp, ebp); /* 0x3602B720: push ebp */ 9959 ebp = esp; /* 0x3602B721: mov ebp, esp */ 9960 eax = MEM32(ecx + 0x88); /* 0x3602B723: mov eax, dword ptr [ecx + 0x88] */ 9961 PUSH32(esp, 0); /* 0x3602B729: push 0 */ 9962 PUSH32(esp, 0x361B2CD8u); /* 0x3602B72B: push 0x361b2cd8 */ 9963 PUSH32(esp, 0x361B2CC0u); /* 0x3602B730: push 0x361b2cc0 */ 9964 PUSH32(esp, 0); /* 0x3602B735: push 0 */ 9965 PUSH32(esp, eax); /* 0x3602B737: push eax */ 9966 RECOMP_ICALL(0x3615FD86u); /* 0x3602B738: call 0x3615fd86 */ /* not lifted */ 9967 RECOMP_FLAGS_IN(); 9968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9970 esp = esp + 0x14u; /* 0x3602B73D: add esp, 0x14 */ 9971 _flag_k = FK_ADD; 9972 /* test eax, eax */ /* 0x3602B740: test eax, eax */ 9973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9974 _cf = 0; 9975 _flag_k = FK_TEST; 9976 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B74E; /* 0x3602B742: jne 0x3602b74e */ 9977 L_3602B744: 9978 fp_push(*(float*)&MEM32(0x3617040C)); /* 0x3602B744: fld dword ptr [0x3617040c] */ 9979 ebp = POP32_VAL(esp); /* 0x3602B74A: pop ebp */ 9980 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B74B: ret 4 */ 9981 L_3602B74E: 9982 edx = MEM32(eax + 0xE4); /* 0x3602B74E: mov edx, dword ptr [eax + 0xe4] */ 9983 PUSH32(esp, esi); /* 0x3602B754: push esi */ 9984 esi = MEM32(eax + 0x154); /* 0x3602B755: mov esi, dword ptr [eax + 0x154] */ 9985 PUSH32(esp, edi); /* 0x3602B75B: push edi */ 9986 edi = MEM32(ebp + 0x8); /* 0x3602B75C: mov edi, dword ptr [ebp + 8] */ 9987 ecx = eax + 0xE4; /* 0x3602B75F: lea ecx, [eax + 0xe4] */ 9988 PUSH32(esp, 2); /* 0x3602B765: push 2 */ 9989 PUSH32(esp, edi); /* 0x3602B767: push edi */ 9990 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602B768: call dword ptr [edx + 4] */ 9991 RECOMP_FLAGS_IN(); 9992 PUSH32(esp, eax); /* 0x3602B76B: push eax */ 9993 PUSH32(esp, edi); /* 0x3602B76C: push edi */ 9994 ecx = esi; /* 0x3602B76D: mov ecx, esi */ 9995 RECOMP_ICALL(0x360751E0u); /* 0x3602B76F: call 0x360751e0 */ /* not lifted */ 9996 RECOMP_FLAGS_IN(); 9997 edi = POP32_VAL(esp); /* 0x3602B774: pop edi */ 9998 esi = POP32_VAL(esp); /* 0x3602B775: pop esi */ 9999 ebp = POP32_VAL(esp); /* 0x3602B776: pop ebp */ 10000 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B777: ret 4 */ 10001 RECOMP_REGS_OUT(); 10002 } 10003 10004 void sub_3602B780(void) { 10005 int _fpu_cmp = 0; 10006 uint32_t _cf = 0; 10007 int _df = 1; 10008 uint32_t _flag_k = FK_NONE; 10009 uint32_t _flag_a = 0, _flag_b = 0; 10010 uint32_t _itail_tgt = 0; 10011 RECOMP_REGS_LOCALS 10012 RECOMP_ENTER(0x3602B780u); 10013 10014 L_3602B780: 10015 PUSH32(esp, ebp); /* 0x3602B780: push ebp */ 10016 ebp = esp; /* 0x3602B781: mov ebp, esp */ 10017 eax = MEM32(ecx + 0x88); /* 0x3602B783: mov eax, dword ptr [ecx + 0x88] */ 10018 PUSH32(esp, 0); /* 0x3602B789: push 0 */ 10019 PUSH32(esp, 0x361B2CD8u); /* 0x3602B78B: push 0x361b2cd8 */ 10020 PUSH32(esp, 0x361B2CC0u); /* 0x3602B790: push 0x361b2cc0 */ 10021 PUSH32(esp, 0); /* 0x3602B795: push 0 */ 10022 PUSH32(esp, eax); /* 0x3602B797: push eax */ 10023 RECOMP_ICALL(0x3615FD86u); /* 0x3602B798: call 0x3615fd86 */ /* not lifted */ 10024 RECOMP_FLAGS_IN(); 10025 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10026 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10027 esp = esp + 0x14u; /* 0x3602B79D: add esp, 0x14 */ 10028 _flag_k = FK_ADD; 10029 /* test eax, eax */ /* 0x3602B7A0: test eax, eax */ 10030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10031 _cf = 0; 10032 _flag_k = FK_TEST; 10033 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B7A8; /* 0x3602B7A2: jne 0x3602b7a8 */ 10034 L_3602B7A4: 10035 ebp = POP32_VAL(esp); /* 0x3602B7A4: pop ebp */ 10036 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B7A5: ret 4 */ 10037 L_3602B7A8: 10038 ecx = MEM32(ebp + 0x8); /* 0x3602B7A8: mov ecx, dword ptr [ebp + 8] */ 10039 eax = MEM32(eax + 0x154); /* 0x3602B7AB: mov eax, dword ptr [eax + 0x154] */ 10040 PUSH32(esp, ecx); /* 0x3602B7B1: push ecx */ 10041 ecx = eax; /* 0x3602B7B2: mov ecx, eax */ 10042 RECOMP_ICALL(0x36076020u); /* 0x3602B7B4: call 0x36076020 */ /* not lifted */ 10043 RECOMP_FLAGS_IN(); 10044 ebp = POP32_VAL(esp); /* 0x3602B7B9: pop ebp */ 10045 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B7BA: ret 4 */ 10046 RECOMP_REGS_OUT(); 10047 } 10048 10049 void sub_3602B7C0(void) { 10050 int _fpu_cmp = 0; 10051 uint32_t _cf = 0; 10052 int _df = 1; 10053 uint32_t _flag_k = FK_NONE; 10054 uint32_t _flag_a = 0, _flag_b = 0; 10055 uint32_t _itail_tgt = 0; 10056 RECOMP_REGS_LOCALS 10057 RECOMP_ENTER(0x3602B7C0u); 10058 10059 L_3602B7C0: 10060 PUSH32(esp, ebp); /* 0x3602B7C0: push ebp */ 10061 ebp = esp; /* 0x3602B7C1: mov ebp, esp */ 10062 eax = MEM32(ecx + 0x88); /* 0x3602B7C3: mov eax, dword ptr [ecx + 0x88] */ 10063 PUSH32(esp, 0); /* 0x3602B7C9: push 0 */ 10064 PUSH32(esp, 0x361B2CD8u); /* 0x3602B7CB: push 0x361b2cd8 */ 10065 PUSH32(esp, 0x361B2CC0u); /* 0x3602B7D0: push 0x361b2cc0 */ 10066 PUSH32(esp, 0); /* 0x3602B7D5: push 0 */ 10067 PUSH32(esp, eax); /* 0x3602B7D7: push eax */ 10068 RECOMP_ICALL(0x3615FD86u); /* 0x3602B7D8: call 0x3615fd86 */ /* not lifted */ 10069 RECOMP_FLAGS_IN(); 10070 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10072 esp = esp + 0x14u; /* 0x3602B7DD: add esp, 0x14 */ 10073 _flag_k = FK_ADD; 10074 /* test eax, eax */ /* 0x3602B7E0: test eax, eax */ 10075 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10076 _cf = 0; 10077 _flag_k = FK_TEST; 10078 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B7E8; /* 0x3602B7E2: jne 0x3602b7e8 */ 10079 L_3602B7E4: 10080 ebp = POP32_VAL(esp); /* 0x3602B7E4: pop ebp */ 10081 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B7E5: ret 4 */ 10082 L_3602B7E8: 10083 ecx = MEM32(ebp + 0x8); /* 0x3602B7E8: mov ecx, dword ptr [ebp + 8] */ 10084 eax = MEM32(eax + 0x154); /* 0x3602B7EB: mov eax, dword ptr [eax + 0x154] */ 10085 PUSH32(esp, ecx); /* 0x3602B7F1: push ecx */ 10086 ecx = eax; /* 0x3602B7F2: mov ecx, eax */ 10087 RECOMP_ICALL(0x360755C0u); /* 0x3602B7F4: call 0x360755c0 */ /* not lifted */ 10088 RECOMP_FLAGS_IN(); 10089 ebp = POP32_VAL(esp); /* 0x3602B7F9: pop ebp */ 10090 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B7FA: ret 4 */ 10091 RECOMP_REGS_OUT(); 10092 } 10093 10094 void sub_3602B800(void) { 10095 int _fpu_cmp = 0; 10096 uint32_t _cf = 0; 10097 int _df = 1; 10098 uint32_t _flag_k = FK_NONE; 10099 uint32_t _flag_a = 0, _flag_b = 0; 10100 uint32_t _itail_tgt = 0; 10101 RECOMP_REGS_LOCALS 10102 RECOMP_ENTER(0x3602B800u); 10103 10104 L_3602B800: 10105 PUSH32(esp, ebp); /* 0x3602B800: push ebp */ 10106 ebp = esp; /* 0x3602B801: mov ebp, esp */ 10107 eax = MEM32(ecx + 0x88); /* 0x3602B803: mov eax, dword ptr [ecx + 0x88] */ 10108 PUSH32(esp, 0); /* 0x3602B809: push 0 */ 10109 PUSH32(esp, 0x361B2CD8u); /* 0x3602B80B: push 0x361b2cd8 */ 10110 PUSH32(esp, 0x361B2CC0u); /* 0x3602B810: push 0x361b2cc0 */ 10111 PUSH32(esp, 0); /* 0x3602B815: push 0 */ 10112 PUSH32(esp, eax); /* 0x3602B817: push eax */ 10113 RECOMP_ICALL(0x3615FD86u); /* 0x3602B818: call 0x3615fd86 */ /* not lifted */ 10114 RECOMP_FLAGS_IN(); 10115 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10116 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10117 esp = esp + 0x14u; /* 0x3602B81D: add esp, 0x14 */ 10118 _flag_k = FK_ADD; 10119 /* test eax, eax */ /* 0x3602B820: test eax, eax */ 10120 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10121 _cf = 0; 10122 _flag_k = FK_TEST; 10123 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B837; /* 0x3602B822: je 0x3602b837 */ 10124 L_3602B824: 10125 ecx = MEM32(ebp + 0xC); /* 0x3602B824: mov ecx, dword ptr [ebp + 0xc] */ 10126 edx = MEM32(ebp + 0x8); /* 0x3602B827: mov edx, dword ptr [ebp + 8] */ 10127 PUSH32(esp, ecx); /* 0x3602B82A: push ecx */ 10128 ecx = MEM32(eax + 0x154); /* 0x3602B82B: mov ecx, dword ptr [eax + 0x154] */ 10129 PUSH32(esp, edx); /* 0x3602B831: push edx */ 10130 RECOMP_ICALL(0x36074EC0u); /* 0x3602B832: call 0x36074ec0 */ /* not lifted */ 10131 RECOMP_FLAGS_IN(); 10132 L_3602B837: 10133 ebp = POP32_VAL(esp); /* 0x3602B837: pop ebp */ 10134 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B838: ret 8 */ 10135 RECOMP_REGS_OUT(); 10136 } 10137 10138 void sub_3602B840(void) { 10139 int _fpu_cmp = 0; 10140 uint32_t _cf = 0; 10141 int _df = 1; 10142 uint32_t _flag_k = FK_NONE; 10143 uint32_t _flag_a = 0, _flag_b = 0; 10144 uint32_t _itail_tgt = 0; 10145 RECOMP_REGS_LOCALS 10146 RECOMP_ENTER(0x3602B840u); 10147 10148 L_3602B840: 10149 PUSH32(esp, ebp); /* 0x3602B840: push ebp */ 10150 ebp = esp; /* 0x3602B841: mov ebp, esp */ 10151 eax = MEM32(ecx + 0x88); /* 0x3602B843: mov eax, dword ptr [ecx + 0x88] */ 10152 PUSH32(esp, 0); /* 0x3602B849: push 0 */ 10153 PUSH32(esp, 0x361B2CD8u); /* 0x3602B84B: push 0x361b2cd8 */ 10154 PUSH32(esp, 0x361B2CC0u); /* 0x3602B850: push 0x361b2cc0 */ 10155 PUSH32(esp, 0); /* 0x3602B855: push 0 */ 10156 PUSH32(esp, eax); /* 0x3602B857: push eax */ 10157 RECOMP_ICALL(0x3615FD86u); /* 0x3602B858: call 0x3615fd86 */ /* not lifted */ 10158 RECOMP_FLAGS_IN(); 10159 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10161 esp = esp + 0x14u; /* 0x3602B85D: add esp, 0x14 */ 10162 _flag_k = FK_ADD; 10163 /* test eax, eax */ /* 0x3602B860: test eax, eax */ 10164 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10165 _cf = 0; 10166 _flag_k = FK_TEST; 10167 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B873; /* 0x3602B862: je 0x3602b873 */ 10168 L_3602B864: 10169 ecx = MEM32(ebp + 0x8); /* 0x3602B864: mov ecx, dword ptr [ebp + 8] */ 10170 PUSH32(esp, ecx); /* 0x3602B867: push ecx */ 10171 ecx = MEM32(eax + 0x154); /* 0x3602B868: mov ecx, dword ptr [eax + 0x154] */ 10172 RECOMP_ICALL(0x360752B0u); /* 0x3602B86E: call 0x360752b0 */ /* not lifted */ 10173 RECOMP_FLAGS_IN(); 10174 L_3602B873: 10175 ebp = POP32_VAL(esp); /* 0x3602B873: pop ebp */ 10176 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B874: ret 4 */ 10177 RECOMP_REGS_OUT(); 10178 } 10179 10180 void sub_3602B880(void) { 10181 int _fpu_cmp = 0; 10182 uint32_t _cf = 0; 10183 int _df = 1; 10184 uint32_t _flag_k = FK_NONE; 10185 uint32_t _flag_a = 0, _flag_b = 0; 10186 uint32_t _itail_tgt = 0; 10187 RECOMP_REGS_LOCALS 10188 RECOMP_ENTER(0x3602B880u); 10189 10190 L_3602B880: 10191 eax = MEM32(ecx + 0x88); /* 0x3602B880: mov eax, dword ptr [ecx + 0x88] */ 10192 PUSH32(esp, 0); /* 0x3602B886: push 0 */ 10193 PUSH32(esp, 0x361B2CD8u); /* 0x3602B888: push 0x361b2cd8 */ 10194 PUSH32(esp, 0x361B2CC0u); /* 0x3602B88D: push 0x361b2cc0 */ 10195 PUSH32(esp, 0); /* 0x3602B892: push 0 */ 10196 PUSH32(esp, eax); /* 0x3602B894: push eax */ 10197 RECOMP_ICALL(0x3615FD86u); /* 0x3602B895: call 0x3615fd86 */ /* not lifted */ 10198 RECOMP_FLAGS_IN(); 10199 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10200 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10201 esp = esp + 0x14u; /* 0x3602B89A: add esp, 0x14 */ 10202 _flag_k = FK_ADD; 10203 /* test eax, eax */ /* 0x3602B89D: test eax, eax */ 10204 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10205 _cf = 0; 10206 _flag_k = FK_TEST; 10207 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B8AC; /* 0x3602B89F: je 0x3602b8ac */ 10208 L_3602B8A1: 10209 ecx = MEM32(eax + 0x154); /* 0x3602B8A1: mov ecx, dword ptr [eax + 0x154] */ 10210 goto L_36074130; /* 0x3602B8A7: jmp 0x36074130 */ 10211 L_3602B8AC: 10212 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B8AC: ret */ 10213 L_36074130: 10214 PUSH32(esp, ebp); /* 0x36074130: push ebp */ 10215 ebp = esp; /* 0x36074131: mov ebp, esp */ 10216 PUSH32(esp, 0xFFFFFFFFu); /* 0x36074133: push -1 */ 10217 PUSH32(esp, 0x3616528Bu); /* 0x36074135: push 0x3616528b */ 10218 eax = MEM32(FS_BASE + (0)); /* 0x3607413A: mov eax, dword ptr fs:[0] */ 10219 PUSH32(esp, eax); /* 0x36074140: push eax */ 10220 MEM32(FS_BASE + (0)) = esp; /* 0x36074141: mov dword ptr fs:[0], esp */ 10221 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10223 esp = esp - 8; /* 0x36074148: sub esp, 8 */ 10224 _flag_k = FK_CMP; 10225 PUSH32(esp, esi); /* 0x3607414B: push esi */ 10226 PUSH32(esp, edi); /* 0x3607414C: push edi */ 10227 PUSH32(esp, 0); /* 0x3607414D: push 0 */ 10228 esi = ecx; /* 0x3607414F: mov esi, ecx */ 10229 PUSH32(esp, 0); /* 0x36074151: push 0 */ 10230 RECOMP_ICALL(0x36073DB0u); /* 0x36074153: call 0x36073db0 */ /* not lifted */ 10231 RECOMP_FLAGS_IN(); 10232 PUSH32(esp, 0x24u); /* 0x36074158: push 0x24 */ 10233 RECOMP_ICALL(0x3615FD6Au); /* 0x3607415A: call 0x3615fd6a */ /* not lifted */ 10234 RECOMP_FLAGS_IN(); 10235 edi = eax; /* 0x3607415F: mov edi, eax */ 10236 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10237 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10238 esp = esp + 4; /* 0x36074161: add esp, 4 */ 10239 _flag_k = FK_ADD; 10240 MEM32(ebp + (-0x14)) = edi; /* 0x36074164: mov dword ptr [ebp - 0x14], edi */ 10241 /* test edi, edi */ /* 0x36074167: test edi, edi */ 10242 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10243 _cf = 0; 10244 _flag_k = FK_TEST; 10245 MEM32(ebp + (-0x4)) = 0; /* 0x36074169: mov dword ptr [ebp - 4], 0 */ 10246 if (TEST_Z(_flag_a, _flag_b)) goto L_36074190; /* 0x36074170: je 0x36074190 */ 10247 L_36074172: 10248 eax = MEM32(esi + 0x14); /* 0x36074172: mov eax, dword ptr [esi + 0x14] */ 10249 PUSH32(esp, ebx); /* 0x36074175: push ebx */ 10250 ecx = eax + 0xE4; /* 0x36074176: lea ecx, [eax + 0xe4] */ 10251 ebx = eax + 0x4; /* 0x3607417C: lea ebx, [eax + 4] */ 10252 RECOMP_ICALL(0x36008320u); /* 0x3607417F: call 0x36008320 */ /* not lifted */ 10253 RECOMP_FLAGS_IN(); 10254 PUSH32(esp, eax); /* 0x36074184: push eax */ 10255 PUSH32(esp, ebx); /* 0x36074185: push ebx */ 10256 ecx = edi; /* 0x36074186: mov ecx, edi */ 10257 RECOMP_ICALL(0x36083AD0u); /* 0x36074188: call 0x36083ad0 */ /* not lifted */ 10258 RECOMP_FLAGS_IN(); 10259 ebx = POP32_VAL(esp); /* 0x3607418D: pop ebx */ 10260 goto L_36074192; /* 0x3607418E: jmp 0x36074192 */ 10261 L_36074190: 10262 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10263 eax = 0; /* 0x36074190: xor eax, eax */ 10264 _cf = 0; 10265 _flag_k = FK_TEST; 10266 L_36074192: 10267 ecx = MEM32(esi + 0x14); /* 0x36074192: mov ecx, dword ptr [esi + 0x14] */ 10268 MEM32(ebp + (-0x10)) = eax; /* 0x36074195: mov dword ptr [ebp - 0x10], eax */ 10269 eax = ebp + (-0x10); /* 0x36074198: lea eax, [ebp - 0x10] */ 10270 PUSH32(esp, eax); /* 0x3607419B: push eax */ 10271 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607419C: mov dword ptr [ebp - 4], 0xffffffff */ 10272 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x360741A3: call dword ptr [0x3617004c] */ 10273 RECOMP_FLAGS_IN(); 10274 ecx = MEM32(esi + 0x14); /* 0x360741A9: mov ecx, dword ptr [esi + 0x14] */ 10275 ecx = MEM32(ecx + 0x16C); /* 0x360741AC: mov ecx, dword ptr [ecx + 0x16c] */ 10276 PUSH32(esp, 0); /* 0x360741B2: push 0 */ 10277 RECOMP_ICALL(0x3610DEF0u); /* 0x360741B4: call 0x3610def0 */ /* not lifted */ 10278 RECOMP_FLAGS_IN(); 10279 ecx = MEM32(esi + 0x14); /* 0x360741B9: mov ecx, dword ptr [esi + 0x14] */ 10280 RECOMP_ICALL(0x36072180u); /* 0x360741BC: call 0x36072180 */ /* not lifted */ 10281 RECOMP_FLAGS_IN(); 10282 ecx = MEM32(esi + 0x14); /* 0x360741C1: mov ecx, dword ptr [esi + 0x14] */ 10283 PUSH32(esp, 0); /* 0x360741C4: push 0 */ 10284 RECOMP_ICALL(0x360714A0u); /* 0x360741C6: call 0x360714a0 */ /* not lifted */ 10285 RECOMP_FLAGS_IN(); 10286 ecx = MEM32(ebp + (-0xC)); /* 0x360741CB: mov ecx, dword ptr [ebp - 0xc] */ 10287 MEM8(esi + 0x28) = (uint8_t)(0); /* 0x360741CE: mov byte ptr [esi + 0x28], 0 */ 10288 edi = POP32_VAL(esp); /* 0x360741D2: pop edi */ 10289 esi = POP32_VAL(esp); /* 0x360741D3: pop esi */ 10290 MEM32(FS_BASE + (0)) = ecx; /* 0x360741D4: mov dword ptr fs:[0], ecx */ 10291 esp = ebp; /* 0x360741DB: mov esp, ebp */ 10292 ebp = POP32_VAL(esp); /* 0x360741DD: pop ebp */ 10293 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360741DE: ret */ 10294 RECOMP_REGS_OUT(); 10295 } 10296 10297 void sub_3602B8B0(void) { 10298 int _fpu_cmp = 0; 10299 uint32_t _cf = 0; 10300 int _df = 1; 10301 uint32_t _flag_k = FK_NONE; 10302 uint32_t _flag_a = 0, _flag_b = 0; 10303 uint32_t _itail_tgt = 0; 10304 RECOMP_REGS_LOCALS 10305 RECOMP_ENTER(0x3602B8B0u); 10306 10307 L_3602B8B0: 10308 eax = MEM32(ecx + 0x88); /* 0x3602B8B0: mov eax, dword ptr [ecx + 0x88] */ 10309 PUSH32(esp, 0); /* 0x3602B8B6: push 0 */ 10310 PUSH32(esp, 0x361B2CD8u); /* 0x3602B8B8: push 0x361b2cd8 */ 10311 PUSH32(esp, 0x361B2CC0u); /* 0x3602B8BD: push 0x361b2cc0 */ 10312 PUSH32(esp, 0); /* 0x3602B8C2: push 0 */ 10313 PUSH32(esp, eax); /* 0x3602B8C4: push eax */ 10314 RECOMP_ICALL(0x3615FD86u); /* 0x3602B8C5: call 0x3615fd86 */ /* not lifted */ 10315 RECOMP_FLAGS_IN(); 10316 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10317 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10318 esp = esp + 0x14u; /* 0x3602B8CA: add esp, 0x14 */ 10319 _flag_k = FK_ADD; 10320 /* test eax, eax */ /* 0x3602B8CD: test eax, eax */ 10321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10322 _cf = 0; 10323 _flag_k = FK_TEST; 10324 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B8DC; /* 0x3602B8CF: je 0x3602b8dc */ 10325 L_3602B8D1: 10326 ecx = MEM32(eax + 0x154); /* 0x3602B8D1: mov ecx, dword ptr [eax + 0x154] */ 10327 goto L_360741E0; /* 0x3602B8D7: jmp 0x360741e0 */ 10328 L_3602B8DC: 10329 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B8DC: ret */ 10330 L_360741E0: 10331 PUSH32(esp, ebp); /* 0x360741E0: push ebp */ 10332 ebp = esp; /* 0x360741E1: mov ebp, esp */ 10333 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 10334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10335 esp = esp - 0x2Cu; /* 0x360741E3: sub esp, 0x2c */ 10336 _flag_k = FK_CMP; 10337 PUSH32(esp, ebx); /* 0x360741E6: push ebx */ 10338 PUSH32(esp, esi); /* 0x360741E7: push esi */ 10339 esi = ecx; /* 0x360741E8: mov esi, ecx */ 10340 eax = MEM32(esi + 0x14); /* 0x360741EA: mov eax, dword ptr [esi + 0x14] */ 10341 PUSH32(esp, edi); /* 0x360741ED: push edi */ 10342 ecx = eax + 0xE4; /* 0x360741EE: lea ecx, [eax + 0xe4] */ 10343 eax = MEM32(ecx); /* 0x360741F4: mov eax, dword ptr [ecx] */ 10344 PUSH32(esp, 2); /* 0x360741F6: push 2 */ 10345 PUSH32(esp, 0x35u); /* 0x360741F8: push 0x35 */ 10346 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360741FA: call dword ptr [eax + 4] */ 10347 RECOMP_FLAGS_IN(); 10348 MEM32(ebp + (-0xC)) = eax; /* 0x360741FD: mov dword ptr [ebp - 0xc], eax */ 10349 edi = 0x64u; /* 0x36074200: mov edi, 0x64 */ 10350 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10351 ebx = 0; /* 0x36074205: xor ebx, ebx */ 10352 _cf = 0; 10353 _flag_k = FK_TEST; 10354 L_36074207: 10355 ecx = MEM32(esi + 0x18); /* 0x36074207: mov ecx, dword ptr [esi + 0x18] */ 10356 edx = ebp + (-0x14); /* 0x3607420A: lea edx, [ebp - 0x14] */ 10357 PUSH32(esp, edx); /* 0x3607420D: push edx */ 10358 eax = ebp + (-0x1C); /* 0x3607420E: lea eax, [ebp - 0x1c] */ 10359 PUSH32(esp, eax); /* 0x36074211: push eax */ 10360 MEM32(ebp + (-0x14)) = edi; /* 0x36074212: mov dword ptr [ebp - 0x14], edi */ 10361 MEM32(ebp + (-0x10)) = ebx; /* 0x36074215: mov dword ptr [ebp - 0x10], ebx */ 10362 RECOMP_ICALL(0x3603E790u); /* 0x36074218: call 0x3603e790 */ /* not lifted */ 10363 RECOMP_FLAGS_IN(); 10364 ecx = MEM32(eax); /* 0x3607421D: mov ecx, dword ptr [eax] */ 10365 MEM32(ebp + (-0x8)) = ecx; /* 0x3607421F: mov dword ptr [ebp - 8], ecx */ 10366 edx = MEM32(eax + 0x4); /* 0x36074222: mov edx, dword ptr [eax + 4] */ 10367 eax = ebp + (-0x4); /* 0x36074225: lea eax, [ebp - 4] */ 10368 PUSH32(esp, eax); /* 0x36074228: push eax */ 10369 ecx = ebp + (-0x8); /* 0x36074229: lea ecx, [ebp - 8] */ 10370 PUSH32(esp, ecx); /* 0x3607422C: push ecx */ 10371 ecx = ebp + (-0x24); /* 0x3607422D: lea ecx, [ebp - 0x24] */ 10372 MEM32(ebp + (-0x4)) = edx; /* 0x36074230: mov dword ptr [ebp - 4], edx */ 10373 RECOMP_ICALL(0x3614FCB0u); /* 0x36074233: call 0x3614fcb0 */ /* not lifted */ 10374 RECOMP_FLAGS_IN(); 10375 edx = eax; /* 0x36074238: mov edx, eax */ 10376 eax = MEM32(edx); /* 0x3607423A: mov eax, dword ptr [edx] */ 10377 ecx = MEM32(edx + 0x4); /* 0x3607423C: mov ecx, dword ptr [edx + 4] */ 10378 eax = MEM32(eax + 0x10); /* 0x3607423F: mov eax, dword ptr [eax + 0x10] */ 10379 MEM32(ebp + (-0x28)) = ecx; /* 0x36074242: mov dword ptr [ebp - 0x28], ecx */ 10380 ecx = MEM32(esi + 0x14); /* 0x36074245: mov ecx, dword ptr [esi + 0x14] */ 10381 edx = MEM32(ecx + 0xE4); /* 0x36074248: mov edx, dword ptr [ecx + 0xe4] */ 10382 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 10383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10384 ecx = ecx + 0xE4u; /* 0x3607424E: add ecx, 0xe4 */ 10385 _flag_k = FK_ADD; 10386 PUSH32(esp, eax); /* 0x36074254: push eax */ 10387 PUSH32(esp, edi); /* 0x36074255: push edi */ 10388 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36074256: call dword ptr [edx + 8] */ 10389 RECOMP_FLAGS_IN(); 10390 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10391 edi = edi + 1; /* 0x36074259: inc edi */ 10392 _flag_k = FK_INC; 10393 /* cmp edi, 0xA8u */ /* 0x3607425A: cmp edi, 0xa8 */ 10394 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xA8u); 10395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10396 _flag_k = FK_CMP; 10397 RECOMP_BACKEDGE(); 10398 if (CMP_LE(_flag_a, _flag_b)) goto L_36074207; /* 0x36074260: jle 0x36074207 */ 10399 L_36074262: 10400 edi = 0x10u; /* 0x36074262: mov edi, 0x10 */ 10401 L_36074267: 10402 ecx = MEM32(esi + 0x18); /* 0x36074267: mov ecx, dword ptr [esi + 0x18] */ 10403 edx = ebp + (-0x14); /* 0x3607426A: lea edx, [ebp - 0x14] */ 10404 PUSH32(esp, edx); /* 0x3607426D: push edx */ 10405 eax = ebp + (-0x2C); /* 0x3607426E: lea eax, [ebp - 0x2c] */ 10406 PUSH32(esp, eax); /* 0x36074271: push eax */ 10407 MEM32(ebp + (-0x14)) = edi; /* 0x36074272: mov dword ptr [ebp - 0x14], edi */ 10408 MEM32(ebp + (-0x10)) = ebx; /* 0x36074275: mov dword ptr [ebp - 0x10], ebx */ 10409 RECOMP_ICALL(0x3603E790u); /* 0x36074278: call 0x3603e790 */ /* not lifted */ 10410 RECOMP_FLAGS_IN(); 10411 ecx = MEM32(eax); /* 0x3607427D: mov ecx, dword ptr [eax] */ 10412 MEM32(ebp + (-0x8)) = ecx; /* 0x3607427F: mov dword ptr [ebp - 8], ecx */ 10413 edx = MEM32(eax + 0x4); /* 0x36074282: mov edx, dword ptr [eax + 4] */ 10414 eax = ebp + (-0x4); /* 0x36074285: lea eax, [ebp - 4] */ 10415 PUSH32(esp, eax); /* 0x36074288: push eax */ 10416 ecx = ebp + (-0x8); /* 0x36074289: lea ecx, [ebp - 8] */ 10417 PUSH32(esp, ecx); /* 0x3607428C: push ecx */ 10418 ecx = ebp + (-0x24); /* 0x3607428D: lea ecx, [ebp - 0x24] */ 10419 MEM32(ebp + (-0x4)) = edx; /* 0x36074290: mov dword ptr [ebp - 4], edx */ 10420 RECOMP_ICALL(0x3614FCB0u); /* 0x36074293: call 0x3614fcb0 */ /* not lifted */ 10421 RECOMP_FLAGS_IN(); 10422 edx = eax; /* 0x36074298: mov edx, eax */ 10423 eax = MEM32(edx); /* 0x3607429A: mov eax, dword ptr [edx] */ 10424 ecx = MEM32(edx + 0x4); /* 0x3607429C: mov ecx, dword ptr [edx + 4] */ 10425 eax = MEM32(eax + 0x10); /* 0x3607429F: mov eax, dword ptr [eax + 0x10] */ 10426 MEM32(ebp + (-0x18)) = ecx; /* 0x360742A2: mov dword ptr [ebp - 0x18], ecx */ 10427 ecx = MEM32(esi + 0x14); /* 0x360742A5: mov ecx, dword ptr [esi + 0x14] */ 10428 edx = MEM32(ecx + 0xE4); /* 0x360742A8: mov edx, dword ptr [ecx + 0xe4] */ 10429 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 10430 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10431 ecx = ecx + 0xE4u; /* 0x360742AE: add ecx, 0xe4 */ 10432 _flag_k = FK_ADD; 10433 PUSH32(esp, eax); /* 0x360742B4: push eax */ 10434 PUSH32(esp, edi); /* 0x360742B5: push edi */ 10435 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360742B6: call dword ptr [edx + 8] */ 10436 RECOMP_FLAGS_IN(); 10437 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10438 edi = edi + 1; /* 0x360742B9: inc edi */ 10439 _flag_k = FK_INC; 10440 /* cmp edi, 0x15u */ /* 0x360742BA: cmp edi, 0x15 */ 10441 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x15u); 10442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10443 _flag_k = FK_CMP; 10444 RECOMP_BACKEDGE(); 10445 if (CMP_LE(_flag_a, _flag_b)) goto L_36074267; /* 0x360742BD: jle 0x36074267 */ 10446 L_360742BF: 10447 ecx = MEM32(esi + 0x18); /* 0x360742BF: mov ecx, dword ptr [esi + 0x18] */ 10448 edx = ebp + (-0x14); /* 0x360742C2: lea edx, [ebp - 0x14] */ 10449 PUSH32(esp, edx); /* 0x360742C5: push edx */ 10450 eax = ebp + (-0x2C); /* 0x360742C6: lea eax, [ebp - 0x2c] */ 10451 PUSH32(esp, eax); /* 0x360742C9: push eax */ 10452 MEM32(ebp + (-0x14)) = 0x35u; /* 0x360742CA: mov dword ptr [ebp - 0x14], 0x35 */ 10453 MEM32(ebp + (-0x10)) = ebx; /* 0x360742D1: mov dword ptr [ebp - 0x10], ebx */ 10454 RECOMP_ICALL(0x3603E790u); /* 0x360742D4: call 0x3603e790 */ /* not lifted */ 10455 RECOMP_FLAGS_IN(); 10456 ecx = MEM32(eax); /* 0x360742D9: mov ecx, dword ptr [eax] */ 10457 MEM32(ebp + (-0x8)) = ecx; /* 0x360742DB: mov dword ptr [ebp - 8], ecx */ 10458 edx = MEM32(eax + 0x4); /* 0x360742DE: mov edx, dword ptr [eax + 4] */ 10459 eax = ebp + (-0x4); /* 0x360742E1: lea eax, [ebp - 4] */ 10460 PUSH32(esp, eax); /* 0x360742E4: push eax */ 10461 ecx = ebp + (-0x8); /* 0x360742E5: lea ecx, [ebp - 8] */ 10462 PUSH32(esp, ecx); /* 0x360742E8: push ecx */ 10463 ecx = ebp + (-0x24); /* 0x360742E9: lea ecx, [ebp - 0x24] */ 10464 MEM32(ebp + (-0x4)) = edx; /* 0x360742EC: mov dword ptr [ebp - 4], edx */ 10465 RECOMP_ICALL(0x3614FCB0u); /* 0x360742EF: call 0x3614fcb0 */ /* not lifted */ 10466 RECOMP_FLAGS_IN(); 10467 edx = eax; /* 0x360742F4: mov edx, eax */ 10468 eax = MEM32(edx); /* 0x360742F6: mov eax, dword ptr [edx] */ 10469 ecx = MEM32(edx + 0x4); /* 0x360742F8: mov ecx, dword ptr [edx + 4] */ 10470 eax = MEM32(eax + 0x10); /* 0x360742FB: mov eax, dword ptr [eax + 0x10] */ 10471 MEM32(ebp + (-0x18)) = ecx; /* 0x360742FE: mov dword ptr [ebp - 0x18], ecx */ 10472 ecx = MEM32(esi + 0x14); /* 0x36074301: mov ecx, dword ptr [esi + 0x14] */ 10473 edx = MEM32(ecx + 0xE4); /* 0x36074304: mov edx, dword ptr [ecx + 0xe4] */ 10474 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 10475 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10476 ecx = ecx + 0xE4u; /* 0x3607430A: add ecx, 0xe4 */ 10477 _flag_k = FK_ADD; 10478 PUSH32(esp, eax); /* 0x36074310: push eax */ 10479 PUSH32(esp, 0x35u); /* 0x36074311: push 0x35 */ 10480 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36074313: call dword ptr [edx + 8] */ 10481 RECOMP_FLAGS_IN(); 10482 ecx = MEM32(esi + 0x14); /* 0x36074316: mov ecx, dword ptr [esi + 0x14] */ 10483 /* cmp MEM8(ecx + 0x128), LO8(ebx) */ /* 0x36074319: cmp byte ptr [ecx + 0x128], bl */ 10484 _flag_a = (uint32_t)(MEM8(ecx + 0x128)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 10485 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10486 _flag_k = FK_NARROW(FK_CMP, 24); 10487 if (CMP_EQ(_flag_a, _flag_b)) goto L_36074367; /* 0x3607431F: je 0x36074367 */ 10488 L_36074321: 10489 RECOMP_ICALL(0x3601C590u); /* 0x36074321: call 0x3601c590 */ /* not lifted */ 10490 RECOMP_FLAGS_IN(); 10491 ecx = eax; /* 0x36074326: mov ecx, eax */ 10492 RECOMP_ICALL(0x3601CDB0u); /* 0x36074328: call 0x3601cdb0 */ /* not lifted */ 10493 RECOMP_FLAGS_IN(); 10494 eax = MEM32(esi + 0x14); /* 0x3607432D: mov eax, dword ptr [esi + 0x14] */ 10495 SET_LO8(edx, MEM8(eax + 0x128)); /* 0x36074330: mov dl, byte ptr [eax + 0x128] */ 10496 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(edx)); /* 0x36074336: mov byte ptr [ebp - 4], dl */ 10497 edx = MEM32(ebp + (-0x4)); /* 0x36074339: mov edx, dword ptr [ebp - 4] */ 10498 PUSH32(esp, edx); /* 0x3607433C: push edx */ 10499 edx = MEM32(eax + 0xE4); /* 0x3607433D: mov edx, dword ptr [eax + 0xe4] */ 10500 ecx = eax + 0xE4; /* 0x36074343: lea ecx, [eax + 0xe4] */ 10501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 10502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10503 eax = eax + 4; /* 0x36074349: add eax, 4 */ 10504 _flag_k = FK_ADD; 10505 PUSH32(esp, eax); /* 0x3607434C: push eax */ 10506 eax = MEM32(ebp + (-0xC)); /* 0x3607434D: mov eax, dword ptr [ebp - 0xc] */ 10507 PUSH32(esp, eax); /* 0x36074350: push eax */ 10508 PUSH32(esp, 2); /* 0x36074351: push 2 */ 10509 PUSH32(esp, 0x35u); /* 0x36074353: push 0x35 */ 10510 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36074355: call dword ptr [edx + 4] */ 10511 RECOMP_FLAGS_IN(); 10512 PUSH32(esp, eax); /* 0x36074358: push eax */ 10513 PUSH32(esp, 0x35u); /* 0x36074359: push 0x35 */ 10514 RECOMP_ICALL(0x3601C590u); /* 0x3607435B: call 0x3601c590 */ /* not lifted */ 10515 RECOMP_FLAGS_IN(); 10516 ecx = eax; /* 0x36074360: mov ecx, eax */ 10517 RECOMP_ICALL(0x3601CE40u); /* 0x36074362: call 0x3601ce40 */ /* not lifted */ 10518 RECOMP_FLAGS_IN(); 10519 L_36074367: 10520 edi = POP32_VAL(esp); /* 0x36074367: pop edi */ 10521 MEM8(esi + 0x28) = (uint8_t)(LO8(ebx)); /* 0x36074368: mov byte ptr [esi + 0x28], bl */ 10522 esi = POP32_VAL(esp); /* 0x3607436B: pop esi */ 10523 ebx = POP32_VAL(esp); /* 0x3607436C: pop ebx */ 10524 esp = ebp; /* 0x3607436D: mov esp, ebp */ 10525 ebp = POP32_VAL(esp); /* 0x3607436F: pop ebp */ 10526 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36074370: ret */ 10527 RECOMP_REGS_OUT(); 10528 } 10529 10530 void sub_3602B8E0(void) { 10531 int _fpu_cmp = 0; 10532 uint32_t _cf = 0; 10533 int _df = 1; 10534 uint32_t _flag_k = FK_NONE; 10535 uint32_t _flag_a = 0, _flag_b = 0; 10536 uint32_t _itail_tgt = 0; 10537 RECOMP_REGS_LOCALS 10538 RECOMP_ENTER(0x3602B8E0u); 10539 10540 L_3602B8E0: 10541 eax = MEM32(ecx + 0x88); /* 0x3602B8E0: mov eax, dword ptr [ecx + 0x88] */ 10542 PUSH32(esp, 0); /* 0x3602B8E6: push 0 */ 10543 PUSH32(esp, 0x361B2CD8u); /* 0x3602B8E8: push 0x361b2cd8 */ 10544 PUSH32(esp, 0x361B2CC0u); /* 0x3602B8ED: push 0x361b2cc0 */ 10545 PUSH32(esp, 0); /* 0x3602B8F2: push 0 */ 10546 PUSH32(esp, eax); /* 0x3602B8F4: push eax */ 10547 RECOMP_ICALL(0x3615FD86u); /* 0x3602B8F5: call 0x3615fd86 */ /* not lifted */ 10548 RECOMP_FLAGS_IN(); 10549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10551 esp = esp + 0x14u; /* 0x3602B8FA: add esp, 0x14 */ 10552 _flag_k = FK_ADD; 10553 /* test eax, eax */ /* 0x3602B8FD: test eax, eax */ 10554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10555 _cf = 0; 10556 _flag_k = FK_TEST; 10557 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B90C; /* 0x3602B8FF: je 0x3602b90c */ 10558 L_3602B901: 10559 ecx = MEM32(eax + 0x154); /* 0x3602B901: mov ecx, dword ptr [eax + 0x154] */ 10560 goto L_36074380; /* 0x3602B907: jmp 0x36074380 */ 10561 L_3602B90C: 10562 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B90C: ret */ 10563 L_36074380: 10564 PUSH32(esp, ebp); /* 0x36074380: push ebp */ 10565 ebp = esp; /* 0x36074381: mov ebp, esp */ 10566 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 10567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10568 esp = esp - 0x18u; /* 0x36074383: sub esp, 0x18 */ 10569 _flag_k = FK_CMP; 10570 PUSH32(esp, ebx); /* 0x36074386: push ebx */ 10571 PUSH32(esp, esi); /* 0x36074387: push esi */ 10572 PUSH32(esp, edi); /* 0x36074388: push edi */ 10573 esi = ecx; /* 0x36074389: mov esi, ecx */ 10574 edi = 0x64u; /* 0x3607438B: mov edi, 0x64 */ 10575 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10576 ebx = 0; /* 0x36074390: xor ebx, ebx */ 10577 _cf = 0; 10578 _flag_k = FK_TEST; 10579 L_36074392: 10580 ecx = MEM32(esi + 0x18); /* 0x36074392: mov ecx, dword ptr [esi + 0x18] */ 10581 eax = ebp + (-0x8); /* 0x36074395: lea eax, [ebp - 8] */ 10582 PUSH32(esp, eax); /* 0x36074398: push eax */ 10583 edx = ebp + (-0x18); /* 0x36074399: lea edx, [ebp - 0x18] */ 10584 PUSH32(esp, edx); /* 0x3607439C: push edx */ 10585 MEM32(ebp + (-0x8)) = edi; /* 0x3607439D: mov dword ptr [ebp - 8], edi */ 10586 MEM32(ebp + (-0x4)) = ebx; /* 0x360743A0: mov dword ptr [ebp - 4], ebx */ 10587 RECOMP_ICALL(0x3603E790u); /* 0x360743A3: call 0x3603e790 */ /* not lifted */ 10588 RECOMP_FLAGS_IN(); 10589 ecx = MEM32(eax); /* 0x360743A8: mov ecx, dword ptr [eax] */ 10590 edx = MEM32(eax + 0x4); /* 0x360743AA: mov edx, dword ptr [eax + 4] */ 10591 eax = MEM32(esi + 0x14); /* 0x360743AD: mov eax, dword ptr [esi + 0x14] */ 10592 MEM32(ebp + (-0x10)) = ecx; /* 0x360743B0: mov dword ptr [ebp - 0x10], ecx */ 10593 ecx = eax + 0xE4; /* 0x360743B3: lea ecx, [eax + 0xe4] */ 10594 eax = MEM32(ecx); /* 0x360743B9: mov eax, dword ptr [ecx] */ 10595 PUSH32(esp, 2); /* 0x360743BB: push 2 */ 10596 PUSH32(esp, edi); /* 0x360743BD: push edi */ 10597 MEM32(ebp + (-0xC)) = edx; /* 0x360743BE: mov dword ptr [ebp - 0xc], edx */ 10598 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360743C1: call dword ptr [eax + 4] */ 10599 RECOMP_FLAGS_IN(); 10600 ecx = MEM32(ebp + (-0x10)); /* 0x360743C4: mov ecx, dword ptr [ebp - 0x10] */ 10601 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10602 edi = edi + 1; /* 0x360743C7: inc edi */ 10603 _flag_k = FK_INC; 10604 /* cmp edi, 0xA8u */ /* 0x360743C8: cmp edi, 0xa8 */ 10605 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xA8u); 10606 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10607 _flag_k = FK_CMP; 10608 MEM32(ecx + 0x10) = eax; /* 0x360743CE: mov dword ptr [ecx + 0x10], eax */ 10609 RECOMP_BACKEDGE(); 10610 if (CMP_LE(_flag_a, _flag_b)) goto L_36074392; /* 0x360743D1: jle 0x36074392 */ 10611 L_360743D3: 10612 edi = 0x10u; /* 0x360743D3: mov edi, 0x10 */ 10613 L_360743D8: 10614 ecx = MEM32(esi + 0x18); /* 0x360743D8: mov ecx, dword ptr [esi + 0x18] */ 10615 edx = ebp + (-0x10); /* 0x360743DB: lea edx, [ebp - 0x10] */ 10616 PUSH32(esp, edx); /* 0x360743DE: push edx */ 10617 eax = ebp + (-0x18); /* 0x360743DF: lea eax, [ebp - 0x18] */ 10618 PUSH32(esp, eax); /* 0x360743E2: push eax */ 10619 MEM32(ebp + (-0x10)) = edi; /* 0x360743E3: mov dword ptr [ebp - 0x10], edi */ 10620 MEM32(ebp + (-0xC)) = ebx; /* 0x360743E6: mov dword ptr [ebp - 0xc], ebx */ 10621 RECOMP_ICALL(0x3603E790u); /* 0x360743E9: call 0x3603e790 */ /* not lifted */ 10622 RECOMP_FLAGS_IN(); 10623 ecx = MEM32(eax); /* 0x360743EE: mov ecx, dword ptr [eax] */ 10624 edx = MEM32(eax + 0x4); /* 0x360743F0: mov edx, dword ptr [eax + 4] */ 10625 eax = MEM32(esi + 0x14); /* 0x360743F3: mov eax, dword ptr [esi + 0x14] */ 10626 MEM32(ebp + (-0x8)) = ecx; /* 0x360743F6: mov dword ptr [ebp - 8], ecx */ 10627 ecx = eax + 0xE4; /* 0x360743F9: lea ecx, [eax + 0xe4] */ 10628 eax = MEM32(ecx); /* 0x360743FF: mov eax, dword ptr [ecx] */ 10629 PUSH32(esp, 2); /* 0x36074401: push 2 */ 10630 PUSH32(esp, edi); /* 0x36074403: push edi */ 10631 MEM32(ebp + (-0x4)) = edx; /* 0x36074404: mov dword ptr [ebp - 4], edx */ 10632 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36074407: call dword ptr [eax + 4] */ 10633 RECOMP_FLAGS_IN(); 10634 ecx = MEM32(ebp + (-0x8)); /* 0x3607440A: mov ecx, dword ptr [ebp - 8] */ 10635 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 10636 edi = edi + 1; /* 0x3607440D: inc edi */ 10637 _flag_k = FK_INC; 10638 /* cmp edi, 0x15u */ /* 0x3607440E: cmp edi, 0x15 */ 10639 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x15u); 10640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10641 _flag_k = FK_CMP; 10642 MEM32(ecx + 0x10) = eax; /* 0x36074411: mov dword ptr [ecx + 0x10], eax */ 10643 RECOMP_BACKEDGE(); 10644 if (CMP_LE(_flag_a, _flag_b)) goto L_360743D8; /* 0x36074414: jle 0x360743d8 */ 10645 L_36074416: 10646 ecx = MEM32(esi + 0x18); /* 0x36074416: mov ecx, dword ptr [esi + 0x18] */ 10647 edx = ebp + (-0x10); /* 0x36074419: lea edx, [ebp - 0x10] */ 10648 PUSH32(esp, edx); /* 0x3607441C: push edx */ 10649 eax = ebp + (-0x18); /* 0x3607441D: lea eax, [ebp - 0x18] */ 10650 PUSH32(esp, eax); /* 0x36074420: push eax */ 10651 MEM32(ebp + (-0x10)) = 0x34u; /* 0x36074421: mov dword ptr [ebp - 0x10], 0x34 */ 10652 MEM32(ebp + (-0xC)) = ebx; /* 0x36074428: mov dword ptr [ebp - 0xc], ebx */ 10653 RECOMP_ICALL(0x3603E790u); /* 0x3607442B: call 0x3603e790 */ /* not lifted */ 10654 RECOMP_FLAGS_IN(); 10655 edi = MEM32(eax); /* 0x36074430: mov edi, dword ptr [eax] */ 10656 ecx = MEM32(eax + 0x4); /* 0x36074432: mov ecx, dword ptr [eax + 4] */ 10657 MEM32(ebp + (-0x4)) = ecx; /* 0x36074435: mov dword ptr [ebp - 4], ecx */ 10658 ecx = MEM32(esi + 0x14); /* 0x36074438: mov ecx, dword ptr [esi + 0x14] */ 10659 edx = MEM32(ecx + 0xE4); /* 0x3607443B: mov edx, dword ptr [ecx + 0xe4] */ 10660 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 10661 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10662 ecx = ecx + 0xE4u; /* 0x36074441: add ecx, 0xe4 */ 10663 _flag_k = FK_ADD; 10664 PUSH32(esp, 2); /* 0x36074447: push 2 */ 10665 PUSH32(esp, 0x34u); /* 0x36074449: push 0x34 */ 10666 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3607444B: call dword ptr [edx + 4] */ 10667 RECOMP_FLAGS_IN(); 10668 MEM32(edi + 0x10) = eax; /* 0x3607444E: mov dword ptr [edi + 0x10], eax */ 10669 ecx = MEM32(esi + 0x18); /* 0x36074451: mov ecx, dword ptr [esi + 0x18] */ 10670 eax = ebp + (-0x10); /* 0x36074454: lea eax, [ebp - 0x10] */ 10671 PUSH32(esp, eax); /* 0x36074457: push eax */ 10672 edx = ebp + (-0x18); /* 0x36074458: lea edx, [ebp - 0x18] */ 10673 PUSH32(esp, edx); /* 0x3607445B: push edx */ 10674 MEM32(ebp + (-0x10)) = 0x35u; /* 0x3607445C: mov dword ptr [ebp - 0x10], 0x35 */ 10675 MEM32(ebp + (-0xC)) = ebx; /* 0x36074463: mov dword ptr [ebp - 0xc], ebx */ 10676 RECOMP_ICALL(0x3603E790u); /* 0x36074466: call 0x3603e790 */ /* not lifted */ 10677 RECOMP_FLAGS_IN(); 10678 ecx = MEM32(esi + 0x14); /* 0x3607446B: mov ecx, dword ptr [esi + 0x14] */ 10679 edi = MEM32(eax); /* 0x3607446E: mov edi, dword ptr [eax] */ 10680 eax = MEM32(eax + 0x4); /* 0x36074470: mov eax, dword ptr [eax + 4] */ 10681 edx = MEM32(ecx + 0xE4); /* 0x36074473: mov edx, dword ptr [ecx + 0xe4] */ 10682 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 10683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10684 ecx = ecx + 0xE4u; /* 0x36074479: add ecx, 0xe4 */ 10685 _flag_k = FK_ADD; 10686 PUSH32(esp, 2); /* 0x3607447F: push 2 */ 10687 PUSH32(esp, 0x35u); /* 0x36074481: push 0x35 */ 10688 MEM32(ebp + (-0x4)) = eax; /* 0x36074483: mov dword ptr [ebp - 4], eax */ 10689 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36074486: call dword ptr [edx + 4] */ 10690 RECOMP_FLAGS_IN(); 10691 MEM32(edi + 0x10) = eax; /* 0x36074489: mov dword ptr [edi + 0x10], eax */ 10692 ecx = MEM32(esi + 0x14); /* 0x3607448C: mov ecx, dword ptr [esi + 0x14] */ 10693 eax = MEM32(ecx + 0xE4); /* 0x3607448F: mov eax, dword ptr [ecx + 0xe4] */ 10694 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xE4u); 10695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10696 ecx = ecx + 0xE4u; /* 0x36074495: add ecx, 0xe4 */ 10697 _flag_k = FK_ADD; 10698 PUSH32(esp, 2); /* 0x3607449B: push 2 */ 10699 PUSH32(esp, 0x35u); /* 0x3607449D: push 0x35 */ 10700 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3607449F: call dword ptr [eax + 4] */ 10701 RECOMP_FLAGS_IN(); 10702 MEM32(ebp + (-0x4)) = eax; /* 0x360744A2: mov dword ptr [ebp - 4], eax */ 10703 fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x360744A5: fild dword ptr [ebp - 4] */ 10704 edi = POP32_VAL(esp); /* 0x360744A8: pop edi */ 10705 MEM32(esi + 0x24) = ebx; /* 0x360744A9: mov dword ptr [esi + 0x24], ebx */ 10706 { float _v = (float)fp_pop(); *(float*)ADDR(esi + 0x20) = _v; } /* 0x360744AC: fstp dword ptr [esi + 0x20] */ 10707 MEM8(esi + 0x28) = (uint8_t)(1); /* 0x360744AF: mov byte ptr [esi + 0x28], 1 */ 10708 esi = POP32_VAL(esp); /* 0x360744B3: pop esi */ 10709 ebx = POP32_VAL(esp); /* 0x360744B4: pop ebx */ 10710 esp = ebp; /* 0x360744B5: mov esp, ebp */ 10711 ebp = POP32_VAL(esp); /* 0x360744B7: pop ebp */ 10712 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360744B8: ret */ 10713 RECOMP_REGS_OUT(); 10714 } 10715 10716 void sub_3602B910(void) { 10717 int _fpu_cmp = 0; 10718 uint32_t _cf = 0; 10719 int _df = 1; 10720 uint32_t _flag_k = FK_NONE; 10721 uint32_t _flag_a = 0, _flag_b = 0; 10722 uint32_t _itail_tgt = 0; 10723 RECOMP_REGS_LOCALS 10724 RECOMP_ENTER(0x3602B910u); 10725 10726 L_3602B910: 10727 eax = MEM32(ecx + 0x88); /* 0x3602B910: mov eax, dword ptr [ecx + 0x88] */ 10728 PUSH32(esp, 0); /* 0x3602B916: push 0 */ 10729 PUSH32(esp, 0x361B2CD8u); /* 0x3602B918: push 0x361b2cd8 */ 10730 PUSH32(esp, 0x361B2CC0u); /* 0x3602B91D: push 0x361b2cc0 */ 10731 PUSH32(esp, 0); /* 0x3602B922: push 0 */ 10732 PUSH32(esp, eax); /* 0x3602B924: push eax */ 10733 RECOMP_ICALL(0x3615FD86u); /* 0x3602B925: call 0x3615fd86 */ /* not lifted */ 10734 RECOMP_FLAGS_IN(); 10735 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10737 esp = esp + 0x14u; /* 0x3602B92A: add esp, 0x14 */ 10738 _flag_k = FK_ADD; 10739 /* test eax, eax */ /* 0x3602B92D: test eax, eax */ 10740 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10741 _cf = 0; 10742 _flag_k = FK_TEST; 10743 if (TEST_Z(_flag_a, _flag_b)) goto L_3602B93C; /* 0x3602B92F: je 0x3602b93c */ 10744 L_3602B931: 10745 ecx = MEM32(eax + 0x154); /* 0x3602B931: mov ecx, dword ptr [eax + 0x154] */ 10746 goto L_360E2940; /* 0x3602B937: jmp 0x360e2940 */ 10747 L_3602B93C: 10748 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602B93C: ret */ 10749 L_360E2940: 10750 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E2940: ret */ 10751 RECOMP_REGS_OUT(); 10752 } 10753 10754 void sub_3602B940(void) { 10755 int _fpu_cmp = 0; 10756 uint32_t _cf = 0; 10757 int _df = 1; 10758 uint32_t _flag_k = FK_NONE; 10759 uint32_t _flag_a = 0, _flag_b = 0; 10760 uint32_t _itail_tgt = 0; 10761 RECOMP_REGS_LOCALS 10762 RECOMP_ENTER(0x3602B940u); 10763 10764 L_3602B940: 10765 PUSH32(esp, ebp); /* 0x3602B940: push ebp */ 10766 ebp = esp; /* 0x3602B941: mov ebp, esp */ 10767 eax = MEM32(ebp + 0x8); /* 0x3602B943: mov eax, dword ptr [ebp + 8] */ 10768 PUSH32(esp, 0); /* 0x3602B946: push 0 */ 10769 PUSH32(esp, 0x361B2CF8u); /* 0x3602B948: push 0x361b2cf8 */ 10770 PUSH32(esp, 0x361B2CC0u); /* 0x3602B94D: push 0x361b2cc0 */ 10771 PUSH32(esp, 0); /* 0x3602B952: push 0 */ 10772 PUSH32(esp, eax); /* 0x3602B954: push eax */ 10773 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602B955: call dword ptr [0x3616ff70] */ 10774 RECOMP_FLAGS_IN(); 10775 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10776 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10777 esp = esp + 4; /* 0x3602B95B: add esp, 4 */ 10778 _flag_k = FK_ADD; 10779 PUSH32(esp, eax); /* 0x3602B95E: push eax */ 10780 RECOMP_ICALL(0x3615FD86u); /* 0x3602B95F: call 0x3615fd86 */ /* not lifted */ 10781 RECOMP_FLAGS_IN(); 10782 ecx = MEM32(ebp + 0xC); /* 0x3602B964: mov ecx, dword ptr [ebp + 0xc] */ 10783 edx = MEM32(eax); /* 0x3602B967: mov edx, dword ptr [eax] */ 10784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10786 esp = esp + 0x14u; /* 0x3602B969: add esp, 0x14 */ 10787 _flag_k = FK_ADD; 10788 PUSH32(esp, 2); /* 0x3602B96C: push 2 */ 10789 PUSH32(esp, ecx); /* 0x3602B96E: push ecx */ 10790 ecx = eax; /* 0x3602B96F: mov ecx, eax */ 10791 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602B971: call dword ptr [edx + 4] */ 10792 RECOMP_FLAGS_IN(); 10793 ebp = POP32_VAL(esp); /* 0x3602B974: pop ebp */ 10794 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3602B975: ret 8 */ 10795 RECOMP_REGS_OUT(); 10796 } 10797 10798 void sub_3602B980(void) { 10799 int _fpu_cmp = 0; 10800 uint32_t _cf = 0; 10801 int _df = 1; 10802 uint32_t _flag_k = FK_NONE; 10803 uint32_t _flag_a = 0, _flag_b = 0; 10804 uint32_t _itail_tgt = 0; 10805 RECOMP_REGS_LOCALS 10806 RECOMP_ENTER(0x3602B980u); 10807 10808 L_3602B980: 10809 PUSH32(esp, ebp); /* 0x3602B980: push ebp */ 10810 ebp = esp; /* 0x3602B981: mov ebp, esp */ 10811 eax = MEM32(ecx + 0x88); /* 0x3602B983: mov eax, dword ptr [ecx + 0x88] */ 10812 PUSH32(esp, 0); /* 0x3602B989: push 0 */ 10813 PUSH32(esp, 0x361B2CD8u); /* 0x3602B98B: push 0x361b2cd8 */ 10814 PUSH32(esp, 0x361B2CC0u); /* 0x3602B990: push 0x361b2cc0 */ 10815 PUSH32(esp, 0); /* 0x3602B995: push 0 */ 10816 PUSH32(esp, eax); /* 0x3602B997: push eax */ 10817 RECOMP_ICALL(0x3615FD86u); /* 0x3602B998: call 0x3615fd86 */ /* not lifted */ 10818 RECOMP_FLAGS_IN(); 10819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10821 esp = esp + 0x14u; /* 0x3602B99D: add esp, 0x14 */ 10822 _flag_k = FK_ADD; 10823 /* test eax, eax */ /* 0x3602B9A0: test eax, eax */ 10824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10825 _cf = 0; 10826 _flag_k = FK_TEST; 10827 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B9A8; /* 0x3602B9A2: jne 0x3602b9a8 */ 10828 L_3602B9A4: 10829 ebp = POP32_VAL(esp); /* 0x3602B9A4: pop ebp */ 10830 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B9A5: ret 4 */ 10831 L_3602B9A8: 10832 ecx = MEM32(ebp + 0x8); /* 0x3602B9A8: mov ecx, dword ptr [ebp + 8] */ 10833 eax = MEM32(eax + 0x154); /* 0x3602B9AB: mov eax, dword ptr [eax + 0x154] */ 10834 PUSH32(esp, ecx); /* 0x3602B9B1: push ecx */ 10835 ecx = eax; /* 0x3602B9B2: mov ecx, eax */ 10836 RECOMP_ICALL(0x36073D90u); /* 0x3602B9B4: call 0x36073d90 */ /* not lifted */ 10837 RECOMP_FLAGS_IN(); 10838 ebp = POP32_VAL(esp); /* 0x3602B9B9: pop ebp */ 10839 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602B9BA: ret 4 */ 10840 RECOMP_REGS_OUT(); 10841 } 10842 10843 void sub_3602B9C0(void) { 10844 int _fpu_cmp = 0; 10845 uint32_t _cf = 0; 10846 int _df = 1; 10847 uint32_t _flag_k = FK_NONE; 10848 uint32_t _flag_a = 0, _flag_b = 0; 10849 uint32_t _itail_tgt = 0; 10850 RECOMP_REGS_LOCALS 10851 RECOMP_ENTER(0x3602B9C0u); 10852 10853 L_3602B9C0: 10854 PUSH32(esp, ebp); /* 0x3602B9C0: push ebp */ 10855 ebp = esp; /* 0x3602B9C1: mov ebp, esp */ 10856 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10858 esp = esp - 0x10u; /* 0x3602B9C3: sub esp, 0x10 */ 10859 _flag_k = FK_CMP; 10860 eax = MEM32(ebp + 0x8); /* 0x3602B9C6: mov eax, dword ptr [ebp + 8] */ 10861 PUSH32(esp, esi); /* 0x3602B9C9: push esi */ 10862 PUSH32(esp, eax); /* 0x3602B9CA: push eax */ 10863 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602B9CB: call dword ptr [0x3616ff70] */ 10864 RECOMP_FLAGS_IN(); 10865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10867 esp = esp + 4; /* 0x3602B9D1: add esp, 4 */ 10868 _flag_k = FK_ADD; 10869 /* test eax, eax */ /* 0x3602B9D4: test eax, eax */ 10870 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10871 _cf = 0; 10872 _flag_k = FK_TEST; 10873 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602B9E1; /* 0x3602B9D6: jne 0x3602b9e1 */ 10874 L_3602B9D8: 10875 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 10876 SET_LO8(eax, 0); /* 0x3602B9D8: xor al, al */ 10877 _cf = 0; 10878 _flag_k = FK_NARROW(FK_TEST, 24); 10879 esi = POP32_VAL(esp); /* 0x3602B9DA: pop esi */ 10880 esp = ebp; /* 0x3602B9DB: mov esp, ebp */ 10881 ebp = POP32_VAL(esp); /* 0x3602B9DD: pop ebp */ 10882 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3602B9DE: ret 0x10 */ 10883 L_3602B9E1: 10884 PUSH32(esp, 0); /* 0x3602B9E1: push 0 */ 10885 PUSH32(esp, 0x361B2CD8u); /* 0x3602B9E3: push 0x361b2cd8 */ 10886 PUSH32(esp, 0x361B2CC0u); /* 0x3602B9E8: push 0x361b2cc0 */ 10887 PUSH32(esp, 0); /* 0x3602B9ED: push 0 */ 10888 PUSH32(esp, eax); /* 0x3602B9EF: push eax */ 10889 RECOMP_ICALL(0x3615FD86u); /* 0x3602B9F0: call 0x3615fd86 */ /* not lifted */ 10890 RECOMP_FLAGS_IN(); 10891 esi = eax; /* 0x3602B9F5: mov esi, eax */ 10892 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10894 esp = esp + 0x14u; /* 0x3602B9F7: add esp, 0x14 */ 10895 _flag_k = FK_ADD; 10896 /* test esi, esi */ /* 0x3602B9FA: test esi, esi */ 10897 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10898 _cf = 0; 10899 _flag_k = FK_TEST; 10900 if (TEST_NZ(_flag_a, _flag_b)) goto L_3602BA07; /* 0x3602B9FC: jne 0x3602ba07 */ 10901 L_3602B9FE: 10902 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 10903 SET_LO8(eax, 0); /* 0x3602B9FE: xor al, al */ 10904 _cf = 0; 10905 _flag_k = FK_NARROW(FK_TEST, 24); 10906 esi = POP32_VAL(esp); /* 0x3602BA00: pop esi */ 10907 esp = ebp; /* 0x3602BA01: mov esp, ebp */ 10908 ebp = POP32_VAL(esp); /* 0x3602BA03: pop ebp */ 10909 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3602BA04: ret 0x10 */ 10910 L_3602BA07: 10911 ecx = esi; /* 0x3602BA07: mov ecx, esi */ 10912 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3602BA09: call dword ptr [0x3616ffb0] */ 10913 RECOMP_FLAGS_IN(); 10914 edx = MEM32(eax); /* 0x3602BA0F: mov edx, dword ptr [eax] */ 10915 ecx = MEM32(ebp + 0xC); /* 0x3602BA11: mov ecx, dword ptr [ebp + 0xc] */ 10916 MEM32(ecx) = edx; /* 0x3602BA14: mov dword ptr [ecx], edx */ 10917 edx = MEM32(eax + 0x4); /* 0x3602BA16: mov edx, dword ptr [eax + 4] */ 10918 MEM32(ecx + 0x4) = edx; /* 0x3602BA19: mov dword ptr [ecx + 4], edx */ 10919 eax = MEM32(eax + 0x8); /* 0x3602BA1C: mov eax, dword ptr [eax + 8] */ 10920 MEM32(ecx + 0x8) = eax; /* 0x3602BA1F: mov dword ptr [ecx + 8], eax */ 10921 ecx = ebp + (-0x10); /* 0x3602BA22: lea ecx, [ebp - 0x10] */ 10922 PUSH32(esp, ecx); /* 0x3602BA25: push ecx */ 10923 ecx = esi; /* 0x3602BA26: mov ecx, esi */ 10924 RECOMP_ICALL(MEM32(0x36170048)); /* 0x3602BA28: call dword ptr [0x36170048] */ 10925 RECOMP_FLAGS_IN(); 10926 ecx = MEM32(eax); /* 0x3602BA2E: mov ecx, dword ptr [eax] */ 10927 edx = MEM32(ebp + 0x10); /* 0x3602BA30: mov edx, dword ptr [ebp + 0x10] */ 10928 MEM32(edx) = ecx; /* 0x3602BA33: mov dword ptr [edx], ecx */ 10929 ecx = MEM32(eax + 0x4); /* 0x3602BA35: mov ecx, dword ptr [eax + 4] */ 10930 MEM32(edx + 0x4) = ecx; /* 0x3602BA38: mov dword ptr [edx + 4], ecx */ 10931 ecx = MEM32(eax + 0x8); /* 0x3602BA3B: mov ecx, dword ptr [eax + 8] */ 10932 MEM32(edx + 0x8) = ecx; /* 0x3602BA3E: mov dword ptr [edx + 8], ecx */ 10933 eax = MEM32(eax + 0xC); /* 0x3602BA41: mov eax, dword ptr [eax + 0xc] */ 10934 ecx = MEM32(ebp + 0x14); /* 0x3602BA44: mov ecx, dword ptr [ebp + 0x14] */ 10935 MEM32(edx + 0xC) = eax; /* 0x3602BA47: mov dword ptr [edx + 0xc], eax */ 10936 MEM32(ecx) = 0x40000000u; /* 0x3602BA4A: mov dword ptr [ecx], 0x40000000 */ 10937 SET_LO8(eax, 1); /* 0x3602BA50: mov al, 1 */ 10938 esi = POP32_VAL(esp); /* 0x3602BA52: pop esi */ 10939 esp = ebp; /* 0x3602BA53: mov esp, ebp */ 10940 ebp = POP32_VAL(esp); /* 0x3602BA55: pop ebp */ 10941 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3602BA56: ret 0x10 */ 10942 RECOMP_REGS_OUT(); 10943 } 10944 10945 void sub_3602BA60(void) { 10946 int _fpu_cmp = 0; 10947 uint32_t _cf = 0; 10948 int _df = 1; 10949 uint32_t _flag_k = FK_NONE; 10950 uint32_t _flag_a = 0, _flag_b = 0; 10951 uint32_t _itail_tgt = 0; 10952 RECOMP_REGS_LOCALS 10953 RECOMP_ENTER(0x3602BA60u); 10954 10955 L_3602BA60: 10956 PUSH32(esp, ebp); /* 0x3602BA60: push ebp */ 10957 ebp = esp; /* 0x3602BA61: mov ebp, esp */ 10958 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602BA63: push -1 */ 10959 PUSH32(esp, 0x3616381Cu); /* 0x3602BA65: push 0x3616381c */ 10960 eax = MEM32(FS_BASE + (0)); /* 0x3602BA6A: mov eax, dword ptr fs:[0] */ 10961 PUSH32(esp, eax); /* 0x3602BA70: push eax */ 10962 MEM32(FS_BASE + (0)) = esp; /* 0x3602BA71: mov dword ptr fs:[0], esp */ 10963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10965 esp = esp - 8; /* 0x3602BA78: sub esp, 8 */ 10966 _flag_k = FK_CMP; 10967 PUSH32(esp, ebx); /* 0x3602BA7B: push ebx */ 10968 PUSH32(esp, esi); /* 0x3602BA7C: push esi */ 10969 PUSH32(esp, edi); /* 0x3602BA7D: push edi */ 10970 PUSH32(esp, 0); /* 0x3602BA7E: push 0 */ 10971 PUSH32(esp, 0x361B2CD8u); /* 0x3602BA80: push 0x361b2cd8 */ 10972 ebx = ecx; /* 0x3602BA85: mov ebx, ecx */ 10973 eax = MEM32(ebx + 0x88); /* 0x3602BA87: mov eax, dword ptr [ebx + 0x88] */ 10974 PUSH32(esp, 0x361B2CC0u); /* 0x3602BA8D: push 0x361b2cc0 */ 10975 PUSH32(esp, 0); /* 0x3602BA92: push 0 */ 10976 PUSH32(esp, eax); /* 0x3602BA94: push eax */ 10977 RECOMP_ICALL(0x3615FD86u); /* 0x3602BA95: call 0x3615fd86 */ /* not lifted */ 10978 RECOMP_FLAGS_IN(); 10979 esi = eax; /* 0x3602BA9A: mov esi, eax */ 10980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10982 esp = esp + 0x14u; /* 0x3602BA9C: add esp, 0x14 */ 10983 _flag_k = FK_ADD; 10984 /* test esi, esi */ /* 0x3602BA9F: test esi, esi */ 10985 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10986 _cf = 0; 10987 _flag_k = FK_TEST; 10988 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BC4F; /* 0x3602BAA1: je 0x3602bc4f */ 10989 L_3602BAA7: 10990 eax = MEM32(esi + 0x16C); /* 0x3602BAA7: mov eax, dword ptr [esi + 0x16c] */ 10991 /* cmp MEM32(eax + 0x50), 1 */ /* 0x3602BAAD: cmp dword ptr [eax + 0x50], 1 */ 10992 _flag_a = (uint32_t)(MEM32(eax + 0x50)); _flag_b = (uint32_t)(1); 10993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10994 _flag_k = FK_CMP; 10995 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602BABA; /* 0x3602BAB1: je 0x3602baba */ 10996 L_3602BAB3: 10997 ecx = ebx; /* 0x3602BAB3: mov ecx, ebx */ 10998 RECOMP_ICALL(0x3602B180u); /* 0x3602BAB5: call 0x3602b180 */ /* not lifted */ 10999 RECOMP_FLAGS_IN(); 11000 L_3602BABA: 11001 PUSH32(esp, 0); /* 0x3602BABA: push 0 */ 11002 PUSH32(esp, 0x361B2CF8u); /* 0x3602BABC: push 0x361b2cf8 */ 11003 PUSH32(esp, 0x361B2CC0u); /* 0x3602BAC1: push 0x361b2cc0 */ 11004 PUSH32(esp, 0); /* 0x3602BAC6: push 0 */ 11005 ecx = esi; /* 0x3602BAC8: mov ecx, esi */ 11006 RECOMP_ICALL(0x36072000u); /* 0x3602BACA: call 0x36072000 */ /* not lifted */ 11007 RECOMP_FLAGS_IN(); 11008 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x70u); 11009 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11010 eax = eax + 0x70u; /* 0x3602BACF: add eax, 0x70 */ 11011 _flag_k = FK_ADD; 11012 PUSH32(esp, eax); /* 0x3602BAD2: push eax */ 11013 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602BAD3: call dword ptr [0x3616ff70] */ 11014 RECOMP_FLAGS_IN(); 11015 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11016 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11017 esp = esp + 4; /* 0x3602BAD9: add esp, 4 */ 11018 _flag_k = FK_ADD; 11019 PUSH32(esp, eax); /* 0x3602BADC: push eax */ 11020 RECOMP_ICALL(0x3615FD86u); /* 0x3602BADD: call 0x3615fd86 */ /* not lifted */ 11021 RECOMP_FLAGS_IN(); 11022 edi = eax; /* 0x3602BAE2: mov edi, eax */ 11023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11025 esp = esp + 0x14u; /* 0x3602BAE4: add esp, 0x14 */ 11026 _flag_k = FK_ADD; 11027 /* test edi, edi */ /* 0x3602BAE7: test edi, edi */ 11028 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11029 _cf = 0; 11030 _flag_k = FK_TEST; 11031 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BBA6; /* 0x3602BAE9: je 0x3602bba6 */ 11032 L_3602BAEF: 11033 edx = MEM32(edi); /* 0x3602BAEF: mov edx, dword ptr [edi] */ 11034 PUSH32(esp, 2); /* 0x3602BAF1: push 2 */ 11035 PUSH32(esp, 0x1Eu); /* 0x3602BAF3: push 0x1e */ 11036 ecx = edi; /* 0x3602BAF5: mov ecx, edi */ 11037 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602BAF7: call dword ptr [edx + 4] */ 11038 RECOMP_FLAGS_IN(); 11039 /* test LO8(eax), 2 */ /* 0x3602BAFA: test al, 2 */ 11040 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(2) << 24; 11041 _cf = 0; 11042 _flag_k = FK_NARROW(FK_TEST, 24); 11043 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BBA6; /* 0x3602BAFC: je 0x3602bba6 */ 11044 L_3602BB02: 11045 eax = MEM32(esi + 0xE4); /* 0x3602BB02: mov eax, dword ptr [esi + 0xe4] */ 11046 ecx = esi + 0xE4; /* 0x3602BB08: lea ecx, [esi + 0xe4] */ 11047 PUSH32(esp, 2); /* 0x3602BB0E: push 2 */ 11048 PUSH32(esp, 0x1AEu); /* 0x3602BB10: push 0x1ae */ 11049 MEM32(ebp + (-0x10)) = 0; /* 0x3602BB15: mov dword ptr [ebp - 0x10], 0 */ 11050 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3602BB1C: call dword ptr [eax + 4] */ 11051 RECOMP_FLAGS_IN(); 11052 /* cmp eax, 1 */ /* 0x3602BB1F: cmp eax, 1 */ 11053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 11054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11055 _flag_k = FK_CMP; 11056 PUSH32(esp, 0x34u); /* 0x3602BB22: push 0x34 */ 11057 if (CMP_NE(_flag_a, _flag_b)) goto L_3602BB5B; /* 0x3602BB24: jne 0x3602bb5b */ 11058 L_3602BB26: 11059 RECOMP_ICALL(0x3615FD6Au); /* 0x3602BB26: call 0x3615fd6a */ /* not lifted */ 11060 RECOMP_FLAGS_IN(); 11061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11063 esp = esp + 4; /* 0x3602BB2B: add esp, 4 */ 11064 _flag_k = FK_ADD; 11065 MEM32(ebp + (-0x14)) = eax; /* 0x3602BB2E: mov dword ptr [ebp - 0x14], eax */ 11066 /* test eax, eax */ /* 0x3602BB31: test eax, eax */ 11067 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11068 _cf = 0; 11069 _flag_k = FK_TEST; 11070 MEM32(ebp + (-0x4)) = 0; /* 0x3602BB33: mov dword ptr [ebp - 4], 0 */ 11071 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BB92; /* 0x3602BB3A: je 0x3602bb92 */ 11072 L_3602BB3C: 11073 ecx = MEM32(ebx + 0x88); /* 0x3602BB3C: mov ecx, dword ptr [ebx + 0x88] */ 11074 PUSH32(esp, 0x36305AE0u); /* 0x3602BB42: push 0x36305ae0 */ 11075 PUSH32(esp, 0x57u); /* 0x3602BB47: push 0x57 */ 11076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11077 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11078 ecx = ecx + 4; /* 0x3602BB49: add ecx, 4 */ 11079 _flag_k = FK_ADD; 11080 PUSH32(esp, 0x36305AE0u); /* 0x3602BB4C: push 0x36305ae0 */ 11081 PUSH32(esp, ecx); /* 0x3602BB51: push ecx */ 11082 ecx = eax; /* 0x3602BB52: mov ecx, eax */ 11083 RECOMP_ICALL(0x3607D4B0u); /* 0x3602BB54: call 0x3607d4b0 */ /* not lifted */ 11084 RECOMP_FLAGS_IN(); 11085 goto L_3602BB94; /* 0x3602BB59: jmp 0x3602bb94 */ 11086 L_3602BB5B: 11087 RECOMP_ICALL(0x3615FD6Au); /* 0x3602BB5B: call 0x3615fd6a */ /* not lifted */ 11088 RECOMP_FLAGS_IN(); 11089 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11091 esp = esp + 4; /* 0x3602BB60: add esp, 4 */ 11092 _flag_k = FK_ADD; 11093 MEM32(ebp + (-0x14)) = eax; /* 0x3602BB63: mov dword ptr [ebp - 0x14], eax */ 11094 /* test eax, eax */ /* 0x3602BB66: test eax, eax */ 11095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11096 _cf = 0; 11097 _flag_k = FK_TEST; 11098 MEM32(ebp + (-0x4)) = 1; /* 0x3602BB68: mov dword ptr [ebp - 4], 1 */ 11099 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BB92; /* 0x3602BB6F: je 0x3602bb92 */ 11100 L_3602BB71: 11101 edx = MEM32(ebx + 0x88); /* 0x3602BB71: mov edx, dword ptr [ebx + 0x88] */ 11102 PUSH32(esp, 0x36305AE0u); /* 0x3602BB77: push 0x36305ae0 */ 11103 PUSH32(esp, 0x55u); /* 0x3602BB7C: push 0x55 */ 11104 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x90u); 11105 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11106 edi = edi + 0x90u; /* 0x3602BB7E: add edi, 0x90 */ 11107 _flag_k = FK_ADD; 11108 PUSH32(esp, edi); /* 0x3602BB84: push edi */ 11109 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 11110 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11111 edx = edx + 4; /* 0x3602BB85: add edx, 4 */ 11112 _flag_k = FK_ADD; 11113 PUSH32(esp, edx); /* 0x3602BB88: push edx */ 11114 ecx = eax; /* 0x3602BB89: mov ecx, eax */ 11115 RECOMP_ICALL(0x3607D4B0u); /* 0x3602BB8B: call 0x3607d4b0 */ /* not lifted */ 11116 RECOMP_FLAGS_IN(); 11117 goto L_3602BB94; /* 0x3602BB90: jmp 0x3602bb94 */ 11118 L_3602BB92: 11119 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11120 eax = 0; /* 0x3602BB92: xor eax, eax */ 11121 _cf = 0; 11122 _flag_k = FK_TEST; 11123 L_3602BB94: 11124 MEM32(ebp + (-0x10)) = eax; /* 0x3602BB94: mov dword ptr [ebp - 0x10], eax */ 11125 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602BB97: mov dword ptr [ebp - 4], 0xffffffff */ 11126 eax = ebp + (-0x10); /* 0x3602BB9E: lea eax, [ebp - 0x10] */ 11127 goto L_3602BC42; /* 0x3602BBA1: jmp 0x3602bc42 */ 11128 L_3602BBA6: 11129 ecx = esi; /* 0x3602BBA6: mov ecx, esi */ 11130 MEM32(ebp + (-0x14)) = 0; /* 0x3602BBA8: mov dword ptr [ebp - 0x14], 0 */ 11131 RECOMP_ICALL(0x3606D5A0u); /* 0x3602BBAF: call 0x3606d5a0 */ /* not lifted */ 11132 RECOMP_FLAGS_IN(); 11133 ecx = eax; /* 0x3602BBB4: mov ecx, eax */ 11134 RECOMP_ICALL(0x36047900u); /* 0x3602BBB6: call 0x36047900 */ /* not lifted */ 11135 RECOMP_FLAGS_IN(); 11136 ecx = eax; /* 0x3602BBBB: mov ecx, eax */ 11137 RECOMP_ICALL(0x36008320u); /* 0x3602BBBD: call 0x36008320 */ /* not lifted */ 11138 RECOMP_FLAGS_IN(); 11139 /* cmp eax, 8 */ /* 0x3602BBC2: cmp eax, 8 */ 11140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 11141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11142 _flag_k = FK_CMP; 11143 PUSH32(esp, 0x34u); /* 0x3602BBC5: push 0x34 */ 11144 if (CMP_NE(_flag_a, _flag_b)) goto L_3602BBFE; /* 0x3602BBC7: jne 0x3602bbfe */ 11145 L_3602BBC9: 11146 RECOMP_ICALL(0x3615FD6Au); /* 0x3602BBC9: call 0x3615fd6a */ /* not lifted */ 11147 RECOMP_FLAGS_IN(); 11148 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11149 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11150 esp = esp + 4; /* 0x3602BBCE: add esp, 4 */ 11151 _flag_k = FK_ADD; 11152 MEM32(ebp + (-0x10)) = eax; /* 0x3602BBD1: mov dword ptr [ebp - 0x10], eax */ 11153 /* test eax, eax */ /* 0x3602BBD4: test eax, eax */ 11154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11155 _cf = 0; 11156 _flag_k = FK_TEST; 11157 MEM32(ebp + (-0x4)) = 2; /* 0x3602BBD6: mov dword ptr [ebp - 4], 2 */ 11158 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BC33; /* 0x3602BBDD: je 0x3602bc33 */ 11159 L_3602BBDF: 11160 ecx = MEM32(ebx + 0x88); /* 0x3602BBDF: mov ecx, dword ptr [ebx + 0x88] */ 11161 PUSH32(esp, 0x36305AE0u); /* 0x3602BBE5: push 0x36305ae0 */ 11162 PUSH32(esp, 0x57u); /* 0x3602BBEA: push 0x57 */ 11163 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 11164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11165 ecx = ecx + 4; /* 0x3602BBEC: add ecx, 4 */ 11166 _flag_k = FK_ADD; 11167 PUSH32(esp, 0x36305AE0u); /* 0x3602BBEF: push 0x36305ae0 */ 11168 PUSH32(esp, ecx); /* 0x3602BBF4: push ecx */ 11169 ecx = eax; /* 0x3602BBF5: mov ecx, eax */ 11170 RECOMP_ICALL(0x3607D4B0u); /* 0x3602BBF7: call 0x3607d4b0 */ /* not lifted */ 11171 RECOMP_FLAGS_IN(); 11172 goto L_3602BC35; /* 0x3602BBFC: jmp 0x3602bc35 */ 11173 L_3602BBFE: 11174 RECOMP_ICALL(0x3615FD6Au); /* 0x3602BBFE: call 0x3615fd6a */ /* not lifted */ 11175 RECOMP_FLAGS_IN(); 11176 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11178 esp = esp + 4; /* 0x3602BC03: add esp, 4 */ 11179 _flag_k = FK_ADD; 11180 MEM32(ebp + (-0x10)) = eax; /* 0x3602BC06: mov dword ptr [ebp - 0x10], eax */ 11181 /* test eax, eax */ /* 0x3602BC09: test eax, eax */ 11182 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11183 _cf = 0; 11184 _flag_k = FK_TEST; 11185 MEM32(ebp + (-0x4)) = 3; /* 0x3602BC0B: mov dword ptr [ebp - 4], 3 */ 11186 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BC33; /* 0x3602BC12: je 0x3602bc33 */ 11187 L_3602BC14: 11188 edx = MEM32(ebx + 0x88); /* 0x3602BC14: mov edx, dword ptr [ebx + 0x88] */ 11189 PUSH32(esp, 0x36305AE0u); /* 0x3602BC1A: push 0x36305ae0 */ 11190 PUSH32(esp, 0x56u); /* 0x3602BC1F: push 0x56 */ 11191 PUSH32(esp, 0x36305AE0u); /* 0x3602BC21: push 0x36305ae0 */ 11192 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 11193 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11194 edx = edx + 4; /* 0x3602BC26: add edx, 4 */ 11195 _flag_k = FK_ADD; 11196 PUSH32(esp, edx); /* 0x3602BC29: push edx */ 11197 ecx = eax; /* 0x3602BC2A: mov ecx, eax */ 11198 RECOMP_ICALL(0x3607D4B0u); /* 0x3602BC2C: call 0x3607d4b0 */ /* not lifted */ 11199 RECOMP_FLAGS_IN(); 11200 goto L_3602BC35; /* 0x3602BC31: jmp 0x3602bc35 */ 11201 L_3602BC33: 11202 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11203 eax = 0; /* 0x3602BC33: xor eax, eax */ 11204 _cf = 0; 11205 _flag_k = FK_TEST; 11206 L_3602BC35: 11207 MEM32(ebp + (-0x14)) = eax; /* 0x3602BC35: mov dword ptr [ebp - 0x14], eax */ 11208 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602BC38: mov dword ptr [ebp - 4], 0xffffffff */ 11209 eax = ebp + (-0x14); /* 0x3602BC3F: lea eax, [ebp - 0x14] */ 11210 L_3602BC42: 11211 ecx = MEM32(ebx + 0x88); /* 0x3602BC42: mov ecx, dword ptr [ebx + 0x88] */ 11212 PUSH32(esp, eax); /* 0x3602BC48: push eax */ 11213 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602BC49: call dword ptr [0x3617004c] */ 11214 RECOMP_FLAGS_IN(); 11215 L_3602BC4F: 11216 ecx = MEM32(ebp + (-0xC)); /* 0x3602BC4F: mov ecx, dword ptr [ebp - 0xc] */ 11217 edi = POP32_VAL(esp); /* 0x3602BC52: pop edi */ 11218 esi = POP32_VAL(esp); /* 0x3602BC53: pop esi */ 11219 ebx = POP32_VAL(esp); /* 0x3602BC54: pop ebx */ 11220 MEM32(FS_BASE + (0)) = ecx; /* 0x3602BC55: mov dword ptr fs:[0], ecx */ 11221 esp = ebp; /* 0x3602BC5C: mov esp, ebp */ 11222 ebp = POP32_VAL(esp); /* 0x3602BC5E: pop ebp */ 11223 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602BC5F: ret */ 11224 RECOMP_REGS_OUT(); 11225 } 11226 11227 void sub_3602BC42(void) { 11228 int _fpu_cmp = 0; 11229 uint32_t _cf = 0; 11230 int _df = 1; 11231 uint32_t _flag_k = FK_NONE; 11232 uint32_t _flag_a = 0, _flag_b = 0; 11233 uint32_t _itail_tgt = 0; 11234 RECOMP_REGS_LOCALS 11235 RECOMP_ENTER(0x3602BC42u); 11236 11237 L_3602BC42: 11238 ecx = MEM32(ebx + 0x88); /* 0x3602BC42: mov ecx, dword ptr [ebx + 0x88] */ 11239 PUSH32(esp, eax); /* 0x3602BC48: push eax */ 11240 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602BC49: call dword ptr [0x3617004c] */ 11241 RECOMP_FLAGS_IN(); 11242 ecx = MEM32(ebp + (-0xC)); /* 0x3602BC4F: mov ecx, dword ptr [ebp - 0xc] */ 11243 edi = POP32_VAL(esp); /* 0x3602BC52: pop edi */ 11244 esi = POP32_VAL(esp); /* 0x3602BC53: pop esi */ 11245 ebx = POP32_VAL(esp); /* 0x3602BC54: pop ebx */ 11246 MEM32(FS_BASE + (0)) = ecx; /* 0x3602BC55: mov dword ptr fs:[0], ecx */ 11247 esp = ebp; /* 0x3602BC5C: mov esp, ebp */ 11248 ebp = POP32_VAL(esp); /* 0x3602BC5E: pop ebp */ 11249 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602BC5F: ret */ 11250 RECOMP_REGS_OUT(); 11251 } 11252 11253 void sub_3602BC60(void) { 11254 int _fpu_cmp = 0; 11255 uint32_t _cf = 0; 11256 int _df = 1; 11257 uint32_t _flag_k = FK_NONE; 11258 uint32_t _flag_a = 0, _flag_b = 0; 11259 uint32_t _itail_tgt = 0; 11260 RECOMP_REGS_LOCALS 11261 RECOMP_ENTER(0x3602BC60u); 11262 11263 L_3602BC60: 11264 PUSH32(esp, 0); /* 0x3602BC60: push 0 */ 11265 PUSH32(esp, 0x361B6A08u); /* 0x3602BC62: push 0x361b6a08 */ 11266 RECOMP_ICALL(0x3601C590u); /* 0x3602BC67: call 0x3601c590 */ /* not lifted */ 11267 RECOMP_FLAGS_IN(); 11268 ecx = eax; /* 0x3602BC6C: mov ecx, eax */ 11269 RECOMP_ICALL(0x3601C8C0u); /* 0x3602BC6E: call 0x3601c8c0 */ /* not lifted */ 11270 RECOMP_FLAGS_IN(); 11271 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3602BC73: ret */ 11272 RECOMP_REGS_OUT(); 11273 } 11274 11275 void sub_3602BC80(void) { 11276 int _fpu_cmp = 0; 11277 uint32_t _cf = 0; 11278 int _df = 1; 11279 uint32_t _flag_k = FK_NONE; 11280 uint32_t _flag_a = 0, _flag_b = 0; 11281 uint32_t _itail_tgt = 0; 11282 RECOMP_REGS_LOCALS 11283 RECOMP_ENTER(0x3602BC80u); 11284 11285 L_3602BC80: 11286 PUSH32(esp, ebp); /* 0x3602BC80: push ebp */ 11287 ebp = esp; /* 0x3602BC81: mov ebp, esp */ 11288 PUSH32(esp, 0xFFFFFFFFu); /* 0x3602BC83: push -1 */ 11289 PUSH32(esp, 0x36163846u); /* 0x3602BC85: push 0x36163846 */ 11290 eax = MEM32(FS_BASE + (0)); /* 0x3602BC8A: mov eax, dword ptr fs:[0] */ 11291 PUSH32(esp, eax); /* 0x3602BC90: push eax */ 11292 MEM32(FS_BASE + (0)) = esp; /* 0x3602BC91: mov dword ptr fs:[0], esp */ 11293 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 11294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11295 esp = esp - 0x20u; /* 0x3602BC98: sub esp, 0x20 */ 11296 _flag_k = FK_CMP; 11297 PUSH32(esp, esi); /* 0x3602BC9B: push esi */ 11298 PUSH32(esp, edi); /* 0x3602BC9C: push edi */ 11299 PUSH32(esp, 0); /* 0x3602BC9D: push 0 */ 11300 PUSH32(esp, 0x361B2CD8u); /* 0x3602BC9F: push 0x361b2cd8 */ 11301 esi = ecx; /* 0x3602BCA4: mov esi, ecx */ 11302 eax = MEM32(esi + 0x88); /* 0x3602BCA6: mov eax, dword ptr [esi + 0x88] */ 11303 PUSH32(esp, 0x361B2CC0u); /* 0x3602BCAC: push 0x361b2cc0 */ 11304 PUSH32(esp, 0); /* 0x3602BCB1: push 0 */ 11305 PUSH32(esp, eax); /* 0x3602BCB3: push eax */ 11306 RECOMP_ICALL(0x3615FD86u); /* 0x3602BCB4: call 0x3615fd86 */ /* not lifted */ 11307 RECOMP_FLAGS_IN(); 11308 eax = MEM32(esi + 0x84); /* 0x3602BCB9: mov eax, dword ptr [esi + 0x84] */ 11309 PUSH32(esp, 0x30u); /* 0x3602BCBF: push 0x30 */ 11310 MEM32(ebp + (-0x20)) = 0; /* 0x3602BCC1: mov dword ptr [ebp - 0x20], 0 */ 11311 MEM32(ebp + (-0x1C)) = 0; /* 0x3602BCC8: mov dword ptr [ebp - 0x1c], 0 */ 11312 MEM32(ebp + (-0x2C)) = 0; /* 0x3602BCCF: mov dword ptr [ebp - 0x2c], 0 */ 11313 MEM32(ebp + (-0x28)) = 0; /* 0x3602BCD6: mov dword ptr [ebp - 0x28], 0 */ 11314 MEM32(ebp + (-0x24)) = 0; /* 0x3602BCDD: mov dword ptr [ebp - 0x24], 0 */ 11315 MEM32(ebp + (-0x18)) = 0xC350u; /* 0x3602BCE4: mov dword ptr [ebp - 0x18], 0xc350 */ 11316 MEM32(ebp + (-0x14)) = eax; /* 0x3602BCEB: mov dword ptr [ebp - 0x14], eax */ 11317 RECOMP_ICALL(0x3615FD6Au); /* 0x3602BCEE: call 0x3615fd6a */ /* not lifted */ 11318 RECOMP_FLAGS_IN(); 11319 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 11320 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11321 esp = esp + 0x18u; /* 0x3602BCF3: add esp, 0x18 */ 11322 _flag_k = FK_ADD; 11323 MEM32(ebp + (-0x10)) = eax; /* 0x3602BCF6: mov dword ptr [ebp - 0x10], eax */ 11324 /* test eax, eax */ /* 0x3602BCF9: test eax, eax */ 11325 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11326 _cf = 0; 11327 _flag_k = FK_TEST; 11328 MEM32(ebp + (-0x4)) = 0; /* 0x3602BCFB: mov dword ptr [ebp - 4], 0 */ 11329 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BD1F; /* 0x3602BD02: je 0x3602bd1f */ 11330 L_3602BD04: 11331 ecx = ebp + (-0x20); /* 0x3602BD04: lea ecx, [ebp - 0x20] */ 11332 PUSH32(esp, ecx); /* 0x3602BD07: push ecx */ 11333 ecx = MEM32(ebp + 0x8); /* 0x3602BD08: mov ecx, dword ptr [ebp + 8] */ 11334 edx = ebp + (-0x2C); /* 0x3602BD0B: lea edx, [ebp - 0x2c] */ 11335 PUSH32(esp, edx); /* 0x3602BD0E: push edx */ 11336 PUSH32(esp, ecx); /* 0x3602BD0F: push ecx */ 11337 edx = ebp + (-0x18); /* 0x3602BD10: lea edx, [ebp - 0x18] */ 11338 PUSH32(esp, edx); /* 0x3602BD13: push edx */ 11339 ecx = eax; /* 0x3602BD14: mov ecx, eax */ 11340 RECOMP_ICALL(0x3604BF40u); /* 0x3602BD16: call 0x3604bf40 */ /* not lifted */ 11341 RECOMP_FLAGS_IN(); 11342 edi = eax; /* 0x3602BD1B: mov edi, eax */ 11343 goto L_3602BD21; /* 0x3602BD1D: jmp 0x3602bd21 */ 11344 L_3602BD1F: 11345 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11346 edi = 0; /* 0x3602BD1F: xor edi, edi */ 11347 _cf = 0; 11348 _flag_k = FK_TEST; 11349 L_3602BD21: 11350 PUSH32(esp, 0x34u); /* 0x3602BD21: push 0x34 */ 11351 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602BD23: mov dword ptr [ebp - 4], 0xffffffff */ 11352 RECOMP_ICALL(0x3615FD6Au); /* 0x3602BD2A: call 0x3615fd6a */ /* not lifted */ 11353 RECOMP_FLAGS_IN(); 11354 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11355 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11356 esp = esp + 4; /* 0x3602BD2F: add esp, 4 */ 11357 _flag_k = FK_ADD; 11358 MEM32(ebp + 0x8) = eax; /* 0x3602BD32: mov dword ptr [ebp + 8], eax */ 11359 /* test eax, eax */ /* 0x3602BD35: test eax, eax */ 11360 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11361 _cf = 0; 11362 _flag_k = FK_TEST; 11363 MEM32(ebp + (-0x4)) = 1; /* 0x3602BD37: mov dword ptr [ebp - 4], 1 */ 11364 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BD50; /* 0x3602BD3E: je 0x3602bd50 */ 11365 L_3602BD40: 11366 PUSH32(esp, 2); /* 0x3602BD40: push 2 */ 11367 PUSH32(esp, edi); /* 0x3602BD42: push edi */ 11368 ecx = ebp + (-0x18); /* 0x3602BD43: lea ecx, [ebp - 0x18] */ 11369 PUSH32(esp, ecx); /* 0x3602BD46: push ecx */ 11370 ecx = eax; /* 0x3602BD47: mov ecx, eax */ 11371 RECOMP_ICALL(0x36087850u); /* 0x3602BD49: call 0x36087850 */ /* not lifted */ 11372 RECOMP_FLAGS_IN(); 11373 goto L_3602BD52; /* 0x3602BD4E: jmp 0x3602bd52 */ 11374 L_3602BD50: 11375 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11376 eax = 0; /* 0x3602BD50: xor eax, eax */ 11377 _cf = 0; 11378 _flag_k = FK_TEST; 11379 L_3602BD52: 11380 edx = MEM32(esi); /* 0x3602BD52: mov edx, dword ptr [esi] */ 11381 PUSH32(esp, eax); /* 0x3602BD54: push eax */ 11382 ecx = esi; /* 0x3602BD55: mov ecx, esi */ 11383 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3602BD57: mov dword ptr [ebp - 4], 0xffffffff */ 11384 RECOMP_ICALL(MEM32(edx + 0x38)); /* 0x3602BD5E: call dword ptr [edx + 0x38] */ 11385 RECOMP_FLAGS_IN(); 11386 ecx = MEM32(ebp + (-0xC)); /* 0x3602BD61: mov ecx, dword ptr [ebp - 0xc] */ 11387 edi = POP32_VAL(esp); /* 0x3602BD64: pop edi */ 11388 esi = POP32_VAL(esp); /* 0x3602BD65: pop esi */ 11389 MEM32(FS_BASE + (0)) = ecx; /* 0x3602BD66: mov dword ptr fs:[0], ecx */ 11390 esp = ebp; /* 0x3602BD6D: mov esp, ebp */ 11391 ebp = POP32_VAL(esp); /* 0x3602BD6F: pop ebp */ 11392 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602BD70: ret 4 */ 11393 RECOMP_REGS_OUT(); 11394 } 11395 11396 void sub_3602BD80(void) { 11397 int _fpu_cmp = 0; 11398 uint32_t _cf = 0; 11399 int _df = 1; 11400 uint32_t _flag_k = FK_NONE; 11401 uint32_t _flag_a = 0, _flag_b = 0; 11402 uint32_t _itail_tgt = 0; 11403 RECOMP_REGS_LOCALS 11404 RECOMP_ENTER(0x3602BD80u); 11405 11406 L_3602BD80: 11407 PUSH32(esp, ebp); /* 0x3602BD80: push ebp */ 11408 ebp = esp; /* 0x3602BD81: mov ebp, esp */ 11409 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11410 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11411 esp = esp - 8; /* 0x3602BD83: sub esp, 8 */ 11412 _flag_k = FK_CMP; 11413 PUSH32(esp, ebx); /* 0x3602BD86: push ebx */ 11414 PUSH32(esp, esi); /* 0x3602BD87: push esi */ 11415 esi = MEM32(ebp + 0x8); /* 0x3602BD88: mov esi, dword ptr [ebp + 8] */ 11416 eax = MEM32(esi + 0x4); /* 0x3602BD8B: mov eax, dword ptr [esi + 4] */ 11417 ebx = ecx; /* 0x3602BD8E: mov ebx, ecx */ 11418 /* cmp eax, MEM32(0x36305AE4) */ /* 0x3602BD90: cmp eax, dword ptr [0x36305ae4] */ 11419 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x36305AE4)); 11420 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11421 _flag_k = FK_CMP; 11422 PUSH32(esp, edi); /* 0x3602BD96: push edi */ 11423 if (CMP_NE(_flag_a, _flag_b)) goto L_3602BDA7; /* 0x3602BD97: jne 0x3602bda7 */ 11424 L_3602BD99: 11425 ecx = MEM32(esi); /* 0x3602BD99: mov ecx, dword ptr [esi] */ 11426 /* cmp ecx, MEM32(0x36305AE0) */ /* 0x3602BD9B: cmp ecx, dword ptr [0x36305ae0] */ 11427 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x36305AE0)); 11428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11429 _flag_k = FK_CMP; 11430 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602BFB7; /* 0x3602BDA1: je 0x3602bfb7 */ 11431 L_3602BDA7: 11432 ecx = ebx; /* 0x3602BDA7: mov ecx, ebx */ 11433 RECOMP_ICALL(0x3601F240u); /* 0x3602BDA9: call 0x3601f240 */ /* not lifted */ 11434 RECOMP_FLAGS_IN(); 11435 edx = MEM32(esi); /* 0x3602BDAE: mov edx, dword ptr [esi] */ 11436 /* cmp edx, 0x6Fu */ /* 0x3602BDB0: cmp edx, 0x6f */ 11437 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x6Fu); 11438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11439 _flag_k = FK_CMP; 11440 if (CMP_NE(_flag_a, _flag_b)) goto L_3602BDD1; /* 0x3602BDB3: jne 0x3602bdd1 */ 11441 L_3602BDB5: 11442 edx = MEM32(ebp + 0xC); /* 0x3602BDB5: mov edx, dword ptr [ebp + 0xc] */ 11443 PUSH32(esp, edx); /* 0x3602BDB8: push edx */ 11444 PUSH32(esp, esi); /* 0x3602BDB9: push esi */ 11445 ecx = eax; /* 0x3602BDBA: mov ecx, eax */ 11446 RECOMP_ICALL(0x36071F90u); /* 0x3602BDBC: call 0x36071f90 */ /* not lifted */ 11447 RECOMP_FLAGS_IN(); 11448 ecx = eax; /* 0x3602BDC1: mov ecx, eax */ 11449 RECOMP_ICALL(0x360782A0u); /* 0x3602BDC3: call 0x360782a0 */ /* not lifted */ 11450 RECOMP_FLAGS_IN(); 11451 edi = POP32_VAL(esp); /* 0x3602BDC8: pop edi */ 11452 esi = POP32_VAL(esp); /* 0x3602BDC9: pop esi */ 11453 ebx = POP32_VAL(esp); /* 0x3602BDCA: pop ebx */ 11454 esp = ebp; /* 0x3602BDCB: mov esp, ebp */ 11455 ebp = POP32_VAL(esp); /* 0x3602BDCD: pop ebp */ 11456 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BDCE: ret 0xc */ 11457 L_3602BDD1: 11458 /* cmp edx, 0x64u */ /* 0x3602BDD1: cmp edx, 0x64 */ 11459 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x64u); 11460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11461 _flag_k = FK_CMP; 11462 if (CMP_LE(_flag_a, _flag_b)) goto L_3602BE05; /* 0x3602BDD4: jle 0x3602be05 */ 11463 L_3602BDD6: 11464 /* cmp edx, 0xFAu */ /* 0x3602BDD6: cmp edx, 0xfa */ 11465 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFAu); 11466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11467 _flag_k = FK_CMP; 11468 if (CMP_GE(_flag_a, _flag_b)) goto L_3602BE05; /* 0x3602BDDC: jge 0x3602be05 */ 11469 L_3602BDDE: 11470 /* test eax, eax */ /* 0x3602BDDE: test eax, eax */ 11471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11472 _cf = 0; 11473 _flag_k = FK_TEST; 11474 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BFB7; /* 0x3602BDE0: je 0x3602bfb7 */ 11475 L_3602BDE6: 11476 ecx = MEM32(ebp + 0x10); /* 0x3602BDE6: mov ecx, dword ptr [ebp + 0x10] */ 11477 edx = MEM32(ebp + 0xC); /* 0x3602BDE9: mov edx, dword ptr [ebp + 0xc] */ 11478 eax = MEM32(eax + 0x150); /* 0x3602BDEC: mov eax, dword ptr [eax + 0x150] */ 11479 PUSH32(esp, ecx); /* 0x3602BDF2: push ecx */ 11480 PUSH32(esp, edx); /* 0x3602BDF3: push edx */ 11481 PUSH32(esp, esi); /* 0x3602BDF4: push esi */ 11482 ecx = eax; /* 0x3602BDF5: mov ecx, eax */ 11483 RECOMP_ICALL(0x3605DE70u); /* 0x3602BDF7: call 0x3605de70 */ /* not lifted */ 11484 RECOMP_FLAGS_IN(); 11485 edi = POP32_VAL(esp); /* 0x3602BDFC: pop edi */ 11486 esi = POP32_VAL(esp); /* 0x3602BDFD: pop esi */ 11487 ebx = POP32_VAL(esp); /* 0x3602BDFE: pop ebx */ 11488 esp = ebp; /* 0x3602BDFF: mov esp, ebp */ 11489 ebp = POP32_VAL(esp); /* 0x3602BE01: pop ebp */ 11490 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BE02: ret 0xc */ 11491 L_3602BE05: 11492 /* cmp edx, 0xC350u */ /* 0x3602BE05: cmp edx, 0xc350 */ 11493 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xC350u); 11494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11495 _flag_k = FK_CMP; 11496 if (CMP_NE(_flag_a, _flag_b)) goto L_3602BEB9; /* 0x3602BE0B: jne 0x3602beb9 */ 11497 L_3602BE11: 11498 PUSH32(esp, 0); /* 0x3602BE11: push 0 */ 11499 PUSH32(esp, 0x361B2CD8u); /* 0x3602BE13: push 0x361b2cd8 */ 11500 PUSH32(esp, 0x361B2CC0u); /* 0x3602BE18: push 0x361b2cc0 */ 11501 PUSH32(esp, 0); /* 0x3602BE1D: push 0 */ 11502 PUSH32(esp, esi); /* 0x3602BE1F: push esi */ 11503 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602BE20: call dword ptr [0x3616ff70] */ 11504 RECOMP_FLAGS_IN(); 11505 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11507 esp = esp + 4; /* 0x3602BE26: add esp, 4 */ 11508 _flag_k = FK_ADD; 11509 PUSH32(esp, eax); /* 0x3602BE29: push eax */ 11510 RECOMP_ICALL(0x3615FD86u); /* 0x3602BE2A: call 0x3615fd86 */ /* not lifted */ 11511 RECOMP_FLAGS_IN(); 11512 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11513 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11514 esp = esp + 0x14u; /* 0x3602BE2F: add esp, 0x14 */ 11515 _flag_k = FK_ADD; 11516 /* test eax, eax */ /* 0x3602BE32: test eax, eax */ 11517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11518 _cf = 0; 11519 _flag_k = FK_TEST; 11520 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BFB7; /* 0x3602BE34: je 0x3602bfb7 */ 11521 L_3602BE3A: 11522 edx = MEM32(ebp + 0xC); /* 0x3602BE3A: mov edx, dword ptr [ebp + 0xc] */ 11523 /* cmp edx, 0x1Bu */ /* 0x3602BE3D: cmp edx, 0x1b */ 11524 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1Bu); 11525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11526 _flag_k = FK_CMP; 11527 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602BEAA; /* 0x3602BE40: je 0x3602beaa */ 11528 L_3602BE42: 11529 ecx = MEM32(ebp + 0x10); /* 0x3602BE42: mov ecx, dword ptr [ebp + 0x10] */ 11530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11531 ecx = ecx - 1; /* 0x3602BE45: dec ecx */ 11532 _flag_k = FK_DEC; 11533 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3602BE93; /* 0x3602BE46: je 0x3602be93 */ 11534 L_3602BE48: 11535 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11536 ecx = ecx - 1; /* 0x3602BE48: dec ecx */ 11537 _flag_k = FK_DEC; 11538 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3602BE7C; /* 0x3602BE49: je 0x3602be7c */ 11539 L_3602BE4B: 11540 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 11541 ecx = ecx - 1; /* 0x3602BE4B: dec ecx */ 11542 _flag_k = FK_DEC; 11543 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3602BE65; /* 0x3602BE4C: je 0x3602be65 */ 11544 L_3602BE4E: 11545 ecx = eax + 0xE4; /* 0x3602BE4E: lea ecx, [eax + 0xe4] */ 11546 eax = MEM32(ecx); /* 0x3602BE54: mov eax, dword ptr [ecx] */ 11547 PUSH32(esp, 2); /* 0x3602BE56: push 2 */ 11548 PUSH32(esp, edx); /* 0x3602BE58: push edx */ 11549 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3602BE59: call dword ptr [eax + 4] */ 11550 RECOMP_FLAGS_IN(); 11551 edi = POP32_VAL(esp); /* 0x3602BE5C: pop edi */ 11552 esi = POP32_VAL(esp); /* 0x3602BE5D: pop esi */ 11553 ebx = POP32_VAL(esp); /* 0x3602BE5E: pop ebx */ 11554 esp = ebp; /* 0x3602BE5F: mov esp, ebp */ 11555 ebp = POP32_VAL(esp); /* 0x3602BE61: pop ebp */ 11556 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BE62: ret 0xc */ 11557 L_3602BE65: 11558 eax = MEM32(eax + 0x154); /* 0x3602BE65: mov eax, dword ptr [eax + 0x154] */ 11559 PUSH32(esp, edx); /* 0x3602BE6B: push edx */ 11560 ecx = eax; /* 0x3602BE6C: mov ecx, eax */ 11561 RECOMP_ICALL(0x36075CD0u); /* 0x3602BE6E: call 0x36075cd0 */ /* not lifted */ 11562 RECOMP_FLAGS_IN(); 11563 edi = POP32_VAL(esp); /* 0x3602BE73: pop edi */ 11564 esi = POP32_VAL(esp); /* 0x3602BE74: pop esi */ 11565 ebx = POP32_VAL(esp); /* 0x3602BE75: pop ebx */ 11566 esp = ebp; /* 0x3602BE76: mov esp, ebp */ 11567 ebp = POP32_VAL(esp); /* 0x3602BE78: pop ebp */ 11568 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BE79: ret 0xc */ 11569 L_3602BE7C: 11570 eax = MEM32(eax + 0x154); /* 0x3602BE7C: mov eax, dword ptr [eax + 0x154] */ 11571 PUSH32(esp, edx); /* 0x3602BE82: push edx */ 11572 ecx = eax; /* 0x3602BE83: mov ecx, eax */ 11573 RECOMP_ICALL(0x36075CA0u); /* 0x3602BE85: call 0x36075ca0 */ /* not lifted */ 11574 RECOMP_FLAGS_IN(); 11575 edi = POP32_VAL(esp); /* 0x3602BE8A: pop edi */ 11576 esi = POP32_VAL(esp); /* 0x3602BE8B: pop esi */ 11577 ebx = POP32_VAL(esp); /* 0x3602BE8C: pop ebx */ 11578 esp = ebp; /* 0x3602BE8D: mov esp, ebp */ 11579 ebp = POP32_VAL(esp); /* 0x3602BE8F: pop ebp */ 11580 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BE90: ret 0xc */ 11581 L_3602BE93: 11582 eax = MEM32(eax + 0x154); /* 0x3602BE93: mov eax, dword ptr [eax + 0x154] */ 11583 PUSH32(esp, edx); /* 0x3602BE99: push edx */ 11584 ecx = eax; /* 0x3602BE9A: mov ecx, eax */ 11585 RECOMP_ICALL(0x36075C60u); /* 0x3602BE9C: call 0x36075c60 */ /* not lifted */ 11586 RECOMP_FLAGS_IN(); 11587 edi = POP32_VAL(esp); /* 0x3602BEA1: pop edi */ 11588 esi = POP32_VAL(esp); /* 0x3602BEA2: pop esi */ 11589 ebx = POP32_VAL(esp); /* 0x3602BEA3: pop ebx */ 11590 esp = ebp; /* 0x3602BEA4: mov esp, ebp */ 11591 ebp = POP32_VAL(esp); /* 0x3602BEA6: pop ebp */ 11592 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BEA7: ret 0xc */ 11593 L_3602BEAA: 11594 eax = MEM32(eax + 0x1B0); /* 0x3602BEAA: mov eax, dword ptr [eax + 0x1b0] */ 11595 edi = POP32_VAL(esp); /* 0x3602BEB0: pop edi */ 11596 esi = POP32_VAL(esp); /* 0x3602BEB1: pop esi */ 11597 ebx = POP32_VAL(esp); /* 0x3602BEB2: pop ebx */ 11598 esp = ebp; /* 0x3602BEB3: mov esp, ebp */ 11599 ebp = POP32_VAL(esp); /* 0x3602BEB5: pop ebp */ 11600 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BEB6: ret 0xc */ 11601 L_3602BEB9: 11602 /* cmp edx, 0xCF1Bu */ /* 0x3602BEB9: cmp edx, 0xcf1b */ 11603 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCF1Bu); 11604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11605 _flag_k = FK_CMP; 11606 if (CMP_NE(_flag_a, _flag_b)) goto L_3602BEEB; /* 0x3602BEBF: jne 0x3602beeb */ 11607 L_3602BEC1: 11608 esi = MEM32(esi + 0x4); /* 0x3602BEC1: mov esi, dword ptr [esi + 4] */ 11609 PUSH32(esp, esi); /* 0x3602BEC4: push esi */ 11610 RECOMP_ICALL(0x360B4000u); /* 0x3602BEC5: call 0x360b4000 */ /* not lifted */ 11611 RECOMP_FLAGS_IN(); 11612 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11613 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11614 esp = esp + 4; /* 0x3602BECA: add esp, 4 */ 11615 _flag_k = FK_ADD; 11616 /* test eax, eax */ /* 0x3602BECD: test eax, eax */ 11617 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11618 _cf = 0; 11619 _flag_k = FK_TEST; 11620 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BFB7; /* 0x3602BECF: je 0x3602bfb7 */ 11621 L_3602BED5: 11622 ecx = MEM32(ebp + 0xC); /* 0x3602BED5: mov ecx, dword ptr [ebp + 0xc] */ 11623 edx = MEM32(eax); /* 0x3602BED8: mov edx, dword ptr [eax] */ 11624 PUSH32(esp, 2); /* 0x3602BEDA: push 2 */ 11625 PUSH32(esp, ecx); /* 0x3602BEDC: push ecx */ 11626 ecx = eax; /* 0x3602BEDD: mov ecx, eax */ 11627 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602BEDF: call dword ptr [edx + 4] */ 11628 RECOMP_FLAGS_IN(); 11629 edi = POP32_VAL(esp); /* 0x3602BEE2: pop edi */ 11630 esi = POP32_VAL(esp); /* 0x3602BEE3: pop esi */ 11631 ebx = POP32_VAL(esp); /* 0x3602BEE4: pop ebx */ 11632 esp = ebp; /* 0x3602BEE5: mov esp, ebp */ 11633 ebp = POP32_VAL(esp); /* 0x3602BEE7: pop ebp */ 11634 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BEE8: ret 0xc */ 11635 L_3602BEEB: 11636 PUSH32(esp, 0); /* 0x3602BEEB: push 0 */ 11637 PUSH32(esp, 0x361B2CF8u); /* 0x3602BEED: push 0x361b2cf8 */ 11638 PUSH32(esp, 0x361B2CC0u); /* 0x3602BEF2: push 0x361b2cc0 */ 11639 PUSH32(esp, 0); /* 0x3602BEF7: push 0 */ 11640 PUSH32(esp, esi); /* 0x3602BEF9: push esi */ 11641 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3602BEFA: call dword ptr [0x3616ff70] */ 11642 RECOMP_FLAGS_IN(); 11643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11645 esp = esp + 4; /* 0x3602BF00: add esp, 4 */ 11646 _flag_k = FK_ADD; 11647 PUSH32(esp, eax); /* 0x3602BF03: push eax */ 11648 RECOMP_ICALL(0x3615FD86u); /* 0x3602BF04: call 0x3615fd86 */ /* not lifted */ 11649 RECOMP_FLAGS_IN(); 11650 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 11651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11652 esp = esp + 0x14u; /* 0x3602BF09: add esp, 0x14 */ 11653 _flag_k = FK_ADD; 11654 /* test eax, eax */ /* 0x3602BF0C: test eax, eax */ 11655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11656 _cf = 0; 11657 _flag_k = FK_TEST; 11658 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BF26; /* 0x3602BF0E: je 0x3602bf26 */ 11659 L_3602BF10: 11660 ecx = MEM32(ebp + 0xC); /* 0x3602BF10: mov ecx, dword ptr [ebp + 0xc] */ 11661 edx = MEM32(eax); /* 0x3602BF13: mov edx, dword ptr [eax] */ 11662 PUSH32(esp, 2); /* 0x3602BF15: push 2 */ 11663 PUSH32(esp, ecx); /* 0x3602BF17: push ecx */ 11664 ecx = eax; /* 0x3602BF18: mov ecx, eax */ 11665 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602BF1A: call dword ptr [edx + 4] */ 11666 RECOMP_FLAGS_IN(); 11667 edi = POP32_VAL(esp); /* 0x3602BF1D: pop edi */ 11668 esi = POP32_VAL(esp); /* 0x3602BF1E: pop esi */ 11669 ebx = POP32_VAL(esp); /* 0x3602BF1F: pop ebx */ 11670 esp = ebp; /* 0x3602BF20: mov esp, ebp */ 11671 ebp = POP32_VAL(esp); /* 0x3602BF22: pop ebp */ 11672 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BF23: ret 0xc */ 11673 L_3602BF26: 11674 eax = MEM32(esi); /* 0x3602BF26: mov eax, dword ptr [esi] */ 11675 /* cmp eax, 0xDAC3u */ /* 0x3602BF28: cmp eax, 0xdac3 */ 11676 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDAC3u); 11677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11678 _flag_k = FK_CMP; 11679 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602BFB7; /* 0x3602BF2D: je 0x3602bfb7 */ 11680 L_3602BF33: 11681 edx = ebp + (-0x8); /* 0x3602BF33: lea edx, [ebp - 8] */ 11682 /* cmp edx, esi */ /* 0x3602BF36: cmp edx, esi */ 11683 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 11684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11685 _flag_k = FK_CMP; 11686 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602BF41; /* 0x3602BF38: je 0x3602bf41 */ 11687 L_3602BF3A: 11688 esi = MEM32(esi + 0x4); /* 0x3602BF3A: mov esi, dword ptr [esi + 4] */ 11689 edi = eax; /* 0x3602BF3D: mov edi, eax */ 11690 goto L_3602BF47; /* 0x3602BF3F: jmp 0x3602bf47 */ 11691 L_3602BF41: 11692 esi = MEM32(ebp + (-0x4)); /* 0x3602BF41: mov esi, dword ptr [ebp - 4] */ 11693 edi = MEM32(ebp + (-0x8)); /* 0x3602BF44: mov edi, dword ptr [ebp - 8] */ 11694 L_3602BF47: 11695 eax = MEM32(ebx + 0x88); /* 0x3602BF47: mov eax, dword ptr [ebx + 0x88] */ 11696 /* test eax, eax */ /* 0x3602BF4D: test eax, eax */ 11697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11698 _cf = 0; 11699 _flag_k = FK_TEST; 11700 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BF85; /* 0x3602BF4F: je 0x3602bf85 */ 11701 L_3602BF51: 11702 /* cmp edi, 0x69u */ /* 0x3602BF51: cmp edi, 0x69 */ 11703 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x69u); 11704 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11705 _flag_k = FK_CMP; 11706 if (CMP_NE(_flag_a, _flag_b)) goto L_3602BF85; /* 0x3602BF54: jne 0x3602bf85 */ 11707 L_3602BF56: 11708 eax = MEM32(eax + 0x150); /* 0x3602BF56: mov eax, dword ptr [eax + 0x150] */ 11709 PUSH32(esp, esi); /* 0x3602BF5C: push esi */ 11710 ecx = eax; /* 0x3602BF5D: mov ecx, eax */ 11711 RECOMP_ICALL(0x3605F930u); /* 0x3602BF5F: call 0x3605f930 */ /* not lifted */ 11712 RECOMP_FLAGS_IN(); 11713 ecx = eax; /* 0x3602BF64: mov ecx, eax */ 11714 RECOMP_ICALL(0x3602D330u); /* 0x3602BF66: call 0x3602d330 */ /* not lifted */ 11715 RECOMP_FLAGS_IN(); 11716 /* test eax, eax */ /* 0x3602BF6B: test eax, eax */ 11717 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11718 _cf = 0; 11719 _flag_k = FK_TEST; 11720 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BF85; /* 0x3602BF6D: je 0x3602bf85 */ 11721 L_3602BF6F: 11722 ecx = MEM32(ebp + 0xC); /* 0x3602BF6F: mov ecx, dword ptr [ebp + 0xc] */ 11723 edx = MEM32(eax); /* 0x3602BF72: mov edx, dword ptr [eax] */ 11724 PUSH32(esp, 2); /* 0x3602BF74: push 2 */ 11725 PUSH32(esp, ecx); /* 0x3602BF76: push ecx */ 11726 ecx = eax; /* 0x3602BF77: mov ecx, eax */ 11727 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602BF79: call dword ptr [edx + 4] */ 11728 RECOMP_FLAGS_IN(); 11729 edi = POP32_VAL(esp); /* 0x3602BF7C: pop edi */ 11730 esi = POP32_VAL(esp); /* 0x3602BF7D: pop esi */ 11731 ebx = POP32_VAL(esp); /* 0x3602BF7E: pop ebx */ 11732 esp = ebp; /* 0x3602BF7F: mov esp, ebp */ 11733 ebp = POP32_VAL(esp); /* 0x3602BF81: pop ebp */ 11734 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BF82: ret 0xc */ 11735 L_3602BF85: 11736 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11737 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11738 esp = esp - 8; /* 0x3602BF85: sub esp, 8 */ 11739 _flag_k = FK_CMP; 11740 eax = esp; /* 0x3602BF88: mov eax, esp */ 11741 edx = ebp + (-0x8); /* 0x3602BF8A: lea edx, [ebp - 8] */ 11742 /* cmp eax, edx */ /* 0x3602BF8D: cmp eax, edx */ 11743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11745 _flag_k = FK_CMP; 11746 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602BF96; /* 0x3602BF8F: je 0x3602bf96 */ 11747 L_3602BF91: 11748 MEM32(eax) = edi; /* 0x3602BF91: mov dword ptr [eax], edi */ 11749 MEM32(eax + 0x4) = esi; /* 0x3602BF93: mov dword ptr [eax + 4], esi */ 11750 L_3602BF96: 11751 ecx = ebx; /* 0x3602BF96: mov ecx, ebx */ 11752 RECOMP_ICALL(0x360273F0u); /* 0x3602BF98: call 0x360273f0 */ /* not lifted */ 11753 RECOMP_FLAGS_IN(); 11754 /* test eax, eax */ /* 0x3602BF9D: test eax, eax */ 11755 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11756 _cf = 0; 11757 _flag_k = FK_TEST; 11758 if (TEST_Z(_flag_a, _flag_b)) goto L_3602BFB7; /* 0x3602BF9F: je 0x3602bfb7 */ 11759 L_3602BFA1: 11760 ecx = MEM32(ebp + 0xC); /* 0x3602BFA1: mov ecx, dword ptr [ebp + 0xc] */ 11761 edx = MEM32(eax); /* 0x3602BFA4: mov edx, dword ptr [eax] */ 11762 PUSH32(esp, 2); /* 0x3602BFA6: push 2 */ 11763 PUSH32(esp, ecx); /* 0x3602BFA8: push ecx */ 11764 ecx = eax; /* 0x3602BFA9: mov ecx, eax */ 11765 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3602BFAB: call dword ptr [edx + 4] */ 11766 RECOMP_FLAGS_IN(); 11767 edi = POP32_VAL(esp); /* 0x3602BFAE: pop edi */ 11768 esi = POP32_VAL(esp); /* 0x3602BFAF: pop esi */ 11769 ebx = POP32_VAL(esp); /* 0x3602BFB0: pop ebx */ 11770 esp = ebp; /* 0x3602BFB1: mov esp, ebp */ 11771 ebp = POP32_VAL(esp); /* 0x3602BFB3: pop ebp */ 11772 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BFB4: ret 0xc */ 11773 L_3602BFB7: 11774 edi = POP32_VAL(esp); /* 0x3602BFB7: pop edi */ 11775 esi = POP32_VAL(esp); /* 0x3602BFB8: pop esi */ 11776 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11777 eax = 0; /* 0x3602BFB9: xor eax, eax */ 11778 _cf = 0; 11779 _flag_k = FK_TEST; 11780 ebx = POP32_VAL(esp); /* 0x3602BFBB: pop ebx */ 11781 esp = ebp; /* 0x3602BFBC: mov esp, ebp */ 11782 ebp = POP32_VAL(esp); /* 0x3602BFBE: pop ebp */ 11783 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3602BFBF: ret 0xc */ 11784 RECOMP_REGS_OUT(); 11785 }