client/game/kkr.dll/lifted-0013.c (312623B)
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_3601E660(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(0x3601E660u); 17 18 L_3601E660: 19 goto L_3601E670; /* 0x3601E660: jmp 0x3601e670 */ 20 L_3601E670: 21 MEM32(0x36305AFC) = 0x361B5850u; /* 0x3601E670: mov dword ptr [0x36305afc], 0x361b5850 */ 22 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E67A: ret */ 23 RECOMP_REGS_OUT(); 24 } 25 26 void sub_3601E670(void) { 27 int _fpu_cmp = 0; 28 uint32_t _cf = 0; 29 int _df = 1; 30 uint32_t _flag_k = FK_NONE; 31 uint32_t _flag_a = 0, _flag_b = 0; 32 uint32_t _itail_tgt = 0; 33 RECOMP_REGS_LOCALS 34 RECOMP_ENTER(0x3601E670u); 35 36 L_3601E670: 37 MEM32(0x36305AFC) = 0x361B5850u; /* 0x3601E670: mov dword ptr [0x36305afc], 0x361b5850 */ 38 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E67A: ret */ 39 RECOMP_REGS_OUT(); 40 } 41 42 void sub_3601E680(void) { 43 int _fpu_cmp = 0; 44 uint32_t _cf = 0; 45 int _df = 1; 46 uint32_t _flag_k = FK_NONE; 47 uint32_t _flag_a = 0, _flag_b = 0; 48 uint32_t _itail_tgt = 0; 49 RECOMP_REGS_LOCALS 50 RECOMP_ENTER(0x3601E680u); 51 52 L_3601E680: 53 goto L_3601E690; /* 0x3601E680: jmp 0x3601e690 */ 54 L_3601E690: 55 MEM32(0x36305AF8) = 0x361B5888u; /* 0x3601E690: mov dword ptr [0x36305af8], 0x361b5888 */ 56 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E69A: ret */ 57 RECOMP_REGS_OUT(); 58 } 59 60 void sub_3601E690(void) { 61 int _fpu_cmp = 0; 62 uint32_t _cf = 0; 63 int _df = 1; 64 uint32_t _flag_k = FK_NONE; 65 uint32_t _flag_a = 0, _flag_b = 0; 66 uint32_t _itail_tgt = 0; 67 RECOMP_REGS_LOCALS 68 RECOMP_ENTER(0x3601E690u); 69 70 L_3601E690: 71 MEM32(0x36305AF8) = 0x361B5888u; /* 0x3601E690: mov dword ptr [0x36305af8], 0x361b5888 */ 72 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E69A: ret */ 73 RECOMP_REGS_OUT(); 74 } 75 76 void sub_3601E6A0(void) { 77 int _fpu_cmp = 0; 78 uint32_t _cf = 0; 79 int _df = 1; 80 uint32_t _flag_k = FK_NONE; 81 uint32_t _flag_a = 0, _flag_b = 0; 82 uint32_t _itail_tgt = 0; 83 RECOMP_REGS_LOCALS 84 RECOMP_ENTER(0x3601E6A0u); 85 86 L_3601E6A0: 87 SET_LO8(eax, MEM8(ecx + 0x18)); /* 0x3601E6A0: mov al, byte ptr [ecx + 0x18] */ 88 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E6A3: ret */ 89 RECOMP_REGS_OUT(); 90 } 91 92 void sub_3601E6B0(void) { 93 int _fpu_cmp = 0; 94 uint32_t _cf = 0; 95 int _df = 1; 96 uint32_t _flag_k = FK_NONE; 97 uint32_t _flag_a = 0, _flag_b = 0; 98 uint32_t _itail_tgt = 0; 99 RECOMP_REGS_LOCALS 100 RECOMP_ENTER(0x3601E6B0u); 101 102 L_3601E6B0: 103 eax = MEM32(ecx + 0x1C); /* 0x3601E6B0: mov eax, dword ptr [ecx + 0x1c] */ 104 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E6B3: ret */ 105 RECOMP_REGS_OUT(); 106 } 107 108 void sub_3601E6C0(void) { 109 int _fpu_cmp = 0; 110 uint32_t _cf = 0; 111 int _df = 1; 112 uint32_t _flag_k = FK_NONE; 113 uint32_t _flag_a = 0, _flag_b = 0; 114 uint32_t _itail_tgt = 0; 115 RECOMP_REGS_LOCALS 116 RECOMP_ENTER(0x3601E6C0u); 117 118 L_3601E6C0: 119 PUSH32(esp, ebp); /* 0x3601E6C0: push ebp */ 120 ebp = esp; /* 0x3601E6C1: mov ebp, esp */ 121 eax = MEM32(ebp + 0x8); /* 0x3601E6C3: mov eax, dword ptr [ebp + 8] */ 122 MEM32(ecx + 0x1C) = eax; /* 0x3601E6C6: mov dword ptr [ecx + 0x1c], eax */ 123 ebp = POP32_VAL(esp); /* 0x3601E6C9: pop ebp */ 124 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E6CA: ret 4 */ 125 RECOMP_REGS_OUT(); 126 } 127 128 void sub_3601E6D0(void) { 129 int _fpu_cmp = 0; 130 uint32_t _cf = 0; 131 int _df = 1; 132 uint32_t _flag_k = FK_NONE; 133 uint32_t _flag_a = 0, _flag_b = 0; 134 uint32_t _itail_tgt = 0; 135 RECOMP_REGS_LOCALS 136 RECOMP_ENTER(0x3601E6D0u); 137 138 L_3601E6D0: 139 PUSH32(esp, ebp); /* 0x3601E6D0: push ebp */ 140 ebp = esp; /* 0x3601E6D1: mov ebp, esp */ 141 eax = ecx; /* 0x3601E6D3: mov eax, ecx */ 142 ecx = MEM32(ebp + 0x8); /* 0x3601E6D5: mov ecx, dword ptr [ebp + 8] */ 143 /* test ecx, ecx */ /* 0x3601E6D8: test ecx, ecx */ 144 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 145 _cf = 0; 146 _flag_k = FK_TEST; 147 if (TEST_Z(_flag_a, _flag_b)) goto L_3601E6E1; /* 0x3601E6DA: je 0x3601e6e1 */ 148 L_3601E6DC: 149 edx = ecx + 0x4; /* 0x3601E6DC: lea edx, [ecx + 4] */ 150 goto L_3601E6E3; /* 0x3601E6DF: jmp 0x3601e6e3 */ 151 L_3601E6E1: 152 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 153 edx = 0; /* 0x3601E6E1: xor edx, edx */ 154 _cf = 0; 155 _flag_k = FK_TEST; 156 L_3601E6E3: 157 PUSH32(esp, esi); /* 0x3601E6E3: push esi */ 158 esi = eax + 0x4; /* 0x3601E6E4: lea esi, [eax + 4] */ 159 /* cmp esi, edx */ /* 0x3601E6E7: cmp esi, edx */ 160 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 162 _flag_k = FK_CMP; 163 PUSH32(esp, edi); /* 0x3601E6E9: push edi */ 164 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601E6F6; /* 0x3601E6EA: je 0x3601e6f6 */ 165 L_3601E6EC: 166 edi = MEM32(edx); /* 0x3601E6EC: mov edi, dword ptr [edx] */ 167 MEM32(esi) = edi; /* 0x3601E6EE: mov dword ptr [esi], edi */ 168 edx = MEM32(edx + 0x4); /* 0x3601E6F0: mov edx, dword ptr [edx + 4] */ 169 MEM32(esi + 0x4) = edx; /* 0x3601E6F3: mov dword ptr [esi + 4], edx */ 170 L_3601E6F6: 171 SET_LO8(edx, MEM8(ecx + 0xC)); /* 0x3601E6F6: mov dl, byte ptr [ecx + 0xc] */ 172 MEM8(eax + 0xC) = (uint8_t)(LO8(edx)); /* 0x3601E6F9: mov byte ptr [eax + 0xc], dl */ 173 edx = MEM32(ecx + 0x10); /* 0x3601E6FC: mov edx, dword ptr [ecx + 0x10] */ 174 MEM32(eax + 0x10) = edx; /* 0x3601E6FF: mov dword ptr [eax + 0x10], edx */ 175 edx = MEM32(ecx + 0x14); /* 0x3601E702: mov edx, dword ptr [ecx + 0x14] */ 176 MEM32(eax + 0x14) = edx; /* 0x3601E705: mov dword ptr [eax + 0x14], edx */ 177 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x3601E708: mov dl, byte ptr [ecx + 0x18] */ 178 MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x3601E70B: mov byte ptr [eax + 0x18], dl */ 179 edx = MEM32(ecx + 0x1C); /* 0x3601E70E: mov edx, dword ptr [ecx + 0x1c] */ 180 MEM32(eax + 0x1C) = edx; /* 0x3601E711: mov dword ptr [eax + 0x1c], edx */ 181 edx = MEM32(ecx + 0x20); /* 0x3601E714: mov edx, dword ptr [ecx + 0x20] */ 182 esi = ecx + 0x24; /* 0x3601E717: lea esi, [ecx + 0x24] */ 183 edi = eax + 0x24; /* 0x3601E71A: lea edi, [eax + 0x24] */ 184 ecx = 0x40u; /* 0x3601E71D: mov ecx, 0x40 */ 185 MEM32(eax + 0x20) = edx; /* 0x3601E722: mov dword ptr [eax + 0x20], edx */ 186 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3601E725: 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; } 187 edi = POP32_VAL(esp); /* 0x3601E727: pop edi */ 188 MEM32(eax) = 0x36170738u; /* 0x3601E728: mov dword ptr [eax], 0x36170738 */ 189 esi = POP32_VAL(esp); /* 0x3601E72E: pop esi */ 190 ebp = POP32_VAL(esp); /* 0x3601E72F: pop ebp */ 191 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E730: ret 4 */ 192 RECOMP_REGS_OUT(); 193 } 194 195 void sub_3601E740(void) { 196 int _fpu_cmp = 0; 197 uint32_t _cf = 0; 198 int _df = 1; 199 uint32_t _flag_k = FK_NONE; 200 uint32_t _flag_a = 0, _flag_b = 0; 201 uint32_t _itail_tgt = 0; 202 RECOMP_REGS_LOCALS 203 RECOMP_ENTER(0x3601E740u); 204 205 L_3601E740: 206 PUSH32(esp, ebp); /* 0x3601E740: push ebp */ 207 ebp = esp; /* 0x3601E741: mov ebp, esp */ 208 eax = ecx; /* 0x3601E743: mov eax, ecx */ 209 ecx = MEM32(ebp + 0x8); /* 0x3601E745: mov ecx, dword ptr [ebp + 8] */ 210 /* test ecx, ecx */ /* 0x3601E748: test ecx, ecx */ 211 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 212 _cf = 0; 213 _flag_k = FK_TEST; 214 if (TEST_Z(_flag_a, _flag_b)) goto L_3601E751; /* 0x3601E74A: je 0x3601e751 */ 215 L_3601E74C: 216 edx = ecx + 0x4; /* 0x3601E74C: lea edx, [ecx + 4] */ 217 goto L_3601E753; /* 0x3601E74F: jmp 0x3601e753 */ 218 L_3601E751: 219 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 220 edx = 0; /* 0x3601E751: xor edx, edx */ 221 _cf = 0; 222 _flag_k = FK_TEST; 223 L_3601E753: 224 PUSH32(esp, esi); /* 0x3601E753: push esi */ 225 esi = MEM32(edx); /* 0x3601E754: mov esi, dword ptr [edx] */ 226 MEM32(eax + 0x4) = esi; /* 0x3601E756: mov dword ptr [eax + 4], esi */ 227 edx = MEM32(edx + 0x4); /* 0x3601E759: mov edx, dword ptr [edx + 4] */ 228 MEM32(eax + 0x8) = edx; /* 0x3601E75C: mov dword ptr [eax + 8], edx */ 229 SET_LO8(edx, MEM8(ecx + 0xC)); /* 0x3601E75F: mov dl, byte ptr [ecx + 0xc] */ 230 MEM8(eax + 0xC) = (uint8_t)(LO8(edx)); /* 0x3601E762: mov byte ptr [eax + 0xc], dl */ 231 edx = MEM32(ecx + 0x10); /* 0x3601E765: mov edx, dword ptr [ecx + 0x10] */ 232 MEM32(eax + 0x10) = edx; /* 0x3601E768: mov dword ptr [eax + 0x10], edx */ 233 edx = MEM32(ecx + 0x14); /* 0x3601E76B: mov edx, dword ptr [ecx + 0x14] */ 234 MEM32(eax + 0x14) = edx; /* 0x3601E76E: mov dword ptr [eax + 0x14], edx */ 235 SET_LO8(edx, MEM8(ecx + 0x18)); /* 0x3601E771: mov dl, byte ptr [ecx + 0x18] */ 236 MEM8(eax + 0x18) = (uint8_t)(LO8(edx)); /* 0x3601E774: mov byte ptr [eax + 0x18], dl */ 237 edx = MEM32(ecx + 0x1C); /* 0x3601E777: mov edx, dword ptr [ecx + 0x1c] */ 238 MEM32(eax + 0x1C) = edx; /* 0x3601E77A: mov dword ptr [eax + 0x1c], edx */ 239 edx = MEM32(ecx + 0x20); /* 0x3601E77D: mov edx, dword ptr [ecx + 0x20] */ 240 PUSH32(esp, edi); /* 0x3601E780: push edi */ 241 esi = ecx; /* 0x3601E781: mov esi, ecx */ 242 edi = 0xFFFFFFDCu; /* 0x3601E783: mov edi, 0xffffffdc */ 243 MEM32(eax + 0x20) = edx; /* 0x3601E788: mov dword ptr [eax + 0x20], edx */ 244 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 245 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 246 esi = esi - eax; /* 0x3601E78B: sub esi, eax */ 247 _flag_k = FK_CMP; 248 edx = eax + 0x24; /* 0x3601E78D: lea edx, [eax + 0x24] */ 249 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 251 edi = edi - eax; /* 0x3601E790: sub edi, eax */ 252 _flag_k = FK_CMP; 253 L_3601E792: 254 SET_LO8(ecx, MEM8(esi + edx)); /* 0x3601E792: mov cl, byte ptr [esi + edx] */ 255 MEM8(edx) = (uint8_t)(LO8(ecx)); /* 0x3601E795: mov byte ptr [edx], cl */ 256 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 257 edx = edx + 1; /* 0x3601E797: inc edx */ 258 _flag_k = FK_INC; 259 ecx = edi + edx; /* 0x3601E798: lea ecx, [edi + edx] */ 260 /* cmp ecx, 0x100u */ /* 0x3601E79B: cmp ecx, 0x100 */ 261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x100u); 262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 263 _flag_k = FK_CMP; 264 RECOMP_BACKEDGE(); 265 if (CMP_B(_flag_a, _flag_b)) goto L_3601E792; /* 0x3601E7A1: jb 0x3601e792 */ 266 L_3601E7A3: 267 edi = POP32_VAL(esp); /* 0x3601E7A3: pop edi */ 268 esi = POP32_VAL(esp); /* 0x3601E7A4: pop esi */ 269 ebp = POP32_VAL(esp); /* 0x3601E7A5: pop ebp */ 270 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E7A6: ret 4 */ 271 RECOMP_REGS_OUT(); 272 } 273 274 void sub_3601E7B0(void) { 275 int _fpu_cmp = 0; 276 uint32_t _cf = 0; 277 int _df = 1; 278 uint32_t _flag_k = FK_NONE; 279 uint32_t _flag_a = 0, _flag_b = 0; 280 uint32_t _itail_tgt = 0; 281 RECOMP_REGS_LOCALS 282 RECOMP_ENTER(0x3601E7B0u); 283 284 L_3601E7B0: 285 PUSH32(esp, ebp); /* 0x3601E7B0: push ebp */ 286 ebp = esp; /* 0x3601E7B1: mov ebp, esp */ 287 PUSH32(esp, ebx); /* 0x3601E7B3: push ebx */ 288 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3601E7B4: mov bl, byte ptr [ebp + 8] */ 289 /* test LO8(ebx), 2 */ /* 0x3601E7B7: test bl, 2 */ 290 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 291 _cf = 0; 292 _flag_k = FK_NARROW(FK_TEST, 24); 293 PUSH32(esp, esi); /* 0x3601E7BA: push esi */ 294 esi = ecx; /* 0x3601E7BB: mov esi, ecx */ 295 if (TEST_Z(_flag_a, _flag_b)) goto L_3601E7EE; /* 0x3601E7BD: je 0x3601e7ee */ 296 L_3601E7BF: 297 eax = MEM32(esi + (-0x4)); /* 0x3601E7BF: mov eax, dword ptr [esi - 4] */ 298 PUSH32(esp, edi); /* 0x3601E7C2: push edi */ 299 PUSH32(esp, 0x36095690u); /* 0x3601E7C3: push 0x36095690 */ 300 edi = esi + (-0x4); /* 0x3601E7C8: lea edi, [esi - 4] */ 301 PUSH32(esp, eax); /* 0x3601E7CB: push eax */ 302 PUSH32(esp, 0x124u); /* 0x3601E7CC: push 0x124 */ 303 PUSH32(esp, esi); /* 0x3601E7D1: push esi */ 304 RECOMP_ICALL(0x3615FD92u); /* 0x3601E7D2: call 0x3615fd92 */ /* not lifted */ 305 RECOMP_FLAGS_IN(); 306 /* test LO8(ebx), 1 */ /* 0x3601E7D7: test bl, 1 */ 307 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 308 _cf = 0; 309 _flag_k = FK_NARROW(FK_TEST, 24); 310 if (TEST_Z(_flag_a, _flag_b)) goto L_3601E7E5; /* 0x3601E7DA: je 0x3601e7e5 */ 311 L_3601E7DC: 312 PUSH32(esp, edi); /* 0x3601E7DC: push edi */ 313 RECOMP_ICALL(0x3615FCC4u); /* 0x3601E7DD: call 0x3615fcc4 */ /* not lifted */ 314 RECOMP_FLAGS_IN(); 315 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 317 esp = esp + 4; /* 0x3601E7E2: add esp, 4 */ 318 _flag_k = FK_ADD; 319 L_3601E7E5: 320 eax = edi; /* 0x3601E7E5: mov eax, edi */ 321 edi = POP32_VAL(esp); /* 0x3601E7E7: pop edi */ 322 esi = POP32_VAL(esp); /* 0x3601E7E8: pop esi */ 323 ebx = POP32_VAL(esp); /* 0x3601E7E9: pop ebx */ 324 ebp = POP32_VAL(esp); /* 0x3601E7EA: pop ebp */ 325 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E7EB: ret 4 */ 326 L_3601E7EE: 327 ecx = esi; /* 0x3601E7EE: mov ecx, esi */ 328 RECOMP_ICALL(0x36095690u); /* 0x3601E7F0: call 0x36095690 */ /* not lifted */ 329 RECOMP_FLAGS_IN(); 330 /* test LO8(ebx), 1 */ /* 0x3601E7F5: test bl, 1 */ 331 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 332 _cf = 0; 333 _flag_k = FK_NARROW(FK_TEST, 24); 334 if (TEST_Z(_flag_a, _flag_b)) goto L_3601E803; /* 0x3601E7F8: je 0x3601e803 */ 335 L_3601E7FA: 336 PUSH32(esp, esi); /* 0x3601E7FA: push esi */ 337 RECOMP_ICALL(0x3615FCC4u); /* 0x3601E7FB: call 0x3615fcc4 */ /* not lifted */ 338 RECOMP_FLAGS_IN(); 339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 341 esp = esp + 4; /* 0x3601E800: add esp, 4 */ 342 _flag_k = FK_ADD; 343 L_3601E803: 344 eax = esi; /* 0x3601E803: mov eax, esi */ 345 esi = POP32_VAL(esp); /* 0x3601E805: pop esi */ 346 ebx = POP32_VAL(esp); /* 0x3601E806: pop ebx */ 347 ebp = POP32_VAL(esp); /* 0x3601E807: pop ebp */ 348 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E808: ret 4 */ 349 RECOMP_REGS_OUT(); 350 } 351 352 void sub_3601E810(void) { 353 int _fpu_cmp = 0; 354 uint32_t _cf = 0; 355 int _df = 1; 356 uint32_t _flag_k = FK_NONE; 357 uint32_t _flag_a = 0, _flag_b = 0; 358 uint32_t _itail_tgt = 0; 359 RECOMP_REGS_LOCALS 360 RECOMP_ENTER(0x3601E810u); 361 362 L_3601E810: 363 goto L_3601E820; /* 0x3601E810: jmp 0x3601e820 */ 364 L_3601E820: 365 MEM32(0x36305AF4) = 0x361B5908u; /* 0x3601E820: mov dword ptr [0x36305af4], 0x361b5908 */ 366 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E82A: ret */ 367 RECOMP_REGS_OUT(); 368 } 369 370 void sub_3601E820(void) { 371 int _fpu_cmp = 0; 372 uint32_t _cf = 0; 373 int _df = 1; 374 uint32_t _flag_k = FK_NONE; 375 uint32_t _flag_a = 0, _flag_b = 0; 376 uint32_t _itail_tgt = 0; 377 RECOMP_REGS_LOCALS 378 RECOMP_ENTER(0x3601E820u); 379 380 L_3601E820: 381 MEM32(0x36305AF4) = 0x361B5908u; /* 0x3601E820: mov dword ptr [0x36305af4], 0x361b5908 */ 382 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E82A: ret */ 383 RECOMP_REGS_OUT(); 384 } 385 386 void sub_3601E830(void) { 387 int _fpu_cmp = 0; 388 uint32_t _cf = 0; 389 int _df = 1; 390 uint32_t _flag_k = FK_NONE; 391 uint32_t _flag_a = 0, _flag_b = 0; 392 uint32_t _itail_tgt = 0; 393 RECOMP_REGS_LOCALS 394 RECOMP_ENTER(0x3601E830u); 395 396 L_3601E830: 397 goto L_3601E840; /* 0x3601E830: jmp 0x3601e840 */ 398 L_3601E840: 399 MEM32(0x36305AF0) = 0x361B5944u; /* 0x3601E840: mov dword ptr [0x36305af0], 0x361b5944 */ 400 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E84A: ret */ 401 RECOMP_REGS_OUT(); 402 } 403 404 void sub_3601E840(void) { 405 int _fpu_cmp = 0; 406 uint32_t _cf = 0; 407 int _df = 1; 408 uint32_t _flag_k = FK_NONE; 409 uint32_t _flag_a = 0, _flag_b = 0; 410 uint32_t _itail_tgt = 0; 411 RECOMP_REGS_LOCALS 412 RECOMP_ENTER(0x3601E840u); 413 414 L_3601E840: 415 MEM32(0x36305AF0) = 0x361B5944u; /* 0x3601E840: mov dword ptr [0x36305af0], 0x361b5944 */ 416 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E84A: ret */ 417 RECOMP_REGS_OUT(); 418 } 419 420 void sub_3601E850(void) { 421 int _fpu_cmp = 0; 422 uint32_t _cf = 0; 423 int _df = 1; 424 uint32_t _flag_k = FK_NONE; 425 uint32_t _flag_a = 0, _flag_b = 0; 426 uint32_t _itail_tgt = 0; 427 RECOMP_REGS_LOCALS 428 RECOMP_ENTER(0x3601E850u); 429 430 L_3601E850: 431 goto L_3601E860; /* 0x3601E850: jmp 0x3601e860 */ 432 L_3601E860: 433 MEM32(0x36305AEC) = 0x361B5978u; /* 0x3601E860: mov dword ptr [0x36305aec], 0x361b5978 */ 434 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E86A: ret */ 435 RECOMP_REGS_OUT(); 436 } 437 438 void sub_3601E860(void) { 439 int _fpu_cmp = 0; 440 uint32_t _cf = 0; 441 int _df = 1; 442 uint32_t _flag_k = FK_NONE; 443 uint32_t _flag_a = 0, _flag_b = 0; 444 uint32_t _itail_tgt = 0; 445 RECOMP_REGS_LOCALS 446 RECOMP_ENTER(0x3601E860u); 447 448 L_3601E860: 449 MEM32(0x36305AEC) = 0x361B5978u; /* 0x3601E860: mov dword ptr [0x36305aec], 0x361b5978 */ 450 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E86A: ret */ 451 RECOMP_REGS_OUT(); 452 } 453 454 void sub_3601E870(void) { 455 int _fpu_cmp = 0; 456 uint32_t _cf = 0; 457 int _df = 1; 458 uint32_t _flag_k = FK_NONE; 459 uint32_t _flag_a = 0, _flag_b = 0; 460 uint32_t _itail_tgt = 0; 461 RECOMP_REGS_LOCALS 462 RECOMP_ENTER(0x3601E870u); 463 464 L_3601E870: 465 goto L_3601E880; /* 0x3601E870: jmp 0x3601e880 */ 466 L_3601E880: 467 MEM32(0x36305AE8) = 0x361B59ACu; /* 0x3601E880: mov dword ptr [0x36305ae8], 0x361b59ac */ 468 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E88A: ret */ 469 RECOMP_REGS_OUT(); 470 } 471 472 void sub_3601E880(void) { 473 int _fpu_cmp = 0; 474 uint32_t _cf = 0; 475 int _df = 1; 476 uint32_t _flag_k = FK_NONE; 477 uint32_t _flag_a = 0, _flag_b = 0; 478 uint32_t _itail_tgt = 0; 479 RECOMP_REGS_LOCALS 480 RECOMP_ENTER(0x3601E880u); 481 482 L_3601E880: 483 MEM32(0x36305AE8) = 0x361B59ACu; /* 0x3601E880: mov dword ptr [0x36305ae8], 0x361b59ac */ 484 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E88A: ret */ 485 RECOMP_REGS_OUT(); 486 } 487 488 void sub_3601E890(void) { 489 int _fpu_cmp = 0; 490 uint32_t _cf = 0; 491 int _df = 1; 492 uint32_t _flag_k = FK_NONE; 493 uint32_t _flag_a = 0, _flag_b = 0; 494 uint32_t _itail_tgt = 0; 495 RECOMP_REGS_LOCALS 496 RECOMP_ENTER(0x3601E890u); 497 498 L_3601E890: 499 eax = MEM32(ecx + 0xAC); /* 0x3601E890: mov eax, dword ptr [ecx + 0xac] */ 500 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E896: ret */ 501 RECOMP_REGS_OUT(); 502 } 503 504 void sub_3601E8A0(void) { 505 int _fpu_cmp = 0; 506 uint32_t _cf = 0; 507 int _df = 1; 508 uint32_t _flag_k = FK_NONE; 509 uint32_t _flag_a = 0, _flag_b = 0; 510 uint32_t _itail_tgt = 0; 511 RECOMP_REGS_LOCALS 512 RECOMP_ENTER(0x3601E8A0u); 513 514 L_3601E8A0: 515 eax = MEM32(ecx + 0xB0); /* 0x3601E8A0: mov eax, dword ptr [ecx + 0xb0] */ 516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E8A6: ret */ 517 RECOMP_REGS_OUT(); 518 } 519 520 void sub_3601E8B0(void) { 521 int _fpu_cmp = 0; 522 uint32_t _cf = 0; 523 int _df = 1; 524 uint32_t _flag_k = FK_NONE; 525 uint32_t _flag_a = 0, _flag_b = 0; 526 uint32_t _itail_tgt = 0; 527 RECOMP_REGS_LOCALS 528 RECOMP_ENTER(0x3601E8B0u); 529 530 L_3601E8B0: 531 PUSH32(esp, ebp); /* 0x3601E8B0: push ebp */ 532 ebp = esp; /* 0x3601E8B1: mov ebp, esp */ 533 eax = MEM32(ebp + 0x8); /* 0x3601E8B3: mov eax, dword ptr [ebp + 8] */ 534 MEM32(ecx + 0xDC) = eax; /* 0x3601E8B6: mov dword ptr [ecx + 0xdc], eax */ 535 ebp = POP32_VAL(esp); /* 0x3601E8BC: pop ebp */ 536 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E8BD: ret 4 */ 537 RECOMP_REGS_OUT(); 538 } 539 540 void sub_3601E8C0(void) { 541 int _fpu_cmp = 0; 542 uint32_t _cf = 0; 543 int _df = 1; 544 uint32_t _flag_k = FK_NONE; 545 uint32_t _flag_a = 0, _flag_b = 0; 546 uint32_t _itail_tgt = 0; 547 RECOMP_REGS_LOCALS 548 RECOMP_ENTER(0x3601E8C0u); 549 550 L_3601E8C0: 551 eax = MEM32(ecx + 0xE0); /* 0x3601E8C0: mov eax, dword ptr [ecx + 0xe0] */ 552 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E8C6: ret */ 553 RECOMP_REGS_OUT(); 554 } 555 556 void sub_3601E8D0(void) { 557 int _fpu_cmp = 0; 558 uint32_t _cf = 0; 559 int _df = 1; 560 uint32_t _flag_k = FK_NONE; 561 uint32_t _flag_a = 0, _flag_b = 0; 562 uint32_t _itail_tgt = 0; 563 RECOMP_REGS_LOCALS 564 RECOMP_ENTER(0x3601E8D0u); 565 566 L_3601E8D0: 567 eax = MEM32(ecx + 0xC0); /* 0x3601E8D0: mov eax, dword ptr [ecx + 0xc0] */ 568 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E8D6: ret */ 569 RECOMP_REGS_OUT(); 570 } 571 572 void sub_3601E8E0(void) { 573 int _fpu_cmp = 0; 574 uint32_t _cf = 0; 575 int _df = 1; 576 uint32_t _flag_k = FK_NONE; 577 uint32_t _flag_a = 0, _flag_b = 0; 578 uint32_t _itail_tgt = 0; 579 RECOMP_REGS_LOCALS 580 RECOMP_ENTER(0x3601E8E0u); 581 582 L_3601E8E0: 583 eax = MEM32(ecx + 0xC4); /* 0x3601E8E0: mov eax, dword ptr [ecx + 0xc4] */ 584 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E8E6: ret */ 585 RECOMP_REGS_OUT(); 586 } 587 588 void sub_3601E8F0(void) { 589 int _fpu_cmp = 0; 590 uint32_t _cf = 0; 591 int _df = 1; 592 uint32_t _flag_k = FK_NONE; 593 uint32_t _flag_a = 0, _flag_b = 0; 594 uint32_t _itail_tgt = 0; 595 RECOMP_REGS_LOCALS 596 RECOMP_ENTER(0x3601E8F0u); 597 598 L_3601E8F0: 599 PUSH32(esp, ebp); /* 0x3601E8F0: push ebp */ 600 ebp = esp; /* 0x3601E8F1: mov ebp, esp */ 601 eax = MEM32(ebp + 0x8); /* 0x3601E8F3: mov eax, dword ptr [ebp + 8] */ 602 MEM32(ecx + 0xC0) = eax; /* 0x3601E8F6: mov dword ptr [ecx + 0xc0], eax */ 603 ebp = POP32_VAL(esp); /* 0x3601E8FC: pop ebp */ 604 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E8FD: ret 4 */ 605 RECOMP_REGS_OUT(); 606 } 607 608 void sub_3601E900(void) { 609 int _fpu_cmp = 0; 610 uint32_t _cf = 0; 611 int _df = 1; 612 uint32_t _flag_k = FK_NONE; 613 uint32_t _flag_a = 0, _flag_b = 0; 614 uint32_t _itail_tgt = 0; 615 RECOMP_REGS_LOCALS 616 RECOMP_ENTER(0x3601E900u); 617 618 L_3601E900: 619 PUSH32(esp, ebp); /* 0x3601E900: push ebp */ 620 ebp = esp; /* 0x3601E901: mov ebp, esp */ 621 eax = MEM32(ebp + 0x8); /* 0x3601E903: mov eax, dword ptr [ebp + 8] */ 622 MEM32(ecx + 0xC4) = eax; /* 0x3601E906: mov dword ptr [ecx + 0xc4], eax */ 623 ebp = POP32_VAL(esp); /* 0x3601E90C: pop ebp */ 624 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E90D: ret 4 */ 625 RECOMP_REGS_OUT(); 626 } 627 628 void sub_3601E910(void) { 629 int _fpu_cmp = 0; 630 uint32_t _cf = 0; 631 int _df = 1; 632 uint32_t _flag_k = FK_NONE; 633 uint32_t _flag_a = 0, _flag_b = 0; 634 uint32_t _itail_tgt = 0; 635 RECOMP_REGS_LOCALS 636 RECOMP_ENTER(0x3601E910u); 637 638 L_3601E910: 639 eax = MEM32(ecx + 0xD8); /* 0x3601E910: mov eax, dword ptr [ecx + 0xd8] */ 640 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E916: ret */ 641 RECOMP_REGS_OUT(); 642 } 643 644 void sub_3601E920(void) { 645 int _fpu_cmp = 0; 646 uint32_t _cf = 0; 647 int _df = 1; 648 uint32_t _flag_k = FK_NONE; 649 uint32_t _flag_a = 0, _flag_b = 0; 650 uint32_t _itail_tgt = 0; 651 RECOMP_REGS_LOCALS 652 RECOMP_ENTER(0x3601E920u); 653 654 L_3601E920: 655 eax = MEM32(ecx + 0xEC); /* 0x3601E920: mov eax, dword ptr [ecx + 0xec] */ 656 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601E926: ret */ 657 RECOMP_REGS_OUT(); 658 } 659 660 void sub_3601E930(void) { 661 int _fpu_cmp = 0; 662 uint32_t _cf = 0; 663 int _df = 1; 664 uint32_t _flag_k = FK_NONE; 665 uint32_t _flag_a = 0, _flag_b = 0; 666 uint32_t _itail_tgt = 0; 667 RECOMP_REGS_LOCALS 668 RECOMP_ENTER(0x3601E930u); 669 670 L_3601E930: 671 PUSH32(esp, ebp); /* 0x3601E930: push ebp */ 672 ebp = esp; /* 0x3601E931: mov ebp, esp */ 673 eax = MEM32(ebp + 0x8); /* 0x3601E933: mov eax, dword ptr [ebp + 8] */ 674 MEM32(ecx + 0xEC) = eax; /* 0x3601E936: mov dword ptr [ecx + 0xec], eax */ 675 ebp = POP32_VAL(esp); /* 0x3601E93C: pop ebp */ 676 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601E93D: ret 4 */ 677 RECOMP_REGS_OUT(); 678 } 679 680 void sub_3601E940(void) { 681 int _fpu_cmp = 0; 682 uint32_t _cf = 0; 683 int _df = 1; 684 uint32_t _flag_k = FK_NONE; 685 uint32_t _flag_a = 0, _flag_b = 0; 686 uint32_t _itail_tgt = 0; 687 RECOMP_REGS_LOCALS 688 RECOMP_ENTER(0x3601E940u); 689 690 L_3601E940: 691 PUSH32(esp, ebp); /* 0x3601E940: push ebp */ 692 ebp = esp; /* 0x3601E941: mov ebp, esp */ 693 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601E943: push -1 */ 694 PUSH32(esp, 0x36162EB1u); /* 0x3601E945: push 0x36162eb1 */ 695 eax = MEM32(FS_BASE + (0)); /* 0x3601E94A: mov eax, dword ptr fs:[0] */ 696 PUSH32(esp, eax); /* 0x3601E950: push eax */ 697 MEM32(FS_BASE + (0)) = esp; /* 0x3601E951: mov dword ptr fs:[0], esp */ 698 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 700 esp = esp - 0xCu; /* 0x3601E958: sub esp, 0xc */ 701 _flag_k = FK_CMP; 702 eax = MEM32(0x3616FFA0); /* 0x3601E95B: mov eax, dword ptr [0x3616ffa0] */ 703 PUSH32(esp, ebx); /* 0x3601E960: push ebx */ 704 ebx = ecx; /* 0x3601E961: mov ebx, ecx */ 705 PUSH32(esp, esi); /* 0x3601E963: push esi */ 706 esi = MEM32(ebp + 0x8); /* 0x3601E964: mov esi, dword ptr [ebp + 8] */ 707 MEM32(ebx) = eax; /* 0x3601E967: mov dword ptr [ebx], eax */ 708 SET_LO8(ecx, MEM8(esi + 0x4)); /* 0x3601E969: mov cl, byte ptr [esi + 4] */ 709 MEM8(ebx + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3601E96C: mov byte ptr [ebx + 4], cl */ 710 ecx = MEM32(esi + 0x8); /* 0x3601E96F: mov ecx, dword ptr [esi + 8] */ 711 /* test ecx, ecx */ /* 0x3601E972: test ecx, ecx */ 712 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 713 _cf = 0; 714 _flag_k = FK_TEST; 715 PUSH32(esp, edi); /* 0x3601E974: push edi */ 716 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601E97B; /* 0x3601E975: jne 0x3601e97b */ 717 L_3601E977: 718 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 719 eax = 0; /* 0x3601E977: xor eax, eax */ 720 _cf = 0; 721 _flag_k = FK_TEST; 722 goto L_3601E983; /* 0x3601E979: jmp 0x3601e983 */ 723 L_3601E97B: 724 eax = MEM32(esi + 0xC); /* 0x3601E97B: mov eax, dword ptr [esi + 0xc] */ 725 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 727 eax = eax - ecx; /* 0x3601E97E: sub eax, ecx */ 728 _flag_k = FK_CMP; 729 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3601E980: sar eax, 3 */ 730 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 731 eax = (uint32_t)((int32_t)eax >> 3u); 732 L_3601E983: 733 /* test eax, eax */ /* 0x3601E983: test eax, eax */ 734 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 735 _cf = 0; 736 _flag_k = FK_TEST; 737 if (TEST_NS(_flag_a, _flag_b)) goto L_3601E989; /* 0x3601E985: jge 0x3601e989 */ 738 L_3601E987: 739 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 740 eax = 0; /* 0x3601E987: xor eax, eax */ 741 _cf = 0; 742 _flag_k = FK_TEST; 743 L_3601E989: 744 edx = eax * 8; /* 0x3601E989: lea edx, [eax*8] */ 745 PUSH32(esp, edx); /* 0x3601E990: push edx */ 746 RECOMP_ICALL(0x3615FD6Au); /* 0x3601E991: call 0x3615fd6a */ /* not lifted */ 747 RECOMP_FLAGS_IN(); 748 MEM32(ebx + 0x8) = eax; /* 0x3601E996: mov dword ptr [ebx + 8], eax */ 749 ecx = MEM32(esi + 0xC); /* 0x3601E999: mov ecx, dword ptr [esi + 0xc] */ 750 edi = MEM32(esi + 0x8); /* 0x3601E99C: mov edi, dword ptr [esi + 8] */ 751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 753 esp = esp + 4; /* 0x3601E99F: add esp, 4 */ 754 _flag_k = FK_ADD; 755 /* cmp edi, ecx */ /* 0x3601E9A2: cmp edi, ecx */ 756 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 758 _flag_k = FK_CMP; 759 esi = eax; /* 0x3601E9A4: mov esi, eax */ 760 MEM32(ebp + (-0x10)) = ecx; /* 0x3601E9A6: mov dword ptr [ebp - 0x10], ecx */ 761 MEM32(ebp + (-0x14)) = esi; /* 0x3601E9A9: mov dword ptr [ebp - 0x14], esi */ 762 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601E9E2; /* 0x3601E9AC: je 0x3601e9e2 */ 763 L_3601E9AE: 764 MEM32(ebp + (-0x18)) = esi; /* 0x3601E9AE: mov dword ptr [ebp - 0x18], esi */ 765 /* test esi, esi */ /* 0x3601E9B1: test esi, esi */ 766 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 767 _cf = 0; 768 _flag_k = FK_TEST; 769 MEM32(ebp + (-0x4)) = 0; /* 0x3601E9B3: mov dword ptr [ebp - 4], 0 */ 770 if (TEST_Z(_flag_a, _flag_b)) goto L_3601E9CE; /* 0x3601E9BA: je 0x3601e9ce */ 771 L_3601E9BC: 772 PUSH32(esp, edi); /* 0x3601E9BC: push edi */ 773 ecx = esi; /* 0x3601E9BD: mov ecx, esi */ 774 RECOMP_ICALL(MEM32(0x3616FF9C)); /* 0x3601E9BF: call dword ptr [0x3616ff9c] */ 775 RECOMP_FLAGS_IN(); 776 ecx = MEM32(ebp + (-0x10)); /* 0x3601E9C5: mov ecx, dword ptr [ebp - 0x10] */ 777 MEM32(esi) = 0x361703F8u; /* 0x3601E9C8: mov dword ptr [esi], 0x361703f8 */ 778 L_3601E9CE: 779 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 781 esi = esi + 8; /* 0x3601E9CE: add esi, 8 */ 782 _flag_k = FK_ADD; 783 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 785 edi = edi + 8; /* 0x3601E9D1: add edi, 8 */ 786 _flag_k = FK_ADD; 787 /* cmp edi, ecx */ /* 0x3601E9D4: cmp edi, ecx */ 788 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 790 _flag_k = FK_CMP; 791 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3601E9D6: mov dword ptr [ebp - 4], 0xffffffff */ 792 MEM32(ebp + (-0x14)) = esi; /* 0x3601E9DD: mov dword ptr [ebp - 0x14], esi */ 793 RECOMP_BACKEDGE(); 794 if (CMP_NE(_flag_a, _flag_b)) goto L_3601E9AE; /* 0x3601E9E0: jne 0x3601e9ae */ 795 L_3601E9E2: 796 eax = MEM32(ebp + 0x8); /* 0x3601E9E2: mov eax, dword ptr [ebp + 8] */ 797 MEM32(ebx + 0xC) = esi; /* 0x3601E9E5: mov dword ptr [ebx + 0xc], esi */ 798 MEM32(ebx + 0x10) = esi; /* 0x3601E9E8: mov dword ptr [ebx + 0x10], esi */ 799 SET_LO8(ecx, MEM8(eax + 0x14)); /* 0x3601E9EB: mov cl, byte ptr [eax + 0x14] */ 800 MEM8(ebx + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3601E9EE: mov byte ptr [ebx + 0x14], cl */ 801 edx = MEM32(eax + 0x18); /* 0x3601E9F1: mov edx, dword ptr [eax + 0x18] */ 802 MEM32(ebx + 0x18) = edx; /* 0x3601E9F4: mov dword ptr [ebx + 0x18], edx */ 803 ecx = MEM32(0x3616FF98); /* 0x3601E9F7: mov ecx, dword ptr [0x3616ff98] */ 804 MEM32(ebx) = ecx; /* 0x3601E9FD: mov dword ptr [ebx], ecx */ 805 edx = MEM32(eax + 0x1C); /* 0x3601E9FF: mov edx, dword ptr [eax + 0x1c] */ 806 ecx = MEM32(ebp + (-0xC)); /* 0x3601EA02: mov ecx, dword ptr [ebp - 0xc] */ 807 MEM32(ebx + 0x1C) = edx; /* 0x3601EA05: mov dword ptr [ebx + 0x1c], edx */ 808 eax = MEM32(eax + 0x20); /* 0x3601EA08: mov eax, dword ptr [eax + 0x20] */ 809 edi = POP32_VAL(esp); /* 0x3601EA0B: pop edi */ 810 MEM32(ebx + 0x20) = eax; /* 0x3601EA0C: mov dword ptr [ebx + 0x20], eax */ 811 MEM32(ebx) = 0x36170740u; /* 0x3601EA0F: mov dword ptr [ebx], 0x36170740 */ 812 esi = POP32_VAL(esp); /* 0x3601EA15: pop esi */ 813 eax = ebx; /* 0x3601EA16: mov eax, ebx */ 814 ebx = POP32_VAL(esp); /* 0x3601EA18: pop ebx */ 815 MEM32(FS_BASE + (0)) = ecx; /* 0x3601EA19: mov dword ptr fs:[0], ecx */ 816 esp = ebp; /* 0x3601EA20: mov esp, ebp */ 817 ebp = POP32_VAL(esp); /* 0x3601EA22: pop ebp */ 818 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EA23: ret 4 */ 819 RECOMP_REGS_OUT(); 820 } 821 822 void sub_3601EA30(void) { 823 int _fpu_cmp = 0; 824 uint32_t _cf = 0; 825 int _df = 1; 826 uint32_t _flag_k = FK_NONE; 827 uint32_t _flag_a = 0, _flag_b = 0; 828 uint32_t _itail_tgt = 0; 829 RECOMP_REGS_LOCALS 830 RECOMP_ENTER(0x3601EA30u); 831 832 L_3601EA30: 833 PUSH32(esp, ebp); /* 0x3601EA30: push ebp */ 834 ebp = esp; /* 0x3601EA31: mov ebp, esp */ 835 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 837 esp = esp - 0xCu; /* 0x3601EA33: sub esp, 0xc */ 838 _flag_k = FK_CMP; 839 eax = MEM32(ebp + 0x8); /* 0x3601EA36: mov eax, dword ptr [ebp + 8] */ 840 PUSH32(esp, ebx); /* 0x3601EA39: push ebx */ 841 PUSH32(esp, esi); /* 0x3601EA3A: push esi */ 842 PUSH32(esp, edi); /* 0x3601EA3B: push edi */ 843 edi = eax + 0x4; /* 0x3601EA3C: lea edi, [eax + 4] */ 844 ebx = ecx + 0x4; /* 0x3601EA3F: lea ebx, [ecx + 4] */ 845 /* cmp ebx, edi */ /* 0x3601EA42: cmp ebx, edi */ 846 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edi); 847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 848 _flag_k = FK_CMP; 849 MEM32(ebp + (-0xC)) = ecx; /* 0x3601EA44: mov dword ptr [ebp - 0xc], ecx */ 850 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EBE4; /* 0x3601EA47: je 0x3601ebe4 */ 851 L_3601EA4D: 852 esi = MEM32(edi + 0x4); /* 0x3601EA4D: mov esi, dword ptr [edi + 4] */ 853 /* test esi, esi */ /* 0x3601EA50: test esi, esi */ 854 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 855 _cf = 0; 856 _flag_k = FK_TEST; 857 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EA58; /* 0x3601EA52: jne 0x3601ea58 */ 858 L_3601EA54: 859 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 860 ecx = 0; /* 0x3601EA54: xor ecx, ecx */ 861 _cf = 0; 862 _flag_k = FK_TEST; 863 goto L_3601EA60; /* 0x3601EA56: jmp 0x3601ea60 */ 864 L_3601EA58: 865 ecx = MEM32(edi + 0x8); /* 0x3601EA58: mov ecx, dword ptr [edi + 8] */ 866 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 867 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 868 ecx = ecx - esi; /* 0x3601EA5B: sub ecx, esi */ 869 _flag_k = FK_CMP; 870 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3601EA5D: sar ecx, 3 */ 871 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 872 ecx = (uint32_t)((int32_t)ecx >> 3u); 873 L_3601EA60: 874 eax = MEM32(ebx + 0x4); /* 0x3601EA60: mov eax, dword ptr [ebx + 4] */ 875 /* test eax, eax */ /* 0x3601EA63: test eax, eax */ 876 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 877 _cf = 0; 878 _flag_k = FK_TEST; 879 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EA6B; /* 0x3601EA65: jne 0x3601ea6b */ 880 L_3601EA67: 881 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 882 edx = 0; /* 0x3601EA67: xor edx, edx */ 883 _cf = 0; 884 _flag_k = FK_TEST; 885 goto L_3601EA73; /* 0x3601EA69: jmp 0x3601ea73 */ 886 L_3601EA6B: 887 edx = MEM32(ebx + 0x8); /* 0x3601EA6B: mov edx, dword ptr [ebx + 8] */ 888 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 889 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 890 edx = edx - eax; /* 0x3601EA6E: sub edx, eax */ 891 _flag_k = FK_CMP; 892 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3601EA70: sar edx, 3 */ 893 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 894 edx = (uint32_t)((int32_t)edx >> 3u); 895 L_3601EA73: 896 /* cmp ecx, edx */ /* 0x3601EA73: cmp ecx, edx */ 897 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 899 _flag_k = FK_CMP; 900 if (CMP_A(_flag_a, _flag_b)) goto L_3601EAEB; /* 0x3601EA75: ja 0x3601eaeb */ 901 L_3601EA77: 902 ecx = MEM32(edi + 0x8); /* 0x3601EA77: mov ecx, dword ptr [edi + 8] */ 903 /* cmp esi, ecx */ /* 0x3601EA7A: cmp esi, ecx */ 904 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx); 905 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 906 _flag_k = FK_CMP; 907 MEM32(ebp + (-0x4)) = ecx; /* 0x3601EA7C: mov dword ptr [ebp - 4], ecx */ 908 edi = eax; /* 0x3601EA7F: mov edi, eax */ 909 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EA99; /* 0x3601EA81: je 0x3601ea99 */ 910 L_3601EA83: 911 PUSH32(esp, esi); /* 0x3601EA83: push esi */ 912 ecx = edi; /* 0x3601EA84: mov ecx, edi */ 913 RECOMP_ICALL(MEM32(0x3616FFA4)); /* 0x3601EA86: call dword ptr [0x3616ffa4] */ 914 RECOMP_FLAGS_IN(); 915 eax = MEM32(ebp + (-0x4)); /* 0x3601EA8C: mov eax, dword ptr [ebp - 4] */ 916 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 918 esi = esi + 8; /* 0x3601EA8F: add esi, 8 */ 919 _flag_k = FK_ADD; 920 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 922 edi = edi + 8; /* 0x3601EA92: add edi, 8 */ 923 _flag_k = FK_ADD; 924 /* cmp esi, eax */ /* 0x3601EA95: cmp esi, eax */ 925 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 927 _flag_k = FK_CMP; 928 RECOMP_BACKEDGE(); 929 if (CMP_NE(_flag_a, _flag_b)) goto L_3601EA83; /* 0x3601EA97: jne 0x3601ea83 */ 930 L_3601EA99: 931 eax = MEM32(ebx + 0x8); /* 0x3601EA99: mov eax, dword ptr [ebx + 8] */ 932 /* cmp edi, eax */ /* 0x3601EA9C: cmp edi, eax */ 933 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 935 _flag_k = FK_CMP; 936 MEM32(ebp + (-0x4)) = eax; /* 0x3601EA9E: mov dword ptr [ebp - 4], eax */ 937 esi = edi; /* 0x3601EAA1: mov esi, edi */ 938 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EAB8; /* 0x3601EAA3: je 0x3601eab8 */ 939 L_3601EAA5: 940 edx = MEM32(esi); /* 0x3601EAA5: mov edx, dword ptr [esi] */ 941 PUSH32(esp, 0); /* 0x3601EAA7: push 0 */ 942 ecx = esi; /* 0x3601EAA9: mov ecx, esi */ 943 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3601EAAB: call dword ptr [edx + 0xc] */ 944 RECOMP_FLAGS_IN(); 945 eax = MEM32(ebp + (-0x4)); /* 0x3601EAAE: mov eax, dword ptr [ebp - 4] */ 946 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 947 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 948 esi = esi + 8; /* 0x3601EAB1: add esi, 8 */ 949 _flag_k = FK_ADD; 950 /* cmp esi, eax */ /* 0x3601EAB4: cmp esi, eax */ 951 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 952 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 953 _flag_k = FK_CMP; 954 RECOMP_BACKEDGE(); 955 if (CMP_NE(_flag_a, _flag_b)) goto L_3601EAA5; /* 0x3601EAB6: jne 0x3601eaa5 */ 956 L_3601EAB8: 957 eax = MEM32(ebp + 0x8); /* 0x3601EAB8: mov eax, dword ptr [ebp + 8] */ 958 ecx = MEM32(eax + 0x8); /* 0x3601EABB: mov ecx, dword ptr [eax + 8] */ 959 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 961 eax = eax + 4; /* 0x3601EABE: add eax, 4 */ 962 _flag_k = FK_ADD; 963 /* test ecx, ecx */ /* 0x3601EAC1: test ecx, ecx */ 964 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 965 _cf = 0; 966 _flag_k = FK_TEST; 967 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EAD5; /* 0x3601EAC3: jne 0x3601ead5 */ 968 L_3601EAC5: 969 ecx = MEM32(ebx + 0x4); /* 0x3601EAC5: mov ecx, dword ptr [ebx + 4] */ 970 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 971 eax = 0; /* 0x3601EAC8: xor eax, eax */ 972 _cf = 0; 973 _flag_k = FK_TEST; 974 edx = ecx + eax * 8; /* 0x3601EACA: lea edx, [ecx + eax*8] */ 975 MEM32(ebx + 0x8) = edx; /* 0x3601EACD: mov dword ptr [ebx + 8], edx */ 976 goto L_3601EBE4; /* 0x3601EAD0: jmp 0x3601ebe4 */ 977 L_3601EAD5: 978 eax = MEM32(eax + 0x8); /* 0x3601EAD5: mov eax, dword ptr [eax + 8] */ 979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 981 eax = eax - ecx; /* 0x3601EAD8: sub eax, ecx */ 982 _flag_k = FK_CMP; 983 ecx = MEM32(ebx + 0x4); /* 0x3601EADA: mov ecx, dword ptr [ebx + 4] */ 984 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3601EADD: sar eax, 3 */ 985 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 986 eax = (uint32_t)((int32_t)eax >> 3u); 987 edx = ecx + eax * 8; /* 0x3601EAE0: lea edx, [ecx + eax*8] */ 988 MEM32(ebx + 0x8) = edx; /* 0x3601EAE3: mov dword ptr [ebx + 8], edx */ 989 goto L_3601EBE4; /* 0x3601EAE6: jmp 0x3601ebe4 */ 990 L_3601EAEB: 991 /* test esi, esi */ /* 0x3601EAEB: test esi, esi */ 992 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 993 _cf = 0; 994 _flag_k = FK_TEST; 995 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EAF3; /* 0x3601EAED: jne 0x3601eaf3 */ 996 L_3601EAEF: 997 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 998 edi = 0; /* 0x3601EAEF: xor edi, edi */ 999 _cf = 0; 1000 _flag_k = FK_TEST; 1001 goto L_3601EAFB; /* 0x3601EAF1: jmp 0x3601eafb */ 1002 L_3601EAF3: 1003 edi = MEM32(edi + 0x8); /* 0x3601EAF3: mov edi, dword ptr [edi + 8] */ 1004 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 1005 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1006 edi = edi - esi; /* 0x3601EAF6: sub edi, esi */ 1007 _flag_k = FK_CMP; 1008 if (3u) _cf = (((edi) >> 2) & 1u); /* 0x3601EAF8: sar edi, 3 */ 1009 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edi >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1010 edi = (uint32_t)((int32_t)edi >> 3u); 1011 L_3601EAFB: 1012 /* test eax, eax */ /* 0x3601EAFB: test eax, eax */ 1013 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1014 _cf = 0; 1015 _flag_k = FK_TEST; 1016 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EB03; /* 0x3601EAFD: jne 0x3601eb03 */ 1017 L_3601EAFF: 1018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1019 edx = 0; /* 0x3601EAFF: xor edx, edx */ 1020 _cf = 0; 1021 _flag_k = FK_TEST; 1022 goto L_3601EB0B; /* 0x3601EB01: jmp 0x3601eb0b */ 1023 L_3601EB03: 1024 edx = MEM32(ebx + 0xC); /* 0x3601EB03: mov edx, dword ptr [ebx + 0xc] */ 1025 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1027 edx = edx - eax; /* 0x3601EB06: sub edx, eax */ 1028 _flag_k = FK_CMP; 1029 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3601EB08: sar edx, 3 */ 1030 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1031 edx = (uint32_t)((int32_t)edx >> 3u); 1032 L_3601EB0B: 1033 /* cmp edi, edx */ /* 0x3601EB0B: cmp edi, edx */ 1034 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 1035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1036 _flag_k = FK_CMP; 1037 if (CMP_A(_flag_a, _flag_b)) goto L_3601EB84; /* 0x3601EB0D: ja 0x3601eb84 */ 1038 L_3601EB0F: 1039 /* test eax, eax */ /* 0x3601EB0F: test eax, eax */ 1040 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1041 _cf = 0; 1042 _flag_k = FK_TEST; 1043 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EB17; /* 0x3601EB11: jne 0x3601eb17 */ 1044 L_3601EB13: 1045 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1046 edx = 0; /* 0x3601EB13: xor edx, edx */ 1047 _cf = 0; 1048 _flag_k = FK_TEST; 1049 goto L_3601EB1F; /* 0x3601EB15: jmp 0x3601eb1f */ 1050 L_3601EB17: 1051 edx = MEM32(ebx + 0x8); /* 0x3601EB17: mov edx, dword ptr [ebx + 8] */ 1052 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1054 edx = edx - eax; /* 0x3601EB1A: sub edx, eax */ 1055 _flag_k = FK_CMP; 1056 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3601EB1C: sar edx, 3 */ 1057 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1058 edx = (uint32_t)((int32_t)edx >> 3u); 1059 L_3601EB1F: 1060 edi = esi + edx * 8; /* 0x3601EB1F: lea edi, [esi + edx*8] */ 1061 /* cmp esi, edi */ /* 0x3601EB22: cmp esi, edi */ 1062 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1064 _flag_k = FK_CMP; 1065 MEM32(ebp + (-0x4)) = eax; /* 0x3601EB24: mov dword ptr [ebp - 4], eax */ 1066 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EB43; /* 0x3601EB27: je 0x3601eb43 */ 1067 L_3601EB29: 1068 ecx = MEM32(ebp + (-0x4)); /* 0x3601EB29: mov ecx, dword ptr [ebp - 4] */ 1069 PUSH32(esp, esi); /* 0x3601EB2C: push esi */ 1070 RECOMP_ICALL(MEM32(0x3616FFA4)); /* 0x3601EB2D: call dword ptr [0x3616ffa4] */ 1071 RECOMP_FLAGS_IN(); 1072 edx = MEM32(ebp + (-0x4)); /* 0x3601EB33: mov edx, dword ptr [ebp - 4] */ 1073 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 1074 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1075 edx = edx + 8; /* 0x3601EB36: add edx, 8 */ 1076 _flag_k = FK_ADD; 1077 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 1078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1079 esi = esi + 8; /* 0x3601EB39: add esi, 8 */ 1080 _flag_k = FK_ADD; 1081 /* cmp esi, edi */ /* 0x3601EB3C: cmp esi, edi */ 1082 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 1083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1084 _flag_k = FK_CMP; 1085 MEM32(ebp + (-0x4)) = edx; /* 0x3601EB3E: mov dword ptr [ebp - 4], edx */ 1086 RECOMP_BACKEDGE(); 1087 if (CMP_NE(_flag_a, _flag_b)) goto L_3601EB29; /* 0x3601EB41: jne 0x3601eb29 */ 1088 L_3601EB43: 1089 eax = MEM32(ebp + 0x8); /* 0x3601EB43: mov eax, dword ptr [ebp + 8] */ 1090 ecx = MEM32(ebx + 0x8); /* 0x3601EB46: mov ecx, dword ptr [ebx + 8] */ 1091 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1093 eax = eax + 4; /* 0x3601EB49: add eax, 4 */ 1094 _flag_k = FK_ADD; 1095 eax = MEM32(eax + 0x8); /* 0x3601EB4C: mov eax, dword ptr [eax + 8] */ 1096 /* cmp edi, eax */ /* 0x3601EB4F: cmp edi, eax */ 1097 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1099 _flag_k = FK_CMP; 1100 MEM32(ebp + (-0x8)) = eax; /* 0x3601EB51: mov dword ptr [ebp - 8], eax */ 1101 MEM32(ebp + (-0x4)) = ecx; /* 0x3601EB54: mov dword ptr [ebp - 4], ecx */ 1102 esi = edi; /* 0x3601EB57: mov esi, edi */ 1103 RECOMP_BACKEDGE(); 1104 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EAB8; /* 0x3601EB59: je 0x3601eab8 */ 1105 L_3601EB5F: 1106 edx = MEM32(ebp + (-0x4)); /* 0x3601EB5F: mov edx, dword ptr [ebp - 4] */ 1107 PUSH32(esp, esi); /* 0x3601EB62: push esi */ 1108 PUSH32(esp, edx); /* 0x3601EB63: push edx */ 1109 RECOMP_ICALL(0x360052C0u); /* 0x3601EB64: call 0x360052c0 */ /* not lifted */ 1110 RECOMP_FLAGS_IN(); 1111 edx = MEM32(ebp + (-0x4)); /* 0x3601EB69: mov edx, dword ptr [ebp - 4] */ 1112 eax = MEM32(ebp + (-0x8)); /* 0x3601EB6C: mov eax, dword ptr [ebp - 8] */ 1113 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(8); 1114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1115 edx = edx + 8; /* 0x3601EB6F: add edx, 8 */ 1116 _flag_k = FK_ADD; 1117 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 1118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1119 esi = esi + 8; /* 0x3601EB72: add esi, 8 */ 1120 _flag_k = FK_ADD; 1121 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1122 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1123 esp = esp + 8; /* 0x3601EB75: add esp, 8 */ 1124 _flag_k = FK_ADD; 1125 /* cmp esi, eax */ /* 0x3601EB78: cmp esi, eax */ 1126 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 1127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1128 _flag_k = FK_CMP; 1129 MEM32(ebp + (-0x4)) = edx; /* 0x3601EB7A: mov dword ptr [ebp - 4], edx */ 1130 RECOMP_BACKEDGE(); 1131 if (CMP_NE(_flag_a, _flag_b)) goto L_3601EB5F; /* 0x3601EB7D: jne 0x3601eb5f */ 1132 L_3601EB7F: 1133 RECOMP_BACKEDGE(); 1134 goto L_3601EAB8; /* 0x3601EB7F: jmp 0x3601eab8 */ 1135 L_3601EB84: 1136 ecx = MEM32(ebx + 0x8); /* 0x3601EB84: mov ecx, dword ptr [ebx + 8] */ 1137 PUSH32(esp, ecx); /* 0x3601EB87: push ecx */ 1138 PUSH32(esp, eax); /* 0x3601EB88: push eax */ 1139 ecx = ebx; /* 0x3601EB89: mov ecx, ebx */ 1140 RECOMP_ICALL(0x36005250u); /* 0x3601EB8B: call 0x36005250 */ /* not lifted */ 1141 RECOMP_FLAGS_IN(); 1142 edx = MEM32(ebx + 0x4); /* 0x3601EB90: mov edx, dword ptr [ebx + 4] */ 1143 PUSH32(esp, edx); /* 0x3601EB93: push edx */ 1144 RECOMP_ICALL(0x3615FCC4u); /* 0x3601EB94: call 0x3615fcc4 */ /* not lifted */ 1145 RECOMP_FLAGS_IN(); 1146 eax = MEM32(ebp + 0x8); /* 0x3601EB99: mov eax, dword ptr [ebp + 8] */ 1147 ecx = MEM32(eax + 0x8); /* 0x3601EB9C: mov ecx, dword ptr [eax + 8] */ 1148 esi = eax + 0x4; /* 0x3601EB9F: lea esi, [eax + 4] */ 1149 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1150 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1151 esp = esp + 4; /* 0x3601EBA2: add esp, 4 */ 1152 _flag_k = FK_ADD; 1153 /* test ecx, ecx */ /* 0x3601EBA5: test ecx, ecx */ 1154 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1155 _cf = 0; 1156 _flag_k = FK_TEST; 1157 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EBAD; /* 0x3601EBA7: jne 0x3601ebad */ 1158 L_3601EBA9: 1159 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1160 eax = 0; /* 0x3601EBA9: xor eax, eax */ 1161 _cf = 0; 1162 _flag_k = FK_TEST; 1163 goto L_3601EBB5; /* 0x3601EBAB: jmp 0x3601ebb5 */ 1164 L_3601EBAD: 1165 eax = MEM32(esi + 0x8); /* 0x3601EBAD: mov eax, dword ptr [esi + 8] */ 1166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1168 eax = eax - ecx; /* 0x3601EBB0: sub eax, ecx */ 1169 _flag_k = FK_CMP; 1170 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3601EBB2: sar eax, 3 */ 1171 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1172 eax = (uint32_t)((int32_t)eax >> 3u); 1173 L_3601EBB5: 1174 /* test eax, eax */ /* 0x3601EBB5: test eax, eax */ 1175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1176 _cf = 0; 1177 _flag_k = FK_TEST; 1178 if (TEST_NS(_flag_a, _flag_b)) goto L_3601EBBB; /* 0x3601EBB7: jge 0x3601ebbb */ 1179 L_3601EBB9: 1180 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1181 eax = 0; /* 0x3601EBB9: xor eax, eax */ 1182 _cf = 0; 1183 _flag_k = FK_TEST; 1184 L_3601EBBB: 1185 ecx = eax * 8; /* 0x3601EBBB: lea ecx, [eax*8] */ 1186 PUSH32(esp, ecx); /* 0x3601EBC2: push ecx */ 1187 RECOMP_ICALL(0x3615FD6Au); /* 0x3601EBC3: call 0x3615fd6a */ /* not lifted */ 1188 RECOMP_FLAGS_IN(); 1189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1190 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1191 esp = esp + 4; /* 0x3601EBC8: add esp, 4 */ 1192 _flag_k = FK_ADD; 1193 MEM32(ebx + 0x4) = eax; /* 0x3601EBCB: mov dword ptr [ebx + 4], eax */ 1194 ecx = MEM32(esi + 0x8); /* 0x3601EBCE: mov ecx, dword ptr [esi + 8] */ 1195 esi = MEM32(esi + 0x4); /* 0x3601EBD1: mov esi, dword ptr [esi + 4] */ 1196 PUSH32(esp, eax); /* 0x3601EBD4: push eax */ 1197 PUSH32(esp, ecx); /* 0x3601EBD5: push ecx */ 1198 PUSH32(esp, esi); /* 0x3601EBD6: push esi */ 1199 ecx = ebx; /* 0x3601EBD7: mov ecx, ebx */ 1200 RECOMP_ICALL(0x36005280u); /* 0x3601EBD9: call 0x36005280 */ /* not lifted */ 1201 RECOMP_FLAGS_IN(); 1202 MEM32(ebx + 0x8) = eax; /* 0x3601EBDE: mov dword ptr [ebx + 8], eax */ 1203 MEM32(ebx + 0xC) = eax; /* 0x3601EBE1: mov dword ptr [ebx + 0xc], eax */ 1204 L_3601EBE4: 1205 ecx = MEM32(ebp + 0x8); /* 0x3601EBE4: mov ecx, dword ptr [ebp + 8] */ 1206 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3601EBE7: mov dl, byte ptr [ecx + 0x14] */ 1207 eax = MEM32(ebp + (-0xC)); /* 0x3601EBEA: mov eax, dword ptr [ebp - 0xc] */ 1208 MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x3601EBED: mov byte ptr [eax + 0x14], dl */ 1209 edx = MEM32(ecx + 0x18); /* 0x3601EBF0: mov edx, dword ptr [ecx + 0x18] */ 1210 MEM32(eax + 0x18) = edx; /* 0x3601EBF3: mov dword ptr [eax + 0x18], edx */ 1211 edx = MEM32(ecx + 0x1C); /* 0x3601EBF6: mov edx, dword ptr [ecx + 0x1c] */ 1212 edi = POP32_VAL(esp); /* 0x3601EBF9: pop edi */ 1213 MEM32(eax + 0x1C) = edx; /* 0x3601EBFA: mov dword ptr [eax + 0x1c], edx */ 1214 ecx = MEM32(ecx + 0x20); /* 0x3601EBFD: mov ecx, dword ptr [ecx + 0x20] */ 1215 esi = POP32_VAL(esp); /* 0x3601EC00: pop esi */ 1216 MEM32(eax + 0x20) = ecx; /* 0x3601EC01: mov dword ptr [eax + 0x20], ecx */ 1217 ebx = POP32_VAL(esp); /* 0x3601EC04: pop ebx */ 1218 esp = ebp; /* 0x3601EC05: mov esp, ebp */ 1219 ebp = POP32_VAL(esp); /* 0x3601EC07: pop ebp */ 1220 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EC08: ret 4 */ 1221 RECOMP_REGS_OUT(); 1222 } 1223 1224 void sub_3601EAB8(void) { 1225 int _fpu_cmp = 0; 1226 uint32_t _cf = 0; 1227 int _df = 1; 1228 uint32_t _flag_k = FK_NONE; 1229 uint32_t _flag_a = 0, _flag_b = 0; 1230 uint32_t _itail_tgt = 0; 1231 RECOMP_REGS_LOCALS 1232 RECOMP_ENTER(0x3601EAB8u); 1233 1234 L_3601EAB8: 1235 eax = MEM32(ebp + 0x8); /* 0x3601EAB8: mov eax, dword ptr [ebp + 8] */ 1236 ecx = MEM32(eax + 0x8); /* 0x3601EABB: mov ecx, dword ptr [eax + 8] */ 1237 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1239 eax = eax + 4; /* 0x3601EABE: add eax, 4 */ 1240 _flag_k = FK_ADD; 1241 /* test ecx, ecx */ /* 0x3601EAC1: test ecx, ecx */ 1242 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1243 _cf = 0; 1244 _flag_k = FK_TEST; 1245 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601EAD5; /* 0x3601EAC3: jne 0x3601ead5 */ 1246 L_3601EAC5: 1247 ecx = MEM32(ebx + 0x4); /* 0x3601EAC5: mov ecx, dword ptr [ebx + 4] */ 1248 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1249 eax = 0; /* 0x3601EAC8: xor eax, eax */ 1250 _cf = 0; 1251 _flag_k = FK_TEST; 1252 edx = ecx + eax * 8; /* 0x3601EACA: lea edx, [ecx + eax*8] */ 1253 MEM32(ebx + 0x8) = edx; /* 0x3601EACD: mov dword ptr [ebx + 8], edx */ 1254 goto L_3601EBE4; /* 0x3601EAD0: jmp 0x3601ebe4 */ 1255 L_3601EAD5: 1256 eax = MEM32(eax + 0x8); /* 0x3601EAD5: mov eax, dword ptr [eax + 8] */ 1257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1259 eax = eax - ecx; /* 0x3601EAD8: sub eax, ecx */ 1260 _flag_k = FK_CMP; 1261 ecx = MEM32(ebx + 0x4); /* 0x3601EADA: mov ecx, dword ptr [ebx + 4] */ 1262 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3601EADD: sar eax, 3 */ 1263 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1264 eax = (uint32_t)((int32_t)eax >> 3u); 1265 edx = ecx + eax * 8; /* 0x3601EAE0: lea edx, [ecx + eax*8] */ 1266 MEM32(ebx + 0x8) = edx; /* 0x3601EAE3: mov dword ptr [ebx + 8], edx */ 1267 goto L_3601EBE4; /* 0x3601EAE6: jmp 0x3601ebe4 */ 1268 L_3601EBE4: 1269 ecx = MEM32(ebp + 0x8); /* 0x3601EBE4: mov ecx, dword ptr [ebp + 8] */ 1270 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3601EBE7: mov dl, byte ptr [ecx + 0x14] */ 1271 eax = MEM32(ebp + (-0xC)); /* 0x3601EBEA: mov eax, dword ptr [ebp - 0xc] */ 1272 MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x3601EBED: mov byte ptr [eax + 0x14], dl */ 1273 edx = MEM32(ecx + 0x18); /* 0x3601EBF0: mov edx, dword ptr [ecx + 0x18] */ 1274 MEM32(eax + 0x18) = edx; /* 0x3601EBF3: mov dword ptr [eax + 0x18], edx */ 1275 edx = MEM32(ecx + 0x1C); /* 0x3601EBF6: mov edx, dword ptr [ecx + 0x1c] */ 1276 edi = POP32_VAL(esp); /* 0x3601EBF9: pop edi */ 1277 MEM32(eax + 0x1C) = edx; /* 0x3601EBFA: mov dword ptr [eax + 0x1c], edx */ 1278 ecx = MEM32(ecx + 0x20); /* 0x3601EBFD: mov ecx, dword ptr [ecx + 0x20] */ 1279 esi = POP32_VAL(esp); /* 0x3601EC00: pop esi */ 1280 MEM32(eax + 0x20) = ecx; /* 0x3601EC01: mov dword ptr [eax + 0x20], ecx */ 1281 ebx = POP32_VAL(esp); /* 0x3601EC04: pop ebx */ 1282 esp = ebp; /* 0x3601EC05: mov esp, ebp */ 1283 ebp = POP32_VAL(esp); /* 0x3601EC07: pop ebp */ 1284 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EC08: ret 4 */ 1285 RECOMP_REGS_OUT(); 1286 } 1287 1288 void sub_3601EBE4(void) { 1289 int _fpu_cmp = 0; 1290 uint32_t _cf = 0; 1291 int _df = 1; 1292 uint32_t _flag_k = FK_NONE; 1293 uint32_t _flag_a = 0, _flag_b = 0; 1294 uint32_t _itail_tgt = 0; 1295 RECOMP_REGS_LOCALS 1296 RECOMP_ENTER(0x3601EBE4u); 1297 1298 L_3601EBE4: 1299 ecx = MEM32(ebp + 0x8); /* 0x3601EBE4: mov ecx, dword ptr [ebp + 8] */ 1300 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x3601EBE7: mov dl, byte ptr [ecx + 0x14] */ 1301 eax = MEM32(ebp + (-0xC)); /* 0x3601EBEA: mov eax, dword ptr [ebp - 0xc] */ 1302 MEM8(eax + 0x14) = (uint8_t)(LO8(edx)); /* 0x3601EBED: mov byte ptr [eax + 0x14], dl */ 1303 edx = MEM32(ecx + 0x18); /* 0x3601EBF0: mov edx, dword ptr [ecx + 0x18] */ 1304 MEM32(eax + 0x18) = edx; /* 0x3601EBF3: mov dword ptr [eax + 0x18], edx */ 1305 edx = MEM32(ecx + 0x1C); /* 0x3601EBF6: mov edx, dword ptr [ecx + 0x1c] */ 1306 edi = POP32_VAL(esp); /* 0x3601EBF9: pop edi */ 1307 MEM32(eax + 0x1C) = edx; /* 0x3601EBFA: mov dword ptr [eax + 0x1c], edx */ 1308 ecx = MEM32(ecx + 0x20); /* 0x3601EBFD: mov ecx, dword ptr [ecx + 0x20] */ 1309 esi = POP32_VAL(esp); /* 0x3601EC00: pop esi */ 1310 MEM32(eax + 0x20) = ecx; /* 0x3601EC01: mov dword ptr [eax + 0x20], ecx */ 1311 ebx = POP32_VAL(esp); /* 0x3601EC04: pop ebx */ 1312 esp = ebp; /* 0x3601EC05: mov esp, ebp */ 1313 ebp = POP32_VAL(esp); /* 0x3601EC07: pop ebp */ 1314 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EC08: ret 4 */ 1315 RECOMP_REGS_OUT(); 1316 } 1317 1318 void sub_3601EC10(void) { 1319 int _fpu_cmp = 0; 1320 uint32_t _cf = 0; 1321 int _df = 1; 1322 uint32_t _flag_k = FK_NONE; 1323 uint32_t _flag_a = 0, _flag_b = 0; 1324 uint32_t _itail_tgt = 0; 1325 RECOMP_REGS_LOCALS 1326 RECOMP_ENTER(0x3601EC10u); 1327 1328 L_3601EC10: 1329 PUSH32(esp, ebp); /* 0x3601EC10: push ebp */ 1330 ebp = esp; /* 0x3601EC11: mov ebp, esp */ 1331 PUSH32(esp, ebx); /* 0x3601EC13: push ebx */ 1332 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3601EC14: mov bl, byte ptr [ebp + 8] */ 1333 /* test LO8(ebx), 2 */ /* 0x3601EC17: test bl, 2 */ 1334 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1335 _cf = 0; 1336 _flag_k = FK_NARROW(FK_TEST, 24); 1337 PUSH32(esp, esi); /* 0x3601EC1A: push esi */ 1338 esi = ecx; /* 0x3601EC1B: mov esi, ecx */ 1339 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EC4B; /* 0x3601EC1D: je 0x3601ec4b */ 1340 L_3601EC1F: 1341 eax = MEM32(esi + (-0x4)); /* 0x3601EC1F: mov eax, dword ptr [esi - 4] */ 1342 PUSH32(esp, edi); /* 0x3601EC22: push edi */ 1343 PUSH32(esp, 0x36040960u); /* 0x3601EC23: push 0x36040960 */ 1344 edi = esi + (-0x4); /* 0x3601EC28: lea edi, [esi - 4] */ 1345 PUSH32(esp, eax); /* 0x3601EC2B: push eax */ 1346 PUSH32(esp, 0x24u); /* 0x3601EC2C: push 0x24 */ 1347 PUSH32(esp, esi); /* 0x3601EC2E: push esi */ 1348 RECOMP_ICALL(0x3615FD92u); /* 0x3601EC2F: call 0x3615fd92 */ /* not lifted */ 1349 RECOMP_FLAGS_IN(); 1350 /* test LO8(ebx), 1 */ /* 0x3601EC34: test bl, 1 */ 1351 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1352 _cf = 0; 1353 _flag_k = FK_NARROW(FK_TEST, 24); 1354 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EC42; /* 0x3601EC37: je 0x3601ec42 */ 1355 L_3601EC39: 1356 PUSH32(esp, edi); /* 0x3601EC39: push edi */ 1357 RECOMP_ICALL(0x3615FCC4u); /* 0x3601EC3A: call 0x3615fcc4 */ /* not lifted */ 1358 RECOMP_FLAGS_IN(); 1359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1361 esp = esp + 4; /* 0x3601EC3F: add esp, 4 */ 1362 _flag_k = FK_ADD; 1363 L_3601EC42: 1364 eax = edi; /* 0x3601EC42: mov eax, edi */ 1365 edi = POP32_VAL(esp); /* 0x3601EC44: pop edi */ 1366 esi = POP32_VAL(esp); /* 0x3601EC45: pop esi */ 1367 ebx = POP32_VAL(esp); /* 0x3601EC46: pop ebx */ 1368 ebp = POP32_VAL(esp); /* 0x3601EC47: pop ebp */ 1369 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EC48: ret 4 */ 1370 L_3601EC4B: 1371 ecx = esi; /* 0x3601EC4B: mov ecx, esi */ 1372 RECOMP_ICALL(0x36040960u); /* 0x3601EC4D: call 0x36040960 */ /* not lifted */ 1373 RECOMP_FLAGS_IN(); 1374 /* test LO8(ebx), 1 */ /* 0x3601EC52: test bl, 1 */ 1375 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1376 _cf = 0; 1377 _flag_k = FK_NARROW(FK_TEST, 24); 1378 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EC60; /* 0x3601EC55: je 0x3601ec60 */ 1379 L_3601EC57: 1380 PUSH32(esp, esi); /* 0x3601EC57: push esi */ 1381 RECOMP_ICALL(0x3615FCC4u); /* 0x3601EC58: call 0x3615fcc4 */ /* not lifted */ 1382 RECOMP_FLAGS_IN(); 1383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1385 esp = esp + 4; /* 0x3601EC5D: add esp, 4 */ 1386 _flag_k = FK_ADD; 1387 L_3601EC60: 1388 eax = esi; /* 0x3601EC60: mov eax, esi */ 1389 esi = POP32_VAL(esp); /* 0x3601EC62: pop esi */ 1390 ebx = POP32_VAL(esp); /* 0x3601EC63: pop ebx */ 1391 ebp = POP32_VAL(esp); /* 0x3601EC64: pop ebp */ 1392 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EC65: ret 4 */ 1393 RECOMP_REGS_OUT(); 1394 } 1395 1396 void sub_3601EC70(void) { 1397 int _fpu_cmp = 0; 1398 uint32_t _cf = 0; 1399 int _df = 1; 1400 uint32_t _flag_k = FK_NONE; 1401 uint32_t _flag_a = 0, _flag_b = 0; 1402 uint32_t _itail_tgt = 0; 1403 RECOMP_REGS_LOCALS 1404 RECOMP_ENTER(0x3601EC70u); 1405 1406 L_3601EC70: 1407 eax = ecx; /* 0x3601EC70: mov eax, ecx */ 1408 MEM32(eax) = 0x36170758u; /* 0x3601EC72: mov dword ptr [eax], 0x36170758 */ 1409 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601EC78: ret */ 1410 RECOMP_REGS_OUT(); 1411 } 1412 1413 void sub_3601EC80(void) { 1414 int _fpu_cmp = 0; 1415 uint32_t _cf = 0; 1416 int _df = 1; 1417 uint32_t _flag_k = FK_NONE; 1418 uint32_t _flag_a = 0, _flag_b = 0; 1419 uint32_t _itail_tgt = 0; 1420 RECOMP_REGS_LOCALS 1421 RECOMP_ENTER(0x3601EC80u); 1422 1423 L_3601EC80: 1424 eax = ecx; /* 0x3601EC80: mov eax, ecx */ 1425 MEM32(eax) = 0x36170758u; /* 0x3601EC82: mov dword ptr [eax], 0x36170758 */ 1426 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EC88: ret 4 */ 1427 RECOMP_REGS_OUT(); 1428 } 1429 1430 void sub_3601EC90(void) { 1431 int _fpu_cmp = 0; 1432 uint32_t _cf = 0; 1433 int _df = 1; 1434 uint32_t _flag_k = FK_NONE; 1435 uint32_t _flag_a = 0, _flag_b = 0; 1436 uint32_t _itail_tgt = 0; 1437 RECOMP_REGS_LOCALS 1438 RECOMP_ENTER(0x3601EC90u); 1439 1440 L_3601EC90: 1441 eax = ecx; /* 0x3601EC90: mov eax, ecx */ 1442 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EC92: ret 4 */ 1443 RECOMP_REGS_OUT(); 1444 } 1445 1446 void sub_3601ECA0(void) { 1447 int _fpu_cmp = 0; 1448 uint32_t _cf = 0; 1449 int _df = 1; 1450 uint32_t _flag_k = FK_NONE; 1451 uint32_t _flag_a = 0, _flag_b = 0; 1452 uint32_t _itail_tgt = 0; 1453 RECOMP_REGS_LOCALS 1454 RECOMP_ENTER(0x3601ECA0u); 1455 1456 L_3601ECA0: 1457 goto L_3601ECB0; /* 0x3601ECA0: jmp 0x3601ecb0 */ 1458 L_3601ECB0: 1459 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1460 eax = 0; /* 0x3601ECB0: xor eax, eax */ 1461 _cf = 0; 1462 _flag_k = FK_TEST; 1463 MEM32(0x36305AE0) = eax; /* 0x3601ECB2: mov dword ptr [0x36305ae0], eax */ 1464 MEM32(0x36305AE4) = eax; /* 0x3601ECB7: mov dword ptr [0x36305ae4], eax */ 1465 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601ECBC: ret */ 1466 RECOMP_REGS_OUT(); 1467 } 1468 1469 void sub_3601ECB0(void) { 1470 int _fpu_cmp = 0; 1471 uint32_t _cf = 0; 1472 int _df = 1; 1473 uint32_t _flag_k = FK_NONE; 1474 uint32_t _flag_a = 0, _flag_b = 0; 1475 uint32_t _itail_tgt = 0; 1476 RECOMP_REGS_LOCALS 1477 RECOMP_ENTER(0x3601ECB0u); 1478 1479 L_3601ECB0: 1480 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1481 eax = 0; /* 0x3601ECB0: xor eax, eax */ 1482 _cf = 0; 1483 _flag_k = FK_TEST; 1484 MEM32(0x36305AE0) = eax; /* 0x3601ECB2: mov dword ptr [0x36305ae0], eax */ 1485 MEM32(0x36305AE4) = eax; /* 0x3601ECB7: mov dword ptr [0x36305ae4], eax */ 1486 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601ECBC: ret */ 1487 RECOMP_REGS_OUT(); 1488 } 1489 1490 void sub_3601ECC0(void) { 1491 int _fpu_cmp = 0; 1492 uint32_t _cf = 0; 1493 int _df = 1; 1494 uint32_t _flag_k = FK_NONE; 1495 uint32_t _flag_a = 0, _flag_b = 0; 1496 uint32_t _itail_tgt = 0; 1497 RECOMP_REGS_LOCALS 1498 RECOMP_ENTER(0x3601ECC0u); 1499 1500 L_3601ECC0: 1501 PUSH32(esp, ebp); /* 0x3601ECC0: push ebp */ 1502 ebp = esp; /* 0x3601ECC1: mov ebp, esp */ 1503 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601ECC3: push -1 */ 1504 PUSH32(esp, 0x36162F11u); /* 0x3601ECC5: push 0x36162f11 */ 1505 eax = MEM32(FS_BASE + (0)); /* 0x3601ECCA: mov eax, dword ptr fs:[0] */ 1506 PUSH32(esp, eax); /* 0x3601ECD0: push eax */ 1507 MEM32(FS_BASE + (0)) = esp; /* 0x3601ECD1: mov dword ptr fs:[0], esp */ 1508 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x8Cu); 1509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1510 esp = esp - 0x8Cu; /* 0x3601ECD8: sub esp, 0x8c */ 1511 _flag_k = FK_CMP; 1512 PUSH32(esp, ebx); /* 0x3601ECDE: push ebx */ 1513 ebx = ecx; /* 0x3601ECDF: mov ebx, ecx */ 1514 PUSH32(esp, esi); /* 0x3601ECE1: push esi */ 1515 MEM32(ebp + (-0x18)) = ebx; /* 0x3601ECE2: mov dword ptr [ebp - 0x18], ebx */ 1516 RECOMP_ICALL(MEM32(0x36170020)); /* 0x3601ECE5: call dword ptr [0x36170020] */ 1517 RECOMP_FLAGS_IN(); 1518 SET_LO8(eax, MEM8(ebp + (-0x11))); /* 0x3601ECEB: mov al, byte ptr [ebp - 0x11] */ 1519 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1520 esi = 0; /* 0x3601ECEE: xor esi, esi */ 1521 _cf = 0; 1522 _flag_k = FK_TEST; 1523 MEM8(ebx + 0xB4) = (uint8_t)(LO8(eax)); /* 0x3601ECF0: mov byte ptr [ebx + 0xb4], al */ 1524 MEM32(ebx + 0xB8) = esi; /* 0x3601ECF6: mov dword ptr [ebx + 0xb8], esi */ 1525 MEM32(ebx + 0xBC) = esi; /* 0x3601ECFC: mov dword ptr [ebx + 0xbc], esi */ 1526 MEM32(ebx + 0xC0) = esi; /* 0x3601ED02: mov dword ptr [ebx + 0xc0], esi */ 1527 MEM32(ebp + (-0x4)) = esi; /* 0x3601ED08: mov dword ptr [ebp - 4], esi */ 1528 MEM32(ebx + 0xB0) = 0x361707DCu; /* 0x3601ED0B: mov dword ptr [ebx + 0xb0], 0x361707dc */ 1529 ecx = ebx + 0xC4; /* 0x3601ED15: lea ecx, [ebx + 0xc4] */ 1530 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3601ED1B: mov byte ptr [ebp - 4], 1 */ 1531 RECOMP_ICALL(0x3615B920u); /* 0x3601ED1F: call 0x3615b920 */ /* not lifted */ 1532 RECOMP_FLAGS_IN(); 1533 PUSH32(esp, esi); /* 0x3601ED24: push esi */ 1534 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3601ED25: mov byte ptr [ebp - 4], 2 */ 1535 MEM8(ebx + 0xEC) = (uint8_t)(1); /* 0x3601ED29: mov byte ptr [ebx + 0xec], 1 */ 1536 MEM32(ebx + 0xF8) = esi; /* 0x3601ED30: mov dword ptr [ebx + 0xf8], esi */ 1537 MEM32(ebx + 0x100) = esi; /* 0x3601ED36: mov dword ptr [ebx + 0x100], esi */ 1538 MEM32(ebx + 0x104) = esi; /* 0x3601ED3C: mov dword ptr [ebx + 0x104], esi */ 1539 MEM32(ebx + 0x108) = esi; /* 0x3601ED42: mov dword ptr [ebx + 0x108], esi */ 1540 MEM32(ebx + 0x10C) = esi; /* 0x3601ED48: mov dword ptr [ebx + 0x10c], esi */ 1541 MEM32(ebx + 0x110) = esi; /* 0x3601ED4E: mov dword ptr [ebx + 0x110], esi */ 1542 MEM32(ebx + 0x114) = esi; /* 0x3601ED54: mov dword ptr [ebx + 0x114], esi */ 1543 MEM32(ebx + 0x118) = 0xAu; /* 0x3601ED5A: mov dword ptr [ebx + 0x118], 0xa */ 1544 MEM32(ebx) = 0x36170760u; /* 0x3601ED64: mov dword ptr [ebx], 0x36170760 */ 1545 MEM32(ebx + 0xD0) = esi; /* 0x3601ED6A: mov dword ptr [ebx + 0xd0], esi */ 1546 MEM32(ebx + 0xD4) = esi; /* 0x3601ED70: mov dword ptr [ebx + 0xd4], esi */ 1547 MEM32(ebx + 0xD8) = esi; /* 0x3601ED76: mov dword ptr [ebx + 0xd8], esi */ 1548 MEM32(ebx + 0xDC) = esi; /* 0x3601ED7C: mov dword ptr [ebx + 0xdc], esi */ 1549 RECOMP_ICALL(MEM32(0x3616F190)); /* 0x3601ED82: call dword ptr [0x3616f190] */ 1550 RECOMP_FLAGS_IN(); 1551 PUSH32(esp, 4); /* 0x3601ED88: push 4 */ 1552 MEM32(ebx + 0xE0) = eax; /* 0x3601ED8A: mov dword ptr [ebx + 0xe0], eax */ 1553 RECOMP_ICALL(0x3615FD6Au); /* 0x3601ED90: call 0x3615fd6a */ /* not lifted */ 1554 RECOMP_FLAGS_IN(); 1555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1557 esp = esp + 8; /* 0x3601ED95: add esp, 8 */ 1558 _flag_k = FK_ADD; 1559 MEM32(ebp + (-0x10)) = eax; /* 0x3601ED98: mov dword ptr [ebp - 0x10], eax */ 1560 /* cmp eax, esi */ /* 0x3601ED9B: cmp eax, esi */ 1561 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 1562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1563 _flag_k = FK_CMP; 1564 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3601ED9D: mov byte ptr [ebp - 4], 3 */ 1565 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EDAD; /* 0x3601EDA1: je 0x3601edad */ 1566 L_3601EDA3: 1567 PUSH32(esp, ebx); /* 0x3601EDA3: push ebx */ 1568 ecx = eax; /* 0x3601EDA4: mov ecx, eax */ 1569 RECOMP_ICALL(0x36003C10u); /* 0x3601EDA6: call 0x36003c10 */ /* not lifted */ 1570 RECOMP_FLAGS_IN(); 1571 goto L_3601EDAF; /* 0x3601EDAB: jmp 0x3601edaf */ 1572 L_3601EDAD: 1573 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1574 eax = 0; /* 0x3601EDAD: xor eax, eax */ 1575 _cf = 0; 1576 _flag_k = FK_TEST; 1577 L_3601EDAF: 1578 PUSH32(esp, edi); /* 0x3601EDAF: push edi */ 1579 ecx = ebx; /* 0x3601EDB0: mov ecx, ebx */ 1580 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3601EDB2: mov byte ptr [ebp - 4], 2 */ 1581 MEM32(ebx + 0x94) = eax; /* 0x3601EDB6: mov dword ptr [ebx + 0x94], eax */ 1582 RECOMP_ICALL(0x360E2940u); /* 0x3601EDBC: call 0x360e2940 */ /* not lifted */ 1583 RECOMP_FLAGS_IN(); 1584 RECOMP_ICALL(0x3603D1A0u); /* 0x3601EDC1: call 0x3603d1a0 */ /* not lifted */ 1585 RECOMP_FLAGS_IN(); 1586 MEM8(ebp + (-0x98)) = (uint8_t)(0); /* 0x3601EDC6: mov byte ptr [ebp - 0x98], 0 */ 1587 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1588 eax = 0; /* 0x3601EDCD: xor eax, eax */ 1589 _cf = 0; 1590 _flag_k = FK_TEST; 1591 ecx = 0x1Fu; /* 0x3601EDCF: mov ecx, 0x1f */ 1592 edi = ebp + (-0x97); /* 0x3601EDD4: lea edi, [ebp - 0x97] */ 1593 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3601EDDA: rep stosd dword ptr es:[edi], eax */ if (_df > 0) { MEMSET32((void*)ADDR(edi), eax, _n); edi += _b; } else { MEMSET32((void*)ADDR(edi - _b + 4u), eax, _n); edi -= _b; } ecx = 0; } 1594 MEM16(edi) = (uint16_t)LO16(eax); edi += _df * 2; /* 0x3601EDDC: stosw word ptr es:[edi], ax */ 1595 MEM8(edi) = LO8(eax); edi += _df; /* 0x3601EDDE: stosb byte ptr es:[edi], al */ 1596 RECOMP_ICALL(MEM32(0x3616FA10)); /* 0x3601EDDF: call dword ptr [0x3616fa10] */ 1597 RECOMP_FLAGS_IN(); 1598 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1599 ecx = ecx | 0xFFFFFFFFu; /* 0x3601EDE5: or ecx, 0xffffffff */ 1600 _cf = 0; 1601 _flag_k = FK_TEST; 1602 edi = eax; /* 0x3601EDE8: mov edi, eax */ 1603 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1604 eax = 0; /* 0x3601EDEA: xor eax, eax */ 1605 _cf = 0; 1606 _flag_k = FK_TEST; 1607 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; } /* 0x3601EDEC: repne scasb al, byte ptr es:[edi] */ 1608 ecx = ~ecx; /* 0x3601EDEE: not ecx */ 1609 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1611 edi = edi - ecx; /* 0x3601EDF0: sub edi, ecx */ 1612 _flag_k = FK_CMP; 1613 eax = ecx; /* 0x3601EDF2: mov eax, ecx */ 1614 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3601EDF4: shr ecx, 2 */ 1615 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1616 ecx = ecx >> 2u; /* 0x3601EDF4: shr ecx, 2 */ 1617 esi = edi; /* 0x3601EDF7: mov esi, edi */ 1618 edx = ebp + (-0x98); /* 0x3601EDF9: lea edx, [ebp - 0x98] */ 1619 edi = edx; /* 0x3601EDFF: mov edi, edx */ 1620 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3601EE01: 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; } 1621 ecx = eax; /* 0x3601EE03: mov ecx, eax */ 1622 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1623 ecx = ecx & 3; /* 0x3601EE05: and ecx, 3 */ 1624 _cf = 0; 1625 _flag_k = FK_TEST; 1626 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3601EE08: 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; } 1627 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1628 ecx = ecx | 0xFFFFFFFFu; /* 0x3601EE0A: or ecx, 0xffffffff */ 1629 _cf = 0; 1630 _flag_k = FK_TEST; 1631 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1632 eax = 0; /* 0x3601EE0D: xor eax, eax */ 1633 _cf = 0; 1634 _flag_k = FK_TEST; 1635 edi = 0x361B5A70u; /* 0x3601EE0F: mov edi, 0x361b5a70 */ 1636 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; } /* 0x3601EE14: repne scasb al, byte ptr es:[edi] */ 1637 ecx = ~ecx; /* 0x3601EE16: not ecx */ 1638 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1640 edi = edi - ecx; /* 0x3601EE18: sub edi, ecx */ 1641 _flag_k = FK_CMP; 1642 esi = edi; /* 0x3601EE1A: mov esi, edi */ 1643 edx = ebp + (-0x98); /* 0x3601EE1C: lea edx, [ebp - 0x98] */ 1644 edi = edx; /* 0x3601EE22: mov edi, edx */ 1645 edx = ecx; /* 0x3601EE24: mov edx, ecx */ 1646 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 1647 ecx = ecx | 0xFFFFFFFFu; /* 0x3601EE26: or ecx, 0xffffffff */ 1648 _cf = 0; 1649 _flag_k = FK_TEST; 1650 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; } /* 0x3601EE29: repne scasb al, byte ptr es:[edi] */ 1651 ecx = edx; /* 0x3601EE2B: mov ecx, edx */ 1652 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3601EE2D: shr ecx, 2 */ 1653 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1654 ecx = ecx >> 2u; /* 0x3601EE2D: shr ecx, 2 */ 1655 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 1656 edi = edi - 1; /* 0x3601EE30: dec edi */ 1657 _flag_k = FK_DEC; 1658 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3601EE31: 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; } 1659 ecx = edx; /* 0x3601EE33: mov ecx, edx */ 1660 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 1661 ecx = ecx & 3; /* 0x3601EE35: and ecx, 3 */ 1662 _cf = 0; 1663 _flag_k = FK_TEST; 1664 PUSH32(esp, 0x24u); /* 0x3601EE38: push 0x24 */ 1665 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3601EE3A: 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; } 1666 RECOMP_ICALL(0x3615FD6Au); /* 0x3601EE3C: call 0x3615fd6a */ /* not lifted */ 1667 RECOMP_FLAGS_IN(); 1668 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1670 esp = esp + 4; /* 0x3601EE41: add esp, 4 */ 1671 _flag_k = FK_ADD; 1672 MEM32(ebp + (-0x10)) = eax; /* 0x3601EE44: mov dword ptr [ebp - 0x10], eax */ 1673 /* test eax, eax */ /* 0x3601EE47: test eax, eax */ 1674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1675 _cf = 0; 1676 _flag_k = FK_TEST; 1677 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3601EE49: mov byte ptr [ebp - 4], 4 */ 1678 edi = POP32_VAL(esp); /* 0x3601EE4D: pop edi */ 1679 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EE60; /* 0x3601EE4E: je 0x3601ee60 */ 1680 L_3601EE50: 1681 ecx = ebp + (-0x98); /* 0x3601EE50: lea ecx, [ebp - 0x98] */ 1682 PUSH32(esp, ecx); /* 0x3601EE56: push ecx */ 1683 ecx = eax; /* 0x3601EE57: mov ecx, eax */ 1684 RECOMP_ICALL(0x36001260u); /* 0x3601EE59: call 0x36001260 */ /* not lifted */ 1685 RECOMP_FLAGS_IN(); 1686 goto L_3601EE62; /* 0x3601EE5E: jmp 0x3601ee62 */ 1687 L_3601EE60: 1688 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1689 eax = 0; /* 0x3601EE60: xor eax, eax */ 1690 _cf = 0; 1691 _flag_k = FK_TEST; 1692 L_3601EE62: 1693 PUSH32(esp, 0xA0u); /* 0x3601EE62: push 0xa0 */ 1694 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3601EE67: mov byte ptr [ebp - 4], 2 */ 1695 MEM32(ebx + 0xE8) = eax; /* 0x3601EE6B: mov dword ptr [ebx + 0xe8], eax */ 1696 RECOMP_ICALL(0x3615FD6Au); /* 0x3601EE71: call 0x3615fd6a */ /* not lifted */ 1697 RECOMP_FLAGS_IN(); 1698 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1700 esp = esp + 4; /* 0x3601EE76: add esp, 4 */ 1701 _flag_k = FK_ADD; 1702 MEM32(ebp + (-0x10)) = eax; /* 0x3601EE79: mov dword ptr [ebp - 0x10], eax */ 1703 /* test eax, eax */ /* 0x3601EE7C: test eax, eax */ 1704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1705 _cf = 0; 1706 _flag_k = FK_TEST; 1707 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x3601EE7E: mov byte ptr [ebp - 4], 5 */ 1708 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EE97; /* 0x3601EE82: je 0x3601ee97 */ 1709 L_3601EE84: 1710 PUSH32(esp, 0x29Au); /* 0x3601EE84: push 0x29a */ 1711 PUSH32(esp, 0xDAC3u); /* 0x3601EE89: push 0xdac3 */ 1712 ecx = eax; /* 0x3601EE8E: mov ecx, eax */ 1713 RECOMP_ICALL(0x360C3F20u); /* 0x3601EE90: call 0x360c3f20 */ /* not lifted */ 1714 RECOMP_FLAGS_IN(); 1715 goto L_3601EE99; /* 0x3601EE95: jmp 0x3601ee99 */ 1716 L_3601EE97: 1717 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1718 eax = 0; /* 0x3601EE97: xor eax, eax */ 1719 _cf = 0; 1720 _flag_k = FK_TEST; 1721 L_3601EE99: 1722 PUSH32(esp, 0x40u); /* 0x3601EE99: push 0x40 */ 1723 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3601EE9B: mov byte ptr [ebp - 4], 2 */ 1724 MEM32(ebx + 0xF0) = eax; /* 0x3601EE9F: mov dword ptr [ebx + 0xf0], eax */ 1725 RECOMP_ICALL(0x3615FD6Au); /* 0x3601EEA5: call 0x3615fd6a */ /* not lifted */ 1726 RECOMP_FLAGS_IN(); 1727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1729 esp = esp + 4; /* 0x3601EEAA: add esp, 4 */ 1730 _flag_k = FK_ADD; 1731 MEM32(ebp + (-0x10)) = eax; /* 0x3601EEAD: mov dword ptr [ebp - 0x10], eax */ 1732 /* test eax, eax */ /* 0x3601EEB0: test eax, eax */ 1733 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1734 _cf = 0; 1735 _flag_k = FK_TEST; 1736 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x3601EEB2: mov byte ptr [ebp - 4], 6 */ 1737 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EECB; /* 0x3601EEB6: je 0x3601eecb */ 1738 L_3601EEB8: 1739 PUSH32(esp, 0x29Au); /* 0x3601EEB8: push 0x29a */ 1740 PUSH32(esp, 0xDAC4u); /* 0x3601EEBD: push 0xdac4 */ 1741 ecx = eax; /* 0x3601EEC2: mov ecx, eax */ 1742 RECOMP_ICALL(0x3609B730u); /* 0x3601EEC4: call 0x3609b730 */ /* not lifted */ 1743 RECOMP_FLAGS_IN(); 1744 goto L_3601EECD; /* 0x3601EEC9: jmp 0x3601eecd */ 1745 L_3601EECB: 1746 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1747 eax = 0; /* 0x3601EECB: xor eax, eax */ 1748 _cf = 0; 1749 _flag_k = FK_TEST; 1750 L_3601EECD: 1751 ecx = MEM32(ebp + (-0xC)); /* 0x3601EECD: mov ecx, dword ptr [ebp - 0xc] */ 1752 MEM32(ebx + 0xF4) = eax; /* 0x3601EED0: mov dword ptr [ebx + 0xf4], eax */ 1753 esi = POP32_VAL(esp); /* 0x3601EED6: pop esi */ 1754 eax = ebx; /* 0x3601EED7: mov eax, ebx */ 1755 ebx = POP32_VAL(esp); /* 0x3601EED9: pop ebx */ 1756 MEM32(FS_BASE + (0)) = ecx; /* 0x3601EEDA: mov dword ptr fs:[0], ecx */ 1757 esp = ebp; /* 0x3601EEE1: mov esp, ebp */ 1758 ebp = POP32_VAL(esp); /* 0x3601EEE3: pop ebp */ 1759 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601EEE4: ret */ 1760 RECOMP_REGS_OUT(); 1761 } 1762 1763 void sub_3601EEF0(void) { 1764 int _fpu_cmp = 0; 1765 uint32_t _cf = 0; 1766 int _df = 1; 1767 uint32_t _flag_k = FK_NONE; 1768 uint32_t _flag_a = 0, _flag_b = 0; 1769 uint32_t _itail_tgt = 0; 1770 RECOMP_REGS_LOCALS 1771 RECOMP_ENTER(0x3601EEF0u); 1772 1773 L_3601EEF0: 1774 PUSH32(esp, ebp); /* 0x3601EEF0: push ebp */ 1775 ebp = esp; /* 0x3601EEF1: mov ebp, esp */ 1776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1777 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1778 esp = esp - 8; /* 0x3601EEF3: sub esp, 8 */ 1779 _flag_k = FK_CMP; 1780 PUSH32(esp, ebx); /* 0x3601EEF6: push ebx */ 1781 PUSH32(esp, edi); /* 0x3601EEF7: push edi */ 1782 edi = ecx; /* 0x3601EEF8: mov edi, ecx */ 1783 MEM32(edi) = 0x361707DCu; /* 0x3601EEFA: mov dword ptr [edi], 0x361707dc */ 1784 eax = MEM32(edi + 0xC); /* 0x3601EF00: mov eax, dword ptr [edi + 0xc] */ 1785 ebx = MEM32(edi + 0x8); /* 0x3601EF03: mov ebx, dword ptr [edi + 8] */ 1786 /* cmp ebx, eax */ /* 0x3601EF06: cmp ebx, eax */ 1787 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1789 _flag_k = FK_CMP; 1790 MEM32(ebp + (-0x4)) = edi; /* 0x3601EF08: mov dword ptr [ebp - 4], edi */ 1791 MEM32(ebp + (-0x8)) = eax; /* 0x3601EF0B: mov dword ptr [ebp - 8], eax */ 1792 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EF77; /* 0x3601EF0E: je 0x3601ef77 */ 1793 L_3601EF10: 1794 PUSH32(esp, esi); /* 0x3601EF10: push esi */ 1795 esi = ebx + 0x10; /* 0x3601EF11: lea esi, [ebx + 0x10] */ 1796 L_3601EF14: 1797 eax = MEM32(esi); /* 0x3601EF14: mov eax, dword ptr [esi] */ 1798 /* test eax, eax */ /* 0x3601EF16: test eax, eax */ 1799 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1800 _cf = 0; 1801 _flag_k = FK_TEST; 1802 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EF5F; /* 0x3601EF18: je 0x3601ef5f */ 1803 L_3601EF1A: 1804 edi = esi + (-0x4); /* 0x3601EF1A: lea edi, [esi - 4] */ 1805 PUSH32(esp, eax); /* 0x3601EF1D: push eax */ 1806 ecx = edi; /* 0x3601EF1E: mov ecx, edi */ 1807 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3601EF20: call dword ptr [0x3616f158] */ 1808 RECOMP_FLAGS_IN(); 1809 /* cmp MEM8(eax), 0 */ /* 0x3601EF26: cmp byte ptr [eax], 0 */ 1810 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 1811 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1812 _flag_k = FK_NARROW(FK_CMP, 24); 1813 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EF4A; /* 0x3601EF29: je 0x3601ef4a */ 1814 L_3601EF2B: 1815 eax = MEM32(esi); /* 0x3601EF2B: mov eax, dword ptr [esi] */ 1816 PUSH32(esp, eax); /* 0x3601EF2D: push eax */ 1817 ecx = edi; /* 0x3601EF2E: mov ecx, edi */ 1818 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3601EF30: call dword ptr [0x3616f158] */ 1819 RECOMP_FLAGS_IN(); 1820 /* cmp MEM8(eax), 0xFFu */ /* 0x3601EF36: cmp byte ptr [eax], 0xff */ 1821 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 1822 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1823 _flag_k = FK_NARROW(FK_CMP, 24); 1824 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601EF4A; /* 0x3601EF39: je 0x3601ef4a */ 1825 L_3601EF3B: 1826 ecx = MEM32(esi); /* 0x3601EF3B: mov ecx, dword ptr [esi] */ 1827 PUSH32(esp, ecx); /* 0x3601EF3D: push ecx */ 1828 ecx = edi; /* 0x3601EF3E: mov ecx, edi */ 1829 RECOMP_ICALL(MEM32(0x3616F158)); /* 0x3601EF40: call dword ptr [0x3616f158] */ 1830 RECOMP_FLAGS_IN(); 1831 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 1832 MEM8(eax) = (uint8_t)(MEM8(eax) - 1); /* 0x3601EF46: dec byte ptr [eax] */ 1833 _flag_k = FK_NARROW(FK_DEC, 24); 1834 goto L_3601EF5C; /* 0x3601EF48: jmp 0x3601ef5c */ 1835 L_3601EF4A: 1836 edx = MEM32(esi + 0x8); /* 0x3601EF4A: mov edx, dword ptr [esi + 8] */ 1837 eax = MEM32(esi); /* 0x3601EF4D: mov eax, dword ptr [esi] */ 1838 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2); 1839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1840 edx = edx + 2; /* 0x3601EF4F: add edx, 2 */ 1841 _flag_k = FK_ADD; 1842 PUSH32(esp, edx); /* 0x3601EF52: push edx */ 1843 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1844 eax = eax - 1; /* 0x3601EF53: dec eax */ 1845 _flag_k = FK_DEC; 1846 PUSH32(esp, eax); /* 0x3601EF54: push eax */ 1847 ecx = edi; /* 0x3601EF55: mov ecx, edi */ 1848 RECOMP_ICALL(0x36029840u); /* 0x3601EF57: call 0x36029840 */ /* not lifted */ 1849 RECOMP_FLAGS_IN(); 1850 L_3601EF5C: 1851 edi = MEM32(ebp + (-0x4)); /* 0x3601EF5C: mov edi, dword ptr [ebp - 4] */ 1852 L_3601EF5F: 1853 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1854 eax = 0; /* 0x3601EF5F: xor eax, eax */ 1855 _cf = 0; 1856 _flag_k = FK_TEST; 1857 MEM32(esi) = eax; /* 0x3601EF61: mov dword ptr [esi], eax */ 1858 MEM32(esi + 0x4) = eax; /* 0x3601EF63: mov dword ptr [esi + 4], eax */ 1859 MEM32(esi + 0x8) = eax; /* 0x3601EF66: mov dword ptr [esi + 8], eax */ 1860 eax = MEM32(ebp + (-0x8)); /* 0x3601EF69: mov eax, dword ptr [ebp - 8] */ 1861 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 1862 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1863 ebx = ebx + 0x24u; /* 0x3601EF6C: add ebx, 0x24 */ 1864 _flag_k = FK_ADD; 1865 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 1866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1867 esi = esi + 0x24u; /* 0x3601EF6F: add esi, 0x24 */ 1868 _flag_k = FK_ADD; 1869 /* cmp ebx, eax */ /* 0x3601EF72: cmp ebx, eax */ 1870 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 1871 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1872 _flag_k = FK_CMP; 1873 RECOMP_BACKEDGE(); 1874 if (CMP_NE(_flag_a, _flag_b)) goto L_3601EF14; /* 0x3601EF74: jne 0x3601ef14 */ 1875 L_3601EF76: 1876 esi = POP32_VAL(esp); /* 0x3601EF76: pop esi */ 1877 L_3601EF77: 1878 ecx = MEM32(edi + 0x8); /* 0x3601EF77: mov ecx, dword ptr [edi + 8] */ 1879 PUSH32(esp, ecx); /* 0x3601EF7A: push ecx */ 1880 RECOMP_ICALL(0x3615FCC4u); /* 0x3601EF7B: call 0x3615fcc4 */ /* 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; /* 0x3601EF80: add esp, 4 */ 1885 _flag_k = FK_ADD; 1886 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1887 eax = 0; /* 0x3601EF83: xor eax, eax */ 1888 _cf = 0; 1889 _flag_k = FK_TEST; 1890 MEM32(edi + 0x8) = eax; /* 0x3601EF85: mov dword ptr [edi + 8], eax */ 1891 MEM32(edi + 0xC) = eax; /* 0x3601EF88: mov dword ptr [edi + 0xc], eax */ 1892 MEM32(edi + 0x10) = eax; /* 0x3601EF8B: mov dword ptr [edi + 0x10], eax */ 1893 edi = POP32_VAL(esp); /* 0x3601EF8E: pop edi */ 1894 ebx = POP32_VAL(esp); /* 0x3601EF8F: pop ebx */ 1895 esp = ebp; /* 0x3601EF90: mov esp, ebp */ 1896 ebp = POP32_VAL(esp); /* 0x3601EF92: pop ebp */ 1897 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601EF93: ret */ 1898 RECOMP_REGS_OUT(); 1899 } 1900 1901 void sub_3601EFA0(void) { 1902 int _fpu_cmp = 0; 1903 uint32_t _cf = 0; 1904 int _df = 1; 1905 uint32_t _flag_k = FK_NONE; 1906 uint32_t _flag_a = 0, _flag_b = 0; 1907 uint32_t _itail_tgt = 0; 1908 RECOMP_REGS_LOCALS 1909 RECOMP_ENTER(0x3601EFA0u); 1910 1911 L_3601EFA0: 1912 PUSH32(esp, ebp); /* 0x3601EFA0: push ebp */ 1913 ebp = esp; /* 0x3601EFA1: mov ebp, esp */ 1914 PUSH32(esp, esi); /* 0x3601EFA3: push esi */ 1915 esi = ecx; /* 0x3601EFA4: mov esi, ecx */ 1916 RECOMP_ICALL(0x3601EEF0u); /* 0x3601EFA6: call 0x3601eef0 */ /* not lifted */ 1917 RECOMP_FLAGS_IN(); 1918 /* test MEM8(ebp + 0x8), 1 */ /* 0x3601EFAB: test byte ptr [ebp + 8], 1 */ 1919 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1920 _cf = 0; 1921 _flag_k = FK_NARROW(FK_TEST, 24); 1922 if (TEST_Z(_flag_a, _flag_b)) goto L_3601EFBA; /* 0x3601EFAF: je 0x3601efba */ 1923 L_3601EFB1: 1924 PUSH32(esp, esi); /* 0x3601EFB1: push esi */ 1925 RECOMP_ICALL(0x3615FCC4u); /* 0x3601EFB2: call 0x3615fcc4 */ /* not lifted */ 1926 RECOMP_FLAGS_IN(); 1927 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1928 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1929 esp = esp + 4; /* 0x3601EFB7: add esp, 4 */ 1930 _flag_k = FK_ADD; 1931 L_3601EFBA: 1932 eax = esi; /* 0x3601EFBA: mov eax, esi */ 1933 esi = POP32_VAL(esp); /* 0x3601EFBC: pop esi */ 1934 ebp = POP32_VAL(esp); /* 0x3601EFBD: pop ebp */ 1935 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601EFBE: ret 4 */ 1936 RECOMP_REGS_OUT(); 1937 } 1938 1939 void sub_3601EFD0(void) { 1940 int _fpu_cmp = 0; 1941 uint32_t _cf = 0; 1942 int _df = 1; 1943 uint32_t _flag_k = FK_NONE; 1944 uint32_t _flag_a = 0, _flag_b = 0; 1945 uint32_t _itail_tgt = 0; 1946 RECOMP_REGS_LOCALS 1947 RECOMP_ENTER(0x3601EFD0u); 1948 1949 L_3601EFD0: 1950 PUSH32(esp, ebp); /* 0x3601EFD0: push ebp */ 1951 ebp = esp; /* 0x3601EFD1: mov ebp, esp */ 1952 PUSH32(esp, ebx); /* 0x3601EFD3: push ebx */ 1953 SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x3601EFD4: mov bl, byte ptr [ebp + 8] */ 1954 /* test LO8(ebx), 2 */ /* 0x3601EFD7: test bl, 2 */ 1955 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24; 1956 _cf = 0; 1957 _flag_k = FK_NARROW(FK_TEST, 24); 1958 PUSH32(esp, esi); /* 0x3601EFDA: push esi */ 1959 esi = ecx; /* 0x3601EFDB: mov esi, ecx */ 1960 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F00E; /* 0x3601EFDD: je 0x3601f00e */ 1961 L_3601EFDF: 1962 eax = MEM32(esi + (-0x4)); /* 0x3601EFDF: mov eax, dword ptr [esi - 4] */ 1963 PUSH32(esp, edi); /* 0x3601EFE2: push edi */ 1964 PUSH32(esp, 0x3601F080u); /* 0x3601EFE3: push 0x3601f080 */ 1965 edi = esi + (-0x4); /* 0x3601EFE8: lea edi, [esi - 4] */ 1966 PUSH32(esp, eax); /* 0x3601EFEB: push eax */ 1967 PUSH32(esp, 0x11Cu); /* 0x3601EFEC: push 0x11c */ 1968 PUSH32(esp, esi); /* 0x3601EFF1: push esi */ 1969 RECOMP_ICALL(0x3615FD92u); /* 0x3601EFF2: call 0x3615fd92 */ /* not lifted */ 1970 RECOMP_FLAGS_IN(); 1971 /* test LO8(ebx), 1 */ /* 0x3601EFF7: test bl, 1 */ 1972 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1973 _cf = 0; 1974 _flag_k = FK_NARROW(FK_TEST, 24); 1975 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F005; /* 0x3601EFFA: je 0x3601f005 */ 1976 L_3601EFFC: 1977 PUSH32(esp, edi); /* 0x3601EFFC: push edi */ 1978 RECOMP_ICALL(0x3615FCC4u); /* 0x3601EFFD: call 0x3615fcc4 */ /* not lifted */ 1979 RECOMP_FLAGS_IN(); 1980 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1981 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1982 esp = esp + 4; /* 0x3601F002: add esp, 4 */ 1983 _flag_k = FK_ADD; 1984 L_3601F005: 1985 eax = edi; /* 0x3601F005: mov eax, edi */ 1986 edi = POP32_VAL(esp); /* 0x3601F007: pop edi */ 1987 esi = POP32_VAL(esp); /* 0x3601F008: pop esi */ 1988 ebx = POP32_VAL(esp); /* 0x3601F009: pop ebx */ 1989 ebp = POP32_VAL(esp); /* 0x3601F00A: pop ebp */ 1990 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F00B: ret 4 */ 1991 L_3601F00E: 1992 ecx = esi; /* 0x3601F00E: mov ecx, esi */ 1993 RECOMP_ICALL(0x3601F080u); /* 0x3601F010: call 0x3601f080 */ /* not lifted */ 1994 RECOMP_FLAGS_IN(); 1995 /* test LO8(ebx), 1 */ /* 0x3601F015: test bl, 1 */ 1996 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 1997 _cf = 0; 1998 _flag_k = FK_NARROW(FK_TEST, 24); 1999 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F023; /* 0x3601F018: je 0x3601f023 */ 2000 L_3601F01A: 2001 PUSH32(esp, esi); /* 0x3601F01A: push esi */ 2002 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F01B: call 0x3615fcc4 */ /* not lifted */ 2003 RECOMP_FLAGS_IN(); 2004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2006 esp = esp + 4; /* 0x3601F020: add esp, 4 */ 2007 _flag_k = FK_ADD; 2008 L_3601F023: 2009 eax = esi; /* 0x3601F023: mov eax, esi */ 2010 esi = POP32_VAL(esp); /* 0x3601F025: pop esi */ 2011 ebx = POP32_VAL(esp); /* 0x3601F026: pop ebx */ 2012 ebp = POP32_VAL(esp); /* 0x3601F027: pop ebp */ 2013 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F028: ret 4 */ 2014 RECOMP_REGS_OUT(); 2015 } 2016 2017 void sub_3601F030(void) { 2018 int _fpu_cmp = 0; 2019 uint32_t _cf = 0; 2020 int _df = 1; 2021 uint32_t _flag_k = FK_NONE; 2022 uint32_t _flag_a = 0, _flag_b = 0; 2023 uint32_t _itail_tgt = 0; 2024 RECOMP_REGS_LOCALS 2025 RECOMP_ENTER(0x3601F030u); 2026 2027 L_3601F030: 2028 eax = MEM32(ecx + 0xE8); /* 0x3601F030: mov eax, dword ptr [ecx + 0xe8] */ 2029 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601F036: ret */ 2030 RECOMP_REGS_OUT(); 2031 } 2032 2033 void sub_3601F040(void) { 2034 int _fpu_cmp = 0; 2035 uint32_t _cf = 0; 2036 int _df = 1; 2037 uint32_t _flag_k = FK_NONE; 2038 uint32_t _flag_a = 0, _flag_b = 0; 2039 uint32_t _itail_tgt = 0; 2040 RECOMP_REGS_LOCALS 2041 RECOMP_ENTER(0x3601F040u); 2042 2043 L_3601F040: 2044 PUSH32(esp, ebp); /* 0x3601F040: push ebp */ 2045 ebp = esp; /* 0x3601F041: mov ebp, esp */ 2046 eax = MEM32(ebp + 0xC); /* 0x3601F043: mov eax, dword ptr [ebp + 0xc] */ 2047 edx = MEM32(ebp + 0x8); /* 0x3601F046: mov edx, dword ptr [ebp + 8] */ 2048 PUSH32(esp, eax); /* 0x3601F049: push eax */ 2049 PUSH32(esp, edx); /* 0x3601F04A: push edx */ 2050 RECOMP_ICALL(MEM32(0x36170024)); /* 0x3601F04B: call dword ptr [0x36170024] */ 2051 RECOMP_FLAGS_IN(); 2052 PUSH32(esp, 0x800u); /* 0x3601F051: push 0x800 */ 2053 RECOMP_ICALL(0x360EF780u); /* 0x3601F056: call 0x360ef780 */ /* not lifted */ 2054 RECOMP_FLAGS_IN(); 2055 ecx = eax; /* 0x3601F05B: mov ecx, eax */ 2056 RECOMP_ICALL(0x360EFC30u); /* 0x3601F05D: call 0x360efc30 */ /* not lifted */ 2057 RECOMP_FLAGS_IN(); 2058 RECOMP_ICALL(0x36072760u); /* 0x3601F062: call 0x36072760 */ /* not lifted */ 2059 RECOMP_FLAGS_IN(); 2060 RECOMP_ICALL(0x3609C130u); /* 0x3601F067: call 0x3609c130 */ /* not lifted */ 2061 RECOMP_FLAGS_IN(); 2062 RECOMP_ICALL(0x3606C840u); /* 0x3601F06C: call 0x3606c840 */ /* not lifted */ 2063 RECOMP_FLAGS_IN(); 2064 RECOMP_ICALL(0x36040B00u); /* 0x3601F071: call 0x36040b00 */ /* not lifted */ 2065 RECOMP_FLAGS_IN(); 2066 ebp = POP32_VAL(esp); /* 0x3601F076: pop ebp */ 2067 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601F077: ret 8 */ 2068 RECOMP_REGS_OUT(); 2069 } 2070 2071 void sub_3601F080(void) { 2072 int _fpu_cmp = 0; 2073 uint32_t _cf = 0; 2074 int _df = 1; 2075 uint32_t _flag_k = FK_NONE; 2076 uint32_t _flag_a = 0, _flag_b = 0; 2077 uint32_t _itail_tgt = 0; 2078 RECOMP_REGS_LOCALS 2079 RECOMP_ENTER(0x3601F080u); 2080 2081 L_3601F080: 2082 PUSH32(esp, ebp); /* 0x3601F080: push ebp */ 2083 ebp = esp; /* 0x3601F081: mov ebp, esp */ 2084 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601F083: push -1 */ 2085 PUSH32(esp, 0x36162F4Du); /* 0x3601F085: push 0x36162f4d */ 2086 eax = MEM32(FS_BASE + (0)); /* 0x3601F08A: mov eax, dword ptr fs:[0] */ 2087 PUSH32(esp, eax); /* 0x3601F090: push eax */ 2088 MEM32(FS_BASE + (0)) = esp; /* 0x3601F091: mov dword ptr fs:[0], esp */ 2089 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2090 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2091 esp = esp - 0xCu; /* 0x3601F098: sub esp, 0xc */ 2092 _flag_k = FK_CMP; 2093 PUSH32(esp, ebx); /* 0x3601F09B: push ebx */ 2094 PUSH32(esp, esi); /* 0x3601F09C: push esi */ 2095 PUSH32(esp, edi); /* 0x3601F09D: push edi */ 2096 edi = ecx; /* 0x3601F09E: mov edi, ecx */ 2097 MEM32(ebp + (-0x14)) = edi; /* 0x3601F0A0: mov dword ptr [ebp - 0x14], edi */ 2098 MEM32(edi) = 0x36170760u; /* 0x3601F0A3: mov dword ptr [edi], 0x36170760 */ 2099 esi = MEM32(edi + 0xE8); /* 0x3601F0A9: mov esi, dword ptr [edi + 0xe8] */ 2100 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2101 ebx = 0; /* 0x3601F0AF: xor ebx, ebx */ 2102 _cf = 0; 2103 _flag_k = FK_TEST; 2104 /* cmp esi, ebx */ /* 0x3601F0B1: cmp esi, ebx */ 2105 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2107 _flag_k = FK_CMP; 2108 MEM32(ebp + (-0x4)) = 2; /* 0x3601F0B3: mov dword ptr [ebp - 4], 2 */ 2109 MEM32(ebp + (-0x10)) = esi; /* 0x3601F0BA: mov dword ptr [ebp - 0x10], esi */ 2110 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601F108; /* 0x3601F0BD: je 0x3601f108 */ 2111 L_3601F0BF: 2112 PUSH32(esp, 1); /* 0x3601F0BF: push 1 */ 2113 ecx = esi + 0x14; /* 0x3601F0C1: lea ecx, [esi + 0x14] */ 2114 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3601F0C4: mov byte ptr [ebp - 4], 3 */ 2115 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3601F0C8: call dword ptr [0x3616f100] */ 2116 RECOMP_FLAGS_IN(); 2117 eax = MEM32(esi + 0x4); /* 0x3601F0CE: mov eax, dword ptr [esi + 4] */ 2118 ecx = MEM32(eax); /* 0x3601F0D1: mov ecx, dword ptr [eax] */ 2119 PUSH32(esp, eax); /* 0x3601F0D3: push eax */ 2120 PUSH32(esp, ecx); /* 0x3601F0D4: push ecx */ 2121 eax = ebp + (-0x18); /* 0x3601F0D5: lea eax, [ebp - 0x18] */ 2122 PUSH32(esp, eax); /* 0x3601F0D8: push eax */ 2123 ecx = esi; /* 0x3601F0D9: mov ecx, esi */ 2124 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3601F0DB: mov byte ptr [ebp - 4], 2 */ 2125 RECOMP_ICALL(0x36001710u); /* 0x3601F0DF: call 0x36001710 */ /* not lifted */ 2126 RECOMP_FLAGS_IN(); 2127 eax = MEM32(esi + 0x4); /* 0x3601F0E4: mov eax, dword ptr [esi + 4] */ 2128 PUSH32(esp, eax); /* 0x3601F0E7: push eax */ 2129 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F0E8: call 0x3615fcc4 */ /* not lifted */ 2130 RECOMP_FLAGS_IN(); 2131 eax = MEM32(esi + 0x8); /* 0x3601F0ED: mov eax, dword ptr [esi + 8] */ 2132 PUSH32(esp, eax); /* 0x3601F0F0: push eax */ 2133 MEM32(esi + 0x4) = ebx; /* 0x3601F0F1: mov dword ptr [esi + 4], ebx */ 2134 MEM32(esi + 0x10) = ebx; /* 0x3601F0F4: mov dword ptr [esi + 0x10], ebx */ 2135 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F0F7: call 0x3615fcc4 */ /* not lifted */ 2136 RECOMP_FLAGS_IN(); 2137 PUSH32(esp, esi); /* 0x3601F0FC: push esi */ 2138 MEM32(esi + 0x8) = ebx; /* 0x3601F0FD: mov dword ptr [esi + 8], ebx */ 2139 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F100: call 0x3615fcc4 */ /* not lifted */ 2140 RECOMP_FLAGS_IN(); 2141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2142 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2143 esp = esp + 0xCu; /* 0x3601F105: add esp, 0xc */ 2144 _flag_k = FK_ADD; 2145 L_3601F108: 2146 esi = MEM32(edi + 0xF0); /* 0x3601F108: mov esi, dword ptr [edi + 0xf0] */ 2147 /* cmp esi, ebx */ /* 0x3601F10E: cmp esi, ebx */ 2148 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2150 _flag_k = FK_CMP; 2151 MEM32(edi + 0xE8) = ebx; /* 0x3601F110: mov dword ptr [edi + 0xe8], ebx */ 2152 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601F128; /* 0x3601F116: je 0x3601f128 */ 2153 L_3601F118: 2154 ecx = esi; /* 0x3601F118: mov ecx, esi */ 2155 RECOMP_ICALL(0x360C4860u); /* 0x3601F11A: call 0x360c4860 */ /* not lifted */ 2156 RECOMP_FLAGS_IN(); 2157 PUSH32(esp, esi); /* 0x3601F11F: push esi */ 2158 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F120: call 0x3615fcc4 */ /* not lifted */ 2159 RECOMP_FLAGS_IN(); 2160 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2162 esp = esp + 4; /* 0x3601F125: add esp, 4 */ 2163 _flag_k = FK_ADD; 2164 L_3601F128: 2165 esi = MEM32(edi + 0xF4); /* 0x3601F128: mov esi, dword ptr [edi + 0xf4] */ 2166 /* cmp esi, ebx */ /* 0x3601F12E: cmp esi, ebx */ 2167 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 2168 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2169 _flag_k = FK_CMP; 2170 MEM32(edi + 0xF0) = ebx; /* 0x3601F130: mov dword ptr [edi + 0xf0], ebx */ 2171 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601F148; /* 0x3601F136: je 0x3601f148 */ 2172 L_3601F138: 2173 ecx = esi; /* 0x3601F138: mov ecx, esi */ 2174 RECOMP_ICALL(0x3609BB40u); /* 0x3601F13A: call 0x3609bb40 */ /* not lifted */ 2175 RECOMP_FLAGS_IN(); 2176 PUSH32(esp, esi); /* 0x3601F13F: push esi */ 2177 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F140: call 0x3615fcc4 */ /* not lifted */ 2178 RECOMP_FLAGS_IN(); 2179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2181 esp = esp + 4; /* 0x3601F145: add esp, 4 */ 2182 _flag_k = FK_ADD; 2183 L_3601F148: 2184 ecx = edi + 0xC4; /* 0x3601F148: lea ecx, [edi + 0xc4] */ 2185 MEM32(edi + 0xF4) = ebx; /* 0x3601F14E: mov dword ptr [edi + 0xf4], ebx */ 2186 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3601F154: mov byte ptr [ebp - 4], 1 */ 2187 RECOMP_ICALL(0x3615BA30u); /* 0x3601F158: call 0x3615ba30 */ /* not lifted */ 2188 RECOMP_FLAGS_IN(); 2189 MEM32(edi + 0xB0) = 0x361707DCu; /* 0x3601F15D: mov dword ptr [edi + 0xb0], 0x361707dc */ 2190 eax = MEM32(edi + 0xBC); /* 0x3601F167: mov eax, dword ptr [edi + 0xbc] */ 2191 esi = MEM32(edi + 0xB8); /* 0x3601F16D: mov esi, dword ptr [edi + 0xb8] */ 2192 /* cmp esi, eax */ /* 0x3601F173: cmp esi, eax */ 2193 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2195 _flag_k = FK_CMP; 2196 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3601F175: mov byte ptr [ebp - 4], 0 */ 2197 MEM32(ebp + (-0x10)) = eax; /* 0x3601F179: mov dword ptr [ebp - 0x10], eax */ 2198 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601F19A; /* 0x3601F17C: je 0x3601f19a */ 2199 L_3601F17E: 2200 ebx = esi + 0xC; /* 0x3601F17E: lea ebx, [esi + 0xc] */ 2201 L_3601F181: 2202 PUSH32(esp, 1); /* 0x3601F181: push 1 */ 2203 ecx = ebx; /* 0x3601F183: mov ecx, ebx */ 2204 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3601F185: call dword ptr [0x3616f100] */ 2205 RECOMP_FLAGS_IN(); 2206 eax = MEM32(ebp + (-0x10)); /* 0x3601F18B: mov eax, dword ptr [ebp - 0x10] */ 2207 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 2208 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2209 esi = esi + 0x24u; /* 0x3601F18E: add esi, 0x24 */ 2210 _flag_k = FK_ADD; 2211 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 2212 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2213 ebx = ebx + 0x24u; /* 0x3601F191: add ebx, 0x24 */ 2214 _flag_k = FK_ADD; 2215 /* cmp esi, eax */ /* 0x3601F194: cmp esi, eax */ 2216 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2218 _flag_k = FK_CMP; 2219 RECOMP_BACKEDGE(); 2220 if (CMP_NE(_flag_a, _flag_b)) goto L_3601F181; /* 0x3601F196: jne 0x3601f181 */ 2221 L_3601F198: 2222 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2223 ebx = 0; /* 0x3601F198: xor ebx, ebx */ 2224 _cf = 0; 2225 _flag_k = FK_TEST; 2226 L_3601F19A: 2227 eax = MEM32(edi + 0xB8); /* 0x3601F19A: mov eax, dword ptr [edi + 0xb8] */ 2228 PUSH32(esp, eax); /* 0x3601F1A0: push eax */ 2229 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F1A1: call 0x3615fcc4 */ /* not lifted */ 2230 RECOMP_FLAGS_IN(); 2231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2232 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2233 esp = esp + 4; /* 0x3601F1A6: add esp, 4 */ 2234 _flag_k = FK_ADD; 2235 ecx = edi; /* 0x3601F1A9: mov ecx, edi */ 2236 MEM32(edi + 0xB8) = ebx; /* 0x3601F1AB: mov dword ptr [edi + 0xb8], ebx */ 2237 MEM32(edi + 0xBC) = ebx; /* 0x3601F1B1: mov dword ptr [edi + 0xbc], ebx */ 2238 MEM32(edi + 0xC0) = ebx; /* 0x3601F1B7: mov dword ptr [edi + 0xc0], ebx */ 2239 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3601F1BD: mov dword ptr [ebp - 4], 0xffffffff */ 2240 RECOMP_ICALL(MEM32(0x3617001C)); /* 0x3601F1C4: call dword ptr [0x3617001c] */ 2241 RECOMP_FLAGS_IN(); 2242 ecx = MEM32(ebp + (-0xC)); /* 0x3601F1CA: mov ecx, dword ptr [ebp - 0xc] */ 2243 edi = POP32_VAL(esp); /* 0x3601F1CD: pop edi */ 2244 esi = POP32_VAL(esp); /* 0x3601F1CE: pop esi */ 2245 ebx = POP32_VAL(esp); /* 0x3601F1CF: pop ebx */ 2246 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F1D0: mov dword ptr fs:[0], ecx */ 2247 esp = ebp; /* 0x3601F1D7: mov esp, ebp */ 2248 ebp = POP32_VAL(esp); /* 0x3601F1D9: pop ebp */ 2249 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601F1DA: ret */ 2250 RECOMP_REGS_OUT(); 2251 } 2252 2253 void sub_3601F1E0(void) { 2254 int _fpu_cmp = 0; 2255 uint32_t _cf = 0; 2256 int _df = 1; 2257 uint32_t _flag_k = FK_NONE; 2258 uint32_t _flag_a = 0, _flag_b = 0; 2259 uint32_t _itail_tgt = 0; 2260 RECOMP_REGS_LOCALS 2261 RECOMP_ENTER(0x3601F1E0u); 2262 2263 L_3601F1E0: 2264 eax = MEM32(0x3616FF74); /* 0x3601F1E0: mov eax, dword ptr [0x3616ff74] */ 2265 eax = MEM32(eax); /* 0x3601F1E5: mov eax, dword ptr [eax] */ 2266 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601F1E7: ret */ 2267 RECOMP_REGS_OUT(); 2268 } 2269 2270 void sub_3601F1F0(void) { 2271 int _fpu_cmp = 0; 2272 uint32_t _cf = 0; 2273 int _df = 1; 2274 uint32_t _flag_k = FK_NONE; 2275 uint32_t _flag_a = 0, _flag_b = 0; 2276 uint32_t _itail_tgt = 0; 2277 RECOMP_REGS_LOCALS 2278 RECOMP_ENTER(0x3601F1F0u); 2279 2280 L_3601F1F0: 2281 PUSH32(esp, esi); /* 0x3601F1F0: push esi */ 2282 PUSH32(esp, edi); /* 0x3601F1F1: push edi */ 2283 edi = ecx; /* 0x3601F1F2: mov edi, ecx */ 2284 esi = MEM32(edi + 0x94); /* 0x3601F1F4: mov esi, dword ptr [edi + 0x94] */ 2285 /* test esi, esi */ /* 0x3601F1FA: test esi, esi */ 2286 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2287 _cf = 0; 2288 _flag_k = FK_TEST; 2289 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F227; /* 0x3601F1FC: je 0x3601f227 */ 2290 L_3601F1FE: 2291 ecx = esi; /* 0x3601F1FE: mov ecx, esi */ 2292 RECOMP_ICALL(0x360E2940u); /* 0x3601F200: call 0x360e2940 */ /* not lifted */ 2293 RECOMP_FLAGS_IN(); 2294 PUSH32(esp, esi); /* 0x3601F205: push esi */ 2295 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F206: call 0x3615fcc4 */ /* not lifted */ 2296 RECOMP_FLAGS_IN(); 2297 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2299 esp = esp + 4; /* 0x3601F20B: add esp, 4 */ 2300 _flag_k = FK_ADD; 2301 MEM32(edi + 0x94) = 0; /* 0x3601F20E: mov dword ptr [edi + 0x94], 0 */ 2302 RECOMP_ICALL(0x36093720u); /* 0x3601F218: call 0x36093720 */ /* not lifted */ 2303 RECOMP_FLAGS_IN(); 2304 RECOMP_ICALL(0x360E0540u); /* 0x3601F21D: call 0x360e0540 */ /* not lifted */ 2305 RECOMP_FLAGS_IN(); 2306 RECOMP_ICALL(0x36089880u); /* 0x3601F222: call 0x36089880 */ /* not lifted */ 2307 RECOMP_FLAGS_IN(); 2308 L_3601F227: 2309 edi = POP32_VAL(esp); /* 0x3601F227: pop edi */ 2310 esi = POP32_VAL(esp); /* 0x3601F228: pop esi */ 2311 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601F229: ret */ 2312 RECOMP_REGS_OUT(); 2313 } 2314 2315 void sub_3601F230(void) { 2316 int _fpu_cmp = 0; 2317 uint32_t _cf = 0; 2318 int _df = 1; 2319 uint32_t _flag_k = FK_NONE; 2320 uint32_t _flag_a = 0, _flag_b = 0; 2321 uint32_t _itail_tgt = 0; 2322 RECOMP_REGS_LOCALS 2323 RECOMP_ENTER(0x3601F230u); 2324 2325 goto L_3601F230; 2326 L_36004750: 2327 PUSH32(esp, 0x1A0u); /* 0x36004750: push 0x1a0 */ 2328 PUSH32(esp, 0x17u); /* 0x36004755: push 0x17 */ 2329 RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004757: call dword ptr [0x3616f304] */ 2330 RECOMP_FLAGS_IN(); 2331 ecx = eax; /* 0x3600475D: mov ecx, eax */ 2332 RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600475F: call dword ptr [0x3616f2e8] */ 2333 RECOMP_FLAGS_IN(); 2334 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004765: ret */ 2335 L_3601F230: 2336 ecx = MEM32(ecx + 0x94); /* 0x3601F230: mov ecx, dword ptr [ecx + 0x94] */ 2337 RECOMP_BACKEDGE(); 2338 goto L_36004750; /* 0x3601F236: jmp 0x36004750 */ 2339 { RECOMP_REGS_OUT(); return; } /* end of function */ 2340 RECOMP_REGS_OUT(); 2341 } 2342 2343 void sub_3601F240(void) { 2344 int _fpu_cmp = 0; 2345 uint32_t _cf = 0; 2346 int _df = 1; 2347 uint32_t _flag_k = FK_NONE; 2348 uint32_t _flag_a = 0, _flag_b = 0; 2349 uint32_t _itail_tgt = 0; 2350 RECOMP_REGS_LOCALS 2351 RECOMP_ENTER(0x3601F240u); 2352 2353 L_3601F240: 2354 eax = MEM32(ecx); /* 0x3601F240: mov eax, dword ptr [ecx] */ 2355 L_3601F242: 2356 { _itail_tgt = (uint32_t)(MEM32(eax + 0x10)); goto _ljump; } 2357 { RECOMP_REGS_OUT(); return; } /* end of function */ 2358 _ljump: 2359 switch (_itail_tgt) { 2360 case 0x3601F240u: goto L_3601F240; 2361 case 0x3601F242u: goto L_3601F242; 2362 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2363 } 2364 RECOMP_REGS_OUT(); 2365 } 2366 2367 void sub_3601F250(void) { 2368 int _fpu_cmp = 0; 2369 uint32_t _cf = 0; 2370 int _df = 1; 2371 uint32_t _flag_k = FK_NONE; 2372 uint32_t _flag_a = 0, _flag_b = 0; 2373 uint32_t _itail_tgt = 0; 2374 RECOMP_REGS_LOCALS 2375 RECOMP_ENTER(0x3601F250u); 2376 2377 L_3601F250: 2378 PUSH32(esp, ebp); /* 0x3601F250: push ebp */ 2379 ebp = esp; /* 0x3601F251: mov ebp, esp */ 2380 eax = MEM32(FS_BASE + (0)); /* 0x3601F253: mov eax, dword ptr fs:[0] */ 2381 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601F259: push -1 */ 2382 PUSH32(esp, 0x36162F8Cu); /* 0x3601F25B: push 0x36162f8c */ 2383 PUSH32(esp, eax); /* 0x3601F260: push eax */ 2384 MEM32(FS_BASE + (0)) = esp; /* 0x3601F261: mov dword ptr fs:[0], esp */ 2385 PUSH32(esp, esi); /* 0x3601F268: push esi */ 2386 esi = MEM32(ebp + 0x8); /* 0x3601F269: mov esi, dword ptr [ebp + 8] */ 2387 eax = MEM32(esi); /* 0x3601F26C: mov eax, dword ptr [esi] */ 2388 /* cmp eax, 0xC79Cu */ /* 0x3601F26E: cmp eax, 0xc79c */ 2389 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC79Cu); 2390 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2391 _flag_k = FK_CMP; 2392 if (CMP_NE(_flag_a, _flag_b)) goto L_3601F2B3; /* 0x3601F273: jne 0x3601f2b3 */ 2393 L_3601F275: 2394 PUSH32(esp, 8); /* 0x3601F275: push 8 */ 2395 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F277: call 0x3615fd6a */ /* not lifted */ 2396 RECOMP_FLAGS_IN(); 2397 esi = eax; /* 0x3601F27C: mov esi, eax */ 2398 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2399 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2400 esp = esp + 4; /* 0x3601F27E: add esp, 4 */ 2401 _flag_k = FK_ADD; 2402 MEM32(ebp + 0x8) = esi; /* 0x3601F281: mov dword ptr [ebp + 8], esi */ 2403 /* test esi, esi */ /* 0x3601F284: test esi, esi */ 2404 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 2405 _cf = 0; 2406 _flag_k = FK_TEST; 2407 MEM32(ebp + (-0x4)) = 0; /* 0x3601F286: mov dword ptr [ebp - 4], 0 */ 2408 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F36B; /* 0x3601F28D: je 0x3601f36b */ 2409 L_3601F293: 2410 ecx = esi; /* 0x3601F293: mov ecx, esi */ 2411 RECOMP_ICALL(0x3615BB60u); /* 0x3601F295: call 0x3615bb60 */ /* not lifted */ 2412 RECOMP_FLAGS_IN(); 2413 MEM32(esi) = 0x361707E4u; /* 0x3601F29A: mov dword ptr [esi], 0x361707e4 */ 2414 eax = esi; /* 0x3601F2A0: mov eax, esi */ 2415 ecx = MEM32(ebp + (-0xC)); /* 0x3601F2A2: mov ecx, dword ptr [ebp - 0xc] */ 2416 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F2A5: mov dword ptr fs:[0], ecx */ 2417 esi = POP32_VAL(esp); /* 0x3601F2AC: pop esi */ 2418 esp = ebp; /* 0x3601F2AD: mov esp, ebp */ 2419 ebp = POP32_VAL(esp); /* 0x3601F2AF: pop ebp */ 2420 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F2B0: ret 4 */ 2421 L_3601F2B3: 2422 /* cmp eax, 0xC79Du */ /* 0x3601F2B3: cmp eax, 0xc79d */ 2423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC79Du); 2424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2425 _flag_k = FK_CMP; 2426 if (CMP_NE(_flag_a, _flag_b)) goto L_3601F2F2; /* 0x3601F2B8: jne 0x3601f2f2 */ 2427 L_3601F2BA: 2428 PUSH32(esp, 0x14u); /* 0x3601F2BA: push 0x14 */ 2429 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F2BC: call 0x3615fd6a */ /* not lifted */ 2430 RECOMP_FLAGS_IN(); 2431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2433 esp = esp + 4; /* 0x3601F2C1: add esp, 4 */ 2434 _flag_k = FK_ADD; 2435 MEM32(ebp + 0x8) = eax; /* 0x3601F2C4: mov dword ptr [ebp + 8], eax */ 2436 /* test eax, eax */ /* 0x3601F2C7: test eax, eax */ 2437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2438 _cf = 0; 2439 _flag_k = FK_TEST; 2440 MEM32(ebp + (-0x4)) = 1; /* 0x3601F2C9: mov dword ptr [ebp - 4], 1 */ 2441 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F36B; /* 0x3601F2D0: je 0x3601f36b */ 2442 L_3601F2D6: 2443 edx = MEM32(esi + 0x4); /* 0x3601F2D6: mov edx, dword ptr [esi + 4] */ 2444 PUSH32(esp, edx); /* 0x3601F2D9: push edx */ 2445 ecx = eax; /* 0x3601F2DA: mov ecx, eax */ 2446 RECOMP_ICALL(0x361461F0u); /* 0x3601F2DC: call 0x361461f0 */ /* not lifted */ 2447 RECOMP_FLAGS_IN(); 2448 ecx = MEM32(ebp + (-0xC)); /* 0x3601F2E1: mov ecx, dword ptr [ebp - 0xc] */ 2449 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F2E4: mov dword ptr fs:[0], ecx */ 2450 esi = POP32_VAL(esp); /* 0x3601F2EB: pop esi */ 2451 esp = ebp; /* 0x3601F2EC: mov esp, ebp */ 2452 ebp = POP32_VAL(esp); /* 0x3601F2EE: pop ebp */ 2453 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F2EF: ret 4 */ 2454 L_3601F2F2: 2455 /* cmp eax, 0xC79Eu */ /* 0x3601F2F2: cmp eax, 0xc79e */ 2456 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC79Eu); 2457 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2458 _flag_k = FK_CMP; 2459 if (CMP_NE(_flag_a, _flag_b)) goto L_3601F32D; /* 0x3601F2F7: jne 0x3601f32d */ 2460 L_3601F2F9: 2461 PUSH32(esp, 0x14u); /* 0x3601F2F9: push 0x14 */ 2462 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F2FB: call 0x3615fd6a */ /* not lifted */ 2463 RECOMP_FLAGS_IN(); 2464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2466 esp = esp + 4; /* 0x3601F300: add esp, 4 */ 2467 _flag_k = FK_ADD; 2468 MEM32(ebp + 0x8) = eax; /* 0x3601F303: mov dword ptr [ebp + 8], eax */ 2469 /* test eax, eax */ /* 0x3601F306: test eax, eax */ 2470 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2471 _cf = 0; 2472 _flag_k = FK_TEST; 2473 MEM32(ebp + (-0x4)) = 2; /* 0x3601F308: mov dword ptr [ebp - 4], 2 */ 2474 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F36B; /* 0x3601F30F: je 0x3601f36b */ 2475 L_3601F311: 2476 edx = MEM32(esi + 0x4); /* 0x3601F311: mov edx, dword ptr [esi + 4] */ 2477 PUSH32(esp, edx); /* 0x3601F314: push edx */ 2478 ecx = eax; /* 0x3601F315: mov ecx, eax */ 2479 RECOMP_ICALL(0x36146B70u); /* 0x3601F317: call 0x36146b70 */ /* not lifted */ 2480 RECOMP_FLAGS_IN(); 2481 ecx = MEM32(ebp + (-0xC)); /* 0x3601F31C: mov ecx, dword ptr [ebp - 0xc] */ 2482 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F31F: mov dword ptr fs:[0], ecx */ 2483 esi = POP32_VAL(esp); /* 0x3601F326: pop esi */ 2484 esp = ebp; /* 0x3601F327: mov esp, ebp */ 2485 ebp = POP32_VAL(esp); /* 0x3601F329: pop ebp */ 2486 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F32A: ret 4 */ 2487 L_3601F32D: 2488 /* cmp eax, 0xC79Fu */ /* 0x3601F32D: cmp eax, 0xc79f */ 2489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC79Fu); 2490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2491 _flag_k = FK_CMP; 2492 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601F33B; /* 0x3601F332: je 0x3601f33b */ 2493 L_3601F334: 2494 /* cmp eax, 0xC7A1u */ /* 0x3601F334: cmp eax, 0xc7a1 */ 2495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC7A1u); 2496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2497 _flag_k = FK_CMP; 2498 if (CMP_NE(_flag_a, _flag_b)) goto L_3601F36B; /* 0x3601F339: jne 0x3601f36b */ 2499 L_3601F33B: 2500 PUSH32(esp, 0xCu); /* 0x3601F33B: push 0xc */ 2501 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F33D: call 0x3615fd6a */ /* not lifted */ 2502 RECOMP_FLAGS_IN(); 2503 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2505 esp = esp + 4; /* 0x3601F342: add esp, 4 */ 2506 _flag_k = FK_ADD; 2507 MEM32(ebp + 0x8) = eax; /* 0x3601F345: mov dword ptr [ebp + 8], eax */ 2508 /* test eax, eax */ /* 0x3601F348: test eax, eax */ 2509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2510 _cf = 0; 2511 _flag_k = FK_TEST; 2512 MEM32(ebp + (-0x4)) = 3; /* 0x3601F34A: mov dword ptr [ebp - 4], 3 */ 2513 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F36B; /* 0x3601F351: je 0x3601f36b */ 2514 L_3601F353: 2515 ecx = eax; /* 0x3601F353: mov ecx, eax */ 2516 RECOMP_ICALL(0x360F3AC0u); /* 0x3601F355: call 0x360f3ac0 */ /* not lifted */ 2517 RECOMP_FLAGS_IN(); 2518 ecx = MEM32(ebp + (-0xC)); /* 0x3601F35A: mov ecx, dword ptr [ebp - 0xc] */ 2519 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F35D: mov dword ptr fs:[0], ecx */ 2520 esi = POP32_VAL(esp); /* 0x3601F364: pop esi */ 2521 esp = ebp; /* 0x3601F365: mov esp, ebp */ 2522 ebp = POP32_VAL(esp); /* 0x3601F367: pop ebp */ 2523 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F368: ret 4 */ 2524 L_3601F36B: 2525 ecx = MEM32(ebp + (-0xC)); /* 0x3601F36B: mov ecx, dword ptr [ebp - 0xc] */ 2526 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2527 eax = 0; /* 0x3601F36E: xor eax, eax */ 2528 _cf = 0; 2529 _flag_k = FK_TEST; 2530 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F370: mov dword ptr fs:[0], ecx */ 2531 esi = POP32_VAL(esp); /* 0x3601F377: pop esi */ 2532 esp = ebp; /* 0x3601F378: mov esp, ebp */ 2533 ebp = POP32_VAL(esp); /* 0x3601F37A: pop ebp */ 2534 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F37B: ret 4 */ 2535 RECOMP_REGS_OUT(); 2536 } 2537 2538 void sub_3601F380(void) { 2539 int _fpu_cmp = 0; 2540 uint32_t _cf = 0; 2541 int _df = 1; 2542 uint32_t _flag_k = FK_NONE; 2543 uint32_t _flag_a = 0, _flag_b = 0; 2544 uint32_t _itail_tgt = 0; 2545 RECOMP_REGS_LOCALS 2546 RECOMP_ENTER(0x3601F380u); 2547 2548 L_3601F380: 2549 PUSH32(esp, ebp); /* 0x3601F380: push ebp */ 2550 ebp = esp; /* 0x3601F381: mov ebp, esp */ 2551 PUSH32(esp, esi); /* 0x3601F383: push esi */ 2552 esi = ecx; /* 0x3601F384: mov esi, ecx */ 2553 RECOMP_ICALL(0x3601F3B0u); /* 0x3601F386: call 0x3601f3b0 */ /* not lifted */ 2554 RECOMP_FLAGS_IN(); 2555 /* test MEM8(ebp + 0x8), 1 */ /* 0x3601F38B: test byte ptr [ebp + 8], 1 */ 2556 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2557 _cf = 0; 2558 _flag_k = FK_NARROW(FK_TEST, 24); 2559 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F39A; /* 0x3601F38F: je 0x3601f39a */ 2560 L_3601F391: 2561 PUSH32(esp, esi); /* 0x3601F391: push esi */ 2562 RECOMP_ICALL(0x3615FCC4u); /* 0x3601F392: call 0x3615fcc4 */ /* not lifted */ 2563 RECOMP_FLAGS_IN(); 2564 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2566 esp = esp + 4; /* 0x3601F397: add esp, 4 */ 2567 _flag_k = FK_ADD; 2568 L_3601F39A: 2569 eax = esi; /* 0x3601F39A: mov eax, esi */ 2570 esi = POP32_VAL(esp); /* 0x3601F39C: pop esi */ 2571 ebp = POP32_VAL(esp); /* 0x3601F39D: pop ebp */ 2572 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F39E: ret 4 */ 2573 RECOMP_REGS_OUT(); 2574 } 2575 2576 void sub_3601F3B0(void) { 2577 int _fpu_cmp = 0; 2578 uint32_t _cf = 0; 2579 int _df = 1; 2580 uint32_t _flag_k = FK_NONE; 2581 uint32_t _flag_a = 0, _flag_b = 0; 2582 uint32_t _itail_tgt = 0; 2583 RECOMP_REGS_LOCALS 2584 RECOMP_ENTER(0x3601F3B0u); 2585 2586 L_3601F3B0: 2587 MEM32(ecx) = 0x361707F8u; /* 0x3601F3B0: mov dword ptr [ecx], 0x361707f8 */ 2588 goto L_3615BBA0; /* 0x3601F3B6: jmp 0x3615bba0 */ 2589 { RECOMP_REGS_OUT(); return; } /* end of function */ 2590 L_3615BBA0: RECOMP_ITAIL(0x3615BBA0u); { RECOMP_REGS_OUT(); return; } 2591 RECOMP_REGS_OUT(); 2592 } 2593 2594 void sub_3601F3C0(void) { 2595 int _fpu_cmp = 0; 2596 uint32_t _cf = 0; 2597 int _df = 1; 2598 uint32_t _flag_k = FK_NONE; 2599 uint32_t _flag_a = 0, _flag_b = 0; 2600 uint32_t _itail_tgt = 0; 2601 RECOMP_REGS_LOCALS 2602 RECOMP_ENTER(0x3601F3C0u); 2603 2604 L_3601F3C0: 2605 PUSH32(esp, ebp); /* 0x3601F3C0: push ebp */ 2606 ebp = esp; /* 0x3601F3C1: mov ebp, esp */ 2607 PUSH32(esp, esi); /* 0x3601F3C3: push esi */ 2608 esi = ecx; /* 0x3601F3C4: mov esi, ecx */ 2609 RECOMP_ICALL(0x360C9AD0u); /* 0x3601F3C6: call 0x360c9ad0 */ /* not lifted */ 2610 RECOMP_FLAGS_IN(); 2611 RECOMP_ICALL(0x360F7F10u); /* 0x3601F3CB: call 0x360f7f10 */ /* not lifted */ 2612 RECOMP_FLAGS_IN(); 2613 eax = MEM32(ebp + 0x8); /* 0x3601F3D0: mov eax, dword ptr [ebp + 8] */ 2614 PUSH32(esp, eax); /* 0x3601F3D3: push eax */ 2615 ecx = esi; /* 0x3601F3D4: mov ecx, esi */ 2616 RECOMP_ICALL(MEM32(0x36170028)); /* 0x3601F3D6: call dword ptr [0x36170028] */ 2617 RECOMP_FLAGS_IN(); 2618 RECOMP_ICALL(0x360F0F00u); /* 0x3601F3DC: call 0x360f0f00 */ /* not lifted */ 2619 RECOMP_FLAGS_IN(); 2620 esi = POP32_VAL(esp); /* 0x3601F3E1: pop esi */ 2621 ebp = POP32_VAL(esp); /* 0x3601F3E2: pop ebp */ 2622 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F3E3: ret 4 */ 2623 RECOMP_REGS_OUT(); 2624 } 2625 2626 void sub_3601F3F0(void) { 2627 int _fpu_cmp = 0; 2628 uint32_t _cf = 0; 2629 int _df = 1; 2630 uint32_t _flag_k = FK_NONE; 2631 uint32_t _flag_a = 0, _flag_b = 0; 2632 uint32_t _itail_tgt = 0; 2633 RECOMP_REGS_LOCALS 2634 RECOMP_ENTER(0x3601F3F0u); 2635 2636 L_3601F3F0: 2637 PUSH32(esp, ebp); /* 0x3601F3F0: push ebp */ 2638 L_3601F3F1: 2639 ebp = esp; /* 0x3601F3F1: mov ebp, esp */ 2640 L_3601F3F3: 2641 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601F3F3: push -1 */ 2642 L_3601F3F5: 2643 PUSH32(esp, 0x36162FB6u); /* 0x3601F3F5: push 0x36162fb6 */ 2644 L_3601F3FA: 2645 eax = MEM32(FS_BASE + (0)); /* 0x3601F3FA: mov eax, dword ptr fs:[0] */ 2646 L_3601F400: 2647 PUSH32(esp, eax); /* 0x3601F400: push eax */ 2648 L_3601F401: 2649 MEM32(FS_BASE + (0)) = esp; /* 0x3601F401: mov dword ptr fs:[0], esp */ 2650 L_3601F408: 2651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu); 2652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2653 esp = esp - 0x2Cu; /* 0x3601F408: sub esp, 0x2c */ 2654 _flag_k = FK_CMP; 2655 L_3601F40B: 2656 eax = MEM32(ebp + 0x8); /* 0x3601F40B: mov eax, dword ptr [ebp + 8] */ 2657 L_3601F40E: 2658 PUSH32(esp, ebx); /* 0x3601F40E: push ebx */ 2659 L_3601F40F: 2660 PUSH32(esp, esi); /* 0x3601F40F: push esi */ 2661 L_3601F410: 2662 PUSH32(esp, edi); /* 0x3601F410: push edi */ 2663 L_3601F411: 2664 PUSH32(esp, eax); /* 0x3601F411: push eax */ 2665 L_3601F412: 2666 RECOMP_ICALL(MEM32(0x36170044)); /* 0x3601F412: call dword ptr [0x36170044] */ 2667 RECOMP_FLAGS_IN(); 2668 L_3601F418: 2669 esi = eax; /* 0x3601F418: mov esi, eax */ 2670 L_3601F41A: 2671 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2672 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2673 esp = esp + 4; /* 0x3601F41A: add esp, 4 */ 2674 _flag_k = FK_ADD; 2675 L_3601F41D: 2676 ecx = esi; /* 0x3601F41D: mov ecx, esi */ 2677 L_3601F41F: 2678 RECOMP_ICALL(MEM32(0x36170040)); /* 0x3601F41F: call dword ptr [0x36170040] */ 2679 RECOMP_FLAGS_IN(); 2680 L_3601F425: 2681 edi = eax; /* 0x3601F425: mov edi, eax */ 2682 L_3601F427: 2683 PUSH32(esp, edi); /* 0x3601F427: push edi */ 2684 L_3601F428: 2685 ecx = ebp + (-0x38); /* 0x3601F428: lea ecx, [ebp - 0x38] */ 2686 L_3601F42B: 2687 RECOMP_ICALL(0x360056C0u); /* 0x3601F42B: call 0x360056c0 */ /* not lifted */ 2688 RECOMP_FLAGS_IN(); 2689 L_3601F430: 2690 ecx = MEM32(edi + 0x8); /* 0x3601F430: mov ecx, dword ptr [edi + 8] */ 2691 L_3601F433: 2692 MEM32(ebp + (-0x30)) = ecx; /* 0x3601F433: mov dword ptr [ebp - 0x30], ecx */ 2693 L_3601F436: 2694 edx = MEM32(edi + 0xC); /* 0x3601F436: mov edx, dword ptr [edi + 0xc] */ 2695 L_3601F439: 2696 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 2697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2698 edi = edi + 0x10u; /* 0x3601F439: add edi, 0x10 */ 2699 _flag_k = FK_ADD; 2700 L_3601F43C: 2701 PUSH32(esp, edi); /* 0x3601F43C: push edi */ 2702 L_3601F43D: 2703 ecx = ebp + (-0x28); /* 0x3601F43D: lea ecx, [ebp - 0x28] */ 2704 L_3601F440: 2705 MEM32(ebp + (-0x2C)) = edx; /* 0x3601F440: mov dword ptr [ebp - 0x2c], edx */ 2706 L_3601F443: 2707 RECOMP_ICALL(0x360056C0u); /* 0x3601F443: call 0x360056c0 */ /* not lifted */ 2708 RECOMP_FLAGS_IN(); 2709 L_3601F448: 2710 edi = MEM32(0x3616FF6C); /* 0x3601F448: mov edi, dword ptr [0x3616ff6c] */ 2711 L_3601F44E: 2712 ecx = esi; /* 0x3601F44E: mov ecx, esi */ 2713 L_3601F450: 2714 RECOMP_ICALL(edi); /* 0x3601F450: call edi */ 2715 RECOMP_FLAGS_IN(); 2716 L_3601F452: 2717 ecx = MEM32(esi + 0xAC); /* 0x3601F452: mov ecx, dword ptr [esi + 0xac] */ 2718 L_3601F458: 2719 edx = MEM32(esi + 0xB0); /* 0x3601F458: mov edx, dword ptr [esi + 0xb0] */ 2720 L_3601F45E: 2721 ebx = MEM32(esi + 0xB4); /* 0x3601F45E: mov ebx, dword ptr [esi + 0xb4] */ 2722 L_3601F464: 2723 MEM32(ebp + (-0x1C)) = ecx; /* 0x3601F464: mov dword ptr [ebp - 0x1c], ecx */ 2724 L_3601F467: 2725 ecx = eax; /* 0x3601F467: mov ecx, eax */ 2726 L_3601F469: 2727 MEM32(ebp + (-0x10)) = eax; /* 0x3601F469: mov dword ptr [ebp - 0x10], eax */ 2728 L_3601F46C: 2729 MEM32(ebp + (-0x18)) = edx; /* 0x3601F46C: mov dword ptr [ebp - 0x18], edx */ 2730 L_3601F46F: 2731 MEM32(ebp + (-0x14)) = ebx; /* 0x3601F46F: mov dword ptr [ebp - 0x14], ebx */ 2732 L_3601F472: 2733 RECOMP_ICALL(MEM32(0x36170038)); /* 0x3601F472: call dword ptr [0x36170038] */ 2734 RECOMP_FLAGS_IN(); 2735 L_3601F478: 2736 /* test LO8(eax), LO8(eax) */ /* 0x3601F478: test al, al */ 2737 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2738 _cf = 0; 2739 _flag_k = FK_NARROW(FK_TEST, 24); 2740 L_3601F47A: 2741 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3601F57E; /* 0x3601F47A: je 0x3601f57e */ 2742 L_3601F480: 2743 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2744 eax = 0; /* 0x3601F480: xor eax, eax */ 2745 _cf = 0; 2746 _flag_k = FK_TEST; 2747 L_3601F482: 2748 SET_LO8(eax, MEM8(ebx + 0x12)); /* 0x3601F482: mov al, byte ptr [ebx + 0x12] */ 2749 L_3601F485: 2750 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 2751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2752 eax = eax + 0xFFFFFFFCu; /* 0x3601F485: add eax, -4 */ 2753 _flag_k = FK_ADD; 2754 L_3601F488: 2755 /* cmp eax, 0xBu */ /* 0x3601F488: cmp eax, 0xb */ 2756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xBu); 2757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2758 _flag_k = FK_CMP; 2759 L_3601F48B: 2760 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3601F572; /* 0x3601F48B: ja 0x3601f572 */ 2761 L_3601F491: 2762 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x3601F694)); goto _ljump; } 2763 L_3601F498: 2764 MEM32(esi + 0xEC) = 5; /* 0x3601F498: mov dword ptr [esi + 0xec], 5 */ 2765 L_3601F4A2: 2766 ecx = esi; /* 0x3601F4A2: mov ecx, esi */ 2767 L_3601F4A4: 2768 RECOMP_ICALL(edi); /* 0x3601F4A4: call edi */ 2769 RECOMP_FLAGS_IN(); 2770 L_3601F4A6: 2771 ecx = eax; /* 0x3601F4A6: mov ecx, eax */ 2772 L_3601F4A8: 2773 RECOMP_ICALL(MEM32(0x36170034)); /* 0x3601F4A8: call dword ptr [0x36170034] */ 2774 RECOMP_FLAGS_IN(); 2775 L_3601F4AE: 2776 MEM32(eax + 0xCC) = 1; /* 0x3601F4AE: mov dword ptr [eax + 0xcc], 1 */ 2777 L_3601F4B8: 2778 goto L_3601F5BD; /* 0x3601F4B8: jmp 0x3601f5bd */ 2779 L_3601F4BD: 2780 MEM32(esi + 0xEC) = 6; /* 0x3601F4BD: mov dword ptr [esi + 0xec], 6 */ 2781 L_3601F4C7: 2782 RECOMP_BACKEDGE(); 2783 goto L_3601F4A2; /* 0x3601F4C7: jmp 0x3601f4a2 */ 2784 L_3601F4C9: 2785 MEM32(esi + 0xEC) = 7; /* 0x3601F4C9: mov dword ptr [esi + 0xec], 7 */ 2786 L_3601F4D3: 2787 goto L_3601F5BD; /* 0x3601F4D3: jmp 0x3601f5bd */ 2788 L_3601F4D8: 2789 MEM32(esi + 0xEC) = 8; /* 0x3601F4D8: mov dword ptr [esi + 0xec], 8 */ 2790 L_3601F4E2: 2791 goto L_3601F5BD; /* 0x3601F4E2: jmp 0x3601f5bd */ 2792 L_3601F4E7: 2793 MEM32(esi + 0xEC) = 9; /* 0x3601F4E7: mov dword ptr [esi + 0xec], 9 */ 2794 L_3601F4F1: 2795 goto L_3601F5BD; /* 0x3601F4F1: jmp 0x3601f5bd */ 2796 L_3601F4F6: 2797 MEM32(esi + 0xEC) = 0xAu; /* 0x3601F4F6: mov dword ptr [esi + 0xec], 0xa */ 2798 L_3601F500: 2799 goto L_3601F5BD; /* 0x3601F500: jmp 0x3601f5bd */ 2800 L_3601F505: 2801 MEM32(esi + 0xEC) = 0xBu; /* 0x3601F505: mov dword ptr [esi + 0xec], 0xb */ 2802 L_3601F50F: 2803 goto L_3601F5BD; /* 0x3601F50F: jmp 0x3601f5bd */ 2804 L_3601F514: 2805 MEM32(esi + 0xEC) = 0xCu; /* 0x3601F514: mov dword ptr [esi + 0xec], 0xc */ 2806 L_3601F51E: 2807 goto L_3601F5BD; /* 0x3601F51E: jmp 0x3601f5bd */ 2808 L_3601F523: 2809 MEM32(esi + 0xEC) = 0xDu; /* 0x3601F523: mov dword ptr [esi + 0xec], 0xd */ 2810 L_3601F52D: 2811 goto L_3601F5BD; /* 0x3601F52D: jmp 0x3601f5bd */ 2812 L_3601F532: 2813 MEM32(esi + 0xEC) = 0xEu; /* 0x3601F532: mov dword ptr [esi + 0xec], 0xe */ 2814 L_3601F53C: 2815 RECOMP_BACKEDGE(); 2816 goto L_3601F4A2; /* 0x3601F53C: jmp 0x3601f4a2 */ 2817 L_3601F541: 2818 ecx = esi; /* 0x3601F541: mov ecx, esi */ 2819 L_3601F543: 2820 MEM32(esi + 0xEC) = 0xFu; /* 0x3601F543: mov dword ptr [esi + 0xec], 0xf */ 2821 L_3601F54D: 2822 RECOMP_ICALL(edi); /* 0x3601F54D: call edi */ 2823 RECOMP_FLAGS_IN(); 2824 L_3601F54F: 2825 ecx = eax; /* 0x3601F54F: mov ecx, eax */ 2826 L_3601F551: 2827 RECOMP_ICALL(MEM32(0x36170034)); /* 0x3601F551: call dword ptr [0x36170034] */ 2828 RECOMP_FLAGS_IN(); 2829 L_3601F557: 2830 MEM32(eax + 0xCC) = 2; /* 0x3601F557: mov dword ptr [eax + 0xcc], 2 */ 2831 L_3601F561: 2832 goto L_3601F5BD; /* 0x3601F561: jmp 0x3601f5bd */ 2833 L_3601F563: 2834 MEM32(esi + 0xEC) = 0x10u; /* 0x3601F563: mov dword ptr [esi + 0xec], 0x10 */ 2835 L_3601F56D: 2836 RECOMP_BACKEDGE(); 2837 goto L_3601F4A2; /* 0x3601F56D: jmp 0x3601f4a2 */ 2838 L_3601F572: 2839 MEM32(esi + 0xEC) = 0; /* 0x3601F572: mov dword ptr [esi + 0xec], 0 */ 2840 L_3601F57C: 2841 goto L_3601F5BD; /* 0x3601F57C: jmp 0x3601f5bd */ 2842 L_3601F57E: 2843 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2844 eax = 0; /* 0x3601F57E: xor eax, eax */ 2845 _cf = 0; 2846 _flag_k = FK_TEST; 2847 L_3601F580: 2848 SET_LO8(eax, MEM8(ebx + 0x12)); /* 0x3601F580: mov al, byte ptr [ebx + 0x12] */ 2849 L_3601F583: 2850 /* cmp eax, 3 */ /* 0x3601F583: cmp eax, 3 */ 2851 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 2852 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2853 _flag_k = FK_CMP; 2854 L_3601F586: 2855 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_3601F5B3; /* 0x3601F586: ja 0x3601f5b3 */ 2856 L_3601F588: 2857 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x3601F6C4)); goto _ljump; } 2858 L_3601F58F: 2859 MEM32(esi + 0xEC) = 2; /* 0x3601F58F: mov dword ptr [esi + 0xec], 2 */ 2860 L_3601F599: 2861 goto L_3601F5BD; /* 0x3601F599: jmp 0x3601f5bd */ 2862 L_3601F59B: 2863 MEM32(esi + 0xEC) = 3; /* 0x3601F59B: mov dword ptr [esi + 0xec], 3 */ 2864 L_3601F5A5: 2865 goto L_3601F5BD; /* 0x3601F5A5: jmp 0x3601f5bd */ 2866 L_3601F5A7: 2867 MEM32(esi + 0xEC) = 4; /* 0x3601F5A7: mov dword ptr [esi + 0xec], 4 */ 2868 L_3601F5B1: 2869 goto L_3601F5BD; /* 0x3601F5B1: jmp 0x3601f5bd */ 2870 L_3601F5B3: 2871 MEM32(esi + 0xEC) = 1; /* 0x3601F5B3: mov dword ptr [esi + 0xec], 1 */ 2872 L_3601F5BD: 2873 RECOMP_ICALL(0x3601C590u); /* 0x3601F5BD: call 0x3601c590 */ /* not lifted */ 2874 RECOMP_FLAGS_IN(); 2875 L_3601F5C2: 2876 ecx = eax; /* 0x3601F5C2: mov ecx, eax */ 2877 L_3601F5C4: 2878 RECOMP_ICALL(0x3601CBE0u); /* 0x3601F5C4: call 0x3601cbe0 */ /* not lifted */ 2879 RECOMP_FLAGS_IN(); 2880 L_3601F5C9: 2881 ebx = MEM32(esi + 0x1C); /* 0x3601F5C9: mov ebx, dword ptr [esi + 0x1c] */ 2882 L_3601F5CC: 2883 edi = esi + 0x1C; /* 0x3601F5CC: lea edi, [esi + 0x1c] */ 2884 L_3601F5CF: 2885 RECOMP_ICALL(0x360F7B00u); /* 0x3601F5CF: call 0x360f7b00 */ /* not lifted */ 2886 RECOMP_FLAGS_IN(); 2887 L_3601F5D4: 2888 PUSH32(esp, eax); /* 0x3601F5D4: push eax */ 2889 L_3601F5D5: 2890 ecx = edi; /* 0x3601F5D5: mov ecx, edi */ 2891 L_3601F5D7: 2892 RECOMP_ICALL(MEM32(ebx)); /* 0x3601F5D7: call dword ptr [ebx] */ 2893 RECOMP_FLAGS_IN(); 2894 L_3601F5D9: 2895 PUSH32(esp, 0x184u); /* 0x3601F5D9: push 0x184 */ 2896 L_3601F5DE: 2897 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F5DE: call 0x3615fd6a */ /* not lifted */ 2898 RECOMP_FLAGS_IN(); 2899 L_3601F5E3: 2900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2902 esp = esp + 4; /* 0x3601F5E3: add esp, 4 */ 2903 _flag_k = FK_ADD; 2904 L_3601F5E6: 2905 MEM32(ebp + (-0x20)) = eax; /* 0x3601F5E6: mov dword ptr [ebp - 0x20], eax */ 2906 L_3601F5E9: 2907 /* test eax, eax */ /* 0x3601F5E9: test eax, eax */ 2908 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2909 _cf = 0; 2910 _flag_k = FK_TEST; 2911 L_3601F5EB: 2912 MEM32(ebp + (-0x4)) = 0; /* 0x3601F5EB: mov dword ptr [ebp - 4], 0 */ 2913 L_3601F5F2: 2914 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3601F618; /* 0x3601F5F2: je 0x3601f618 */ 2915 L_3601F5F4: 2916 ecx = MEM32(ebp + (-0x10)); /* 0x3601F5F4: mov ecx, dword ptr [ebp - 0x10] */ 2917 L_3601F5F7: 2918 edx = MEM32(esi + 0xEC); /* 0x3601F5F7: mov edx, dword ptr [esi + 0xec] */ 2919 L_3601F5FD: 2920 PUSH32(esp, ecx); /* 0x3601F5FD: push ecx */ 2921 L_3601F5FE: 2922 ecx = MEM32(ebp + (-0x14)); /* 0x3601F5FE: mov ecx, dword ptr [ebp - 0x14] */ 2923 L_3601F601: 2924 PUSH32(esp, ecx); /* 0x3601F601: push ecx */ 2925 L_3601F602: 2926 ecx = MEM32(ebp + (-0x18)); /* 0x3601F602: mov ecx, dword ptr [ebp - 0x18] */ 2927 L_3601F605: 2928 PUSH32(esp, ecx); /* 0x3601F605: push ecx */ 2929 L_3601F606: 2930 ecx = MEM32(ebp + (-0x1C)); /* 0x3601F606: mov ecx, dword ptr [ebp - 0x1c] */ 2931 L_3601F609: 2932 PUSH32(esp, ecx); /* 0x3601F609: push ecx */ 2933 L_3601F60A: 2934 PUSH32(esp, edx); /* 0x3601F60A: push edx */ 2935 L_3601F60B: 2936 edx = MEM32(ebp + 0x8); /* 0x3601F60B: mov edx, dword ptr [ebp + 8] */ 2937 L_3601F60E: 2938 PUSH32(esp, edx); /* 0x3601F60E: push edx */ 2939 L_3601F60F: 2940 ecx = eax; /* 0x3601F60F: mov ecx, eax */ 2941 L_3601F611: 2942 RECOMP_ICALL(0x360C9AE0u); /* 0x3601F611: call 0x360c9ae0 */ /* not lifted */ 2943 RECOMP_FLAGS_IN(); 2944 L_3601F616: 2945 goto L_3601F61A; /* 0x3601F616: jmp 0x3601f61a */ 2946 L_3601F618: 2947 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2948 eax = 0; /* 0x3601F618: xor eax, eax */ 2949 _cf = 0; 2950 _flag_k = FK_TEST; 2951 L_3601F61A: 2952 edx = MEM32(edi); /* 0x3601F61A: mov edx, dword ptr [edi] */ 2953 L_3601F61C: 2954 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 2955 ebx = ebx | 0xFFFFFFFFu; /* 0x3601F61C: or ebx, 0xffffffff */ 2956 _cf = 0; 2957 _flag_k = FK_TEST; 2958 L_3601F61F: 2959 PUSH32(esp, eax); /* 0x3601F61F: push eax */ 2960 L_3601F620: 2961 ecx = edi; /* 0x3601F620: mov ecx, edi */ 2962 L_3601F622: 2963 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F622: mov dword ptr [ebp - 4], ebx */ 2964 L_3601F625: 2965 RECOMP_ICALL(MEM32(edx)); /* 0x3601F625: call dword ptr [edx] */ 2966 RECOMP_FLAGS_IN(); 2967 L_3601F627: 2968 ecx = esi; /* 0x3601F627: mov ecx, esi */ 2969 L_3601F629: 2970 RECOMP_ICALL(MEM32(0x36170030)); /* 0x3601F629: call dword ptr [0x36170030] */ 2971 RECOMP_FLAGS_IN(); 2972 L_3601F62F: 2973 eax = MEM32(ebp + (-0x10)); /* 0x3601F62F: mov eax, dword ptr [ebp - 0x10] */ 2974 L_3601F632: 2975 MEM32(0x36305B28) = eax; /* 0x3601F632: mov dword ptr [0x36305b28], eax */ 2976 L_3601F637: 2977 RECOMP_ICALL(0x3601C590u); /* 0x3601F637: call 0x3601c590 */ /* not lifted */ 2978 RECOMP_FLAGS_IN(); 2979 L_3601F63C: 2980 ecx = eax; /* 0x3601F63C: mov ecx, eax */ 2981 L_3601F63E: 2982 RECOMP_ICALL(0x3601CDD0u); /* 0x3601F63E: call 0x3601cdd0 */ /* not lifted */ 2983 RECOMP_FLAGS_IN(); 2984 L_3601F643: 2985 ecx = esi; /* 0x3601F643: mov ecx, esi */ 2986 L_3601F645: 2987 RECOMP_ICALL(MEM32(0x3617002C)); /* 0x3601F645: call dword ptr [0x3617002c] */ 2988 RECOMP_FLAGS_IN(); 2989 L_3601F64B: 2990 /* test LO8(eax), LO8(eax) */ /* 0x3601F64B: test al, al */ 2991 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2992 _cf = 0; 2993 _flag_k = FK_NARROW(FK_TEST, 24); 2994 L_3601F64D: 2995 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3601F67F; /* 0x3601F64D: je 0x3601f67f */ 2996 L_3601F64F: 2997 PUSH32(esp, 0xB4u); /* 0x3601F64F: push 0xb4 */ 2998 L_3601F654: 2999 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F654: call 0x3615fd6a */ /* not lifted */ 3000 RECOMP_FLAGS_IN(); 3001 L_3601F659: 3002 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3003 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3004 esp = esp + 4; /* 0x3601F659: add esp, 4 */ 3005 _flag_k = FK_ADD; 3006 L_3601F65C: 3007 MEM32(ebp + 0x8) = eax; /* 0x3601F65C: mov dword ptr [ebp + 8], eax */ 3008 L_3601F65F: 3009 /* test eax, eax */ /* 0x3601F65F: test eax, eax */ 3010 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3011 _cf = 0; 3012 _flag_k = FK_TEST; 3013 L_3601F661: 3014 MEM32(ebp + (-0x4)) = 1; /* 0x3601F661: mov dword ptr [ebp - 4], 1 */ 3015 L_3601F668: 3016 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3601F673; /* 0x3601F668: je 0x3601f673 */ 3017 L_3601F66A: 3018 ecx = eax; /* 0x3601F66A: mov ecx, eax */ 3019 L_3601F66C: 3020 RECOMP_ICALL(0x3613DD20u); /* 0x3601F66C: call 0x3613dd20 */ /* not lifted */ 3021 RECOMP_FLAGS_IN(); 3022 L_3601F671: 3023 goto L_3601F675; /* 0x3601F671: jmp 0x3601f675 */ 3024 L_3601F673: 3025 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3026 eax = 0; /* 0x3601F673: xor eax, eax */ 3027 _cf = 0; 3028 _flag_k = FK_TEST; 3029 L_3601F675: 3030 edx = MEM32(edi); /* 0x3601F675: mov edx, dword ptr [edi] */ 3031 L_3601F677: 3032 PUSH32(esp, eax); /* 0x3601F677: push eax */ 3033 L_3601F678: 3034 ecx = edi; /* 0x3601F678: mov ecx, edi */ 3035 L_3601F67A: 3036 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F67A: mov dword ptr [ebp - 4], ebx */ 3037 L_3601F67D: 3038 RECOMP_ICALL(MEM32(edx)); /* 0x3601F67D: call dword ptr [edx] */ 3039 RECOMP_FLAGS_IN(); 3040 L_3601F67F: 3041 ecx = MEM32(ebp + (-0xC)); /* 0x3601F67F: mov ecx, dword ptr [ebp - 0xc] */ 3042 L_3601F682: 3043 edi = POP32_VAL(esp); /* 0x3601F682: pop edi */ 3044 L_3601F683: 3045 esi = POP32_VAL(esp); /* 0x3601F683: pop esi */ 3046 L_3601F684: 3047 ebx = POP32_VAL(esp); /* 0x3601F684: pop ebx */ 3048 L_3601F685: 3049 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F685: mov dword ptr fs:[0], ecx */ 3050 L_3601F68C: 3051 esp = ebp; /* 0x3601F68C: mov esp, ebp */ 3052 L_3601F68E: 3053 ebp = POP32_VAL(esp); /* 0x3601F68E: pop ebp */ 3054 L_3601F68F: 3055 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F68F: ret 4 */ 3056 _ljump: 3057 switch (_itail_tgt) { 3058 case 0x3601F3F0u: goto L_3601F3F0; 3059 case 0x3601F3F1u: goto L_3601F3F1; 3060 case 0x3601F3F3u: goto L_3601F3F3; 3061 case 0x3601F3F5u: goto L_3601F3F5; 3062 case 0x3601F3FAu: goto L_3601F3FA; 3063 case 0x3601F400u: goto L_3601F400; 3064 case 0x3601F401u: goto L_3601F401; 3065 case 0x3601F408u: goto L_3601F408; 3066 case 0x3601F40Bu: goto L_3601F40B; 3067 case 0x3601F40Eu: goto L_3601F40E; 3068 case 0x3601F40Fu: goto L_3601F40F; 3069 case 0x3601F410u: goto L_3601F410; 3070 case 0x3601F411u: goto L_3601F411; 3071 case 0x3601F412u: goto L_3601F412; 3072 case 0x3601F418u: goto L_3601F418; 3073 case 0x3601F41Au: goto L_3601F41A; 3074 case 0x3601F41Du: goto L_3601F41D; 3075 case 0x3601F41Fu: goto L_3601F41F; 3076 case 0x3601F425u: goto L_3601F425; 3077 case 0x3601F427u: goto L_3601F427; 3078 case 0x3601F428u: goto L_3601F428; 3079 case 0x3601F42Bu: goto L_3601F42B; 3080 case 0x3601F430u: goto L_3601F430; 3081 case 0x3601F433u: goto L_3601F433; 3082 case 0x3601F436u: goto L_3601F436; 3083 case 0x3601F439u: goto L_3601F439; 3084 case 0x3601F43Cu: goto L_3601F43C; 3085 case 0x3601F43Du: goto L_3601F43D; 3086 case 0x3601F440u: goto L_3601F440; 3087 case 0x3601F443u: goto L_3601F443; 3088 case 0x3601F448u: goto L_3601F448; 3089 case 0x3601F44Eu: goto L_3601F44E; 3090 case 0x3601F450u: goto L_3601F450; 3091 case 0x3601F452u: goto L_3601F452; 3092 case 0x3601F458u: goto L_3601F458; 3093 case 0x3601F45Eu: goto L_3601F45E; 3094 case 0x3601F464u: goto L_3601F464; 3095 case 0x3601F467u: goto L_3601F467; 3096 case 0x3601F469u: goto L_3601F469; 3097 case 0x3601F46Cu: goto L_3601F46C; 3098 case 0x3601F46Fu: goto L_3601F46F; 3099 case 0x3601F472u: goto L_3601F472; 3100 case 0x3601F478u: goto L_3601F478; 3101 case 0x3601F47Au: goto L_3601F47A; 3102 case 0x3601F480u: goto L_3601F480; 3103 case 0x3601F482u: goto L_3601F482; 3104 case 0x3601F485u: goto L_3601F485; 3105 case 0x3601F488u: goto L_3601F488; 3106 case 0x3601F48Bu: goto L_3601F48B; 3107 case 0x3601F491u: goto L_3601F491; 3108 case 0x3601F498u: goto L_3601F498; 3109 case 0x3601F4A2u: goto L_3601F4A2; 3110 case 0x3601F4A4u: goto L_3601F4A4; 3111 case 0x3601F4A6u: goto L_3601F4A6; 3112 case 0x3601F4A8u: goto L_3601F4A8; 3113 case 0x3601F4AEu: goto L_3601F4AE; 3114 case 0x3601F4B8u: goto L_3601F4B8; 3115 case 0x3601F4BDu: goto L_3601F4BD; 3116 case 0x3601F4C7u: goto L_3601F4C7; 3117 case 0x3601F4C9u: goto L_3601F4C9; 3118 case 0x3601F4D3u: goto L_3601F4D3; 3119 case 0x3601F4D8u: goto L_3601F4D8; 3120 case 0x3601F4E2u: goto L_3601F4E2; 3121 case 0x3601F4E7u: goto L_3601F4E7; 3122 case 0x3601F4F1u: goto L_3601F4F1; 3123 case 0x3601F4F6u: goto L_3601F4F6; 3124 case 0x3601F500u: goto L_3601F500; 3125 case 0x3601F505u: goto L_3601F505; 3126 case 0x3601F50Fu: goto L_3601F50F; 3127 case 0x3601F514u: goto L_3601F514; 3128 case 0x3601F51Eu: goto L_3601F51E; 3129 case 0x3601F523u: goto L_3601F523; 3130 case 0x3601F52Du: goto L_3601F52D; 3131 case 0x3601F532u: goto L_3601F532; 3132 case 0x3601F53Cu: goto L_3601F53C; 3133 case 0x3601F541u: goto L_3601F541; 3134 case 0x3601F543u: goto L_3601F543; 3135 case 0x3601F54Du: goto L_3601F54D; 3136 case 0x3601F54Fu: goto L_3601F54F; 3137 case 0x3601F551u: goto L_3601F551; 3138 case 0x3601F557u: goto L_3601F557; 3139 case 0x3601F561u: goto L_3601F561; 3140 case 0x3601F563u: goto L_3601F563; 3141 case 0x3601F56Du: goto L_3601F56D; 3142 case 0x3601F572u: goto L_3601F572; 3143 case 0x3601F57Cu: goto L_3601F57C; 3144 case 0x3601F57Eu: goto L_3601F57E; 3145 case 0x3601F580u: goto L_3601F580; 3146 case 0x3601F583u: goto L_3601F583; 3147 case 0x3601F586u: goto L_3601F586; 3148 case 0x3601F588u: goto L_3601F588; 3149 case 0x3601F58Fu: goto L_3601F58F; 3150 case 0x3601F599u: goto L_3601F599; 3151 case 0x3601F59Bu: goto L_3601F59B; 3152 case 0x3601F5A5u: goto L_3601F5A5; 3153 case 0x3601F5A7u: goto L_3601F5A7; 3154 case 0x3601F5B1u: goto L_3601F5B1; 3155 case 0x3601F5B3u: goto L_3601F5B3; 3156 case 0x3601F5BDu: goto L_3601F5BD; 3157 case 0x3601F5C2u: goto L_3601F5C2; 3158 case 0x3601F5C4u: goto L_3601F5C4; 3159 case 0x3601F5C9u: goto L_3601F5C9; 3160 case 0x3601F5CCu: goto L_3601F5CC; 3161 case 0x3601F5CFu: goto L_3601F5CF; 3162 case 0x3601F5D4u: goto L_3601F5D4; 3163 case 0x3601F5D5u: goto L_3601F5D5; 3164 case 0x3601F5D7u: goto L_3601F5D7; 3165 case 0x3601F5D9u: goto L_3601F5D9; 3166 case 0x3601F5DEu: goto L_3601F5DE; 3167 case 0x3601F5E3u: goto L_3601F5E3; 3168 case 0x3601F5E6u: goto L_3601F5E6; 3169 case 0x3601F5E9u: goto L_3601F5E9; 3170 case 0x3601F5EBu: goto L_3601F5EB; 3171 case 0x3601F5F2u: goto L_3601F5F2; 3172 case 0x3601F5F4u: goto L_3601F5F4; 3173 case 0x3601F5F7u: goto L_3601F5F7; 3174 case 0x3601F5FDu: goto L_3601F5FD; 3175 case 0x3601F5FEu: goto L_3601F5FE; 3176 case 0x3601F601u: goto L_3601F601; 3177 case 0x3601F602u: goto L_3601F602; 3178 case 0x3601F605u: goto L_3601F605; 3179 case 0x3601F606u: goto L_3601F606; 3180 case 0x3601F609u: goto L_3601F609; 3181 case 0x3601F60Au: goto L_3601F60A; 3182 case 0x3601F60Bu: goto L_3601F60B; 3183 case 0x3601F60Eu: goto L_3601F60E; 3184 case 0x3601F60Fu: goto L_3601F60F; 3185 case 0x3601F611u: goto L_3601F611; 3186 case 0x3601F616u: goto L_3601F616; 3187 case 0x3601F618u: goto L_3601F618; 3188 case 0x3601F61Au: goto L_3601F61A; 3189 case 0x3601F61Cu: goto L_3601F61C; 3190 case 0x3601F61Fu: goto L_3601F61F; 3191 case 0x3601F620u: goto L_3601F620; 3192 case 0x3601F622u: goto L_3601F622; 3193 case 0x3601F625u: goto L_3601F625; 3194 case 0x3601F627u: goto L_3601F627; 3195 case 0x3601F629u: goto L_3601F629; 3196 case 0x3601F62Fu: goto L_3601F62F; 3197 case 0x3601F632u: goto L_3601F632; 3198 case 0x3601F637u: goto L_3601F637; 3199 case 0x3601F63Cu: goto L_3601F63C; 3200 case 0x3601F63Eu: goto L_3601F63E; 3201 case 0x3601F643u: goto L_3601F643; 3202 case 0x3601F645u: goto L_3601F645; 3203 case 0x3601F64Bu: goto L_3601F64B; 3204 case 0x3601F64Du: goto L_3601F64D; 3205 case 0x3601F64Fu: goto L_3601F64F; 3206 case 0x3601F654u: goto L_3601F654; 3207 case 0x3601F659u: goto L_3601F659; 3208 case 0x3601F65Cu: goto L_3601F65C; 3209 case 0x3601F65Fu: goto L_3601F65F; 3210 case 0x3601F661u: goto L_3601F661; 3211 case 0x3601F668u: goto L_3601F668; 3212 case 0x3601F66Au: goto L_3601F66A; 3213 case 0x3601F66Cu: goto L_3601F66C; 3214 case 0x3601F671u: goto L_3601F671; 3215 case 0x3601F673u: goto L_3601F673; 3216 case 0x3601F675u: goto L_3601F675; 3217 case 0x3601F677u: goto L_3601F677; 3218 case 0x3601F678u: goto L_3601F678; 3219 case 0x3601F67Au: goto L_3601F67A; 3220 case 0x3601F67Du: goto L_3601F67D; 3221 case 0x3601F67Fu: goto L_3601F67F; 3222 case 0x3601F682u: goto L_3601F682; 3223 case 0x3601F683u: goto L_3601F683; 3224 case 0x3601F684u: goto L_3601F684; 3225 case 0x3601F685u: goto L_3601F685; 3226 case 0x3601F68Cu: goto L_3601F68C; 3227 case 0x3601F68Eu: goto L_3601F68E; 3228 case 0x3601F68Fu: goto L_3601F68F; 3229 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3230 } 3231 RECOMP_REGS_OUT(); 3232 } 3233 3234 void sub_3601F4A2(void) { 3235 int _fpu_cmp = 0; 3236 uint32_t _cf = 0; 3237 int _df = 1; 3238 uint32_t _flag_k = FK_NONE; 3239 uint32_t _flag_a = 0, _flag_b = 0; 3240 uint32_t _itail_tgt = 0; 3241 RECOMP_REGS_LOCALS 3242 RECOMP_ENTER(0x3601F4A2u); 3243 3244 L_3601F4A2: 3245 ecx = esi; /* 0x3601F4A2: mov ecx, esi */ 3246 RECOMP_ICALL(edi); /* 0x3601F4A4: call edi */ 3247 RECOMP_FLAGS_IN(); 3248 ecx = eax; /* 0x3601F4A6: mov ecx, eax */ 3249 RECOMP_ICALL(MEM32(0x36170034)); /* 0x3601F4A8: call dword ptr [0x36170034] */ 3250 RECOMP_FLAGS_IN(); 3251 MEM32(eax + 0xCC) = 1; /* 0x3601F4AE: mov dword ptr [eax + 0xcc], 1 */ 3252 goto L_3601F5BD; /* 0x3601F4B8: jmp 0x3601f5bd */ 3253 L_3601F5BD: 3254 RECOMP_ICALL(0x3601C590u); /* 0x3601F5BD: call 0x3601c590 */ /* not lifted */ 3255 RECOMP_FLAGS_IN(); 3256 ecx = eax; /* 0x3601F5C2: mov ecx, eax */ 3257 RECOMP_ICALL(0x3601CBE0u); /* 0x3601F5C4: call 0x3601cbe0 */ /* not lifted */ 3258 RECOMP_FLAGS_IN(); 3259 ebx = MEM32(esi + 0x1C); /* 0x3601F5C9: mov ebx, dword ptr [esi + 0x1c] */ 3260 edi = esi + 0x1C; /* 0x3601F5CC: lea edi, [esi + 0x1c] */ 3261 RECOMP_ICALL(0x360F7B00u); /* 0x3601F5CF: call 0x360f7b00 */ /* not lifted */ 3262 RECOMP_FLAGS_IN(); 3263 PUSH32(esp, eax); /* 0x3601F5D4: push eax */ 3264 ecx = edi; /* 0x3601F5D5: mov ecx, edi */ 3265 RECOMP_ICALL(MEM32(ebx)); /* 0x3601F5D7: call dword ptr [ebx] */ 3266 RECOMP_FLAGS_IN(); 3267 PUSH32(esp, 0x184u); /* 0x3601F5D9: push 0x184 */ 3268 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F5DE: call 0x3615fd6a */ /* not lifted */ 3269 RECOMP_FLAGS_IN(); 3270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3272 esp = esp + 4; /* 0x3601F5E3: add esp, 4 */ 3273 _flag_k = FK_ADD; 3274 MEM32(ebp + (-0x20)) = eax; /* 0x3601F5E6: mov dword ptr [ebp - 0x20], eax */ 3275 /* test eax, eax */ /* 0x3601F5E9: test eax, eax */ 3276 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3277 _cf = 0; 3278 _flag_k = FK_TEST; 3279 MEM32(ebp + (-0x4)) = 0; /* 0x3601F5EB: mov dword ptr [ebp - 4], 0 */ 3280 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F618; /* 0x3601F5F2: je 0x3601f618 */ 3281 L_3601F5F4: 3282 ecx = MEM32(ebp + (-0x10)); /* 0x3601F5F4: mov ecx, dword ptr [ebp - 0x10] */ 3283 edx = MEM32(esi + 0xEC); /* 0x3601F5F7: mov edx, dword ptr [esi + 0xec] */ 3284 PUSH32(esp, ecx); /* 0x3601F5FD: push ecx */ 3285 ecx = MEM32(ebp + (-0x14)); /* 0x3601F5FE: mov ecx, dword ptr [ebp - 0x14] */ 3286 PUSH32(esp, ecx); /* 0x3601F601: push ecx */ 3287 ecx = MEM32(ebp + (-0x18)); /* 0x3601F602: mov ecx, dword ptr [ebp - 0x18] */ 3288 PUSH32(esp, ecx); /* 0x3601F605: push ecx */ 3289 ecx = MEM32(ebp + (-0x1C)); /* 0x3601F606: mov ecx, dword ptr [ebp - 0x1c] */ 3290 PUSH32(esp, ecx); /* 0x3601F609: push ecx */ 3291 PUSH32(esp, edx); /* 0x3601F60A: push edx */ 3292 edx = MEM32(ebp + 0x8); /* 0x3601F60B: mov edx, dword ptr [ebp + 8] */ 3293 PUSH32(esp, edx); /* 0x3601F60E: push edx */ 3294 ecx = eax; /* 0x3601F60F: mov ecx, eax */ 3295 RECOMP_ICALL(0x360C9AE0u); /* 0x3601F611: call 0x360c9ae0 */ /* not lifted */ 3296 RECOMP_FLAGS_IN(); 3297 goto L_3601F61A; /* 0x3601F616: jmp 0x3601f61a */ 3298 L_3601F618: 3299 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3300 eax = 0; /* 0x3601F618: xor eax, eax */ 3301 _cf = 0; 3302 _flag_k = FK_TEST; 3303 L_3601F61A: 3304 edx = MEM32(edi); /* 0x3601F61A: mov edx, dword ptr [edi] */ 3305 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 3306 ebx = ebx | 0xFFFFFFFFu; /* 0x3601F61C: or ebx, 0xffffffff */ 3307 _cf = 0; 3308 _flag_k = FK_TEST; 3309 PUSH32(esp, eax); /* 0x3601F61F: push eax */ 3310 ecx = edi; /* 0x3601F620: mov ecx, edi */ 3311 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F622: mov dword ptr [ebp - 4], ebx */ 3312 RECOMP_ICALL(MEM32(edx)); /* 0x3601F625: call dword ptr [edx] */ 3313 RECOMP_FLAGS_IN(); 3314 ecx = esi; /* 0x3601F627: mov ecx, esi */ 3315 RECOMP_ICALL(MEM32(0x36170030)); /* 0x3601F629: call dword ptr [0x36170030] */ 3316 RECOMP_FLAGS_IN(); 3317 eax = MEM32(ebp + (-0x10)); /* 0x3601F62F: mov eax, dword ptr [ebp - 0x10] */ 3318 MEM32(0x36305B28) = eax; /* 0x3601F632: mov dword ptr [0x36305b28], eax */ 3319 RECOMP_ICALL(0x3601C590u); /* 0x3601F637: call 0x3601c590 */ /* not lifted */ 3320 RECOMP_FLAGS_IN(); 3321 ecx = eax; /* 0x3601F63C: mov ecx, eax */ 3322 RECOMP_ICALL(0x3601CDD0u); /* 0x3601F63E: call 0x3601cdd0 */ /* not lifted */ 3323 RECOMP_FLAGS_IN(); 3324 ecx = esi; /* 0x3601F643: mov ecx, esi */ 3325 RECOMP_ICALL(MEM32(0x3617002C)); /* 0x3601F645: call dword ptr [0x3617002c] */ 3326 RECOMP_FLAGS_IN(); 3327 /* test LO8(eax), LO8(eax) */ /* 0x3601F64B: test al, al */ 3328 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3329 _cf = 0; 3330 _flag_k = FK_NARROW(FK_TEST, 24); 3331 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F67F; /* 0x3601F64D: je 0x3601f67f */ 3332 L_3601F64F: 3333 PUSH32(esp, 0xB4u); /* 0x3601F64F: push 0xb4 */ 3334 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F654: call 0x3615fd6a */ /* not lifted */ 3335 RECOMP_FLAGS_IN(); 3336 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3337 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3338 esp = esp + 4; /* 0x3601F659: add esp, 4 */ 3339 _flag_k = FK_ADD; 3340 MEM32(ebp + 0x8) = eax; /* 0x3601F65C: mov dword ptr [ebp + 8], eax */ 3341 /* test eax, eax */ /* 0x3601F65F: test eax, eax */ 3342 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3343 _cf = 0; 3344 _flag_k = FK_TEST; 3345 MEM32(ebp + (-0x4)) = 1; /* 0x3601F661: mov dword ptr [ebp - 4], 1 */ 3346 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F673; /* 0x3601F668: je 0x3601f673 */ 3347 L_3601F66A: 3348 ecx = eax; /* 0x3601F66A: mov ecx, eax */ 3349 RECOMP_ICALL(0x3613DD20u); /* 0x3601F66C: call 0x3613dd20 */ /* not lifted */ 3350 RECOMP_FLAGS_IN(); 3351 goto L_3601F675; /* 0x3601F671: jmp 0x3601f675 */ 3352 L_3601F673: 3353 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3354 eax = 0; /* 0x3601F673: xor eax, eax */ 3355 _cf = 0; 3356 _flag_k = FK_TEST; 3357 L_3601F675: 3358 edx = MEM32(edi); /* 0x3601F675: mov edx, dword ptr [edi] */ 3359 PUSH32(esp, eax); /* 0x3601F677: push eax */ 3360 ecx = edi; /* 0x3601F678: mov ecx, edi */ 3361 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F67A: mov dword ptr [ebp - 4], ebx */ 3362 RECOMP_ICALL(MEM32(edx)); /* 0x3601F67D: call dword ptr [edx] */ 3363 RECOMP_FLAGS_IN(); 3364 L_3601F67F: 3365 ecx = MEM32(ebp + (-0xC)); /* 0x3601F67F: mov ecx, dword ptr [ebp - 0xc] */ 3366 edi = POP32_VAL(esp); /* 0x3601F682: pop edi */ 3367 esi = POP32_VAL(esp); /* 0x3601F683: pop esi */ 3368 ebx = POP32_VAL(esp); /* 0x3601F684: pop ebx */ 3369 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F685: mov dword ptr fs:[0], ecx */ 3370 esp = ebp; /* 0x3601F68C: mov esp, ebp */ 3371 ebp = POP32_VAL(esp); /* 0x3601F68E: pop ebp */ 3372 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F68F: ret 4 */ 3373 RECOMP_REGS_OUT(); 3374 } 3375 3376 void sub_3601F5BD(void) { 3377 int _fpu_cmp = 0; 3378 uint32_t _cf = 0; 3379 int _df = 1; 3380 uint32_t _flag_k = FK_NONE; 3381 uint32_t _flag_a = 0, _flag_b = 0; 3382 uint32_t _itail_tgt = 0; 3383 RECOMP_REGS_LOCALS 3384 RECOMP_ENTER(0x3601F5BDu); 3385 3386 L_3601F5BD: 3387 RECOMP_ICALL(0x3601C590u); /* 0x3601F5BD: call 0x3601c590 */ /* not lifted */ 3388 RECOMP_FLAGS_IN(); 3389 ecx = eax; /* 0x3601F5C2: mov ecx, eax */ 3390 RECOMP_ICALL(0x3601CBE0u); /* 0x3601F5C4: call 0x3601cbe0 */ /* not lifted */ 3391 RECOMP_FLAGS_IN(); 3392 ebx = MEM32(esi + 0x1C); /* 0x3601F5C9: mov ebx, dword ptr [esi + 0x1c] */ 3393 edi = esi + 0x1C; /* 0x3601F5CC: lea edi, [esi + 0x1c] */ 3394 RECOMP_ICALL(0x360F7B00u); /* 0x3601F5CF: call 0x360f7b00 */ /* not lifted */ 3395 RECOMP_FLAGS_IN(); 3396 PUSH32(esp, eax); /* 0x3601F5D4: push eax */ 3397 ecx = edi; /* 0x3601F5D5: mov ecx, edi */ 3398 RECOMP_ICALL(MEM32(ebx)); /* 0x3601F5D7: call dword ptr [ebx] */ 3399 RECOMP_FLAGS_IN(); 3400 PUSH32(esp, 0x184u); /* 0x3601F5D9: push 0x184 */ 3401 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F5DE: call 0x3615fd6a */ /* not lifted */ 3402 RECOMP_FLAGS_IN(); 3403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3405 esp = esp + 4; /* 0x3601F5E3: add esp, 4 */ 3406 _flag_k = FK_ADD; 3407 MEM32(ebp + (-0x20)) = eax; /* 0x3601F5E6: mov dword ptr [ebp - 0x20], eax */ 3408 /* test eax, eax */ /* 0x3601F5E9: test eax, eax */ 3409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3410 _cf = 0; 3411 _flag_k = FK_TEST; 3412 MEM32(ebp + (-0x4)) = 0; /* 0x3601F5EB: mov dword ptr [ebp - 4], 0 */ 3413 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F618; /* 0x3601F5F2: je 0x3601f618 */ 3414 L_3601F5F4: 3415 ecx = MEM32(ebp + (-0x10)); /* 0x3601F5F4: mov ecx, dword ptr [ebp - 0x10] */ 3416 edx = MEM32(esi + 0xEC); /* 0x3601F5F7: mov edx, dword ptr [esi + 0xec] */ 3417 PUSH32(esp, ecx); /* 0x3601F5FD: push ecx */ 3418 ecx = MEM32(ebp + (-0x14)); /* 0x3601F5FE: mov ecx, dword ptr [ebp - 0x14] */ 3419 PUSH32(esp, ecx); /* 0x3601F601: push ecx */ 3420 ecx = MEM32(ebp + (-0x18)); /* 0x3601F602: mov ecx, dword ptr [ebp - 0x18] */ 3421 PUSH32(esp, ecx); /* 0x3601F605: push ecx */ 3422 ecx = MEM32(ebp + (-0x1C)); /* 0x3601F606: mov ecx, dword ptr [ebp - 0x1c] */ 3423 PUSH32(esp, ecx); /* 0x3601F609: push ecx */ 3424 PUSH32(esp, edx); /* 0x3601F60A: push edx */ 3425 edx = MEM32(ebp + 0x8); /* 0x3601F60B: mov edx, dword ptr [ebp + 8] */ 3426 PUSH32(esp, edx); /* 0x3601F60E: push edx */ 3427 ecx = eax; /* 0x3601F60F: mov ecx, eax */ 3428 RECOMP_ICALL(0x360C9AE0u); /* 0x3601F611: call 0x360c9ae0 */ /* not lifted */ 3429 RECOMP_FLAGS_IN(); 3430 goto L_3601F61A; /* 0x3601F616: jmp 0x3601f61a */ 3431 L_3601F618: 3432 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3433 eax = 0; /* 0x3601F618: xor eax, eax */ 3434 _cf = 0; 3435 _flag_k = FK_TEST; 3436 L_3601F61A: 3437 edx = MEM32(edi); /* 0x3601F61A: mov edx, dword ptr [edi] */ 3438 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 3439 ebx = ebx | 0xFFFFFFFFu; /* 0x3601F61C: or ebx, 0xffffffff */ 3440 _cf = 0; 3441 _flag_k = FK_TEST; 3442 PUSH32(esp, eax); /* 0x3601F61F: push eax */ 3443 ecx = edi; /* 0x3601F620: mov ecx, edi */ 3444 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F622: mov dword ptr [ebp - 4], ebx */ 3445 RECOMP_ICALL(MEM32(edx)); /* 0x3601F625: call dword ptr [edx] */ 3446 RECOMP_FLAGS_IN(); 3447 ecx = esi; /* 0x3601F627: mov ecx, esi */ 3448 RECOMP_ICALL(MEM32(0x36170030)); /* 0x3601F629: call dword ptr [0x36170030] */ 3449 RECOMP_FLAGS_IN(); 3450 eax = MEM32(ebp + (-0x10)); /* 0x3601F62F: mov eax, dword ptr [ebp - 0x10] */ 3451 MEM32(0x36305B28) = eax; /* 0x3601F632: mov dword ptr [0x36305b28], eax */ 3452 RECOMP_ICALL(0x3601C590u); /* 0x3601F637: call 0x3601c590 */ /* not lifted */ 3453 RECOMP_FLAGS_IN(); 3454 ecx = eax; /* 0x3601F63C: mov ecx, eax */ 3455 RECOMP_ICALL(0x3601CDD0u); /* 0x3601F63E: call 0x3601cdd0 */ /* not lifted */ 3456 RECOMP_FLAGS_IN(); 3457 ecx = esi; /* 0x3601F643: mov ecx, esi */ 3458 RECOMP_ICALL(MEM32(0x3617002C)); /* 0x3601F645: call dword ptr [0x3617002c] */ 3459 RECOMP_FLAGS_IN(); 3460 /* test LO8(eax), LO8(eax) */ /* 0x3601F64B: test al, al */ 3461 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3462 _cf = 0; 3463 _flag_k = FK_NARROW(FK_TEST, 24); 3464 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F67F; /* 0x3601F64D: je 0x3601f67f */ 3465 L_3601F64F: 3466 PUSH32(esp, 0xB4u); /* 0x3601F64F: push 0xb4 */ 3467 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F654: call 0x3615fd6a */ /* not lifted */ 3468 RECOMP_FLAGS_IN(); 3469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3471 esp = esp + 4; /* 0x3601F659: add esp, 4 */ 3472 _flag_k = FK_ADD; 3473 MEM32(ebp + 0x8) = eax; /* 0x3601F65C: mov dword ptr [ebp + 8], eax */ 3474 /* test eax, eax */ /* 0x3601F65F: test eax, eax */ 3475 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3476 _cf = 0; 3477 _flag_k = FK_TEST; 3478 MEM32(ebp + (-0x4)) = 1; /* 0x3601F661: mov dword ptr [ebp - 4], 1 */ 3479 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F673; /* 0x3601F668: je 0x3601f673 */ 3480 L_3601F66A: 3481 ecx = eax; /* 0x3601F66A: mov ecx, eax */ 3482 RECOMP_ICALL(0x3613DD20u); /* 0x3601F66C: call 0x3613dd20 */ /* not lifted */ 3483 RECOMP_FLAGS_IN(); 3484 goto L_3601F675; /* 0x3601F671: jmp 0x3601f675 */ 3485 L_3601F673: 3486 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3487 eax = 0; /* 0x3601F673: xor eax, eax */ 3488 _cf = 0; 3489 _flag_k = FK_TEST; 3490 L_3601F675: 3491 edx = MEM32(edi); /* 0x3601F675: mov edx, dword ptr [edi] */ 3492 PUSH32(esp, eax); /* 0x3601F677: push eax */ 3493 ecx = edi; /* 0x3601F678: mov ecx, edi */ 3494 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F67A: mov dword ptr [ebp - 4], ebx */ 3495 RECOMP_ICALL(MEM32(edx)); /* 0x3601F67D: call dword ptr [edx] */ 3496 RECOMP_FLAGS_IN(); 3497 L_3601F67F: 3498 ecx = MEM32(ebp + (-0xC)); /* 0x3601F67F: mov ecx, dword ptr [ebp - 0xc] */ 3499 edi = POP32_VAL(esp); /* 0x3601F682: pop edi */ 3500 esi = POP32_VAL(esp); /* 0x3601F683: pop esi */ 3501 ebx = POP32_VAL(esp); /* 0x3601F684: pop ebx */ 3502 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F685: mov dword ptr fs:[0], ecx */ 3503 esp = ebp; /* 0x3601F68C: mov esp, ebp */ 3504 ebp = POP32_VAL(esp); /* 0x3601F68E: pop ebp */ 3505 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F68F: ret 4 */ 3506 RECOMP_REGS_OUT(); 3507 } 3508 3509 void sub_3601F61A(void) { 3510 int _fpu_cmp = 0; 3511 uint32_t _cf = 0; 3512 int _df = 1; 3513 uint32_t _flag_k = FK_NONE; 3514 uint32_t _flag_a = 0, _flag_b = 0; 3515 uint32_t _itail_tgt = 0; 3516 RECOMP_REGS_LOCALS 3517 RECOMP_ENTER(0x3601F61Au); 3518 3519 L_3601F61A: 3520 edx = MEM32(edi); /* 0x3601F61A: mov edx, dword ptr [edi] */ 3521 _flag_a = (uint32_t)((ebx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebx | 0xFFFFFFFFu)); 3522 ebx = ebx | 0xFFFFFFFFu; /* 0x3601F61C: or ebx, 0xffffffff */ 3523 _cf = 0; 3524 _flag_k = FK_TEST; 3525 PUSH32(esp, eax); /* 0x3601F61F: push eax */ 3526 ecx = edi; /* 0x3601F620: mov ecx, edi */ 3527 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F622: mov dword ptr [ebp - 4], ebx */ 3528 RECOMP_ICALL(MEM32(edx)); /* 0x3601F625: call dword ptr [edx] */ 3529 RECOMP_FLAGS_IN(); 3530 ecx = esi; /* 0x3601F627: mov ecx, esi */ 3531 RECOMP_ICALL(MEM32(0x36170030)); /* 0x3601F629: call dword ptr [0x36170030] */ 3532 RECOMP_FLAGS_IN(); 3533 eax = MEM32(ebp + (-0x10)); /* 0x3601F62F: mov eax, dword ptr [ebp - 0x10] */ 3534 MEM32(0x36305B28) = eax; /* 0x3601F632: mov dword ptr [0x36305b28], eax */ 3535 RECOMP_ICALL(0x3601C590u); /* 0x3601F637: call 0x3601c590 */ /* not lifted */ 3536 RECOMP_FLAGS_IN(); 3537 ecx = eax; /* 0x3601F63C: mov ecx, eax */ 3538 RECOMP_ICALL(0x3601CDD0u); /* 0x3601F63E: call 0x3601cdd0 */ /* not lifted */ 3539 RECOMP_FLAGS_IN(); 3540 ecx = esi; /* 0x3601F643: mov ecx, esi */ 3541 RECOMP_ICALL(MEM32(0x3617002C)); /* 0x3601F645: call dword ptr [0x3617002c] */ 3542 RECOMP_FLAGS_IN(); 3543 /* test LO8(eax), LO8(eax) */ /* 0x3601F64B: test al, al */ 3544 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3545 _cf = 0; 3546 _flag_k = FK_NARROW(FK_TEST, 24); 3547 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F67F; /* 0x3601F64D: je 0x3601f67f */ 3548 L_3601F64F: 3549 PUSH32(esp, 0xB4u); /* 0x3601F64F: push 0xb4 */ 3550 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F654: call 0x3615fd6a */ /* not lifted */ 3551 RECOMP_FLAGS_IN(); 3552 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3554 esp = esp + 4; /* 0x3601F659: add esp, 4 */ 3555 _flag_k = FK_ADD; 3556 MEM32(ebp + 0x8) = eax; /* 0x3601F65C: mov dword ptr [ebp + 8], eax */ 3557 /* test eax, eax */ /* 0x3601F65F: test eax, eax */ 3558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3559 _cf = 0; 3560 _flag_k = FK_TEST; 3561 MEM32(ebp + (-0x4)) = 1; /* 0x3601F661: mov dword ptr [ebp - 4], 1 */ 3562 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F673; /* 0x3601F668: je 0x3601f673 */ 3563 L_3601F66A: 3564 ecx = eax; /* 0x3601F66A: mov ecx, eax */ 3565 RECOMP_ICALL(0x3613DD20u); /* 0x3601F66C: call 0x3613dd20 */ /* not lifted */ 3566 RECOMP_FLAGS_IN(); 3567 goto L_3601F675; /* 0x3601F671: jmp 0x3601f675 */ 3568 L_3601F673: 3569 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3570 eax = 0; /* 0x3601F673: xor eax, eax */ 3571 _cf = 0; 3572 _flag_k = FK_TEST; 3573 L_3601F675: 3574 edx = MEM32(edi); /* 0x3601F675: mov edx, dword ptr [edi] */ 3575 PUSH32(esp, eax); /* 0x3601F677: push eax */ 3576 ecx = edi; /* 0x3601F678: mov ecx, edi */ 3577 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F67A: mov dword ptr [ebp - 4], ebx */ 3578 RECOMP_ICALL(MEM32(edx)); /* 0x3601F67D: call dword ptr [edx] */ 3579 RECOMP_FLAGS_IN(); 3580 L_3601F67F: 3581 ecx = MEM32(ebp + (-0xC)); /* 0x3601F67F: mov ecx, dword ptr [ebp - 0xc] */ 3582 edi = POP32_VAL(esp); /* 0x3601F682: pop edi */ 3583 esi = POP32_VAL(esp); /* 0x3601F683: pop esi */ 3584 ebx = POP32_VAL(esp); /* 0x3601F684: pop ebx */ 3585 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F685: mov dword ptr fs:[0], ecx */ 3586 esp = ebp; /* 0x3601F68C: mov esp, ebp */ 3587 ebp = POP32_VAL(esp); /* 0x3601F68E: pop ebp */ 3588 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F68F: ret 4 */ 3589 RECOMP_REGS_OUT(); 3590 } 3591 3592 void sub_3601F675(void) { 3593 int _fpu_cmp = 0; 3594 uint32_t _cf = 0; 3595 int _df = 1; 3596 uint32_t _flag_k = FK_NONE; 3597 uint32_t _flag_a = 0, _flag_b = 0; 3598 uint32_t _itail_tgt = 0; 3599 RECOMP_REGS_LOCALS 3600 RECOMP_ENTER(0x3601F675u); 3601 3602 L_3601F675: 3603 edx = MEM32(edi); /* 0x3601F675: mov edx, dword ptr [edi] */ 3604 PUSH32(esp, eax); /* 0x3601F677: push eax */ 3605 ecx = edi; /* 0x3601F678: mov ecx, edi */ 3606 MEM32(ebp + (-0x4)) = ebx; /* 0x3601F67A: mov dword ptr [ebp - 4], ebx */ 3607 RECOMP_ICALL(MEM32(edx)); /* 0x3601F67D: call dword ptr [edx] */ 3608 RECOMP_FLAGS_IN(); 3609 ecx = MEM32(ebp + (-0xC)); /* 0x3601F67F: mov ecx, dword ptr [ebp - 0xc] */ 3610 edi = POP32_VAL(esp); /* 0x3601F682: pop edi */ 3611 esi = POP32_VAL(esp); /* 0x3601F683: pop esi */ 3612 ebx = POP32_VAL(esp); /* 0x3601F684: pop ebx */ 3613 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F685: mov dword ptr fs:[0], ecx */ 3614 esp = ebp; /* 0x3601F68C: mov esp, ebp */ 3615 ebp = POP32_VAL(esp); /* 0x3601F68E: pop ebp */ 3616 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F68F: ret 4 */ 3617 RECOMP_REGS_OUT(); 3618 } 3619 3620 void sub_3601F6E0(void) { 3621 int _fpu_cmp = 0; 3622 uint32_t _cf = 0; 3623 int _df = 1; 3624 uint32_t _flag_k = FK_NONE; 3625 uint32_t _flag_a = 0, _flag_b = 0; 3626 uint32_t _itail_tgt = 0; 3627 RECOMP_REGS_LOCALS 3628 RECOMP_ENTER(0x3601F6E0u); 3629 3630 L_3601F6E0: 3631 PUSH32(esp, ebp); /* 0x3601F6E0: push ebp */ 3632 ebp = esp; /* 0x3601F6E1: mov ebp, esp */ 3633 eax = MEM32(ebp + 0x8); /* 0x3601F6E3: mov eax, dword ptr [ebp + 8] */ 3634 PUSH32(esp, 0); /* 0x3601F6E6: push 0 */ 3635 PUSH32(esp, 0x361B2CD8u); /* 0x3601F6E8: push 0x361b2cd8 */ 3636 PUSH32(esp, 0x361B2CC0u); /* 0x3601F6ED: push 0x361b2cc0 */ 3637 PUSH32(esp, 0); /* 0x3601F6F2: push 0 */ 3638 PUSH32(esp, eax); /* 0x3601F6F4: push eax */ 3639 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3601F6F5: call dword ptr [0x3616ff70] */ 3640 RECOMP_FLAGS_IN(); 3641 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3642 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3643 esp = esp + 4; /* 0x3601F6FB: add esp, 4 */ 3644 _flag_k = FK_ADD; 3645 PUSH32(esp, eax); /* 0x3601F6FE: push eax */ 3646 RECOMP_ICALL(0x3615FD86u); /* 0x3601F6FF: call 0x3615fd86 */ /* not lifted */ 3647 RECOMP_FLAGS_IN(); 3648 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 3649 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3650 esp = esp + 0x14u; /* 0x3601F704: add esp, 0x14 */ 3651 _flag_k = FK_ADD; 3652 /* test eax, eax */ /* 0x3601F707: test eax, eax */ 3653 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3654 _cf = 0; 3655 _flag_k = FK_TEST; 3656 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F71E; /* 0x3601F709: je 0x3601f71e */ 3657 L_3601F70B: 3658 eax = MEM32(eax + 0x11C); /* 0x3601F70B: mov eax, dword ptr [eax + 0x11c] */ 3659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + 0xC)); 3660 eax = eax & MEM32(ebp + 0xC); /* 0x3601F711: and eax, dword ptr [ebp + 0xc] */ 3661 _cf = 0; 3662 _flag_k = FK_TEST; 3663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3664 _cf = (eax) != 0; 3665 eax = (uint32_t)(-(int32_t)eax); /* 0x3601F714: neg eax */ 3666 _flag_k = FK_CMP; 3667 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3601F716: sbb eax, eax */ 3668 eax = _sc ? 0xFFFFFFFFu : 0; 3669 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 3670 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 3671 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 3672 _cf = (eax) != 0; 3673 eax = (uint32_t)(-(int32_t)eax); /* 0x3601F718: neg eax */ 3674 _flag_k = FK_CMP; 3675 ebp = POP32_VAL(esp); /* 0x3601F71A: pop ebp */ 3676 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601F71B: ret 8 */ 3677 L_3601F71E: 3678 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3679 SET_LO8(eax, 0); /* 0x3601F71E: xor al, al */ 3680 _cf = 0; 3681 _flag_k = FK_NARROW(FK_TEST, 24); 3682 ebp = POP32_VAL(esp); /* 0x3601F720: pop ebp */ 3683 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601F721: ret 8 */ 3684 RECOMP_REGS_OUT(); 3685 } 3686 3687 void sub_3601F730(void) { 3688 int _fpu_cmp = 0; 3689 uint32_t _cf = 0; 3690 int _df = 1; 3691 uint32_t _flag_k = FK_NONE; 3692 uint32_t _flag_a = 0, _flag_b = 0; 3693 uint32_t _itail_tgt = 0; 3694 RECOMP_REGS_LOCALS 3695 RECOMP_ENTER(0x3601F730u); 3696 3697 L_3601F730: 3698 PUSH32(esp, ebp); /* 0x3601F730: push ebp */ 3699 ebp = esp; /* 0x3601F731: mov ebp, esp */ 3700 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3702 esp = esp - 8; /* 0x3601F733: sub esp, 8 */ 3703 _flag_k = FK_CMP; 3704 eax = MEM32(ebp + 0x8); /* 0x3601F736: mov eax, dword ptr [ebp + 8] */ 3705 ecx = MEM32(ecx + 0x84); /* 0x3601F739: mov ecx, dword ptr [ecx + 0x84] */ 3706 edx = ebp + (-0x8); /* 0x3601F73F: lea edx, [ebp - 8] */ 3707 /* cmp eax, edx */ /* 0x3601F742: cmp eax, edx */ 3708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3710 _flag_k = FK_CMP; 3711 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601F74F; /* 0x3601F744: je 0x3601f74f */ 3712 L_3601F746: 3713 MEM32(eax) = 0xC350u; /* 0x3601F746: mov dword ptr [eax], 0xc350 */ 3714 MEM32(eax + 0x4) = ecx; /* 0x3601F74C: mov dword ptr [eax + 4], ecx */ 3715 L_3601F74F: 3716 esp = ebp; /* 0x3601F74F: mov esp, ebp */ 3717 ebp = POP32_VAL(esp); /* 0x3601F751: pop ebp */ 3718 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F752: ret 4 */ 3719 RECOMP_REGS_OUT(); 3720 } 3721 3722 void sub_3601F760(void) { 3723 int _fpu_cmp = 0; 3724 uint32_t _cf = 0; 3725 int _df = 1; 3726 uint32_t _flag_k = FK_NONE; 3727 uint32_t _flag_a = 0, _flag_b = 0; 3728 uint32_t _itail_tgt = 0; 3729 RECOMP_REGS_LOCALS 3730 RECOMP_ENTER(0x3601F760u); 3731 3732 L_3601F760: 3733 PUSH32(esp, ebp); /* 0x3601F760: push ebp */ 3734 ebp = esp; /* 0x3601F761: mov ebp, esp */ 3735 eax = MEM32(ebp + 0xC); /* 0x3601F763: mov eax, dword ptr [ebp + 0xc] */ 3736 edx = MEM32(ebp + 0x8); /* 0x3601F766: mov edx, dword ptr [ebp + 8] */ 3737 PUSH32(esp, esi); /* 0x3601F769: push esi */ 3738 PUSH32(esp, eax); /* 0x3601F76A: push eax */ 3739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3741 esp = esp - 8; /* 0x3601F76B: sub esp, 8 */ 3742 _flag_k = FK_CMP; 3743 esi = ecx; /* 0x3601F76E: mov esi, ecx */ 3744 ecx = esp; /* 0x3601F770: mov ecx, esp */ 3745 PUSH32(esp, edx); /* 0x3601F772: push edx */ 3746 RECOMP_ICALL(0x360056C0u); /* 0x3601F773: call 0x360056c0 */ /* not lifted */ 3747 RECOMP_FLAGS_IN(); 3748 ecx = MEM32(esi + 0x94); /* 0x3601F778: mov ecx, dword ptr [esi + 0x94] */ 3749 RECOMP_ICALL(0x36003C20u); /* 0x3601F77E: call 0x36003c20 */ /* not lifted */ 3750 RECOMP_FLAGS_IN(); 3751 esi = POP32_VAL(esp); /* 0x3601F783: pop esi */ 3752 ebp = POP32_VAL(esp); /* 0x3601F784: pop ebp */ 3753 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601F785: ret 8 */ 3754 RECOMP_REGS_OUT(); 3755 } 3756 3757 void sub_3601F790(void) { 3758 int _fpu_cmp = 0; 3759 uint32_t _cf = 0; 3760 int _df = 1; 3761 uint32_t _flag_k = FK_NONE; 3762 uint32_t _flag_a = 0, _flag_b = 0; 3763 uint32_t _itail_tgt = 0; 3764 RECOMP_REGS_LOCALS 3765 RECOMP_ENTER(0x3601F790u); 3766 3767 goto L_3601F790; 3768 L_36004710: 3769 PUSH32(esp, 8); /* 0x36004710: push 8 */ 3770 PUSH32(esp, 0x17u); /* 0x36004712: push 0x17 */ 3771 RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004714: call dword ptr [0x3616f304] */ 3772 RECOMP_FLAGS_IN(); 3773 ecx = eax; /* 0x3600471A: mov ecx, eax */ 3774 RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600471C: call dword ptr [0x3616f2e8] */ 3775 RECOMP_FLAGS_IN(); 3776 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004722: ret */ 3777 L_3601F790: 3778 ecx = MEM32(ecx + 0x94); /* 0x3601F790: mov ecx, dword ptr [ecx + 0x94] */ 3779 RECOMP_BACKEDGE(); 3780 goto L_36004710; /* 0x3601F796: jmp 0x36004710 */ 3781 { RECOMP_REGS_OUT(); return; } /* end of function */ 3782 RECOMP_REGS_OUT(); 3783 } 3784 3785 void sub_3601F7A0(void) { 3786 int _fpu_cmp = 0; 3787 uint32_t _cf = 0; 3788 int _df = 1; 3789 uint32_t _flag_k = FK_NONE; 3790 uint32_t _flag_a = 0, _flag_b = 0; 3791 uint32_t _itail_tgt = 0; 3792 RECOMP_REGS_LOCALS 3793 RECOMP_ENTER(0x3601F7A0u); 3794 3795 goto L_3601F7A0; 3796 L_36004730: 3797 PUSH32(esp, 9); /* 0x36004730: push 9 */ 3798 PUSH32(esp, 0x17u); /* 0x36004732: push 0x17 */ 3799 RECOMP_ICALL(MEM32(0x3616F304)); /* 0x36004734: call dword ptr [0x3616f304] */ 3800 RECOMP_FLAGS_IN(); 3801 ecx = eax; /* 0x3600473A: mov ecx, eax */ 3802 RECOMP_ICALL(MEM32(0x3616F2E8)); /* 0x3600473C: call dword ptr [0x3616f2e8] */ 3803 RECOMP_FLAGS_IN(); 3804 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36004742: ret */ 3805 L_3601F7A0: 3806 ecx = MEM32(ecx + 0x94); /* 0x3601F7A0: mov ecx, dword ptr [ecx + 0x94] */ 3807 RECOMP_BACKEDGE(); 3808 goto L_36004730; /* 0x3601F7A6: jmp 0x36004730 */ 3809 { RECOMP_REGS_OUT(); return; } /* end of function */ 3810 RECOMP_REGS_OUT(); 3811 } 3812 3813 void sub_3601F7B0(void) { 3814 int _fpu_cmp = 0; 3815 uint32_t _cf = 0; 3816 int _df = 1; 3817 uint32_t _flag_k = FK_NONE; 3818 uint32_t _flag_a = 0, _flag_b = 0; 3819 uint32_t _itail_tgt = 0; 3820 RECOMP_REGS_LOCALS 3821 RECOMP_ENTER(0x3601F7B0u); 3822 3823 L_3601F7B0: 3824 RECOMP_ICALL(0x3601F240u); /* 0x3601F7B0: call 0x3601f240 */ /* not lifted */ 3825 RECOMP_FLAGS_IN(); 3826 /* test eax, eax */ /* 0x3601F7B5: test eax, eax */ 3827 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3828 _cf = 0; 3829 _flag_k = FK_TEST; 3830 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F7C0; /* 0x3601F7B7: je 0x3601f7c0 */ 3831 L_3601F7B9: 3832 ecx = eax; /* 0x3601F7B9: mov ecx, eax */ 3833 goto L_36071140; /* 0x3601F7BB: jmp 0x36071140 */ 3834 L_3601F7C0: 3835 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 3836 SET_LO8(eax, 0); /* 0x3601F7C0: xor al, al */ 3837 _cf = 0; 3838 _flag_k = FK_NARROW(FK_TEST, 24); 3839 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601F7C2: ret */ 3840 L_36071140: 3841 PUSH32(esp, esi); /* 0x36071140: push esi */ 3842 PUSH32(esp, edi); /* 0x36071141: push edi */ 3843 esi = ecx; /* 0x36071142: mov esi, ecx */ 3844 eax = MEM32(esi + 0xE4); /* 0x36071144: mov eax, dword ptr [esi + 0xe4] */ 3845 edi = esi + 0xE4; /* 0x3607114A: lea edi, [esi + 0xe4] */ 3846 PUSH32(esp, 2); /* 0x36071150: push 2 */ 3847 PUSH32(esp, 0xD7u); /* 0x36071152: push 0xd7 */ 3848 ecx = edi; /* 0x36071157: mov ecx, edi */ 3849 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36071159: call dword ptr [eax + 4] */ 3850 RECOMP_FLAGS_IN(); 3851 /* test eax, eax */ /* 0x3607115C: test eax, eax */ 3852 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3853 _cf = 0; 3854 _flag_k = FK_TEST; 3855 if (TEST_Z(_flag_a, _flag_b)) goto L_36071165; /* 0x3607115E: je 0x36071165 */ 3856 L_36071160: 3857 edi = POP32_VAL(esp); /* 0x36071160: pop edi */ 3858 SET_LO8(eax, 1); /* 0x36071161: mov al, 1 */ 3859 esi = POP32_VAL(esp); /* 0x36071163: pop esi */ 3860 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36071164: ret */ 3861 L_36071165: 3862 esi = MEM32(esi + 0x78); /* 0x36071165: mov esi, dword ptr [esi + 0x78] */ 3863 PUSH32(esp, esi); /* 0x36071168: push esi */ 3864 RECOMP_ICALL(0x3603D1C0u); /* 0x36071169: call 0x3603d1c0 */ /* not lifted */ 3865 RECOMP_FLAGS_IN(); 3866 esi = eax; /* 0x3607116E: mov esi, eax */ 3867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3869 esp = esp + 4; /* 0x36071170: add esp, 4 */ 3870 _flag_k = FK_ADD; 3871 /* cmp esi, 0xFFFFFFFFu */ /* 0x36071173: cmp esi, -1 */ 3872 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu); 3873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3874 _flag_k = FK_CMP; 3875 if (CMP_NE(_flag_a, _flag_b)) goto L_3607117D; /* 0x36071176: jne 0x3607117d */ 3876 L_36071178: 3877 edi = POP32_VAL(esp); /* 0x36071178: pop edi */ 3878 SET_LO8(eax, 1); /* 0x36071179: mov al, 1 */ 3879 esi = POP32_VAL(esp); /* 0x3607117B: pop esi */ 3880 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607117C: ret */ 3881 L_3607117D: 3882 /* cmp esi, 0x20u */ /* 0x3607117D: cmp esi, 0x20 */ 3883 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u); 3884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3885 _flag_k = FK_CMP; 3886 eax = 0x1D7u; /* 0x36071180: mov eax, 0x1d7 */ 3887 if (CMP_L(_flag_a, _flag_b)) goto L_3607118F; /* 0x36071185: jl 0x3607118f */ 3888 L_36071187: 3889 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u); 3890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3891 esi = esi - 0x20u; /* 0x36071187: sub esi, 0x20 */ 3892 _flag_k = FK_CMP; 3893 eax = 0x1D8u; /* 0x3607118A: mov eax, 0x1d8 */ 3894 L_3607118F: 3895 edx = MEM32(edi); /* 0x3607118F: mov edx, dword ptr [edi] */ 3896 PUSH32(esp, 2); /* 0x36071191: push 2 */ 3897 PUSH32(esp, eax); /* 0x36071193: push eax */ 3898 ecx = edi; /* 0x36071194: mov ecx, edi */ 3899 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36071196: call dword ptr [edx + 4] */ 3900 RECOMP_FLAGS_IN(); 3901 ecx = esi; /* 0x36071199: mov ecx, esi */ 3902 edx = 1; /* 0x3607119B: mov edx, 1 */ 3903 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x360711A0: shl edx, cl */ 3904 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3905 edx = edx << ((LO8(ecx)) & 31); /* 0x360711A0: shl edx, cl */ 3906 edi = POP32_VAL(esp); /* 0x360711A2: pop edi */ 3907 esi = POP32_VAL(esp); /* 0x360711A3: pop esi */ 3908 /* test edx, eax */ /* 0x360711A4: test edx, eax */ 3909 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3910 _cf = 0; 3911 _flag_k = FK_TEST; 3912 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360711A6: setne al */ 3913 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360711A9: ret */ 3914 RECOMP_REGS_OUT(); 3915 } 3916 3917 void sub_3601F7D0(void) { 3918 int _fpu_cmp = 0; 3919 uint32_t _cf = 0; 3920 int _df = 1; 3921 uint32_t _flag_k = FK_NONE; 3922 uint32_t _flag_a = 0, _flag_b = 0; 3923 uint32_t _itail_tgt = 0; 3924 RECOMP_REGS_LOCALS 3925 RECOMP_ENTER(0x3601F7D0u); 3926 3927 L_3601F7D0: 3928 PUSH32(esp, ebp); /* 0x3601F7D0: push ebp */ 3929 ebp = esp; /* 0x3601F7D1: mov ebp, esp */ 3930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 3931 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3932 esp = esp - 0x10u; /* 0x3601F7D3: sub esp, 0x10 */ 3933 _flag_k = FK_CMP; 3934 RECOMP_ICALL(0x3601F240u); /* 0x3601F7D6: call 0x3601f240 */ /* not lifted */ 3935 RECOMP_FLAGS_IN(); 3936 /* test eax, eax */ /* 0x3601F7DB: test eax, eax */ 3937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3938 _cf = 0; 3939 _flag_k = FK_TEST; 3940 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F804; /* 0x3601F7DD: je 0x3601f804 */ 3941 L_3601F7DF: 3942 ecx = ebp + (-0x10); /* 0x3601F7DF: lea ecx, [ebp - 0x10] */ 3943 PUSH32(esp, ecx); /* 0x3601F7E2: push ecx */ 3944 ecx = eax; /* 0x3601F7E3: mov ecx, eax */ 3945 RECOMP_ICALL(MEM32(0x36170048)); /* 0x3601F7E5: call dword ptr [0x36170048] */ 3946 RECOMP_FLAGS_IN(); 3947 ecx = MEM32(eax); /* 0x3601F7EB: mov ecx, dword ptr [eax] */ 3948 edx = MEM32(ebp + 0x8); /* 0x3601F7ED: mov edx, dword ptr [ebp + 8] */ 3949 MEM32(edx) = ecx; /* 0x3601F7F0: mov dword ptr [edx], ecx */ 3950 ecx = MEM32(eax + 0x4); /* 0x3601F7F2: mov ecx, dword ptr [eax + 4] */ 3951 MEM32(edx + 0x4) = ecx; /* 0x3601F7F5: mov dword ptr [edx + 4], ecx */ 3952 ecx = MEM32(eax + 0x8); /* 0x3601F7F8: mov ecx, dword ptr [eax + 8] */ 3953 MEM32(edx + 0x8) = ecx; /* 0x3601F7FB: mov dword ptr [edx + 8], ecx */ 3954 eax = MEM32(eax + 0xC); /* 0x3601F7FE: mov eax, dword ptr [eax + 0xc] */ 3955 MEM32(edx + 0xC) = eax; /* 0x3601F801: mov dword ptr [edx + 0xc], eax */ 3956 L_3601F804: 3957 esp = ebp; /* 0x3601F804: mov esp, ebp */ 3958 ebp = POP32_VAL(esp); /* 0x3601F806: pop ebp */ 3959 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F807: ret 4 */ 3960 RECOMP_REGS_OUT(); 3961 } 3962 3963 void sub_3601F810(void) { 3964 int _fpu_cmp = 0; 3965 uint32_t _cf = 0; 3966 int _df = 1; 3967 uint32_t _flag_k = FK_NONE; 3968 uint32_t _flag_a = 0, _flag_b = 0; 3969 uint32_t _itail_tgt = 0; 3970 RECOMP_REGS_LOCALS 3971 RECOMP_ENTER(0x3601F810u); 3972 3973 L_3601F810: 3974 PUSH32(esp, ebp); /* 0x3601F810: push ebp */ 3975 ebp = esp; /* 0x3601F811: mov ebp, esp */ 3976 RECOMP_ICALL(0x3601F240u); /* 0x3601F813: call 0x3601f240 */ /* not lifted */ 3977 RECOMP_FLAGS_IN(); 3978 /* test eax, eax */ /* 0x3601F818: test eax, eax */ 3979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3980 _cf = 0; 3981 _flag_k = FK_TEST; 3982 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F837; /* 0x3601F81A: je 0x3601f837 */ 3983 L_3601F81C: 3984 ecx = eax; /* 0x3601F81C: mov ecx, eax */ 3985 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3601F81E: call dword ptr [0x3616ffb0] */ 3986 RECOMP_FLAGS_IN(); 3987 edx = MEM32(eax); /* 0x3601F824: mov edx, dword ptr [eax] */ 3988 ecx = MEM32(ebp + 0x8); /* 0x3601F826: mov ecx, dword ptr [ebp + 8] */ 3989 MEM32(ecx) = edx; /* 0x3601F829: mov dword ptr [ecx], edx */ 3990 edx = MEM32(eax + 0x4); /* 0x3601F82B: mov edx, dword ptr [eax + 4] */ 3991 MEM32(ecx + 0x4) = edx; /* 0x3601F82E: mov dword ptr [ecx + 4], edx */ 3992 eax = MEM32(eax + 0x8); /* 0x3601F831: mov eax, dword ptr [eax + 8] */ 3993 MEM32(ecx + 0x8) = eax; /* 0x3601F834: mov dword ptr [ecx + 8], eax */ 3994 L_3601F837: 3995 ebp = POP32_VAL(esp); /* 0x3601F837: pop ebp */ 3996 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F838: ret 4 */ 3997 RECOMP_REGS_OUT(); 3998 } 3999 4000 void sub_3601F840(void) { 4001 int _fpu_cmp = 0; 4002 uint32_t _cf = 0; 4003 int _df = 1; 4004 uint32_t _flag_k = FK_NONE; 4005 uint32_t _flag_a = 0, _flag_b = 0; 4006 uint32_t _itail_tgt = 0; 4007 RECOMP_REGS_LOCALS 4008 RECOMP_ENTER(0x3601F840u); 4009 4010 L_3601F840: 4011 PUSH32(esp, ebp); /* 0x3601F840: push ebp */ 4012 ebp = esp; /* 0x3601F841: mov ebp, esp */ 4013 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601F843: push -1 */ 4014 PUSH32(esp, 0x36162FCBu); /* 0x3601F845: push 0x36162fcb */ 4015 eax = MEM32(FS_BASE + (0)); /* 0x3601F84A: mov eax, dword ptr fs:[0] */ 4016 PUSH32(esp, eax); /* 0x3601F850: push eax */ 4017 MEM32(FS_BASE + (0)) = esp; /* 0x3601F851: mov dword ptr fs:[0], esp */ 4018 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4020 esp = esp - 0x14u; /* 0x3601F858: sub esp, 0x14 */ 4021 _flag_k = FK_CMP; 4022 PUSH32(esp, ebx); /* 0x3601F85B: push ebx */ 4023 PUSH32(esp, esi); /* 0x3601F85C: push esi */ 4024 PUSH32(esp, edi); /* 0x3601F85D: push edi */ 4025 edi = ecx; /* 0x3601F85E: mov edi, ecx */ 4026 eax = MEM32(edi + 0x88); /* 0x3601F860: mov eax, dword ptr [edi + 0x88] */ 4027 ecx = MEM32(ebp + 0x8); /* 0x3601F866: mov ecx, dword ptr [ebp + 8] */ 4028 edx = MEM32(eax + 0x8); /* 0x3601F869: mov edx, dword ptr [eax + 8] */ 4029 esi = MEM32(ecx + 0x4); /* 0x3601F86C: mov esi, dword ptr [ecx + 4] */ 4030 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4032 eax = eax + 4; /* 0x3601F86F: add eax, 4 */ 4033 _flag_k = FK_ADD; 4034 /* cmp edx, esi */ /* 0x3601F872: cmp edx, esi */ 4035 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 4036 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4037 _flag_k = FK_CMP; 4038 if (CMP_NE(_flag_a, _flag_b)) goto L_3601F880; /* 0x3601F874: jne 0x3601f880 */ 4039 L_3601F876: 4040 eax = MEM32(eax); /* 0x3601F876: mov eax, dword ptr [eax] */ 4041 /* cmp eax, MEM32(ecx) */ /* 0x3601F878: cmp eax, dword ptr [ecx] */ 4042 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 4043 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4044 _flag_k = FK_CMP; 4045 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601FA28; /* 0x3601F87A: je 0x3601fa28 */ 4046 L_3601F880: 4047 PUSH32(esp, 0); /* 0x3601F880: push 0 */ 4048 PUSH32(esp, 0x361B2CD8u); /* 0x3601F882: push 0x361b2cd8 */ 4049 PUSH32(esp, 0x361B2CC0u); /* 0x3601F887: push 0x361b2cc0 */ 4050 PUSH32(esp, 0); /* 0x3601F88C: push 0 */ 4051 PUSH32(esp, ecx); /* 0x3601F88E: push ecx */ 4052 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3601F88F: call dword ptr [0x3616ff70] */ 4053 RECOMP_FLAGS_IN(); 4054 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4055 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4056 esp = esp + 4; /* 0x3601F895: add esp, 4 */ 4057 _flag_k = FK_ADD; 4058 PUSH32(esp, eax); /* 0x3601F898: push eax */ 4059 RECOMP_ICALL(0x3615FD86u); /* 0x3601F899: call 0x3615fd86 */ /* not lifted */ 4060 RECOMP_FLAGS_IN(); 4061 esi = eax; /* 0x3601F89E: mov esi, eax */ 4062 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4063 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4064 esp = esp + 0x14u; /* 0x3601F8A0: add esp, 0x14 */ 4065 _flag_k = FK_ADD; 4066 /* test esi, esi */ /* 0x3601F8A3: test esi, esi */ 4067 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4068 _cf = 0; 4069 _flag_k = FK_TEST; 4070 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FA28; /* 0x3601F8A5: je 0x3601fa28 */ 4071 L_3601F8AB: 4072 edx = MEM32(esi + 0xE4); /* 0x3601F8AB: mov edx, dword ptr [esi + 0xe4] */ 4073 ebx = esi + 0xE4; /* 0x3601F8B1: lea ebx, [esi + 0xe4] */ 4074 PUSH32(esp, 2); /* 0x3601F8B7: push 2 */ 4075 PUSH32(esp, 0x184u); /* 0x3601F8B9: push 0x184 */ 4076 ecx = ebx; /* 0x3601F8BE: mov ecx, ebx */ 4077 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3601F8C0: call dword ptr [edx + 4] */ 4078 RECOMP_FLAGS_IN(); 4079 /* test eax, eax */ /* 0x3601F8C3: test eax, eax */ 4080 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4081 _cf = 0; 4082 _flag_k = FK_TEST; 4083 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601FA28; /* 0x3601F8C5: jne 0x3601fa28 */ 4084 L_3601F8CB: 4085 ecx = esi; /* 0x3601F8CB: mov ecx, esi */ 4086 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3601F8CD: call dword ptr [0x3616ffb0] */ 4087 RECOMP_FLAGS_IN(); 4088 ecx = MEM32(edi + 0x88); /* 0x3601F8D3: mov ecx, dword ptr [edi + 0x88] */ 4089 esi = eax; /* 0x3601F8D9: mov esi, eax */ 4090 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3601F8DB: call dword ptr [0x3616ffb0] */ 4091 RECOMP_FLAGS_IN(); 4092 ecx = MEM32(eax); /* 0x3601F8E1: mov ecx, dword ptr [eax] */ 4093 edx = MEM32(eax + 0x4); /* 0x3601F8E3: mov edx, dword ptr [eax + 4] */ 4094 eax = MEM32(eax + 0x8); /* 0x3601F8E6: mov eax, dword ptr [eax + 8] */ 4095 MEM32(ebp + (-0x20)) = ecx; /* 0x3601F8E9: mov dword ptr [ebp - 0x20], ecx */ 4096 fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x3601F8EC: fld dword ptr [ebp - 0x20] */ 4097 _st[0] -= (double)*(float*)ADDR(esi); /* 0x3601F8EF: fsub dword ptr [esi] */ 4098 MEM32(ebp + (-0x1C)) = edx; /* 0x3601F8F1: mov dword ptr [ebp - 0x1c], edx */ 4099 fp_push(*(float*)&MEM32(ebp + (-0x1C))); /* 0x3601F8F4: fld dword ptr [ebp - 0x1c] */ 4100 MEM32(ebp + (-0x18)) = eax; /* 0x3601F8F7: mov dword ptr [ebp - 0x18], eax */ 4101 _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x3601F8FA: fsub dword ptr [esi + 4] */ 4102 fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x3601F8FD: fld dword ptr [ebp - 0x18] */ 4103 _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3601F900: fsub dword ptr [esi + 8] */ 4104 fp_push(_st[0]); /* 0x3601F903: fld st(0) */ 4105 _st[0] *= _st[1]; /* 0x3601F905: fmul st(1) */ 4106 fp_push(_st[2]); /* 0x3601F907: fld st(2) */ 4107 _st[0] *= _st[3]; /* 0x3601F909: fmul st(3) */ 4108 { double _v = fp_pop(); _st[0] += _v; } /* 0x3601F90B: faddp st(1) */ 4109 fp_push(_st[3]); /* 0x3601F90D: fld st(3) */ 4110 _st[0] *= _st[4]; /* 0x3601F90F: fmul st(4) */ 4111 { double _v = fp_pop(); _st[0] += _v; } /* 0x3601F911: faddp st(1) */ 4112 _st[0] = sqrt(_st[0]); /* 0x3601F913: fsqrt */ 4113 { _st[3] = _st[0]; g_st_i64[3] = g_st_i64[0]; fp_pop(); } /* 0x3601F915: fstp st(3) */ 4114 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3601F917: fstp st(0) */ 4115 { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3601F919: fstp st(0) */ 4116 _fpu_cmp = FPU_CMP(_st[0], *(double*)ADDR(0x36170808)); /* 0x3601F91B: fcomp qword ptr [0x36170808] */ 4117 fp_pop(); 4118 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3601F921: fnstsw ax */ 4119 /* test HI8(eax), 0x41u */ /* 0x3601F923: test ah, 0x41 */ 4120 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24; 4121 _cf = 0; 4122 _flag_k = FK_NARROW(FK_TEST, 24); 4123 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601F94E; /* 0x3601F926: jne 0x3601f94e */ 4124 L_3601F928: 4125 PUSH32(esp, 0); /* 0x3601F928: push 0 */ 4126 PUSH32(esp, 0x361B5B28u); /* 0x3601F92A: push 0x361b5b28 */ 4127 RECOMP_ICALL(0x3601C590u); /* 0x3601F92F: call 0x3601c590 */ /* not lifted */ 4128 RECOMP_FLAGS_IN(); 4129 ecx = eax; /* 0x3601F934: mov ecx, eax */ 4130 RECOMP_ICALL(0x3601C8C0u); /* 0x3601F936: call 0x3601c8c0 */ /* not lifted */ 4131 RECOMP_FLAGS_IN(); 4132 edi = POP32_VAL(esp); /* 0x3601F93B: pop edi */ 4133 esi = POP32_VAL(esp); /* 0x3601F93C: pop esi */ 4134 ebx = POP32_VAL(esp); /* 0x3601F93D: pop ebx */ 4135 ecx = MEM32(ebp + (-0xC)); /* 0x3601F93E: mov ecx, dword ptr [ebp - 0xc] */ 4136 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F941: mov dword ptr fs:[0], ecx */ 4137 esp = ebp; /* 0x3601F948: mov esp, ebp */ 4138 ebp = POP32_VAL(esp); /* 0x3601F94A: pop ebp */ 4139 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F94B: ret 4 */ 4140 L_3601F94E: 4141 edx = MEM32(ebx); /* 0x3601F94E: mov edx, dword ptr [ebx] */ 4142 PUSH32(esp, 8); /* 0x3601F950: push 8 */ 4143 ecx = ebx; /* 0x3601F952: mov ecx, ebx */ 4144 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3601F954: call dword ptr [edx + 0x1c] */ 4145 RECOMP_FLAGS_IN(); 4146 /* test LO8(eax), LO8(eax) */ /* 0x3601F957: test al, al */ 4147 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4148 _cf = 0; 4149 _flag_k = FK_NARROW(FK_TEST, 24); 4150 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F9B5; /* 0x3601F959: je 0x3601f9b5 */ 4151 L_3601F95B: 4152 ecx = edi; /* 0x3601F95B: mov ecx, edi */ 4153 RECOMP_ICALL(0x3601F240u); /* 0x3601F95D: call 0x3601f240 */ /* not lifted */ 4154 RECOMP_FLAGS_IN(); 4155 ecx = eax + 0xE4; /* 0x3601F962: lea ecx, [eax + 0xe4] */ 4156 eax = MEM32(ecx); /* 0x3601F968: mov eax, dword ptr [ecx] */ 4157 PUSH32(esp, 8); /* 0x3601F96A: push 8 */ 4158 RECOMP_ICALL(MEM32(eax + 0x1C)); /* 0x3601F96C: call dword ptr [eax + 0x1c] */ 4159 RECOMP_FLAGS_IN(); 4160 /* test LO8(eax), LO8(eax) */ /* 0x3601F96F: test al, al */ 4161 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4162 _cf = 0; 4163 _flag_k = FK_NARROW(FK_TEST, 24); 4164 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601F999; /* 0x3601F971: jne 0x3601f999 */ 4165 L_3601F973: 4166 PUSH32(esp, 0); /* 0x3601F973: push 0 */ 4167 PUSH32(esp, 0x361B5B08u); /* 0x3601F975: push 0x361b5b08 */ 4168 RECOMP_ICALL(0x3601C590u); /* 0x3601F97A: call 0x3601c590 */ /* not lifted */ 4169 RECOMP_FLAGS_IN(); 4170 ecx = eax; /* 0x3601F97F: mov ecx, eax */ 4171 RECOMP_ICALL(0x3601C8C0u); /* 0x3601F981: call 0x3601c8c0 */ /* not lifted */ 4172 RECOMP_FLAGS_IN(); 4173 edi = POP32_VAL(esp); /* 0x3601F986: pop edi */ 4174 esi = POP32_VAL(esp); /* 0x3601F987: pop esi */ 4175 ebx = POP32_VAL(esp); /* 0x3601F988: pop ebx */ 4176 ecx = MEM32(ebp + (-0xC)); /* 0x3601F989: mov ecx, dword ptr [ebp - 0xc] */ 4177 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F98C: mov dword ptr fs:[0], ecx */ 4178 esp = ebp; /* 0x3601F993: mov esp, ebp */ 4179 ebp = POP32_VAL(esp); /* 0x3601F995: pop ebp */ 4180 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F996: ret 4 */ 4181 L_3601F999: 4182 PUSH32(esp, 1); /* 0x3601F999: push 1 */ 4183 ecx = edi; /* 0x3601F99B: mov ecx, edi */ 4184 RECOMP_ICALL(0x3601FAC0u); /* 0x3601F99D: call 0x3601fac0 */ /* not lifted */ 4185 RECOMP_FLAGS_IN(); 4186 edi = POP32_VAL(esp); /* 0x3601F9A2: pop edi */ 4187 esi = POP32_VAL(esp); /* 0x3601F9A3: pop esi */ 4188 ebx = POP32_VAL(esp); /* 0x3601F9A4: pop ebx */ 4189 ecx = MEM32(ebp + (-0xC)); /* 0x3601F9A5: mov ecx, dword ptr [ebp - 0xc] */ 4190 MEM32(FS_BASE + (0)) = ecx; /* 0x3601F9A8: mov dword ptr fs:[0], ecx */ 4191 esp = ebp; /* 0x3601F9AF: mov esp, ebp */ 4192 ebp = POP32_VAL(esp); /* 0x3601F9B1: pop ebp */ 4193 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601F9B2: ret 4 */ 4194 L_3601F9B5: 4195 edx = MEM32(ebx); /* 0x3601F9B5: mov edx, dword ptr [ebx] */ 4196 PUSH32(esp, 8); /* 0x3601F9B7: push 8 */ 4197 ecx = ebx; /* 0x3601F9B9: mov ecx, ebx */ 4198 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3601F9BB: call dword ptr [edx + 0x1c] */ 4199 RECOMP_FLAGS_IN(); 4200 /* test LO8(eax), LO8(eax) */ /* 0x3601F9BE: test al, al */ 4201 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4202 _cf = 0; 4203 _flag_k = FK_NARROW(FK_TEST, 24); 4204 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601FA28; /* 0x3601F9C0: jne 0x3601fa28 */ 4205 L_3601F9C2: 4206 PUSH32(esp, 0x34u); /* 0x3601F9C2: push 0x34 */ 4207 RECOMP_ICALL(0x3615FD6Au); /* 0x3601F9C4: call 0x3615fd6a */ /* not lifted */ 4208 RECOMP_FLAGS_IN(); 4209 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4211 esp = esp + 4; /* 0x3601F9C9: add esp, 4 */ 4212 _flag_k = FK_ADD; 4213 MEM32(ebp + (-0x14)) = eax; /* 0x3601F9CC: mov dword ptr [ebp - 0x14], eax */ 4214 /* test eax, eax */ /* 0x3601F9CF: test eax, eax */ 4215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4216 _cf = 0; 4217 _flag_k = FK_TEST; 4218 MEM32(ebp + (-0x4)) = 0; /* 0x3601F9D1: mov dword ptr [ebp - 4], 0 */ 4219 if (TEST_Z(_flag_a, _flag_b)) goto L_3601F9F8; /* 0x3601F9D8: je 0x3601f9f8 */ 4220 L_3601F9DA: 4221 ecx = MEM32(ebp + 0x8); /* 0x3601F9DA: mov ecx, dword ptr [ebp + 8] */ 4222 edx = MEM32(edi + 0x88); /* 0x3601F9DD: mov edx, dword ptr [edi + 0x88] */ 4223 PUSH32(esp, 0x36305AE0u); /* 0x3601F9E3: push 0x36305ae0 */ 4224 PUSH32(esp, ecx); /* 0x3601F9E8: push ecx */ 4225 PUSH32(esp, 0); /* 0x3601F9E9: push 0 */ 4226 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 4227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4228 edx = edx + 4; /* 0x3601F9EB: add edx, 4 */ 4229 _flag_k = FK_ADD; 4230 PUSH32(esp, edx); /* 0x3601F9EE: push edx */ 4231 ecx = eax; /* 0x3601F9EF: mov ecx, eax */ 4232 RECOMP_ICALL(0x36084A70u); /* 0x3601F9F1: call 0x36084a70 */ /* not lifted */ 4233 RECOMP_FLAGS_IN(); 4234 goto L_3601F9FA; /* 0x3601F9F6: jmp 0x3601f9fa */ 4235 L_3601F9F8: 4236 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4237 eax = 0; /* 0x3601F9F8: xor eax, eax */ 4238 _cf = 0; 4239 _flag_k = FK_TEST; 4240 L_3601F9FA: 4241 ecx = MEM32(edi + 0x88); /* 0x3601F9FA: mov ecx, dword ptr [edi + 0x88] */ 4242 MEM32(ebp + (-0x10)) = eax; /* 0x3601FA00: mov dword ptr [ebp - 0x10], eax */ 4243 eax = ebp + (-0x10); /* 0x3601FA03: lea eax, [ebp - 0x10] */ 4244 PUSH32(esp, eax); /* 0x3601FA06: push eax */ 4245 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3601FA07: mov dword ptr [ebp - 4], 0xffffffff */ 4246 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3601FA0E: call dword ptr [0x3617004c] */ 4247 RECOMP_FLAGS_IN(); 4248 ecx = MEM32(ebp + 0x8); /* 0x3601FA14: mov ecx, dword ptr [ebp + 8] */ 4249 PUSH32(esp, 0); /* 0x3601FA17: push 0 */ 4250 PUSH32(esp, ecx); /* 0x3601FA19: push ecx */ 4251 PUSH32(esp, 0x1Au); /* 0x3601FA1A: push 0x1a */ 4252 RECOMP_ICALL(0x3601C590u); /* 0x3601FA1C: call 0x3601c590 */ /* not lifted */ 4253 RECOMP_FLAGS_IN(); 4254 ecx = eax; /* 0x3601FA21: mov ecx, eax */ 4255 RECOMP_ICALL(0x3601D080u); /* 0x3601FA23: call 0x3601d080 */ /* not lifted */ 4256 RECOMP_FLAGS_IN(); 4257 L_3601FA28: 4258 ecx = MEM32(ebp + (-0xC)); /* 0x3601FA28: mov ecx, dword ptr [ebp - 0xc] */ 4259 edi = POP32_VAL(esp); /* 0x3601FA2B: pop edi */ 4260 esi = POP32_VAL(esp); /* 0x3601FA2C: pop esi */ 4261 ebx = POP32_VAL(esp); /* 0x3601FA2D: pop ebx */ 4262 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FA2E: mov dword ptr fs:[0], ecx */ 4263 esp = ebp; /* 0x3601FA35: mov esp, ebp */ 4264 ebp = POP32_VAL(esp); /* 0x3601FA37: pop ebp */ 4265 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601FA38: ret 4 */ 4266 RECOMP_REGS_OUT(); 4267 } 4268 4269 void sub_3601FA40(void) { 4270 int _fpu_cmp = 0; 4271 uint32_t _cf = 0; 4272 int _df = 1; 4273 uint32_t _flag_k = FK_NONE; 4274 uint32_t _flag_a = 0, _flag_b = 0; 4275 uint32_t _itail_tgt = 0; 4276 RECOMP_REGS_LOCALS 4277 RECOMP_ENTER(0x3601FA40u); 4278 4279 L_3601FA40: 4280 PUSH32(esp, ebp); /* 0x3601FA40: push ebp */ 4281 ebp = esp; /* 0x3601FA41: mov ebp, esp */ 4282 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601FA43: push -1 */ 4283 PUSH32(esp, 0x36162FEBu); /* 0x3601FA45: push 0x36162feb */ 4284 eax = MEM32(FS_BASE + (0)); /* 0x3601FA4A: mov eax, dword ptr fs:[0] */ 4285 PUSH32(esp, eax); /* 0x3601FA50: push eax */ 4286 MEM32(FS_BASE + (0)) = esp; /* 0x3601FA51: mov dword ptr fs:[0], esp */ 4287 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4289 esp = esp - 8; /* 0x3601FA58: sub esp, 8 */ 4290 _flag_k = FK_CMP; 4291 PUSH32(esp, esi); /* 0x3601FA5B: push esi */ 4292 PUSH32(esp, 0x34u); /* 0x3601FA5C: push 0x34 */ 4293 esi = ecx; /* 0x3601FA5E: mov esi, ecx */ 4294 RECOMP_ICALL(0x3615FD6Au); /* 0x3601FA60: call 0x3615fd6a */ /* not lifted */ 4295 RECOMP_FLAGS_IN(); 4296 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4297 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4298 esp = esp + 4; /* 0x3601FA65: add esp, 4 */ 4299 _flag_k = FK_ADD; 4300 MEM32(ebp + (-0x14)) = eax; /* 0x3601FA68: mov dword ptr [ebp - 0x14], eax */ 4301 /* test eax, eax */ /* 0x3601FA6B: test eax, eax */ 4302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4303 _cf = 0; 4304 _flag_k = FK_TEST; 4305 MEM32(ebp + (-0x4)) = 0; /* 0x3601FA6D: mov dword ptr [ebp - 4], 0 */ 4306 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FA95; /* 0x3601FA74: je 0x3601fa95 */ 4307 L_3601FA76: 4308 ecx = MEM32(esi + 0x88); /* 0x3601FA76: mov ecx, dword ptr [esi + 0x88] */ 4309 PUSH32(esp, 0x36305AE0u); /* 0x3601FA7C: push 0x36305ae0 */ 4310 PUSH32(esp, 0x36305AE0u); /* 0x3601FA81: push 0x36305ae0 */ 4311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4313 ecx = ecx + 4; /* 0x3601FA86: add ecx, 4 */ 4314 _flag_k = FK_ADD; 4315 PUSH32(esp, 1); /* 0x3601FA89: push 1 */ 4316 PUSH32(esp, ecx); /* 0x3601FA8B: push ecx */ 4317 ecx = eax; /* 0x3601FA8C: mov ecx, eax */ 4318 RECOMP_ICALL(0x36084A70u); /* 0x3601FA8E: call 0x36084a70 */ /* not lifted */ 4319 RECOMP_FLAGS_IN(); 4320 goto L_3601FA97; /* 0x3601FA93: jmp 0x3601fa97 */ 4321 L_3601FA95: 4322 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4323 eax = 0; /* 0x3601FA95: xor eax, eax */ 4324 _cf = 0; 4325 _flag_k = FK_TEST; 4326 L_3601FA97: 4327 ecx = MEM32(esi + 0x88); /* 0x3601FA97: mov ecx, dword ptr [esi + 0x88] */ 4328 edx = ebp + (-0x10); /* 0x3601FA9D: lea edx, [ebp - 0x10] */ 4329 PUSH32(esp, edx); /* 0x3601FAA0: push edx */ 4330 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3601FAA1: mov dword ptr [ebp - 4], 0xffffffff */ 4331 MEM32(ebp + (-0x10)) = eax; /* 0x3601FAA8: mov dword ptr [ebp - 0x10], eax */ 4332 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3601FAAB: call dword ptr [0x3617004c] */ 4333 RECOMP_FLAGS_IN(); 4334 ecx = MEM32(ebp + (-0xC)); /* 0x3601FAB1: mov ecx, dword ptr [ebp - 0xc] */ 4335 esi = POP32_VAL(esp); /* 0x3601FAB4: pop esi */ 4336 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FAB5: mov dword ptr fs:[0], ecx */ 4337 esp = ebp; /* 0x3601FABC: mov esp, ebp */ 4338 ebp = POP32_VAL(esp); /* 0x3601FABE: pop ebp */ 4339 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3601FABF: ret */ 4340 RECOMP_REGS_OUT(); 4341 } 4342 4343 void sub_3601FAC0(void) { 4344 int _fpu_cmp = 0; 4345 uint32_t _cf = 0; 4346 int _df = 1; 4347 uint32_t _flag_k = FK_NONE; 4348 uint32_t _flag_a = 0, _flag_b = 0; 4349 uint32_t _itail_tgt = 0; 4350 RECOMP_REGS_LOCALS 4351 RECOMP_ENTER(0x3601FAC0u); 4352 4353 L_3601FAC0: 4354 PUSH32(esp, ebp); /* 0x3601FAC0: push ebp */ 4355 ebp = esp; /* 0x3601FAC1: mov ebp, esp */ 4356 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601FAC3: push -1 */ 4357 PUSH32(esp, 0x3616300Bu); /* 0x3601FAC5: push 0x3616300b */ 4358 eax = MEM32(FS_BASE + (0)); /* 0x3601FACA: mov eax, dword ptr fs:[0] */ 4359 PUSH32(esp, eax); /* 0x3601FAD0: push eax */ 4360 MEM32(FS_BASE + (0)) = esp; /* 0x3601FAD1: mov dword ptr fs:[0], esp */ 4361 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4363 esp = esp - 0x10u; /* 0x3601FAD8: sub esp, 0x10 */ 4364 _flag_k = FK_CMP; 4365 PUSH32(esp, esi); /* 0x3601FADB: push esi */ 4366 PUSH32(esp, 0x34u); /* 0x3601FADC: push 0x34 */ 4367 esi = ecx; /* 0x3601FADE: mov esi, ecx */ 4368 RECOMP_ICALL(0x3615FD6Au); /* 0x3601FAE0: call 0x3615fd6a */ /* not lifted */ 4369 RECOMP_FLAGS_IN(); 4370 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4371 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4372 esp = esp + 4; /* 0x3601FAE5: add esp, 4 */ 4373 _flag_k = FK_ADD; 4374 MEM32(ebp + (-0x14)) = eax; /* 0x3601FAE8: mov dword ptr [ebp - 0x14], eax */ 4375 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4376 ecx = 0; /* 0x3601FAEB: xor ecx, ecx */ 4377 _cf = 0; 4378 _flag_k = FK_TEST; 4379 /* cmp eax, ecx */ /* 0x3601FAED: cmp eax, ecx */ 4380 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4382 _flag_k = FK_CMP; 4383 MEM32(ebp + (-0x4)) = ecx; /* 0x3601FAEF: mov dword ptr [ebp - 4], ecx */ 4384 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601FB21; /* 0x3601FAF2: je 0x3601fb21 */ 4385 L_3601FAF4: 4386 MEM32(ebp + (-0x1C)) = ecx; /* 0x3601FAF4: mov dword ptr [ebp - 0x1c], ecx */ 4387 ecx = MEM32(ebp + 0x8); /* 0x3601FAF7: mov ecx, dword ptr [ebp + 8] */ 4388 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 4389 ecx = ecx & 0xFFu; /* 0x3601FAFA: and ecx, 0xff */ 4390 _cf = 0; 4391 _flag_k = FK_TEST; 4392 PUSH32(esp, 0x36305AE0u); /* 0x3601FB00: push 0x36305ae0 */ 4393 MEM32(ebp + (-0x18)) = ecx; /* 0x3601FB05: mov dword ptr [ebp - 0x18], ecx */ 4394 ecx = MEM32(esi + 0x88); /* 0x3601FB08: mov ecx, dword ptr [esi + 0x88] */ 4395 edx = ebp + (-0x1C); /* 0x3601FB0E: lea edx, [ebp - 0x1c] */ 4396 PUSH32(esp, edx); /* 0x3601FB11: push edx */ 4397 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4398 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4399 ecx = ecx + 4; /* 0x3601FB12: add ecx, 4 */ 4400 _flag_k = FK_ADD; 4401 PUSH32(esp, 2); /* 0x3601FB15: push 2 */ 4402 PUSH32(esp, ecx); /* 0x3601FB17: push ecx */ 4403 ecx = eax; /* 0x3601FB18: mov ecx, eax */ 4404 RECOMP_ICALL(0x36084A70u); /* 0x3601FB1A: call 0x36084a70 */ /* not lifted */ 4405 RECOMP_FLAGS_IN(); 4406 goto L_3601FB23; /* 0x3601FB1F: jmp 0x3601fb23 */ 4407 L_3601FB21: 4408 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4409 eax = 0; /* 0x3601FB21: xor eax, eax */ 4410 _cf = 0; 4411 _flag_k = FK_TEST; 4412 L_3601FB23: 4413 ecx = MEM32(esi + 0x88); /* 0x3601FB23: mov ecx, dword ptr [esi + 0x88] */ 4414 edx = ebp + (-0x10); /* 0x3601FB29: lea edx, [ebp - 0x10] */ 4415 PUSH32(esp, edx); /* 0x3601FB2C: push edx */ 4416 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3601FB2D: mov dword ptr [ebp - 4], 0xffffffff */ 4417 MEM32(ebp + (-0x10)) = eax; /* 0x3601FB34: mov dword ptr [ebp - 0x10], eax */ 4418 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3601FB37: call dword ptr [0x3617004c] */ 4419 RECOMP_FLAGS_IN(); 4420 ecx = MEM32(ebp + (-0xC)); /* 0x3601FB3D: mov ecx, dword ptr [ebp - 0xc] */ 4421 esi = POP32_VAL(esp); /* 0x3601FB40: pop esi */ 4422 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FB41: mov dword ptr fs:[0], ecx */ 4423 esp = ebp; /* 0x3601FB48: mov esp, ebp */ 4424 ebp = POP32_VAL(esp); /* 0x3601FB4A: pop ebp */ 4425 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3601FB4B: ret 4 */ 4426 RECOMP_REGS_OUT(); 4427 } 4428 4429 void sub_3601FB50(void) { 4430 int _fpu_cmp = 0; 4431 uint32_t _cf = 0; 4432 int _df = 1; 4433 uint32_t _flag_k = FK_NONE; 4434 uint32_t _flag_a = 0, _flag_b = 0; 4435 uint32_t _itail_tgt = 0; 4436 RECOMP_REGS_LOCALS 4437 RECOMP_ENTER(0x3601FB50u); 4438 4439 L_3601FB50: 4440 PUSH32(esp, ebp); /* 0x3601FB50: push ebp */ 4441 ebp = esp; /* 0x3601FB51: mov ebp, esp */ 4442 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601FB53: push -1 */ 4443 PUSH32(esp, 0x3616302Bu); /* 0x3601FB55: push 0x3616302b */ 4444 eax = MEM32(FS_BASE + (0)); /* 0x3601FB5A: mov eax, dword ptr fs:[0] */ 4445 PUSH32(esp, eax); /* 0x3601FB60: push eax */ 4446 MEM32(FS_BASE + (0)) = esp; /* 0x3601FB61: mov dword ptr fs:[0], esp */ 4447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10Cu); 4448 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4449 esp = esp - 0x10Cu; /* 0x3601FB68: sub esp, 0x10c */ 4450 _flag_k = FK_CMP; 4451 PUSH32(esp, ebx); /* 0x3601FB6E: push ebx */ 4452 PUSH32(esp, esi); /* 0x3601FB6F: push esi */ 4453 PUSH32(esp, edi); /* 0x3601FB70: push edi */ 4454 MEM32(ebp + (-0x18)) = ecx; /* 0x3601FB71: mov dword ptr [ebp - 0x18], ecx */ 4455 RECOMP_ICALL(0x3601F240u); /* 0x3601FB74: call 0x3601f240 */ /* not lifted */ 4456 RECOMP_FLAGS_IN(); 4457 edi = eax; /* 0x3601FB79: mov edi, eax */ 4458 /* test edi, edi */ /* 0x3601FB7B: test edi, edi */ 4459 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 4460 _cf = 0; 4461 _flag_k = FK_TEST; 4462 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FF37; /* 0x3601FB7D: je 0x3601ff37 */ 4463 L_3601FB83: 4464 esi = MEM32(ebp + 0xC); /* 0x3601FB83: mov esi, dword ptr [ebp + 0xc] */ 4465 ecx = MEM32(edi + 0x150); /* 0x3601FB86: mov ecx, dword ptr [edi + 0x150] */ 4466 PUSH32(esp, esi); /* 0x3601FB8C: push esi */ 4467 RECOMP_ICALL(0x36062040u); /* 0x3601FB8D: call 0x36062040 */ /* not lifted */ 4468 RECOMP_FLAGS_IN(); 4469 ecx = MEM32(esi + 0x4); /* 0x3601FB92: mov ecx, dword ptr [esi + 4] */ 4470 edx = MEM32(ebp + 0x8); /* 0x3601FB95: mov edx, dword ptr [ebp + 8] */ 4471 PUSH32(esp, 0x6Fu); /* 0x3601FB98: push 0x6f */ 4472 ebx = eax; /* 0x3601FB9A: mov ebx, eax */ 4473 eax = MEM32(esi); /* 0x3601FB9C: mov eax, dword ptr [esi] */ 4474 PUSH32(esp, esi); /* 0x3601FB9E: push esi */ 4475 MEM32(ebp + 0xC) = ecx; /* 0x3601FB9F: mov dword ptr [ebp + 0xc], ecx */ 4476 ecx = MEM32(edi + 0x150); /* 0x3601FBA2: mov ecx, dword ptr [edi + 0x150] */ 4477 PUSH32(esp, edx); /* 0x3601FBA8: push edx */ 4478 MEM32(ebp + (-0x10)) = ebx; /* 0x3601FBA9: mov dword ptr [ebp - 0x10], ebx */ 4479 MEM32(ebp + (-0x14)) = eax; /* 0x3601FBAC: mov dword ptr [ebp - 0x14], eax */ 4480 RECOMP_ICALL(0x36060510u); /* 0x3601FBAF: call 0x36060510 */ /* not lifted */ 4481 RECOMP_FLAGS_IN(); 4482 /* test LO8(eax), LO8(eax) */ /* 0x3601FBB4: test al, al */ 4483 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4484 _cf = 0; 4485 _flag_k = FK_NARROW(FK_TEST, 24); 4486 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FEFF; /* 0x3601FBB6: je 0x3601feff */ 4487 L_3601FBBC: 4488 ecx = MEM32(edi + 0x150); /* 0x3601FBBC: mov ecx, dword ptr [edi + 0x150] */ 4489 PUSH32(esp, esi); /* 0x3601FBC2: push esi */ 4490 RECOMP_ICALL(0x36061B10u); /* 0x3601FBC3: call 0x36061b10 */ /* not lifted */ 4491 RECOMP_FLAGS_IN(); 4492 /* test LO8(eax), LO8(eax) */ /* 0x3601FBC8: test al, al */ 4493 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4494 _cf = 0; 4495 _flag_k = FK_NARROW(FK_TEST, 24); 4496 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601FEFF; /* 0x3601FBCA: jne 0x3601feff */ 4497 L_3601FBD0: 4498 eax = MEM32(edi + 0x150); /* 0x3601FBD0: mov eax, dword ptr [edi + 0x150] */ 4499 eax = MEM32(eax + 0x10); /* 0x3601FBD6: mov eax, dword ptr [eax + 0x10] */ 4500 PUSH32(esp, 0); /* 0x3601FBD9: push 0 */ 4501 ecx = eax; /* 0x3601FBDB: mov ecx, eax */ 4502 RECOMP_ICALL(0x3602D210u); /* 0x3601FBDD: call 0x3602d210 */ /* not lifted */ 4503 RECOMP_FLAGS_IN(); 4504 /* cmp eax, 0xFFFFFFFFu */ /* 0x3601FBE2: cmp eax, -1 */ 4505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4507 _flag_k = FK_CMP; 4508 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FC0D; /* 0x3601FBE5: jne 0x3601fc0d */ 4509 L_3601FBE7: 4510 PUSH32(esp, 0); /* 0x3601FBE7: push 0 */ 4511 PUSH32(esp, 0x361B5C50u); /* 0x3601FBE9: push 0x361b5c50 */ 4512 RECOMP_ICALL(0x3601C590u); /* 0x3601FBEE: call 0x3601c590 */ /* not lifted */ 4513 RECOMP_FLAGS_IN(); 4514 ecx = eax; /* 0x3601FBF3: mov ecx, eax */ 4515 RECOMP_ICALL(0x3601C8C0u); /* 0x3601FBF5: call 0x3601c8c0 */ /* not lifted */ 4516 RECOMP_FLAGS_IN(); 4517 edi = POP32_VAL(esp); /* 0x3601FBFA: pop edi */ 4518 esi = POP32_VAL(esp); /* 0x3601FBFB: pop esi */ 4519 ebx = POP32_VAL(esp); /* 0x3601FBFC: pop ebx */ 4520 ecx = MEM32(ebp + (-0xC)); /* 0x3601FBFD: mov ecx, dword ptr [ebp - 0xc] */ 4521 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FC00: mov dword ptr fs:[0], ecx */ 4522 esp = ebp; /* 0x3601FC07: mov esp, ebp */ 4523 ebp = POP32_VAL(esp); /* 0x3601FC09: pop ebp */ 4524 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FC0A: ret 8 */ 4525 L_3601FC0D: 4526 eax = MEM32(esi); /* 0x3601FC0D: mov eax, dword ptr [esi] */ 4527 /* cmp eax, 0x6Fu */ /* 0x3601FC0F: cmp eax, 0x6f */ 4528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Fu); 4529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4530 _flag_k = FK_CMP; 4531 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FC34; /* 0x3601FC12: jne 0x3601fc34 */ 4532 L_3601FC14: 4533 ecx = MEM32(ebp + (-0x18)); /* 0x3601FC14: mov ecx, dword ptr [ebp - 0x18] */ 4534 RECOMP_ICALL(0x3601F240u); /* 0x3601FC17: call 0x3601f240 */ /* not lifted */ 4535 RECOMP_FLAGS_IN(); 4536 PUSH32(esp, esi); /* 0x3601FC1C: push esi */ 4537 ecx = eax; /* 0x3601FC1D: mov ecx, eax */ 4538 RECOMP_ICALL(0x36071F90u); /* 0x3601FC1F: call 0x36071f90 */ /* not lifted */ 4539 RECOMP_FLAGS_IN(); 4540 ecx = eax; /* 0x3601FC24: mov ecx, eax */ 4541 RECOMP_ICALL(0x36078250u); /* 0x3601FC26: call 0x36078250 */ /* not lifted */ 4542 RECOMP_FLAGS_IN(); 4543 ebx = eax; /* 0x3601FC2B: mov ebx, eax */ 4544 /* test ebx, ebx */ /* 0x3601FC2D: test ebx, ebx */ 4545 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4546 _cf = 0; 4547 _flag_k = FK_TEST; 4548 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601FC98; /* 0x3601FC2F: jne 0x3601fc98 */ 4549 L_3601FC31: 4550 ebx = MEM32(ebp + (-0x10)); /* 0x3601FC31: mov ebx, dword ptr [ebp - 0x10] */ 4551 L_3601FC34: 4552 eax = MEM32(ebp + (-0x14)); /* 0x3601FC34: mov eax, dword ptr [ebp - 0x14] */ 4553 /* cmp eax, 0x64u */ /* 0x3601FC37: cmp eax, 0x64 */ 4554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u); 4555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4556 _flag_k = FK_CMP; 4557 if (CMP_LE(_flag_a, _flag_b)) goto L_3601FD30; /* 0x3601FC3A: jle 0x3601fd30 */ 4558 L_3601FC40: 4559 /* cmp eax, 0xFAu */ /* 0x3601FC40: cmp eax, 0xfa */ 4560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFAu); 4561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4562 _flag_k = FK_CMP; 4563 if (CMP_GE(_flag_a, _flag_b)) goto L_3601FD30; /* 0x3601FC45: jge 0x3601fd30 */ 4564 L_3601FC4B: 4565 ecx = MEM32(edi + 0x150); /* 0x3601FC4B: mov ecx, dword ptr [edi + 0x150] */ 4566 PUSH32(esp, esi); /* 0x3601FC51: push esi */ 4567 RECOMP_ICALL(0x36061800u); /* 0x3601FC52: call 0x36061800 */ /* not lifted */ 4568 RECOMP_FLAGS_IN(); 4569 /* test eax, eax */ /* 0x3601FC57: test eax, eax */ 4570 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4571 _cf = 0; 4572 _flag_k = FK_TEST; 4573 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FDA6; /* 0x3601FC59: je 0x3601fda6 */ 4574 L_3601FC5F: 4575 /* cmp MEM32(ebp + (-0x14)), 0x6Bu */ /* 0x3601FC5F: cmp dword ptr [ebp - 0x14], 0x6b */ 4576 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(0x6Bu); 4577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4578 _flag_k = FK_CMP; 4579 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FC71; /* 0x3601FC63: jne 0x3601fc71 */ 4580 L_3601FC65: 4581 ecx = MEM32(ebp + 0xC); /* 0x3601FC65: mov ecx, dword ptr [ebp + 0xc] */ 4582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFu); 4583 ecx = ecx & 0xFFFFu; /* 0x3601FC68: and ecx, 0xffff */ 4584 _cf = 0; 4585 _flag_k = FK_TEST; 4586 MEM32(ebp + 0xC) = ecx; /* 0x3601FC6E: mov dword ptr [ebp + 0xc], ecx */ 4587 L_3601FC71: 4588 edx = MEM32(ebp + 0xC); /* 0x3601FC71: mov edx, dword ptr [ebp + 0xc] */ 4589 PUSH32(esp, edx); /* 0x3601FC74: push edx */ 4590 ecx = eax; /* 0x3601FC75: mov ecx, eax */ 4591 RECOMP_ICALL(0x3602D330u); /* 0x3601FC77: call 0x3602d330 */ /* not lifted */ 4592 RECOMP_FLAGS_IN(); 4593 ebx = eax; /* 0x3601FC7C: mov ebx, eax */ 4594 /* test ebx, ebx */ /* 0x3601FC7E: test ebx, ebx */ 4595 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4596 _cf = 0; 4597 _flag_k = FK_TEST; 4598 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601FC98; /* 0x3601FC80: jne 0x3601fc98 */ 4599 L_3601FC82: 4600 ecx = MEM32(edi + 0x150); /* 0x3601FC82: mov ecx, dword ptr [edi + 0x150] */ 4601 PUSH32(esp, esi); /* 0x3601FC88: push esi */ 4602 RECOMP_ICALL(0x36062040u); /* 0x3601FC89: call 0x36062040 */ /* not lifted */ 4603 RECOMP_FLAGS_IN(); 4604 ebx = eax; /* 0x3601FC8E: mov ebx, eax */ 4605 L_3601FC90: 4606 /* test ebx, ebx */ /* 0x3601FC90: test ebx, ebx */ 4607 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4608 _cf = 0; 4609 _flag_k = FK_TEST; 4610 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FDA3; /* 0x3601FC92: je 0x3601fda3 */ 4611 L_3601FC98: 4612 PUSH32(esp, 0); /* 0x3601FC98: push 0 */ 4613 PUSH32(esp, 0x361B2CD8u); /* 0x3601FC9A: push 0x361b2cd8 */ 4614 PUSH32(esp, 0x361B2CC0u); /* 0x3601FC9F: push 0x361b2cc0 */ 4615 PUSH32(esp, 0); /* 0x3601FCA4: push 0 */ 4616 ecx = edi; /* 0x3601FCA6: mov ecx, edi */ 4617 RECOMP_ICALL(0x36071F90u); /* 0x3601FCA8: call 0x36071f90 */ /* not lifted */ 4618 RECOMP_FLAGS_IN(); 4619 PUSH32(esp, eax); /* 0x3601FCAD: push eax */ 4620 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3601FCAE: call dword ptr [0x3616ff70] */ 4621 RECOMP_FLAGS_IN(); 4622 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4623 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4624 esp = esp + 4; /* 0x3601FCB4: add esp, 4 */ 4625 _flag_k = FK_ADD; 4626 PUSH32(esp, eax); /* 0x3601FCB7: push eax */ 4627 RECOMP_ICALL(0x3615FD86u); /* 0x3601FCB8: call 0x3615fd86 */ /* not lifted */ 4628 RECOMP_FLAGS_IN(); 4629 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4631 esp = esp + 0x14u; /* 0x3601FCBD: add esp, 0x14 */ 4632 _flag_k = FK_ADD; 4633 /* test eax, eax */ /* 0x3601FCC0: test eax, eax */ 4634 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4635 _cf = 0; 4636 _flag_k = FK_TEST; 4637 MEM8(ebp + 0xF) = (uint8_t)(0); /* 0x3601FCC2: mov byte ptr [ebp + 0xf], 0 */ 4638 SET_LO8(ecx, 1); /* 0x3601FCC6: mov cl, 1 */ 4639 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FCD7; /* 0x3601FCC8: je 0x3601fcd7 */ 4640 L_3601FCCA: 4641 SET_LO8(edx, MEM8(eax + 0x1B4)); /* 0x3601FCCA: mov dl, byte ptr [eax + 0x1b4] */ 4642 /* test LO8(edx), LO8(edx) */ /* 0x3601FCD0: test dl, dl */ 4643 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4644 _cf = 0; 4645 _flag_k = FK_NARROW(FK_TEST, 24); 4646 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FCD7; /* 0x3601FCD2: je 0x3601fcd7 */ 4647 L_3601FCD4: 4648 MEM8(ebp + 0xF) = (uint8_t)(LO8(ecx)); /* 0x3601FCD4: mov byte ptr [ebp + 0xf], cl */ 4649 L_3601FCD7: 4650 /* cmp MEM32(esi), 0x6Fu */ /* 0x3601FCD7: cmp dword ptr [esi], 0x6f */ 4651 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0x6Fu); 4652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4653 _flag_k = FK_CMP; 4654 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FCDF; /* 0x3601FCDA: jne 0x3601fcdf */ 4655 L_3601FCDC: 4656 MEM8(ebp + 0xF) = (uint8_t)(LO8(ecx)); /* 0x3601FCDC: mov byte ptr [ebp + 0xf], cl */ 4657 L_3601FCDF: 4658 edx = MEM32(ebx); /* 0x3601FCDF: mov edx, dword ptr [ebx] */ 4659 PUSH32(esp, 0x04000000u); /* 0x3601FCE1: push 0x4000000 */ 4660 ecx = ebx; /* 0x3601FCE6: mov ecx, ebx */ 4661 RECOMP_ICALL(MEM32(edx + 0x1C)); /* 0x3601FCE8: call dword ptr [edx + 0x1c] */ 4662 RECOMP_FLAGS_IN(); 4663 /* test LO8(eax), LO8(eax) */ /* 0x3601FCEB: test al, al */ 4664 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4665 _cf = 0; 4666 _flag_k = FK_NARROW(FK_TEST, 24); 4667 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FDA3; /* 0x3601FCED: je 0x3601fda3 */ 4668 L_3601FCF3: 4669 SET_LO8(eax, MEM8(ebp + 0xF)); /* 0x3601FCF3: mov al, byte ptr [ebp + 0xf] */ 4670 /* test LO8(eax), LO8(eax) */ /* 0x3601FCF6: test al, al */ 4671 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4672 _cf = 0; 4673 _flag_k = FK_NARROW(FK_TEST, 24); 4674 if (TEST_NZ(_flag_a, _flag_b)) goto L_3601FDA3; /* 0x3601FCF8: jne 0x3601fda3 */ 4675 L_3601FCFE: 4676 PUSH32(esp, 0); /* 0x3601FCFE: push 0 */ 4677 PUSH32(esp, 0x361B5C28u); /* 0x3601FD00: push 0x361b5c28 */ 4678 RECOMP_ICALL(0x3601C590u); /* 0x3601FD05: call 0x3601c590 */ /* not lifted */ 4679 RECOMP_FLAGS_IN(); 4680 ecx = eax; /* 0x3601FD0A: mov ecx, eax */ 4681 RECOMP_ICALL(0x3601C8C0u); /* 0x3601FD0C: call 0x3601c8c0 */ /* not lifted */ 4682 RECOMP_FLAGS_IN(); 4683 ecx = MEM32(edi + 0x150); /* 0x3601FD11: mov ecx, dword ptr [edi + 0x150] */ 4684 PUSH32(esp, esi); /* 0x3601FD17: push esi */ 4685 RECOMP_ICALL(0x360624B0u); /* 0x3601FD18: call 0x360624b0 */ /* not lifted */ 4686 RECOMP_FLAGS_IN(); 4687 edi = POP32_VAL(esp); /* 0x3601FD1D: pop edi */ 4688 esi = POP32_VAL(esp); /* 0x3601FD1E: pop esi */ 4689 ebx = POP32_VAL(esp); /* 0x3601FD1F: pop ebx */ 4690 ecx = MEM32(ebp + (-0xC)); /* 0x3601FD20: mov ecx, dword ptr [ebp - 0xc] */ 4691 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FD23: mov dword ptr fs:[0], ecx */ 4692 esp = ebp; /* 0x3601FD2A: mov esp, ebp */ 4693 ebp = POP32_VAL(esp); /* 0x3601FD2C: pop ebp */ 4694 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FD2D: ret 8 */ 4695 L_3601FD30: 4696 eax = MEM32(ebp + (-0x10)); /* 0x3601FD30: mov eax, dword ptr [ebp - 0x10] */ 4697 /* test eax, eax */ /* 0x3601FD33: test eax, eax */ 4698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4699 _cf = 0; 4700 _flag_k = FK_TEST; 4701 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FDF3; /* 0x3601FD35: je 0x3601fdf3 */ 4702 L_3601FD3B: 4703 /* cmp MEM32(eax + 0x90), 0xC749u */ /* 0x3601FD3B: cmp dword ptr [eax + 0x90], 0xc749 */ 4704 _flag_a = (uint32_t)(MEM32(eax + 0x90)); _flag_b = (uint32_t)(0xC749u); 4705 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4706 _flag_k = FK_CMP; 4707 RECOMP_BACKEDGE(); 4708 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FC90; /* 0x3601FD45: jne 0x3601fc90 */ 4709 L_3601FD4B: 4710 PUSH32(esp, 0); /* 0x3601FD4B: push 0 */ 4711 PUSH32(esp, 0x361B5C10u); /* 0x3601FD4D: push 0x361b5c10 */ 4712 PUSH32(esp, 0x361B2CF8u); /* 0x3601FD52: push 0x361b2cf8 */ 4713 PUSH32(esp, 0); /* 0x3601FD57: push 0 */ 4714 PUSH32(esp, eax); /* 0x3601FD59: push eax */ 4715 RECOMP_ICALL(0x3615FD86u); /* 0x3601FD5A: call 0x3615fd86 */ /* not lifted */ 4716 RECOMP_FLAGS_IN(); 4717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4719 esp = esp + 0x14u; /* 0x3601FD5F: add esp, 0x14 */ 4720 _flag_k = FK_ADD; 4721 /* test eax, eax */ /* 0x3601FD62: test eax, eax */ 4722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4723 _cf = 0; 4724 _flag_k = FK_TEST; 4725 RECOMP_BACKEDGE(); 4726 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FC90; /* 0x3601FD64: je 0x3601fc90 */ 4727 L_3601FD6A: 4728 PUSH32(esp, 0x04000000u); /* 0x3601FD6A: push 0x4000000 */ 4729 ecx = eax; /* 0x3601FD6F: mov ecx, eax */ 4730 RECOMP_ICALL(0x3608BDD0u); /* 0x3601FD71: call 0x3608bdd0 */ /* not lifted */ 4731 RECOMP_FLAGS_IN(); 4732 /* test LO8(eax), LO8(eax) */ /* 0x3601FD76: test al, al */ 4733 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4734 _cf = 0; 4735 _flag_k = FK_NARROW(FK_TEST, 24); 4736 RECOMP_BACKEDGE(); 4737 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FC90; /* 0x3601FD78: je 0x3601fc90 */ 4738 L_3601FD7E: 4739 PUSH32(esp, 0); /* 0x3601FD7E: push 0 */ 4740 PUSH32(esp, 0x361B5BD8u); /* 0x3601FD80: push 0x361b5bd8 */ 4741 RECOMP_ICALL(0x3601C590u); /* 0x3601FD85: call 0x3601c590 */ /* not lifted */ 4742 RECOMP_FLAGS_IN(); 4743 ecx = eax; /* 0x3601FD8A: mov ecx, eax */ 4744 RECOMP_ICALL(0x3601C8C0u); /* 0x3601FD8C: call 0x3601c8c0 */ /* not lifted */ 4745 RECOMP_FLAGS_IN(); 4746 ecx = MEM32(ebp + (-0x10)); /* 0x3601FD91: mov ecx, dword ptr [ebp - 0x10] */ 4747 eax = MEM32(ecx); /* 0x3601FD94: mov eax, dword ptr [ecx] */ 4748 PUSH32(esp, 2); /* 0x3601FD96: push 2 */ 4749 PUSH32(esp, 0x37u); /* 0x3601FD98: push 0x37 */ 4750 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3601FD9A: call dword ptr [eax + 4] */ 4751 RECOMP_FLAGS_IN(); 4752 PUSH32(esp, eax); /* 0x3601FD9D: push eax */ 4753 goto L_3601FF2B; /* 0x3601FD9E: jmp 0x3601ff2b */ 4754 L_3601FDA3: 4755 ebx = MEM32(ebp + (-0x10)); /* 0x3601FDA3: mov ebx, dword ptr [ebp - 0x10] */ 4756 L_3601FDA6: 4757 /* test ebx, ebx */ /* 0x3601FDA6: test ebx, ebx */ 4758 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4759 _cf = 0; 4760 _flag_k = FK_TEST; 4761 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FDF6; /* 0x3601FDA8: je 0x3601fdf6 */ 4762 L_3601FDAA: 4763 ecx = ebx + 0x8C; /* 0x3601FDAA: lea ecx, [ebx + 0x8c] */ 4764 RECOMP_ICALL(MEM32(0x36170050)); /* 0x3601FDB0: call dword ptr [0x36170050] */ 4765 RECOMP_FLAGS_IN(); 4766 /* cmp eax, edi */ /* 0x3601FDB6: cmp eax, edi */ 4767 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4769 _flag_k = FK_CMP; 4770 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601FDF6; /* 0x3601FDB8: je 0x3601fdf6 */ 4771 L_3601FDBA: 4772 PUSH32(esp, 0); /* 0x3601FDBA: push 0 */ 4773 PUSH32(esp, 0x361B5BB4u); /* 0x3601FDBC: push 0x361b5bb4 */ 4774 RECOMP_ICALL(0x3601C590u); /* 0x3601FDC1: call 0x3601c590 */ /* not lifted */ 4775 RECOMP_FLAGS_IN(); 4776 ecx = eax; /* 0x3601FDC6: mov ecx, eax */ 4777 RECOMP_ICALL(0x3601C8C0u); /* 0x3601FDC8: call 0x3601c8c0 */ /* not lifted */ 4778 RECOMP_FLAGS_IN(); 4779 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x118u); 4780 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4781 ebx = ebx + 0x118u; /* 0x3601FDCD: add ebx, 0x118 */ 4782 _flag_k = FK_ADD; 4783 PUSH32(esp, ebx); /* 0x3601FDD3: push ebx */ 4784 RECOMP_ICALL(0x3601C590u); /* 0x3601FDD4: call 0x3601c590 */ /* not lifted */ 4785 RECOMP_FLAGS_IN(); 4786 ecx = eax; /* 0x3601FDD9: mov ecx, eax */ 4787 RECOMP_ICALL(0x3601CA80u); /* 0x3601FDDB: call 0x3601ca80 */ /* not lifted */ 4788 RECOMP_FLAGS_IN(); 4789 edi = POP32_VAL(esp); /* 0x3601FDE0: pop edi */ 4790 esi = POP32_VAL(esp); /* 0x3601FDE1: pop esi */ 4791 ebx = POP32_VAL(esp); /* 0x3601FDE2: pop ebx */ 4792 ecx = MEM32(ebp + (-0xC)); /* 0x3601FDE3: mov ecx, dword ptr [ebp - 0xc] */ 4793 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FDE6: mov dword ptr fs:[0], ecx */ 4794 esp = ebp; /* 0x3601FDED: mov esp, ebp */ 4795 ebp = POP32_VAL(esp); /* 0x3601FDEF: pop ebp */ 4796 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FDF0: ret 8 */ 4797 L_3601FDF3: 4798 ebx = MEM32(ebp + (-0x10)); /* 0x3601FDF3: mov ebx, dword ptr [ebp - 0x10] */ 4799 L_3601FDF6: 4800 ecx = edi; /* 0x3601FDF6: mov ecx, edi */ 4801 RECOMP_ICALL(0x36071F90u); /* 0x3601FDF8: call 0x36071f90 */ /* not lifted */ 4802 RECOMP_FLAGS_IN(); 4803 /* cmp MEM32(eax), 0xC75Bu */ /* 0x3601FDFD: cmp dword ptr [eax], 0xc75b */ 4804 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xC75Bu); 4805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4806 _flag_k = FK_CMP; 4807 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FE3D; /* 0x3601FE03: jne 0x3601fe3d */ 4808 L_3601FE05: 4809 /* test ebx, ebx */ /* 0x3601FE05: test ebx, ebx */ 4810 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4811 _cf = 0; 4812 _flag_k = FK_TEST; 4813 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FE3D; /* 0x3601FE07: je 0x3601fe3d */ 4814 L_3601FE09: 4815 eax = MEM32(ebx); /* 0x3601FE09: mov eax, dword ptr [ebx] */ 4816 PUSH32(esp, 2); /* 0x3601FE0B: push 2 */ 4817 PUSH32(esp, 8); /* 0x3601FE0D: push 8 */ 4818 ecx = ebx; /* 0x3601FE0F: mov ecx, ebx */ 4819 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3601FE11: call dword ptr [eax + 4] */ 4820 RECOMP_FLAGS_IN(); 4821 /* cmp eax, 0xFFFFFFFFu */ /* 0x3601FE14: cmp eax, -1 */ 4822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 4823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4824 _flag_k = FK_CMP; 4825 if (CMP_EQ(_flag_a, _flag_b)) goto L_3601FE3D; /* 0x3601FE17: je 0x3601fe3d */ 4826 L_3601FE19: 4827 PUSH32(esp, 0); /* 0x3601FE19: push 0 */ 4828 PUSH32(esp, 0x361B5B84u); /* 0x3601FE1B: push 0x361b5b84 */ 4829 RECOMP_ICALL(0x3601C590u); /* 0x3601FE20: call 0x3601c590 */ /* not lifted */ 4830 RECOMP_FLAGS_IN(); 4831 ecx = eax; /* 0x3601FE25: mov ecx, eax */ 4832 RECOMP_ICALL(0x3601C8C0u); /* 0x3601FE27: call 0x3601c8c0 */ /* not lifted */ 4833 RECOMP_FLAGS_IN(); 4834 edx = MEM32(ebx); /* 0x3601FE2C: mov edx, dword ptr [ebx] */ 4835 PUSH32(esp, 2); /* 0x3601FE2E: push 2 */ 4836 PUSH32(esp, 0x37u); /* 0x3601FE30: push 0x37 */ 4837 ecx = ebx; /* 0x3601FE32: mov ecx, ebx */ 4838 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3601FE34: call dword ptr [edx + 4] */ 4839 RECOMP_FLAGS_IN(); 4840 PUSH32(esp, eax); /* 0x3601FE37: push eax */ 4841 goto L_3601FF2B; /* 0x3601FE38: jmp 0x3601ff2b */ 4842 L_3601FE3D: 4843 /* cmp MEM32(ebp + (-0x14)), 0x6Fu */ /* 0x3601FE3D: cmp dword ptr [ebp - 0x14], 0x6f */ 4844 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(0x6Fu); 4845 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4846 _flag_k = FK_CMP; 4847 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FE56; /* 0x3601FE41: jne 0x3601fe56 */ 4848 L_3601FE43: 4849 PUSH32(esp, esi); /* 0x3601FE43: push esi */ 4850 ecx = edi; /* 0x3601FE44: mov ecx, edi */ 4851 RECOMP_ICALL(0x36071F90u); /* 0x3601FE46: call 0x36071f90 */ /* not lifted */ 4852 RECOMP_FLAGS_IN(); 4853 ecx = eax; /* 0x3601FE4B: mov ecx, eax */ 4854 RECOMP_ICALL(0x360781C0u); /* 0x3601FE4D: call 0x360781c0 */ /* not lifted */ 4855 RECOMP_FLAGS_IN(); 4856 /* test eax, eax */ /* 0x3601FE52: test eax, eax */ 4857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4858 _cf = 0; 4859 _flag_k = FK_TEST; 4860 if (TEST_G(_flag_a, _flag_b)) goto L_3601FEBD; /* 0x3601FE54: jg 0x3601febd */ 4861 L_3601FE56: 4862 PUSH32(esp, 0x34u); /* 0x3601FE56: push 0x34 */ 4863 RECOMP_ICALL(0x3615FD6Au); /* 0x3601FE58: call 0x3615fd6a */ /* not lifted */ 4864 RECOMP_FLAGS_IN(); 4865 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4866 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4867 esp = esp + 4; /* 0x3601FE5D: add esp, 4 */ 4868 _flag_k = FK_ADD; 4869 MEM32(ebp + (-0x14)) = eax; /* 0x3601FE60: mov dword ptr [ebp - 0x14], eax */ 4870 /* test eax, eax */ /* 0x3601FE63: test eax, eax */ 4871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4872 _cf = 0; 4873 _flag_k = FK_TEST; 4874 MEM32(ebp + (-0x4)) = 0; /* 0x3601FE65: mov dword ptr [ebp - 4], 0 */ 4875 if (TEST_Z(_flag_a, _flag_b)) goto L_3601FE8B; /* 0x3601FE6C: je 0x3601fe8b */ 4876 L_3601FE6E: 4877 ecx = MEM32(ebp + 0x8); /* 0x3601FE6E: mov ecx, dword ptr [ebp + 8] */ 4878 edx = MEM32(ebp + (-0x18)); /* 0x3601FE71: mov edx, dword ptr [ebp - 0x18] */ 4879 PUSH32(esp, esi); /* 0x3601FE74: push esi */ 4880 PUSH32(esp, ecx); /* 0x3601FE75: push ecx */ 4881 ecx = MEM32(edx + 0x88); /* 0x3601FE76: mov ecx, dword ptr [edx + 0x88] */ 4882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4884 ecx = ecx + 4; /* 0x3601FE7C: add ecx, 4 */ 4885 _flag_k = FK_ADD; 4886 PUSH32(esp, 4); /* 0x3601FE7F: push 4 */ 4887 PUSH32(esp, ecx); /* 0x3601FE81: push ecx */ 4888 ecx = eax; /* 0x3601FE82: mov ecx, eax */ 4889 RECOMP_ICALL(0x36084A70u); /* 0x3601FE84: call 0x36084a70 */ /* not lifted */ 4890 RECOMP_FLAGS_IN(); 4891 goto L_3601FE8D; /* 0x3601FE89: jmp 0x3601fe8d */ 4892 L_3601FE8B: 4893 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4894 eax = 0; /* 0x3601FE8B: xor eax, eax */ 4895 _cf = 0; 4896 _flag_k = FK_TEST; 4897 L_3601FE8D: 4898 MEM32(ebp + 0xC) = eax; /* 0x3601FE8D: mov dword ptr [ebp + 0xc], eax */ 4899 eax = MEM32(ebp + (-0x18)); /* 0x3601FE90: mov eax, dword ptr [ebp - 0x18] */ 4900 ecx = MEM32(eax + 0x88); /* 0x3601FE93: mov ecx, dword ptr [eax + 0x88] */ 4901 edx = ebp + 0xC; /* 0x3601FE99: lea edx, [ebp + 0xc] */ 4902 PUSH32(esp, edx); /* 0x3601FE9C: push edx */ 4903 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3601FE9D: mov dword ptr [ebp - 4], 0xffffffff */ 4904 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3601FEA4: call dword ptr [0x3617004c] */ 4905 RECOMP_FLAGS_IN(); 4906 edi = POP32_VAL(esp); /* 0x3601FEAA: pop edi */ 4907 esi = POP32_VAL(esp); /* 0x3601FEAB: pop esi */ 4908 ebx = POP32_VAL(esp); /* 0x3601FEAC: pop ebx */ 4909 ecx = MEM32(ebp + (-0xC)); /* 0x3601FEAD: mov ecx, dword ptr [ebp - 0xc] */ 4910 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FEB0: mov dword ptr fs:[0], ecx */ 4911 esp = ebp; /* 0x3601FEB7: mov esp, ebp */ 4912 ebp = POP32_VAL(esp); /* 0x3601FEB9: pop ebp */ 4913 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FEBA: ret 8 */ 4914 L_3601FEBD: 4915 PUSH32(esp, eax); /* 0x3601FEBD: push eax */ 4916 PUSH32(esp, 0x361B5B4Cu); /* 0x3601FEBE: push 0x361b5b4c */ 4917 ecx = ebp + (-0x118); /* 0x3601FEC3: lea ecx, [ebp - 0x118] */ 4918 PUSH32(esp, 0x100u); /* 0x3601FEC9: push 0x100 */ 4919 PUSH32(esp, ecx); /* 0x3601FECE: push ecx */ 4920 RECOMP_ICALL(0x360085B0u); /* 0x3601FECF: call 0x360085b0 */ /* not lifted */ 4921 RECOMP_FLAGS_IN(); 4922 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4924 esp = esp + 0x10u; /* 0x3601FED4: add esp, 0x10 */ 4925 _flag_k = FK_ADD; 4926 edx = ebp + (-0x118); /* 0x3601FED7: lea edx, [ebp - 0x118] */ 4927 PUSH32(esp, 0); /* 0x3601FEDD: push 0 */ 4928 PUSH32(esp, edx); /* 0x3601FEDF: push edx */ 4929 RECOMP_ICALL(0x3601C590u); /* 0x3601FEE0: call 0x3601c590 */ /* not lifted */ 4930 RECOMP_FLAGS_IN(); 4931 ecx = eax; /* 0x3601FEE5: mov ecx, eax */ 4932 RECOMP_ICALL(0x3601C8C0u); /* 0x3601FEE7: call 0x3601c8c0 */ /* not lifted */ 4933 RECOMP_FLAGS_IN(); 4934 edi = POP32_VAL(esp); /* 0x3601FEEC: pop edi */ 4935 esi = POP32_VAL(esp); /* 0x3601FEED: pop esi */ 4936 ebx = POP32_VAL(esp); /* 0x3601FEEE: pop ebx */ 4937 ecx = MEM32(ebp + (-0xC)); /* 0x3601FEEF: mov ecx, dword ptr [ebp - 0xc] */ 4938 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FEF2: mov dword ptr fs:[0], ecx */ 4939 esp = ebp; /* 0x3601FEF9: mov esp, ebp */ 4940 ebp = POP32_VAL(esp); /* 0x3601FEFB: pop ebp */ 4941 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FEFC: ret 8 */ 4942 L_3601FEFF: 4943 PUSH32(esp, 1); /* 0x3601FEFF: push 1 */ 4944 RECOMP_ICALL(0x3601C590u); /* 0x3601FF01: call 0x3601c590 */ /* not lifted */ 4945 RECOMP_FLAGS_IN(); 4946 ecx = eax; /* 0x3601FF06: mov ecx, eax */ 4947 RECOMP_ICALL(0x3601C880u); /* 0x3601FF08: call 0x3601c880 */ /* not lifted */ 4948 RECOMP_FLAGS_IN(); 4949 PUSH32(esp, 3); /* 0x3601FF0D: push 3 */ 4950 RECOMP_ICALL(0x3601C590u); /* 0x3601FF0F: call 0x3601c590 */ /* not lifted */ 4951 RECOMP_FLAGS_IN(); 4952 ecx = eax; /* 0x3601FF14: mov ecx, eax */ 4953 RECOMP_ICALL(0x3601C880u); /* 0x3601FF16: call 0x3601c880 */ /* not lifted */ 4954 RECOMP_FLAGS_IN(); 4955 PUSH32(esp, 7); /* 0x3601FF1B: push 7 */ 4956 RECOMP_ICALL(0x3601C590u); /* 0x3601FF1D: call 0x3601c590 */ /* not lifted */ 4957 RECOMP_FLAGS_IN(); 4958 ecx = eax; /* 0x3601FF22: mov ecx, eax */ 4959 RECOMP_ICALL(0x3601C880u); /* 0x3601FF24: call 0x3601c880 */ /* not lifted */ 4960 RECOMP_FLAGS_IN(); 4961 PUSH32(esp, 8); /* 0x3601FF29: push 8 */ 4962 L_3601FF2B: 4963 RECOMP_ICALL(0x3601C590u); /* 0x3601FF2B: call 0x3601c590 */ /* not lifted */ 4964 RECOMP_FLAGS_IN(); 4965 ecx = eax; /* 0x3601FF30: mov ecx, eax */ 4966 RECOMP_ICALL(0x3601C880u); /* 0x3601FF32: call 0x3601c880 */ /* not lifted */ 4967 RECOMP_FLAGS_IN(); 4968 L_3601FF37: 4969 ecx = MEM32(ebp + (-0xC)); /* 0x3601FF37: mov ecx, dword ptr [ebp - 0xc] */ 4970 edi = POP32_VAL(esp); /* 0x3601FF3A: pop edi */ 4971 esi = POP32_VAL(esp); /* 0x3601FF3B: pop esi */ 4972 ebx = POP32_VAL(esp); /* 0x3601FF3C: pop ebx */ 4973 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FF3D: mov dword ptr fs:[0], ecx */ 4974 esp = ebp; /* 0x3601FF44: mov esp, ebp */ 4975 ebp = POP32_VAL(esp); /* 0x3601FF46: pop ebp */ 4976 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FF47: ret 8 */ 4977 RECOMP_REGS_OUT(); 4978 } 4979 4980 void sub_3601FF2B(void) { 4981 int _fpu_cmp = 0; 4982 uint32_t _cf = 0; 4983 int _df = 1; 4984 uint32_t _flag_k = FK_NONE; 4985 uint32_t _flag_a = 0, _flag_b = 0; 4986 uint32_t _itail_tgt = 0; 4987 RECOMP_REGS_LOCALS 4988 RECOMP_ENTER(0x3601FF2Bu); 4989 4990 L_3601FF2B: 4991 RECOMP_ICALL(0x3601C590u); /* 0x3601FF2B: call 0x3601c590 */ /* not lifted */ 4992 RECOMP_FLAGS_IN(); 4993 ecx = eax; /* 0x3601FF30: mov ecx, eax */ 4994 RECOMP_ICALL(0x3601C880u); /* 0x3601FF32: call 0x3601c880 */ /* not lifted */ 4995 RECOMP_FLAGS_IN(); 4996 ecx = MEM32(ebp + (-0xC)); /* 0x3601FF37: mov ecx, dword ptr [ebp - 0xc] */ 4997 edi = POP32_VAL(esp); /* 0x3601FF3A: pop edi */ 4998 esi = POP32_VAL(esp); /* 0x3601FF3B: pop esi */ 4999 ebx = POP32_VAL(esp); /* 0x3601FF3C: pop ebx */ 5000 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FF3D: mov dword ptr fs:[0], ecx */ 5001 esp = ebp; /* 0x3601FF44: mov esp, ebp */ 5002 ebp = POP32_VAL(esp); /* 0x3601FF46: pop ebp */ 5003 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FF47: ret 8 */ 5004 RECOMP_REGS_OUT(); 5005 } 5006 5007 void sub_3601FF50(void) { 5008 int _fpu_cmp = 0; 5009 uint32_t _cf = 0; 5010 int _df = 1; 5011 uint32_t _flag_k = FK_NONE; 5012 uint32_t _flag_a = 0, _flag_b = 0; 5013 uint32_t _itail_tgt = 0; 5014 RECOMP_REGS_LOCALS 5015 RECOMP_ENTER(0x3601FF50u); 5016 5017 L_3601FF50: 5018 PUSH32(esp, ebp); /* 0x3601FF50: push ebp */ 5019 ebp = esp; /* 0x3601FF51: mov ebp, esp */ 5020 PUSH32(esp, 0xFFFFFFFFu); /* 0x3601FF53: push -1 */ 5021 PUSH32(esp, 0x3616304Bu); /* 0x3601FF55: push 0x3616304b */ 5022 eax = MEM32(FS_BASE + (0)); /* 0x3601FF5A: mov eax, dword ptr fs:[0] */ 5023 PUSH32(esp, eax); /* 0x3601FF60: push eax */ 5024 MEM32(FS_BASE + (0)) = esp; /* 0x3601FF61: mov dword ptr fs:[0], esp */ 5025 PUSH32(esp, ecx); /* 0x3601FF68: push ecx */ 5026 PUSH32(esp, esi); /* 0x3601FF69: push esi */ 5027 PUSH32(esp, edi); /* 0x3601FF6A: push edi */ 5028 edi = ecx; /* 0x3601FF6B: mov edi, ecx */ 5029 RECOMP_ICALL(0x3601F240u); /* 0x3601FF6D: call 0x3601f240 */ /* not lifted */ 5030 RECOMP_FLAGS_IN(); 5031 /* test eax, eax */ /* 0x3601FF72: test eax, eax */ 5032 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5033 _cf = 0; 5034 _flag_k = FK_TEST; 5035 if (TEST_Z(_flag_a, _flag_b)) goto L_36020023; /* 0x3601FF74: je 0x36020023 */ 5036 L_3601FF7A: 5037 esi = MEM32(ebp + 0x8); /* 0x3601FF7A: mov esi, dword ptr [ebp + 8] */ 5038 ecx = MEM32(esi + 0x4); /* 0x3601FF7D: mov ecx, dword ptr [esi + 4] */ 5039 /* cmp ecx, MEM32(eax + 0x8) */ /* 0x3601FF80: cmp ecx, dword ptr [eax + 8] */ 5040 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 5041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5042 _flag_k = FK_CMP; 5043 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FFD5; /* 0x3601FF83: jne 0x3601ffd5 */ 5044 L_3601FF85: 5045 edx = MEM32(esi); /* 0x3601FF85: mov edx, dword ptr [esi] */ 5046 /* cmp edx, MEM32(eax + 0x4) */ /* 0x3601FF87: cmp edx, dword ptr [eax + 4] */ 5047 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 5048 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5049 _flag_k = FK_CMP; 5050 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FFD5; /* 0x3601FF8A: jne 0x3601ffd5 */ 5051 L_3601FF8C: 5052 eax = MEM32(eax + 0x150); /* 0x3601FF8C: mov eax, dword ptr [eax + 0x150] */ 5053 eax = MEM32(eax + 0xC); /* 0x3601FF92: mov eax, dword ptr [eax + 0xc] */ 5054 PUSH32(esp, 0x30u); /* 0x3601FF95: push 0x30 */ 5055 ecx = eax; /* 0x3601FF97: mov ecx, eax */ 5056 RECOMP_ICALL(0x3602D210u); /* 0x3601FF99: call 0x3602d210 */ /* not lifted */ 5057 RECOMP_FLAGS_IN(); 5058 /* cmp eax, 0xFFFFFFFFu */ /* 0x3601FF9E: cmp eax, -1 */ 5059 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu); 5060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5061 _flag_k = FK_CMP; 5062 if (CMP_NE(_flag_a, _flag_b)) goto L_3601FFD5; /* 0x3601FFA1: jne 0x3601ffd5 */ 5063 L_3601FFA3: 5064 PUSH32(esp, esi); /* 0x3601FFA3: push esi */ 5065 RECOMP_ICALL(0x3601C590u); /* 0x3601FFA4: call 0x3601c590 */ /* not lifted */ 5066 RECOMP_FLAGS_IN(); 5067 ecx = eax; /* 0x3601FFA9: mov ecx, eax */ 5068 RECOMP_ICALL(0x3601CA80u); /* 0x3601FFAB: call 0x3601ca80 */ /* not lifted */ 5069 RECOMP_FLAGS_IN(); 5070 PUSH32(esp, 0); /* 0x3601FFB0: push 0 */ 5071 PUSH32(esp, 0x361B5C78u); /* 0x3601FFB2: push 0x361b5c78 */ 5072 RECOMP_ICALL(0x3601C590u); /* 0x3601FFB7: call 0x3601c590 */ /* not lifted */ 5073 RECOMP_FLAGS_IN(); 5074 ecx = eax; /* 0x3601FFBC: mov ecx, eax */ 5075 RECOMP_ICALL(0x3601C8C0u); /* 0x3601FFBE: call 0x3601c8c0 */ /* not lifted */ 5076 RECOMP_FLAGS_IN(); 5077 edi = POP32_VAL(esp); /* 0x3601FFC3: pop edi */ 5078 esi = POP32_VAL(esp); /* 0x3601FFC4: pop esi */ 5079 ecx = MEM32(ebp + (-0xC)); /* 0x3601FFC5: mov ecx, dword ptr [ebp - 0xc] */ 5080 MEM32(FS_BASE + (0)) = ecx; /* 0x3601FFC8: mov dword ptr fs:[0], ecx */ 5081 esp = ebp; /* 0x3601FFCF: mov esp, ebp */ 5082 ebp = POP32_VAL(esp); /* 0x3601FFD1: pop ebp */ 5083 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3601FFD2: ret 8 */ 5084 L_3601FFD5: 5085 PUSH32(esp, 0x34u); /* 0x3601FFD5: push 0x34 */ 5086 RECOMP_ICALL(0x3615FD6Au); /* 0x3601FFD7: call 0x3615fd6a */ /* not lifted */ 5087 RECOMP_FLAGS_IN(); 5088 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5090 esp = esp + 4; /* 0x3601FFDC: add esp, 4 */ 5091 _flag_k = FK_ADD; 5092 MEM32(ebp + 0x8) = eax; /* 0x3601FFDF: mov dword ptr [ebp + 8], eax */ 5093 /* test eax, eax */ /* 0x3601FFE2: test eax, eax */ 5094 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5095 _cf = 0; 5096 _flag_k = FK_TEST; 5097 MEM32(ebp + (-0x4)) = 0; /* 0x3601FFE4: mov dword ptr [ebp - 4], 0 */ 5098 if (TEST_Z(_flag_a, _flag_b)) goto L_36020007; /* 0x3601FFEB: je 0x36020007 */ 5099 L_3601FFED: 5100 ecx = MEM32(ebp + 0xC); /* 0x3601FFED: mov ecx, dword ptr [ebp + 0xc] */ 5101 edx = MEM32(edi + 0x88); /* 0x3601FFF0: mov edx, dword ptr [edi + 0x88] */ 5102 PUSH32(esp, ecx); /* 0x3601FFF6: push ecx */ 5103 PUSH32(esp, esi); /* 0x3601FFF7: push esi */ 5104 PUSH32(esp, 5); /* 0x3601FFF8: push 5 */ 5105 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 5106 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5107 edx = edx + 4; /* 0x3601FFFA: add edx, 4 */ 5108 _flag_k = FK_ADD; 5109 PUSH32(esp, edx); /* 0x3601FFFD: push edx */ 5110 ecx = eax; /* 0x3601FFFE: mov ecx, eax */ 5111 RECOMP_ICALL(0x36084A70u); /* 0x36020000: call 0x36084a70 */ /* not lifted */ 5112 RECOMP_FLAGS_IN(); 5113 goto L_36020009; /* 0x36020005: jmp 0x36020009 */ 5114 L_36020007: 5115 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5116 eax = 0; /* 0x36020007: xor eax, eax */ 5117 _cf = 0; 5118 _flag_k = FK_TEST; 5119 L_36020009: 5120 ecx = MEM32(edi + 0x88); /* 0x36020009: mov ecx, dword ptr [edi + 0x88] */ 5121 MEM32(ebp + (-0x10)) = eax; /* 0x3602000F: mov dword ptr [ebp - 0x10], eax */ 5122 eax = ebp + (-0x10); /* 0x36020012: lea eax, [ebp - 0x10] */ 5123 PUSH32(esp, eax); /* 0x36020015: push eax */ 5124 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36020016: mov dword ptr [ebp - 4], 0xffffffff */ 5125 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3602001D: call dword ptr [0x3617004c] */ 5126 RECOMP_FLAGS_IN(); 5127 L_36020023: 5128 ecx = MEM32(ebp + (-0xC)); /* 0x36020023: mov ecx, dword ptr [ebp - 0xc] */ 5129 edi = POP32_VAL(esp); /* 0x36020026: pop edi */ 5130 esi = POP32_VAL(esp); /* 0x36020027: pop esi */ 5131 MEM32(FS_BASE + (0)) = ecx; /* 0x36020028: mov dword ptr fs:[0], ecx */ 5132 esp = ebp; /* 0x3602002F: mov esp, ebp */ 5133 ebp = POP32_VAL(esp); /* 0x36020031: pop ebp */ 5134 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36020032: ret 8 */ 5135 RECOMP_REGS_OUT(); 5136 } 5137 5138 void sub_36020040(void) { 5139 int _fpu_cmp = 0; 5140 uint32_t _cf = 0; 5141 int _df = 1; 5142 uint32_t _flag_k = FK_NONE; 5143 uint32_t _flag_a = 0, _flag_b = 0; 5144 uint32_t _itail_tgt = 0; 5145 RECOMP_REGS_LOCALS 5146 RECOMP_ENTER(0x36020040u); 5147 5148 L_36020040: 5149 PUSH32(esp, ebp); /* 0x36020040: push ebp */ 5150 ebp = esp; /* 0x36020041: mov ebp, esp */ 5151 PUSH32(esp, ebx); /* 0x36020043: push ebx */ 5152 PUSH32(esp, esi); /* 0x36020044: push esi */ 5153 esi = MEM32(ebp + 0x8); /* 0x36020045: mov esi, dword ptr [ebp + 8] */ 5154 PUSH32(esp, edi); /* 0x36020048: push edi */ 5155 edi = MEM32(0x3616FF70); /* 0x36020049: mov edi, dword ptr [0x3616ff70] */ 5156 PUSH32(esp, 0); /* 0x3602004F: push 0 */ 5157 PUSH32(esp, 0x361B2CD8u); /* 0x36020051: push 0x361b2cd8 */ 5158 PUSH32(esp, 0x361B2CC0u); /* 0x36020056: push 0x361b2cc0 */ 5159 PUSH32(esp, 0); /* 0x3602005B: push 0 */ 5160 PUSH32(esp, esi); /* 0x3602005D: push esi */ 5161 ebx = ecx; /* 0x3602005E: mov ebx, ecx */ 5162 RECOMP_ICALL(edi); /* 0x36020060: call edi */ 5163 RECOMP_FLAGS_IN(); 5164 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5165 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5166 esp = esp + 4; /* 0x36020062: add esp, 4 */ 5167 _flag_k = FK_ADD; 5168 PUSH32(esp, eax); /* 0x36020065: push eax */ 5169 RECOMP_ICALL(0x3615FD86u); /* 0x36020066: call 0x3615fd86 */ /* not lifted */ 5170 RECOMP_FLAGS_IN(); 5171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5173 esp = esp + 0x14u; /* 0x3602006B: add esp, 0x14 */ 5174 _flag_k = FK_ADD; 5175 /* test eax, eax */ /* 0x3602006E: test eax, eax */ 5176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5177 _cf = 0; 5178 _flag_k = FK_TEST; 5179 if (TEST_Z(_flag_a, _flag_b)) goto L_36020087; /* 0x36020070: je 0x36020087 */ 5180 L_36020072: 5181 ecx = eax; /* 0x36020072: mov ecx, eax */ 5182 RECOMP_ICALL(0x36071F90u); /* 0x36020074: call 0x36071f90 */ /* not lifted */ 5183 RECOMP_FLAGS_IN(); 5184 ecx = eax; /* 0x36020079: mov ecx, eax */ 5185 RECOMP_ICALL(0x36078060u); /* 0x3602007B: call 0x36078060 */ /* not lifted */ 5186 RECOMP_FLAGS_IN(); 5187 edi = POP32_VAL(esp); /* 0x36020080: pop edi */ 5188 esi = POP32_VAL(esp); /* 0x36020081: pop esi */ 5189 ebx = POP32_VAL(esp); /* 0x36020082: pop ebx */ 5190 ebp = POP32_VAL(esp); /* 0x36020083: pop ebp */ 5191 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020084: ret 4 */ 5192 L_36020087: 5193 PUSH32(esp, 0); /* 0x36020087: push 0 */ 5194 PUSH32(esp, 0x361B5C98u); /* 0x36020089: push 0x361b5c98 */ 5195 PUSH32(esp, 0x361B2CC0u); /* 0x3602008E: push 0x361b2cc0 */ 5196 PUSH32(esp, 0); /* 0x36020093: push 0 */ 5197 PUSH32(esp, esi); /* 0x36020095: push esi */ 5198 RECOMP_ICALL(edi); /* 0x36020096: call edi */ 5199 RECOMP_FLAGS_IN(); 5200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5202 esp = esp + 4; /* 0x36020098: add esp, 4 */ 5203 _flag_k = FK_ADD; 5204 PUSH32(esp, eax); /* 0x3602009B: push eax */ 5205 RECOMP_ICALL(0x3615FD86u); /* 0x3602009C: call 0x3615fd86 */ /* not lifted */ 5206 RECOMP_FLAGS_IN(); 5207 esi = eax; /* 0x360200A1: mov esi, eax */ 5208 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5209 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5210 esp = esp + 0x14u; /* 0x360200A3: add esp, 0x14 */ 5211 _flag_k = FK_ADD; 5212 /* test esi, esi */ /* 0x360200A6: test esi, esi */ 5213 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5214 _cf = 0; 5215 _flag_k = FK_TEST; 5216 if (TEST_Z(_flag_a, _flag_b)) goto L_360200C3; /* 0x360200A8: je 0x360200c3 */ 5217 L_360200AA: 5218 eax = MEM32(ebx); /* 0x360200AA: mov eax, dword ptr [ebx] */ 5219 ecx = ebx; /* 0x360200AC: mov ecx, ebx */ 5220 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x360200AE: call dword ptr [eax + 0x10] */ 5221 RECOMP_FLAGS_IN(); 5222 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5223 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5224 eax = eax + 4; /* 0x360200B1: add eax, 4 */ 5225 _flag_k = FK_ADD; 5226 PUSH32(esp, eax); /* 0x360200B4: push eax */ 5227 ecx = esi; /* 0x360200B5: mov ecx, esi */ 5228 RECOMP_ICALL(0x360A9490u); /* 0x360200B7: call 0x360a9490 */ /* not lifted */ 5229 RECOMP_FLAGS_IN(); 5230 edi = POP32_VAL(esp); /* 0x360200BC: pop edi */ 5231 esi = POP32_VAL(esp); /* 0x360200BD: pop esi */ 5232 ebx = POP32_VAL(esp); /* 0x360200BE: pop ebx */ 5233 ebp = POP32_VAL(esp); /* 0x360200BF: pop ebp */ 5234 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360200C0: ret 4 */ 5235 L_360200C3: 5236 edi = POP32_VAL(esp); /* 0x360200C3: pop edi */ 5237 esi = POP32_VAL(esp); /* 0x360200C4: pop esi */ 5238 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5239 eax = 0; /* 0x360200C5: xor eax, eax */ 5240 _cf = 0; 5241 _flag_k = FK_TEST; 5242 ebx = POP32_VAL(esp); /* 0x360200C7: pop ebx */ 5243 ebp = POP32_VAL(esp); /* 0x360200C8: pop ebp */ 5244 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360200C9: ret 4 */ 5245 RECOMP_REGS_OUT(); 5246 } 5247 5248 void sub_360200D0(void) { 5249 int _fpu_cmp = 0; 5250 uint32_t _cf = 0; 5251 int _df = 1; 5252 uint32_t _flag_k = FK_NONE; 5253 uint32_t _flag_a = 0, _flag_b = 0; 5254 uint32_t _itail_tgt = 0; 5255 RECOMP_REGS_LOCALS 5256 RECOMP_ENTER(0x360200D0u); 5257 5258 L_360200D0: 5259 PUSH32(esp, ebp); /* 0x360200D0: push ebp */ 5260 ebp = esp; /* 0x360200D1: mov ebp, esp */ 5261 PUSH32(esp, 0xFFFFFFFFu); /* 0x360200D3: push -1 */ 5262 PUSH32(esp, 0x3616306Bu); /* 0x360200D5: push 0x3616306b */ 5263 eax = MEM32(FS_BASE + (0)); /* 0x360200DA: mov eax, dword ptr fs:[0] */ 5264 PUSH32(esp, eax); /* 0x360200E0: push eax */ 5265 MEM32(FS_BASE + (0)) = esp; /* 0x360200E1: mov dword ptr fs:[0], esp */ 5266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5268 esp = esp - 0x10u; /* 0x360200E8: sub esp, 0x10 */ 5269 _flag_k = FK_CMP; 5270 PUSH32(esp, esi); /* 0x360200EB: push esi */ 5271 PUSH32(esp, 0x34u); /* 0x360200EC: push 0x34 */ 5272 esi = ecx; /* 0x360200EE: mov esi, ecx */ 5273 RECOMP_ICALL(0x3615FD6Au); /* 0x360200F0: call 0x3615fd6a */ /* not lifted */ 5274 RECOMP_FLAGS_IN(); 5275 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5277 esp = esp + 4; /* 0x360200F5: add esp, 4 */ 5278 _flag_k = FK_ADD; 5279 MEM32(ebp + (-0x14)) = eax; /* 0x360200F8: mov dword ptr [ebp - 0x14], eax */ 5280 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5281 ecx = 0; /* 0x360200FB: xor ecx, ecx */ 5282 _cf = 0; 5283 _flag_k = FK_TEST; 5284 /* cmp eax, ecx */ /* 0x360200FD: cmp eax, ecx */ 5285 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5287 _flag_k = FK_CMP; 5288 MEM32(ebp + (-0x4)) = ecx; /* 0x360200FF: mov dword ptr [ebp - 4], ecx */ 5289 if (CMP_EQ(_flag_a, _flag_b)) goto L_3602012B; /* 0x36020102: je 0x3602012b */ 5290 L_36020104: 5291 MEM32(ebp + (-0x1C)) = ecx; /* 0x36020104: mov dword ptr [ebp - 0x1c], ecx */ 5292 ecx = MEM32(ebp + 0x8); /* 0x36020107: mov ecx, dword ptr [ebp + 8] */ 5293 PUSH32(esp, 0x36305AE0u); /* 0x3602010A: push 0x36305ae0 */ 5294 MEM32(ebp + (-0x18)) = ecx; /* 0x3602010F: mov dword ptr [ebp - 0x18], ecx */ 5295 ecx = MEM32(esi + 0x88); /* 0x36020112: mov ecx, dword ptr [esi + 0x88] */ 5296 edx = ebp + (-0x1C); /* 0x36020118: lea edx, [ebp - 0x1c] */ 5297 PUSH32(esp, edx); /* 0x3602011B: push edx */ 5298 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 5299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5300 ecx = ecx + 4; /* 0x3602011C: add ecx, 4 */ 5301 _flag_k = FK_ADD; 5302 PUSH32(esp, 6); /* 0x3602011F: push 6 */ 5303 PUSH32(esp, ecx); /* 0x36020121: push ecx */ 5304 ecx = eax; /* 0x36020122: mov ecx, eax */ 5305 RECOMP_ICALL(0x36084A70u); /* 0x36020124: call 0x36084a70 */ /* not lifted */ 5306 RECOMP_FLAGS_IN(); 5307 goto L_3602012D; /* 0x36020129: jmp 0x3602012d */ 5308 L_3602012B: 5309 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5310 eax = 0; /* 0x3602012B: xor eax, eax */ 5311 _cf = 0; 5312 _flag_k = FK_TEST; 5313 L_3602012D: 5314 ecx = MEM32(esi + 0x88); /* 0x3602012D: mov ecx, dword ptr [esi + 0x88] */ 5315 edx = ebp + (-0x10); /* 0x36020133: lea edx, [ebp - 0x10] */ 5316 PUSH32(esp, edx); /* 0x36020136: push edx */ 5317 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36020137: mov dword ptr [ebp - 4], 0xffffffff */ 5318 MEM32(ebp + (-0x10)) = eax; /* 0x3602013E: mov dword ptr [ebp - 0x10], eax */ 5319 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x36020141: call dword ptr [0x3617004c] */ 5320 RECOMP_FLAGS_IN(); 5321 ecx = MEM32(ebp + (-0xC)); /* 0x36020147: mov ecx, dword ptr [ebp - 0xc] */ 5322 esi = POP32_VAL(esp); /* 0x3602014A: pop esi */ 5323 MEM32(FS_BASE + (0)) = ecx; /* 0x3602014B: mov dword ptr fs:[0], ecx */ 5324 esp = ebp; /* 0x36020152: mov esp, ebp */ 5325 ebp = POP32_VAL(esp); /* 0x36020154: pop ebp */ 5326 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020155: ret 4 */ 5327 RECOMP_REGS_OUT(); 5328 } 5329 5330 void sub_36020160(void) { 5331 int _fpu_cmp = 0; 5332 uint32_t _cf = 0; 5333 int _df = 1; 5334 uint32_t _flag_k = FK_NONE; 5335 uint32_t _flag_a = 0, _flag_b = 0; 5336 uint32_t _itail_tgt = 0; 5337 RECOMP_REGS_LOCALS 5338 RECOMP_ENTER(0x36020160u); 5339 5340 L_36020160: 5341 PUSH32(esp, ebp); /* 0x36020160: push ebp */ 5342 ebp = esp; /* 0x36020161: mov ebp, esp */ 5343 eax = MEM32(ebp + 0x8); /* 0x36020163: mov eax, dword ptr [ebp + 8] */ 5344 PUSH32(esp, 0); /* 0x36020166: push 0 */ 5345 PUSH32(esp, 0x361B2CD8u); /* 0x36020168: push 0x361b2cd8 */ 5346 PUSH32(esp, 0x361B2CC0u); /* 0x3602016D: push 0x361b2cc0 */ 5347 PUSH32(esp, 0); /* 0x36020172: push 0 */ 5348 PUSH32(esp, eax); /* 0x36020174: push eax */ 5349 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020175: call dword ptr [0x3616ff70] */ 5350 RECOMP_FLAGS_IN(); 5351 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5352 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5353 esp = esp + 4; /* 0x3602017B: add esp, 4 */ 5354 _flag_k = FK_ADD; 5355 PUSH32(esp, eax); /* 0x3602017E: push eax */ 5356 RECOMP_ICALL(0x3615FD86u); /* 0x3602017F: call 0x3615fd86 */ /* not lifted */ 5357 RECOMP_FLAGS_IN(); 5358 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5359 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5360 esp = esp + 0x14u; /* 0x36020184: add esp, 0x14 */ 5361 _flag_k = FK_ADD; 5362 /* test eax, eax */ /* 0x36020187: test eax, eax */ 5363 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5364 _cf = 0; 5365 _flag_k = FK_TEST; 5366 if (TEST_Z(_flag_a, _flag_b)) goto L_3602019D; /* 0x36020189: je 0x3602019d */ 5367 L_3602018B: 5368 ecx = eax; /* 0x3602018B: mov ecx, eax */ 5369 RECOMP_ICALL(0x36071F90u); /* 0x3602018D: call 0x36071f90 */ /* not lifted */ 5370 RECOMP_FLAGS_IN(); 5371 ecx = eax; /* 0x36020192: mov ecx, eax */ 5372 RECOMP_ICALL(0x36078040u); /* 0x36020194: call 0x36078040 */ /* not lifted */ 5373 RECOMP_FLAGS_IN(); 5374 ebp = POP32_VAL(esp); /* 0x36020199: pop ebp */ 5375 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602019A: ret 4 */ 5376 L_3602019D: 5377 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5378 eax = 0; /* 0x3602019D: xor eax, eax */ 5379 _cf = 0; 5380 _flag_k = FK_TEST; 5381 ebp = POP32_VAL(esp); /* 0x3602019F: pop ebp */ 5382 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360201A0: ret 4 */ 5383 RECOMP_REGS_OUT(); 5384 } 5385 5386 void sub_360201B0(void) { 5387 int _fpu_cmp = 0; 5388 uint32_t _cf = 0; 5389 int _df = 1; 5390 uint32_t _flag_k = FK_NONE; 5391 uint32_t _flag_a = 0, _flag_b = 0; 5392 uint32_t _itail_tgt = 0; 5393 RECOMP_REGS_LOCALS 5394 RECOMP_ENTER(0x360201B0u); 5395 5396 L_360201B0: 5397 PUSH32(esp, ebp); /* 0x360201B0: push ebp */ 5398 ebp = esp; /* 0x360201B1: mov ebp, esp */ 5399 PUSH32(esp, ebx); /* 0x360201B3: push ebx */ 5400 PUSH32(esp, esi); /* 0x360201B4: push esi */ 5401 esi = MEM32(ebp + 0x8); /* 0x360201B5: mov esi, dword ptr [ebp + 8] */ 5402 PUSH32(esp, edi); /* 0x360201B8: push edi */ 5403 edi = MEM32(0x3616FF70); /* 0x360201B9: mov edi, dword ptr [0x3616ff70] */ 5404 PUSH32(esp, 0); /* 0x360201BF: push 0 */ 5405 PUSH32(esp, 0x361B2CD8u); /* 0x360201C1: push 0x361b2cd8 */ 5406 PUSH32(esp, 0x361B2CC0u); /* 0x360201C6: push 0x361b2cc0 */ 5407 PUSH32(esp, 0); /* 0x360201CB: push 0 */ 5408 PUSH32(esp, esi); /* 0x360201CD: push esi */ 5409 ebx = ecx; /* 0x360201CE: mov ebx, ecx */ 5410 RECOMP_ICALL(edi); /* 0x360201D0: call edi */ 5411 RECOMP_FLAGS_IN(); 5412 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5414 esp = esp + 4; /* 0x360201D2: add esp, 4 */ 5415 _flag_k = FK_ADD; 5416 PUSH32(esp, eax); /* 0x360201D5: push eax */ 5417 RECOMP_ICALL(0x3615FD86u); /* 0x360201D6: call 0x3615fd86 */ /* not lifted */ 5418 RECOMP_FLAGS_IN(); 5419 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5420 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5421 esp = esp + 0x14u; /* 0x360201DB: add esp, 0x14 */ 5422 _flag_k = FK_ADD; 5423 /* test eax, eax */ /* 0x360201DE: test eax, eax */ 5424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5425 _cf = 0; 5426 _flag_k = FK_TEST; 5427 if (TEST_Z(_flag_a, _flag_b)) goto L_360201F4; /* 0x360201E0: je 0x360201f4 */ 5428 L_360201E2: 5429 ecx = MEM32(eax + 0x150); /* 0x360201E2: mov ecx, dword ptr [eax + 0x150] */ 5430 RECOMP_ICALL(0x3605C9D0u); /* 0x360201E8: call 0x3605c9d0 */ /* not lifted */ 5431 RECOMP_FLAGS_IN(); 5432 edi = POP32_VAL(esp); /* 0x360201ED: pop edi */ 5433 esi = POP32_VAL(esp); /* 0x360201EE: pop esi */ 5434 ebx = POP32_VAL(esp); /* 0x360201EF: pop ebx */ 5435 ebp = POP32_VAL(esp); /* 0x360201F0: pop ebp */ 5436 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360201F1: ret 4 */ 5437 L_360201F4: 5438 PUSH32(esp, 0); /* 0x360201F4: push 0 */ 5439 PUSH32(esp, 0x361B5C98u); /* 0x360201F6: push 0x361b5c98 */ 5440 PUSH32(esp, 0x361B2CC0u); /* 0x360201FB: push 0x361b2cc0 */ 5441 PUSH32(esp, 0); /* 0x36020200: push 0 */ 5442 PUSH32(esp, esi); /* 0x36020202: push esi */ 5443 RECOMP_ICALL(edi); /* 0x36020203: call edi */ 5444 RECOMP_FLAGS_IN(); 5445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5447 esp = esp + 4; /* 0x36020205: add esp, 4 */ 5448 _flag_k = FK_ADD; 5449 PUSH32(esp, eax); /* 0x36020208: push eax */ 5450 RECOMP_ICALL(0x3615FD86u); /* 0x36020209: call 0x3615fd86 */ /* not lifted */ 5451 RECOMP_FLAGS_IN(); 5452 esi = eax; /* 0x3602020E: mov esi, eax */ 5453 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 5454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5455 esp = esp + 0x14u; /* 0x36020210: add esp, 0x14 */ 5456 _flag_k = FK_ADD; 5457 /* test esi, esi */ /* 0x36020213: test esi, esi */ 5458 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 5459 _cf = 0; 5460 _flag_k = FK_TEST; 5461 if (TEST_Z(_flag_a, _flag_b)) goto L_36020230; /* 0x36020215: je 0x36020230 */ 5462 L_36020217: 5463 eax = MEM32(ebx); /* 0x36020217: mov eax, dword ptr [ebx] */ 5464 ecx = ebx; /* 0x36020219: mov ecx, ebx */ 5465 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3602021B: call dword ptr [eax + 0x10] */ 5466 RECOMP_FLAGS_IN(); 5467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5468 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5469 eax = eax + 4; /* 0x3602021E: add eax, 4 */ 5470 _flag_k = FK_ADD; 5471 PUSH32(esp, eax); /* 0x36020221: push eax */ 5472 ecx = esi; /* 0x36020222: mov ecx, esi */ 5473 RECOMP_ICALL(0x360A9460u); /* 0x36020224: call 0x360a9460 */ /* not lifted */ 5474 RECOMP_FLAGS_IN(); 5475 edi = POP32_VAL(esp); /* 0x36020229: pop edi */ 5476 esi = POP32_VAL(esp); /* 0x3602022A: pop esi */ 5477 ebx = POP32_VAL(esp); /* 0x3602022B: pop ebx */ 5478 ebp = POP32_VAL(esp); /* 0x3602022C: pop ebp */ 5479 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602022D: ret 4 */ 5480 L_36020230: 5481 edi = POP32_VAL(esp); /* 0x36020230: pop edi */ 5482 esi = POP32_VAL(esp); /* 0x36020231: pop esi */ 5483 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5484 eax = 0; /* 0x36020232: xor eax, eax */ 5485 _cf = 0; 5486 _flag_k = FK_TEST; 5487 ebx = POP32_VAL(esp); /* 0x36020234: pop ebx */ 5488 ebp = POP32_VAL(esp); /* 0x36020235: pop ebp */ 5489 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020236: ret 4 */ 5490 RECOMP_REGS_OUT(); 5491 } 5492 5493 void sub_36020240(void) { 5494 int _fpu_cmp = 0; 5495 uint32_t _cf = 0; 5496 int _df = 1; 5497 uint32_t _flag_k = FK_NONE; 5498 uint32_t _flag_a = 0, _flag_b = 0; 5499 uint32_t _itail_tgt = 0; 5500 RECOMP_REGS_LOCALS 5501 RECOMP_ENTER(0x36020240u); 5502 5503 L_36020240: 5504 PUSH32(esp, ebp); /* 0x36020240: push ebp */ 5505 ebp = esp; /* 0x36020241: mov ebp, esp */ 5506 ecx = MEM32(ecx + 0x80); /* 0x36020243: mov ecx, dword ptr [ecx + 0x80] */ 5507 /* test ecx, ecx */ /* 0x36020249: test ecx, ecx */ 5508 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5509 _cf = 0; 5510 _flag_k = FK_TEST; 5511 if (TEST_Z(_flag_a, _flag_b)) goto L_36020264; /* 0x3602024B: je 0x36020264 */ 5512 L_3602024D: 5513 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3602024D: mov al, byte ptr [ebp + 8] */ 5514 /* test LO8(eax), LO8(eax) */ /* 0x36020250: test al, al */ 5515 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5516 _cf = 0; 5517 _flag_k = FK_NARROW(FK_TEST, 24); 5518 if (TEST_Z(_flag_a, _flag_b)) goto L_3602025E; /* 0x36020252: je 0x3602025e */ 5519 L_36020254: 5520 RECOMP_ICALL(MEM32(0x36170058)); /* 0x36020254: call dword ptr [0x36170058] */ 5521 RECOMP_FLAGS_IN(); 5522 ebp = POP32_VAL(esp); /* 0x3602025A: pop ebp */ 5523 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602025B: ret 4 */ 5524 L_3602025E: 5525 RECOMP_ICALL(MEM32(0x36170054)); /* 0x3602025E: call dword ptr [0x36170054] */ 5526 RECOMP_FLAGS_IN(); 5527 L_36020264: 5528 ebp = POP32_VAL(esp); /* 0x36020264: pop ebp */ 5529 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020265: ret 4 */ 5530 RECOMP_REGS_OUT(); 5531 } 5532 5533 void sub_36020270(void) { 5534 int _fpu_cmp = 0; 5535 uint32_t _cf = 0; 5536 int _df = 1; 5537 uint32_t _flag_k = FK_NONE; 5538 uint32_t _flag_a = 0, _flag_b = 0; 5539 uint32_t _itail_tgt = 0; 5540 RECOMP_REGS_LOCALS 5541 RECOMP_ENTER(0x36020270u); 5542 5543 L_36020270: 5544 PUSH32(esp, ebp); /* 0x36020270: push ebp */ 5545 ebp = esp; /* 0x36020271: mov ebp, esp */ 5546 ecx = MEM32(ecx + 0x80); /* 0x36020273: mov ecx, dword ptr [ecx + 0x80] */ 5547 /* test ecx, ecx */ /* 0x36020279: test ecx, ecx */ 5548 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5549 _cf = 0; 5550 _flag_k = FK_TEST; 5551 if (TEST_Z(_flag_a, _flag_b)) goto L_36020294; /* 0x3602027B: je 0x36020294 */ 5552 L_3602027D: 5553 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3602027D: mov al, byte ptr [ebp + 8] */ 5554 /* test LO8(eax), LO8(eax) */ /* 0x36020280: test al, al */ 5555 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5556 _cf = 0; 5557 _flag_k = FK_NARROW(FK_TEST, 24); 5558 if (TEST_Z(_flag_a, _flag_b)) goto L_3602028E; /* 0x36020282: je 0x3602028e */ 5559 L_36020284: 5560 RECOMP_ICALL(MEM32(0x36170060)); /* 0x36020284: call dword ptr [0x36170060] */ 5561 RECOMP_FLAGS_IN(); 5562 ebp = POP32_VAL(esp); /* 0x3602028A: pop ebp */ 5563 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602028B: ret 4 */ 5564 L_3602028E: 5565 RECOMP_ICALL(MEM32(0x3617005C)); /* 0x3602028E: call dword ptr [0x3617005c] */ 5566 RECOMP_FLAGS_IN(); 5567 L_36020294: 5568 ebp = POP32_VAL(esp); /* 0x36020294: pop ebp */ 5569 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020295: ret 4 */ 5570 RECOMP_REGS_OUT(); 5571 } 5572 5573 void sub_360202A0(void) { 5574 int _fpu_cmp = 0; 5575 uint32_t _cf = 0; 5576 int _df = 1; 5577 uint32_t _flag_k = FK_NONE; 5578 uint32_t _flag_a = 0, _flag_b = 0; 5579 uint32_t _itail_tgt = 0; 5580 RECOMP_REGS_LOCALS 5581 RECOMP_ENTER(0x360202A0u); 5582 5583 L_360202A0: 5584 PUSH32(esp, ebp); /* 0x360202A0: push ebp */ 5585 ebp = esp; /* 0x360202A1: mov ebp, esp */ 5586 ecx = MEM32(ecx + 0x80); /* 0x360202A3: mov ecx, dword ptr [ecx + 0x80] */ 5587 /* test ecx, ecx */ /* 0x360202A9: test ecx, ecx */ 5588 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5589 _cf = 0; 5590 _flag_k = FK_TEST; 5591 if (TEST_Z(_flag_a, _flag_b)) goto L_360202C4; /* 0x360202AB: je 0x360202c4 */ 5592 L_360202AD: 5593 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x360202AD: mov al, byte ptr [ebp + 8] */ 5594 /* test LO8(eax), LO8(eax) */ /* 0x360202B0: test al, al */ 5595 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5596 _cf = 0; 5597 _flag_k = FK_NARROW(FK_TEST, 24); 5598 if (TEST_Z(_flag_a, _flag_b)) goto L_360202BE; /* 0x360202B2: je 0x360202be */ 5599 L_360202B4: 5600 RECOMP_ICALL(MEM32(0x36170068)); /* 0x360202B4: call dword ptr [0x36170068] */ 5601 RECOMP_FLAGS_IN(); 5602 ebp = POP32_VAL(esp); /* 0x360202BA: pop ebp */ 5603 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360202BB: ret 4 */ 5604 L_360202BE: 5605 RECOMP_ICALL(MEM32(0x36170064)); /* 0x360202BE: call dword ptr [0x36170064] */ 5606 RECOMP_FLAGS_IN(); 5607 L_360202C4: 5608 ebp = POP32_VAL(esp); /* 0x360202C4: pop ebp */ 5609 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360202C5: ret 4 */ 5610 RECOMP_REGS_OUT(); 5611 } 5612 5613 void sub_360202D0(void) { 5614 int _fpu_cmp = 0; 5615 uint32_t _cf = 0; 5616 int _df = 1; 5617 uint32_t _flag_k = FK_NONE; 5618 uint32_t _flag_a = 0, _flag_b = 0; 5619 uint32_t _itail_tgt = 0; 5620 RECOMP_REGS_LOCALS 5621 RECOMP_ENTER(0x360202D0u); 5622 5623 L_360202D0: 5624 PUSH32(esp, ebp); /* 0x360202D0: push ebp */ 5625 ebp = esp; /* 0x360202D1: mov ebp, esp */ 5626 ecx = MEM32(ecx + 0x80); /* 0x360202D3: mov ecx, dword ptr [ecx + 0x80] */ 5627 /* test ecx, ecx */ /* 0x360202D9: test ecx, ecx */ 5628 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5629 _cf = 0; 5630 _flag_k = FK_TEST; 5631 if (TEST_Z(_flag_a, _flag_b)) goto L_360202F4; /* 0x360202DB: je 0x360202f4 */ 5632 L_360202DD: 5633 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x360202DD: mov al, byte ptr [ebp + 8] */ 5634 /* test LO8(eax), LO8(eax) */ /* 0x360202E0: test al, al */ 5635 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5636 _cf = 0; 5637 _flag_k = FK_NARROW(FK_TEST, 24); 5638 if (TEST_Z(_flag_a, _flag_b)) goto L_360202EE; /* 0x360202E2: je 0x360202ee */ 5639 L_360202E4: 5640 RECOMP_ICALL(MEM32(0x36170070)); /* 0x360202E4: call dword ptr [0x36170070] */ 5641 RECOMP_FLAGS_IN(); 5642 ebp = POP32_VAL(esp); /* 0x360202EA: pop ebp */ 5643 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360202EB: ret 4 */ 5644 L_360202EE: 5645 RECOMP_ICALL(MEM32(0x3617006C)); /* 0x360202EE: call dword ptr [0x3617006c] */ 5646 RECOMP_FLAGS_IN(); 5647 L_360202F4: 5648 ebp = POP32_VAL(esp); /* 0x360202F4: pop ebp */ 5649 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360202F5: ret 4 */ 5650 RECOMP_REGS_OUT(); 5651 } 5652 5653 void sub_36020300(void) { 5654 int _fpu_cmp = 0; 5655 uint32_t _cf = 0; 5656 int _df = 1; 5657 uint32_t _flag_k = FK_NONE; 5658 uint32_t _flag_a = 0, _flag_b = 0; 5659 uint32_t _itail_tgt = 0; 5660 RECOMP_REGS_LOCALS 5661 RECOMP_ENTER(0x36020300u); 5662 5663 L_36020300: 5664 PUSH32(esp, ebp); /* 0x36020300: push ebp */ 5665 ebp = esp; /* 0x36020301: mov ebp, esp */ 5666 ecx = MEM32(ecx + 0x80); /* 0x36020303: mov ecx, dword ptr [ecx + 0x80] */ 5667 /* test ecx, ecx */ /* 0x36020309: test ecx, ecx */ 5668 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5669 _cf = 0; 5670 _flag_k = FK_TEST; 5671 if (TEST_Z(_flag_a, _flag_b)) goto L_36020324; /* 0x3602030B: je 0x36020324 */ 5672 L_3602030D: 5673 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3602030D: mov al, byte ptr [ebp + 8] */ 5674 /* test LO8(eax), LO8(eax) */ /* 0x36020310: test al, al */ 5675 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5676 _cf = 0; 5677 _flag_k = FK_NARROW(FK_TEST, 24); 5678 if (TEST_Z(_flag_a, _flag_b)) goto L_3602031E; /* 0x36020312: je 0x3602031e */ 5679 L_36020314: 5680 RECOMP_ICALL(MEM32(0x36170078)); /* 0x36020314: call dword ptr [0x36170078] */ 5681 RECOMP_FLAGS_IN(); 5682 ebp = POP32_VAL(esp); /* 0x3602031A: pop ebp */ 5683 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602031B: ret 4 */ 5684 L_3602031E: 5685 RECOMP_ICALL(MEM32(0x36170074)); /* 0x3602031E: call dword ptr [0x36170074] */ 5686 RECOMP_FLAGS_IN(); 5687 L_36020324: 5688 ebp = POP32_VAL(esp); /* 0x36020324: pop ebp */ 5689 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020325: ret 4 */ 5690 RECOMP_REGS_OUT(); 5691 } 5692 5693 void sub_36020330(void) { 5694 int _fpu_cmp = 0; 5695 uint32_t _cf = 0; 5696 int _df = 1; 5697 uint32_t _flag_k = FK_NONE; 5698 uint32_t _flag_a = 0, _flag_b = 0; 5699 uint32_t _itail_tgt = 0; 5700 RECOMP_REGS_LOCALS 5701 RECOMP_ENTER(0x36020330u); 5702 5703 L_36020330: 5704 PUSH32(esp, ebp); /* 0x36020330: push ebp */ 5705 ebp = esp; /* 0x36020331: mov ebp, esp */ 5706 ecx = MEM32(ecx + 0x80); /* 0x36020333: mov ecx, dword ptr [ecx + 0x80] */ 5707 /* test ecx, ecx */ /* 0x36020339: test ecx, ecx */ 5708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5709 _cf = 0; 5710 _flag_k = FK_TEST; 5711 if (TEST_Z(_flag_a, _flag_b)) goto L_36020354; /* 0x3602033B: je 0x36020354 */ 5712 L_3602033D: 5713 SET_LO8(eax, MEM8(ebp + 0x8)); /* 0x3602033D: mov al, byte ptr [ebp + 8] */ 5714 /* test LO8(eax), LO8(eax) */ /* 0x36020340: test al, al */ 5715 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5716 _cf = 0; 5717 _flag_k = FK_NARROW(FK_TEST, 24); 5718 if (TEST_Z(_flag_a, _flag_b)) goto L_3602034E; /* 0x36020342: je 0x3602034e */ 5719 L_36020344: 5720 RECOMP_ICALL(MEM32(0x36170080)); /* 0x36020344: call dword ptr [0x36170080] */ 5721 RECOMP_FLAGS_IN(); 5722 ebp = POP32_VAL(esp); /* 0x3602034A: pop ebp */ 5723 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602034B: ret 4 */ 5724 L_3602034E: 5725 RECOMP_ICALL(MEM32(0x3617007C)); /* 0x3602034E: call dword ptr [0x3617007c] */ 5726 RECOMP_FLAGS_IN(); 5727 L_36020354: 5728 ebp = POP32_VAL(esp); /* 0x36020354: pop ebp */ 5729 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020355: ret 4 */ 5730 RECOMP_REGS_OUT(); 5731 } 5732 5733 void sub_36020360(void) { 5734 int _fpu_cmp = 0; 5735 uint32_t _cf = 0; 5736 int _df = 1; 5737 uint32_t _flag_k = FK_NONE; 5738 uint32_t _flag_a = 0, _flag_b = 0; 5739 uint32_t _itail_tgt = 0; 5740 RECOMP_REGS_LOCALS 5741 RECOMP_ENTER(0x36020360u); 5742 5743 L_36020360: 5744 eax = MEM32(ecx + 0x80); /* 0x36020360: mov eax, dword ptr [ecx + 0x80] */ 5745 /* test eax, eax */ /* 0x36020366: test eax, eax */ 5746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5747 _cf = 0; 5748 _flag_k = FK_TEST; 5749 if (TEST_Z(_flag_a, _flag_b)) goto L_36020374; /* 0x36020368: je 0x36020374 */ 5750 L_3602036A: 5751 MEM32(eax + 0x104) = 0x400u; /* 0x3602036A: mov dword ptr [eax + 0x104], 0x400 */ 5752 L_36020374: 5753 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020374: ret */ 5754 RECOMP_REGS_OUT(); 5755 } 5756 5757 void sub_36020380(void) { 5758 int _fpu_cmp = 0; 5759 uint32_t _cf = 0; 5760 int _df = 1; 5761 uint32_t _flag_k = FK_NONE; 5762 uint32_t _flag_a = 0, _flag_b = 0; 5763 uint32_t _itail_tgt = 0; 5764 RECOMP_REGS_LOCALS 5765 RECOMP_ENTER(0x36020380u); 5766 5767 L_36020380: 5768 eax = MEM32(ecx + 0x80); /* 0x36020380: mov eax, dword ptr [ecx + 0x80] */ 5769 /* test eax, eax */ /* 0x36020386: test eax, eax */ 5770 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5771 _cf = 0; 5772 _flag_k = FK_TEST; 5773 if (TEST_Z(_flag_a, _flag_b)) goto L_36020394; /* 0x36020388: je 0x36020394 */ 5774 L_3602038A: 5775 MEM32(eax + 0x104) = 0x200u; /* 0x3602038A: mov dword ptr [eax + 0x104], 0x200 */ 5776 L_36020394: 5777 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020394: ret */ 5778 RECOMP_REGS_OUT(); 5779 } 5780 5781 void sub_360203A0(void) { 5782 int _fpu_cmp = 0; 5783 uint32_t _cf = 0; 5784 int _df = 1; 5785 uint32_t _flag_k = FK_NONE; 5786 uint32_t _flag_a = 0, _flag_b = 0; 5787 uint32_t _itail_tgt = 0; 5788 RECOMP_REGS_LOCALS 5789 RECOMP_ENTER(0x360203A0u); 5790 5791 L_360203A0: 5792 eax = MEM32(ecx + 0x80); /* 0x360203A0: mov eax, dword ptr [ecx + 0x80] */ 5793 /* test eax, eax */ /* 0x360203A6: test eax, eax */ 5794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5795 _cf = 0; 5796 _flag_k = FK_TEST; 5797 if (TEST_Z(_flag_a, _flag_b)) goto L_360203B4; /* 0x360203A8: je 0x360203b4 */ 5798 L_360203AA: 5799 MEM32(eax + 0x104) = 0x800u; /* 0x360203AA: mov dword ptr [eax + 0x104], 0x800 */ 5800 L_360203B4: 5801 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360203B4: ret */ 5802 RECOMP_REGS_OUT(); 5803 } 5804 5805 void sub_360203C0(void) { 5806 int _fpu_cmp = 0; 5807 uint32_t _cf = 0; 5808 int _df = 1; 5809 uint32_t _flag_k = FK_NONE; 5810 uint32_t _flag_a = 0, _flag_b = 0; 5811 uint32_t _itail_tgt = 0; 5812 RECOMP_REGS_LOCALS 5813 RECOMP_ENTER(0x360203C0u); 5814 5815 L_360203C0: 5816 eax = MEM32(ecx + 0x80); /* 0x360203C0: mov eax, dword ptr [ecx + 0x80] */ 5817 /* test eax, eax */ /* 0x360203C6: test eax, eax */ 5818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5819 _cf = 0; 5820 _flag_k = FK_TEST; 5821 if (TEST_Z(_flag_a, _flag_b)) goto L_360203D4; /* 0x360203C8: je 0x360203d4 */ 5822 L_360203CA: 5823 MEM32(eax + 0x104) = 0x1000u; /* 0x360203CA: mov dword ptr [eax + 0x104], 0x1000 */ 5824 L_360203D4: 5825 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360203D4: ret */ 5826 RECOMP_REGS_OUT(); 5827 } 5828 5829 void sub_360203E0(void) { 5830 int _fpu_cmp = 0; 5831 uint32_t _cf = 0; 5832 int _df = 1; 5833 uint32_t _flag_k = FK_NONE; 5834 uint32_t _flag_a = 0, _flag_b = 0; 5835 uint32_t _itail_tgt = 0; 5836 RECOMP_REGS_LOCALS 5837 RECOMP_ENTER(0x360203E0u); 5838 5839 L_360203E0: 5840 eax = MEM32(ecx + 0x80); /* 0x360203E0: mov eax, dword ptr [ecx + 0x80] */ 5841 /* test eax, eax */ /* 0x360203E6: test eax, eax */ 5842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5843 _cf = 0; 5844 _flag_k = FK_TEST; 5845 if (TEST_Z(_flag_a, _flag_b)) goto L_360203F4; /* 0x360203E8: je 0x360203f4 */ 5846 L_360203EA: 5847 MEM32(eax + 0x104) = 0x2000u; /* 0x360203EA: mov dword ptr [eax + 0x104], 0x2000 */ 5848 L_360203F4: 5849 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360203F4: ret */ 5850 RECOMP_REGS_OUT(); 5851 } 5852 5853 void sub_36020400(void) { 5854 int _fpu_cmp = 0; 5855 uint32_t _cf = 0; 5856 int _df = 1; 5857 uint32_t _flag_k = FK_NONE; 5858 uint32_t _flag_a = 0, _flag_b = 0; 5859 uint32_t _itail_tgt = 0; 5860 RECOMP_REGS_LOCALS 5861 RECOMP_ENTER(0x36020400u); 5862 5863 L_36020400: 5864 eax = MEM32(ecx + 0x80); /* 0x36020400: mov eax, dword ptr [ecx + 0x80] */ 5865 /* test eax, eax */ /* 0x36020406: test eax, eax */ 5866 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5867 _cf = 0; 5868 _flag_k = FK_TEST; 5869 if (TEST_Z(_flag_a, _flag_b)) goto L_36020414; /* 0x36020408: je 0x36020414 */ 5870 L_3602040A: 5871 MEM32(eax + 0x104) = 0x4000u; /* 0x3602040A: mov dword ptr [eax + 0x104], 0x4000 */ 5872 L_36020414: 5873 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020414: ret */ 5874 RECOMP_REGS_OUT(); 5875 } 5876 5877 void sub_36020420(void) { 5878 int _fpu_cmp = 0; 5879 uint32_t _cf = 0; 5880 int _df = 1; 5881 uint32_t _flag_k = FK_NONE; 5882 uint32_t _flag_a = 0, _flag_b = 0; 5883 uint32_t _itail_tgt = 0; 5884 RECOMP_REGS_LOCALS 5885 RECOMP_ENTER(0x36020420u); 5886 5887 L_36020420: 5888 ecx = MEM32(ecx + 0x80); /* 0x36020420: mov ecx, dword ptr [ecx + 0x80] */ 5889 L_36020426: 5890 /* test ecx, ecx */ /* 0x36020426: test ecx, ecx */ 5891 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5892 _cf = 0; 5893 _flag_k = FK_TEST; 5894 L_36020428: 5895 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36020430; /* 0x36020428: je 0x36020430 */ 5896 L_3602042A: 5897 { _itail_tgt = (uint32_t)(MEM32(0x36170084)); goto _ljump; } 5898 L_36020430: 5899 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020430: ret */ 5900 _ljump: 5901 switch (_itail_tgt) { 5902 case 0x36020420u: goto L_36020420; 5903 case 0x36020426u: goto L_36020426; 5904 case 0x36020428u: goto L_36020428; 5905 case 0x3602042Au: goto L_3602042A; 5906 case 0x36020430u: goto L_36020430; 5907 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5908 } 5909 RECOMP_REGS_OUT(); 5910 } 5911 5912 void sub_36020440(void) { 5913 int _fpu_cmp = 0; 5914 uint32_t _cf = 0; 5915 int _df = 1; 5916 uint32_t _flag_k = FK_NONE; 5917 uint32_t _flag_a = 0, _flag_b = 0; 5918 uint32_t _itail_tgt = 0; 5919 RECOMP_REGS_LOCALS 5920 RECOMP_ENTER(0x36020440u); 5921 5922 L_36020440: 5923 PUSH32(esp, ebp); /* 0x36020440: push ebp */ 5924 ebp = esp; /* 0x36020441: mov ebp, esp */ 5925 ecx = MEM32(ecx + 0x80); /* 0x36020443: mov ecx, dword ptr [ecx + 0x80] */ 5926 /* test ecx, ecx */ /* 0x36020449: test ecx, ecx */ 5927 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5928 _cf = 0; 5929 _flag_k = FK_TEST; 5930 if (TEST_Z(_flag_a, _flag_b)) goto L_36020462; /* 0x3602044B: je 0x36020462 */ 5931 L_3602044D: 5932 eax = MEM32(ebp + 0xC); /* 0x3602044D: mov eax, dword ptr [ebp + 0xc] */ 5933 edx = MEM32(ebp + 0x8); /* 0x36020450: mov edx, dword ptr [ebp + 8] */ 5934 PUSH32(esp, eax); /* 0x36020453: push eax */ 5935 PUSH32(esp, edx); /* 0x36020454: push edx */ 5936 RECOMP_ICALL(MEM32(0x36170088)); /* 0x36020455: call dword ptr [0x36170088] */ 5937 RECOMP_FLAGS_IN(); 5938 MEM8(0x36305B2C) = (uint8_t)(1); /* 0x3602045B: mov byte ptr [0x36305b2c], 1 */ 5939 L_36020462: 5940 ebp = POP32_VAL(esp); /* 0x36020462: pop ebp */ 5941 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36020463: ret 8 */ 5942 RECOMP_REGS_OUT(); 5943 } 5944 5945 void sub_36020470(void) { 5946 int _fpu_cmp = 0; 5947 uint32_t _cf = 0; 5948 int _df = 1; 5949 uint32_t _flag_k = FK_NONE; 5950 uint32_t _flag_a = 0, _flag_b = 0; 5951 uint32_t _itail_tgt = 0; 5952 RECOMP_REGS_LOCALS 5953 RECOMP_ENTER(0x36020470u); 5954 5955 L_36020470: 5956 PUSH32(esp, ebp); /* 0x36020470: push ebp */ 5957 ebp = esp; /* 0x36020471: mov ebp, esp */ 5958 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5960 esp = esp - 8; /* 0x36020473: sub esp, 8 */ 5961 _flag_k = FK_CMP; 5962 PUSH32(esp, esi); /* 0x36020476: push esi */ 5963 esi = ecx; /* 0x36020477: mov esi, ecx */ 5964 ecx = MEM32(esi + 0x80); /* 0x36020479: mov ecx, dword ptr [esi + 0x80] */ 5965 /* test ecx, ecx */ /* 0x3602047F: test ecx, ecx */ 5966 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5967 _cf = 0; 5968 _flag_k = FK_TEST; 5969 if (TEST_Z(_flag_a, _flag_b)) goto L_36020512; /* 0x36020481: je 0x36020512 */ 5970 L_36020487: 5971 eax = ebp + (-0x4); /* 0x36020487: lea eax, [ebp - 4] */ 5972 PUSH32(esp, eax); /* 0x3602048A: push eax */ 5973 RECOMP_ICALL(MEM32(0x36170090)); /* 0x3602048B: call dword ptr [0x36170090] */ 5974 RECOMP_FLAGS_IN(); 5975 ecx = MEM32(esi + 0x80); /* 0x36020491: mov ecx, dword ptr [esi + 0x80] */ 5976 RECOMP_ICALL(MEM32(0x3617008C)); /* 0x36020497: call dword ptr [0x3617008c] */ 5977 RECOMP_FLAGS_IN(); 5978 /* test LO8(eax), LO8(eax) */ /* 0x3602049D: test al, al */ 5979 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5980 _cf = 0; 5981 _flag_k = FK_NARROW(FK_TEST, 24); 5982 if (TEST_Z(_flag_a, _flag_b)) goto L_360204BF; /* 0x3602049F: je 0x360204bf */ 5983 L_360204A1: 5984 fp_push(*(float*)&MEM32(ebp + (-0x4))); /* 0x360204A1: fld dword ptr [ebp - 4] */ 5985 fp_push(*(double*)ADDR(0x36170810)); /* 0x360204A4: fld qword ptr [0x36170810] */ 5986 RECOMP_ICALL(0x3615FEC4u); /* 0x360204AA: call 0x3615fec4 */ /* not lifted */ 5987 RECOMP_FLAGS_IN(); 5988 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x360204AF: fstp dword ptr [ebp - 4] */ 5989 ecx = ebp + (-0x4); /* 0x360204B2: lea ecx, [ebp - 4] */ 5990 PUSH32(esp, ecx); /* 0x360204B5: push ecx */ 5991 PUSH32(esp, 0x14u); /* 0x360204B6: push 0x14 */ 5992 ecx = esi; /* 0x360204B8: mov ecx, esi */ 5993 RECOMP_ICALL(0x36022FC0u); /* 0x360204BA: call 0x36022fc0 */ /* not lifted */ 5994 RECOMP_FLAGS_IN(); 5995 L_360204BF: 5996 ecx = esi; /* 0x360204BF: mov ecx, esi */ 5997 MEM8(0x36305B2C) = (uint8_t)(0); /* 0x360204C1: mov byte ptr [0x36305b2c], 0 */ 5998 RECOMP_ICALL(0x3601F240u); /* 0x360204C8: call 0x3601f240 */ /* not lifted */ 5999 RECOMP_FLAGS_IN(); 6000 /* test eax, eax */ /* 0x360204CD: test eax, eax */ 6001 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6002 _cf = 0; 6003 _flag_k = FK_TEST; 6004 if (TEST_Z(_flag_a, _flag_b)) goto L_36020512; /* 0x360204CF: je 0x36020512 */ 6005 L_360204D1: 6006 ecx = eax; /* 0x360204D1: mov ecx, eax */ 6007 RECOMP_ICALL(0x3606D5A0u); /* 0x360204D3: call 0x3606d5a0 */ /* not lifted */ 6008 RECOMP_FLAGS_IN(); 6009 ecx = eax; /* 0x360204D8: mov ecx, eax */ 6010 RECOMP_ICALL(0x36047900u); /* 0x360204DA: call 0x36047900 */ /* not lifted */ 6011 RECOMP_FLAGS_IN(); 6012 ecx = eax; /* 0x360204DF: mov ecx, eax */ 6013 RECOMP_ICALL(0x36046F70u); /* 0x360204E1: call 0x36046f70 */ /* not lifted */ 6014 RECOMP_FLAGS_IN(); 6015 /* test LO8(eax), LO8(eax) */ /* 0x360204E6: test al, al */ 6016 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6017 _cf = 0; 6018 _flag_k = FK_NARROW(FK_TEST, 24); 6019 if (TEST_Z(_flag_a, _flag_b)) goto L_36020512; /* 0x360204E8: je 0x36020512 */ 6020 L_360204EA: 6021 edx = ebp + (-0x8); /* 0x360204EA: lea edx, [ebp - 8] */ 6022 PUSH32(esp, edx); /* 0x360204ED: push edx */ 6023 PUSH32(esp, 8); /* 0x360204EE: push 8 */ 6024 ecx = esi; /* 0x360204F0: mov ecx, esi */ 6025 MEM32(ebp + (-0x8)) = 0; /* 0x360204F2: mov dword ptr [ebp - 8], 0 */ 6026 RECOMP_ICALL(0x36022FC0u); /* 0x360204F9: call 0x36022fc0 */ /* not lifted */ 6027 RECOMP_FLAGS_IN(); 6028 eax = ebp + (-0x8); /* 0x360204FE: lea eax, [ebp - 8] */ 6029 PUSH32(esp, eax); /* 0x36020501: push eax */ 6030 PUSH32(esp, 6); /* 0x36020502: push 6 */ 6031 ecx = esi; /* 0x36020504: mov ecx, esi */ 6032 MEM32(ebp + (-0x8)) = 0; /* 0x36020506: mov dword ptr [ebp - 8], 0 */ 6033 RECOMP_ICALL(0x36022FC0u); /* 0x3602050D: call 0x36022fc0 */ /* not lifted */ 6034 RECOMP_FLAGS_IN(); 6035 L_36020512: 6036 esi = POP32_VAL(esp); /* 0x36020512: pop esi */ 6037 esp = ebp; /* 0x36020513: mov esp, ebp */ 6038 ebp = POP32_VAL(esp); /* 0x36020515: pop ebp */ 6039 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020516: ret */ 6040 RECOMP_REGS_OUT(); 6041 } 6042 6043 void sub_36020520(void) { 6044 int _fpu_cmp = 0; 6045 uint32_t _cf = 0; 6046 int _df = 1; 6047 uint32_t _flag_k = FK_NONE; 6048 uint32_t _flag_a = 0, _flag_b = 0; 6049 uint32_t _itail_tgt = 0; 6050 RECOMP_REGS_LOCALS 6051 RECOMP_ENTER(0x36020520u); 6052 6053 L_36020520: 6054 PUSH32(esp, ebp); /* 0x36020520: push ebp */ 6055 ebp = esp; /* 0x36020521: mov ebp, esp */ 6056 PUSH32(esp, ecx); /* 0x36020523: push ecx */ 6057 PUSH32(esp, esi); /* 0x36020524: push esi */ 6058 PUSH32(esp, edi); /* 0x36020525: push edi */ 6059 esi = ecx; /* 0x36020526: mov esi, ecx */ 6060 RECOMP_ICALL(0x3601F240u); /* 0x36020528: call 0x3601f240 */ /* not lifted */ 6061 RECOMP_FLAGS_IN(); 6062 edi = eax; /* 0x3602052D: mov edi, eax */ 6063 /* test edi, edi */ /* 0x3602052F: test edi, edi */ 6064 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6065 _cf = 0; 6066 _flag_k = FK_TEST; 6067 if (TEST_Z(_flag_a, _flag_b)) goto L_3602062B; /* 0x36020531: je 0x3602062b */ 6068 L_36020537: 6069 SET_LO8(eax, MEM8(0x36305B2C)); /* 0x36020537: mov al, byte ptr [0x36305b2c] */ 6070 /* test LO8(eax), LO8(eax) */ /* 0x3602053C: test al, al */ 6071 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6072 _cf = 0; 6073 _flag_k = FK_NARROW(FK_TEST, 24); 6074 if (TEST_NZ(_flag_a, _flag_b)) goto L_360205BF; /* 0x3602053E: jne 0x360205bf */ 6075 L_36020540: 6076 ecx = edi; /* 0x36020540: mov ecx, edi */ 6077 RECOMP_ICALL(0x3606D5A0u); /* 0x36020542: call 0x3606d5a0 */ /* not lifted */ 6078 RECOMP_FLAGS_IN(); 6079 ecx = eax; /* 0x36020547: mov ecx, eax */ 6080 RECOMP_ICALL(0x36047900u); /* 0x36020549: call 0x36047900 */ /* not lifted */ 6081 RECOMP_FLAGS_IN(); 6082 ecx = eax; /* 0x3602054E: mov ecx, eax */ 6083 RECOMP_ICALL(0x360F1680u); /* 0x36020550: call 0x360f1680 */ /* not lifted */ 6084 RECOMP_FLAGS_IN(); 6085 /* cmp eax, 3 */ /* 0x36020555: cmp eax, 3 */ 6086 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 6087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6088 _flag_k = FK_CMP; 6089 if (CMP_NE(_flag_a, _flag_b)) goto L_3602057D; /* 0x36020558: jne 0x3602057d */ 6090 L_3602055A: 6091 eax = ebp + (-0x4); /* 0x3602055A: lea eax, [ebp - 4] */ 6092 PUSH32(esp, eax); /* 0x3602055D: push eax */ 6093 PUSH32(esp, 0xCu); /* 0x3602055E: push 0xc */ 6094 ecx = esi; /* 0x36020560: mov ecx, esi */ 6095 MEM32(ebp + (-0x4)) = 0; /* 0x36020562: mov dword ptr [ebp - 4], 0 */ 6096 RECOMP_ICALL(0x36022FC0u); /* 0x36020569: call 0x36022fc0 */ /* not lifted */ 6097 RECOMP_FLAGS_IN(); 6098 ecx = ebp + (-0x4); /* 0x3602056E: lea ecx, [ebp - 4] */ 6099 PUSH32(esp, ecx); /* 0x36020571: push ecx */ 6100 MEM32(ebp + (-0x4)) = 0; /* 0x36020572: mov dword ptr [ebp - 4], 0 */ 6101 PUSH32(esp, 7); /* 0x36020579: push 7 */ 6102 goto L_360205B8; /* 0x3602057B: jmp 0x360205b8 */ 6103 L_3602057D: 6104 ecx = edi; /* 0x3602057D: mov ecx, edi */ 6105 RECOMP_ICALL(0x3606D5A0u); /* 0x3602057F: call 0x3606d5a0 */ /* not lifted */ 6106 RECOMP_FLAGS_IN(); 6107 ecx = eax; /* 0x36020584: mov ecx, eax */ 6108 RECOMP_ICALL(0x36047900u); /* 0x36020586: call 0x36047900 */ /* not lifted */ 6109 RECOMP_FLAGS_IN(); 6110 ecx = eax; /* 0x3602058B: mov ecx, eax */ 6111 RECOMP_ICALL(0x360F1680u); /* 0x3602058D: call 0x360f1680 */ /* not lifted */ 6112 RECOMP_FLAGS_IN(); 6113 /* cmp eax, 4 */ /* 0x36020592: cmp eax, 4 */ 6114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6116 _flag_k = FK_CMP; 6117 if (CMP_NE(_flag_a, _flag_b)) goto L_360205BF; /* 0x36020595: jne 0x360205bf */ 6118 L_36020597: 6119 edx = ebp + (-0x4); /* 0x36020597: lea edx, [ebp - 4] */ 6120 PUSH32(esp, edx); /* 0x3602059A: push edx */ 6121 PUSH32(esp, 0xAu); /* 0x3602059B: push 0xa */ 6122 ecx = esi; /* 0x3602059D: mov ecx, esi */ 6123 MEM32(ebp + (-0x4)) = 0; /* 0x3602059F: mov dword ptr [ebp - 4], 0 */ 6124 RECOMP_ICALL(0x36022FC0u); /* 0x360205A6: call 0x36022fc0 */ /* not lifted */ 6125 RECOMP_FLAGS_IN(); 6126 eax = ebp + (-0x4); /* 0x360205AB: lea eax, [ebp - 4] */ 6127 PUSH32(esp, eax); /* 0x360205AE: push eax */ 6128 MEM32(ebp + (-0x4)) = 0; /* 0x360205AF: mov dword ptr [ebp - 4], 0 */ 6129 PUSH32(esp, 5); /* 0x360205B6: push 5 */ 6130 L_360205B8: 6131 ecx = esi; /* 0x360205B8: mov ecx, esi */ 6132 RECOMP_ICALL(0x36022FC0u); /* 0x360205BA: call 0x36022fc0 */ /* not lifted */ 6133 RECOMP_FLAGS_IN(); 6134 L_360205BF: 6135 PUSH32(esp, ebx); /* 0x360205BF: push ebx */ 6136 ecx = edi; /* 0x360205C0: mov ecx, edi */ 6137 MEM8(0x36305B2C) = (uint8_t)(1); /* 0x360205C2: mov byte ptr [0x36305b2c], 1 */ 6138 RECOMP_ICALL(0x3606D5A0u); /* 0x360205C9: call 0x3606d5a0 */ /* not lifted */ 6139 RECOMP_FLAGS_IN(); 6140 ecx = eax; /* 0x360205CE: mov ecx, eax */ 6141 RECOMP_ICALL(0x36047900u); /* 0x360205D0: call 0x36047900 */ /* not lifted */ 6142 RECOMP_FLAGS_IN(); 6143 ecx = eax; /* 0x360205D5: mov ecx, eax */ 6144 RECOMP_ICALL(0x36008320u); /* 0x360205D7: call 0x36008320 */ /* not lifted */ 6145 RECOMP_FLAGS_IN(); 6146 ecx = MEM32(esi + 0x80); /* 0x360205DC: mov ecx, dword ptr [esi + 0x80] */ 6147 /* cmp eax, 7 */ /* 0x360205E2: cmp eax, 7 */ 6148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(7); 6149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6150 _flag_k = FK_CMP; 6151 SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360205E5: sete bl */ 6152 /* test ecx, ecx */ /* 0x360205E8: test ecx, ecx */ 6153 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6154 _cf = 0; 6155 _flag_k = FK_TEST; 6156 if (TEST_Z(_flag_a, _flag_b)) goto L_36020610; /* 0x360205EA: je 0x36020610 */ 6157 L_360205EC: 6158 RECOMP_ICALL(MEM32(0x3617008C)); /* 0x360205EC: call dword ptr [0x3617008c] */ 6159 RECOMP_FLAGS_IN(); 6160 /* test LO8(eax), LO8(eax) */ /* 0x360205F2: test al, al */ 6161 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6162 _cf = 0; 6163 _flag_k = FK_NARROW(FK_TEST, 24); 6164 if (TEST_Z(_flag_a, _flag_b)) goto L_36020610; /* 0x360205F4: je 0x36020610 */ 6165 L_360205F6: 6166 /* test LO8(ebx), LO8(ebx) */ /* 0x360205F6: test bl, bl */ 6167 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6168 _cf = 0; 6169 _flag_k = FK_NARROW(FK_TEST, 24); 6170 if (TEST_Z(_flag_a, _flag_b)) goto L_360205FE; /* 0x360205F8: je 0x360205fe */ 6171 L_360205FA: 6172 PUSH32(esp, 0); /* 0x360205FA: push 0 */ 6173 goto L_36020602; /* 0x360205FC: jmp 0x36020602 */ 6174 L_360205FE: 6175 ecx = MEM32(ebp + 0xC); /* 0x360205FE: mov ecx, dword ptr [ebp + 0xc] */ 6176 PUSH32(esp, ecx); /* 0x36020601: push ecx */ 6177 L_36020602: 6178 ecx = MEM32(esi + 0x80); /* 0x36020602: mov ecx, dword ptr [esi + 0x80] */ 6179 PUSH32(esp, 0); /* 0x36020608: push 0 */ 6180 RECOMP_ICALL(MEM32(0x36170088)); /* 0x3602060A: call dword ptr [0x36170088] */ 6181 RECOMP_FLAGS_IN(); 6182 L_36020610: 6183 ecx = edi; /* 0x36020610: mov ecx, edi */ 6184 RECOMP_ICALL(0x3606D5A0u); /* 0x36020612: call 0x3606d5a0 */ /* not lifted */ 6185 RECOMP_FLAGS_IN(); 6186 /* test eax, eax */ /* 0x36020617: test eax, eax */ 6187 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6188 _cf = 0; 6189 _flag_k = FK_TEST; 6190 ebx = POP32_VAL(esp); /* 0x36020619: pop ebx */ 6191 if (TEST_Z(_flag_a, _flag_b)) goto L_3602062B; /* 0x3602061A: je 0x3602062b */ 6192 L_3602061C: 6193 edx = MEM32(ebp + 0xC); /* 0x3602061C: mov edx, dword ptr [ebp + 0xc] */ 6194 ecx = MEM32(ebp + 0x8); /* 0x3602061F: mov ecx, dword ptr [ebp + 8] */ 6195 PUSH32(esp, edx); /* 0x36020622: push edx */ 6196 PUSH32(esp, ecx); /* 0x36020623: push ecx */ 6197 ecx = eax; /* 0x36020624: mov ecx, eax */ 6198 RECOMP_ICALL(0x3604BD30u); /* 0x36020626: call 0x3604bd30 */ /* not lifted */ 6199 RECOMP_FLAGS_IN(); 6200 L_3602062B: 6201 edi = POP32_VAL(esp); /* 0x3602062B: pop edi */ 6202 esi = POP32_VAL(esp); /* 0x3602062C: pop esi */ 6203 esp = ebp; /* 0x3602062D: mov esp, ebp */ 6204 ebp = POP32_VAL(esp); /* 0x3602062F: pop ebp */ 6205 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36020630: ret 8 */ 6206 RECOMP_REGS_OUT(); 6207 } 6208 6209 void sub_36020640(void) { 6210 int _fpu_cmp = 0; 6211 uint32_t _cf = 0; 6212 int _df = 1; 6213 uint32_t _flag_k = FK_NONE; 6214 uint32_t _flag_a = 0, _flag_b = 0; 6215 uint32_t _itail_tgt = 0; 6216 RECOMP_REGS_LOCALS 6217 RECOMP_ENTER(0x36020640u); 6218 6219 L_36020640: 6220 PUSH32(esp, ebp); /* 0x36020640: push ebp */ 6221 ebp = esp; /* 0x36020641: mov ebp, esp */ 6222 PUSH32(esp, ecx); /* 0x36020643: push ecx */ 6223 PUSH32(esp, esi); /* 0x36020644: push esi */ 6224 PUSH32(esp, edi); /* 0x36020645: push edi */ 6225 esi = ecx; /* 0x36020646: mov esi, ecx */ 6226 RECOMP_ICALL(0x3601F240u); /* 0x36020648: call 0x3601f240 */ /* not lifted */ 6227 RECOMP_FLAGS_IN(); 6228 edi = eax; /* 0x3602064D: mov edi, eax */ 6229 /* test edi, edi */ /* 0x3602064F: test edi, edi */ 6230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6231 _cf = 0; 6232 _flag_k = FK_TEST; 6233 if (TEST_Z(_flag_a, _flag_b)) goto L_360206D1; /* 0x36020651: je 0x360206d1 */ 6234 L_36020653: 6235 ecx = MEM32(esi + 0x80); /* 0x36020653: mov ecx, dword ptr [esi + 0x80] */ 6236 /* test ecx, ecx */ /* 0x36020659: test ecx, ecx */ 6237 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6238 _cf = 0; 6239 _flag_k = FK_TEST; 6240 if (TEST_Z(_flag_a, _flag_b)) goto L_36020689; /* 0x3602065B: je 0x36020689 */ 6241 L_3602065D: 6242 RECOMP_ICALL(MEM32(0x3617008C)); /* 0x3602065D: call dword ptr [0x3617008c] */ 6243 RECOMP_FLAGS_IN(); 6244 /* test LO8(eax), LO8(eax) */ /* 0x36020663: test al, al */ 6245 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6246 _cf = 0; 6247 _flag_k = FK_NARROW(FK_TEST, 24); 6248 if (TEST_Z(_flag_a, _flag_b)) goto L_36020677; /* 0x36020665: je 0x36020677 */ 6249 L_36020667: 6250 ecx = MEM32(esi + 0x80); /* 0x36020667: mov ecx, dword ptr [esi + 0x80] */ 6251 eax = ebp + (-0x4); /* 0x3602066D: lea eax, [ebp - 4] */ 6252 PUSH32(esp, eax); /* 0x36020670: push eax */ 6253 RECOMP_ICALL(MEM32(0x36170090)); /* 0x36020671: call dword ptr [0x36170090] */ 6254 RECOMP_FLAGS_IN(); 6255 L_36020677: 6256 ecx = edi; /* 0x36020677: mov ecx, edi */ 6257 RECOMP_ICALL(0x3606D5A0u); /* 0x36020679: call 0x3606d5a0 */ /* not lifted */ 6258 RECOMP_FLAGS_IN(); 6259 /* test eax, eax */ /* 0x3602067E: test eax, eax */ 6260 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6261 _cf = 0; 6262 _flag_k = FK_TEST; 6263 if (TEST_Z(_flag_a, _flag_b)) goto L_36020689; /* 0x36020680: je 0x36020689 */ 6264 L_36020682: 6265 ecx = eax; /* 0x36020682: mov ecx, eax */ 6266 RECOMP_ICALL(0x3604BD50u); /* 0x36020684: call 0x3604bd50 */ /* not lifted */ 6267 RECOMP_FLAGS_IN(); 6268 L_36020689: 6269 ecx = edi; /* 0x36020689: mov ecx, edi */ 6270 MEM8(0x36305B2C) = (uint8_t)(0); /* 0x3602068B: mov byte ptr [0x36305b2c], 0 */ 6271 RECOMP_ICALL(0x3606D5A0u); /* 0x36020692: call 0x3606d5a0 */ /* not lifted */ 6272 RECOMP_FLAGS_IN(); 6273 ecx = eax; /* 0x36020697: mov ecx, eax */ 6274 RECOMP_ICALL(0x36047900u); /* 0x36020699: call 0x36047900 */ /* not lifted */ 6275 RECOMP_FLAGS_IN(); 6276 ecx = eax; /* 0x3602069E: mov ecx, eax */ 6277 RECOMP_ICALL(0x36046F70u); /* 0x360206A0: call 0x36046f70 */ /* not lifted */ 6278 RECOMP_FLAGS_IN(); 6279 /* test LO8(eax), LO8(eax) */ /* 0x360206A5: test al, al */ 6280 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6281 _cf = 0; 6282 _flag_k = FK_NARROW(FK_TEST, 24); 6283 if (TEST_Z(_flag_a, _flag_b)) goto L_360206D1; /* 0x360206A7: je 0x360206d1 */ 6284 L_360206A9: 6285 ecx = ebp + (-0x4); /* 0x360206A9: lea ecx, [ebp - 4] */ 6286 PUSH32(esp, ecx); /* 0x360206AC: push ecx */ 6287 PUSH32(esp, 8); /* 0x360206AD: push 8 */ 6288 ecx = esi; /* 0x360206AF: mov ecx, esi */ 6289 MEM32(ebp + (-0x4)) = 0; /* 0x360206B1: mov dword ptr [ebp - 4], 0 */ 6290 RECOMP_ICALL(0x36022FC0u); /* 0x360206B8: call 0x36022fc0 */ /* not lifted */ 6291 RECOMP_FLAGS_IN(); 6292 edx = ebp + (-0x4); /* 0x360206BD: lea edx, [ebp - 4] */ 6293 PUSH32(esp, edx); /* 0x360206C0: push edx */ 6294 PUSH32(esp, 6); /* 0x360206C1: push 6 */ 6295 ecx = esi; /* 0x360206C3: mov ecx, esi */ 6296 MEM32(ebp + (-0x4)) = 0; /* 0x360206C5: mov dword ptr [ebp - 4], 0 */ 6297 RECOMP_ICALL(0x36022FC0u); /* 0x360206CC: call 0x36022fc0 */ /* not lifted */ 6298 RECOMP_FLAGS_IN(); 6299 L_360206D1: 6300 edi = POP32_VAL(esp); /* 0x360206D1: pop edi */ 6301 esi = POP32_VAL(esp); /* 0x360206D2: pop esi */ 6302 esp = ebp; /* 0x360206D3: mov esp, ebp */ 6303 ebp = POP32_VAL(esp); /* 0x360206D5: pop ebp */ 6304 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360206D6: ret */ 6305 RECOMP_REGS_OUT(); 6306 } 6307 6308 void sub_360206E0(void) { 6309 int _fpu_cmp = 0; 6310 uint32_t _cf = 0; 6311 int _df = 1; 6312 uint32_t _flag_k = FK_NONE; 6313 uint32_t _flag_a = 0, _flag_b = 0; 6314 uint32_t _itail_tgt = 0; 6315 RECOMP_REGS_LOCALS 6316 RECOMP_ENTER(0x360206E0u); 6317 6318 L_360206E0: 6319 ecx = MEM32(ecx + 0x80); /* 0x360206E0: mov ecx, dword ptr [ecx + 0x80] */ 6320 L_360206E6: 6321 /* test ecx, ecx */ /* 0x360206E6: test ecx, ecx */ 6322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6323 _cf = 0; 6324 _flag_k = FK_TEST; 6325 L_360206E8: 6326 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_360206F0; /* 0x360206E8: je 0x360206f0 */ 6327 L_360206EA: 6328 { _itail_tgt = (uint32_t)(MEM32(0x36170094)); goto _ljump; } 6329 L_360206F0: 6330 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360206F0: ret */ 6331 _ljump: 6332 switch (_itail_tgt) { 6333 case 0x360206E0u: goto L_360206E0; 6334 case 0x360206E6u: goto L_360206E6; 6335 case 0x360206E8u: goto L_360206E8; 6336 case 0x360206EAu: goto L_360206EA; 6337 case 0x360206F0u: goto L_360206F0; 6338 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6339 } 6340 RECOMP_REGS_OUT(); 6341 } 6342 6343 void sub_36020700(void) { 6344 int _fpu_cmp = 0; 6345 uint32_t _cf = 0; 6346 int _df = 1; 6347 uint32_t _flag_k = FK_NONE; 6348 uint32_t _flag_a = 0, _flag_b = 0; 6349 uint32_t _itail_tgt = 0; 6350 RECOMP_REGS_LOCALS 6351 RECOMP_ENTER(0x36020700u); 6352 6353 L_36020700: 6354 ecx = MEM32(ecx + 0x80); /* 0x36020700: mov ecx, dword ptr [ecx + 0x80] */ 6355 L_36020706: 6356 /* test ecx, ecx */ /* 0x36020706: test ecx, ecx */ 6357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6358 _cf = 0; 6359 _flag_k = FK_TEST; 6360 L_36020708: 6361 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36020710; /* 0x36020708: je 0x36020710 */ 6362 L_3602070A: 6363 { _itail_tgt = (uint32_t)(MEM32(0x36170098)); goto _ljump; } 6364 L_36020710: 6365 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020710: ret */ 6366 _ljump: 6367 switch (_itail_tgt) { 6368 case 0x36020700u: goto L_36020700; 6369 case 0x36020706u: goto L_36020706; 6370 case 0x36020708u: goto L_36020708; 6371 case 0x3602070Au: goto L_3602070A; 6372 case 0x36020710u: goto L_36020710; 6373 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6374 } 6375 RECOMP_REGS_OUT(); 6376 } 6377 6378 void sub_36020720(void) { 6379 int _fpu_cmp = 0; 6380 uint32_t _cf = 0; 6381 int _df = 1; 6382 uint32_t _flag_k = FK_NONE; 6383 uint32_t _flag_a = 0, _flag_b = 0; 6384 uint32_t _itail_tgt = 0; 6385 RECOMP_REGS_LOCALS 6386 RECOMP_ENTER(0x36020720u); 6387 6388 L_36020720: 6389 ecx = MEM32(ecx + 0x80); /* 0x36020720: mov ecx, dword ptr [ecx + 0x80] */ 6390 L_36020726: 6391 /* test ecx, ecx */ /* 0x36020726: test ecx, ecx */ 6392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6393 _cf = 0; 6394 _flag_k = FK_TEST; 6395 L_36020728: 6396 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36020730; /* 0x36020728: je 0x36020730 */ 6397 L_3602072A: 6398 { _itail_tgt = (uint32_t)(MEM32(0x3617009C)); goto _ljump; } 6399 L_36020730: 6400 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36020730: ret */ 6401 _ljump: 6402 switch (_itail_tgt) { 6403 case 0x36020720u: goto L_36020720; 6404 case 0x36020726u: goto L_36020726; 6405 case 0x36020728u: goto L_36020728; 6406 case 0x3602072Au: goto L_3602072A; 6407 case 0x36020730u: goto L_36020730; 6408 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6409 } 6410 RECOMP_REGS_OUT(); 6411 } 6412 6413 void sub_36020740(void) { 6414 int _fpu_cmp = 0; 6415 uint32_t _cf = 0; 6416 int _df = 1; 6417 uint32_t _flag_k = FK_NONE; 6418 uint32_t _flag_a = 0, _flag_b = 0; 6419 uint32_t _itail_tgt = 0; 6420 RECOMP_REGS_LOCALS 6421 RECOMP_ENTER(0x36020740u); 6422 6423 L_36020740: 6424 PUSH32(esp, ebp); /* 0x36020740: push ebp */ 6425 ebp = esp; /* 0x36020741: mov ebp, esp */ 6426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6428 esp = esp - 0xCu; /* 0x36020743: sub esp, 0xc */ 6429 _flag_k = FK_CMP; 6430 PUSH32(esp, ebx); /* 0x36020746: push ebx */ 6431 PUSH32(esp, esi); /* 0x36020747: push esi */ 6432 PUSH32(esp, edi); /* 0x36020748: push edi */ 6433 MEM32(ebp + (-0x4)) = ecx; /* 0x36020749: mov dword ptr [ebp - 4], ecx */ 6434 RECOMP_ICALL(0x3601F240u); /* 0x3602074C: call 0x3601f240 */ /* not lifted */ 6435 RECOMP_FLAGS_IN(); 6436 ebx = eax; /* 0x36020751: mov ebx, eax */ 6437 /* test ebx, ebx */ /* 0x36020753: test ebx, ebx */ 6438 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6439 _cf = 0; 6440 _flag_k = FK_TEST; 6441 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A19; /* 0x36020755: je 0x36020a19 */ 6442 L_3602075B: 6443 esi = MEM32(ebp + 0x8); /* 0x3602075B: mov esi, dword ptr [ebp + 8] */ 6444 eax = MEM32(esi + 0x4); /* 0x3602075E: mov eax, dword ptr [esi + 4] */ 6445 /* cmp eax, MEM32(0x36305AE4) */ /* 0x36020761: cmp eax, dword ptr [0x36305ae4] */ 6446 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x36305AE4)); 6447 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6448 _flag_k = FK_CMP; 6449 if (CMP_NE(_flag_a, _flag_b)) goto L_36020777; /* 0x36020767: jne 0x36020777 */ 6450 L_36020769: 6451 ecx = MEM32(esi); /* 0x36020769: mov ecx, dword ptr [esi] */ 6452 /* cmp ecx, MEM32(0x36305AE0) */ /* 0x3602076B: cmp ecx, dword ptr [0x36305ae0] */ 6453 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x36305AE0)); 6454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6455 _flag_k = FK_CMP; 6456 if (CMP_EQ(_flag_a, _flag_b)) goto L_36020A19; /* 0x36020771: je 0x36020a19 */ 6457 L_36020777: 6458 eax = MEM32(esi); /* 0x36020777: mov eax, dword ptr [esi] */ 6459 /* cmp eax, 0x6Eu */ /* 0x36020779: cmp eax, 0x6e */ 6460 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Eu); 6461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6462 _flag_k = FK_CMP; 6463 if (CMP_NE(_flag_a, _flag_b)) goto L_3602078C; /* 0x3602077C: jne 0x3602078c */ 6464 L_3602077E: 6465 eax = MEM32(0x361706C8); /* 0x3602077E: mov eax, dword ptr [0x361706c8] */ 6466 edi = POP32_VAL(esp); /* 0x36020783: pop edi */ 6467 esi = POP32_VAL(esp); /* 0x36020784: pop esi */ 6468 ebx = POP32_VAL(esp); /* 0x36020785: pop ebx */ 6469 esp = ebp; /* 0x36020786: mov esp, ebp */ 6470 ebp = POP32_VAL(esp); /* 0x36020788: pop ebp */ 6471 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020789: ret 4 */ 6472 L_3602078C: 6473 /* cmp eax, 0x6Fu */ /* 0x3602078C: cmp eax, 0x6f */ 6474 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x6Fu); 6475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6476 _flag_k = FK_CMP; 6477 if (CMP_NE(_flag_a, _flag_b)) goto L_360207E1; /* 0x3602078F: jne 0x360207e1 */ 6478 L_36020791: 6479 ecx = ebx; /* 0x36020791: mov ecx, ebx */ 6480 RECOMP_ICALL(0x36071F90u); /* 0x36020793: call 0x36071f90 */ /* not lifted */ 6481 RECOMP_FLAGS_IN(); 6482 PUSH32(esp, 0); /* 0x36020798: push 0 */ 6483 PUSH32(esp, 0x361B5C98u); /* 0x3602079A: push 0x361b5c98 */ 6484 PUSH32(esp, 0x361B2CC0u); /* 0x3602079F: push 0x361b2cc0 */ 6485 PUSH32(esp, 0); /* 0x360207A4: push 0 */ 6486 PUSH32(esp, eax); /* 0x360207A6: push eax */ 6487 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x360207A7: call dword ptr [0x3616ff70] */ 6488 RECOMP_FLAGS_IN(); 6489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6490 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6491 esp = esp + 4; /* 0x360207AD: add esp, 4 */ 6492 _flag_k = FK_ADD; 6493 PUSH32(esp, eax); /* 0x360207B0: push eax */ 6494 RECOMP_ICALL(0x3615FD86u); /* 0x360207B1: call 0x3615fd86 */ /* not lifted */ 6495 RECOMP_FLAGS_IN(); 6496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6498 esp = esp + 0x14u; /* 0x360207B6: add esp, 0x14 */ 6499 _flag_k = FK_ADD; 6500 /* test eax, eax */ /* 0x360207B9: test eax, eax */ 6501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6502 _cf = 0; 6503 _flag_k = FK_TEST; 6504 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A19; /* 0x360207BB: je 0x36020a19 */ 6505 L_360207C1: 6506 PUSH32(esp, esi); /* 0x360207C1: push esi */ 6507 ecx = eax; /* 0x360207C2: mov ecx, eax */ 6508 RECOMP_ICALL(0x360AA850u); /* 0x360207C4: call 0x360aa850 */ /* not lifted */ 6509 RECOMP_FLAGS_IN(); 6510 /* test eax, eax */ /* 0x360207C9: test eax, eax */ 6511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6512 _cf = 0; 6513 _flag_k = FK_TEST; 6514 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A19; /* 0x360207CB: je 0x36020a19 */ 6515 L_360207D1: 6516 edx = MEM32(eax); /* 0x360207D1: mov edx, dword ptr [eax] */ 6517 ecx = eax; /* 0x360207D3: mov ecx, eax */ 6518 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x360207D5: call dword ptr [edx + 0x3c] */ 6519 RECOMP_FLAGS_IN(); 6520 edi = POP32_VAL(esp); /* 0x360207D8: pop edi */ 6521 esi = POP32_VAL(esp); /* 0x360207D9: pop esi */ 6522 ebx = POP32_VAL(esp); /* 0x360207DA: pop ebx */ 6523 esp = ebp; /* 0x360207DB: mov esp, ebp */ 6524 ebp = POP32_VAL(esp); /* 0x360207DD: pop ebp */ 6525 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360207DE: ret 4 */ 6526 L_360207E1: 6527 /* cmp eax, 0x64u */ /* 0x360207E1: cmp eax, 0x64 */ 6528 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x64u); 6529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6530 _flag_k = FK_CMP; 6531 if (CMP_LE(_flag_a, _flag_b)) goto L_3602080F; /* 0x360207E4: jle 0x3602080f */ 6532 L_360207E6: 6533 /* cmp eax, 0xFAu */ /* 0x360207E6: cmp eax, 0xfa */ 6534 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFAu); 6535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6536 _flag_k = FK_CMP; 6537 if (CMP_GE(_flag_a, _flag_b)) goto L_3602080F; /* 0x360207EB: jge 0x3602080f */ 6538 L_360207ED: 6539 ecx = MEM32(ebx + 0x150); /* 0x360207ED: mov ecx, dword ptr [ebx + 0x150] */ 6540 PUSH32(esp, esi); /* 0x360207F3: push esi */ 6541 RECOMP_ICALL(0x3605E3C0u); /* 0x360207F4: call 0x3605e3c0 */ /* not lifted */ 6542 RECOMP_FLAGS_IN(); 6543 /* test eax, eax */ /* 0x360207F9: test eax, eax */ 6544 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6545 _cf = 0; 6546 _flag_k = FK_TEST; 6547 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020A1E; /* 0x360207FB: jne 0x36020a1e */ 6548 L_36020801: 6549 eax = MEM32(0x361706C0); /* 0x36020801: mov eax, dword ptr [0x361706c0] */ 6550 edi = POP32_VAL(esp); /* 0x36020806: pop edi */ 6551 esi = POP32_VAL(esp); /* 0x36020807: pop esi */ 6552 ebx = POP32_VAL(esp); /* 0x36020808: pop ebx */ 6553 esp = ebp; /* 0x36020809: mov esp, ebp */ 6554 ebp = POP32_VAL(esp); /* 0x3602080B: pop ebp */ 6555 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3602080C: ret 4 */ 6556 L_3602080F: 6557 /* cmp eax, 0xC353u */ /* 0x3602080F: cmp eax, 0xc353 */ 6558 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC353u); 6559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6560 _flag_k = FK_CMP; 6561 if (CMP_NE(_flag_a, _flag_b)) goto L_360208BE; /* 0x36020814: jne 0x360208be */ 6562 L_3602081A: 6563 PUSH32(esp, 0); /* 0x3602081A: push 0 */ 6564 PUSH32(esp, 0x361B2CF8u); /* 0x3602081C: push 0x361b2cf8 */ 6565 PUSH32(esp, 0x361B2CC0u); /* 0x36020821: push 0x361b2cc0 */ 6566 PUSH32(esp, 0); /* 0x36020826: push 0 */ 6567 PUSH32(esp, esi); /* 0x36020828: push esi */ 6568 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020829: call dword ptr [0x3616ff70] */ 6569 RECOMP_FLAGS_IN(); 6570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6572 esp = esp + 4; /* 0x3602082F: add esp, 4 */ 6573 _flag_k = FK_ADD; 6574 PUSH32(esp, eax); /* 0x36020832: push eax */ 6575 RECOMP_ICALL(0x3615FD86u); /* 0x36020833: call 0x3615fd86 */ /* not lifted */ 6576 RECOMP_FLAGS_IN(); 6577 esi = eax; /* 0x36020838: mov esi, eax */ 6578 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6580 esp = esp + 0x14u; /* 0x3602083A: add esp, 0x14 */ 6581 _flag_k = FK_ADD; 6582 /* test esi, esi */ /* 0x3602083D: test esi, esi */ 6583 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6584 _cf = 0; 6585 _flag_k = FK_TEST; 6586 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A19; /* 0x3602083F: je 0x36020a19 */ 6587 L_36020845: 6588 eax = MEM32(esi); /* 0x36020845: mov eax, dword ptr [esi] */ 6589 PUSH32(esp, 2); /* 0x36020847: push 2 */ 6590 PUSH32(esp, 0x2BDu); /* 0x36020849: push 0x2bd */ 6591 ecx = esi; /* 0x3602084E: mov ecx, esi */ 6592 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36020850: call dword ptr [eax + 4] */ 6593 RECOMP_FLAGS_IN(); 6594 edx = MEM32(esi); /* 0x36020853: mov edx, dword ptr [esi] */ 6595 PUSH32(esp, 2); /* 0x36020855: push 2 */ 6596 PUSH32(esp, 0x2BFu); /* 0x36020857: push 0x2bf */ 6597 ecx = esi; /* 0x3602085C: mov ecx, esi */ 6598 edi = eax; /* 0x3602085E: mov edi, eax */ 6599 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36020860: call dword ptr [edx + 4] */ 6600 RECOMP_FLAGS_IN(); 6601 PUSH32(esp, 2); /* 0x36020863: push 2 */ 6602 ebx = eax; /* 0x36020865: mov ebx, eax */ 6603 eax = MEM32(esi); /* 0x36020867: mov eax, dword ptr [esi] */ 6604 PUSH32(esp, 0x2BEu); /* 0x36020869: push 0x2be */ 6605 ecx = esi; /* 0x3602086E: mov ecx, esi */ 6606 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36020870: call dword ptr [eax + 4] */ 6607 RECOMP_FLAGS_IN(); 6608 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFu); 6609 edi = edi & 0xFFFFu; /* 0x36020873: and edi, 0xffff */ 6610 _cf = 0; 6611 _flag_k = FK_TEST; 6612 /* test ebx, ebx */ /* 0x36020879: test ebx, ebx */ 6613 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6614 _cf = 0; 6615 _flag_k = FK_TEST; 6616 MEM32(ebp + (-0xC)) = edi; /* 0x3602087B: mov dword ptr [ebp - 0xc], edi */ 6617 MEM32(ebp + (-0x8)) = eax; /* 0x3602087E: mov dword ptr [ebp - 8], eax */ 6618 MEM32(ebp + (-0x4)) = ebx; /* 0x36020881: mov dword ptr [ebp - 4], ebx */ 6619 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020889; /* 0x36020884: jne 0x36020889 */ 6620 L_36020886: 6621 MEM32(ebp + (-0x4)) = eax; /* 0x36020886: mov dword ptr [ebp - 4], eax */ 6622 L_36020889: 6623 ecx = ebp + (-0xC); /* 0x36020889: lea ecx, [ebp - 0xc] */ 6624 PUSH32(esp, ecx); /* 0x3602088C: push ecx */ 6625 RECOMP_ICALL(0x36089810u); /* 0x3602088D: call 0x36089810 */ /* not lifted */ 6626 RECOMP_FLAGS_IN(); 6627 ecx = eax; /* 0x36020892: mov ecx, eax */ 6628 RECOMP_ICALL(0x360894C0u); /* 0x36020894: call 0x360894c0 */ /* not lifted */ 6629 RECOMP_FLAGS_IN(); 6630 /* test eax, eax */ /* 0x36020899: test eax, eax */ 6631 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6632 _cf = 0; 6633 _flag_k = FK_TEST; 6634 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A19; /* 0x3602089B: je 0x36020a19 */ 6635 L_360208A1: 6636 edx = MEM32(eax); /* 0x360208A1: mov edx, dword ptr [eax] */ 6637 ecx = eax; /* 0x360208A3: mov ecx, eax */ 6638 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x360208A5: call dword ptr [edx + 0x3c] */ 6639 RECOMP_FLAGS_IN(); 6640 /* test eax, eax */ /* 0x360208A8: test eax, eax */ 6641 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6642 _cf = 0; 6643 _flag_k = FK_TEST; 6644 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020A1E; /* 0x360208AA: jne 0x36020a1e */ 6645 L_360208B0: 6646 eax = MEM32(0x361706C0); /* 0x360208B0: mov eax, dword ptr [0x361706c0] */ 6647 edi = POP32_VAL(esp); /* 0x360208B5: pop edi */ 6648 esi = POP32_VAL(esp); /* 0x360208B6: pop esi */ 6649 ebx = POP32_VAL(esp); /* 0x360208B7: pop ebx */ 6650 esp = ebp; /* 0x360208B8: mov esp, ebp */ 6651 ebp = POP32_VAL(esp); /* 0x360208BA: pop ebp */ 6652 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360208BB: ret 4 */ 6653 L_360208BE: 6654 /* cmp eax, 0xDEADu */ /* 0x360208BE: cmp eax, 0xdead */ 6655 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEADu); 6656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6657 _flag_k = FK_CMP; 6658 if (CMP_NE(_flag_a, _flag_b)) goto L_360208D3; /* 0x360208C3: jne 0x360208d3 */ 6659 L_360208C5: 6660 eax = MEM32(0x361706C4); /* 0x360208C5: mov eax, dword ptr [0x361706c4] */ 6661 edi = POP32_VAL(esp); /* 0x360208CA: pop edi */ 6662 esi = POP32_VAL(esp); /* 0x360208CB: pop esi */ 6663 ebx = POP32_VAL(esp); /* 0x360208CC: pop ebx */ 6664 esp = ebp; /* 0x360208CD: mov esp, ebp */ 6665 ebp = POP32_VAL(esp); /* 0x360208CF: pop ebp */ 6666 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360208D0: ret 4 */ 6667 L_360208D3: 6668 /* cmp eax, 0xDEAEu */ /* 0x360208D3: cmp eax, 0xdeae */ 6669 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEAEu); 6670 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6671 _flag_k = FK_CMP; 6672 if (CMP_NE(_flag_a, _flag_b)) goto L_360208E8; /* 0x360208D8: jne 0x360208e8 */ 6673 L_360208DA: 6674 eax = MEM32(0x361706CC); /* 0x360208DA: mov eax, dword ptr [0x361706cc] */ 6675 edi = POP32_VAL(esp); /* 0x360208DF: pop edi */ 6676 esi = POP32_VAL(esp); /* 0x360208E0: pop esi */ 6677 ebx = POP32_VAL(esp); /* 0x360208E1: pop ebx */ 6678 esp = ebp; /* 0x360208E2: mov esp, ebp */ 6679 ebp = POP32_VAL(esp); /* 0x360208E4: pop ebp */ 6680 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360208E5: ret 4 */ 6681 L_360208E8: 6682 /* cmp eax, 0xDEAAu */ /* 0x360208E8: cmp eax, 0xdeaa */ 6683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDEAAu); 6684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6685 _flag_k = FK_CMP; 6686 if (CMP_NE(_flag_a, _flag_b)) goto L_360208FD; /* 0x360208ED: jne 0x360208fd */ 6687 L_360208EF: 6688 eax = MEM32(0x361706D0); /* 0x360208EF: mov eax, dword ptr [0x361706d0] */ 6689 edi = POP32_VAL(esp); /* 0x360208F4: pop edi */ 6690 esi = POP32_VAL(esp); /* 0x360208F5: pop esi */ 6691 ebx = POP32_VAL(esp); /* 0x360208F6: pop ebx */ 6692 esp = ebp; /* 0x360208F7: mov esp, ebp */ 6693 ebp = POP32_VAL(esp); /* 0x360208F9: pop ebp */ 6694 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360208FA: ret 4 */ 6695 L_360208FD: 6696 /* cmp eax, 0xC350u */ /* 0x360208FD: cmp eax, 0xc350 */ 6697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xC350u); 6698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6699 _flag_k = FK_CMP; 6700 edi = MEM32(0x3616FF70); /* 0x36020902: mov edi, dword ptr [0x3616ff70] */ 6701 if (CMP_NE(_flag_a, _flag_b)) goto L_3602093E; /* 0x36020908: jne 0x3602093e */ 6702 L_3602090A: 6703 PUSH32(esp, 0); /* 0x3602090A: push 0 */ 6704 PUSH32(esp, 0x361B2CD8u); /* 0x3602090C: push 0x361b2cd8 */ 6705 PUSH32(esp, 0x361B2CC0u); /* 0x36020911: push 0x361b2cc0 */ 6706 PUSH32(esp, 0); /* 0x36020916: push 0 */ 6707 PUSH32(esp, esi); /* 0x36020918: push esi */ 6708 RECOMP_ICALL(edi); /* 0x36020919: call edi */ 6709 RECOMP_FLAGS_IN(); 6710 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6712 esp = esp + 4; /* 0x3602091B: add esp, 4 */ 6713 _flag_k = FK_ADD; 6714 PUSH32(esp, eax); /* 0x3602091E: push eax */ 6715 RECOMP_ICALL(0x3615FD86u); /* 0x3602091F: call 0x3615fd86 */ /* not lifted */ 6716 RECOMP_FLAGS_IN(); 6717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6719 esp = esp + 0x14u; /* 0x36020924: add esp, 0x14 */ 6720 _flag_k = FK_ADD; 6721 /* test eax, eax */ /* 0x36020927: test eax, eax */ 6722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6723 _cf = 0; 6724 _flag_k = FK_TEST; 6725 if (TEST_Z(_flag_a, _flag_b)) goto L_3602093E; /* 0x36020929: je 0x3602093e */ 6726 L_3602092B: 6727 ecx = eax + 0xE4; /* 0x3602092B: lea ecx, [eax + 0xe4] */ 6728 eax = MEM32(ecx); /* 0x36020931: mov eax, dword ptr [ecx] */ 6729 RECOMP_ICALL(MEM32(eax + 0x3C)); /* 0x36020933: call dword ptr [eax + 0x3c] */ 6730 RECOMP_FLAGS_IN(); 6731 /* test eax, eax */ /* 0x36020936: test eax, eax */ 6732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6733 _cf = 0; 6734 _flag_k = FK_TEST; 6735 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020A1E; /* 0x36020938: jne 0x36020a1e */ 6736 L_3602093E: 6737 PUSH32(esp, 0); /* 0x3602093E: push 0 */ 6738 PUSH32(esp, 0x361B2CF8u); /* 0x36020940: push 0x361b2cf8 */ 6739 PUSH32(esp, 0x361B2CC0u); /* 0x36020945: push 0x361b2cc0 */ 6740 PUSH32(esp, 0); /* 0x3602094A: push 0 */ 6741 PUSH32(esp, esi); /* 0x3602094C: push esi */ 6742 RECOMP_ICALL(edi); /* 0x3602094D: call edi */ 6743 RECOMP_FLAGS_IN(); 6744 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6745 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6746 esp = esp + 4; /* 0x3602094F: add esp, 4 */ 6747 _flag_k = FK_ADD; 6748 PUSH32(esp, eax); /* 0x36020952: push eax */ 6749 RECOMP_ICALL(0x3615FD86u); /* 0x36020953: call 0x3615fd86 */ /* not lifted */ 6750 RECOMP_FLAGS_IN(); 6751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6753 esp = esp + 0x14u; /* 0x36020958: add esp, 0x14 */ 6754 _flag_k = FK_ADD; 6755 /* test eax, eax */ /* 0x3602095B: test eax, eax */ 6756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6757 _cf = 0; 6758 _flag_k = FK_TEST; 6759 if (TEST_Z(_flag_a, _flag_b)) goto L_3602096E; /* 0x3602095D: je 0x3602096e */ 6760 L_3602095F: 6761 edx = MEM32(eax); /* 0x3602095F: mov edx, dword ptr [eax] */ 6762 ecx = eax; /* 0x36020961: mov ecx, eax */ 6763 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x36020963: call dword ptr [edx + 0x3c] */ 6764 RECOMP_FLAGS_IN(); 6765 /* test eax, eax */ /* 0x36020966: test eax, eax */ 6766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6767 _cf = 0; 6768 _flag_k = FK_TEST; 6769 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020A1E; /* 0x36020968: jne 0x36020a1e */ 6770 L_3602096E: 6771 /* cmp MEM32(esi), 0xCF1Bu */ /* 0x3602096E: cmp dword ptr [esi], 0xcf1b */ 6772 _flag_a = (uint32_t)(MEM32(esi)); _flag_b = (uint32_t)(0xCF1Bu); 6773 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6774 _flag_k = FK_CMP; 6775 if (CMP_NE(_flag_a, _flag_b)) goto L_36020995; /* 0x36020974: jne 0x36020995 */ 6776 L_36020976: 6777 eax = MEM32(esi + 0x4); /* 0x36020976: mov eax, dword ptr [esi + 4] */ 6778 PUSH32(esp, eax); /* 0x36020979: push eax */ 6779 RECOMP_ICALL(0x360B4000u); /* 0x3602097A: call 0x360b4000 */ /* not lifted */ 6780 RECOMP_FLAGS_IN(); 6781 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6783 esp = esp + 4; /* 0x3602097F: add esp, 4 */ 6784 _flag_k = FK_ADD; 6785 /* test eax, eax */ /* 0x36020982: test eax, eax */ 6786 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6787 _cf = 0; 6788 _flag_k = FK_TEST; 6789 if (TEST_Z(_flag_a, _flag_b)) goto L_36020995; /* 0x36020984: je 0x36020995 */ 6790 L_36020986: 6791 edx = MEM32(eax); /* 0x36020986: mov edx, dword ptr [eax] */ 6792 ecx = eax; /* 0x36020988: mov ecx, eax */ 6793 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x3602098A: call dword ptr [edx + 0x3c] */ 6794 RECOMP_FLAGS_IN(); 6795 /* test eax, eax */ /* 0x3602098D: test eax, eax */ 6796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6797 _cf = 0; 6798 _flag_k = FK_TEST; 6799 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020A1E; /* 0x3602098F: jne 0x36020a1e */ 6800 L_36020995: 6801 eax = MEM32(esi); /* 0x36020995: mov eax, dword ptr [esi] */ 6802 /* cmp eax, 0xDAC3u */ /* 0x36020997: cmp eax, 0xdac3 */ 6803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xDAC3u); 6804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6805 _flag_k = FK_CMP; 6806 if (CMP_NE(_flag_a, _flag_b)) goto L_360209BD; /* 0x3602099C: jne 0x360209bd */ 6807 L_3602099E: 6808 PUSH32(esp, esi); /* 0x3602099E: push esi */ 6809 ecx = ebx; /* 0x3602099F: mov ecx, ebx */ 6810 RECOMP_ICALL(0x36071F20u); /* 0x360209A1: call 0x36071f20 */ /* not lifted */ 6811 RECOMP_FLAGS_IN(); 6812 ecx = eax; /* 0x360209A6: mov ecx, eax */ 6813 RECOMP_ICALL(0x3606C600u); /* 0x360209A8: call 0x3606c600 */ /* not lifted */ 6814 RECOMP_FLAGS_IN(); 6815 /* test eax, eax */ /* 0x360209AD: test eax, eax */ 6816 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6817 _cf = 0; 6818 _flag_k = FK_TEST; 6819 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A19; /* 0x360209AF: je 0x36020a19 */ 6820 L_360209B1: 6821 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 6822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6823 eax = eax + 8; /* 0x360209B1: add eax, 8 */ 6824 _flag_k = FK_ADD; 6825 edi = POP32_VAL(esp); /* 0x360209B4: pop edi */ 6826 esi = POP32_VAL(esp); /* 0x360209B5: pop esi */ 6827 ebx = POP32_VAL(esp); /* 0x360209B6: pop ebx */ 6828 esp = ebp; /* 0x360209B7: mov esp, ebp */ 6829 ebp = POP32_VAL(esp); /* 0x360209B9: pop ebp */ 6830 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360209BA: ret 4 */ 6831 L_360209BD: 6832 ecx = ebp + (-0x8); /* 0x360209BD: lea ecx, [ebp - 8] */ 6833 /* cmp ecx, esi */ /* 0x360209C0: cmp ecx, esi */ 6834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 6835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6836 _flag_k = FK_CMP; 6837 if (CMP_EQ(_flag_a, _flag_b)) goto L_360209CB; /* 0x360209C2: je 0x360209cb */ 6838 L_360209C4: 6839 ecx = MEM32(esi + 0x4); /* 0x360209C4: mov ecx, dword ptr [esi + 4] */ 6840 edx = eax; /* 0x360209C7: mov edx, eax */ 6841 goto L_360209D1; /* 0x360209C9: jmp 0x360209d1 */ 6842 L_360209CB: 6843 ecx = MEM32(ebp + (-0x4)); /* 0x360209CB: mov ecx, dword ptr [ebp - 4] */ 6844 edx = MEM32(ebp + (-0x8)); /* 0x360209CE: mov edx, dword ptr [ebp - 8] */ 6845 L_360209D1: 6846 eax = MEM32(ebp + (-0x4)); /* 0x360209D1: mov eax, dword ptr [ebp - 4] */ 6847 edi = MEM32(eax + 0x88); /* 0x360209D4: mov edi, dword ptr [eax + 0x88] */ 6848 /* test edi, edi */ /* 0x360209DA: test edi, edi */ 6849 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 6850 _cf = 0; 6851 _flag_k = FK_TEST; 6852 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A06; /* 0x360209DC: je 0x36020a06 */ 6853 L_360209DE: 6854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6855 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6856 esp = esp - 8; /* 0x360209DE: sub esp, 8 */ 6857 _flag_k = FK_CMP; 6858 eax = esp; /* 0x360209E1: mov eax, esp */ 6859 edi = ebp + (-0x8); /* 0x360209E3: lea edi, [ebp - 8] */ 6860 /* cmp eax, edi */ /* 0x360209E6: cmp eax, edi */ 6861 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6862 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6863 _flag_k = FK_CMP; 6864 if (CMP_EQ(_flag_a, _flag_b)) goto L_360209EF; /* 0x360209E8: je 0x360209ef */ 6865 L_360209EA: 6866 MEM32(eax) = edx; /* 0x360209EA: mov dword ptr [eax], edx */ 6867 MEM32(eax + 0x4) = ecx; /* 0x360209EC: mov dword ptr [eax + 4], ecx */ 6868 L_360209EF: 6869 ecx = MEM32(ebp + (-0x4)); /* 0x360209EF: mov ecx, dword ptr [ebp - 4] */ 6870 RECOMP_ICALL(0x360273F0u); /* 0x360209F2: call 0x360273f0 */ /* not lifted */ 6871 RECOMP_FLAGS_IN(); 6872 /* test eax, eax */ /* 0x360209F7: test eax, eax */ 6873 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6874 _cf = 0; 6875 _flag_k = FK_TEST; 6876 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A06; /* 0x360209F9: je 0x36020a06 */ 6877 L_360209FB: 6878 edx = MEM32(eax); /* 0x360209FB: mov edx, dword ptr [eax] */ 6879 ecx = eax; /* 0x360209FD: mov ecx, eax */ 6880 RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x360209FF: call dword ptr [edx + 0x3c] */ 6881 RECOMP_FLAGS_IN(); 6882 /* test eax, eax */ /* 0x36020A02: test eax, eax */ 6883 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6884 _cf = 0; 6885 _flag_k = FK_TEST; 6886 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020A1E; /* 0x36020A04: jne 0x36020a1e */ 6887 L_36020A06: 6888 PUSH32(esp, esi); /* 0x36020A06: push esi */ 6889 ecx = ebx; /* 0x36020A07: mov ecx, ebx */ 6890 RECOMP_ICALL(0x36071F20u); /* 0x36020A09: call 0x36071f20 */ /* not lifted */ 6891 RECOMP_FLAGS_IN(); 6892 ecx = eax; /* 0x36020A0E: mov ecx, eax */ 6893 RECOMP_ICALL(0x3606C230u); /* 0x36020A10: call 0x3606c230 */ /* not lifted */ 6894 RECOMP_FLAGS_IN(); 6895 /* test eax, eax */ /* 0x36020A15: test eax, eax */ 6896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6897 _cf = 0; 6898 _flag_k = FK_TEST; 6899 if (TEST_NZ(_flag_a, _flag_b)) goto L_36020A1E; /* 0x36020A17: jne 0x36020a1e */ 6900 L_36020A19: 6901 eax = MEM32(0x361706C0); /* 0x36020A19: mov eax, dword ptr [0x361706c0] */ 6902 L_36020A1E: 6903 edi = POP32_VAL(esp); /* 0x36020A1E: pop edi */ 6904 esi = POP32_VAL(esp); /* 0x36020A1F: pop esi */ 6905 ebx = POP32_VAL(esp); /* 0x36020A20: pop ebx */ 6906 esp = ebp; /* 0x36020A21: mov esp, ebp */ 6907 ebp = POP32_VAL(esp); /* 0x36020A23: pop ebp */ 6908 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020A24: ret 4 */ 6909 RECOMP_REGS_OUT(); 6910 } 6911 6912 void sub_36020A30(void) { 6913 int _fpu_cmp = 0; 6914 uint32_t _cf = 0; 6915 int _df = 1; 6916 uint32_t _flag_k = FK_NONE; 6917 uint32_t _flag_a = 0, _flag_b = 0; 6918 uint32_t _itail_tgt = 0; 6919 RECOMP_REGS_LOCALS 6920 RECOMP_ENTER(0x36020A30u); 6921 6922 L_36020A30: 6923 PUSH32(esp, ebp); /* 0x36020A30: push ebp */ 6924 ebp = esp; /* 0x36020A31: mov ebp, esp */ 6925 eax = MEM32(ebp + 0x8); /* 0x36020A33: mov eax, dword ptr [ebp + 8] */ 6926 PUSH32(esp, 0); /* 0x36020A36: push 0 */ 6927 PUSH32(esp, 0x361B2CD8u); /* 0x36020A38: push 0x361b2cd8 */ 6928 PUSH32(esp, 0x361B2CC0u); /* 0x36020A3D: push 0x361b2cc0 */ 6929 PUSH32(esp, 0); /* 0x36020A42: push 0 */ 6930 PUSH32(esp, eax); /* 0x36020A44: push eax */ 6931 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020A45: call dword ptr [0x3616ff70] */ 6932 RECOMP_FLAGS_IN(); 6933 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6935 esp = esp + 4; /* 0x36020A4B: add esp, 4 */ 6936 _flag_k = FK_ADD; 6937 PUSH32(esp, eax); /* 0x36020A4E: push eax */ 6938 RECOMP_ICALL(0x3615FD86u); /* 0x36020A4F: call 0x3615fd86 */ /* not lifted */ 6939 RECOMP_FLAGS_IN(); 6940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6942 esp = esp + 0x14u; /* 0x36020A54: add esp, 0x14 */ 6943 _flag_k = FK_ADD; 6944 /* test eax, eax */ /* 0x36020A57: test eax, eax */ 6945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6946 _cf = 0; 6947 _flag_k = FK_TEST; 6948 if (TEST_Z(_flag_a, _flag_b)) goto L_36020A66; /* 0x36020A59: je 0x36020a66 */ 6949 L_36020A5B: 6950 ecx = eax; /* 0x36020A5B: mov ecx, eax */ 6951 RECOMP_ICALL(0x36070E90u); /* 0x36020A5D: call 0x36070e90 */ /* not lifted */ 6952 RECOMP_FLAGS_IN(); 6953 ebp = POP32_VAL(esp); /* 0x36020A62: pop ebp */ 6954 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020A63: ret 4 */ 6955 L_36020A66: 6956 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6957 eax = 0; /* 0x36020A66: xor eax, eax */ 6958 _cf = 0; 6959 _flag_k = FK_TEST; 6960 ebp = POP32_VAL(esp); /* 0x36020A68: pop ebp */ 6961 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020A69: ret 4 */ 6962 RECOMP_REGS_OUT(); 6963 } 6964 6965 void sub_36020A70(void) { 6966 int _fpu_cmp = 0; 6967 uint32_t _cf = 0; 6968 int _df = 1; 6969 uint32_t _flag_k = FK_NONE; 6970 uint32_t _flag_a = 0, _flag_b = 0; 6971 uint32_t _itail_tgt = 0; 6972 RECOMP_REGS_LOCALS 6973 RECOMP_ENTER(0x36020A70u); 6974 6975 L_36020A70: 6976 PUSH32(esp, ebp); /* 0x36020A70: push ebp */ 6977 ebp = esp; /* 0x36020A71: mov ebp, esp */ 6978 eax = MEM32(ebp + 0x8); /* 0x36020A73: mov eax, dword ptr [ebp + 8] */ 6979 PUSH32(esp, 0); /* 0x36020A76: push 0 */ 6980 PUSH32(esp, 0x361B2CD8u); /* 0x36020A78: push 0x361b2cd8 */ 6981 PUSH32(esp, 0x361B2CC0u); /* 0x36020A7D: push 0x361b2cc0 */ 6982 PUSH32(esp, 0); /* 0x36020A82: push 0 */ 6983 PUSH32(esp, eax); /* 0x36020A84: push eax */ 6984 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36020A85: call dword ptr [0x3616ff70] */ 6985 RECOMP_FLAGS_IN(); 6986 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6988 esp = esp + 4; /* 0x36020A8B: add esp, 4 */ 6989 _flag_k = FK_ADD; 6990 PUSH32(esp, eax); /* 0x36020A8E: push eax */ 6991 RECOMP_ICALL(0x3615FD86u); /* 0x36020A8F: call 0x3615fd86 */ /* not lifted */ 6992 RECOMP_FLAGS_IN(); 6993 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6995 esp = esp + 0x14u; /* 0x36020A94: add esp, 0x14 */ 6996 _flag_k = FK_ADD; 6997 /* test eax, eax */ /* 0x36020A97: test eax, eax */ 6998 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6999 _cf = 0; 7000 _flag_k = FK_TEST; 7001 if (TEST_Z(_flag_a, _flag_b)) goto L_36020AA6; /* 0x36020A99: je 0x36020aa6 */ 7002 L_36020A9B: 7003 ecx = eax; /* 0x36020A9B: mov ecx, eax */ 7004 RECOMP_ICALL(0x36070EB0u); /* 0x36020A9D: call 0x36070eb0 */ /* not lifted */ 7005 RECOMP_FLAGS_IN(); 7006 ebp = POP32_VAL(esp); /* 0x36020AA2: pop ebp */ 7007 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020AA3: ret 4 */ 7008 L_36020AA6: 7009 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7010 eax = 0; /* 0x36020AA6: xor eax, eax */ 7011 _cf = 0; 7012 _flag_k = FK_TEST; 7013 ebp = POP32_VAL(esp); /* 0x36020AA8: pop ebp */ 7014 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36020AA9: ret 4 */ 7015 RECOMP_REGS_OUT(); 7016 }