client/game/kkr.dll/lifted-0036.c (548459B)
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_3607BF34(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(0x3607BF34u); 17 18 L_3607BF34: 19 RECOMP_ICALL(0x3602EE20u); /* 0x3607BF34: call 0x3602ee20 */ /* not lifted */ 20 RECOMP_FLAGS_IN(); 21 PUSH32(esp, 0x2Cu); /* 0x3607BF39: push 0x2c */ 22 RECOMP_ICALL(0x3615FD6Au); /* 0x3607BF3B: call 0x3615fd6a */ /* not lifted */ 23 RECOMP_FLAGS_IN(); 24 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 25 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 26 esp = esp + 4; /* 0x3607BF40: add esp, 4 */ 27 _flag_k = FK_ADD; 28 MEM32(ebp + (-0x14)) = eax; /* 0x3607BF43: mov dword ptr [ebp - 0x14], eax */ 29 /* test eax, eax */ /* 0x3607BF46: test eax, eax */ 30 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 31 _cf = 0; 32 _flag_k = FK_TEST; 33 MEM32(ebp + (-0x4)) = 0; /* 0x3607BF48: mov dword ptr [ebp - 4], 0 */ 34 if (TEST_Z(_flag_a, _flag_b)) goto L_3607BF69; /* 0x3607BF4F: je 0x3607bf69 */ 35 L_3607BF51: 36 ecx = MEM32(ebp + 0xC); /* 0x3607BF51: mov ecx, dword ptr [ebp + 0xc] */ 37 edx = MEM32(ebp + 0x8); /* 0x3607BF54: mov edx, dword ptr [ebp + 8] */ 38 PUSH32(esp, ecx); /* 0x3607BF57: push ecx */ 39 ecx = MEM32(esi + 0x4); /* 0x3607BF58: mov ecx, dword ptr [esi + 4] */ 40 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 41 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42 ecx = ecx + 4; /* 0x3607BF5B: add ecx, 4 */ 43 _flag_k = FK_ADD; 44 PUSH32(esp, edx); /* 0x3607BF5E: push edx */ 45 PUSH32(esp, ecx); /* 0x3607BF5F: push ecx */ 46 ecx = eax; /* 0x3607BF60: mov ecx, eax */ 47 RECOMP_ICALL(0x36087590u); /* 0x3607BF62: call 0x36087590 */ /* not lifted */ 48 RECOMP_FLAGS_IN(); 49 goto L_3607BF6B; /* 0x3607BF67: jmp 0x3607bf6b */ 50 L_3607BF69: 51 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 52 eax = 0; /* 0x3607BF69: xor eax, eax */ 53 _cf = 0; 54 _flag_k = FK_TEST; 55 L_3607BF6B: 56 ecx = MEM32(esi + 0x4); /* 0x3607BF6B: mov ecx, dword ptr [esi + 4] */ 57 edx = ebp + (-0x10); /* 0x3607BF6E: lea edx, [ebp - 0x10] */ 58 PUSH32(esp, edx); /* 0x3607BF71: push edx */ 59 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607BF72: mov dword ptr [ebp - 4], 0xffffffff */ 60 MEM32(ebp + (-0x10)) = eax; /* 0x3607BF79: mov dword ptr [ebp - 0x10], eax */ 61 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3607BF7C: call dword ptr [0x3617004c] */ 62 RECOMP_FLAGS_IN(); 63 esi = POP32_VAL(esp); /* 0x3607BF82: pop esi */ 64 ecx = MEM32(ebp + (-0xC)); /* 0x3607BF83: mov ecx, dword ptr [ebp - 0xc] */ 65 MEM32(FS_BASE + (0)) = ecx; /* 0x3607BF86: mov dword ptr fs:[0], ecx */ 66 esp = ebp; /* 0x3607BF8D: mov esp, ebp */ 67 ebp = POP32_VAL(esp); /* 0x3607BF8F: pop ebp */ 68 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607BF90: ret 8 */ 69 RECOMP_REGS_OUT(); 70 } 71 72 void sub_3607BF6B(void) { 73 int _fpu_cmp = 0; 74 uint32_t _cf = 0; 75 int _df = 1; 76 uint32_t _flag_k = FK_NONE; 77 uint32_t _flag_a = 0, _flag_b = 0; 78 uint32_t _itail_tgt = 0; 79 RECOMP_REGS_LOCALS 80 RECOMP_ENTER(0x3607BF6Bu); 81 82 L_3607BF6B: 83 ecx = MEM32(esi + 0x4); /* 0x3607BF6B: mov ecx, dword ptr [esi + 4] */ 84 edx = ebp + (-0x10); /* 0x3607BF6E: lea edx, [ebp - 0x10] */ 85 PUSH32(esp, edx); /* 0x3607BF71: push edx */ 86 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607BF72: mov dword ptr [ebp - 4], 0xffffffff */ 87 MEM32(ebp + (-0x10)) = eax; /* 0x3607BF79: mov dword ptr [ebp - 0x10], eax */ 88 RECOMP_ICALL(MEM32(0x3617004C)); /* 0x3607BF7C: call dword ptr [0x3617004c] */ 89 RECOMP_FLAGS_IN(); 90 esi = POP32_VAL(esp); /* 0x3607BF82: pop esi */ 91 ecx = MEM32(ebp + (-0xC)); /* 0x3607BF83: mov ecx, dword ptr [ebp - 0xc] */ 92 MEM32(FS_BASE + (0)) = ecx; /* 0x3607BF86: mov dword ptr fs:[0], ecx */ 93 esp = ebp; /* 0x3607BF8D: mov esp, ebp */ 94 ebp = POP32_VAL(esp); /* 0x3607BF8F: pop ebp */ 95 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607BF90: ret 8 */ 96 RECOMP_REGS_OUT(); 97 } 98 99 void sub_3607BFC0(void) { 100 int _fpu_cmp = 0; 101 uint32_t _cf = 0; 102 int _df = 1; 103 uint32_t _flag_k = FK_NONE; 104 uint32_t _flag_a = 0, _flag_b = 0; 105 uint32_t _itail_tgt = 0; 106 RECOMP_REGS_LOCALS 107 RECOMP_ENTER(0x3607BFC0u); 108 109 L_3607BFC0: 110 PUSH32(esp, 0); /* 0x3607BFC0: push 0 */ 111 PUSH32(esp, 0x361C4C30u); /* 0x3607BFC2: push 0x361c4c30 */ 112 MEM8(ecx + 0x71) = (uint8_t)(0); /* 0x3607BFC7: mov byte ptr [ecx + 0x71], 0 */ 113 RECOMP_ICALL(0x3601C590u); /* 0x3607BFCB: call 0x3601c590 */ /* not lifted */ 114 RECOMP_FLAGS_IN(); 115 ecx = eax; /* 0x3607BFD0: mov ecx, eax */ 116 RECOMP_ICALL(0x3601C8C0u); /* 0x3607BFD2: call 0x3601c8c0 */ /* not lifted */ 117 RECOMP_FLAGS_IN(); 118 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607BFD7: ret 4 */ 119 RECOMP_REGS_OUT(); 120 } 121 122 void sub_3607BFE0(void) { 123 int _fpu_cmp = 0; 124 uint32_t _cf = 0; 125 int _df = 1; 126 uint32_t _flag_k = FK_NONE; 127 uint32_t _flag_a = 0, _flag_b = 0; 128 uint32_t _itail_tgt = 0; 129 RECOMP_REGS_LOCALS 130 RECOMP_ENTER(0x3607BFE0u); 131 132 L_3607BFE0: 133 PUSH32(esp, 1); /* 0x3607BFE0: push 1 */ 134 RECOMP_ICALL(0x3607A940u); /* 0x3607BFE2: call 0x3607a940 */ /* not lifted */ 135 RECOMP_FLAGS_IN(); 136 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607BFE7: ret */ 137 RECOMP_REGS_OUT(); 138 } 139 140 void sub_3607BFF0(void) { 141 int _fpu_cmp = 0; 142 uint32_t _cf = 0; 143 int _df = 1; 144 uint32_t _flag_k = FK_NONE; 145 uint32_t _flag_a = 0, _flag_b = 0; 146 uint32_t _itail_tgt = 0; 147 RECOMP_REGS_LOCALS 148 RECOMP_ENTER(0x3607BFF0u); 149 150 L_3607BFF0: 151 PUSH32(esp, esi); /* 0x3607BFF0: push esi */ 152 esi = ecx; /* 0x3607BFF1: mov esi, ecx */ 153 RECOMP_ICALL(0x3607C020u); /* 0x3607BFF3: call 0x3607c020 */ /* not lifted */ 154 RECOMP_FLAGS_IN(); 155 /* test LO8(eax), LO8(eax) */ /* 0x3607BFF8: test al, al */ 156 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 157 _cf = 0; 158 _flag_k = FK_NARROW(FK_TEST, 24); 159 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C01A; /* 0x3607BFFA: je 0x3607c01a */ 160 L_3607BFFC: 161 PUSH32(esp, 0x64u); /* 0x3607BFFC: push 0x64 */ 162 ecx = esi; /* 0x3607BFFE: mov ecx, esi */ 163 RECOMP_ICALL(0x360788C0u); /* 0x3607C000: call 0x360788c0 */ /* not lifted */ 164 RECOMP_FLAGS_IN(); 165 /* test eax, eax */ /* 0x3607C005: test eax, eax */ 166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 167 _cf = 0; 168 _flag_k = FK_TEST; 169 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C01A; /* 0x3607C007: je 0x3607c01a */ 170 L_3607C009: 171 ecx = eax; /* 0x3607C009: mov ecx, eax */ 172 RECOMP_ICALL(0x3608F980u); /* 0x3607C00B: call 0x3608f980 */ /* not lifted */ 173 RECOMP_FLAGS_IN(); 174 PUSH32(esp, eax); /* 0x3607C010: push eax */ 175 PUSH32(esp, 0); /* 0x3607C011: push 0 */ 176 ecx = esi; /* 0x3607C013: mov ecx, esi */ 177 RECOMP_ICALL(0x3607A340u); /* 0x3607C015: call 0x3607a340 */ /* not lifted */ 178 RECOMP_FLAGS_IN(); 179 L_3607C01A: 180 esi = POP32_VAL(esp); /* 0x3607C01A: pop esi */ 181 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C01B: ret */ 182 RECOMP_REGS_OUT(); 183 } 184 185 void sub_3607BFF1(void) { 186 int _fpu_cmp = 0; 187 uint32_t _cf = 0; 188 int _df = 1; 189 uint32_t _flag_k = FK_NONE; 190 uint32_t _flag_a = 0, _flag_b = 0; 191 uint32_t _itail_tgt = 0; 192 RECOMP_REGS_LOCALS 193 RECOMP_ENTER(0x3607BFF1u); 194 195 L_3607BFF1: 196 esi = ecx; /* 0x3607BFF1: mov esi, ecx */ 197 RECOMP_ICALL(0x3607C020u); /* 0x3607BFF3: call 0x3607c020 */ /* not lifted */ 198 RECOMP_FLAGS_IN(); 199 /* test LO8(eax), LO8(eax) */ /* 0x3607BFF8: test al, al */ 200 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 201 _cf = 0; 202 _flag_k = FK_NARROW(FK_TEST, 24); 203 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C01A; /* 0x3607BFFA: je 0x3607c01a */ 204 L_3607BFFC: 205 PUSH32(esp, 0x64u); /* 0x3607BFFC: push 0x64 */ 206 ecx = esi; /* 0x3607BFFE: mov ecx, esi */ 207 RECOMP_ICALL(0x360788C0u); /* 0x3607C000: call 0x360788c0 */ /* not lifted */ 208 RECOMP_FLAGS_IN(); 209 /* test eax, eax */ /* 0x3607C005: test eax, eax */ 210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 211 _cf = 0; 212 _flag_k = FK_TEST; 213 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C01A; /* 0x3607C007: je 0x3607c01a */ 214 L_3607C009: 215 ecx = eax; /* 0x3607C009: mov ecx, eax */ 216 RECOMP_ICALL(0x3608F980u); /* 0x3607C00B: call 0x3608f980 */ /* not lifted */ 217 RECOMP_FLAGS_IN(); 218 PUSH32(esp, eax); /* 0x3607C010: push eax */ 219 PUSH32(esp, 0); /* 0x3607C011: push 0 */ 220 ecx = esi; /* 0x3607C013: mov ecx, esi */ 221 RECOMP_ICALL(0x3607A340u); /* 0x3607C015: call 0x3607a340 */ /* not lifted */ 222 RECOMP_FLAGS_IN(); 223 L_3607C01A: 224 esi = POP32_VAL(esp); /* 0x3607C01A: pop esi */ 225 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C01B: ret */ 226 RECOMP_REGS_OUT(); 227 } 228 229 void sub_3607C020(void) { 230 int _fpu_cmp = 0; 231 uint32_t _cf = 0; 232 int _df = 1; 233 uint32_t _flag_k = FK_NONE; 234 uint32_t _flag_a = 0, _flag_b = 0; 235 uint32_t _itail_tgt = 0; 236 RECOMP_REGS_LOCALS 237 RECOMP_ENTER(0x3607C020u); 238 239 L_3607C020: 240 eax = MEM32(ecx + 0x4); /* 0x3607C020: mov eax, dword ptr [ecx + 4] */ 241 eax = MEM32(eax + 0x11C); /* 0x3607C023: mov eax, dword ptr [eax + 0x11c] */ 242 if (11u) _cf = (((eax) >> 10) & 1u); /* 0x3607C029: shr eax, 0xb */ 243 if (11u) { _flag_a = recomp_flags_pack((eax >> 11u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 244 eax = eax >> 11u; /* 0x3607C029: shr eax, 0xb */ 245 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 246 eax = eax & 1; /* 0x3607C02C: and eax, 1 */ 247 _cf = 0; 248 _flag_k = FK_TEST; 249 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C02F: ret */ 250 RECOMP_REGS_OUT(); 251 } 252 253 void sub_3607C030(void) { 254 int _fpu_cmp = 0; 255 uint32_t _cf = 0; 256 int _df = 1; 257 uint32_t _flag_k = FK_NONE; 258 uint32_t _flag_a = 0, _flag_b = 0; 259 uint32_t _itail_tgt = 0; 260 RECOMP_REGS_LOCALS 261 RECOMP_ENTER(0x3607C030u); 262 263 L_3607C030: 264 eax = MEM32(ecx + 0x4); /* 0x3607C030: mov eax, dword ptr [ecx + 4] */ 265 ecx = MEM32(eax + 0x150); /* 0x3607C033: mov ecx, dword ptr [eax + 0x150] */ 266 PUSH32(esp, 1); /* 0x3607C039: push 1 */ 267 RECOMP_ICALL(0x36063490u); /* 0x3607C03B: call 0x36063490 */ /* not lifted */ 268 RECOMP_FLAGS_IN(); 269 /* test LO8(eax), LO8(eax) */ /* 0x3607C040: test al, al */ 270 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 271 _cf = 0; 272 _flag_k = FK_NARROW(FK_TEST, 24); 273 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3607C042: setne al */ 274 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C045: ret */ 275 RECOMP_REGS_OUT(); 276 } 277 278 void sub_3607C050(void) { 279 int _fpu_cmp = 0; 280 uint32_t _cf = 0; 281 int _df = 1; 282 uint32_t _flag_k = FK_NONE; 283 uint32_t _flag_a = 0, _flag_b = 0; 284 uint32_t _itail_tgt = 0; 285 RECOMP_REGS_LOCALS 286 RECOMP_ENTER(0x3607C050u); 287 288 L_3607C050: 289 PUSH32(esp, ebp); /* 0x3607C050: push ebp */ 290 ebp = esp; /* 0x3607C051: mov ebp, esp */ 291 eax = MEM32(ebp + 0x10); /* 0x3607C053: mov eax, dword ptr [ebp + 0x10] */ 292 PUSH32(esp, ebx); /* 0x3607C056: push ebx */ 293 PUSH32(esp, esi); /* 0x3607C057: push esi */ 294 PUSH32(esp, edi); /* 0x3607C058: push edi */ 295 edi = MEM32(0x3616FF70); /* 0x3607C059: mov edi, dword ptr [0x3616ff70] */ 296 PUSH32(esp, 0); /* 0x3607C05F: push 0 */ 297 PUSH32(esp, 0x361B2CD8u); /* 0x3607C061: push 0x361b2cd8 */ 298 PUSH32(esp, 0x361B2CC0u); /* 0x3607C066: push 0x361b2cc0 */ 299 PUSH32(esp, 0); /* 0x3607C06B: push 0 */ 300 PUSH32(esp, eax); /* 0x3607C06D: push eax */ 301 ebx = ecx; /* 0x3607C06E: mov ebx, ecx */ 302 RECOMP_ICALL(edi); /* 0x3607C070: call edi */ 303 RECOMP_FLAGS_IN(); 304 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 305 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 306 esp = esp + 4; /* 0x3607C072: add esp, 4 */ 307 _flag_k = FK_ADD; 308 PUSH32(esp, eax); /* 0x3607C075: push eax */ 309 RECOMP_ICALL(0x3615FD86u); /* 0x3607C076: call 0x3615fd86 */ /* not lifted */ 310 RECOMP_FLAGS_IN(); 311 ecx = MEM32(ebp + 0x14); /* 0x3607C07B: mov ecx, dword ptr [ebp + 0x14] */ 312 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 313 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 314 esp = esp + 0x14u; /* 0x3607C07E: add esp, 0x14 */ 315 _flag_k = FK_ADD; 316 PUSH32(esp, 0); /* 0x3607C081: push 0 */ 317 PUSH32(esp, 0x361B2CD8u); /* 0x3607C083: push 0x361b2cd8 */ 318 PUSH32(esp, 0x361B2CC0u); /* 0x3607C088: push 0x361b2cc0 */ 319 PUSH32(esp, 0); /* 0x3607C08D: push 0 */ 320 PUSH32(esp, ecx); /* 0x3607C08F: push ecx */ 321 esi = eax; /* 0x3607C090: mov esi, eax */ 322 RECOMP_ICALL(edi); /* 0x3607C092: call edi */ 323 RECOMP_FLAGS_IN(); 324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 326 esp = esp + 4; /* 0x3607C094: add esp, 4 */ 327 _flag_k = FK_ADD; 328 PUSH32(esp, eax); /* 0x3607C097: push eax */ 329 RECOMP_ICALL(0x3615FD86u); /* 0x3607C098: call 0x3615fd86 */ /* not lifted */ 330 RECOMP_FLAGS_IN(); 331 edi = MEM32(ebp + 0xC); /* 0x3607C09D: mov edi, dword ptr [ebp + 0xc] */ 332 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 333 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 334 esp = esp + 0x14u; /* 0x3607C0A0: add esp, 0x14 */ 335 _flag_k = FK_ADD; 336 /* test esi, esi */ /* 0x3607C0A3: test esi, esi */ 337 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 338 _cf = 0; 339 _flag_k = FK_TEST; 340 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C0D3; /* 0x3607C0A5: je 0x3607c0d3 */ 341 L_3607C0A7: 342 /* test eax, eax */ /* 0x3607C0A7: test eax, eax */ 343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 344 _cf = 0; 345 _flag_k = FK_TEST; 346 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C0D3; /* 0x3607C0A9: je 0x3607c0d3 */ 347 L_3607C0AB: 348 PUSH32(esp, 0); /* 0x3607C0AB: push 0 */ 349 PUSH32(esp, 0); /* 0x3607C0AD: push 0 */ 350 PUSH32(esp, 0); /* 0x3607C0AF: push 0 */ 351 PUSH32(esp, esi); /* 0x3607C0B1: push esi */ 352 PUSH32(esp, 1); /* 0x3607C0B2: push 1 */ 353 PUSH32(esp, eax); /* 0x3607C0B4: push eax */ 354 PUSH32(esp, 0x3Fu); /* 0x3607C0B5: push 0x3f */ 355 RECOMP_ICALL(0x3601C590u); /* 0x3607C0B7: call 0x3601c590 */ /* not lifted */ 356 RECOMP_FLAGS_IN(); 357 ecx = eax; /* 0x3607C0BC: mov ecx, eax */ 358 RECOMP_ICALL(0x3601D0B0u); /* 0x3607C0BE: call 0x3601d0b0 */ /* not lifted */ 359 RECOMP_FLAGS_IN(); 360 edx = MEM32(ebp + 0x8); /* 0x3607C0C3: mov edx, dword ptr [ebp + 8] */ 361 ecx = MEM32(esi + 0x16C); /* 0x3607C0C6: mov ecx, dword ptr [esi + 0x16c] */ 362 PUSH32(esp, edi); /* 0x3607C0CC: push edi */ 363 PUSH32(esp, edx); /* 0x3607C0CD: push edx */ 364 RECOMP_ICALL(0x3607C0F0u); /* 0x3607C0CE: call 0x3607c0f0 */ /* not lifted */ 365 RECOMP_FLAGS_IN(); 366 L_3607C0D3: 367 eax = MEM32(ebp + 0x8); /* 0x3607C0D3: mov eax, dword ptr [ebp + 8] */ 368 PUSH32(esp, 3); /* 0x3607C0D6: push 3 */ 369 PUSH32(esp, 0); /* 0x3607C0D8: push 0 */ 370 PUSH32(esp, edi); /* 0x3607C0DA: push edi */ 371 PUSH32(esp, 0); /* 0x3607C0DB: push 0 */ 372 PUSH32(esp, eax); /* 0x3607C0DD: push eax */ 373 ecx = ebx; /* 0x3607C0DE: mov ecx, ebx */ 374 RECOMP_ICALL(0x3607A660u); /* 0x3607C0E0: call 0x3607a660 */ /* not lifted */ 375 RECOMP_FLAGS_IN(); 376 edi = POP32_VAL(esp); /* 0x3607C0E5: pop edi */ 377 esi = POP32_VAL(esp); /* 0x3607C0E6: pop esi */ 378 ebx = POP32_VAL(esp); /* 0x3607C0E7: pop ebx */ 379 ebp = POP32_VAL(esp); /* 0x3607C0E8: pop ebp */ 380 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3607C0E9: ret 0x10 */ 381 RECOMP_REGS_OUT(); 382 } 383 384 void sub_3607C0F0(void) { 385 int _fpu_cmp = 0; 386 uint32_t _cf = 0; 387 int _df = 1; 388 uint32_t _flag_k = FK_NONE; 389 uint32_t _flag_a = 0, _flag_b = 0; 390 uint32_t _itail_tgt = 0; 391 RECOMP_REGS_LOCALS 392 RECOMP_ENTER(0x3607C0F0u); 393 394 L_3607C0F0: 395 PUSH32(esp, ebp); /* 0x3607C0F0: push ebp */ 396 ebp = esp; /* 0x3607C0F1: mov ebp, esp */ 397 eax = MEM32(ebp + 0x8); /* 0x3607C0F3: mov eax, dword ptr [ebp + 8] */ 398 PUSH32(esp, eax); /* 0x3607C0F6: push eax */ 399 RECOMP_ICALL(0x3607A320u); /* 0x3607C0F7: call 0x3607a320 */ /* not lifted */ 400 RECOMP_FLAGS_IN(); 401 /* test eax, eax */ /* 0x3607C0FC: test eax, eax */ 402 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 403 _cf = 0; 404 _flag_k = FK_TEST; 405 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C114; /* 0x3607C0FE: je 0x3607c114 */ 406 L_3607C100: 407 eax = MEM32(eax + 0x20); /* 0x3607C100: mov eax, dword ptr [eax + 0x20] */ 408 /* test eax, eax */ /* 0x3607C103: test eax, eax */ 409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 410 _cf = 0; 411 _flag_k = FK_TEST; 412 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C114; /* 0x3607C105: je 0x3607c114 */ 413 L_3607C107: 414 ecx = MEM32(ebp + 0xC); /* 0x3607C107: mov ecx, dword ptr [ebp + 0xc] */ 415 edx = MEM32(eax); /* 0x3607C10A: mov edx, dword ptr [eax] */ 416 PUSH32(esp, ecx); /* 0x3607C10C: push ecx */ 417 PUSH32(esp, 0x1Au); /* 0x3607C10D: push 0x1a */ 418 ecx = eax; /* 0x3607C10F: mov ecx, eax */ 419 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607C111: call dword ptr [edx + 8] */ 420 RECOMP_FLAGS_IN(); 421 L_3607C114: 422 ebp = POP32_VAL(esp); /* 0x3607C114: pop ebp */ 423 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C115: ret 8 */ 424 RECOMP_REGS_OUT(); 425 } 426 427 void sub_3607C120(void) { 428 int _fpu_cmp = 0; 429 uint32_t _cf = 0; 430 int _df = 1; 431 uint32_t _flag_k = FK_NONE; 432 uint32_t _flag_a = 0, _flag_b = 0; 433 uint32_t _itail_tgt = 0; 434 RECOMP_REGS_LOCALS 435 RECOMP_ENTER(0x3607C120u); 436 437 L_3607C120: 438 PUSH32(esp, esi); /* 0x3607C120: push esi */ 439 esi = ecx; /* 0x3607C121: mov esi, ecx */ 440 PUSH32(esp, 6); /* 0x3607C123: push 6 */ 441 RECOMP_ICALL(0x3607A320u); /* 0x3607C125: call 0x3607a320 */ /* not lifted */ 442 RECOMP_FLAGS_IN(); 443 /* test eax, eax */ /* 0x3607C12A: test eax, eax */ 444 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 445 _cf = 0; 446 _flag_k = FK_TEST; 447 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C13B; /* 0x3607C12C: jne 0x3607c13b */ 448 L_3607C12E: 449 PUSH32(esp, 8); /* 0x3607C12E: push 8 */ 450 ecx = esi; /* 0x3607C130: mov ecx, esi */ 451 RECOMP_ICALL(0x3607A320u); /* 0x3607C132: call 0x3607a320 */ /* not lifted */ 452 RECOMP_FLAGS_IN(); 453 /* test eax, eax */ /* 0x3607C137: test eax, eax */ 454 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 455 _cf = 0; 456 _flag_k = FK_TEST; 457 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C161; /* 0x3607C139: je 0x3607c161 */ 458 L_3607C13B: 459 ecx = MEM32(eax + 0x20); /* 0x3607C13B: mov ecx, dword ptr [eax + 0x20] */ 460 edx = MEM32(esi + 0x4); /* 0x3607C13E: mov edx, dword ptr [esi + 4] */ 461 eax = MEM32(ecx); /* 0x3607C141: mov eax, dword ptr [ecx] */ 462 PUSH32(esp, edx); /* 0x3607C143: push edx */ 463 RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x3607C144: call dword ptr [eax + 0x84] */ 464 RECOMP_FLAGS_IN(); 465 esi = MEM32(esi + 0x4); /* 0x3607C14A: mov esi, dword ptr [esi + 4] */ 466 edx = MEM32(esi + 0xE4); /* 0x3607C14D: mov edx, dword ptr [esi + 0xe4] */ 467 ecx = esi + 0xE4; /* 0x3607C153: lea ecx, [esi + 0xe4] */ 468 PUSH32(esp, eax); /* 0x3607C159: push eax */ 469 PUSH32(esp, 0x16u); /* 0x3607C15A: push 0x16 */ 470 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607C15C: call dword ptr [edx + 8] */ 471 RECOMP_FLAGS_IN(); 472 esi = POP32_VAL(esp); /* 0x3607C15F: pop esi */ 473 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C160: ret */ 474 L_3607C161: 475 eax = MEM32(esi + 0x4); /* 0x3607C161: mov eax, dword ptr [esi + 4] */ 476 PUSH32(esp, edi); /* 0x3607C164: push edi */ 477 ecx = eax + 0xE4; /* 0x3607C165: lea ecx, [eax + 0xe4] */ 478 eax = MEM32(ecx); /* 0x3607C16B: mov eax, dword ptr [ecx] */ 479 PUSH32(esp, 0); /* 0x3607C16D: push 0 */ 480 PUSH32(esp, 0x64u); /* 0x3607C16F: push 0x64 */ 481 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3607C171: call dword ptr [eax + 4] */ 482 RECOMP_FLAGS_IN(); 483 edi = eax; /* 0x3607C174: mov edi, eax */ 484 eax = MEM32(esi + 0x4); /* 0x3607C176: mov eax, dword ptr [esi + 4] */ 485 edx = MEM32(eax + 0xE4); /* 0x3607C179: mov edx, dword ptr [eax + 0xe4] */ 486 ecx = eax + 0xE4; /* 0x3607C17F: lea ecx, [eax + 0xe4] */ 487 PUSH32(esp, 0); /* 0x3607C185: push 0 */ 488 PUSH32(esp, 0x114u); /* 0x3607C187: push 0x114 */ 489 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3607C18C: call dword ptr [edx + 4] */ 490 RECOMP_FLAGS_IN(); 491 esi = MEM32(esi + 0x4); /* 0x3607C18F: mov esi, dword ptr [esi + 4] */ 492 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 493 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 494 edi = edi + eax; /* 0x3607C192: add edi, eax */ 495 _flag_k = FK_ADD; 496 eax = MEM32(esi + 0xE4); /* 0x3607C194: mov eax, dword ptr [esi + 0xe4] */ 497 ecx = esi + 0xE4; /* 0x3607C19A: lea ecx, [esi + 0xe4] */ 498 PUSH32(esp, edi); /* 0x3607C1A0: push edi */ 499 PUSH32(esp, 0x16u); /* 0x3607C1A1: push 0x16 */ 500 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x3607C1A3: call dword ptr [eax + 8] */ 501 RECOMP_FLAGS_IN(); 502 edi = POP32_VAL(esp); /* 0x3607C1A6: pop edi */ 503 esi = POP32_VAL(esp); /* 0x3607C1A7: pop esi */ 504 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C1A8: ret */ 505 RECOMP_REGS_OUT(); 506 } 507 508 void sub_3607C1B0(void) { 509 int _fpu_cmp = 0; 510 uint32_t _cf = 0; 511 int _df = 1; 512 uint32_t _flag_k = FK_NONE; 513 uint32_t _flag_a = 0, _flag_b = 0; 514 uint32_t _itail_tgt = 0; 515 RECOMP_REGS_LOCALS 516 RECOMP_ENTER(0x3607C1B0u); 517 518 L_3607C1B0: 519 PUSH32(esp, ebp); /* 0x3607C1B0: push ebp */ 520 ebp = esp; /* 0x3607C1B1: mov ebp, esp */ 521 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x30u); 522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 523 esp = esp - 0x30u; /* 0x3607C1B3: sub esp, 0x30 */ 524 _flag_k = FK_CMP; 525 PUSH32(esp, ebx); /* 0x3607C1B6: push ebx */ 526 ebx = MEM32(ebp + 0x18); /* 0x3607C1B7: mov ebx, dword ptr [ebp + 0x18] */ 527 PUSH32(esp, esi); /* 0x3607C1BA: push esi */ 528 PUSH32(esp, edi); /* 0x3607C1BB: push edi */ 529 edi = MEM32(ebp + 0x28); /* 0x3607C1BC: mov edi, dword ptr [ebp + 0x28] */ 530 /* cmp edi, ebx */ /* 0x3607C1BF: cmp edi, ebx */ 531 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 533 _flag_k = FK_CMP; 534 MEM32(ebp + (-0x4)) = ecx; /* 0x3607C1C1: mov dword ptr [ebp - 4], ecx */ 535 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C1D8; /* 0x3607C1C4: jne 0x3607c1d8 */ 536 L_3607C1C6: 537 edx = MEM32(ebp + 0x24); /* 0x3607C1C6: mov edx, dword ptr [ebp + 0x24] */ 538 esi = MEM32(ebp + 0x14); /* 0x3607C1C9: mov esi, dword ptr [ebp + 0x14] */ 539 eax = edx; /* 0x3607C1CC: mov eax, edx */ 540 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 541 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 542 eax = eax - esi; /* 0x3607C1CE: sub eax, esi */ 543 _flag_k = FK_CMP; 544 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607C1D0: sar eax, 3 */ 545 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 546 eax = (uint32_t)((int32_t)eax >> 3u); 547 MEM32(ebp + (-0xC)) = eax; /* 0x3607C1D3: mov dword ptr [ebp - 0xc], eax */ 548 goto L_3607C20C; /* 0x3607C1D6: jmp 0x3607c20c */ 549 L_3607C1D8: 550 ecx = MEM32(ebp + 0x10); /* 0x3607C1D8: mov ecx, dword ptr [ebp + 0x10] */ 551 esi = MEM32(ebp + 0x14); /* 0x3607C1DB: mov esi, dword ptr [ebp + 0x14] */ 552 edx = MEM32(ebp + 0x24); /* 0x3607C1DE: mov edx, dword ptr [ebp + 0x24] */ 553 eax = edi; /* 0x3607C1E1: mov eax, edi */ 554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 556 eax = eax - ebx; /* 0x3607C1E3: sub eax, ebx */ 557 _flag_k = FK_CMP; 558 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3607C1E5: sar eax, 2 */ 559 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 560 eax = (uint32_t)((int32_t)eax >> 2u); 561 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x007FFFFFu); 562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 563 eax = eax + 0x007FFFFFu; /* 0x3607C1E8: add eax, 0x7fffff */ 564 _flag_k = FK_ADD; 565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 567 ecx = ecx - esi; /* 0x3607C1ED: sub ecx, esi */ 568 _flag_k = FK_CMP; 569 if (9u) _cf = (((eax) >> 23) & 1u); /* 0x3607C1EF: shl eax, 9 */ 570 if (9u) { _flag_a = recomp_flags_pack((eax << 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 571 eax = eax << 9u; /* 0x3607C1EF: shl eax, 9 */ 572 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3607C1F2: sar ecx, 3 */ 573 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 574 ecx = (uint32_t)((int32_t)ecx >> 3u); 575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 577 eax = eax + ecx; /* 0x3607C1F5: add eax, ecx */ 578 _flag_k = FK_ADD; 579 ecx = MEM32(ebp + 0x1C); /* 0x3607C1F7: mov ecx, dword ptr [ebp + 0x1c] */ 580 MEM32(ebp + (-0x10)) = eax; /* 0x3607C1FA: mov dword ptr [ebp - 0x10], eax */ 581 eax = edx; /* 0x3607C1FD: mov eax, edx */ 582 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 584 eax = eax - ecx; /* 0x3607C1FF: sub eax, ecx */ 585 _flag_k = FK_CMP; 586 ecx = MEM32(ebp + (-0x10)); /* 0x3607C201: mov ecx, dword ptr [ebp - 0x10] */ 587 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607C204: sar eax, 3 */ 588 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 589 eax = (uint32_t)((int32_t)eax >> 3u); 590 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 592 ecx = ecx + eax; /* 0x3607C207: add ecx, eax */ 593 _flag_k = FK_ADD; 594 MEM32(ebp + (-0xC)) = ecx; /* 0x3607C209: mov dword ptr [ebp - 0xc], ecx */ 595 L_3607C20C: 596 eax = MEM32(ebp + (-0x4)); /* 0x3607C20C: mov eax, dword ptr [ebp - 4] */ 597 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 598 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 599 eax = eax + 4; /* 0x3607C20F: add eax, 4 */ 600 _flag_k = FK_ADD; 601 ecx = eax; /* 0x3607C212: mov ecx, eax */ 602 MEM32(ebp + (-0x10)) = eax; /* 0x3607C214: mov dword ptr [ebp - 0x10], eax */ 603 eax = MEM32(ecx); /* 0x3607C217: mov eax, dword ptr [ecx] */ 604 MEM32(ebp + (-0x20)) = eax; /* 0x3607C219: mov dword ptr [ebp - 0x20], eax */ 605 eax = MEM32(ecx + 0x4); /* 0x3607C21C: mov eax, dword ptr [ecx + 4] */ 606 MEM32(ebp + (-0x1C)) = eax; /* 0x3607C21F: mov dword ptr [ebp - 0x1c], eax */ 607 eax = MEM32(ecx + 0x8); /* 0x3607C222: mov eax, dword ptr [ecx + 8] */ 608 ecx = MEM32(ecx + 0xC); /* 0x3607C225: mov ecx, dword ptr [ecx + 0xc] */ 609 /* cmp ebx, ecx */ /* 0x3607C228: cmp ebx, ecx */ 610 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 612 _flag_k = FK_CMP; 613 MEM32(ebp + (-0x18)) = eax; /* 0x3607C22A: mov dword ptr [ebp - 0x18], eax */ 614 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C23B; /* 0x3607C22D: jne 0x3607c23b */ 615 L_3607C22F: 616 ecx = esi; /* 0x3607C22F: mov ecx, esi */ 617 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 618 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 619 ecx = ecx - eax; /* 0x3607C231: sub ecx, eax */ 620 _flag_k = FK_CMP; 621 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3607C233: sar ecx, 3 */ 622 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 623 ecx = (uint32_t)((int32_t)ecx >> 3u); 624 MEM32(ebp + (-0x8)) = ecx; /* 0x3607C236: mov dword ptr [ebp - 8], ecx */ 625 goto L_3607C272; /* 0x3607C239: jmp 0x3607c272 */ 626 L_3607C23B: 627 eax = ebx; /* 0x3607C23B: mov eax, ebx */ 628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 630 eax = eax - ecx; /* 0x3607C23D: sub eax, ecx */ 631 _flag_k = FK_CMP; 632 ecx = MEM32(ebp + (-0x18)); /* 0x3607C23F: mov ecx, dword ptr [ebp - 0x18] */ 633 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3607C242: sar eax, 2 */ 634 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 635 eax = (uint32_t)((int32_t)eax >> 2u); 636 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x007FFFFFu); 637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 638 eax = eax + 0x007FFFFFu; /* 0x3607C245: add eax, 0x7fffff */ 639 _flag_k = FK_ADD; 640 if (9u) _cf = (((eax) >> 23) & 1u); /* 0x3607C24A: shl eax, 9 */ 641 if (9u) { _flag_a = recomp_flags_pack((eax << 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 642 eax = eax << 9u; /* 0x3607C24A: shl eax, 9 */ 643 MEM32(ebp + (-0x8)) = eax; /* 0x3607C24D: mov dword ptr [ebp - 8], eax */ 644 eax = MEM32(ebp + (-0x1C)); /* 0x3607C250: mov eax, dword ptr [ebp - 0x1c] */ 645 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 646 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 647 eax = eax - ecx; /* 0x3607C253: sub eax, ecx */ 648 _flag_k = FK_CMP; 649 ecx = MEM32(ebp + (-0x8)); /* 0x3607C255: mov ecx, dword ptr [ebp - 8] */ 650 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607C258: sar eax, 3 */ 651 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 652 eax = (uint32_t)((int32_t)eax >> 3u); 653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 655 ecx = ecx + eax; /* 0x3607C25B: add ecx, eax */ 656 _flag_k = FK_ADD; 657 eax = MEM32(ebp + 0xC); /* 0x3607C25D: mov eax, dword ptr [ebp + 0xc] */ 658 MEM32(ebp + (-0x8)) = ecx; /* 0x3607C260: mov dword ptr [ebp - 8], ecx */ 659 ecx = esi; /* 0x3607C263: mov ecx, esi */ 660 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 662 ecx = ecx - eax; /* 0x3607C265: sub ecx, eax */ 663 _flag_k = FK_CMP; 664 eax = MEM32(ebp + (-0x8)); /* 0x3607C267: mov eax, dword ptr [ebp - 8] */ 665 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3607C26A: sar ecx, 3 */ 666 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 667 ecx = (uint32_t)((int32_t)ecx >> 3u); 668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 669 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 670 eax = eax + ecx; /* 0x3607C26D: add eax, ecx */ 671 _flag_k = FK_ADD; 672 MEM32(ebp + (-0x8)) = eax; /* 0x3607C26F: mov dword ptr [ebp - 8], eax */ 673 L_3607C272: 674 ecx = MEM32(ebp + (-0x4)); /* 0x3607C272: mov ecx, dword ptr [ebp - 4] */ 675 eax = ecx + 0x14; /* 0x3607C275: lea eax, [ecx + 0x14] */ 676 ecx = MEM32(eax); /* 0x3607C278: mov ecx, dword ptr [eax] */ 677 MEM32(ebp + (-0x30)) = ecx; /* 0x3607C27A: mov dword ptr [ebp - 0x30], ecx */ 678 ecx = MEM32(eax + 0x4); /* 0x3607C27D: mov ecx, dword ptr [eax + 4] */ 679 MEM32(ebp + (-0x2C)) = ecx; /* 0x3607C280: mov dword ptr [ebp - 0x2c], ecx */ 680 ecx = MEM32(eax + 0x8); /* 0x3607C283: mov ecx, dword ptr [eax + 8] */ 681 eax = MEM32(eax + 0xC); /* 0x3607C286: mov eax, dword ptr [eax + 0xc] */ 682 /* cmp eax, edi */ /* 0x3607C289: cmp eax, edi */ 683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 684 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 685 _flag_k = FK_CMP; 686 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C296; /* 0x3607C28B: jne 0x3607c296 */ 687 L_3607C28D: 688 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 689 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 690 ecx = ecx - edx; /* 0x3607C28D: sub ecx, edx */ 691 _flag_k = FK_CMP; 692 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3607C28F: sar ecx, 3 */ 693 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 694 ecx = (uint32_t)((int32_t)ecx >> 3u); 695 eax = ecx; /* 0x3607C292: mov eax, ecx */ 696 goto L_3607C2B8; /* 0x3607C294: jmp 0x3607c2b8 */ 697 L_3607C296: 698 ebx = MEM32(ebp + 0x20); /* 0x3607C296: mov ebx, dword ptr [ebp + 0x20] */ 699 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 701 eax = eax - edi; /* 0x3607C299: sub eax, edi */ 702 _flag_k = FK_CMP; 703 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3607C29B: sar eax, 2 */ 704 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 705 eax = (uint32_t)((int32_t)eax >> 2u); 706 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 708 ebx = ebx - edx; /* 0x3607C29E: sub ebx, edx */ 709 _flag_k = FK_CMP; 710 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x007FFFFFu); 711 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 712 eax = eax + 0x007FFFFFu; /* 0x3607C2A0: add eax, 0x7fffff */ 713 _flag_k = FK_ADD; 714 if (3u) _cf = (((ebx) >> 2) & 1u); /* 0x3607C2A5: sar ebx, 3 */ 715 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ebx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 716 ebx = (uint32_t)((int32_t)ebx >> 3u); 717 if (9u) _cf = (((eax) >> 23) & 1u); /* 0x3607C2A8: shl eax, 9 */ 718 if (9u) { _flag_a = recomp_flags_pack((eax << 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 719 eax = eax << 9u; /* 0x3607C2A8: shl eax, 9 */ 720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 721 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 722 eax = eax + ebx; /* 0x3607C2AB: add eax, ebx */ 723 _flag_k = FK_ADD; 724 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0x30))); 725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 726 ecx = ecx - MEM32(ebp + (-0x30)); /* 0x3607C2AD: sub ecx, dword ptr [ebp - 0x30] */ 727 _flag_k = FK_CMP; 728 ebx = MEM32(ebp + 0x18); /* 0x3607C2B0: mov ebx, dword ptr [ebp + 0x18] */ 729 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3607C2B3: sar ecx, 3 */ 730 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 731 ecx = (uint32_t)((int32_t)ecx >> 3u); 732 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 733 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 734 eax = eax + ecx; /* 0x3607C2B6: add eax, ecx */ 735 _flag_k = FK_ADD; 736 L_3607C2B8: 737 /* cmp MEM32(ebp + (-0x8)), eax */ /* 0x3607C2B8: cmp dword ptr [ebp - 8], eax */ 738 _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(eax); 739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 740 _flag_k = FK_CMP; 741 if (CMP_AE(_flag_a, _flag_b)) goto L_3607C34B; /* 0x3607C2BB: jae 0x3607c34b */ 742 L_3607C2C1: 743 ecx = MEM32(ebp + 0x20); /* 0x3607C2C1: mov ecx, dword ptr [ebp + 0x20] */ 744 eax = MEM32(ebp + 0x1C); /* 0x3607C2C4: mov eax, dword ptr [ebp + 0x1c] */ 745 MEM32(ebp + (-0x1C)) = ecx; /* 0x3607C2C7: mov dword ptr [ebp - 0x1c], ecx */ 746 MEM32(ebp + (-0x18)) = edx; /* 0x3607C2CA: mov dword ptr [ebp - 0x18], edx */ 747 edx = MEM32(ebp + 0xC); /* 0x3607C2CD: mov edx, dword ptr [ebp + 0xc] */ 748 MEM32(ebp + (-0x14)) = edi; /* 0x3607C2D0: mov dword ptr [ebp - 0x14], edi */ 749 edi = MEM32(ebp + (-0x10)); /* 0x3607C2D3: mov edi, dword ptr [ebp - 0x10] */ 750 MEM32(ebp + (-0x20)) = eax; /* 0x3607C2D6: mov dword ptr [ebp - 0x20], eax */ 751 eax = MEM32(ebp + 0x10); /* 0x3607C2D9: mov eax, dword ptr [ebp + 0x10] */ 752 ecx = edi; /* 0x3607C2DC: mov ecx, edi */ 753 MEM32(ebp + 0x1C) = edx; /* 0x3607C2DE: mov dword ptr [ebp + 0x1c], edx */ 754 edx = MEM32(ecx); /* 0x3607C2E1: mov edx, dword ptr [ecx] */ 755 MEM32(ebp + 0x20) = eax; /* 0x3607C2E3: mov dword ptr [ebp + 0x20], eax */ 756 eax = MEM32(ecx + 0x4); /* 0x3607C2E6: mov eax, dword ptr [ecx + 4] */ 757 MEM32(ebp + 0x28) = ebx; /* 0x3607C2E9: mov dword ptr [ebp + 0x28], ebx */ 758 ebx = MEM32(ecx + 0x8); /* 0x3607C2EC: mov ebx, dword ptr [ecx + 8] */ 759 /* cmp ebx, esi */ /* 0x3607C2EF: cmp ebx, esi */ 760 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 762 _flag_k = FK_CMP; 763 ecx = MEM32(ecx + 0xC); /* 0x3607C2F1: mov ecx, dword ptr [ecx + 0xc] */ 764 MEM32(ebp + 0x24) = esi; /* 0x3607C2F4: mov dword ptr [ebp + 0x24], esi */ 765 MEM32(ebp + 0xC) = edx; /* 0x3607C2F7: mov dword ptr [ebp + 0xc], edx */ 766 MEM32(ebp + 0x10) = eax; /* 0x3607C2FA: mov dword ptr [ebp + 0x10], eax */ 767 MEM32(ebp + 0x18) = ecx; /* 0x3607C2FD: mov dword ptr [ebp + 0x18], ecx */ 768 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C327; /* 0x3607C300: je 0x3607c327 */ 769 L_3607C302: 770 ecx = ebp + 0x1C; /* 0x3607C302: lea ecx, [ebp + 0x1c] */ 771 RECOMP_ICALL(0x3607CE20u); /* 0x3607C305: call 0x3607ce20 */ /* not lifted */ 772 RECOMP_FLAGS_IN(); 773 esi = MEM32(eax + 0x8); /* 0x3607C30A: mov esi, dword ptr [eax + 8] */ 774 ecx = ebp + (-0x20); /* 0x3607C30D: lea ecx, [ebp - 0x20] */ 775 RECOMP_ICALL(0x3607CE20u); /* 0x3607C310: call 0x3607ce20 */ /* not lifted */ 776 RECOMP_FLAGS_IN(); 777 eax = MEM32(eax + 0x8); /* 0x3607C315: mov eax, dword ptr [eax + 8] */ 778 edx = MEM32(esi); /* 0x3607C318: mov edx, dword ptr [esi] */ 779 MEM32(eax) = edx; /* 0x3607C31A: mov dword ptr [eax], edx */ 780 ecx = MEM32(esi + 0x4); /* 0x3607C31C: mov ecx, dword ptr [esi + 4] */ 781 MEM32(eax + 0x4) = ecx; /* 0x3607C31F: mov dword ptr [eax + 4], ecx */ 782 /* cmp ebx, MEM32(ebp + 0x24) */ /* 0x3607C322: cmp ebx, dword ptr [ebp + 0x24] */ 783 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + 0x24)); 784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 785 _flag_k = FK_CMP; 786 RECOMP_BACKEDGE(); 787 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C302; /* 0x3607C325: jne 0x3607c302 */ 788 L_3607C327: 789 eax = MEM32(ebp + (-0xC)); /* 0x3607C327: mov eax, dword ptr [ebp - 0xc] */ 790 /* test eax, eax */ /* 0x3607C32A: test eax, eax */ 791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 792 _cf = 0; 793 _flag_k = FK_TEST; 794 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C410; /* 0x3607C32C: jbe 0x3607c410 */ 795 L_3607C332: 796 esi = eax; /* 0x3607C332: mov esi, eax */ 797 L_3607C334: 798 ecx = MEM32(ebp + (-0x4)); /* 0x3607C334: mov ecx, dword ptr [ebp - 4] */ 799 eax = MEM32(ecx + 0x2C); /* 0x3607C337: mov eax, dword ptr [ecx + 0x2c] */ 800 /* test eax, eax */ /* 0x3607C33A: test eax, eax */ 801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 802 _cf = 0; 803 _flag_k = FK_TEST; 804 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C343; /* 0x3607C33C: je 0x3607c343 */ 805 L_3607C33E: 806 RECOMP_ICALL(0x3607C4B0u); /* 0x3607C33E: call 0x3607c4b0 */ /* not lifted */ 807 RECOMP_FLAGS_IN(); 808 L_3607C343: 809 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1); 810 esi = esi - 1; /* 0x3607C343: dec esi */ 811 _flag_k = FK_DEC; 812 RECOMP_BACKEDGE(); 813 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3607C334; /* 0x3607C344: jne 0x3607c334 */ 814 L_3607C346: 815 goto L_3607C410; /* 0x3607C346: jmp 0x3607c410 */ 816 L_3607C34B: 817 eax = MEM32(ebp + 0xC); /* 0x3607C34B: mov eax, dword ptr [ebp + 0xc] */ 818 ecx = MEM32(ebp + 0x10); /* 0x3607C34E: mov ecx, dword ptr [ebp + 0x10] */ 819 MEM32(ebp + (-0x20)) = eax; /* 0x3607C351: mov dword ptr [ebp - 0x20], eax */ 820 eax = MEM32(ebp + (-0x4)); /* 0x3607C354: mov eax, dword ptr [ebp - 4] */ 821 MEM32(ebp + (-0x1C)) = ecx; /* 0x3607C357: mov dword ptr [ebp - 0x1c], ecx */ 822 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x14u); 823 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 824 eax = eax + 0x14u; /* 0x3607C35A: add eax, 0x14 */ 825 _flag_k = FK_ADD; 826 ecx = eax; /* 0x3607C35D: mov ecx, eax */ 827 eax = MEM32(ecx); /* 0x3607C35F: mov eax, dword ptr [ecx] */ 828 MEM32(ebp + (-0x30)) = eax; /* 0x3607C361: mov dword ptr [ebp - 0x30], eax */ 829 eax = MEM32(ecx + 0x4); /* 0x3607C364: mov eax, dword ptr [ecx + 4] */ 830 MEM32(ebp + (-0x2C)) = eax; /* 0x3607C367: mov dword ptr [ebp - 0x2c], eax */ 831 eax = MEM32(ecx + 0x8); /* 0x3607C36A: mov eax, dword ptr [ecx + 8] */ 832 /* cmp edx, eax */ /* 0x3607C36D: cmp edx, eax */ 833 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 835 _flag_k = FK_CMP; 836 ecx = MEM32(ecx + 0xC); /* 0x3607C36F: mov ecx, dword ptr [ecx + 0xc] */ 837 MEM32(ebp + (-0x24)) = ecx; /* 0x3607C372: mov dword ptr [ebp - 0x24], ecx */ 838 ecx = MEM32(ebp + 0x1C); /* 0x3607C375: mov ecx, dword ptr [ebp + 0x1c] */ 839 MEM32(ebp + 0xC) = ecx; /* 0x3607C378: mov dword ptr [ebp + 0xc], ecx */ 840 ecx = MEM32(ebp + 0x20); /* 0x3607C37B: mov ecx, dword ptr [ebp + 0x20] */ 841 MEM32(ebp + (-0x28)) = eax; /* 0x3607C37E: mov dword ptr [ebp - 0x28], eax */ 842 MEM32(ebp + 0x10) = ecx; /* 0x3607C381: mov dword ptr [ebp + 0x10], ecx */ 843 MEM32(ebp + 0x14) = edx; /* 0x3607C384: mov dword ptr [ebp + 0x14], edx */ 844 MEM32(ebp + 0x18) = edi; /* 0x3607C387: mov dword ptr [ebp + 0x18], edi */ 845 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C3CC; /* 0x3607C38A: je 0x3607c3cc */ 846 L_3607C38C: 847 edi = MEM32(edx); /* 0x3607C38C: mov edi, dword ptr [edx] */ 848 eax = MEM32(ebp + (-0x1C)); /* 0x3607C38E: mov eax, dword ptr [ebp - 0x1c] */ 849 /* cmp esi, eax */ /* 0x3607C391: cmp esi, eax */ 850 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 852 _flag_k = FK_CMP; 853 ecx = esi; /* 0x3607C393: mov ecx, esi */ 854 MEM32(ecx) = edi; /* 0x3607C395: mov dword ptr [ecx], edi */ 855 edx = MEM32(edx + 0x4); /* 0x3607C397: mov edx, dword ptr [edx + 4] */ 856 MEM32(ecx + 0x4) = edx; /* 0x3607C39A: mov dword ptr [ecx + 4], edx */ 857 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C3BC; /* 0x3607C39D: je 0x3607c3bc */ 858 L_3607C39F: 859 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 861 esi = esi + 8; /* 0x3607C39F: add esi, 8 */ 862 _flag_k = FK_ADD; 863 /* cmp esi, eax */ /* 0x3607C3A2: cmp esi, eax */ 864 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 866 _flag_k = FK_CMP; 867 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C3BC; /* 0x3607C3A4: jne 0x3607c3bc */ 868 L_3607C3A6: 869 eax = MEM32(ebx + 0x4); /* 0x3607C3A6: mov eax, dword ptr [ebx + 4] */ 870 /* test eax, eax */ /* 0x3607C3A9: test eax, eax */ 871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 872 _cf = 0; 873 _flag_k = FK_TEST; 874 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C3BC; /* 0x3607C3AB: je 0x3607c3bc */ 875 L_3607C3AD: 876 esi = MEM32(ebx + 0x4); /* 0x3607C3AD: mov esi, dword ptr [ebx + 4] */ 877 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 879 ebx = ebx + 4; /* 0x3607C3B0: add ebx, 4 */ 880 _flag_k = FK_ADD; 881 eax = esi + 0x1000; /* 0x3607C3B3: lea eax, [esi + 0x1000] */ 882 MEM32(ebp + (-0x1C)) = eax; /* 0x3607C3B9: mov dword ptr [ebp - 0x1c], eax */ 883 L_3607C3BC: 884 ecx = ebp + 0xC; /* 0x3607C3BC: lea ecx, [ebp + 0xc] */ 885 RECOMP_ICALL(0x3607C570u); /* 0x3607C3BF: call 0x3607c570 */ /* not lifted */ 886 RECOMP_FLAGS_IN(); 887 edx = MEM32(ebp + 0x14); /* 0x3607C3C4: mov edx, dword ptr [ebp + 0x14] */ 888 /* cmp edx, MEM32(ebp + (-0x28)) */ /* 0x3607C3C7: cmp edx, dword ptr [ebp - 0x28] */ 889 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ebp + (-0x28))); 890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 891 _flag_k = FK_CMP; 892 RECOMP_BACKEDGE(); 893 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C38C; /* 0x3607C3CA: jne 0x3607c38c */ 894 L_3607C3CC: 895 eax = MEM32(ebp + (-0xC)); /* 0x3607C3CC: mov eax, dword ptr [ebp - 0xc] */ 896 /* test eax, eax */ /* 0x3607C3CF: test eax, eax */ 897 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 898 _cf = 0; 899 _flag_k = FK_TEST; 900 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C40D; /* 0x3607C3D1: jbe 0x3607c40d */ 901 L_3607C3D3: 902 edi = eax; /* 0x3607C3D3: mov edi, eax */ 903 L_3607C3D5: 904 esi = MEM32(ebp + (-0x4)); /* 0x3607C3D5: mov esi, dword ptr [ebp - 4] */ 905 eax = MEM32(esi + 0x2C); /* 0x3607C3D8: mov eax, dword ptr [esi + 0x2c] */ 906 /* test eax, eax */ /* 0x3607C3DB: test eax, eax */ 907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 908 _cf = 0; 909 _flag_k = FK_TEST; 910 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C40A; /* 0x3607C3DD: je 0x3607c40a */ 911 L_3607C3DF: 912 eax = esi + 0x14; /* 0x3607C3DF: lea eax, [esi + 0x14] */ 913 ecx = MEM32(eax); /* 0x3607C3E2: mov ecx, dword ptr [eax] */ 914 edx = MEM32(eax + 0x4); /* 0x3607C3E4: mov edx, dword ptr [eax + 4] */ 915 MEM32(ebp + 0xC) = ecx; /* 0x3607C3E7: mov dword ptr [ebp + 0xc], ecx */ 916 ecx = MEM32(eax + 0x8); /* 0x3607C3EA: mov ecx, dword ptr [eax + 8] */ 917 MEM32(ebp + 0x10) = edx; /* 0x3607C3ED: mov dword ptr [ebp + 0x10], edx */ 918 edx = MEM32(eax + 0xC); /* 0x3607C3F0: mov edx, dword ptr [eax + 0xc] */ 919 MEM32(ebp + 0x14) = ecx; /* 0x3607C3F3: mov dword ptr [ebp + 0x14], ecx */ 920 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607C3F6: push -1 */ 921 ecx = ebp + 0xC; /* 0x3607C3F8: lea ecx, [ebp + 0xc] */ 922 MEM32(ebp + 0x18) = edx; /* 0x3607C3FB: mov dword ptr [ebp + 0x18], edx */ 923 RECOMP_ICALL(0x3607CE50u); /* 0x3607C3FE: call 0x3607ce50 */ /* not lifted */ 924 RECOMP_FLAGS_IN(); 925 ecx = esi; /* 0x3607C403: mov ecx, esi */ 926 RECOMP_ICALL(0x3607CD70u); /* 0x3607C405: call 0x3607cd70 */ /* not lifted */ 927 RECOMP_FLAGS_IN(); 928 L_3607C40A: 929 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1); 930 edi = edi - 1; /* 0x3607C40A: dec edi */ 931 _flag_k = FK_DEC; 932 RECOMP_BACKEDGE(); 933 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3607C3D5; /* 0x3607C40B: jne 0x3607c3d5 */ 934 L_3607C40D: 935 edi = MEM32(ebp + (-0x10)); /* 0x3607C40D: mov edi, dword ptr [ebp - 0x10] */ 936 L_3607C410: 937 ecx = MEM32(ebp + (-0x8)); /* 0x3607C410: mov ecx, dword ptr [ebp - 8] */ 938 /* test ecx, ecx */ /* 0x3607C413: test ecx, ecx */ 939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 940 _cf = 0; 941 _flag_k = FK_TEST; 942 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C433; /* 0x3607C415: jne 0x3607c433 */ 943 L_3607C417: 944 eax = MEM32(edi); /* 0x3607C417: mov eax, dword ptr [edi] */ 945 ecx = MEM32(edi + 0x4); /* 0x3607C419: mov ecx, dword ptr [edi + 4] */ 946 edx = MEM32(edi + 0x8); /* 0x3607C41C: mov edx, dword ptr [edi + 8] */ 947 MEM32(ebp + 0xC) = eax; /* 0x3607C41F: mov dword ptr [ebp + 0xc], eax */ 948 eax = MEM32(edi + 0xC); /* 0x3607C422: mov eax, dword ptr [edi + 0xc] */ 949 MEM32(ebp + 0x10) = ecx; /* 0x3607C425: mov dword ptr [ebp + 0x10], ecx */ 950 MEM32(ebp + 0x14) = edx; /* 0x3607C428: mov dword ptr [ebp + 0x14], edx */ 951 MEM32(ebp + 0x18) = eax; /* 0x3607C42B: mov dword ptr [ebp + 0x18], eax */ 952 ecx = ebp + 0xC; /* 0x3607C42E: lea ecx, [ebp + 0xc] */ 953 goto L_3607C484; /* 0x3607C431: jmp 0x3607c484 */ 954 L_3607C433: 955 eax = MEM32(edi + 0x8); /* 0x3607C433: mov eax, dword ptr [edi + 8] */ 956 edx = MEM32(edi); /* 0x3607C436: mov edx, dword ptr [edi] */ 957 esi = MEM32(edi + 0x4); /* 0x3607C438: mov esi, dword ptr [edi + 4] */ 958 edi = MEM32(edi + 0xC); /* 0x3607C43B: mov edi, dword ptr [edi + 0xc] */ 959 ebx = eax + ecx * 8; /* 0x3607C43E: lea ebx, [eax + ecx*8] */ 960 eax = ebx; /* 0x3607C441: mov eax, ebx */ 961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 963 eax = eax - edx; /* 0x3607C443: sub eax, edx */ 964 _flag_k = FK_CMP; 965 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607C445: sar eax, 3 */ 966 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 967 eax = (uint32_t)((int32_t)eax >> 3u); 968 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_S, _cf)) goto L_3607C451; /* 0x3607C448: js 0x3607c451 */ 969 L_3607C44A: 970 ecx = eax; /* 0x3607C44A: mov ecx, eax */ 971 if (9u) _cf = (((ecx) >> 8) & 1u); /* 0x3607C44C: shr ecx, 9 */ 972 if (9u) { _flag_a = recomp_flags_pack((ecx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 973 ecx = ecx >> 9u; /* 0x3607C44C: shr ecx, 9 */ 974 goto L_3607C45D; /* 0x3607C44F: jmp 0x3607c45d */ 975 L_3607C451: 976 ecx = 0x1FFu; /* 0x3607C451: mov ecx, 0x1ff */ 977 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 979 ecx = ecx - eax; /* 0x3607C456: sub ecx, eax */ 980 _flag_k = FK_CMP; 981 if (9u) _cf = (((ecx) >> 8) & 1u); /* 0x3607C458: shr ecx, 9 */ 982 if (9u) { _flag_a = recomp_flags_pack((ecx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 983 ecx = ecx >> 9u; /* 0x3607C458: shr ecx, 9 */ 984 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 985 _cf = (ecx) != 0; 986 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3607C45B: neg ecx */ 987 _flag_k = FK_CMP; 988 L_3607C45D: 989 /* test ecx, ecx */ /* 0x3607C45D: test ecx, ecx */ 990 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 991 _cf = 0; 992 _flag_k = FK_TEST; 993 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C475; /* 0x3607C45F: je 0x3607c475 */ 994 L_3607C461: 995 edx = MEM32(edi + ecx * 4); /* 0x3607C461: mov edx, dword ptr [edi + ecx*4] */ 996 edi = edi + ecx * 4; /* 0x3607C464: lea edi, [edi + ecx*4] */ 997 if (9u) _cf = (((ecx) >> 23) & 1u); /* 0x3607C467: shl ecx, 9 */ 998 if (9u) { _flag_a = recomp_flags_pack((ecx << 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 999 ecx = ecx << 9u; /* 0x3607C467: shl ecx, 9 */ 1000 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1001 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1002 eax = eax - ecx; /* 0x3607C46A: sub eax, ecx */ 1003 _flag_k = FK_CMP; 1004 esi = edx + 0x1000; /* 0x3607C46C: lea esi, [edx + 0x1000] */ 1005 ebx = edx + eax * 8; /* 0x3607C472: lea ebx, [edx + eax*8] */ 1006 L_3607C475: 1007 MEM32(ebp + 0xC) = edx; /* 0x3607C475: mov dword ptr [ebp + 0xc], edx */ 1008 MEM32(ebp + 0x10) = esi; /* 0x3607C478: mov dword ptr [ebp + 0x10], esi */ 1009 MEM32(ebp + 0x14) = ebx; /* 0x3607C47B: mov dword ptr [ebp + 0x14], ebx */ 1010 MEM32(ebp + 0x18) = edi; /* 0x3607C47E: mov dword ptr [ebp + 0x18], edi */ 1011 ecx = ebp + 0xC; /* 0x3607C481: lea ecx, [ebp + 0xc] */ 1012 L_3607C484: 1013 eax = MEM32(ebp + 0x8); /* 0x3607C484: mov eax, dword ptr [ebp + 8] */ 1014 esi = MEM32(ecx); /* 0x3607C487: mov esi, dword ptr [ecx] */ 1015 edx = eax; /* 0x3607C489: mov edx, eax */ 1016 MEM32(edx) = esi; /* 0x3607C48B: mov dword ptr [edx], esi */ 1017 esi = MEM32(ecx + 0x4); /* 0x3607C48D: mov esi, dword ptr [ecx + 4] */ 1018 MEM32(edx + 0x4) = esi; /* 0x3607C490: mov dword ptr [edx + 4], esi */ 1019 esi = MEM32(ecx + 0x8); /* 0x3607C493: mov esi, dword ptr [ecx + 8] */ 1020 ecx = MEM32(ecx + 0xC); /* 0x3607C496: mov ecx, dword ptr [ecx + 0xc] */ 1021 edi = POP32_VAL(esp); /* 0x3607C499: pop edi */ 1022 MEM32(edx + 0x8) = esi; /* 0x3607C49A: mov dword ptr [edx + 8], esi */ 1023 esi = POP32_VAL(esp); /* 0x3607C49D: pop esi */ 1024 MEM32(edx + 0xC) = ecx; /* 0x3607C49E: mov dword ptr [edx + 0xc], ecx */ 1025 ebx = POP32_VAL(esp); /* 0x3607C4A1: pop ebx */ 1026 esp = ebp; /* 0x3607C4A2: mov esp, ebp */ 1027 ebp = POP32_VAL(esp); /* 0x3607C4A4: pop ebp */ 1028 RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x3607C4A5: ret 0x24 */ 1029 RECOMP_REGS_OUT(); 1030 } 1031 1032 void sub_3607C410(void) { 1033 int _fpu_cmp = 0; 1034 uint32_t _cf = 0; 1035 int _df = 1; 1036 uint32_t _flag_k = FK_NONE; 1037 uint32_t _flag_a = 0, _flag_b = 0; 1038 uint32_t _itail_tgt = 0; 1039 RECOMP_REGS_LOCALS 1040 RECOMP_ENTER(0x3607C410u); 1041 1042 L_3607C410: 1043 ecx = MEM32(ebp + (-0x8)); /* 0x3607C410: mov ecx, dword ptr [ebp - 8] */ 1044 /* test ecx, ecx */ /* 0x3607C413: test ecx, ecx */ 1045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1046 _cf = 0; 1047 _flag_k = FK_TEST; 1048 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C433; /* 0x3607C415: jne 0x3607c433 */ 1049 L_3607C417: 1050 eax = MEM32(edi); /* 0x3607C417: mov eax, dword ptr [edi] */ 1051 ecx = MEM32(edi + 0x4); /* 0x3607C419: mov ecx, dword ptr [edi + 4] */ 1052 edx = MEM32(edi + 0x8); /* 0x3607C41C: mov edx, dword ptr [edi + 8] */ 1053 MEM32(ebp + 0xC) = eax; /* 0x3607C41F: mov dword ptr [ebp + 0xc], eax */ 1054 eax = MEM32(edi + 0xC); /* 0x3607C422: mov eax, dword ptr [edi + 0xc] */ 1055 MEM32(ebp + 0x10) = ecx; /* 0x3607C425: mov dword ptr [ebp + 0x10], ecx */ 1056 MEM32(ebp + 0x14) = edx; /* 0x3607C428: mov dword ptr [ebp + 0x14], edx */ 1057 MEM32(ebp + 0x18) = eax; /* 0x3607C42B: mov dword ptr [ebp + 0x18], eax */ 1058 ecx = ebp + 0xC; /* 0x3607C42E: lea ecx, [ebp + 0xc] */ 1059 goto L_3607C484; /* 0x3607C431: jmp 0x3607c484 */ 1060 L_3607C433: 1061 eax = MEM32(edi + 0x8); /* 0x3607C433: mov eax, dword ptr [edi + 8] */ 1062 edx = MEM32(edi); /* 0x3607C436: mov edx, dword ptr [edi] */ 1063 esi = MEM32(edi + 0x4); /* 0x3607C438: mov esi, dword ptr [edi + 4] */ 1064 edi = MEM32(edi + 0xC); /* 0x3607C43B: mov edi, dword ptr [edi + 0xc] */ 1065 ebx = eax + ecx * 8; /* 0x3607C43E: lea ebx, [eax + ecx*8] */ 1066 eax = ebx; /* 0x3607C441: mov eax, ebx */ 1067 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 1068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1069 eax = eax - edx; /* 0x3607C443: sub eax, edx */ 1070 _flag_k = FK_CMP; 1071 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607C445: sar eax, 3 */ 1072 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1073 eax = (uint32_t)((int32_t)eax >> 3u); 1074 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_S, _cf)) goto L_3607C451; /* 0x3607C448: js 0x3607c451 */ 1075 L_3607C44A: 1076 ecx = eax; /* 0x3607C44A: mov ecx, eax */ 1077 if (9u) _cf = (((ecx) >> 8) & 1u); /* 0x3607C44C: shr ecx, 9 */ 1078 if (9u) { _flag_a = recomp_flags_pack((ecx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1079 ecx = ecx >> 9u; /* 0x3607C44C: shr ecx, 9 */ 1080 goto L_3607C45D; /* 0x3607C44F: jmp 0x3607c45d */ 1081 L_3607C451: 1082 ecx = 0x1FFu; /* 0x3607C451: mov ecx, 0x1ff */ 1083 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1085 ecx = ecx - eax; /* 0x3607C456: sub ecx, eax */ 1086 _flag_k = FK_CMP; 1087 if (9u) _cf = (((ecx) >> 8) & 1u); /* 0x3607C458: shr ecx, 9 */ 1088 if (9u) { _flag_a = recomp_flags_pack((ecx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1089 ecx = ecx >> 9u; /* 0x3607C458: shr ecx, 9 */ 1090 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 1091 _cf = (ecx) != 0; 1092 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3607C45B: neg ecx */ 1093 _flag_k = FK_CMP; 1094 L_3607C45D: 1095 /* test ecx, ecx */ /* 0x3607C45D: test ecx, ecx */ 1096 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1097 _cf = 0; 1098 _flag_k = FK_TEST; 1099 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C475; /* 0x3607C45F: je 0x3607c475 */ 1100 L_3607C461: 1101 edx = MEM32(edi + ecx * 4); /* 0x3607C461: mov edx, dword ptr [edi + ecx*4] */ 1102 edi = edi + ecx * 4; /* 0x3607C464: lea edi, [edi + ecx*4] */ 1103 if (9u) _cf = (((ecx) >> 23) & 1u); /* 0x3607C467: shl ecx, 9 */ 1104 if (9u) { _flag_a = recomp_flags_pack((ecx << 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1105 ecx = ecx << 9u; /* 0x3607C467: shl ecx, 9 */ 1106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1108 eax = eax - ecx; /* 0x3607C46A: sub eax, ecx */ 1109 _flag_k = FK_CMP; 1110 esi = edx + 0x1000; /* 0x3607C46C: lea esi, [edx + 0x1000] */ 1111 ebx = edx + eax * 8; /* 0x3607C472: lea ebx, [edx + eax*8] */ 1112 L_3607C475: 1113 MEM32(ebp + 0xC) = edx; /* 0x3607C475: mov dword ptr [ebp + 0xc], edx */ 1114 MEM32(ebp + 0x10) = esi; /* 0x3607C478: mov dword ptr [ebp + 0x10], esi */ 1115 MEM32(ebp + 0x14) = ebx; /* 0x3607C47B: mov dword ptr [ebp + 0x14], ebx */ 1116 MEM32(ebp + 0x18) = edi; /* 0x3607C47E: mov dword ptr [ebp + 0x18], edi */ 1117 ecx = ebp + 0xC; /* 0x3607C481: lea ecx, [ebp + 0xc] */ 1118 L_3607C484: 1119 eax = MEM32(ebp + 0x8); /* 0x3607C484: mov eax, dword ptr [ebp + 8] */ 1120 esi = MEM32(ecx); /* 0x3607C487: mov esi, dword ptr [ecx] */ 1121 edx = eax; /* 0x3607C489: mov edx, eax */ 1122 MEM32(edx) = esi; /* 0x3607C48B: mov dword ptr [edx], esi */ 1123 esi = MEM32(ecx + 0x4); /* 0x3607C48D: mov esi, dword ptr [ecx + 4] */ 1124 MEM32(edx + 0x4) = esi; /* 0x3607C490: mov dword ptr [edx + 4], esi */ 1125 esi = MEM32(ecx + 0x8); /* 0x3607C493: mov esi, dword ptr [ecx + 8] */ 1126 ecx = MEM32(ecx + 0xC); /* 0x3607C496: mov ecx, dword ptr [ecx + 0xc] */ 1127 edi = POP32_VAL(esp); /* 0x3607C499: pop edi */ 1128 MEM32(edx + 0x8) = esi; /* 0x3607C49A: mov dword ptr [edx + 8], esi */ 1129 esi = POP32_VAL(esp); /* 0x3607C49D: pop esi */ 1130 MEM32(edx + 0xC) = ecx; /* 0x3607C49E: mov dword ptr [edx + 0xc], ecx */ 1131 ebx = POP32_VAL(esp); /* 0x3607C4A1: pop ebx */ 1132 esp = ebp; /* 0x3607C4A2: mov esp, ebp */ 1133 ebp = POP32_VAL(esp); /* 0x3607C4A4: pop ebp */ 1134 RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x3607C4A5: ret 0x24 */ 1135 RECOMP_REGS_OUT(); 1136 } 1137 1138 void sub_3607C45D(void) { 1139 int _fpu_cmp = 0; 1140 uint32_t _cf = 0; 1141 int _df = 1; 1142 uint32_t _flag_k = FK_NONE; 1143 uint32_t _flag_a = 0, _flag_b = 0; 1144 uint32_t _itail_tgt = 0; 1145 RECOMP_REGS_LOCALS 1146 RECOMP_ENTER(0x3607C45Du); 1147 1148 L_3607C45D: 1149 /* test ecx, ecx */ /* 0x3607C45D: test ecx, ecx */ 1150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1151 _cf = 0; 1152 _flag_k = FK_TEST; 1153 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C475; /* 0x3607C45F: je 0x3607c475 */ 1154 L_3607C461: 1155 edx = MEM32(edi + ecx * 4); /* 0x3607C461: mov edx, dword ptr [edi + ecx*4] */ 1156 edi = edi + ecx * 4; /* 0x3607C464: lea edi, [edi + ecx*4] */ 1157 if (9u) _cf = (((ecx) >> 23) & 1u); /* 0x3607C467: shl ecx, 9 */ 1158 if (9u) { _flag_a = recomp_flags_pack((ecx << 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 1159 ecx = ecx << 9u; /* 0x3607C467: shl ecx, 9 */ 1160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1162 eax = eax - ecx; /* 0x3607C46A: sub eax, ecx */ 1163 _flag_k = FK_CMP; 1164 esi = edx + 0x1000; /* 0x3607C46C: lea esi, [edx + 0x1000] */ 1165 ebx = edx + eax * 8; /* 0x3607C472: lea ebx, [edx + eax*8] */ 1166 L_3607C475: 1167 MEM32(ebp + 0xC) = edx; /* 0x3607C475: mov dword ptr [ebp + 0xc], edx */ 1168 MEM32(ebp + 0x10) = esi; /* 0x3607C478: mov dword ptr [ebp + 0x10], esi */ 1169 MEM32(ebp + 0x14) = ebx; /* 0x3607C47B: mov dword ptr [ebp + 0x14], ebx */ 1170 MEM32(ebp + 0x18) = edi; /* 0x3607C47E: mov dword ptr [ebp + 0x18], edi */ 1171 ecx = ebp + 0xC; /* 0x3607C481: lea ecx, [ebp + 0xc] */ 1172 eax = MEM32(ebp + 0x8); /* 0x3607C484: mov eax, dword ptr [ebp + 8] */ 1173 esi = MEM32(ecx); /* 0x3607C487: mov esi, dword ptr [ecx] */ 1174 edx = eax; /* 0x3607C489: mov edx, eax */ 1175 MEM32(edx) = esi; /* 0x3607C48B: mov dword ptr [edx], esi */ 1176 esi = MEM32(ecx + 0x4); /* 0x3607C48D: mov esi, dword ptr [ecx + 4] */ 1177 MEM32(edx + 0x4) = esi; /* 0x3607C490: mov dword ptr [edx + 4], esi */ 1178 esi = MEM32(ecx + 0x8); /* 0x3607C493: mov esi, dword ptr [ecx + 8] */ 1179 ecx = MEM32(ecx + 0xC); /* 0x3607C496: mov ecx, dword ptr [ecx + 0xc] */ 1180 edi = POP32_VAL(esp); /* 0x3607C499: pop edi */ 1181 MEM32(edx + 0x8) = esi; /* 0x3607C49A: mov dword ptr [edx + 8], esi */ 1182 esi = POP32_VAL(esp); /* 0x3607C49D: pop esi */ 1183 MEM32(edx + 0xC) = ecx; /* 0x3607C49E: mov dword ptr [edx + 0xc], ecx */ 1184 ebx = POP32_VAL(esp); /* 0x3607C4A1: pop ebx */ 1185 esp = ebp; /* 0x3607C4A2: mov esp, ebp */ 1186 ebp = POP32_VAL(esp); /* 0x3607C4A4: pop ebp */ 1187 RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x3607C4A5: ret 0x24 */ 1188 RECOMP_REGS_OUT(); 1189 } 1190 1191 void sub_3607C484(void) { 1192 int _fpu_cmp = 0; 1193 uint32_t _cf = 0; 1194 int _df = 1; 1195 uint32_t _flag_k = FK_NONE; 1196 uint32_t _flag_a = 0, _flag_b = 0; 1197 uint32_t _itail_tgt = 0; 1198 RECOMP_REGS_LOCALS 1199 RECOMP_ENTER(0x3607C484u); 1200 1201 L_3607C484: 1202 eax = MEM32(ebp + 0x8); /* 0x3607C484: mov eax, dword ptr [ebp + 8] */ 1203 esi = MEM32(ecx); /* 0x3607C487: mov esi, dword ptr [ecx] */ 1204 edx = eax; /* 0x3607C489: mov edx, eax */ 1205 MEM32(edx) = esi; /* 0x3607C48B: mov dword ptr [edx], esi */ 1206 esi = MEM32(ecx + 0x4); /* 0x3607C48D: mov esi, dword ptr [ecx + 4] */ 1207 MEM32(edx + 0x4) = esi; /* 0x3607C490: mov dword ptr [edx + 4], esi */ 1208 esi = MEM32(ecx + 0x8); /* 0x3607C493: mov esi, dword ptr [ecx + 8] */ 1209 ecx = MEM32(ecx + 0xC); /* 0x3607C496: mov ecx, dword ptr [ecx + 0xc] */ 1210 edi = POP32_VAL(esp); /* 0x3607C499: pop edi */ 1211 MEM32(edx + 0x8) = esi; /* 0x3607C49A: mov dword ptr [edx + 8], esi */ 1212 esi = POP32_VAL(esp); /* 0x3607C49D: pop esi */ 1213 MEM32(edx + 0xC) = ecx; /* 0x3607C49E: mov dword ptr [edx + 0xc], ecx */ 1214 ebx = POP32_VAL(esp); /* 0x3607C4A1: pop ebx */ 1215 esp = ebp; /* 0x3607C4A2: mov esp, ebp */ 1216 ebp = POP32_VAL(esp); /* 0x3607C4A4: pop ebp */ 1217 RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x3607C4A5: ret 0x24 */ 1218 RECOMP_REGS_OUT(); 1219 } 1220 1221 void sub_3607C4B0(void) { 1222 int _fpu_cmp = 0; 1223 uint32_t _cf = 0; 1224 int _df = 1; 1225 uint32_t _flag_k = FK_NONE; 1226 uint32_t _flag_a = 0, _flag_b = 0; 1227 uint32_t _itail_tgt = 0; 1228 RECOMP_REGS_LOCALS 1229 RECOMP_ENTER(0x3607C4B0u); 1230 1231 L_3607C4B0: 1232 PUSH32(esp, esi); /* 0x3607C4B0: push esi */ 1233 esi = ecx; /* 0x3607C4B1: mov esi, ecx */ 1234 eax = MEM32(esi + 0xC); /* 0x3607C4B3: mov eax, dword ptr [esi + 0xc] */ 1235 ecx = MEM32(esi + 0x8); /* 0x3607C4B6: mov ecx, dword ptr [esi + 8] */ 1236 /* cmp eax, ecx */ /* 0x3607C4B9: cmp eax, ecx */ 1237 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1239 _flag_k = FK_CMP; 1240 PUSH32(esp, edi); /* 0x3607C4BB: push edi */ 1241 edi = MEM32(esi + 0x10); /* 0x3607C4BC: mov edi, dword ptr [esi + 0x10] */ 1242 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C4EE; /* 0x3607C4BF: je 0x3607c4ee */ 1243 L_3607C4C1: 1244 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 1245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1246 eax = eax + 8; /* 0x3607C4C1: add eax, 8 */ 1247 _flag_k = FK_ADD; 1248 /* cmp eax, ecx */ /* 0x3607C4C4: cmp eax, ecx */ 1249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1251 _flag_k = FK_CMP; 1252 MEM32(esi + 0xC) = eax; /* 0x3607C4C6: mov dword ptr [esi + 0xc], eax */ 1253 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C4EE; /* 0x3607C4C9: jne 0x3607c4ee */ 1254 L_3607C4CB: 1255 eax = MEM32(esi + 0x10); /* 0x3607C4CB: mov eax, dword ptr [esi + 0x10] */ 1256 ecx = MEM32(eax + 0x4); /* 0x3607C4CE: mov ecx, dword ptr [eax + 4] */ 1257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1258 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1259 eax = eax + 4; /* 0x3607C4D1: add eax, 4 */ 1260 _flag_k = FK_ADD; 1261 /* test ecx, ecx */ /* 0x3607C4D4: test ecx, ecx */ 1262 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1263 _cf = 0; 1264 _flag_k = FK_TEST; 1265 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C4EE; /* 0x3607C4D6: je 0x3607c4ee */ 1266 L_3607C4D8: 1267 MEM32(esi + 0x10) = eax; /* 0x3607C4D8: mov dword ptr [esi + 0x10], eax */ 1268 eax = MEM32(eax); /* 0x3607C4DB: mov eax, dword ptr [eax] */ 1269 MEM32(esi + 0x4) = eax; /* 0x3607C4DD: mov dword ptr [esi + 4], eax */ 1270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 1271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1272 eax = eax + 0x1000u; /* 0x3607C4E0: add eax, 0x1000 */ 1273 _flag_k = FK_ADD; 1274 MEM32(esi + 0x8) = eax; /* 0x3607C4E5: mov dword ptr [esi + 8], eax */ 1275 eax = MEM32(esi + 0x4); /* 0x3607C4E8: mov eax, dword ptr [esi + 4] */ 1276 MEM32(esi + 0xC) = eax; /* 0x3607C4EB: mov dword ptr [esi + 0xc], eax */ 1277 L_3607C4EE: 1278 _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1); 1279 MEM32(esi + 0x2C) = MEM32(esi + 0x2C) - 1; /* 0x3607C4EE: dec dword ptr [esi + 0x2c] */ 1280 _flag_k = FK_DEC; 1281 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3607C549; /* 0x3607C4F1: jne 0x3607c549 */ 1282 L_3607C4F3: 1283 ecx = MEM32(esi + 0x10); /* 0x3607C4F3: mov ecx, dword ptr [esi + 0x10] */ 1284 edx = MEM32(ecx + (-0x4)); /* 0x3607C4F6: mov edx, dword ptr [ecx - 4] */ 1285 PUSH32(esp, ebx); /* 0x3607C4F9: push ebx */ 1286 PUSH32(esp, edx); /* 0x3607C4FA: push edx */ 1287 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C4FB: call 0x3615fcc4 */ /* not lifted */ 1288 RECOMP_FLAGS_IN(); 1289 eax = MEM32(esi + 0x10); /* 0x3607C500: mov eax, dword ptr [esi + 0x10] */ 1290 ecx = MEM32(eax); /* 0x3607C503: mov ecx, dword ptr [eax] */ 1291 PUSH32(esp, ecx); /* 0x3607C505: push ecx */ 1292 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C506: call 0x3615fcc4 */ /* not lifted */ 1293 RECOMP_FLAGS_IN(); 1294 edx = MEM32(esi + 0x10); /* 0x3607C50B: mov edx, dword ptr [esi + 0x10] */ 1295 eax = MEM32(edx + 0x4); /* 0x3607C50E: mov eax, dword ptr [edx + 4] */ 1296 PUSH32(esp, eax); /* 0x3607C511: push eax */ 1297 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C512: call 0x3615fcc4 */ /* not lifted */ 1298 RECOMP_FLAGS_IN(); 1299 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1300 eax = 0; /* 0x3607C517: xor eax, eax */ 1301 _cf = 0; 1302 _flag_k = FK_TEST; 1303 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1304 ecx = 0; /* 0x3607C519: xor ecx, ecx */ 1305 _cf = 0; 1306 _flag_k = FK_TEST; 1307 ebx = esi + 0x14; /* 0x3607C51B: lea ebx, [esi + 0x14] */ 1308 MEM32(ebx) = eax; /* 0x3607C51E: mov dword ptr [ebx], eax */ 1309 MEM32(esi + 0x4) = eax; /* 0x3607C520: mov dword ptr [esi + 4], eax */ 1310 MEM32(esi + 0x8) = ecx; /* 0x3607C523: mov dword ptr [esi + 8], ecx */ 1311 MEM32(ebx + 0x4) = ecx; /* 0x3607C526: mov dword ptr [ebx + 4], ecx */ 1312 ecx = MEM32(esi + 0x24); /* 0x3607C529: mov ecx, dword ptr [esi + 0x24] */ 1313 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1314 edx = 0; /* 0x3607C52C: xor edx, edx */ 1315 _cf = 0; 1316 _flag_k = FK_TEST; 1317 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1318 edi = 0; /* 0x3607C52E: xor edi, edi */ 1319 _cf = 0; 1320 _flag_k = FK_TEST; 1321 MEM32(ebx + 0x8) = edx; /* 0x3607C530: mov dword ptr [ebx + 8], edx */ 1322 MEM32(esi + 0xC) = edx; /* 0x3607C533: mov dword ptr [esi + 0xc], edx */ 1323 PUSH32(esp, ecx); /* 0x3607C536: push ecx */ 1324 MEM32(esi + 0x10) = edi; /* 0x3607C537: mov dword ptr [esi + 0x10], edi */ 1325 MEM32(ebx + 0xC) = edi; /* 0x3607C53A: mov dword ptr [ebx + 0xc], edi */ 1326 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C53D: call 0x3615fcc4 */ /* not lifted */ 1327 RECOMP_FLAGS_IN(); 1328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1330 esp = esp + 0x10u; /* 0x3607C542: add esp, 0x10 */ 1331 _flag_k = FK_ADD; 1332 ebx = POP32_VAL(esp); /* 0x3607C545: pop ebx */ 1333 edi = POP32_VAL(esp); /* 0x3607C546: pop edi */ 1334 esi = POP32_VAL(esp); /* 0x3607C547: pop esi */ 1335 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C548: ret */ 1336 L_3607C549: 1337 /* cmp edi, MEM32(esi + 0x10) */ /* 0x3607C549: cmp edi, dword ptr [esi + 0x10] */ 1338 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x10)); 1339 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1340 _flag_k = FK_CMP; 1341 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C55F; /* 0x3607C54C: je 0x3607c55f */ 1342 L_3607C54E: 1343 edx = MEM32(edi); /* 0x3607C54E: mov edx, dword ptr [edi] */ 1344 PUSH32(esp, edx); /* 0x3607C550: push edx */ 1345 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C551: call 0x3615fcc4 */ /* not lifted */ 1346 RECOMP_FLAGS_IN(); 1347 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1348 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1349 esp = esp + 4; /* 0x3607C556: add esp, 4 */ 1350 _flag_k = FK_ADD; 1351 MEM32(edi) = 0; /* 0x3607C559: mov dword ptr [edi], 0 */ 1352 L_3607C55F: 1353 edi = POP32_VAL(esp); /* 0x3607C55F: pop edi */ 1354 esi = POP32_VAL(esp); /* 0x3607C560: pop esi */ 1355 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C561: ret */ 1356 RECOMP_REGS_OUT(); 1357 } 1358 1359 void sub_3607C570(void) { 1360 int _fpu_cmp = 0; 1361 uint32_t _cf = 0; 1362 int _df = 1; 1363 uint32_t _flag_k = FK_NONE; 1364 uint32_t _flag_a = 0, _flag_b = 0; 1365 uint32_t _itail_tgt = 0; 1366 RECOMP_REGS_LOCALS 1367 RECOMP_ENTER(0x3607C570u); 1368 1369 L_3607C570: 1370 eax = ecx; /* 0x3607C570: mov eax, ecx */ 1371 ecx = MEM32(eax + 0x8); /* 0x3607C572: mov ecx, dword ptr [eax + 8] */ 1372 edx = MEM32(eax + 0x4); /* 0x3607C575: mov edx, dword ptr [eax + 4] */ 1373 /* cmp ecx, edx */ /* 0x3607C578: cmp ecx, edx */ 1374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1376 _flag_k = FK_CMP; 1377 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C5A8; /* 0x3607C57A: je 0x3607c5a8 */ 1378 L_3607C57C: 1379 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 1380 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1381 ecx = ecx + 8; /* 0x3607C57C: add ecx, 8 */ 1382 _flag_k = FK_ADD; 1383 /* cmp ecx, edx */ /* 0x3607C57F: cmp ecx, edx */ 1384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1385 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1386 _flag_k = FK_CMP; 1387 MEM32(eax + 0x8) = ecx; /* 0x3607C581: mov dword ptr [eax + 8], ecx */ 1388 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C5A8; /* 0x3607C584: jne 0x3607c5a8 */ 1389 L_3607C586: 1390 ecx = MEM32(eax + 0xC); /* 0x3607C586: mov ecx, dword ptr [eax + 0xc] */ 1391 edx = MEM32(ecx + 0x4); /* 0x3607C589: mov edx, dword ptr [ecx + 4] */ 1392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 1393 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1394 ecx = ecx + 4; /* 0x3607C58C: add ecx, 4 */ 1395 _flag_k = FK_ADD; 1396 /* test edx, edx */ /* 0x3607C58F: test edx, edx */ 1397 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 1398 _cf = 0; 1399 _flag_k = FK_TEST; 1400 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C5A8; /* 0x3607C591: je 0x3607c5a8 */ 1401 L_3607C593: 1402 MEM32(eax + 0xC) = ecx; /* 0x3607C593: mov dword ptr [eax + 0xc], ecx */ 1403 ecx = MEM32(ecx); /* 0x3607C596: mov ecx, dword ptr [ecx] */ 1404 MEM32(eax) = ecx; /* 0x3607C598: mov dword ptr [eax], ecx */ 1405 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u); 1406 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1407 ecx = ecx + 0x1000u; /* 0x3607C59A: add ecx, 0x1000 */ 1408 _flag_k = FK_ADD; 1409 MEM32(eax + 0x4) = ecx; /* 0x3607C5A0: mov dword ptr [eax + 4], ecx */ 1410 ecx = MEM32(eax); /* 0x3607C5A3: mov ecx, dword ptr [eax] */ 1411 MEM32(eax + 0x8) = ecx; /* 0x3607C5A5: mov dword ptr [eax + 8], ecx */ 1412 L_3607C5A8: 1413 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607C5A8: ret */ 1414 RECOMP_REGS_OUT(); 1415 } 1416 1417 void sub_3607C5B0(void) { 1418 int _fpu_cmp = 0; 1419 uint32_t _cf = 0; 1420 int _df = 1; 1421 uint32_t _flag_k = FK_NONE; 1422 uint32_t _flag_a = 0, _flag_b = 0; 1423 uint32_t _itail_tgt = 0; 1424 RECOMP_REGS_LOCALS 1425 RECOMP_ENTER(0x3607C5B0u); 1426 1427 L_3607C5B0: 1428 PUSH32(esp, ebp); /* 0x3607C5B0: push ebp */ 1429 ebp = esp; /* 0x3607C5B1: mov ebp, esp */ 1430 PUSH32(esp, ecx); /* 0x3607C5B3: push ecx */ 1431 PUSH32(esp, ebx); /* 0x3607C5B4: push ebx */ 1432 PUSH32(esp, esi); /* 0x3607C5B5: push esi */ 1433 esi = MEM32(ebp + 0xC); /* 0x3607C5B6: mov esi, dword ptr [ebp + 0xc] */ 1434 PUSH32(esp, edi); /* 0x3607C5B9: push edi */ 1435 edi = ecx; /* 0x3607C5BA: mov edi, ecx */ 1436 ecx = ebp + 0xC; /* 0x3607C5BC: lea ecx, [ebp + 0xc] */ 1437 RECOMP_ICALL(0x3607CA20u); /* 0x3607C5BF: call 0x3607ca20 */ /* not lifted */ 1438 RECOMP_FLAGS_IN(); 1439 edx = MEM32(esi); /* 0x3607C5C4: mov edx, dword ptr [esi] */ 1440 eax = MEM32(edi + 0x8); /* 0x3607C5C6: mov eax, dword ptr [edi + 8] */ 1441 /* cmp edx, eax */ /* 0x3607C5C9: cmp edx, eax */ 1442 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 1443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1444 _flag_k = FK_CMP; 1445 MEM32(ebp + (-0x4)) = esi; /* 0x3607C5CB: mov dword ptr [ebp - 4], esi */ 1446 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C5F0; /* 0x3607C5CE: jne 0x3607c5f0 */ 1447 L_3607C5D0: 1448 eax = MEM32(esi + 0x8); /* 0x3607C5D0: mov eax, dword ptr [esi + 8] */ 1449 L_3607C5D3: 1450 ecx = MEM32(ebp + (-0x4)); /* 0x3607C5D3: mov ecx, dword ptr [ebp - 4] */ 1451 edx = MEM32(ecx + 0x4); /* 0x3607C5D6: mov edx, dword ptr [ecx + 4] */ 1452 MEM32(eax + 0x4) = edx; /* 0x3607C5D9: mov dword ptr [eax + 4], edx */ 1453 ecx = MEM32(edi + 0x4); /* 0x3607C5DC: mov ecx, dword ptr [edi + 4] */ 1454 /* cmp MEM32(ecx + 0x4), esi */ /* 0x3607C5DF: cmp dword ptr [ecx + 4], esi */ 1455 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(esi); 1456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1457 _flag_k = FK_CMP; 1458 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C673; /* 0x3607C5E2: jne 0x3607c673 */ 1459 L_3607C5E8: 1460 MEM32(ecx + 0x4) = eax; /* 0x3607C5E8: mov dword ptr [ecx + 4], eax */ 1461 goto L_3607C681; /* 0x3607C5EB: jmp 0x3607c681 */ 1462 L_3607C5F0: 1463 ecx = MEM32(esi + 0x8); /* 0x3607C5F0: mov ecx, dword ptr [esi + 8] */ 1464 /* cmp ecx, eax */ /* 0x3607C5F3: cmp ecx, eax */ 1465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1467 _flag_k = FK_CMP; 1468 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C5FB; /* 0x3607C5F5: jne 0x3607c5fb */ 1469 L_3607C5F7: 1470 eax = edx; /* 0x3607C5F7: mov eax, edx */ 1471 RECOMP_BACKEDGE(); 1472 goto L_3607C5D3; /* 0x3607C5F9: jmp 0x3607c5d3 */ 1473 L_3607C5FB: 1474 eax = MEM32(ecx); /* 0x3607C5FB: mov eax, dword ptr [ecx] */ 1475 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3607C5FD: mov bl, byte ptr [eax + 0x29] */ 1476 /* test LO8(ebx), LO8(ebx) */ /* 0x3607C600: test bl, bl */ 1477 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1478 _cf = 0; 1479 _flag_k = FK_NARROW(FK_TEST, 24); 1480 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C60F; /* 0x3607C602: jne 0x3607c60f */ 1481 L_3607C604: 1482 ecx = eax; /* 0x3607C604: mov ecx, eax */ 1483 eax = MEM32(ecx); /* 0x3607C606: mov eax, dword ptr [ecx] */ 1484 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3607C608: mov bl, byte ptr [eax + 0x29] */ 1485 /* test LO8(ebx), LO8(ebx) */ /* 0x3607C60B: test bl, bl */ 1486 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1487 _cf = 0; 1488 _flag_k = FK_NARROW(FK_TEST, 24); 1489 RECOMP_BACKEDGE(); 1490 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C604; /* 0x3607C60D: je 0x3607c604 */ 1491 L_3607C60F: 1492 /* cmp ecx, esi */ /* 0x3607C60F: cmp ecx, esi */ 1493 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 1494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1495 _flag_k = FK_CMP; 1496 eax = MEM32(ecx + 0x8); /* 0x3607C611: mov eax, dword ptr [ecx + 8] */ 1497 MEM32(ebp + (-0x4)) = ecx; /* 0x3607C614: mov dword ptr [ebp - 4], ecx */ 1498 RECOMP_BACKEDGE(); 1499 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C5D3; /* 0x3607C617: je 0x3607c5d3 */ 1500 L_3607C619: 1501 MEM32(edx + 0x4) = ecx; /* 0x3607C619: mov dword ptr [edx + 4], ecx */ 1502 edx = MEM32(esi); /* 0x3607C61C: mov edx, dword ptr [esi] */ 1503 MEM32(ecx) = edx; /* 0x3607C61E: mov dword ptr [ecx], edx */ 1504 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C620: cmp ecx, dword ptr [esi + 8] */ 1505 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1507 _flag_k = FK_CMP; 1508 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C62A; /* 0x3607C623: jne 0x3607c62a */ 1509 L_3607C625: 1510 MEM32(eax + 0x4) = ecx; /* 0x3607C625: mov dword ptr [eax + 4], ecx */ 1511 goto L_3607C641; /* 0x3607C628: jmp 0x3607c641 */ 1512 L_3607C62A: 1513 edx = MEM32(ecx + 0x4); /* 0x3607C62A: mov edx, dword ptr [ecx + 4] */ 1514 MEM32(eax + 0x4) = edx; /* 0x3607C62D: mov dword ptr [eax + 4], edx */ 1515 edx = MEM32(ecx + 0x4); /* 0x3607C630: mov edx, dword ptr [ecx + 4] */ 1516 MEM32(edx) = eax; /* 0x3607C633: mov dword ptr [edx], eax */ 1517 edx = MEM32(esi + 0x8); /* 0x3607C635: mov edx, dword ptr [esi + 8] */ 1518 MEM32(ecx + 0x8) = edx; /* 0x3607C638: mov dword ptr [ecx + 8], edx */ 1519 edx = MEM32(esi + 0x8); /* 0x3607C63B: mov edx, dword ptr [esi + 8] */ 1520 MEM32(edx + 0x4) = ecx; /* 0x3607C63E: mov dword ptr [edx + 4], ecx */ 1521 L_3607C641: 1522 edx = MEM32(edi + 0x4); /* 0x3607C641: mov edx, dword ptr [edi + 4] */ 1523 /* cmp MEM32(edx + 0x4), esi */ /* 0x3607C644: cmp dword ptr [edx + 4], esi */ 1524 _flag_a = (uint32_t)(MEM32(edx + 0x4)); _flag_b = (uint32_t)(esi); 1525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1526 _flag_k = FK_CMP; 1527 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C64E; /* 0x3607C647: jne 0x3607c64e */ 1528 L_3607C649: 1529 MEM32(edx + 0x4) = ecx; /* 0x3607C649: mov dword ptr [edx + 4], ecx */ 1530 goto L_3607C65C; /* 0x3607C64C: jmp 0x3607c65c */ 1531 L_3607C64E: 1532 edx = MEM32(esi + 0x4); /* 0x3607C64E: mov edx, dword ptr [esi + 4] */ 1533 /* cmp MEM32(edx), esi */ /* 0x3607C651: cmp dword ptr [edx], esi */ 1534 _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(esi); 1535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1536 _flag_k = FK_CMP; 1537 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C659; /* 0x3607C653: jne 0x3607c659 */ 1538 L_3607C655: 1539 MEM32(edx) = ecx; /* 0x3607C655: mov dword ptr [edx], ecx */ 1540 goto L_3607C65C; /* 0x3607C657: jmp 0x3607c65c */ 1541 L_3607C659: 1542 MEM32(edx + 0x8) = ecx; /* 0x3607C659: mov dword ptr [edx + 8], ecx */ 1543 L_3607C65C: 1544 edx = MEM32(esi + 0x4); /* 0x3607C65C: mov edx, dword ptr [esi + 4] */ 1545 MEM32(ecx + 0x4) = edx; /* 0x3607C65F: mov dword ptr [ecx + 4], edx */ 1546 SET_LO8(ebx, MEM8(esi + 0x28)); /* 0x3607C662: mov bl, byte ptr [esi + 0x28] */ 1547 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C665: mov dl, byte ptr [ecx + 0x28] */ 1548 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C668: mov byte ptr [ecx + 0x28], bl */ 1549 MEM8(esi + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C66B: mov byte ptr [esi + 0x28], dl */ 1550 MEM32(ebp + (-0x4)) = esi; /* 0x3607C66E: mov dword ptr [ebp - 4], esi */ 1551 goto L_3607C6D8; /* 0x3607C671: jmp 0x3607c6d8 */ 1552 L_3607C673: 1553 ecx = MEM32(esi + 0x4); /* 0x3607C673: mov ecx, dword ptr [esi + 4] */ 1554 /* cmp MEM32(ecx), esi */ /* 0x3607C676: cmp dword ptr [ecx], esi */ 1555 _flag_a = (uint32_t)(MEM32(ecx)); _flag_b = (uint32_t)(esi); 1556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1557 _flag_k = FK_CMP; 1558 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C67E; /* 0x3607C678: jne 0x3607c67e */ 1559 L_3607C67A: 1560 MEM32(ecx) = eax; /* 0x3607C67A: mov dword ptr [ecx], eax */ 1561 goto L_3607C681; /* 0x3607C67C: jmp 0x3607c681 */ 1562 L_3607C67E: 1563 MEM32(ecx + 0x8) = eax; /* 0x3607C67E: mov dword ptr [ecx + 8], eax */ 1564 L_3607C681: 1565 ebx = MEM32(edi + 0x4); /* 0x3607C681: mov ebx, dword ptr [edi + 4] */ 1566 /* cmp MEM32(ebx), esi */ /* 0x3607C684: cmp dword ptr [ebx], esi */ 1567 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 1568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1569 _flag_k = FK_CMP; 1570 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6AB; /* 0x3607C686: jne 0x3607c6ab */ 1571 L_3607C688: 1572 ecx = MEM32(esi + 0x8); /* 0x3607C688: mov ecx, dword ptr [esi + 8] */ 1573 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3607C68B: cmp ecx, dword ptr [edi + 8] */ 1574 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1576 _flag_k = FK_CMP; 1577 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C695; /* 0x3607C68E: jne 0x3607c695 */ 1578 L_3607C690: 1579 edx = MEM32(esi + 0x4); /* 0x3607C690: mov edx, dword ptr [esi + 4] */ 1580 goto L_3607C6A9; /* 0x3607C693: jmp 0x3607c6a9 */ 1581 L_3607C695: 1582 ecx = MEM32(eax); /* 0x3607C695: mov ecx, dword ptr [eax] */ 1583 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C697: cmp byte ptr [ecx + 0x29], 0 */ 1584 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 1585 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1586 _flag_k = FK_NARROW(FK_CMP, 24); 1587 edx = eax; /* 0x3607C69B: mov edx, eax */ 1588 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6A9; /* 0x3607C69D: jne 0x3607c6a9 */ 1589 L_3607C69F: 1590 edx = ecx; /* 0x3607C69F: mov edx, ecx */ 1591 ecx = MEM32(edx); /* 0x3607C6A1: mov ecx, dword ptr [edx] */ 1592 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6A3: cmp byte ptr [ecx + 0x29], 0 */ 1593 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 1594 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1595 _flag_k = FK_NARROW(FK_CMP, 24); 1596 RECOMP_BACKEDGE(); 1597 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C69F; /* 0x3607C6A7: je 0x3607c69f */ 1598 L_3607C6A9: 1599 MEM32(ebx) = edx; /* 0x3607C6A9: mov dword ptr [ebx], edx */ 1600 L_3607C6AB: 1601 ebx = MEM32(edi + 0x4); /* 0x3607C6AB: mov ebx, dword ptr [edi + 4] */ 1602 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3607C6AE: cmp dword ptr [ebx + 8], esi */ 1603 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 1604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1605 _flag_k = FK_CMP; 1606 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6D8; /* 0x3607C6B1: jne 0x3607c6d8 */ 1607 L_3607C6B3: 1608 ecx = MEM32(esi); /* 0x3607C6B3: mov ecx, dword ptr [esi] */ 1609 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3607C6B5: cmp ecx, dword ptr [edi + 8] */ 1610 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1612 _flag_k = FK_CMP; 1613 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6BF; /* 0x3607C6B8: jne 0x3607c6bf */ 1614 L_3607C6BA: 1615 edx = MEM32(esi + 0x4); /* 0x3607C6BA: mov edx, dword ptr [esi + 4] */ 1616 goto L_3607C6D5; /* 0x3607C6BD: jmp 0x3607c6d5 */ 1617 L_3607C6BF: 1618 ecx = MEM32(eax + 0x8); /* 0x3607C6BF: mov ecx, dword ptr [eax + 8] */ 1619 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6C2: cmp byte ptr [ecx + 0x29], 0 */ 1620 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 1621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1622 _flag_k = FK_NARROW(FK_CMP, 24); 1623 edx = eax; /* 0x3607C6C6: mov edx, eax */ 1624 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6D5; /* 0x3607C6C8: jne 0x3607c6d5 */ 1625 L_3607C6CA: 1626 edx = ecx; /* 0x3607C6CA: mov edx, ecx */ 1627 ecx = MEM32(edx + 0x8); /* 0x3607C6CC: mov ecx, dword ptr [edx + 8] */ 1628 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6CF: cmp byte ptr [ecx + 0x29], 0 */ 1629 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 1630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1631 _flag_k = FK_NARROW(FK_CMP, 24); 1632 RECOMP_BACKEDGE(); 1633 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C6CA; /* 0x3607C6D3: je 0x3607c6ca */ 1634 L_3607C6D5: 1635 MEM32(ebx + 0x8) = edx; /* 0x3607C6D5: mov dword ptr [ebx + 8], edx */ 1636 L_3607C6D8: 1637 ecx = MEM32(ebp + (-0x4)); /* 0x3607C6D8: mov ecx, dword ptr [ebp - 4] */ 1638 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C6DB: mov dl, byte ptr [ecx + 0x28] */ 1639 SET_LO8(ebx, 1); /* 0x3607C6DE: mov bl, 1 */ 1640 /* cmp LO8(edx), LO8(ebx) */ /* 0x3607C6E0: cmp dl, bl */ 1641 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1643 _flag_k = FK_NARROW(FK_CMP, 24); 1644 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C945; /* 0x3607C6E2: jne 0x3607c945 */ 1645 L_3607C6E8: 1646 edx = MEM32(edi + 0x4); /* 0x3607C6E8: mov edx, dword ptr [edi + 4] */ 1647 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3607C6EB: cmp eax, dword ptr [edx + 4] */ 1648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1650 _flag_k = FK_CMP; 1651 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6EE: je 0x3607c942 */ 1652 L_3607C6F4: 1653 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 1654 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1656 _flag_k = FK_NARROW(FK_CMP, 24); 1657 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 1658 L_3607C6FD: 1659 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 1660 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 1661 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 1662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1663 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1664 _flag_k = FK_CMP; 1665 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 1666 L_3607C706: 1667 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 1668 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 1669 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 1670 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1671 _cf = 0; 1672 _flag_k = FK_NARROW(FK_TEST, 24); 1673 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 1674 L_3607C710: 1675 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 1676 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 1677 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 1678 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 1679 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 1680 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 1681 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 1682 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 1683 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 1684 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1685 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1686 _flag_k = FK_CMP; 1687 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 1688 L_3607C72C: 1689 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 1690 L_3607C72F: 1691 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 1692 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 1693 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 1694 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 1695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1697 _flag_k = FK_CMP; 1698 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 1699 L_3607C73D: 1700 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 1701 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 1702 L_3607C742: 1703 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 1704 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 1705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 1706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1707 _flag_k = FK_CMP; 1708 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 1709 L_3607C749: 1710 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 1711 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 1712 L_3607C74D: 1713 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 1714 L_3607C750: 1715 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 1716 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 1717 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 1718 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 1719 L_3607C75B: 1720 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 1721 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 1722 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1724 _flag_k = FK_NARROW(FK_CMP, 24); 1725 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 1726 L_3607C766: 1727 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 1728 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 1729 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1731 _flag_k = FK_NARROW(FK_CMP, 24); 1732 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 1733 L_3607C772: 1734 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 1735 L_3607C774: 1736 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 1737 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 1738 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1739 _cf = 0; 1740 _flag_k = FK_NARROW(FK_TEST, 24); 1741 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 1742 L_3607C77B: 1743 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 1744 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 1745 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 1746 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 1747 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 1748 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 1749 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 1750 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 1751 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 1752 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1753 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1754 _flag_k = FK_CMP; 1755 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 1756 L_3607C797: 1757 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 1758 L_3607C79A: 1759 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 1760 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 1761 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 1762 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 1763 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1765 _flag_k = FK_CMP; 1766 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 1767 L_3607C7A8: 1768 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 1769 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 1770 L_3607C7AD: 1771 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 1772 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 1773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1774 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1775 _flag_k = FK_CMP; 1776 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 1777 L_3607C7B5: 1778 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 1779 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 1780 L_3607C7BA: 1781 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 1782 L_3607C7BC: 1783 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 1784 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 1785 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 1786 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 1787 L_3607C7C7: 1788 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 1789 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 1790 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1792 _flag_k = FK_NARROW(FK_CMP, 24); 1793 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 1794 L_3607C7D3: 1795 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 1796 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 1797 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1799 _flag_k = FK_NARROW(FK_CMP, 24); 1800 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 1801 L_3607C7DE: 1802 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 1803 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 1804 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 1805 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 1806 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1808 _flag_k = FK_CMP; 1809 RECOMP_BACKEDGE(); 1810 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 1811 L_3607C7F1: 1812 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 1813 L_3607C7F6: 1814 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 1815 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 1816 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1817 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1818 _flag_k = FK_NARROW(FK_CMP, 24); 1819 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 1820 L_3607C7FE: 1821 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 1822 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 1823 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 1824 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 1825 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 1826 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 1827 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 1828 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 1829 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1830 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1831 _flag_k = FK_CMP; 1832 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 1833 L_3607C816: 1834 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 1835 L_3607C819: 1836 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 1837 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 1838 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 1839 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 1840 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1841 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1842 _flag_k = FK_CMP; 1843 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 1844 L_3607C827: 1845 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 1846 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 1847 L_3607C82C: 1848 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 1849 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 1850 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1852 _flag_k = FK_CMP; 1853 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 1854 L_3607C834: 1855 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 1856 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 1857 L_3607C839: 1858 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 1859 L_3607C83B: 1860 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 1861 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 1862 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 1863 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 1864 L_3607C847: 1865 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 1866 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 1867 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 1868 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 1869 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 1870 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 1871 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 1872 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 1873 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 1874 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 1875 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 1876 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 1877 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 1878 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1880 _flag_k = FK_CMP; 1881 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 1882 L_3607C86E: 1883 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 1884 L_3607C871: 1885 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 1886 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 1887 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 1888 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 1889 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1891 _flag_k = FK_CMP; 1892 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 1893 L_3607C87F: 1894 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 1895 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 1896 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 1897 L_3607C889: 1898 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 1899 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 1900 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 1901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1902 _flag_k = FK_CMP; 1903 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 1904 L_3607C890: 1905 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 1906 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 1907 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 1908 L_3607C899: 1909 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 1910 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 1911 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 1912 L_3607C8A3: 1913 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 1914 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 1915 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 1916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1917 _flag_k = FK_NARROW(FK_CMP, 24); 1918 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 1919 L_3607C8AA: 1920 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 1921 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 1922 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 1923 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 1924 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 1925 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 1926 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 1927 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 1928 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1930 _flag_k = FK_CMP; 1931 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 1932 L_3607C8C3: 1933 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 1934 L_3607C8C6: 1935 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 1936 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 1937 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 1938 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 1939 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1940 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1941 _flag_k = FK_CMP; 1942 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 1943 L_3607C8D4: 1944 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 1945 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 1946 L_3607C8D9: 1947 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 1948 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 1949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 1950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1951 _flag_k = FK_CMP; 1952 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 1953 L_3607C8E0: 1954 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 1955 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 1956 L_3607C8E4: 1957 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 1958 L_3607C8E7: 1959 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 1960 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 1961 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 1962 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 1963 L_3607C8F1: 1964 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 1965 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 1966 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 1967 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 1968 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 1969 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 1970 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 1971 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 1972 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 1973 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 1974 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 1975 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 1976 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 1977 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1978 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1979 _flag_k = FK_CMP; 1980 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 1981 L_3607C917: 1982 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 1983 L_3607C91A: 1984 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 1985 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 1986 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 1987 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 1988 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 1989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1990 _flag_k = FK_CMP; 1991 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 1992 L_3607C928: 1993 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 1994 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 1995 L_3607C92D: 1996 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 1997 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 1998 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2000 _flag_k = FK_CMP; 2001 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 2002 L_3607C935: 2003 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 2004 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 2005 L_3607C93A: 2006 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 2007 L_3607C93C: 2008 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 2009 L_3607C93F: 2010 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 2011 L_3607C942: 2012 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 2013 L_3607C945: 2014 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 2015 PUSH32(esp, edx); /* 0x3607C948: push edx */ 2016 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 2017 RECOMP_FLAGS_IN(); 2018 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 2019 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 2020 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2021 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2022 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 2023 _flag_k = FK_ADD; 2024 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2025 eax = eax - 1; /* 0x3607C957: dec eax */ 2026 _flag_k = FK_DEC; 2027 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 2028 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 2029 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 2030 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 2031 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 2032 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 2033 esp = ebp; /* 0x3607C963: mov esp, ebp */ 2034 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 2035 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 2036 RECOMP_REGS_OUT(); 2037 } 2038 2039 void sub_3607C681(void) { 2040 int _fpu_cmp = 0; 2041 uint32_t _cf = 0; 2042 int _df = 1; 2043 uint32_t _flag_k = FK_NONE; 2044 uint32_t _flag_a = 0, _flag_b = 0; 2045 uint32_t _itail_tgt = 0; 2046 RECOMP_REGS_LOCALS 2047 RECOMP_ENTER(0x3607C681u); 2048 2049 L_3607C681: 2050 ebx = MEM32(edi + 0x4); /* 0x3607C681: mov ebx, dword ptr [edi + 4] */ 2051 /* cmp MEM32(ebx), esi */ /* 0x3607C684: cmp dword ptr [ebx], esi */ 2052 _flag_a = (uint32_t)(MEM32(ebx)); _flag_b = (uint32_t)(esi); 2053 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2054 _flag_k = FK_CMP; 2055 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6AB; /* 0x3607C686: jne 0x3607c6ab */ 2056 L_3607C688: 2057 ecx = MEM32(esi + 0x8); /* 0x3607C688: mov ecx, dword ptr [esi + 8] */ 2058 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3607C68B: cmp ecx, dword ptr [edi + 8] */ 2059 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2060 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2061 _flag_k = FK_CMP; 2062 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C695; /* 0x3607C68E: jne 0x3607c695 */ 2063 L_3607C690: 2064 edx = MEM32(esi + 0x4); /* 0x3607C690: mov edx, dword ptr [esi + 4] */ 2065 goto L_3607C6A9; /* 0x3607C693: jmp 0x3607c6a9 */ 2066 L_3607C695: 2067 ecx = MEM32(eax); /* 0x3607C695: mov ecx, dword ptr [eax] */ 2068 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C697: cmp byte ptr [ecx + 0x29], 0 */ 2069 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 2070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2071 _flag_k = FK_NARROW(FK_CMP, 24); 2072 edx = eax; /* 0x3607C69B: mov edx, eax */ 2073 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6A9; /* 0x3607C69D: jne 0x3607c6a9 */ 2074 L_3607C69F: 2075 edx = ecx; /* 0x3607C69F: mov edx, ecx */ 2076 ecx = MEM32(edx); /* 0x3607C6A1: mov ecx, dword ptr [edx] */ 2077 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6A3: cmp byte ptr [ecx + 0x29], 0 */ 2078 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 2079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2080 _flag_k = FK_NARROW(FK_CMP, 24); 2081 RECOMP_BACKEDGE(); 2082 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C69F; /* 0x3607C6A7: je 0x3607c69f */ 2083 L_3607C6A9: 2084 MEM32(ebx) = edx; /* 0x3607C6A9: mov dword ptr [ebx], edx */ 2085 L_3607C6AB: 2086 ebx = MEM32(edi + 0x4); /* 0x3607C6AB: mov ebx, dword ptr [edi + 4] */ 2087 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3607C6AE: cmp dword ptr [ebx + 8], esi */ 2088 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 2089 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2090 _flag_k = FK_CMP; 2091 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6D8; /* 0x3607C6B1: jne 0x3607c6d8 */ 2092 L_3607C6B3: 2093 ecx = MEM32(esi); /* 0x3607C6B3: mov ecx, dword ptr [esi] */ 2094 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3607C6B5: cmp ecx, dword ptr [edi + 8] */ 2095 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2097 _flag_k = FK_CMP; 2098 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6BF; /* 0x3607C6B8: jne 0x3607c6bf */ 2099 L_3607C6BA: 2100 edx = MEM32(esi + 0x4); /* 0x3607C6BA: mov edx, dword ptr [esi + 4] */ 2101 goto L_3607C6D5; /* 0x3607C6BD: jmp 0x3607c6d5 */ 2102 L_3607C6BF: 2103 ecx = MEM32(eax + 0x8); /* 0x3607C6BF: mov ecx, dword ptr [eax + 8] */ 2104 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6C2: cmp byte ptr [ecx + 0x29], 0 */ 2105 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 2106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2107 _flag_k = FK_NARROW(FK_CMP, 24); 2108 edx = eax; /* 0x3607C6C6: mov edx, eax */ 2109 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6D5; /* 0x3607C6C8: jne 0x3607c6d5 */ 2110 L_3607C6CA: 2111 edx = ecx; /* 0x3607C6CA: mov edx, ecx */ 2112 ecx = MEM32(edx + 0x8); /* 0x3607C6CC: mov ecx, dword ptr [edx + 8] */ 2113 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6CF: cmp byte ptr [ecx + 0x29], 0 */ 2114 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 2115 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2116 _flag_k = FK_NARROW(FK_CMP, 24); 2117 RECOMP_BACKEDGE(); 2118 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C6CA; /* 0x3607C6D3: je 0x3607c6ca */ 2119 L_3607C6D5: 2120 MEM32(ebx + 0x8) = edx; /* 0x3607C6D5: mov dword ptr [ebx + 8], edx */ 2121 L_3607C6D8: 2122 ecx = MEM32(ebp + (-0x4)); /* 0x3607C6D8: mov ecx, dword ptr [ebp - 4] */ 2123 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C6DB: mov dl, byte ptr [ecx + 0x28] */ 2124 SET_LO8(ebx, 1); /* 0x3607C6DE: mov bl, 1 */ 2125 /* cmp LO8(edx), LO8(ebx) */ /* 0x3607C6E0: cmp dl, bl */ 2126 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2128 _flag_k = FK_NARROW(FK_CMP, 24); 2129 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C945; /* 0x3607C6E2: jne 0x3607c945 */ 2130 L_3607C6E8: 2131 edx = MEM32(edi + 0x4); /* 0x3607C6E8: mov edx, dword ptr [edi + 4] */ 2132 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3607C6EB: cmp eax, dword ptr [edx + 4] */ 2133 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2134 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2135 _flag_k = FK_CMP; 2136 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6EE: je 0x3607c942 */ 2137 L_3607C6F4: 2138 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 2139 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2141 _flag_k = FK_NARROW(FK_CMP, 24); 2142 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 2143 L_3607C6FD: 2144 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 2145 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 2146 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 2147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2148 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2149 _flag_k = FK_CMP; 2150 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 2151 L_3607C706: 2152 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 2153 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 2154 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 2155 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2156 _cf = 0; 2157 _flag_k = FK_NARROW(FK_TEST, 24); 2158 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 2159 L_3607C710: 2160 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 2161 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 2162 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 2163 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 2164 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 2165 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 2166 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 2167 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 2168 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 2169 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2170 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2171 _flag_k = FK_CMP; 2172 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 2173 L_3607C72C: 2174 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 2175 L_3607C72F: 2176 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 2177 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 2178 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 2179 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 2180 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2182 _flag_k = FK_CMP; 2183 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 2184 L_3607C73D: 2185 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 2186 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 2187 L_3607C742: 2188 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 2189 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 2190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2191 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2192 _flag_k = FK_CMP; 2193 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 2194 L_3607C749: 2195 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 2196 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 2197 L_3607C74D: 2198 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 2199 L_3607C750: 2200 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 2201 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 2202 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 2203 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 2204 L_3607C75B: 2205 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 2206 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 2207 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2209 _flag_k = FK_NARROW(FK_CMP, 24); 2210 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 2211 L_3607C766: 2212 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 2213 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 2214 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2215 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2216 _flag_k = FK_NARROW(FK_CMP, 24); 2217 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 2218 L_3607C772: 2219 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 2220 L_3607C774: 2221 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 2222 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 2223 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2224 _cf = 0; 2225 _flag_k = FK_NARROW(FK_TEST, 24); 2226 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 2227 L_3607C77B: 2228 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 2229 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 2230 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 2231 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 2232 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 2233 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 2234 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 2235 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 2236 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 2237 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2238 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2239 _flag_k = FK_CMP; 2240 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 2241 L_3607C797: 2242 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 2243 L_3607C79A: 2244 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 2245 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 2246 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 2247 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 2248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2250 _flag_k = FK_CMP; 2251 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 2252 L_3607C7A8: 2253 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 2254 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 2255 L_3607C7AD: 2256 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 2257 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 2258 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2259 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2260 _flag_k = FK_CMP; 2261 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 2262 L_3607C7B5: 2263 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 2264 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 2265 L_3607C7BA: 2266 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 2267 L_3607C7BC: 2268 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 2269 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 2270 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 2271 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 2272 L_3607C7C7: 2273 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 2274 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 2275 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2277 _flag_k = FK_NARROW(FK_CMP, 24); 2278 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 2279 L_3607C7D3: 2280 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 2281 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 2282 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2284 _flag_k = FK_NARROW(FK_CMP, 24); 2285 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 2286 L_3607C7DE: 2287 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 2288 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 2289 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 2290 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 2291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2293 _flag_k = FK_CMP; 2294 RECOMP_BACKEDGE(); 2295 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 2296 L_3607C7F1: 2297 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 2298 L_3607C7F6: 2299 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 2300 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 2301 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2303 _flag_k = FK_NARROW(FK_CMP, 24); 2304 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 2305 L_3607C7FE: 2306 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 2307 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 2308 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 2309 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 2310 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 2311 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 2312 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 2313 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 2314 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2316 _flag_k = FK_CMP; 2317 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 2318 L_3607C816: 2319 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 2320 L_3607C819: 2321 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 2322 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 2323 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 2324 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 2325 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2327 _flag_k = FK_CMP; 2328 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 2329 L_3607C827: 2330 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 2331 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 2332 L_3607C82C: 2333 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 2334 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 2335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2337 _flag_k = FK_CMP; 2338 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 2339 L_3607C834: 2340 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 2341 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 2342 L_3607C839: 2343 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 2344 L_3607C83B: 2345 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 2346 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 2347 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 2348 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 2349 L_3607C847: 2350 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 2351 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 2352 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 2353 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 2354 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 2355 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 2356 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 2357 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 2358 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 2359 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 2360 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 2361 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 2362 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 2363 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2364 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2365 _flag_k = FK_CMP; 2366 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 2367 L_3607C86E: 2368 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 2369 L_3607C871: 2370 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 2371 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 2372 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 2373 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 2374 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2375 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2376 _flag_k = FK_CMP; 2377 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 2378 L_3607C87F: 2379 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 2380 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 2381 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 2382 L_3607C889: 2383 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 2384 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 2385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2387 _flag_k = FK_CMP; 2388 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 2389 L_3607C890: 2390 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 2391 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 2392 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 2393 L_3607C899: 2394 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 2395 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 2396 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 2397 L_3607C8A3: 2398 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 2399 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 2400 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2402 _flag_k = FK_NARROW(FK_CMP, 24); 2403 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 2404 L_3607C8AA: 2405 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 2406 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 2407 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 2408 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 2409 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 2410 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 2411 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 2412 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 2413 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2414 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2415 _flag_k = FK_CMP; 2416 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 2417 L_3607C8C3: 2418 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 2419 L_3607C8C6: 2420 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 2421 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 2422 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 2423 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 2424 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2426 _flag_k = FK_CMP; 2427 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 2428 L_3607C8D4: 2429 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 2430 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 2431 L_3607C8D9: 2432 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 2433 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 2434 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2436 _flag_k = FK_CMP; 2437 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 2438 L_3607C8E0: 2439 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 2440 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 2441 L_3607C8E4: 2442 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 2443 L_3607C8E7: 2444 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 2445 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 2446 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 2447 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 2448 L_3607C8F1: 2449 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 2450 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 2451 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 2452 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 2453 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 2454 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 2455 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 2456 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 2457 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 2458 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 2459 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 2460 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 2461 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 2462 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2463 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2464 _flag_k = FK_CMP; 2465 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 2466 L_3607C917: 2467 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 2468 L_3607C91A: 2469 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 2470 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 2471 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 2472 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 2473 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2474 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2475 _flag_k = FK_CMP; 2476 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 2477 L_3607C928: 2478 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 2479 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 2480 L_3607C92D: 2481 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 2482 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 2483 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2485 _flag_k = FK_CMP; 2486 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 2487 L_3607C935: 2488 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 2489 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 2490 L_3607C93A: 2491 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 2492 L_3607C93C: 2493 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 2494 L_3607C93F: 2495 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 2496 L_3607C942: 2497 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 2498 L_3607C945: 2499 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 2500 PUSH32(esp, edx); /* 0x3607C948: push edx */ 2501 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 2502 RECOMP_FLAGS_IN(); 2503 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 2504 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 2505 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2506 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2507 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 2508 _flag_k = FK_ADD; 2509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2510 eax = eax - 1; /* 0x3607C957: dec eax */ 2511 _flag_k = FK_DEC; 2512 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 2513 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 2514 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 2515 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 2516 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 2517 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 2518 esp = ebp; /* 0x3607C963: mov esp, ebp */ 2519 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 2520 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 2521 RECOMP_REGS_OUT(); 2522 } 2523 2524 void sub_3607C6A9(void) { 2525 int _fpu_cmp = 0; 2526 uint32_t _cf = 0; 2527 int _df = 1; 2528 uint32_t _flag_k = FK_NONE; 2529 uint32_t _flag_a = 0, _flag_b = 0; 2530 uint32_t _itail_tgt = 0; 2531 RECOMP_REGS_LOCALS 2532 RECOMP_ENTER(0x3607C6A9u); 2533 2534 L_3607C6A9: 2535 MEM32(ebx) = edx; /* 0x3607C6A9: mov dword ptr [ebx], edx */ 2536 ebx = MEM32(edi + 0x4); /* 0x3607C6AB: mov ebx, dword ptr [edi + 4] */ 2537 /* cmp MEM32(ebx + 0x8), esi */ /* 0x3607C6AE: cmp dword ptr [ebx + 8], esi */ 2538 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(esi); 2539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2540 _flag_k = FK_CMP; 2541 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6D8; /* 0x3607C6B1: jne 0x3607c6d8 */ 2542 L_3607C6B3: 2543 ecx = MEM32(esi); /* 0x3607C6B3: mov ecx, dword ptr [esi] */ 2544 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3607C6B5: cmp ecx, dword ptr [edi + 8] */ 2545 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2547 _flag_k = FK_CMP; 2548 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6BF; /* 0x3607C6B8: jne 0x3607c6bf */ 2549 L_3607C6BA: 2550 edx = MEM32(esi + 0x4); /* 0x3607C6BA: mov edx, dword ptr [esi + 4] */ 2551 goto L_3607C6D5; /* 0x3607C6BD: jmp 0x3607c6d5 */ 2552 L_3607C6BF: 2553 ecx = MEM32(eax + 0x8); /* 0x3607C6BF: mov ecx, dword ptr [eax + 8] */ 2554 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6C2: cmp byte ptr [ecx + 0x29], 0 */ 2555 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 2556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2557 _flag_k = FK_NARROW(FK_CMP, 24); 2558 edx = eax; /* 0x3607C6C6: mov edx, eax */ 2559 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6D5; /* 0x3607C6C8: jne 0x3607c6d5 */ 2560 L_3607C6CA: 2561 edx = ecx; /* 0x3607C6CA: mov edx, ecx */ 2562 ecx = MEM32(edx + 0x8); /* 0x3607C6CC: mov ecx, dword ptr [edx + 8] */ 2563 /* cmp MEM8(ecx + 0x29), 0 */ /* 0x3607C6CF: cmp byte ptr [ecx + 0x29], 0 */ 2564 _flag_a = (uint32_t)(MEM8(ecx + 0x29)) << 24; _flag_b = (uint32_t)(0) << 24; 2565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2566 _flag_k = FK_NARROW(FK_CMP, 24); 2567 RECOMP_BACKEDGE(); 2568 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C6CA; /* 0x3607C6D3: je 0x3607c6ca */ 2569 L_3607C6D5: 2570 MEM32(ebx + 0x8) = edx; /* 0x3607C6D5: mov dword ptr [ebx + 8], edx */ 2571 L_3607C6D8: 2572 ecx = MEM32(ebp + (-0x4)); /* 0x3607C6D8: mov ecx, dword ptr [ebp - 4] */ 2573 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C6DB: mov dl, byte ptr [ecx + 0x28] */ 2574 SET_LO8(ebx, 1); /* 0x3607C6DE: mov bl, 1 */ 2575 /* cmp LO8(edx), LO8(ebx) */ /* 0x3607C6E0: cmp dl, bl */ 2576 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2577 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2578 _flag_k = FK_NARROW(FK_CMP, 24); 2579 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C945; /* 0x3607C6E2: jne 0x3607c945 */ 2580 L_3607C6E8: 2581 edx = MEM32(edi + 0x4); /* 0x3607C6E8: mov edx, dword ptr [edi + 4] */ 2582 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3607C6EB: cmp eax, dword ptr [edx + 4] */ 2583 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2585 _flag_k = FK_CMP; 2586 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6EE: je 0x3607c942 */ 2587 L_3607C6F4: 2588 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 2589 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2591 _flag_k = FK_NARROW(FK_CMP, 24); 2592 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 2593 L_3607C6FD: 2594 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 2595 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 2596 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 2597 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2599 _flag_k = FK_CMP; 2600 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 2601 L_3607C706: 2602 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 2603 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 2604 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 2605 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2606 _cf = 0; 2607 _flag_k = FK_NARROW(FK_TEST, 24); 2608 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 2609 L_3607C710: 2610 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 2611 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 2612 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 2613 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 2614 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 2615 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 2616 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 2617 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 2618 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 2619 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2621 _flag_k = FK_CMP; 2622 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 2623 L_3607C72C: 2624 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 2625 L_3607C72F: 2626 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 2627 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 2628 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 2629 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 2630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2632 _flag_k = FK_CMP; 2633 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 2634 L_3607C73D: 2635 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 2636 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 2637 L_3607C742: 2638 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 2639 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 2640 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2641 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2642 _flag_k = FK_CMP; 2643 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 2644 L_3607C749: 2645 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 2646 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 2647 L_3607C74D: 2648 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 2649 L_3607C750: 2650 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 2651 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 2652 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 2653 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 2654 L_3607C75B: 2655 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 2656 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 2657 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2659 _flag_k = FK_NARROW(FK_CMP, 24); 2660 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 2661 L_3607C766: 2662 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 2663 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 2664 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2665 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2666 _flag_k = FK_NARROW(FK_CMP, 24); 2667 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 2668 L_3607C772: 2669 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 2670 L_3607C774: 2671 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 2672 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 2673 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2674 _cf = 0; 2675 _flag_k = FK_NARROW(FK_TEST, 24); 2676 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 2677 L_3607C77B: 2678 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 2679 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 2680 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 2681 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 2682 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 2683 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 2684 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 2685 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 2686 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 2687 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2688 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2689 _flag_k = FK_CMP; 2690 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 2691 L_3607C797: 2692 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 2693 L_3607C79A: 2694 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 2695 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 2696 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 2697 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 2698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2699 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2700 _flag_k = FK_CMP; 2701 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 2702 L_3607C7A8: 2703 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 2704 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 2705 L_3607C7AD: 2706 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 2707 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 2708 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2710 _flag_k = FK_CMP; 2711 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 2712 L_3607C7B5: 2713 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 2714 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 2715 L_3607C7BA: 2716 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 2717 L_3607C7BC: 2718 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 2719 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 2720 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 2721 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 2722 L_3607C7C7: 2723 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 2724 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 2725 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2727 _flag_k = FK_NARROW(FK_CMP, 24); 2728 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 2729 L_3607C7D3: 2730 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 2731 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 2732 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2734 _flag_k = FK_NARROW(FK_CMP, 24); 2735 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 2736 L_3607C7DE: 2737 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 2738 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 2739 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 2740 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 2741 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2743 _flag_k = FK_CMP; 2744 RECOMP_BACKEDGE(); 2745 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 2746 L_3607C7F1: 2747 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 2748 L_3607C7F6: 2749 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 2750 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 2751 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2752 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2753 _flag_k = FK_NARROW(FK_CMP, 24); 2754 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 2755 L_3607C7FE: 2756 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 2757 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 2758 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 2759 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 2760 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 2761 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 2762 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 2763 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 2764 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2765 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2766 _flag_k = FK_CMP; 2767 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 2768 L_3607C816: 2769 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 2770 L_3607C819: 2771 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 2772 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 2773 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 2774 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 2775 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2777 _flag_k = FK_CMP; 2778 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 2779 L_3607C827: 2780 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 2781 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 2782 L_3607C82C: 2783 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 2784 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 2785 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2787 _flag_k = FK_CMP; 2788 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 2789 L_3607C834: 2790 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 2791 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 2792 L_3607C839: 2793 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 2794 L_3607C83B: 2795 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 2796 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 2797 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 2798 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 2799 L_3607C847: 2800 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 2801 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 2802 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 2803 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 2804 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 2805 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 2806 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 2807 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 2808 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 2809 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 2810 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 2811 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 2812 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 2813 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2815 _flag_k = FK_CMP; 2816 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 2817 L_3607C86E: 2818 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 2819 L_3607C871: 2820 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 2821 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 2822 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 2823 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 2824 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2826 _flag_k = FK_CMP; 2827 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 2828 L_3607C87F: 2829 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 2830 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 2831 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 2832 L_3607C889: 2833 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 2834 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 2835 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2837 _flag_k = FK_CMP; 2838 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 2839 L_3607C890: 2840 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 2841 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 2842 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 2843 L_3607C899: 2844 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 2845 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 2846 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 2847 L_3607C8A3: 2848 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 2849 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 2850 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2852 _flag_k = FK_NARROW(FK_CMP, 24); 2853 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 2854 L_3607C8AA: 2855 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 2856 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 2857 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 2858 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 2859 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 2860 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 2861 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 2862 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 2863 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2865 _flag_k = FK_CMP; 2866 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 2867 L_3607C8C3: 2868 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 2869 L_3607C8C6: 2870 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 2871 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 2872 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 2873 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 2874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2876 _flag_k = FK_CMP; 2877 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 2878 L_3607C8D4: 2879 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 2880 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 2881 L_3607C8D9: 2882 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 2883 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 2884 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 2885 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2886 _flag_k = FK_CMP; 2887 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 2888 L_3607C8E0: 2889 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 2890 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 2891 L_3607C8E4: 2892 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 2893 L_3607C8E7: 2894 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 2895 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 2896 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 2897 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 2898 L_3607C8F1: 2899 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 2900 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 2901 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 2902 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 2903 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 2904 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 2905 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 2906 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 2907 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 2908 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 2909 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 2910 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 2911 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 2912 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2913 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2914 _flag_k = FK_CMP; 2915 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 2916 L_3607C917: 2917 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 2918 L_3607C91A: 2919 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 2920 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 2921 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 2922 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 2923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 2924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2925 _flag_k = FK_CMP; 2926 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 2927 L_3607C928: 2928 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 2929 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 2930 L_3607C92D: 2931 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 2932 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 2933 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2935 _flag_k = FK_CMP; 2936 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 2937 L_3607C935: 2938 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 2939 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 2940 L_3607C93A: 2941 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 2942 L_3607C93C: 2943 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 2944 L_3607C93F: 2945 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 2946 L_3607C942: 2947 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 2948 L_3607C945: 2949 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 2950 PUSH32(esp, edx); /* 0x3607C948: push edx */ 2951 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 2952 RECOMP_FLAGS_IN(); 2953 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 2954 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 2955 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2956 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2957 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 2958 _flag_k = FK_ADD; 2959 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2960 eax = eax - 1; /* 0x3607C957: dec eax */ 2961 _flag_k = FK_DEC; 2962 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 2963 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 2964 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 2965 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 2966 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 2967 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 2968 esp = ebp; /* 0x3607C963: mov esp, ebp */ 2969 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 2970 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 2971 RECOMP_REGS_OUT(); 2972 } 2973 2974 void sub_3607C6D5(void) { 2975 int _fpu_cmp = 0; 2976 uint32_t _cf = 0; 2977 int _df = 1; 2978 uint32_t _flag_k = FK_NONE; 2979 uint32_t _flag_a = 0, _flag_b = 0; 2980 uint32_t _itail_tgt = 0; 2981 RECOMP_REGS_LOCALS 2982 RECOMP_ENTER(0x3607C6D5u); 2983 2984 L_3607C6D5: 2985 MEM32(ebx + 0x8) = edx; /* 0x3607C6D5: mov dword ptr [ebx + 8], edx */ 2986 ecx = MEM32(ebp + (-0x4)); /* 0x3607C6D8: mov ecx, dword ptr [ebp - 4] */ 2987 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C6DB: mov dl, byte ptr [ecx + 0x28] */ 2988 SET_LO8(ebx, 1); /* 0x3607C6DE: mov bl, 1 */ 2989 /* cmp LO8(edx), LO8(ebx) */ /* 0x3607C6E0: cmp dl, bl */ 2990 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 2991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2992 _flag_k = FK_NARROW(FK_CMP, 24); 2993 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C945; /* 0x3607C6E2: jne 0x3607c945 */ 2994 L_3607C6E8: 2995 edx = MEM32(edi + 0x4); /* 0x3607C6E8: mov edx, dword ptr [edi + 4] */ 2996 /* cmp eax, MEM32(edx + 0x4) */ /* 0x3607C6EB: cmp eax, dword ptr [edx + 4] */ 2997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2999 _flag_k = FK_CMP; 3000 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6EE: je 0x3607c942 */ 3001 L_3607C6F4: 3002 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 3003 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3004 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3005 _flag_k = FK_NARROW(FK_CMP, 24); 3006 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 3007 L_3607C6FD: 3008 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 3009 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 3010 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 3011 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3013 _flag_k = FK_CMP; 3014 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 3015 L_3607C706: 3016 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 3017 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 3018 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 3019 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3020 _cf = 0; 3021 _flag_k = FK_NARROW(FK_TEST, 24); 3022 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 3023 L_3607C710: 3024 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 3025 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 3026 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 3027 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 3028 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 3029 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 3030 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 3031 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 3032 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 3033 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3034 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3035 _flag_k = FK_CMP; 3036 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 3037 L_3607C72C: 3038 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 3039 L_3607C72F: 3040 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 3041 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 3042 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 3043 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 3044 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3045 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3046 _flag_k = FK_CMP; 3047 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 3048 L_3607C73D: 3049 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 3050 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 3051 L_3607C742: 3052 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 3053 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 3054 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3055 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3056 _flag_k = FK_CMP; 3057 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 3058 L_3607C749: 3059 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 3060 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 3061 L_3607C74D: 3062 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 3063 L_3607C750: 3064 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 3065 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 3066 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 3067 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 3068 L_3607C75B: 3069 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 3070 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 3071 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3073 _flag_k = FK_NARROW(FK_CMP, 24); 3074 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 3075 L_3607C766: 3076 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 3077 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 3078 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3080 _flag_k = FK_NARROW(FK_CMP, 24); 3081 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 3082 L_3607C772: 3083 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 3084 L_3607C774: 3085 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 3086 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 3087 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3088 _cf = 0; 3089 _flag_k = FK_NARROW(FK_TEST, 24); 3090 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 3091 L_3607C77B: 3092 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 3093 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 3094 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 3095 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 3096 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 3097 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 3098 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 3099 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 3100 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 3101 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3102 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3103 _flag_k = FK_CMP; 3104 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 3105 L_3607C797: 3106 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 3107 L_3607C79A: 3108 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 3109 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 3110 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 3111 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 3112 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3113 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3114 _flag_k = FK_CMP; 3115 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 3116 L_3607C7A8: 3117 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 3118 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 3119 L_3607C7AD: 3120 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 3121 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 3122 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3124 _flag_k = FK_CMP; 3125 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 3126 L_3607C7B5: 3127 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 3128 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 3129 L_3607C7BA: 3130 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 3131 L_3607C7BC: 3132 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 3133 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 3134 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 3135 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 3136 L_3607C7C7: 3137 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 3138 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 3139 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3140 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3141 _flag_k = FK_NARROW(FK_CMP, 24); 3142 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 3143 L_3607C7D3: 3144 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 3145 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 3146 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3148 _flag_k = FK_NARROW(FK_CMP, 24); 3149 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 3150 L_3607C7DE: 3151 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 3152 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 3153 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 3154 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 3155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3157 _flag_k = FK_CMP; 3158 RECOMP_BACKEDGE(); 3159 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 3160 L_3607C7F1: 3161 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 3162 L_3607C7F6: 3163 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 3164 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 3165 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3167 _flag_k = FK_NARROW(FK_CMP, 24); 3168 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 3169 L_3607C7FE: 3170 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 3171 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 3172 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 3173 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 3174 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 3175 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 3176 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 3177 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 3178 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3179 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3180 _flag_k = FK_CMP; 3181 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 3182 L_3607C816: 3183 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 3184 L_3607C819: 3185 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 3186 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 3187 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 3188 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 3189 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3191 _flag_k = FK_CMP; 3192 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 3193 L_3607C827: 3194 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 3195 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 3196 L_3607C82C: 3197 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 3198 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 3199 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3200 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3201 _flag_k = FK_CMP; 3202 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 3203 L_3607C834: 3204 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 3205 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 3206 L_3607C839: 3207 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 3208 L_3607C83B: 3209 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 3210 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 3211 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 3212 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 3213 L_3607C847: 3214 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 3215 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 3216 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 3217 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 3218 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 3219 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 3220 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 3221 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 3222 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 3223 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 3224 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 3225 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 3226 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 3227 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3228 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3229 _flag_k = FK_CMP; 3230 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 3231 L_3607C86E: 3232 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 3233 L_3607C871: 3234 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 3235 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 3236 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 3237 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 3238 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3239 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3240 _flag_k = FK_CMP; 3241 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 3242 L_3607C87F: 3243 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 3244 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 3245 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 3246 L_3607C889: 3247 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 3248 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 3249 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3251 _flag_k = FK_CMP; 3252 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 3253 L_3607C890: 3254 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 3255 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 3256 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 3257 L_3607C899: 3258 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 3259 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 3260 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 3261 L_3607C8A3: 3262 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 3263 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 3264 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3266 _flag_k = FK_NARROW(FK_CMP, 24); 3267 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 3268 L_3607C8AA: 3269 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 3270 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 3271 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 3272 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 3273 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 3274 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 3275 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 3276 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 3277 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3279 _flag_k = FK_CMP; 3280 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 3281 L_3607C8C3: 3282 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 3283 L_3607C8C6: 3284 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 3285 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 3286 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 3287 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 3288 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3289 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3290 _flag_k = FK_CMP; 3291 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 3292 L_3607C8D4: 3293 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 3294 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 3295 L_3607C8D9: 3296 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 3297 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 3298 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3300 _flag_k = FK_CMP; 3301 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 3302 L_3607C8E0: 3303 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 3304 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 3305 L_3607C8E4: 3306 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 3307 L_3607C8E7: 3308 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 3309 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 3310 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 3311 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 3312 L_3607C8F1: 3313 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 3314 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 3315 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 3316 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 3317 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 3318 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 3319 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 3320 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 3321 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 3322 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 3323 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 3324 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 3325 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 3326 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3328 _flag_k = FK_CMP; 3329 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 3330 L_3607C917: 3331 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 3332 L_3607C91A: 3333 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 3334 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 3335 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 3336 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 3337 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3339 _flag_k = FK_CMP; 3340 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 3341 L_3607C928: 3342 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 3343 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 3344 L_3607C92D: 3345 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 3346 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 3347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3349 _flag_k = FK_CMP; 3350 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 3351 L_3607C935: 3352 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 3353 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 3354 L_3607C93A: 3355 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 3356 L_3607C93C: 3357 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 3358 L_3607C93F: 3359 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 3360 L_3607C942: 3361 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 3362 L_3607C945: 3363 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 3364 PUSH32(esp, edx); /* 0x3607C948: push edx */ 3365 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 3366 RECOMP_FLAGS_IN(); 3367 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 3368 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 3369 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3370 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3371 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 3372 _flag_k = FK_ADD; 3373 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3374 eax = eax - 1; /* 0x3607C957: dec eax */ 3375 _flag_k = FK_DEC; 3376 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 3377 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 3378 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 3379 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 3380 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 3381 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 3382 esp = ebp; /* 0x3607C963: mov esp, ebp */ 3383 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 3384 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 3385 RECOMP_REGS_OUT(); 3386 } 3387 3388 void sub_3607C6F4(void) { 3389 int _fpu_cmp = 0; 3390 uint32_t _cf = 0; 3391 int _df = 1; 3392 uint32_t _flag_k = FK_NONE; 3393 uint32_t _flag_a = 0, _flag_b = 0; 3394 uint32_t _itail_tgt = 0; 3395 RECOMP_REGS_LOCALS 3396 RECOMP_ENTER(0x3607C6F4u); 3397 3398 L_3607C6F4: 3399 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 3400 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3402 _flag_k = FK_NARROW(FK_CMP, 24); 3403 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 3404 L_3607C6FD: 3405 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 3406 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 3407 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 3408 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3409 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3410 _flag_k = FK_CMP; 3411 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 3412 L_3607C706: 3413 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 3414 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 3415 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 3416 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3417 _cf = 0; 3418 _flag_k = FK_NARROW(FK_TEST, 24); 3419 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 3420 L_3607C710: 3421 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 3422 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 3423 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 3424 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 3425 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 3426 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 3427 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 3428 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 3429 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 3430 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3432 _flag_k = FK_CMP; 3433 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 3434 L_3607C72C: 3435 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 3436 L_3607C72F: 3437 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 3438 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 3439 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 3440 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 3441 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3442 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3443 _flag_k = FK_CMP; 3444 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 3445 L_3607C73D: 3446 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 3447 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 3448 L_3607C742: 3449 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 3450 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 3451 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3453 _flag_k = FK_CMP; 3454 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 3455 L_3607C749: 3456 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 3457 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 3458 L_3607C74D: 3459 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 3460 L_3607C750: 3461 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 3462 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 3463 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 3464 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 3465 L_3607C75B: 3466 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 3467 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 3468 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3470 _flag_k = FK_NARROW(FK_CMP, 24); 3471 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 3472 L_3607C766: 3473 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 3474 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 3475 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3476 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3477 _flag_k = FK_NARROW(FK_CMP, 24); 3478 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 3479 L_3607C772: 3480 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 3481 L_3607C774: 3482 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 3483 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 3484 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3485 _cf = 0; 3486 _flag_k = FK_NARROW(FK_TEST, 24); 3487 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 3488 L_3607C77B: 3489 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 3490 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 3491 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 3492 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 3493 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 3494 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 3495 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 3496 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 3497 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 3498 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3499 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3500 _flag_k = FK_CMP; 3501 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 3502 L_3607C797: 3503 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 3504 L_3607C79A: 3505 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 3506 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 3507 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 3508 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 3509 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3511 _flag_k = FK_CMP; 3512 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 3513 L_3607C7A8: 3514 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 3515 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 3516 L_3607C7AD: 3517 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 3518 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 3519 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3520 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3521 _flag_k = FK_CMP; 3522 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 3523 L_3607C7B5: 3524 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 3525 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 3526 L_3607C7BA: 3527 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 3528 L_3607C7BC: 3529 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 3530 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 3531 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 3532 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 3533 L_3607C7C7: 3534 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 3535 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 3536 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3538 _flag_k = FK_NARROW(FK_CMP, 24); 3539 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 3540 L_3607C7D3: 3541 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 3542 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 3543 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3545 _flag_k = FK_NARROW(FK_CMP, 24); 3546 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 3547 L_3607C7DE: 3548 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 3549 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 3550 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 3551 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 3552 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3554 _flag_k = FK_CMP; 3555 RECOMP_BACKEDGE(); 3556 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 3557 L_3607C7F1: 3558 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 3559 L_3607C7F6: 3560 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 3561 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 3562 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3563 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3564 _flag_k = FK_NARROW(FK_CMP, 24); 3565 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 3566 L_3607C7FE: 3567 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 3568 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 3569 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 3570 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 3571 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 3572 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 3573 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 3574 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 3575 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3577 _flag_k = FK_CMP; 3578 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 3579 L_3607C816: 3580 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 3581 L_3607C819: 3582 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 3583 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 3584 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 3585 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 3586 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3587 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3588 _flag_k = FK_CMP; 3589 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 3590 L_3607C827: 3591 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 3592 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 3593 L_3607C82C: 3594 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 3595 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 3596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3598 _flag_k = FK_CMP; 3599 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 3600 L_3607C834: 3601 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 3602 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 3603 L_3607C839: 3604 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 3605 L_3607C83B: 3606 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 3607 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 3608 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 3609 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 3610 L_3607C847: 3611 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 3612 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 3613 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 3614 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 3615 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 3616 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 3617 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 3618 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 3619 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 3620 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 3621 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 3622 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 3623 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 3624 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3625 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3626 _flag_k = FK_CMP; 3627 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 3628 L_3607C86E: 3629 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 3630 L_3607C871: 3631 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 3632 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 3633 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 3634 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 3635 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3637 _flag_k = FK_CMP; 3638 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 3639 L_3607C87F: 3640 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 3641 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 3642 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 3643 L_3607C889: 3644 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 3645 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 3646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3648 _flag_k = FK_CMP; 3649 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 3650 L_3607C890: 3651 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 3652 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 3653 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 3654 L_3607C899: 3655 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 3656 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 3657 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 3658 L_3607C8A3: 3659 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 3660 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 3661 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3663 _flag_k = FK_NARROW(FK_CMP, 24); 3664 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 3665 L_3607C8AA: 3666 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 3667 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 3668 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 3669 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 3670 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 3671 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 3672 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 3673 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 3674 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3676 _flag_k = FK_CMP; 3677 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 3678 L_3607C8C3: 3679 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 3680 L_3607C8C6: 3681 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 3682 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 3683 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 3684 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 3685 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3687 _flag_k = FK_CMP; 3688 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 3689 L_3607C8D4: 3690 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 3691 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 3692 L_3607C8D9: 3693 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 3694 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 3695 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3696 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3697 _flag_k = FK_CMP; 3698 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 3699 L_3607C8E0: 3700 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 3701 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 3702 L_3607C8E4: 3703 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 3704 L_3607C8E7: 3705 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 3706 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 3707 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 3708 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 3709 L_3607C8F1: 3710 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 3711 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 3712 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 3713 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 3714 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 3715 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 3716 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 3717 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 3718 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 3719 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 3720 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 3721 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 3722 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 3723 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3724 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3725 _flag_k = FK_CMP; 3726 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 3727 L_3607C917: 3728 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 3729 L_3607C91A: 3730 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 3731 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 3732 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 3733 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 3734 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3736 _flag_k = FK_CMP; 3737 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 3738 L_3607C928: 3739 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 3740 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 3741 L_3607C92D: 3742 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 3743 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 3744 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3745 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3746 _flag_k = FK_CMP; 3747 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 3748 L_3607C935: 3749 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 3750 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 3751 L_3607C93A: 3752 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 3753 L_3607C93C: 3754 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 3755 L_3607C93F: 3756 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 3757 L_3607C942: 3758 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 3759 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 3760 PUSH32(esp, edx); /* 0x3607C948: push edx */ 3761 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 3762 RECOMP_FLAGS_IN(); 3763 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 3764 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 3765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3767 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 3768 _flag_k = FK_ADD; 3769 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3770 eax = eax - 1; /* 0x3607C957: dec eax */ 3771 _flag_k = FK_DEC; 3772 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 3773 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 3774 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 3775 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 3776 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 3777 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 3778 esp = ebp; /* 0x3607C963: mov esp, ebp */ 3779 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 3780 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 3781 RECOMP_REGS_OUT(); 3782 } 3783 3784 void sub_3607C750(void) { 3785 int _fpu_cmp = 0; 3786 uint32_t _cf = 0; 3787 int _df = 1; 3788 uint32_t _flag_k = FK_NONE; 3789 uint32_t _flag_a = 0, _flag_b = 0; 3790 uint32_t _itail_tgt = 0; 3791 RECOMP_REGS_LOCALS 3792 RECOMP_ENTER(0x3607C750u); 3793 3794 goto L_3607C750; 3795 L_3607C6F4: 3796 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 3797 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3798 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3799 _flag_k = FK_NARROW(FK_CMP, 24); 3800 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 3801 L_3607C6FD: 3802 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 3803 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 3804 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 3805 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3806 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3807 _flag_k = FK_CMP; 3808 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 3809 L_3607C706: 3810 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 3811 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 3812 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 3813 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3814 _cf = 0; 3815 _flag_k = FK_NARROW(FK_TEST, 24); 3816 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 3817 L_3607C710: 3818 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 3819 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 3820 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 3821 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 3822 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 3823 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 3824 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 3825 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 3826 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 3827 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3828 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3829 _flag_k = FK_CMP; 3830 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 3831 L_3607C72C: 3832 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 3833 L_3607C72F: 3834 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 3835 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 3836 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 3837 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 3838 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3839 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3840 _flag_k = FK_CMP; 3841 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 3842 L_3607C73D: 3843 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 3844 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 3845 L_3607C742: 3846 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 3847 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 3848 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 3849 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3850 _flag_k = FK_CMP; 3851 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 3852 L_3607C749: 3853 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 3854 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 3855 L_3607C74D: 3856 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 3857 L_3607C750: 3858 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 3859 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 3860 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 3861 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 3862 L_3607C75B: 3863 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 3864 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 3865 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3867 _flag_k = FK_NARROW(FK_CMP, 24); 3868 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 3869 L_3607C766: 3870 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 3871 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 3872 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3874 _flag_k = FK_NARROW(FK_CMP, 24); 3875 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 3876 L_3607C772: 3877 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 3878 L_3607C774: 3879 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 3880 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 3881 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3882 _cf = 0; 3883 _flag_k = FK_NARROW(FK_TEST, 24); 3884 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 3885 L_3607C77B: 3886 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 3887 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 3888 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 3889 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 3890 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 3891 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 3892 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 3893 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 3894 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 3895 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3897 _flag_k = FK_CMP; 3898 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 3899 L_3607C797: 3900 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 3901 L_3607C79A: 3902 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 3903 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 3904 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 3905 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 3906 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3908 _flag_k = FK_CMP; 3909 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 3910 L_3607C7A8: 3911 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 3912 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 3913 L_3607C7AD: 3914 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 3915 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 3916 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3917 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3918 _flag_k = FK_CMP; 3919 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 3920 L_3607C7B5: 3921 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 3922 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 3923 L_3607C7BA: 3924 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 3925 L_3607C7BC: 3926 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 3927 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 3928 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 3929 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 3930 L_3607C7C7: 3931 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 3932 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 3933 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3935 _flag_k = FK_NARROW(FK_CMP, 24); 3936 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 3937 L_3607C7D3: 3938 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 3939 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 3940 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3942 _flag_k = FK_NARROW(FK_CMP, 24); 3943 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 3944 L_3607C7DE: 3945 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 3946 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 3947 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 3948 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 3949 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3951 _flag_k = FK_CMP; 3952 RECOMP_BACKEDGE(); 3953 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 3954 L_3607C7F1: 3955 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 3956 L_3607C7F6: 3957 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 3958 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 3959 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3961 _flag_k = FK_NARROW(FK_CMP, 24); 3962 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 3963 L_3607C7FE: 3964 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 3965 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 3966 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 3967 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 3968 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 3969 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 3970 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 3971 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 3972 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3974 _flag_k = FK_CMP; 3975 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 3976 L_3607C816: 3977 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 3978 L_3607C819: 3979 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 3980 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 3981 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 3982 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 3983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 3984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3985 _flag_k = FK_CMP; 3986 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 3987 L_3607C827: 3988 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 3989 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 3990 L_3607C82C: 3991 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 3992 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 3993 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3994 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3995 _flag_k = FK_CMP; 3996 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 3997 L_3607C834: 3998 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 3999 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 4000 L_3607C839: 4001 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 4002 L_3607C83B: 4003 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 4004 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 4005 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 4006 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 4007 L_3607C847: 4008 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 4009 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 4010 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 4011 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 4012 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 4013 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 4014 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 4015 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 4016 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 4017 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 4018 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 4019 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 4020 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 4021 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4023 _flag_k = FK_CMP; 4024 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 4025 L_3607C86E: 4026 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 4027 L_3607C871: 4028 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 4029 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 4030 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 4031 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 4032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4033 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4034 _flag_k = FK_CMP; 4035 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 4036 L_3607C87F: 4037 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 4038 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 4039 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 4040 L_3607C889: 4041 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 4042 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 4043 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4045 _flag_k = FK_CMP; 4046 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 4047 L_3607C890: 4048 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 4049 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 4050 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 4051 L_3607C899: 4052 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 4053 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 4054 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 4055 L_3607C8A3: 4056 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 4057 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 4058 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4060 _flag_k = FK_NARROW(FK_CMP, 24); 4061 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 4062 L_3607C8AA: 4063 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 4064 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 4065 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 4066 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 4067 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 4068 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 4069 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 4070 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 4071 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4072 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4073 _flag_k = FK_CMP; 4074 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 4075 L_3607C8C3: 4076 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 4077 L_3607C8C6: 4078 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 4079 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 4080 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 4081 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 4082 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4084 _flag_k = FK_CMP; 4085 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 4086 L_3607C8D4: 4087 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 4088 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 4089 L_3607C8D9: 4090 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 4091 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 4092 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4094 _flag_k = FK_CMP; 4095 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 4096 L_3607C8E0: 4097 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 4098 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 4099 L_3607C8E4: 4100 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 4101 L_3607C8E7: 4102 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 4103 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 4104 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 4105 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 4106 L_3607C8F1: 4107 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 4108 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 4109 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 4110 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 4111 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 4112 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 4113 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 4114 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 4115 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 4116 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 4117 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 4118 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 4119 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 4120 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4122 _flag_k = FK_CMP; 4123 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 4124 L_3607C917: 4125 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 4126 L_3607C91A: 4127 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 4128 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 4129 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 4130 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 4131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4133 _flag_k = FK_CMP; 4134 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 4135 L_3607C928: 4136 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 4137 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 4138 L_3607C92D: 4139 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 4140 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 4141 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4143 _flag_k = FK_CMP; 4144 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 4145 L_3607C935: 4146 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 4147 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 4148 L_3607C93A: 4149 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 4150 L_3607C93C: 4151 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 4152 L_3607C93F: 4153 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 4154 L_3607C942: 4155 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 4156 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 4157 PUSH32(esp, edx); /* 0x3607C948: push edx */ 4158 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 4159 RECOMP_FLAGS_IN(); 4160 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 4161 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 4162 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4163 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4164 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 4165 _flag_k = FK_ADD; 4166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4167 eax = eax - 1; /* 0x3607C957: dec eax */ 4168 _flag_k = FK_DEC; 4169 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 4170 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 4171 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 4172 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 4173 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 4174 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 4175 esp = ebp; /* 0x3607C963: mov esp, ebp */ 4176 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 4177 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 4178 RECOMP_REGS_OUT(); 4179 } 4180 4181 void sub_3607C75B(void) { 4182 int _fpu_cmp = 0; 4183 uint32_t _cf = 0; 4184 int _df = 1; 4185 uint32_t _flag_k = FK_NONE; 4186 uint32_t _flag_a = 0, _flag_b = 0; 4187 uint32_t _itail_tgt = 0; 4188 RECOMP_REGS_LOCALS 4189 RECOMP_ENTER(0x3607C75Bu); 4190 4191 goto L_3607C75B; 4192 L_3607C6F4: 4193 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 4194 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4195 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4196 _flag_k = FK_NARROW(FK_CMP, 24); 4197 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 4198 L_3607C6FD: 4199 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 4200 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 4201 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 4202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4204 _flag_k = FK_CMP; 4205 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 4206 L_3607C706: 4207 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 4208 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 4209 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 4210 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4211 _cf = 0; 4212 _flag_k = FK_NARROW(FK_TEST, 24); 4213 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 4214 L_3607C710: 4215 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 4216 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 4217 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 4218 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 4219 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 4220 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 4221 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 4222 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 4223 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 4224 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4225 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4226 _flag_k = FK_CMP; 4227 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 4228 L_3607C72C: 4229 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 4230 L_3607C72F: 4231 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 4232 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 4233 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 4234 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 4235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4237 _flag_k = FK_CMP; 4238 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 4239 L_3607C73D: 4240 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 4241 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 4242 L_3607C742: 4243 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 4244 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 4245 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4246 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4247 _flag_k = FK_CMP; 4248 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 4249 L_3607C749: 4250 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 4251 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 4252 L_3607C74D: 4253 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 4254 L_3607C750: 4255 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 4256 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 4257 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 4258 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 4259 L_3607C75B: 4260 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 4261 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 4262 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4264 _flag_k = FK_NARROW(FK_CMP, 24); 4265 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 4266 L_3607C766: 4267 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 4268 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 4269 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4271 _flag_k = FK_NARROW(FK_CMP, 24); 4272 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 4273 L_3607C772: 4274 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 4275 L_3607C774: 4276 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 4277 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 4278 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4279 _cf = 0; 4280 _flag_k = FK_NARROW(FK_TEST, 24); 4281 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 4282 L_3607C77B: 4283 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 4284 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 4285 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 4286 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 4287 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 4288 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 4289 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 4290 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 4291 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 4292 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4294 _flag_k = FK_CMP; 4295 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 4296 L_3607C797: 4297 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 4298 L_3607C79A: 4299 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 4300 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 4301 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 4302 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 4303 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4304 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4305 _flag_k = FK_CMP; 4306 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 4307 L_3607C7A8: 4308 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 4309 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 4310 L_3607C7AD: 4311 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 4312 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 4313 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4314 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4315 _flag_k = FK_CMP; 4316 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 4317 L_3607C7B5: 4318 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 4319 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 4320 L_3607C7BA: 4321 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 4322 L_3607C7BC: 4323 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 4324 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 4325 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 4326 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 4327 L_3607C7C7: 4328 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 4329 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 4330 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4332 _flag_k = FK_NARROW(FK_CMP, 24); 4333 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 4334 L_3607C7D3: 4335 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 4336 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 4337 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4338 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4339 _flag_k = FK_NARROW(FK_CMP, 24); 4340 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 4341 L_3607C7DE: 4342 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 4343 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 4344 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 4345 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 4346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4347 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4348 _flag_k = FK_CMP; 4349 RECOMP_BACKEDGE(); 4350 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 4351 L_3607C7F1: 4352 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 4353 L_3607C7F6: 4354 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 4355 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 4356 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4357 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4358 _flag_k = FK_NARROW(FK_CMP, 24); 4359 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 4360 L_3607C7FE: 4361 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 4362 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 4363 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 4364 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 4365 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 4366 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 4367 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 4368 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 4369 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4371 _flag_k = FK_CMP; 4372 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 4373 L_3607C816: 4374 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 4375 L_3607C819: 4376 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 4377 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 4378 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 4379 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 4380 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4382 _flag_k = FK_CMP; 4383 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 4384 L_3607C827: 4385 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 4386 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 4387 L_3607C82C: 4388 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 4389 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 4390 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4392 _flag_k = FK_CMP; 4393 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 4394 L_3607C834: 4395 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 4396 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 4397 L_3607C839: 4398 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 4399 L_3607C83B: 4400 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 4401 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 4402 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 4403 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 4404 L_3607C847: 4405 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 4406 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 4407 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 4408 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 4409 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 4410 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 4411 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 4412 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 4413 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 4414 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 4415 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 4416 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 4417 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 4418 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4420 _flag_k = FK_CMP; 4421 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 4422 L_3607C86E: 4423 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 4424 L_3607C871: 4425 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 4426 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 4427 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 4428 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 4429 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4431 _flag_k = FK_CMP; 4432 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 4433 L_3607C87F: 4434 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 4435 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 4436 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 4437 L_3607C889: 4438 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 4439 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 4440 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4442 _flag_k = FK_CMP; 4443 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 4444 L_3607C890: 4445 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 4446 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 4447 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 4448 L_3607C899: 4449 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 4450 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 4451 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 4452 L_3607C8A3: 4453 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 4454 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 4455 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4457 _flag_k = FK_NARROW(FK_CMP, 24); 4458 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 4459 L_3607C8AA: 4460 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 4461 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 4462 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 4463 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 4464 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 4465 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 4466 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 4467 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 4468 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4469 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4470 _flag_k = FK_CMP; 4471 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 4472 L_3607C8C3: 4473 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 4474 L_3607C8C6: 4475 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 4476 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 4477 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 4478 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 4479 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4481 _flag_k = FK_CMP; 4482 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 4483 L_3607C8D4: 4484 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 4485 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 4486 L_3607C8D9: 4487 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 4488 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 4489 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4491 _flag_k = FK_CMP; 4492 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 4493 L_3607C8E0: 4494 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 4495 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 4496 L_3607C8E4: 4497 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 4498 L_3607C8E7: 4499 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 4500 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 4501 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 4502 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 4503 L_3607C8F1: 4504 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 4505 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 4506 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 4507 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 4508 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 4509 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 4510 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 4511 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 4512 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 4513 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 4514 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 4515 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 4516 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 4517 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4519 _flag_k = FK_CMP; 4520 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 4521 L_3607C917: 4522 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 4523 L_3607C91A: 4524 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 4525 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 4526 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 4527 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 4528 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 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_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 4532 L_3607C928: 4533 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 4534 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 4535 L_3607C92D: 4536 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 4537 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 4538 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4539 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4540 _flag_k = FK_CMP; 4541 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 4542 L_3607C935: 4543 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 4544 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 4545 L_3607C93A: 4546 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 4547 L_3607C93C: 4548 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 4549 L_3607C93F: 4550 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 4551 L_3607C942: 4552 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 4553 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 4554 PUSH32(esp, edx); /* 0x3607C948: push edx */ 4555 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 4556 RECOMP_FLAGS_IN(); 4557 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 4558 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 4559 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4560 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4561 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 4562 _flag_k = FK_ADD; 4563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4564 eax = eax - 1; /* 0x3607C957: dec eax */ 4565 _flag_k = FK_DEC; 4566 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 4567 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 4568 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 4569 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 4570 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 4571 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 4572 esp = ebp; /* 0x3607C963: mov esp, ebp */ 4573 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 4574 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 4575 RECOMP_REGS_OUT(); 4576 } 4577 4578 void sub_3607C774(void) { 4579 int _fpu_cmp = 0; 4580 uint32_t _cf = 0; 4581 int _df = 1; 4582 uint32_t _flag_k = FK_NONE; 4583 uint32_t _flag_a = 0, _flag_b = 0; 4584 uint32_t _itail_tgt = 0; 4585 RECOMP_REGS_LOCALS 4586 RECOMP_ENTER(0x3607C774u); 4587 4588 goto L_3607C774; 4589 L_3607C6F4: 4590 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 4591 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4592 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4593 _flag_k = FK_NARROW(FK_CMP, 24); 4594 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 4595 L_3607C6FD: 4596 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 4597 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 4598 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 4599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4600 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4601 _flag_k = FK_CMP; 4602 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 4603 L_3607C706: 4604 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 4605 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 4606 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 4607 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4608 _cf = 0; 4609 _flag_k = FK_NARROW(FK_TEST, 24); 4610 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 4611 L_3607C710: 4612 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 4613 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 4614 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 4615 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 4616 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 4617 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 4618 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 4619 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 4620 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 4621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4622 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4623 _flag_k = FK_CMP; 4624 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 4625 L_3607C72C: 4626 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 4627 L_3607C72F: 4628 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 4629 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 4630 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 4631 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 4632 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4634 _flag_k = FK_CMP; 4635 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 4636 L_3607C73D: 4637 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 4638 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 4639 L_3607C742: 4640 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 4641 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 4642 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4644 _flag_k = FK_CMP; 4645 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 4646 L_3607C749: 4647 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 4648 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 4649 L_3607C74D: 4650 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 4651 L_3607C750: 4652 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 4653 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 4654 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 4655 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 4656 L_3607C75B: 4657 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 4658 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 4659 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4661 _flag_k = FK_NARROW(FK_CMP, 24); 4662 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 4663 L_3607C766: 4664 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 4665 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 4666 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4667 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4668 _flag_k = FK_NARROW(FK_CMP, 24); 4669 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 4670 L_3607C772: 4671 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 4672 L_3607C774: 4673 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 4674 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 4675 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4676 _cf = 0; 4677 _flag_k = FK_NARROW(FK_TEST, 24); 4678 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 4679 L_3607C77B: 4680 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 4681 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 4682 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 4683 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 4684 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 4685 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 4686 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 4687 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 4688 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 4689 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4691 _flag_k = FK_CMP; 4692 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 4693 L_3607C797: 4694 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 4695 L_3607C79A: 4696 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 4697 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 4698 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 4699 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 4700 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4702 _flag_k = FK_CMP; 4703 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 4704 L_3607C7A8: 4705 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 4706 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 4707 L_3607C7AD: 4708 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 4709 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 4710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4711 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4712 _flag_k = FK_CMP; 4713 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 4714 L_3607C7B5: 4715 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 4716 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 4717 L_3607C7BA: 4718 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 4719 L_3607C7BC: 4720 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 4721 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 4722 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 4723 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 4724 L_3607C7C7: 4725 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 4726 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 4727 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4728 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4729 _flag_k = FK_NARROW(FK_CMP, 24); 4730 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 4731 L_3607C7D3: 4732 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 4733 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 4734 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4735 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4736 _flag_k = FK_NARROW(FK_CMP, 24); 4737 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 4738 L_3607C7DE: 4739 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 4740 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 4741 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 4742 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 4743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4745 _flag_k = FK_CMP; 4746 RECOMP_BACKEDGE(); 4747 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 4748 L_3607C7F1: 4749 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 4750 L_3607C7F6: 4751 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 4752 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 4753 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4754 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4755 _flag_k = FK_NARROW(FK_CMP, 24); 4756 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 4757 L_3607C7FE: 4758 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 4759 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 4760 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 4761 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 4762 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 4763 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 4764 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 4765 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 4766 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4768 _flag_k = FK_CMP; 4769 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 4770 L_3607C816: 4771 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 4772 L_3607C819: 4773 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 4774 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 4775 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 4776 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 4777 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4779 _flag_k = FK_CMP; 4780 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 4781 L_3607C827: 4782 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 4783 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 4784 L_3607C82C: 4785 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 4786 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 4787 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4788 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4789 _flag_k = FK_CMP; 4790 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 4791 L_3607C834: 4792 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 4793 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 4794 L_3607C839: 4795 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 4796 L_3607C83B: 4797 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 4798 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 4799 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 4800 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 4801 L_3607C847: 4802 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 4803 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 4804 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 4805 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 4806 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 4807 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 4808 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 4809 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 4810 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 4811 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 4812 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 4813 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 4814 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 4815 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4817 _flag_k = FK_CMP; 4818 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 4819 L_3607C86E: 4820 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 4821 L_3607C871: 4822 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 4823 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 4824 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 4825 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 4826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4827 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4828 _flag_k = FK_CMP; 4829 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 4830 L_3607C87F: 4831 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 4832 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 4833 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 4834 L_3607C889: 4835 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 4836 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 4837 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4838 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4839 _flag_k = FK_CMP; 4840 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 4841 L_3607C890: 4842 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 4843 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 4844 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 4845 L_3607C899: 4846 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 4847 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 4848 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 4849 L_3607C8A3: 4850 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 4851 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 4852 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4854 _flag_k = FK_NARROW(FK_CMP, 24); 4855 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 4856 L_3607C8AA: 4857 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 4858 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 4859 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 4860 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 4861 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 4862 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 4863 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 4864 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 4865 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4867 _flag_k = FK_CMP; 4868 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 4869 L_3607C8C3: 4870 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 4871 L_3607C8C6: 4872 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 4873 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 4874 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 4875 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 4876 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4878 _flag_k = FK_CMP; 4879 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 4880 L_3607C8D4: 4881 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 4882 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 4883 L_3607C8D9: 4884 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 4885 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 4886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 4887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4888 _flag_k = FK_CMP; 4889 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 4890 L_3607C8E0: 4891 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 4892 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 4893 L_3607C8E4: 4894 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 4895 L_3607C8E7: 4896 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 4897 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 4898 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 4899 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 4900 L_3607C8F1: 4901 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 4902 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 4903 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 4904 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 4905 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 4906 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 4907 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 4908 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 4909 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 4910 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 4911 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 4912 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 4913 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 4914 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 4915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4916 _flag_k = FK_CMP; 4917 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 4918 L_3607C917: 4919 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 4920 L_3607C91A: 4921 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 4922 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 4923 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 4924 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 4925 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 4926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4927 _flag_k = FK_CMP; 4928 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 4929 L_3607C928: 4930 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 4931 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 4932 L_3607C92D: 4933 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 4934 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 4935 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 4936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4937 _flag_k = FK_CMP; 4938 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 4939 L_3607C935: 4940 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 4941 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 4942 L_3607C93A: 4943 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 4944 L_3607C93C: 4945 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 4946 L_3607C93F: 4947 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 4948 L_3607C942: 4949 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 4950 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 4951 PUSH32(esp, edx); /* 0x3607C948: push edx */ 4952 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 4953 RECOMP_FLAGS_IN(); 4954 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 4955 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 4956 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4958 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 4959 _flag_k = FK_ADD; 4960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4961 eax = eax - 1; /* 0x3607C957: dec eax */ 4962 _flag_k = FK_DEC; 4963 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 4964 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 4965 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 4966 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 4967 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 4968 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 4969 esp = ebp; /* 0x3607C963: mov esp, ebp */ 4970 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 4971 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 4972 RECOMP_REGS_OUT(); 4973 } 4974 4975 void sub_3607C7BC(void) { 4976 int _fpu_cmp = 0; 4977 uint32_t _cf = 0; 4978 int _df = 1; 4979 uint32_t _flag_k = FK_NONE; 4980 uint32_t _flag_a = 0, _flag_b = 0; 4981 uint32_t _itail_tgt = 0; 4982 RECOMP_REGS_LOCALS 4983 RECOMP_ENTER(0x3607C7BCu); 4984 4985 goto L_3607C7BC; 4986 L_3607C6F4: 4987 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 4988 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4990 _flag_k = FK_NARROW(FK_CMP, 24); 4991 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 4992 L_3607C6FD: 4993 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 4994 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 4995 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 4996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4997 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4998 _flag_k = FK_CMP; 4999 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 5000 L_3607C706: 5001 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 5002 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 5003 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 5004 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5005 _cf = 0; 5006 _flag_k = FK_NARROW(FK_TEST, 24); 5007 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 5008 L_3607C710: 5009 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 5010 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 5011 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 5012 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 5013 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 5014 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 5015 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 5016 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 5017 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 5018 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5020 _flag_k = FK_CMP; 5021 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 5022 L_3607C72C: 5023 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 5024 L_3607C72F: 5025 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 5026 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 5027 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 5028 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 5029 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5031 _flag_k = FK_CMP; 5032 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 5033 L_3607C73D: 5034 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 5035 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 5036 L_3607C742: 5037 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 5038 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 5039 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5041 _flag_k = FK_CMP; 5042 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 5043 L_3607C749: 5044 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 5045 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 5046 L_3607C74D: 5047 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 5048 L_3607C750: 5049 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 5050 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 5051 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 5052 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 5053 L_3607C75B: 5054 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 5055 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 5056 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5058 _flag_k = FK_NARROW(FK_CMP, 24); 5059 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 5060 L_3607C766: 5061 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 5062 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 5063 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5065 _flag_k = FK_NARROW(FK_CMP, 24); 5066 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 5067 L_3607C772: 5068 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 5069 L_3607C774: 5070 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 5071 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 5072 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5073 _cf = 0; 5074 _flag_k = FK_NARROW(FK_TEST, 24); 5075 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 5076 L_3607C77B: 5077 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 5078 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 5079 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 5080 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 5081 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 5082 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 5083 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 5084 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 5085 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 5086 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5088 _flag_k = FK_CMP; 5089 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 5090 L_3607C797: 5091 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 5092 L_3607C79A: 5093 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 5094 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 5095 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 5096 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 5097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5099 _flag_k = FK_CMP; 5100 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 5101 L_3607C7A8: 5102 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 5103 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 5104 L_3607C7AD: 5105 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 5106 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 5107 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5109 _flag_k = FK_CMP; 5110 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 5111 L_3607C7B5: 5112 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 5113 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 5114 L_3607C7BA: 5115 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 5116 L_3607C7BC: 5117 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 5118 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 5119 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 5120 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 5121 L_3607C7C7: 5122 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 5123 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 5124 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5125 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5126 _flag_k = FK_NARROW(FK_CMP, 24); 5127 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 5128 L_3607C7D3: 5129 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 5130 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 5131 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5133 _flag_k = FK_NARROW(FK_CMP, 24); 5134 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 5135 L_3607C7DE: 5136 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 5137 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 5138 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 5139 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 5140 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5142 _flag_k = FK_CMP; 5143 RECOMP_BACKEDGE(); 5144 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 5145 L_3607C7F1: 5146 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 5147 L_3607C7F6: 5148 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 5149 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 5150 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5152 _flag_k = FK_NARROW(FK_CMP, 24); 5153 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 5154 L_3607C7FE: 5155 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 5156 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 5157 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 5158 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 5159 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 5160 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 5161 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 5162 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 5163 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5165 _flag_k = FK_CMP; 5166 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 5167 L_3607C816: 5168 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 5169 L_3607C819: 5170 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 5171 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 5172 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 5173 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 5174 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5176 _flag_k = FK_CMP; 5177 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 5178 L_3607C827: 5179 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 5180 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 5181 L_3607C82C: 5182 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 5183 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 5184 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5185 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5186 _flag_k = FK_CMP; 5187 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 5188 L_3607C834: 5189 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 5190 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 5191 L_3607C839: 5192 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 5193 L_3607C83B: 5194 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 5195 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 5196 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 5197 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 5198 L_3607C847: 5199 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 5200 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 5201 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 5202 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 5203 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 5204 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 5205 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 5206 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 5207 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 5208 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 5209 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 5210 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 5211 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 5212 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5213 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5214 _flag_k = FK_CMP; 5215 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 5216 L_3607C86E: 5217 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 5218 L_3607C871: 5219 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 5220 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 5221 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 5222 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 5223 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5224 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5225 _flag_k = FK_CMP; 5226 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 5227 L_3607C87F: 5228 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 5229 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 5230 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 5231 L_3607C889: 5232 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 5233 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 5234 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5235 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5236 _flag_k = FK_CMP; 5237 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 5238 L_3607C890: 5239 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 5240 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 5241 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 5242 L_3607C899: 5243 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 5244 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 5245 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 5246 L_3607C8A3: 5247 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 5248 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 5249 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5251 _flag_k = FK_NARROW(FK_CMP, 24); 5252 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 5253 L_3607C8AA: 5254 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 5255 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 5256 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 5257 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 5258 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 5259 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 5260 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 5261 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 5262 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5263 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5264 _flag_k = FK_CMP; 5265 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 5266 L_3607C8C3: 5267 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 5268 L_3607C8C6: 5269 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 5270 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 5271 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 5272 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 5273 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5274 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5275 _flag_k = FK_CMP; 5276 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 5277 L_3607C8D4: 5278 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 5279 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 5280 L_3607C8D9: 5281 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 5282 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 5283 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5285 _flag_k = FK_CMP; 5286 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 5287 L_3607C8E0: 5288 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 5289 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 5290 L_3607C8E4: 5291 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 5292 L_3607C8E7: 5293 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 5294 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 5295 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 5296 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 5297 L_3607C8F1: 5298 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 5299 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 5300 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 5301 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 5302 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 5303 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 5304 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 5305 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 5306 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 5307 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 5308 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 5309 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 5310 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 5311 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5313 _flag_k = FK_CMP; 5314 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 5315 L_3607C917: 5316 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 5317 L_3607C91A: 5318 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 5319 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 5320 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 5321 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 5322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5324 _flag_k = FK_CMP; 5325 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 5326 L_3607C928: 5327 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 5328 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 5329 L_3607C92D: 5330 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 5331 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 5332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5333 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5334 _flag_k = FK_CMP; 5335 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 5336 L_3607C935: 5337 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 5338 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 5339 L_3607C93A: 5340 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 5341 L_3607C93C: 5342 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 5343 L_3607C93F: 5344 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 5345 L_3607C942: 5346 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 5347 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 5348 PUSH32(esp, edx); /* 0x3607C948: push edx */ 5349 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 5350 RECOMP_FLAGS_IN(); 5351 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 5352 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 5353 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5354 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5355 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 5356 _flag_k = FK_ADD; 5357 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5358 eax = eax - 1; /* 0x3607C957: dec eax */ 5359 _flag_k = FK_DEC; 5360 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 5361 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 5362 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 5363 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 5364 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 5365 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 5366 esp = ebp; /* 0x3607C963: mov esp, ebp */ 5367 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 5368 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 5369 RECOMP_REGS_OUT(); 5370 } 5371 5372 void sub_3607C7C7(void) { 5373 int _fpu_cmp = 0; 5374 uint32_t _cf = 0; 5375 int _df = 1; 5376 uint32_t _flag_k = FK_NONE; 5377 uint32_t _flag_a = 0, _flag_b = 0; 5378 uint32_t _itail_tgt = 0; 5379 RECOMP_REGS_LOCALS 5380 RECOMP_ENTER(0x3607C7C7u); 5381 5382 goto L_3607C7C7; 5383 L_3607C6F4: 5384 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 5385 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5387 _flag_k = FK_NARROW(FK_CMP, 24); 5388 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 5389 L_3607C6FD: 5390 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 5391 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 5392 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 5393 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5395 _flag_k = FK_CMP; 5396 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 5397 L_3607C706: 5398 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 5399 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 5400 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 5401 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5402 _cf = 0; 5403 _flag_k = FK_NARROW(FK_TEST, 24); 5404 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 5405 L_3607C710: 5406 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 5407 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 5408 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 5409 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 5410 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 5411 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 5412 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 5413 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 5414 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 5415 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5417 _flag_k = FK_CMP; 5418 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 5419 L_3607C72C: 5420 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 5421 L_3607C72F: 5422 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 5423 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 5424 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 5425 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 5426 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5427 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5428 _flag_k = FK_CMP; 5429 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 5430 L_3607C73D: 5431 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 5432 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 5433 L_3607C742: 5434 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 5435 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 5436 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5437 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5438 _flag_k = FK_CMP; 5439 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 5440 L_3607C749: 5441 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 5442 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 5443 L_3607C74D: 5444 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 5445 L_3607C750: 5446 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 5447 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 5448 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 5449 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 5450 L_3607C75B: 5451 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 5452 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 5453 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5455 _flag_k = FK_NARROW(FK_CMP, 24); 5456 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 5457 L_3607C766: 5458 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 5459 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 5460 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5462 _flag_k = FK_NARROW(FK_CMP, 24); 5463 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 5464 L_3607C772: 5465 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 5466 L_3607C774: 5467 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 5468 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 5469 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5470 _cf = 0; 5471 _flag_k = FK_NARROW(FK_TEST, 24); 5472 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 5473 L_3607C77B: 5474 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 5475 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 5476 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 5477 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 5478 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 5479 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 5480 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 5481 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 5482 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 5483 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5484 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5485 _flag_k = FK_CMP; 5486 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 5487 L_3607C797: 5488 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 5489 L_3607C79A: 5490 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 5491 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 5492 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 5493 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 5494 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5496 _flag_k = FK_CMP; 5497 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 5498 L_3607C7A8: 5499 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 5500 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 5501 L_3607C7AD: 5502 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 5503 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 5504 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5505 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5506 _flag_k = FK_CMP; 5507 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 5508 L_3607C7B5: 5509 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 5510 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 5511 L_3607C7BA: 5512 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 5513 L_3607C7BC: 5514 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 5515 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 5516 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 5517 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 5518 L_3607C7C7: 5519 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 5520 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 5521 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5523 _flag_k = FK_NARROW(FK_CMP, 24); 5524 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 5525 L_3607C7D3: 5526 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 5527 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 5528 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5530 _flag_k = FK_NARROW(FK_CMP, 24); 5531 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 5532 L_3607C7DE: 5533 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 5534 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 5535 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 5536 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 5537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5539 _flag_k = FK_CMP; 5540 RECOMP_BACKEDGE(); 5541 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 5542 L_3607C7F1: 5543 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 5544 L_3607C7F6: 5545 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 5546 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 5547 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5548 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5549 _flag_k = FK_NARROW(FK_CMP, 24); 5550 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 5551 L_3607C7FE: 5552 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 5553 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 5554 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 5555 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 5556 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 5557 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 5558 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 5559 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 5560 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5562 _flag_k = FK_CMP; 5563 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 5564 L_3607C816: 5565 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 5566 L_3607C819: 5567 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 5568 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 5569 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 5570 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 5571 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5573 _flag_k = FK_CMP; 5574 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 5575 L_3607C827: 5576 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 5577 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 5578 L_3607C82C: 5579 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 5580 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 5581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5582 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5583 _flag_k = FK_CMP; 5584 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 5585 L_3607C834: 5586 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 5587 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 5588 L_3607C839: 5589 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 5590 L_3607C83B: 5591 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 5592 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 5593 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 5594 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 5595 L_3607C847: 5596 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 5597 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 5598 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 5599 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 5600 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 5601 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 5602 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 5603 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 5604 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 5605 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 5606 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 5607 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 5608 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 5609 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5611 _flag_k = FK_CMP; 5612 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 5613 L_3607C86E: 5614 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 5615 L_3607C871: 5616 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 5617 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 5618 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 5619 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 5620 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5621 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5622 _flag_k = FK_CMP; 5623 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 5624 L_3607C87F: 5625 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 5626 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 5627 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 5628 L_3607C889: 5629 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 5630 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 5631 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5632 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5633 _flag_k = FK_CMP; 5634 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 5635 L_3607C890: 5636 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 5637 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 5638 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 5639 L_3607C899: 5640 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 5641 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 5642 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 5643 L_3607C8A3: 5644 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 5645 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 5646 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5648 _flag_k = FK_NARROW(FK_CMP, 24); 5649 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 5650 L_3607C8AA: 5651 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 5652 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 5653 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 5654 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 5655 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 5656 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 5657 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 5658 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 5659 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5660 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5661 _flag_k = FK_CMP; 5662 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 5663 L_3607C8C3: 5664 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 5665 L_3607C8C6: 5666 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 5667 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 5668 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 5669 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 5670 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5672 _flag_k = FK_CMP; 5673 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 5674 L_3607C8D4: 5675 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 5676 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 5677 L_3607C8D9: 5678 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 5679 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 5680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5681 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5682 _flag_k = FK_CMP; 5683 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 5684 L_3607C8E0: 5685 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 5686 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 5687 L_3607C8E4: 5688 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 5689 L_3607C8E7: 5690 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 5691 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 5692 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 5693 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 5694 L_3607C8F1: 5695 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 5696 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 5697 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 5698 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 5699 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 5700 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 5701 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 5702 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 5703 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 5704 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 5705 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 5706 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 5707 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 5708 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5709 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5710 _flag_k = FK_CMP; 5711 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 5712 L_3607C917: 5713 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 5714 L_3607C91A: 5715 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 5716 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 5717 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 5718 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 5719 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5721 _flag_k = FK_CMP; 5722 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 5723 L_3607C928: 5724 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 5725 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 5726 L_3607C92D: 5727 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 5728 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 5729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5731 _flag_k = FK_CMP; 5732 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 5733 L_3607C935: 5734 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 5735 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 5736 L_3607C93A: 5737 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 5738 L_3607C93C: 5739 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 5740 L_3607C93F: 5741 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 5742 L_3607C942: 5743 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 5744 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 5745 PUSH32(esp, edx); /* 0x3607C948: push edx */ 5746 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 5747 RECOMP_FLAGS_IN(); 5748 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 5749 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 5750 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5751 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5752 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 5753 _flag_k = FK_ADD; 5754 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5755 eax = eax - 1; /* 0x3607C957: dec eax */ 5756 _flag_k = FK_DEC; 5757 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 5758 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 5759 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 5760 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 5761 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 5762 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 5763 esp = ebp; /* 0x3607C963: mov esp, ebp */ 5764 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 5765 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 5766 RECOMP_REGS_OUT(); 5767 } 5768 5769 void sub_3607C7DE(void) { 5770 int _fpu_cmp = 0; 5771 uint32_t _cf = 0; 5772 int _df = 1; 5773 uint32_t _flag_k = FK_NONE; 5774 uint32_t _flag_a = 0, _flag_b = 0; 5775 uint32_t _itail_tgt = 0; 5776 RECOMP_REGS_LOCALS 5777 RECOMP_ENTER(0x3607C7DEu); 5778 5779 goto L_3607C7DE; 5780 L_3607C6F4: 5781 /* cmp MEM8(eax + 0x28), LO8(ebx) */ /* 0x3607C6F4: cmp byte ptr [eax + 0x28], bl */ 5782 _flag_a = (uint32_t)(MEM8(eax + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5783 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5784 _flag_k = FK_NARROW(FK_CMP, 24); 5785 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C942; /* 0x3607C6F7: jne 0x3607c942 */ 5786 L_3607C6FD: 5787 edx = MEM32(eax + 0x4); /* 0x3607C6FD: mov edx, dword ptr [eax + 4] */ 5788 ecx = MEM32(edx); /* 0x3607C700: mov ecx, dword ptr [edx] */ 5789 /* cmp eax, ecx */ /* 0x3607C702: cmp eax, ecx */ 5790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5792 _flag_k = FK_CMP; 5793 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C774; /* 0x3607C704: jne 0x3607c774 */ 5794 L_3607C706: 5795 ecx = MEM32(edx + 0x8); /* 0x3607C706: mov ecx, dword ptr [edx + 8] */ 5796 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C709: mov dl, byte ptr [ecx + 0x28] */ 5797 /* test LO8(edx), LO8(edx) */ /* 0x3607C70C: test dl, dl */ 5798 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5799 _cf = 0; 5800 _flag_k = FK_NARROW(FK_TEST, 24); 5801 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C75B; /* 0x3607C70E: jne 0x3607c75b */ 5802 L_3607C710: 5803 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C710: mov byte ptr [ecx + 0x28], bl */ 5804 ecx = MEM32(eax + 0x4); /* 0x3607C713: mov ecx, dword ptr [eax + 4] */ 5805 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C716: mov byte ptr [ecx + 0x28], 0 */ 5806 ecx = MEM32(eax + 0x4); /* 0x3607C71A: mov ecx, dword ptr [eax + 4] */ 5807 edx = MEM32(ecx + 0x8); /* 0x3607C71D: mov edx, dword ptr [ecx + 8] */ 5808 esi = MEM32(edx); /* 0x3607C720: mov esi, dword ptr [edx] */ 5809 MEM32(ecx + 0x8) = esi; /* 0x3607C722: mov dword ptr [ecx + 8], esi */ 5810 esi = MEM32(edx); /* 0x3607C725: mov esi, dword ptr [edx] */ 5811 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C727: cmp esi, dword ptr [edi + 8] */ 5812 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5813 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5814 _flag_k = FK_CMP; 5815 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C72F; /* 0x3607C72A: je 0x3607c72f */ 5816 L_3607C72C: 5817 MEM32(esi + 0x4) = ecx; /* 0x3607C72C: mov dword ptr [esi + 4], ecx */ 5818 L_3607C72F: 5819 esi = MEM32(ecx + 0x4); /* 0x3607C72F: mov esi, dword ptr [ecx + 4] */ 5820 MEM32(edx + 0x4) = esi; /* 0x3607C732: mov dword ptr [edx + 4], esi */ 5821 esi = MEM32(edi + 0x4); /* 0x3607C735: mov esi, dword ptr [edi + 4] */ 5822 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C738: cmp ecx, dword ptr [esi + 4] */ 5823 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5824 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5825 _flag_k = FK_CMP; 5826 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C742; /* 0x3607C73B: jne 0x3607c742 */ 5827 L_3607C73D: 5828 MEM32(esi + 0x4) = edx; /* 0x3607C73D: mov dword ptr [esi + 4], edx */ 5829 goto L_3607C750; /* 0x3607C740: jmp 0x3607c750 */ 5830 L_3607C742: 5831 esi = MEM32(ecx + 0x4); /* 0x3607C742: mov esi, dword ptr [ecx + 4] */ 5832 /* cmp ecx, MEM32(esi) */ /* 0x3607C745: cmp ecx, dword ptr [esi] */ 5833 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 5834 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5835 _flag_k = FK_CMP; 5836 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C74D; /* 0x3607C747: jne 0x3607c74d */ 5837 L_3607C749: 5838 MEM32(esi) = edx; /* 0x3607C749: mov dword ptr [esi], edx */ 5839 goto L_3607C750; /* 0x3607C74B: jmp 0x3607c750 */ 5840 L_3607C74D: 5841 MEM32(esi + 0x8) = edx; /* 0x3607C74D: mov dword ptr [esi + 8], edx */ 5842 L_3607C750: 5843 MEM32(edx) = ecx; /* 0x3607C750: mov dword ptr [edx], ecx */ 5844 MEM32(ecx + 0x4) = edx; /* 0x3607C752: mov dword ptr [ecx + 4], edx */ 5845 edx = MEM32(eax + 0x4); /* 0x3607C755: mov edx, dword ptr [eax + 4] */ 5846 ecx = MEM32(edx + 0x8); /* 0x3607C758: mov ecx, dword ptr [edx + 8] */ 5847 L_3607C75B: 5848 edx = MEM32(ecx); /* 0x3607C75B: mov edx, dword ptr [ecx] */ 5849 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C75D: cmp byte ptr [edx + 0x28], bl */ 5850 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5852 _flag_k = FK_NARROW(FK_CMP, 24); 5853 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C760: jne 0x3607c7f6 */ 5854 L_3607C766: 5855 edx = MEM32(ecx + 0x8); /* 0x3607C766: mov edx, dword ptr [ecx + 8] */ 5856 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C769: cmp byte ptr [edx + 0x28], bl */ 5857 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5859 _flag_k = FK_NARROW(FK_CMP, 24); 5860 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7F6; /* 0x3607C76C: jne 0x3607c7f6 */ 5861 L_3607C772: 5862 goto L_3607C7DE; /* 0x3607C772: jmp 0x3607c7de */ 5863 L_3607C774: 5864 SET_LO8(edx, MEM8(ecx + 0x28)); /* 0x3607C774: mov dl, byte ptr [ecx + 0x28] */ 5865 /* test LO8(edx), LO8(edx) */ /* 0x3607C777: test dl, dl */ 5866 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 5867 _cf = 0; 5868 _flag_k = FK_NARROW(FK_TEST, 24); 5869 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607C7C7; /* 0x3607C779: jne 0x3607c7c7 */ 5870 L_3607C77B: 5871 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C77B: mov byte ptr [ecx + 0x28], bl */ 5872 ecx = MEM32(eax + 0x4); /* 0x3607C77E: mov ecx, dword ptr [eax + 4] */ 5873 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C781: mov byte ptr [ecx + 0x28], 0 */ 5874 ecx = MEM32(eax + 0x4); /* 0x3607C785: mov ecx, dword ptr [eax + 4] */ 5875 edx = MEM32(ecx); /* 0x3607C788: mov edx, dword ptr [ecx] */ 5876 esi = MEM32(edx + 0x8); /* 0x3607C78A: mov esi, dword ptr [edx + 8] */ 5877 MEM32(ecx) = esi; /* 0x3607C78D: mov dword ptr [ecx], esi */ 5878 esi = MEM32(edx + 0x8); /* 0x3607C78F: mov esi, dword ptr [edx + 8] */ 5879 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C792: cmp esi, dword ptr [edi + 8] */ 5880 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5882 _flag_k = FK_CMP; 5883 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C79A; /* 0x3607C795: je 0x3607c79a */ 5884 L_3607C797: 5885 MEM32(esi + 0x4) = ecx; /* 0x3607C797: mov dword ptr [esi + 4], ecx */ 5886 L_3607C79A: 5887 esi = MEM32(ecx + 0x4); /* 0x3607C79A: mov esi, dword ptr [ecx + 4] */ 5888 MEM32(edx + 0x4) = esi; /* 0x3607C79D: mov dword ptr [edx + 4], esi */ 5889 esi = MEM32(edi + 0x4); /* 0x3607C7A0: mov esi, dword ptr [edi + 4] */ 5890 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C7A3: cmp ecx, dword ptr [esi + 4] */ 5891 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5893 _flag_k = FK_CMP; 5894 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7AD; /* 0x3607C7A6: jne 0x3607c7ad */ 5895 L_3607C7A8: 5896 MEM32(esi + 0x4) = edx; /* 0x3607C7A8: mov dword ptr [esi + 4], edx */ 5897 goto L_3607C7BC; /* 0x3607C7AB: jmp 0x3607c7bc */ 5898 L_3607C7AD: 5899 esi = MEM32(ecx + 0x4); /* 0x3607C7AD: mov esi, dword ptr [ecx + 4] */ 5900 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C7B0: cmp ecx, dword ptr [esi + 8] */ 5901 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5903 _flag_k = FK_CMP; 5904 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C7BA; /* 0x3607C7B3: jne 0x3607c7ba */ 5905 L_3607C7B5: 5906 MEM32(esi + 0x8) = edx; /* 0x3607C7B5: mov dword ptr [esi + 8], edx */ 5907 goto L_3607C7BC; /* 0x3607C7B8: jmp 0x3607c7bc */ 5908 L_3607C7BA: 5909 MEM32(esi) = edx; /* 0x3607C7BA: mov dword ptr [esi], edx */ 5910 L_3607C7BC: 5911 MEM32(edx + 0x8) = ecx; /* 0x3607C7BC: mov dword ptr [edx + 8], ecx */ 5912 MEM32(ecx + 0x4) = edx; /* 0x3607C7BF: mov dword ptr [ecx + 4], edx */ 5913 edx = MEM32(eax + 0x4); /* 0x3607C7C2: mov edx, dword ptr [eax + 4] */ 5914 ecx = MEM32(edx); /* 0x3607C7C5: mov ecx, dword ptr [edx] */ 5915 L_3607C7C7: 5916 edx = MEM32(ecx + 0x8); /* 0x3607C7C7: mov edx, dword ptr [ecx + 8] */ 5917 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7CA: cmp byte ptr [edx + 0x28], bl */ 5918 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5920 _flag_k = FK_NARROW(FK_CMP, 24); 5921 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7CD: jne 0x3607c8a3 */ 5922 L_3607C7D3: 5923 edx = MEM32(ecx); /* 0x3607C7D3: mov edx, dword ptr [ecx] */ 5924 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7D5: cmp byte ptr [edx + 0x28], bl */ 5925 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5927 _flag_k = FK_NARROW(FK_CMP, 24); 5928 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8A3; /* 0x3607C7D8: jne 0x3607c8a3 */ 5929 L_3607C7DE: 5930 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C7DE: mov byte ptr [ecx + 0x28], 0 */ 5931 ecx = MEM32(edi + 0x4); /* 0x3607C7E2: mov ecx, dword ptr [edi + 4] */ 5932 eax = MEM32(eax + 0x4); /* 0x3607C7E5: mov eax, dword ptr [eax + 4] */ 5933 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607C7E8: cmp eax, dword ptr [ecx + 4] */ 5934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 5935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5936 _flag_k = FK_CMP; 5937 RECOMP_BACKEDGE(); 5938 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C6F4; /* 0x3607C7EB: jne 0x3607c6f4 */ 5939 L_3607C7F1: 5940 goto L_3607C942; /* 0x3607C7F1: jmp 0x3607c942 */ 5941 L_3607C7F6: 5942 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 5943 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 5944 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5945 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5946 _flag_k = FK_NARROW(FK_CMP, 24); 5947 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 5948 L_3607C7FE: 5949 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 5950 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 5951 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 5952 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 5953 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 5954 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 5955 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 5956 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 5957 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 5958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5959 _flag_k = FK_CMP; 5960 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 5961 L_3607C816: 5962 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 5963 L_3607C819: 5964 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 5965 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 5966 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 5967 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 5968 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 5969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5970 _flag_k = FK_CMP; 5971 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 5972 L_3607C827: 5973 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 5974 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 5975 L_3607C82C: 5976 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 5977 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 5978 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 5979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5980 _flag_k = FK_CMP; 5981 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 5982 L_3607C834: 5983 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 5984 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 5985 L_3607C839: 5986 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 5987 L_3607C83B: 5988 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 5989 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 5990 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 5991 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 5992 L_3607C847: 5993 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 5994 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 5995 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 5996 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 5997 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 5998 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 5999 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 6000 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 6001 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 6002 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 6003 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 6004 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 6005 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 6006 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6008 _flag_k = FK_CMP; 6009 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 6010 L_3607C86E: 6011 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 6012 L_3607C871: 6013 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 6014 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 6015 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 6016 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 6017 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6018 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6019 _flag_k = FK_CMP; 6020 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 6021 L_3607C87F: 6022 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 6023 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 6024 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 6025 L_3607C889: 6026 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 6027 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 6028 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6029 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6030 _flag_k = FK_CMP; 6031 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 6032 L_3607C890: 6033 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 6034 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 6035 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 6036 L_3607C899: 6037 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 6038 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 6039 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 6040 L_3607C8A3: 6041 edx = MEM32(ecx); /* 0x3607C8A3: mov edx, dword ptr [ecx] */ 6042 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C8A5: cmp byte ptr [edx + 0x28], bl */ 6043 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6045 _flag_k = FK_NARROW(FK_CMP, 24); 6046 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8F1; /* 0x3607C8A8: jne 0x3607c8f1 */ 6047 L_3607C8AA: 6048 edx = MEM32(ecx + 0x8); /* 0x3607C8AA: mov edx, dword ptr [ecx + 8] */ 6049 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8AD: mov byte ptr [edx + 0x28], bl */ 6050 edx = MEM32(ecx + 0x8); /* 0x3607C8B0: mov edx, dword ptr [ecx + 8] */ 6051 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C8B3: mov byte ptr [ecx + 0x28], 0 */ 6052 esi = MEM32(edx); /* 0x3607C8B7: mov esi, dword ptr [edx] */ 6053 MEM32(ecx + 0x8) = esi; /* 0x3607C8B9: mov dword ptr [ecx + 8], esi */ 6054 esi = MEM32(edx); /* 0x3607C8BC: mov esi, dword ptr [edx] */ 6055 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C8BE: cmp esi, dword ptr [edi + 8] */ 6056 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6058 _flag_k = FK_CMP; 6059 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C8C6; /* 0x3607C8C1: je 0x3607c8c6 */ 6060 L_3607C8C3: 6061 MEM32(esi + 0x4) = ecx; /* 0x3607C8C3: mov dword ptr [esi + 4], ecx */ 6062 L_3607C8C6: 6063 esi = MEM32(ecx + 0x4); /* 0x3607C8C6: mov esi, dword ptr [ecx + 4] */ 6064 MEM32(edx + 0x4) = esi; /* 0x3607C8C9: mov dword ptr [edx + 4], esi */ 6065 esi = MEM32(edi + 0x4); /* 0x3607C8CC: mov esi, dword ptr [edi + 4] */ 6066 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C8CF: cmp ecx, dword ptr [esi + 4] */ 6067 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6069 _flag_k = FK_CMP; 6070 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8D9; /* 0x3607C8D2: jne 0x3607c8d9 */ 6071 L_3607C8D4: 6072 MEM32(esi + 0x4) = edx; /* 0x3607C8D4: mov dword ptr [esi + 4], edx */ 6073 goto L_3607C8E7; /* 0x3607C8D7: jmp 0x3607c8e7 */ 6074 L_3607C8D9: 6075 esi = MEM32(ecx + 0x4); /* 0x3607C8D9: mov esi, dword ptr [ecx + 4] */ 6076 /* cmp ecx, MEM32(esi) */ /* 0x3607C8DC: cmp ecx, dword ptr [esi] */ 6077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6079 _flag_k = FK_CMP; 6080 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C8E4; /* 0x3607C8DE: jne 0x3607c8e4 */ 6081 L_3607C8E0: 6082 MEM32(esi) = edx; /* 0x3607C8E0: mov dword ptr [esi], edx */ 6083 goto L_3607C8E7; /* 0x3607C8E2: jmp 0x3607c8e7 */ 6084 L_3607C8E4: 6085 MEM32(esi + 0x8) = edx; /* 0x3607C8E4: mov dword ptr [esi + 8], edx */ 6086 L_3607C8E7: 6087 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 6088 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 6089 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 6090 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 6091 L_3607C8F1: 6092 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 6093 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 6094 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 6095 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 6096 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 6097 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 6098 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 6099 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 6100 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 6101 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 6102 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 6103 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 6104 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 6105 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6107 _flag_k = FK_CMP; 6108 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 6109 L_3607C917: 6110 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 6111 L_3607C91A: 6112 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 6113 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 6114 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 6115 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 6116 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6118 _flag_k = FK_CMP; 6119 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 6120 L_3607C928: 6121 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 6122 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 6123 L_3607C92D: 6124 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 6125 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 6126 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6127 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6128 _flag_k = FK_CMP; 6129 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 6130 L_3607C935: 6131 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 6132 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 6133 L_3607C93A: 6134 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 6135 L_3607C93C: 6136 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 6137 L_3607C93F: 6138 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 6139 L_3607C942: 6140 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 6141 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 6142 PUSH32(esp, edx); /* 0x3607C948: push edx */ 6143 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 6144 RECOMP_FLAGS_IN(); 6145 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 6146 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 6147 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6149 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 6150 _flag_k = FK_ADD; 6151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6152 eax = eax - 1; /* 0x3607C957: dec eax */ 6153 _flag_k = FK_DEC; 6154 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 6155 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 6156 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 6157 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 6158 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 6159 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 6160 esp = ebp; /* 0x3607C963: mov esp, ebp */ 6161 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 6162 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 6163 RECOMP_REGS_OUT(); 6164 } 6165 6166 void sub_3607C7F6(void) { 6167 int _fpu_cmp = 0; 6168 uint32_t _cf = 0; 6169 int _df = 1; 6170 uint32_t _flag_k = FK_NONE; 6171 uint32_t _flag_a = 0, _flag_b = 0; 6172 uint32_t _itail_tgt = 0; 6173 RECOMP_REGS_LOCALS 6174 RECOMP_ENTER(0x3607C7F6u); 6175 6176 L_3607C7F6: 6177 edx = MEM32(ecx + 0x8); /* 0x3607C7F6: mov edx, dword ptr [ecx + 8] */ 6178 /* cmp MEM8(edx + 0x28), LO8(ebx) */ /* 0x3607C7F9: cmp byte ptr [edx + 0x28], bl */ 6179 _flag_a = (uint32_t)(MEM8(edx + 0x28)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6181 _flag_k = FK_NARROW(FK_CMP, 24); 6182 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C847; /* 0x3607C7FC: jne 0x3607c847 */ 6183 L_3607C7FE: 6184 edx = MEM32(ecx); /* 0x3607C7FE: mov edx, dword ptr [ecx] */ 6185 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C800: mov byte ptr [edx + 0x28], bl */ 6186 edx = MEM32(ecx); /* 0x3607C803: mov edx, dword ptr [ecx] */ 6187 MEM8(ecx + 0x28) = (uint8_t)(0); /* 0x3607C805: mov byte ptr [ecx + 0x28], 0 */ 6188 esi = MEM32(edx + 0x8); /* 0x3607C809: mov esi, dword ptr [edx + 8] */ 6189 MEM32(ecx) = esi; /* 0x3607C80C: mov dword ptr [ecx], esi */ 6190 esi = MEM32(edx + 0x8); /* 0x3607C80E: mov esi, dword ptr [edx + 8] */ 6191 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C811: cmp esi, dword ptr [edi + 8] */ 6192 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6193 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6194 _flag_k = FK_CMP; 6195 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C819; /* 0x3607C814: je 0x3607c819 */ 6196 L_3607C816: 6197 MEM32(esi + 0x4) = ecx; /* 0x3607C816: mov dword ptr [esi + 4], ecx */ 6198 L_3607C819: 6199 esi = MEM32(ecx + 0x4); /* 0x3607C819: mov esi, dword ptr [ecx + 4] */ 6200 MEM32(edx + 0x4) = esi; /* 0x3607C81C: mov dword ptr [edx + 4], esi */ 6201 esi = MEM32(edi + 0x4); /* 0x3607C81F: mov esi, dword ptr [edi + 4] */ 6202 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C822: cmp ecx, dword ptr [esi + 4] */ 6203 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6204 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6205 _flag_k = FK_CMP; 6206 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C82C; /* 0x3607C825: jne 0x3607c82c */ 6207 L_3607C827: 6208 MEM32(esi + 0x4) = edx; /* 0x3607C827: mov dword ptr [esi + 4], edx */ 6209 goto L_3607C83B; /* 0x3607C82A: jmp 0x3607c83b */ 6210 L_3607C82C: 6211 esi = MEM32(ecx + 0x4); /* 0x3607C82C: mov esi, dword ptr [ecx + 4] */ 6212 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C82F: cmp ecx, dword ptr [esi + 8] */ 6213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6215 _flag_k = FK_CMP; 6216 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C839; /* 0x3607C832: jne 0x3607c839 */ 6217 L_3607C834: 6218 MEM32(esi + 0x8) = edx; /* 0x3607C834: mov dword ptr [esi + 8], edx */ 6219 goto L_3607C83B; /* 0x3607C837: jmp 0x3607c83b */ 6220 L_3607C839: 6221 MEM32(esi) = edx; /* 0x3607C839: mov dword ptr [esi], edx */ 6222 L_3607C83B: 6223 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 6224 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 6225 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 6226 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 6227 L_3607C847: 6228 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 6229 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 6230 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 6231 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 6232 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 6233 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 6234 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 6235 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 6236 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 6237 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 6238 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 6239 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 6240 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 6241 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6243 _flag_k = FK_CMP; 6244 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 6245 L_3607C86E: 6246 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 6247 L_3607C871: 6248 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 6249 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 6250 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 6251 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 6252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6253 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6254 _flag_k = FK_CMP; 6255 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 6256 L_3607C87F: 6257 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 6258 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 6259 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 6260 L_3607C889: 6261 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 6262 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 6263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6264 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6265 _flag_k = FK_CMP; 6266 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 6267 L_3607C890: 6268 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 6269 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 6270 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 6271 L_3607C899: 6272 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 6273 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 6274 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 6275 L_3607C93F: 6276 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 6277 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 6278 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 6279 PUSH32(esp, edx); /* 0x3607C948: push edx */ 6280 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 6281 RECOMP_FLAGS_IN(); 6282 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 6283 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 6284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6286 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 6287 _flag_k = FK_ADD; 6288 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6289 eax = eax - 1; /* 0x3607C957: dec eax */ 6290 _flag_k = FK_DEC; 6291 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 6292 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 6293 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 6294 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 6295 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 6296 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 6297 esp = ebp; /* 0x3607C963: mov esp, ebp */ 6298 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 6299 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 6300 RECOMP_REGS_OUT(); 6301 } 6302 6303 void sub_3607C83B(void) { 6304 int _fpu_cmp = 0; 6305 uint32_t _cf = 0; 6306 int _df = 1; 6307 uint32_t _flag_k = FK_NONE; 6308 uint32_t _flag_a = 0, _flag_b = 0; 6309 uint32_t _itail_tgt = 0; 6310 RECOMP_REGS_LOCALS 6311 RECOMP_ENTER(0x3607C83Bu); 6312 6313 L_3607C83B: 6314 MEM32(edx + 0x8) = ecx; /* 0x3607C83B: mov dword ptr [edx + 8], ecx */ 6315 MEM32(ecx + 0x4) = edx; /* 0x3607C83E: mov dword ptr [ecx + 4], edx */ 6316 ecx = MEM32(eax + 0x4); /* 0x3607C841: mov ecx, dword ptr [eax + 4] */ 6317 ecx = MEM32(ecx + 0x8); /* 0x3607C844: mov ecx, dword ptr [ecx + 8] */ 6318 edx = MEM32(eax + 0x4); /* 0x3607C847: mov edx, dword ptr [eax + 4] */ 6319 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C84A: mov dl, byte ptr [edx + 0x28] */ 6320 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C84D: mov byte ptr [ecx + 0x28], dl */ 6321 edx = MEM32(eax + 0x4); /* 0x3607C850: mov edx, dword ptr [eax + 4] */ 6322 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C853: mov byte ptr [edx + 0x28], bl */ 6323 ecx = MEM32(ecx + 0x8); /* 0x3607C856: mov ecx, dword ptr [ecx + 8] */ 6324 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C859: mov byte ptr [ecx + 0x28], bl */ 6325 ecx = MEM32(eax + 0x4); /* 0x3607C85C: mov ecx, dword ptr [eax + 4] */ 6326 edx = MEM32(ecx + 0x8); /* 0x3607C85F: mov edx, dword ptr [ecx + 8] */ 6327 esi = MEM32(edx); /* 0x3607C862: mov esi, dword ptr [edx] */ 6328 MEM32(ecx + 0x8) = esi; /* 0x3607C864: mov dword ptr [ecx + 8], esi */ 6329 esi = MEM32(edx); /* 0x3607C867: mov esi, dword ptr [edx] */ 6330 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C869: cmp esi, dword ptr [edi + 8] */ 6331 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6333 _flag_k = FK_CMP; 6334 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C871; /* 0x3607C86C: je 0x3607c871 */ 6335 L_3607C86E: 6336 MEM32(esi + 0x4) = ecx; /* 0x3607C86E: mov dword ptr [esi + 4], ecx */ 6337 L_3607C871: 6338 esi = MEM32(ecx + 0x4); /* 0x3607C871: mov esi, dword ptr [ecx + 4] */ 6339 MEM32(edx + 0x4) = esi; /* 0x3607C874: mov dword ptr [edx + 4], esi */ 6340 esi = MEM32(edi + 0x4); /* 0x3607C877: mov esi, dword ptr [edi + 4] */ 6341 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C87A: cmp ecx, dword ptr [esi + 4] */ 6342 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6344 _flag_k = FK_CMP; 6345 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C889; /* 0x3607C87D: jne 0x3607c889 */ 6346 L_3607C87F: 6347 MEM32(esi + 0x4) = edx; /* 0x3607C87F: mov dword ptr [esi + 4], edx */ 6348 MEM32(edx) = ecx; /* 0x3607C882: mov dword ptr [edx], ecx */ 6349 goto L_3607C93F; /* 0x3607C884: jmp 0x3607c93f */ 6350 L_3607C889: 6351 esi = MEM32(ecx + 0x4); /* 0x3607C889: mov esi, dword ptr [ecx + 4] */ 6352 /* cmp ecx, MEM32(esi) */ /* 0x3607C88C: cmp ecx, dword ptr [esi] */ 6353 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi)); 6354 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6355 _flag_k = FK_CMP; 6356 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C899; /* 0x3607C88E: jne 0x3607c899 */ 6357 L_3607C890: 6358 MEM32(esi) = edx; /* 0x3607C890: mov dword ptr [esi], edx */ 6359 MEM32(edx) = ecx; /* 0x3607C892: mov dword ptr [edx], ecx */ 6360 goto L_3607C93F; /* 0x3607C894: jmp 0x3607c93f */ 6361 L_3607C899: 6362 MEM32(esi + 0x8) = edx; /* 0x3607C899: mov dword ptr [esi + 8], edx */ 6363 MEM32(edx) = ecx; /* 0x3607C89C: mov dword ptr [edx], ecx */ 6364 goto L_3607C93F; /* 0x3607C89E: jmp 0x3607c93f */ 6365 L_3607C93F: 6366 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 6367 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 6368 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 6369 PUSH32(esp, edx); /* 0x3607C948: push edx */ 6370 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 6371 RECOMP_FLAGS_IN(); 6372 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 6373 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 6374 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6375 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6376 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 6377 _flag_k = FK_ADD; 6378 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6379 eax = eax - 1; /* 0x3607C957: dec eax */ 6380 _flag_k = FK_DEC; 6381 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 6382 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 6383 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 6384 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 6385 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 6386 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 6387 esp = ebp; /* 0x3607C963: mov esp, ebp */ 6388 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 6389 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 6390 RECOMP_REGS_OUT(); 6391 } 6392 6393 void sub_3607C8E7(void) { 6394 int _fpu_cmp = 0; 6395 uint32_t _cf = 0; 6396 int _df = 1; 6397 uint32_t _flag_k = FK_NONE; 6398 uint32_t _flag_a = 0, _flag_b = 0; 6399 uint32_t _itail_tgt = 0; 6400 RECOMP_REGS_LOCALS 6401 RECOMP_ENTER(0x3607C8E7u); 6402 6403 L_3607C8E7: 6404 MEM32(edx) = ecx; /* 0x3607C8E7: mov dword ptr [edx], ecx */ 6405 MEM32(ecx + 0x4) = edx; /* 0x3607C8E9: mov dword ptr [ecx + 4], edx */ 6406 ecx = MEM32(eax + 0x4); /* 0x3607C8EC: mov ecx, dword ptr [eax + 4] */ 6407 ecx = MEM32(ecx); /* 0x3607C8EF: mov ecx, dword ptr [ecx] */ 6408 edx = MEM32(eax + 0x4); /* 0x3607C8F1: mov edx, dword ptr [eax + 4] */ 6409 SET_LO8(edx, MEM8(edx + 0x28)); /* 0x3607C8F4: mov dl, byte ptr [edx + 0x28] */ 6410 MEM8(ecx + 0x28) = (uint8_t)(LO8(edx)); /* 0x3607C8F7: mov byte ptr [ecx + 0x28], dl */ 6411 edx = MEM32(eax + 0x4); /* 0x3607C8FA: mov edx, dword ptr [eax + 4] */ 6412 MEM8(edx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C8FD: mov byte ptr [edx + 0x28], bl */ 6413 ecx = MEM32(ecx); /* 0x3607C900: mov ecx, dword ptr [ecx] */ 6414 MEM8(ecx + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C902: mov byte ptr [ecx + 0x28], bl */ 6415 ecx = MEM32(eax + 0x4); /* 0x3607C905: mov ecx, dword ptr [eax + 4] */ 6416 edx = MEM32(ecx); /* 0x3607C908: mov edx, dword ptr [ecx] */ 6417 esi = MEM32(edx + 0x8); /* 0x3607C90A: mov esi, dword ptr [edx + 8] */ 6418 MEM32(ecx) = esi; /* 0x3607C90D: mov dword ptr [ecx], esi */ 6419 esi = MEM32(edx + 0x8); /* 0x3607C90F: mov esi, dword ptr [edx + 8] */ 6420 /* cmp esi, MEM32(edi + 0x8) */ /* 0x3607C912: cmp esi, dword ptr [edi + 8] */ 6421 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 6422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6423 _flag_k = FK_CMP; 6424 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C91A; /* 0x3607C915: je 0x3607c91a */ 6425 L_3607C917: 6426 MEM32(esi + 0x4) = ecx; /* 0x3607C917: mov dword ptr [esi + 4], ecx */ 6427 L_3607C91A: 6428 esi = MEM32(ecx + 0x4); /* 0x3607C91A: mov esi, dword ptr [ecx + 4] */ 6429 MEM32(edx + 0x4) = esi; /* 0x3607C91D: mov dword ptr [edx + 4], esi */ 6430 esi = MEM32(edi + 0x4); /* 0x3607C920: mov esi, dword ptr [edi + 4] */ 6431 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x3607C923: cmp ecx, dword ptr [esi + 4] */ 6432 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6433 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6434 _flag_k = FK_CMP; 6435 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C92D; /* 0x3607C926: jne 0x3607c92d */ 6436 L_3607C928: 6437 MEM32(esi + 0x4) = edx; /* 0x3607C928: mov dword ptr [esi + 4], edx */ 6438 goto L_3607C93C; /* 0x3607C92B: jmp 0x3607c93c */ 6439 L_3607C92D: 6440 esi = MEM32(ecx + 0x4); /* 0x3607C92D: mov esi, dword ptr [ecx + 4] */ 6441 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607C930: cmp ecx, dword ptr [esi + 8] */ 6442 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6444 _flag_k = FK_CMP; 6445 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C93A; /* 0x3607C933: jne 0x3607c93a */ 6446 L_3607C935: 6447 MEM32(esi + 0x8) = edx; /* 0x3607C935: mov dword ptr [esi + 8], edx */ 6448 goto L_3607C93C; /* 0x3607C938: jmp 0x3607c93c */ 6449 L_3607C93A: 6450 MEM32(esi) = edx; /* 0x3607C93A: mov dword ptr [esi], edx */ 6451 L_3607C93C: 6452 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 6453 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 6454 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 6455 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 6456 PUSH32(esp, edx); /* 0x3607C948: push edx */ 6457 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 6458 RECOMP_FLAGS_IN(); 6459 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 6460 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 6461 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6462 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6463 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 6464 _flag_k = FK_ADD; 6465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6466 eax = eax - 1; /* 0x3607C957: dec eax */ 6467 _flag_k = FK_DEC; 6468 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 6469 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 6470 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 6471 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 6472 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 6473 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 6474 esp = ebp; /* 0x3607C963: mov esp, ebp */ 6475 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 6476 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 6477 RECOMP_REGS_OUT(); 6478 } 6479 6480 void sub_3607C93C(void) { 6481 int _fpu_cmp = 0; 6482 uint32_t _cf = 0; 6483 int _df = 1; 6484 uint32_t _flag_k = FK_NONE; 6485 uint32_t _flag_a = 0, _flag_b = 0; 6486 uint32_t _itail_tgt = 0; 6487 RECOMP_REGS_LOCALS 6488 RECOMP_ENTER(0x3607C93Cu); 6489 6490 L_3607C93C: 6491 MEM32(edx + 0x8) = ecx; /* 0x3607C93C: mov dword ptr [edx + 8], ecx */ 6492 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 6493 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 6494 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 6495 PUSH32(esp, edx); /* 0x3607C948: push edx */ 6496 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 6497 RECOMP_FLAGS_IN(); 6498 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 6499 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 6500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6501 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6502 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 6503 _flag_k = FK_ADD; 6504 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6505 eax = eax - 1; /* 0x3607C957: dec eax */ 6506 _flag_k = FK_DEC; 6507 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 6508 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 6509 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 6510 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 6511 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 6512 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 6513 esp = ebp; /* 0x3607C963: mov esp, ebp */ 6514 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 6515 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 6516 RECOMP_REGS_OUT(); 6517 } 6518 6519 void sub_3607C93F(void) { 6520 int _fpu_cmp = 0; 6521 uint32_t _cf = 0; 6522 int _df = 1; 6523 uint32_t _flag_k = FK_NONE; 6524 uint32_t _flag_a = 0, _flag_b = 0; 6525 uint32_t _itail_tgt = 0; 6526 RECOMP_REGS_LOCALS 6527 RECOMP_ENTER(0x3607C93Fu); 6528 6529 L_3607C93F: 6530 MEM32(ecx + 0x4) = edx; /* 0x3607C93F: mov dword ptr [ecx + 4], edx */ 6531 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 6532 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 6533 PUSH32(esp, edx); /* 0x3607C948: push edx */ 6534 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 6535 RECOMP_FLAGS_IN(); 6536 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 6537 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 6538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6540 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 6541 _flag_k = FK_ADD; 6542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6543 eax = eax - 1; /* 0x3607C957: dec eax */ 6544 _flag_k = FK_DEC; 6545 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 6546 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 6547 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 6548 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 6549 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 6550 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 6551 esp = ebp; /* 0x3607C963: mov esp, ebp */ 6552 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 6553 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 6554 RECOMP_REGS_OUT(); 6555 } 6556 6557 void sub_3607C942(void) { 6558 int _fpu_cmp = 0; 6559 uint32_t _cf = 0; 6560 int _df = 1; 6561 uint32_t _flag_k = FK_NONE; 6562 uint32_t _flag_a = 0, _flag_b = 0; 6563 uint32_t _itail_tgt = 0; 6564 RECOMP_REGS_LOCALS 6565 RECOMP_ENTER(0x3607C942u); 6566 6567 L_3607C942: 6568 MEM8(eax + 0x28) = (uint8_t)(LO8(ebx)); /* 0x3607C942: mov byte ptr [eax + 0x28], bl */ 6569 edx = MEM32(ebp + (-0x4)); /* 0x3607C945: mov edx, dword ptr [ebp - 4] */ 6570 PUSH32(esp, edx); /* 0x3607C948: push edx */ 6571 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C949: call 0x3615fcc4 */ /* not lifted */ 6572 RECOMP_FLAGS_IN(); 6573 eax = MEM32(edi + 0x10); /* 0x3607C94E: mov eax, dword ptr [edi + 0x10] */ 6574 ecx = MEM32(ebp + 0xC); /* 0x3607C951: mov ecx, dword ptr [ebp + 0xc] */ 6575 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6576 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6577 esp = esp + 4; /* 0x3607C954: add esp, 4 */ 6578 _flag_k = FK_ADD; 6579 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6580 eax = eax - 1; /* 0x3607C957: dec eax */ 6581 _flag_k = FK_DEC; 6582 MEM32(edi + 0x10) = eax; /* 0x3607C958: mov dword ptr [edi + 0x10], eax */ 6583 eax = MEM32(ebp + 0x8); /* 0x3607C95B: mov eax, dword ptr [ebp + 8] */ 6584 edi = POP32_VAL(esp); /* 0x3607C95E: pop edi */ 6585 esi = POP32_VAL(esp); /* 0x3607C95F: pop esi */ 6586 MEM32(eax) = ecx; /* 0x3607C960: mov dword ptr [eax], ecx */ 6587 ebx = POP32_VAL(esp); /* 0x3607C962: pop ebx */ 6588 esp = ebp; /* 0x3607C963: mov esp, ebp */ 6589 ebp = POP32_VAL(esp); /* 0x3607C965: pop ebp */ 6590 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607C966: ret 8 */ 6591 RECOMP_REGS_OUT(); 6592 } 6593 6594 void sub_3607C970(void) { 6595 int _fpu_cmp = 0; 6596 uint32_t _cf = 0; 6597 int _df = 1; 6598 uint32_t _flag_k = FK_NONE; 6599 uint32_t _flag_a = 0, _flag_b = 0; 6600 uint32_t _itail_tgt = 0; 6601 RECOMP_REGS_LOCALS 6602 RECOMP_ENTER(0x3607C970u); 6603 6604 L_3607C970: 6605 PUSH32(esp, ebp); /* 0x3607C970: push ebp */ 6606 ebp = esp; /* 0x3607C971: mov ebp, esp */ 6607 PUSH32(esp, ebx); /* 0x3607C973: push ebx */ 6608 ebx = MEM32(ebp + 0x10); /* 0x3607C974: mov ebx, dword ptr [ebp + 0x10] */ 6609 PUSH32(esp, esi); /* 0x3607C977: push esi */ 6610 esi = ecx; /* 0x3607C978: mov esi, ecx */ 6611 eax = MEM32(esi + 0x10); /* 0x3607C97A: mov eax, dword ptr [esi + 0x10] */ 6612 /* test eax, eax */ /* 0x3607C97D: test eax, eax */ 6613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6614 _cf = 0; 6615 _flag_k = FK_TEST; 6616 ecx = MEM32(ebp + 0xC); /* 0x3607C97F: mov ecx, dword ptr [ebp + 0xc] */ 6617 PUSH32(esp, edi); /* 0x3607C982: push edi */ 6618 if (TEST_Z(_flag_a, _flag_b)) goto L_3607C9E5; /* 0x3607C983: je 0x3607c9e5 */ 6619 L_3607C985: 6620 eax = MEM32(esi + 0x4); /* 0x3607C985: mov eax, dword ptr [esi + 4] */ 6621 /* cmp ecx, MEM32(eax) */ /* 0x3607C988: cmp ecx, dword ptr [eax] */ 6622 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 6623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6624 _flag_k = FK_CMP; 6625 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C9E5; /* 0x3607C98A: jne 0x3607c9e5 */ 6626 L_3607C98C: 6627 /* cmp ebx, eax */ /* 0x3607C98C: cmp ebx, eax */ 6628 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6629 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6630 _flag_k = FK_CMP; 6631 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C9E5; /* 0x3607C98E: jne 0x3607c9e5 */ 6632 L_3607C990: 6633 ebx = MEM32(eax + 0x4); /* 0x3607C990: mov ebx, dword ptr [eax + 4] */ 6634 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3607C993: cmp ebx, dword ptr [esi + 8] */ 6635 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6637 _flag_k = FK_CMP; 6638 edi = ebx; /* 0x3607C996: mov edi, ebx */ 6639 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607C9B9; /* 0x3607C998: je 0x3607c9b9 */ 6640 L_3607C99A: 6641 eax = MEM32(edi + 0x8); /* 0x3607C99A: mov eax, dword ptr [edi + 8] */ 6642 PUSH32(esp, eax); /* 0x3607C99D: push eax */ 6643 ecx = esi; /* 0x3607C99E: mov ecx, esi */ 6644 RECOMP_ICALL(0x3607CCB0u); /* 0x3607C9A0: call 0x3607ccb0 */ /* not lifted */ 6645 RECOMP_FLAGS_IN(); 6646 edi = MEM32(edi); /* 0x3607C9A5: mov edi, dword ptr [edi] */ 6647 PUSH32(esp, ebx); /* 0x3607C9A7: push ebx */ 6648 RECOMP_ICALL(0x3615FCC4u); /* 0x3607C9A8: call 0x3615fcc4 */ /* not lifted */ 6649 RECOMP_FLAGS_IN(); 6650 eax = MEM32(esi + 0x8); /* 0x3607C9AD: mov eax, dword ptr [esi + 8] */ 6651 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6652 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6653 esp = esp + 4; /* 0x3607C9B0: add esp, 4 */ 6654 _flag_k = FK_ADD; 6655 /* cmp edi, eax */ /* 0x3607C9B3: cmp edi, eax */ 6656 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6658 _flag_k = FK_CMP; 6659 ebx = edi; /* 0x3607C9B5: mov ebx, edi */ 6660 RECOMP_BACKEDGE(); 6661 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C99A; /* 0x3607C9B7: jne 0x3607c99a */ 6662 L_3607C9B9: 6663 ecx = MEM32(esi + 0x4); /* 0x3607C9B9: mov ecx, dword ptr [esi + 4] */ 6664 edx = MEM32(esi + 0x8); /* 0x3607C9BC: mov edx, dword ptr [esi + 8] */ 6665 MEM32(ecx + 0x4) = edx; /* 0x3607C9BF: mov dword ptr [ecx + 4], edx */ 6666 eax = MEM32(esi + 0x4); /* 0x3607C9C2: mov eax, dword ptr [esi + 4] */ 6667 MEM32(esi + 0x10) = 0; /* 0x3607C9C5: mov dword ptr [esi + 0x10], 0 */ 6668 MEM32(eax) = eax; /* 0x3607C9CC: mov dword ptr [eax], eax */ 6669 eax = MEM32(esi + 0x4); /* 0x3607C9CE: mov eax, dword ptr [esi + 4] */ 6670 MEM32(eax + 0x8) = eax; /* 0x3607C9D1: mov dword ptr [eax + 8], eax */ 6671 eax = MEM32(esi + 0x4); /* 0x3607C9D4: mov eax, dword ptr [esi + 4] */ 6672 ecx = MEM32(eax); /* 0x3607C9D7: mov ecx, dword ptr [eax] */ 6673 eax = MEM32(ebp + 0x8); /* 0x3607C9D9: mov eax, dword ptr [ebp + 8] */ 6674 edi = POP32_VAL(esp); /* 0x3607C9DC: pop edi */ 6675 esi = POP32_VAL(esp); /* 0x3607C9DD: pop esi */ 6676 MEM32(eax) = ecx; /* 0x3607C9DE: mov dword ptr [eax], ecx */ 6677 ebx = POP32_VAL(esp); /* 0x3607C9E0: pop ebx */ 6678 ebp = POP32_VAL(esp); /* 0x3607C9E1: pop ebp */ 6679 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607C9E2: ret 0xc */ 6680 L_3607C9E5: 6681 /* cmp ecx, ebx */ /* 0x3607C9E5: cmp ecx, ebx */ 6682 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6684 _flag_k = FK_CMP; 6685 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CA06; /* 0x3607C9E7: je 0x3607ca06 */ 6686 L_3607C9E9: 6687 edi = ecx; /* 0x3607C9E9: mov edi, ecx */ 6688 ecx = ebp + 0xC; /* 0x3607C9EB: lea ecx, [ebp + 0xc] */ 6689 RECOMP_ICALL(0x3607CA20u); /* 0x3607C9EE: call 0x3607ca20 */ /* not lifted */ 6690 RECOMP_FLAGS_IN(); 6691 PUSH32(esp, edi); /* 0x3607C9F3: push edi */ 6692 ecx = ebp + 0x10; /* 0x3607C9F4: lea ecx, [ebp + 0x10] */ 6693 PUSH32(esp, ecx); /* 0x3607C9F7: push ecx */ 6694 ecx = esi; /* 0x3607C9F8: mov ecx, esi */ 6695 RECOMP_ICALL(0x3607C5B0u); /* 0x3607C9FA: call 0x3607c5b0 */ /* not lifted */ 6696 RECOMP_FLAGS_IN(); 6697 ecx = MEM32(ebp + 0xC); /* 0x3607C9FF: mov ecx, dword ptr [ebp + 0xc] */ 6698 /* cmp ecx, ebx */ /* 0x3607CA02: cmp ecx, ebx */ 6699 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6700 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6701 _flag_k = FK_CMP; 6702 RECOMP_BACKEDGE(); 6703 if (CMP_NE(_flag_a, _flag_b)) goto L_3607C9E9; /* 0x3607CA04: jne 0x3607c9e9 */ 6704 L_3607CA06: 6705 eax = MEM32(ebp + 0x8); /* 0x3607CA06: mov eax, dword ptr [ebp + 8] */ 6706 edi = POP32_VAL(esp); /* 0x3607CA09: pop edi */ 6707 esi = POP32_VAL(esp); /* 0x3607CA0A: pop esi */ 6708 MEM32(eax) = ecx; /* 0x3607CA0B: mov dword ptr [eax], ecx */ 6709 ebx = POP32_VAL(esp); /* 0x3607CA0D: pop ebx */ 6710 ebp = POP32_VAL(esp); /* 0x3607CA0E: pop ebp */ 6711 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607CA0F: ret 0xc */ 6712 RECOMP_REGS_OUT(); 6713 } 6714 6715 void sub_3607CA20(void) { 6716 int _fpu_cmp = 0; 6717 uint32_t _cf = 0; 6718 int _df = 1; 6719 uint32_t _flag_k = FK_NONE; 6720 uint32_t _flag_a = 0, _flag_b = 0; 6721 uint32_t _itail_tgt = 0; 6722 RECOMP_REGS_LOCALS 6723 RECOMP_ENTER(0x3607CA20u); 6724 6725 L_3607CA20: 6726 eax = MEM32(ecx); /* 0x3607CA20: mov eax, dword ptr [ecx] */ 6727 edx = MEM32(eax + 0x8); /* 0x3607CA22: mov edx, dword ptr [eax + 8] */ 6728 PUSH32(esp, ebx); /* 0x3607CA25: push ebx */ 6729 SET_LO8(ebx, MEM8(edx + 0x29)); /* 0x3607CA26: mov bl, byte ptr [edx + 0x29] */ 6730 /* test LO8(ebx), LO8(ebx) */ /* 0x3607CA29: test bl, bl */ 6731 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6732 _cf = 0; 6733 _flag_k = FK_NARROW(FK_TEST, 24); 6734 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607CA45; /* 0x3607CA2B: jne 0x3607ca45 */ 6735 L_3607CA2D: 6736 eax = MEM32(edx); /* 0x3607CA2D: mov eax, dword ptr [edx] */ 6737 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3607CA2F: mov bl, byte ptr [eax + 0x29] */ 6738 /* test LO8(ebx), LO8(ebx) */ /* 0x3607CA32: test bl, bl */ 6739 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6740 _cf = 0; 6741 _flag_k = FK_NARROW(FK_TEST, 24); 6742 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607CA41; /* 0x3607CA34: jne 0x3607ca41 */ 6743 L_3607CA36: 6744 edx = eax; /* 0x3607CA36: mov edx, eax */ 6745 eax = MEM32(edx); /* 0x3607CA38: mov eax, dword ptr [edx] */ 6746 SET_LO8(ebx, MEM8(eax + 0x29)); /* 0x3607CA3A: mov bl, byte ptr [eax + 0x29] */ 6747 /* test LO8(ebx), LO8(ebx) */ /* 0x3607CA3D: test bl, bl */ 6748 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 6749 _cf = 0; 6750 _flag_k = FK_NARROW(FK_TEST, 24); 6751 RECOMP_BACKEDGE(); 6752 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CA36; /* 0x3607CA3F: je 0x3607ca36 */ 6753 L_3607CA41: 6754 MEM32(ecx) = edx; /* 0x3607CA41: mov dword ptr [ecx], edx */ 6755 ebx = POP32_VAL(esp); /* 0x3607CA43: pop ebx */ 6756 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CA44: ret */ 6757 L_3607CA45: 6758 eax = MEM32(eax + 0x4); /* 0x3607CA45: mov eax, dword ptr [eax + 4] */ 6759 edx = MEM32(ecx); /* 0x3607CA48: mov edx, dword ptr [ecx] */ 6760 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3607CA4A: cmp edx, dword ptr [eax + 8] */ 6761 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6763 _flag_k = FK_CMP; 6764 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CA5B; /* 0x3607CA4D: jne 0x3607ca5b */ 6765 L_3607CA4F: 6766 MEM32(ecx) = eax; /* 0x3607CA4F: mov dword ptr [ecx], eax */ 6767 eax = MEM32(eax + 0x4); /* 0x3607CA51: mov eax, dword ptr [eax + 4] */ 6768 edx = MEM32(ecx); /* 0x3607CA54: mov edx, dword ptr [ecx] */ 6769 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3607CA56: cmp edx, dword ptr [eax + 8] */ 6770 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 6771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6772 _flag_k = FK_CMP; 6773 RECOMP_BACKEDGE(); 6774 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CA4F; /* 0x3607CA59: je 0x3607ca4f */ 6775 L_3607CA5B: 6776 edx = MEM32(ecx); /* 0x3607CA5B: mov edx, dword ptr [ecx] */ 6777 /* cmp MEM32(edx + 0x8), eax */ /* 0x3607CA5D: cmp dword ptr [edx + 8], eax */ 6778 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 6779 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6780 _flag_k = FK_CMP; 6781 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CA64; /* 0x3607CA60: je 0x3607ca64 */ 6782 L_3607CA62: 6783 MEM32(ecx) = eax; /* 0x3607CA62: mov dword ptr [ecx], eax */ 6784 L_3607CA64: 6785 ebx = POP32_VAL(esp); /* 0x3607CA64: pop ebx */ 6786 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CA65: ret */ 6787 RECOMP_REGS_OUT(); 6788 } 6789 6790 void sub_3607CA70(void) { 6791 int _fpu_cmp = 0; 6792 uint32_t _cf = 0; 6793 int _df = 1; 6794 uint32_t _flag_k = FK_NONE; 6795 uint32_t _flag_a = 0, _flag_b = 0; 6796 uint32_t _itail_tgt = 0; 6797 RECOMP_REGS_LOCALS 6798 RECOMP_ENTER(0x3607CA70u); 6799 6800 L_3607CA70: 6801 PUSH32(esp, ebp); /* 0x3607CA70: push ebp */ 6802 ebp = esp; /* 0x3607CA71: mov ebp, esp */ 6803 PUSH32(esp, ebx); /* 0x3607CA73: push ebx */ 6804 ebx = MEM32(ebp + 0x10); /* 0x3607CA74: mov ebx, dword ptr [ebp + 0x10] */ 6805 PUSH32(esp, esi); /* 0x3607CA77: push esi */ 6806 esi = ecx; /* 0x3607CA78: mov esi, ecx */ 6807 eax = MEM32(esi + 0x10); /* 0x3607CA7A: mov eax, dword ptr [esi + 0x10] */ 6808 /* test eax, eax */ /* 0x3607CA7D: test eax, eax */ 6809 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6810 _cf = 0; 6811 _flag_k = FK_TEST; 6812 ecx = MEM32(ebp + 0xC); /* 0x3607CA7F: mov ecx, dword ptr [ebp + 0xc] */ 6813 PUSH32(esp, edi); /* 0x3607CA82: push edi */ 6814 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CAE5; /* 0x3607CA83: je 0x3607cae5 */ 6815 L_3607CA85: 6816 eax = MEM32(esi + 0x4); /* 0x3607CA85: mov eax, dword ptr [esi + 4] */ 6817 /* cmp ecx, MEM32(eax) */ /* 0x3607CA88: cmp ecx, dword ptr [eax] */ 6818 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 6819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6820 _flag_k = FK_CMP; 6821 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CAE5; /* 0x3607CA8A: jne 0x3607cae5 */ 6822 L_3607CA8C: 6823 /* cmp ebx, eax */ /* 0x3607CA8C: cmp ebx, eax */ 6824 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6826 _flag_k = FK_CMP; 6827 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CAE5; /* 0x3607CA8E: jne 0x3607cae5 */ 6828 L_3607CA90: 6829 ebx = MEM32(eax + 0x4); /* 0x3607CA90: mov ebx, dword ptr [eax + 4] */ 6830 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3607CA93: cmp ebx, dword ptr [esi + 8] */ 6831 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6833 _flag_k = FK_CMP; 6834 edi = ebx; /* 0x3607CA96: mov edi, ebx */ 6835 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CAB9; /* 0x3607CA98: je 0x3607cab9 */ 6836 L_3607CA9A: 6837 eax = MEM32(edi + 0x8); /* 0x3607CA9A: mov eax, dword ptr [edi + 8] */ 6838 PUSH32(esp, eax); /* 0x3607CA9D: push eax */ 6839 ecx = esi; /* 0x3607CA9E: mov ecx, esi */ 6840 RECOMP_ICALL(0x3607CCF0u); /* 0x3607CAA0: call 0x3607ccf0 */ /* not lifted */ 6841 RECOMP_FLAGS_IN(); 6842 edi = MEM32(edi); /* 0x3607CAA5: mov edi, dword ptr [edi] */ 6843 PUSH32(esp, ebx); /* 0x3607CAA7: push ebx */ 6844 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CAA8: call 0x3615fcc4 */ /* not lifted */ 6845 RECOMP_FLAGS_IN(); 6846 eax = MEM32(esi + 0x8); /* 0x3607CAAD: mov eax, dword ptr [esi + 8] */ 6847 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6848 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6849 esp = esp + 4; /* 0x3607CAB0: add esp, 4 */ 6850 _flag_k = FK_ADD; 6851 /* cmp edi, eax */ /* 0x3607CAB3: cmp edi, eax */ 6852 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6853 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6854 _flag_k = FK_CMP; 6855 ebx = edi; /* 0x3607CAB5: mov ebx, edi */ 6856 RECOMP_BACKEDGE(); 6857 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CA9A; /* 0x3607CAB7: jne 0x3607ca9a */ 6858 L_3607CAB9: 6859 ecx = MEM32(esi + 0x4); /* 0x3607CAB9: mov ecx, dword ptr [esi + 4] */ 6860 edx = MEM32(esi + 0x8); /* 0x3607CABC: mov edx, dword ptr [esi + 8] */ 6861 MEM32(ecx + 0x4) = edx; /* 0x3607CABF: mov dword ptr [ecx + 4], edx */ 6862 eax = MEM32(esi + 0x4); /* 0x3607CAC2: mov eax, dword ptr [esi + 4] */ 6863 MEM32(esi + 0x10) = 0; /* 0x3607CAC5: mov dword ptr [esi + 0x10], 0 */ 6864 MEM32(eax) = eax; /* 0x3607CACC: mov dword ptr [eax], eax */ 6865 eax = MEM32(esi + 0x4); /* 0x3607CACE: mov eax, dword ptr [esi + 4] */ 6866 MEM32(eax + 0x8) = eax; /* 0x3607CAD1: mov dword ptr [eax + 8], eax */ 6867 eax = MEM32(esi + 0x4); /* 0x3607CAD4: mov eax, dword ptr [esi + 4] */ 6868 ecx = MEM32(eax); /* 0x3607CAD7: mov ecx, dword ptr [eax] */ 6869 eax = MEM32(ebp + 0x8); /* 0x3607CAD9: mov eax, dword ptr [ebp + 8] */ 6870 edi = POP32_VAL(esp); /* 0x3607CADC: pop edi */ 6871 esi = POP32_VAL(esp); /* 0x3607CADD: pop esi */ 6872 MEM32(eax) = ecx; /* 0x3607CADE: mov dword ptr [eax], ecx */ 6873 ebx = POP32_VAL(esp); /* 0x3607CAE0: pop ebx */ 6874 ebp = POP32_VAL(esp); /* 0x3607CAE1: pop ebp */ 6875 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607CAE2: ret 0xc */ 6876 L_3607CAE5: 6877 /* cmp ecx, ebx */ /* 0x3607CAE5: cmp ecx, ebx */ 6878 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6880 _flag_k = FK_CMP; 6881 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CB06; /* 0x3607CAE7: je 0x3607cb06 */ 6882 L_3607CAE9: 6883 edi = ecx; /* 0x3607CAE9: mov edi, ecx */ 6884 ecx = ebp + 0xC; /* 0x3607CAEB: lea ecx, [ebp + 0xc] */ 6885 RECOMP_ICALL(0x36064140u); /* 0x3607CAEE: call 0x36064140 */ /* not lifted */ 6886 RECOMP_FLAGS_IN(); 6887 PUSH32(esp, edi); /* 0x3607CAF3: push edi */ 6888 ecx = ebp + 0x10; /* 0x3607CAF4: lea ecx, [ebp + 0x10] */ 6889 PUSH32(esp, ecx); /* 0x3607CAF7: push ecx */ 6890 ecx = esi; /* 0x3607CAF8: mov ecx, esi */ 6891 RECOMP_ICALL(0x360588E0u); /* 0x3607CAFA: call 0x360588e0 */ /* not lifted */ 6892 RECOMP_FLAGS_IN(); 6893 ecx = MEM32(ebp + 0xC); /* 0x3607CAFF: mov ecx, dword ptr [ebp + 0xc] */ 6894 /* cmp ecx, ebx */ /* 0x3607CB02: cmp ecx, ebx */ 6895 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6897 _flag_k = FK_CMP; 6898 RECOMP_BACKEDGE(); 6899 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CAE9; /* 0x3607CB04: jne 0x3607cae9 */ 6900 L_3607CB06: 6901 eax = MEM32(ebp + 0x8); /* 0x3607CB06: mov eax, dword ptr [ebp + 8] */ 6902 edi = POP32_VAL(esp); /* 0x3607CB09: pop edi */ 6903 esi = POP32_VAL(esp); /* 0x3607CB0A: pop esi */ 6904 MEM32(eax) = ecx; /* 0x3607CB0B: mov dword ptr [eax], ecx */ 6905 ebx = POP32_VAL(esp); /* 0x3607CB0D: pop ebx */ 6906 ebp = POP32_VAL(esp); /* 0x3607CB0E: pop ebp */ 6907 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607CB0F: ret 0xc */ 6908 RECOMP_REGS_OUT(); 6909 } 6910 6911 void sub_3607CB20(void) { 6912 int _fpu_cmp = 0; 6913 uint32_t _cf = 0; 6914 int _df = 1; 6915 uint32_t _flag_k = FK_NONE; 6916 uint32_t _flag_a = 0, _flag_b = 0; 6917 uint32_t _itail_tgt = 0; 6918 RECOMP_REGS_LOCALS 6919 RECOMP_ENTER(0x3607CB20u); 6920 6921 L_3607CB20: 6922 PUSH32(esp, ebp); /* 0x3607CB20: push ebp */ 6923 ebp = esp; /* 0x3607CB21: mov ebp, esp */ 6924 PUSH32(esp, ecx); /* 0x3607CB23: push ecx */ 6925 PUSH32(esp, ebx); /* 0x3607CB24: push ebx */ 6926 PUSH32(esp, esi); /* 0x3607CB25: push esi */ 6927 esi = ecx; /* 0x3607CB26: mov esi, ecx */ 6928 ecx = MEM32(ebp + 0x8); /* 0x3607CB28: mov ecx, dword ptr [ebp + 8] */ 6929 ebx = ecx + ecx + 0x2; /* 0x3607CB2B: lea ebx, [ecx + ecx + 2] */ 6930 /* cmp ebx, 8 */ /* 0x3607CB2F: cmp ebx, 8 */ 6931 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 6932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6933 _flag_k = FK_CMP; 6934 PUSH32(esp, edi); /* 0x3607CB32: push edi */ 6935 MEM32(ebp + 0x8) = ebx; /* 0x3607CB33: mov dword ptr [ebp + 8], ebx */ 6936 if (CMP_AE(_flag_a, _flag_b)) goto L_3607CB40; /* 0x3607CB36: jae 0x3607cb40 */ 6937 L_3607CB38: 6938 ebx = 8; /* 0x3607CB38: mov ebx, 8 */ 6939 MEM32(ebp + 0x8) = ebx; /* 0x3607CB3D: mov dword ptr [ebp + 8], ebx */ 6940 L_3607CB40: 6941 eax = MEM32(esi + 0x28); /* 0x3607CB40: mov eax, dword ptr [esi + 0x28] */ 6942 /* cmp ebx, eax */ /* 0x3607CB43: cmp ebx, eax */ 6943 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6945 _flag_k = FK_CMP; 6946 if (CMP_A(_flag_a, _flag_b)) goto L_3607CBB7; /* 0x3607CB45: ja 0x3607cbb7 */ 6947 L_3607CB47: 6948 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3607CB47: shr eax, 2 */ 6949 if (2u) { _flag_a = recomp_flags_pack((eax >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6950 eax = eax >> 2u; /* 0x3607CB47: shr eax, 2 */ 6951 /* cmp eax, ebx */ /* 0x3607CB4A: cmp eax, ebx */ 6952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6953 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6954 _flag_k = FK_CMP; 6955 if (CMP_AE(_flag_a, _flag_b)) goto L_3607CBB7; /* 0x3607CB4C: jae 0x3607cbb7 */ 6956 L_3607CB4E: 6957 edx = MEM32(esi + 0x24); /* 0x3607CB4E: mov edx, dword ptr [esi + 0x24] */ 6958 edi = edx + eax * 4; /* 0x3607CB51: lea edi, [edx + eax*4] */ 6959 edx = MEM32(esi + 0x10); /* 0x3607CB54: mov edx, dword ptr [esi + 0x10] */ 6960 eax = edx + (-0x4); /* 0x3607CB57: lea eax, [edx - 4] */ 6961 /* cmp edi, eax */ /* 0x3607CB5A: cmp edi, eax */ 6962 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 6963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6964 _flag_k = FK_CMP; 6965 if (CMP_AE(_flag_a, _flag_b)) goto L_3607CB8B; /* 0x3607CB5C: jae 0x3607cb8b */ 6966 L_3607CB5E: 6967 esi = MEM32(esi + 0x20); /* 0x3607CB5E: mov esi, dword ptr [esi + 0x20] */ 6968 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 6969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6970 esi = esi + 8; /* 0x3607CB61: add esi, 8 */ 6971 _flag_k = FK_ADD; 6972 eax = edx + (-0x4); /* 0x3607CB64: lea eax, [edx - 4] */ 6973 /* cmp eax, esi */ /* 0x3607CB67: cmp eax, esi */ 6974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6976 _flag_k = FK_CMP; 6977 ecx = edi; /* 0x3607CB69: mov ecx, edi */ 6978 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CC10; /* 0x3607CB6B: je 0x3607cc10 */ 6979 L_3607CB71: 6980 edx = MEM32(eax); /* 0x3607CB71: mov edx, dword ptr [eax] */ 6981 MEM32(ecx) = edx; /* 0x3607CB73: mov dword ptr [ecx], edx */ 6982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 6983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6984 eax = eax + 4; /* 0x3607CB75: add eax, 4 */ 6985 _flag_k = FK_ADD; 6986 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 6987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6988 ecx = ecx + 4; /* 0x3607CB78: add ecx, 4 */ 6989 _flag_k = FK_ADD; 6990 /* cmp eax, esi */ /* 0x3607CB7B: cmp eax, esi */ 6991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6993 _flag_k = FK_CMP; 6994 RECOMP_BACKEDGE(); 6995 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CB71; /* 0x3607CB7D: jne 0x3607cb71 */ 6996 L_3607CB7F: 6997 eax = edi + 0x4; /* 0x3607CB7F: lea eax, [edi + 4] */ 6998 edi = POP32_VAL(esp); /* 0x3607CB82: pop edi */ 6999 esi = POP32_VAL(esp); /* 0x3607CB83: pop esi */ 7000 ebx = POP32_VAL(esp); /* 0x3607CB84: pop ebx */ 7001 esp = ebp; /* 0x3607CB85: mov esp, ebp */ 7002 ebp = POP32_VAL(esp); /* 0x3607CB87: pop ebp */ 7003 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CB88: ret 4 */ 7004 L_3607CB8B: 7005 eax = MEM32(esi + 0x20); /* 0x3607CB8B: mov eax, dword ptr [esi + 0x20] */ 7006 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7008 eax = eax + 8; /* 0x3607CB8E: add eax, 8 */ 7009 _flag_k = FK_ADD; 7010 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFFFCu); 7011 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7012 edx = edx + 0xFFFFFFFCu; /* 0x3607CB91: add edx, -4 */ 7013 _flag_k = FK_ADD; 7014 /* cmp edx, eax */ /* 0x3607CB94: cmp edx, eax */ 7015 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7017 _flag_k = FK_CMP; 7018 ecx = edi + ecx * 4 + 0x8; /* 0x3607CB96: lea ecx, [edi + ecx*4 + 8] */ 7019 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CC10; /* 0x3607CB9A: je 0x3607cc10 */ 7020 L_3607CB9C: 7021 esi = MEM32(eax + (-0x4)); /* 0x3607CB9C: mov esi, dword ptr [eax - 4] */ 7022 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7024 eax = eax - 4; /* 0x3607CB9F: sub eax, 4 */ 7025 _flag_k = FK_CMP; 7026 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 7027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7028 ecx = ecx - 4; /* 0x3607CBA2: sub ecx, 4 */ 7029 _flag_k = FK_CMP; 7030 /* cmp eax, edx */ /* 0x3607CBA5: cmp eax, edx */ 7031 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7033 _flag_k = FK_CMP; 7034 MEM32(ecx) = esi; /* 0x3607CBA7: mov dword ptr [ecx], esi */ 7035 RECOMP_BACKEDGE(); 7036 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CB9C; /* 0x3607CBA9: jne 0x3607cb9c */ 7037 L_3607CBAB: 7038 eax = edi + 0x4; /* 0x3607CBAB: lea eax, [edi + 4] */ 7039 edi = POP32_VAL(esp); /* 0x3607CBAE: pop edi */ 7040 esi = POP32_VAL(esp); /* 0x3607CBAF: pop esi */ 7041 ebx = POP32_VAL(esp); /* 0x3607CBB0: pop ebx */ 7042 esp = ebp; /* 0x3607CBB1: mov esp, ebp */ 7043 ebp = POP32_VAL(esp); /* 0x3607CBB3: pop ebp */ 7044 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CBB4: ret 4 */ 7045 L_3607CBB7: 7046 eax = ebx * 4; /* 0x3607CBB7: lea eax, [ebx*4] */ 7047 /* test eax, eax */ /* 0x3607CBBE: test eax, eax */ 7048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7049 _cf = 0; 7050 _flag_k = FK_TEST; 7051 if (TEST_NS(_flag_a, _flag_b)) goto L_3607CBC4; /* 0x3607CBC0: jge 0x3607cbc4 */ 7052 L_3607CBC2: 7053 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7054 eax = 0; /* 0x3607CBC2: xor eax, eax */ 7055 _cf = 0; 7056 _flag_k = FK_TEST; 7057 L_3607CBC4: 7058 PUSH32(esp, eax); /* 0x3607CBC4: push eax */ 7059 RECOMP_ICALL(0x3615FD6Au); /* 0x3607CBC5: call 0x3615fd6a */ /* not lifted */ 7060 RECOMP_FLAGS_IN(); 7061 ecx = ebx; /* 0x3607CBCA: mov ecx, ebx */ 7062 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607CBCC: shr ecx, 2 */ 7063 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7064 ecx = ecx >> 2u; /* 0x3607CBCC: shr ecx, 2 */ 7065 edi = eax + ecx * 4; /* 0x3607CBCF: lea edi, [eax + ecx*4] */ 7066 ecx = MEM32(esi + 0x20); /* 0x3607CBD2: mov ecx, dword ptr [esi + 0x20] */ 7067 MEM32(ebp + (-0x4)) = eax; /* 0x3607CBD5: mov dword ptr [ebp - 4], eax */ 7068 eax = MEM32(esi + 0x10); /* 0x3607CBD8: mov eax, dword ptr [esi + 0x10] */ 7069 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 7070 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7071 ecx = ecx + 8; /* 0x3607CBDB: add ecx, 8 */ 7072 _flag_k = FK_ADD; 7073 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7075 eax = eax - 4; /* 0x3607CBDE: sub eax, 4 */ 7076 _flag_k = FK_CMP; 7077 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7079 esp = esp + 4; /* 0x3607CBE1: add esp, 4 */ 7080 _flag_k = FK_ADD; 7081 /* cmp eax, ecx */ /* 0x3607CBE4: cmp eax, ecx */ 7082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7084 _flag_k = FK_CMP; 7085 edx = edi; /* 0x3607CBE6: mov edx, edi */ 7086 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CBFB; /* 0x3607CBE8: je 0x3607cbfb */ 7087 L_3607CBEA: 7088 ebx = MEM32(eax); /* 0x3607CBEA: mov ebx, dword ptr [eax] */ 7089 MEM32(edx) = ebx; /* 0x3607CBEC: mov dword ptr [edx], ebx */ 7090 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 7091 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7092 eax = eax + 4; /* 0x3607CBEE: add eax, 4 */ 7093 _flag_k = FK_ADD; 7094 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 7095 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7096 edx = edx + 4; /* 0x3607CBF1: add edx, 4 */ 7097 _flag_k = FK_ADD; 7098 /* cmp eax, ecx */ /* 0x3607CBF4: cmp eax, ecx */ 7099 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7100 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7101 _flag_k = FK_CMP; 7102 RECOMP_BACKEDGE(); 7103 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CBEA; /* 0x3607CBF6: jne 0x3607cbea */ 7104 L_3607CBF8: 7105 ebx = MEM32(ebp + 0x8); /* 0x3607CBF8: mov ebx, dword ptr [ebp + 8] */ 7106 L_3607CBFB: 7107 edx = MEM32(esi + 0x24); /* 0x3607CBFB: mov edx, dword ptr [esi + 0x24] */ 7108 PUSH32(esp, edx); /* 0x3607CBFE: push edx */ 7109 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CBFF: call 0x3615fcc4 */ /* not lifted */ 7110 RECOMP_FLAGS_IN(); 7111 eax = MEM32(ebp + (-0x4)); /* 0x3607CC04: mov eax, dword ptr [ebp - 4] */ 7112 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7113 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7114 esp = esp + 4; /* 0x3607CC07: add esp, 4 */ 7115 _flag_k = FK_ADD; 7116 MEM32(esi + 0x24) = eax; /* 0x3607CC0A: mov dword ptr [esi + 0x24], eax */ 7117 MEM32(esi + 0x28) = ebx; /* 0x3607CC0D: mov dword ptr [esi + 0x28], ebx */ 7118 L_3607CC10: 7119 eax = edi + 0x4; /* 0x3607CC10: lea eax, [edi + 4] */ 7120 edi = POP32_VAL(esp); /* 0x3607CC13: pop edi */ 7121 esi = POP32_VAL(esp); /* 0x3607CC14: pop esi */ 7122 ebx = POP32_VAL(esp); /* 0x3607CC15: pop ebx */ 7123 esp = ebp; /* 0x3607CC16: mov esp, ebp */ 7124 ebp = POP32_VAL(esp); /* 0x3607CC18: pop ebp */ 7125 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CC19: ret 4 */ 7126 RECOMP_REGS_OUT(); 7127 } 7128 7129 void sub_3607CC20(void) { 7130 int _fpu_cmp = 0; 7131 uint32_t _cf = 0; 7132 int _df = 1; 7133 uint32_t _flag_k = FK_NONE; 7134 uint32_t _flag_a = 0, _flag_b = 0; 7135 uint32_t _itail_tgt = 0; 7136 RECOMP_REGS_LOCALS 7137 RECOMP_ENTER(0x3607CC20u); 7138 7139 L_3607CC20: 7140 PUSH32(esp, ebp); /* 0x3607CC20: push ebp */ 7141 ebp = esp; /* 0x3607CC21: mov ebp, esp */ 7142 eax = ecx; /* 0x3607CC23: mov eax, ecx */ 7143 ecx = MEM32(ebp + 0xC); /* 0x3607CC25: mov ecx, dword ptr [ebp + 0xc] */ 7144 edx = MEM32(ecx); /* 0x3607CC28: mov edx, dword ptr [ecx] */ 7145 MEM32(eax) = edx; /* 0x3607CC2A: mov dword ptr [eax], edx */ 7146 edx = MEM32(ecx); /* 0x3607CC2C: mov edx, dword ptr [ecx] */ 7147 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x1000u); 7148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7149 edx = edx + 0x1000u; /* 0x3607CC2E: add edx, 0x1000 */ 7150 _flag_k = FK_ADD; 7151 MEM32(eax + 0x4) = edx; /* 0x3607CC34: mov dword ptr [eax + 4], edx */ 7152 edx = MEM32(ebp + 0x8); /* 0x3607CC37: mov edx, dword ptr [ebp + 8] */ 7153 MEM32(eax + 0x8) = edx; /* 0x3607CC3A: mov dword ptr [eax + 8], edx */ 7154 MEM32(eax + 0xC) = ecx; /* 0x3607CC3D: mov dword ptr [eax + 0xc], ecx */ 7155 ebp = POP32_VAL(esp); /* 0x3607CC40: pop ebp */ 7156 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607CC41: ret 8 */ 7157 RECOMP_REGS_OUT(); 7158 } 7159 7160 void sub_3607CC50(void) { 7161 int _fpu_cmp = 0; 7162 uint32_t _cf = 0; 7163 int _df = 1; 7164 uint32_t _flag_k = FK_NONE; 7165 uint32_t _flag_a = 0, _flag_b = 0; 7166 uint32_t _itail_tgt = 0; 7167 RECOMP_REGS_LOCALS 7168 RECOMP_ENTER(0x3607CC50u); 7169 7170 L_3607CC50: 7171 PUSH32(esp, ebp); /* 0x3607CC50: push ebp */ 7172 ebp = esp; /* 0x3607CC51: mov ebp, esp */ 7173 PUSH32(esp, ebx); /* 0x3607CC53: push ebx */ 7174 PUSH32(esp, esi); /* 0x3607CC54: push esi */ 7175 esi = MEM32(ecx); /* 0x3607CC55: mov esi, dword ptr [ecx] */ 7176 edx = MEM32(esi + 0x8); /* 0x3607CC57: mov edx, dword ptr [esi + 8] */ 7177 SET_LO8(eax, MEM8(edx + 0x15)); /* 0x3607CC5A: mov al, byte ptr [edx + 0x15] */ 7178 /* test LO8(eax), LO8(eax) */ /* 0x3607CC5D: test al, al */ 7179 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7180 _cf = 0; 7181 _flag_k = FK_NARROW(FK_TEST, 24); 7182 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607CC82; /* 0x3607CC5F: jne 0x3607cc82 */ 7183 L_3607CC61: 7184 eax = MEM32(edx); /* 0x3607CC61: mov eax, dword ptr [edx] */ 7185 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3607CC63: mov bl, byte ptr [eax + 0x15] */ 7186 /* test LO8(ebx), LO8(ebx) */ /* 0x3607CC66: test bl, bl */ 7187 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7188 _cf = 0; 7189 _flag_k = FK_NARROW(FK_TEST, 24); 7190 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607CC75; /* 0x3607CC68: jne 0x3607cc75 */ 7191 L_3607CC6A: 7192 edx = eax; /* 0x3607CC6A: mov edx, eax */ 7193 eax = MEM32(edx); /* 0x3607CC6C: mov eax, dword ptr [edx] */ 7194 SET_LO8(ebx, MEM8(eax + 0x15)); /* 0x3607CC6E: mov bl, byte ptr [eax + 0x15] */ 7195 /* test LO8(ebx), LO8(ebx) */ /* 0x3607CC71: test bl, bl */ 7196 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 7197 _cf = 0; 7198 _flag_k = FK_NARROW(FK_TEST, 24); 7199 RECOMP_BACKEDGE(); 7200 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CC6A; /* 0x3607CC73: je 0x3607cc6a */ 7201 L_3607CC75: 7202 eax = MEM32(ebp + 0x8); /* 0x3607CC75: mov eax, dword ptr [ebp + 8] */ 7203 MEM32(ecx) = edx; /* 0x3607CC78: mov dword ptr [ecx], edx */ 7204 MEM32(eax) = esi; /* 0x3607CC7A: mov dword ptr [eax], esi */ 7205 esi = POP32_VAL(esp); /* 0x3607CC7C: pop esi */ 7206 ebx = POP32_VAL(esp); /* 0x3607CC7D: pop ebx */ 7207 ebp = POP32_VAL(esp); /* 0x3607CC7E: pop ebp */ 7208 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607CC7F: ret 8 */ 7209 L_3607CC82: 7210 eax = MEM32(esi + 0x4); /* 0x3607CC82: mov eax, dword ptr [esi + 4] */ 7211 edx = MEM32(ecx); /* 0x3607CC85: mov edx, dword ptr [ecx] */ 7212 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3607CC87: cmp edx, dword ptr [eax + 8] */ 7213 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7214 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7215 _flag_k = FK_CMP; 7216 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CC98; /* 0x3607CC8A: jne 0x3607cc98 */ 7217 L_3607CC8C: 7218 MEM32(ecx) = eax; /* 0x3607CC8C: mov dword ptr [ecx], eax */ 7219 eax = MEM32(eax + 0x4); /* 0x3607CC8E: mov eax, dword ptr [eax + 4] */ 7220 edx = MEM32(ecx); /* 0x3607CC91: mov edx, dword ptr [ecx] */ 7221 /* cmp edx, MEM32(eax + 0x8) */ /* 0x3607CC93: cmp edx, dword ptr [eax + 8] */ 7222 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 7223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7224 _flag_k = FK_CMP; 7225 RECOMP_BACKEDGE(); 7226 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CC8C; /* 0x3607CC96: je 0x3607cc8c */ 7227 L_3607CC98: 7228 edx = MEM32(ecx); /* 0x3607CC98: mov edx, dword ptr [ecx] */ 7229 /* cmp MEM32(edx + 0x8), eax */ /* 0x3607CC9A: cmp dword ptr [edx + 8], eax */ 7230 _flag_a = (uint32_t)(MEM32(edx + 0x8)); _flag_b = (uint32_t)(eax); 7231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7232 _flag_k = FK_CMP; 7233 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CCA1; /* 0x3607CC9D: je 0x3607cca1 */ 7234 L_3607CC9F: 7235 MEM32(ecx) = eax; /* 0x3607CC9F: mov dword ptr [ecx], eax */ 7236 L_3607CCA1: 7237 eax = MEM32(ebp + 0x8); /* 0x3607CCA1: mov eax, dword ptr [ebp + 8] */ 7238 MEM32(eax) = esi; /* 0x3607CCA4: mov dword ptr [eax], esi */ 7239 esi = POP32_VAL(esp); /* 0x3607CCA6: pop esi */ 7240 ebx = POP32_VAL(esp); /* 0x3607CCA7: pop ebx */ 7241 ebp = POP32_VAL(esp); /* 0x3607CCA8: pop ebp */ 7242 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3607CCA9: ret 8 */ 7243 RECOMP_REGS_OUT(); 7244 } 7245 7246 void sub_3607CCB0(void) { 7247 int _fpu_cmp = 0; 7248 uint32_t _cf = 0; 7249 int _df = 1; 7250 uint32_t _flag_k = FK_NONE; 7251 uint32_t _flag_a = 0, _flag_b = 0; 7252 uint32_t _itail_tgt = 0; 7253 RECOMP_REGS_LOCALS 7254 RECOMP_ENTER(0x3607CCB0u); 7255 7256 L_3607CCB0: 7257 PUSH32(esp, ebp); /* 0x3607CCB0: push ebp */ 7258 ebp = esp; /* 0x3607CCB1: mov ebp, esp */ 7259 PUSH32(esp, ebx); /* 0x3607CCB3: push ebx */ 7260 PUSH32(esp, esi); /* 0x3607CCB4: push esi */ 7261 ebx = ecx; /* 0x3607CCB5: mov ebx, ecx */ 7262 eax = MEM32(ebx + 0x8); /* 0x3607CCB7: mov eax, dword ptr [ebx + 8] */ 7263 PUSH32(esp, edi); /* 0x3607CCBA: push edi */ 7264 edi = MEM32(ebp + 0x8); /* 0x3607CCBB: mov edi, dword ptr [ebp + 8] */ 7265 /* cmp edi, eax */ /* 0x3607CCBE: cmp edi, eax */ 7266 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7268 _flag_k = FK_CMP; 7269 esi = edi; /* 0x3607CCC0: mov esi, edi */ 7270 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CCE3; /* 0x3607CCC2: je 0x3607cce3 */ 7271 L_3607CCC4: 7272 eax = MEM32(esi + 0x8); /* 0x3607CCC4: mov eax, dword ptr [esi + 8] */ 7273 PUSH32(esp, eax); /* 0x3607CCC7: push eax */ 7274 ecx = ebx; /* 0x3607CCC8: mov ecx, ebx */ 7275 RECOMP_ICALL(0x3607CCB0u); /* 0x3607CCCA: call 0x3607ccb0 */ /* not lifted */ 7276 RECOMP_FLAGS_IN(); 7277 esi = MEM32(esi); /* 0x3607CCCF: mov esi, dword ptr [esi] */ 7278 PUSH32(esp, edi); /* 0x3607CCD1: push edi */ 7279 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CCD2: call 0x3615fcc4 */ /* not lifted */ 7280 RECOMP_FLAGS_IN(); 7281 eax = MEM32(ebx + 0x8); /* 0x3607CCD7: mov eax, dword ptr [ebx + 8] */ 7282 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7283 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7284 esp = esp + 4; /* 0x3607CCDA: add esp, 4 */ 7285 _flag_k = FK_ADD; 7286 /* cmp esi, eax */ /* 0x3607CCDD: cmp esi, eax */ 7287 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7289 _flag_k = FK_CMP; 7290 edi = esi; /* 0x3607CCDF: mov edi, esi */ 7291 RECOMP_BACKEDGE(); 7292 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CCC4; /* 0x3607CCE1: jne 0x3607ccc4 */ 7293 L_3607CCE3: 7294 edi = POP32_VAL(esp); /* 0x3607CCE3: pop edi */ 7295 esi = POP32_VAL(esp); /* 0x3607CCE4: pop esi */ 7296 ebx = POP32_VAL(esp); /* 0x3607CCE5: pop ebx */ 7297 ebp = POP32_VAL(esp); /* 0x3607CCE6: pop ebp */ 7298 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CCE7: ret 4 */ 7299 RECOMP_REGS_OUT(); 7300 } 7301 7302 void sub_3607CCF0(void) { 7303 int _fpu_cmp = 0; 7304 uint32_t _cf = 0; 7305 int _df = 1; 7306 uint32_t _flag_k = FK_NONE; 7307 uint32_t _flag_a = 0, _flag_b = 0; 7308 uint32_t _itail_tgt = 0; 7309 RECOMP_REGS_LOCALS 7310 RECOMP_ENTER(0x3607CCF0u); 7311 7312 L_3607CCF0: 7313 PUSH32(esp, ebp); /* 0x3607CCF0: push ebp */ 7314 ebp = esp; /* 0x3607CCF1: mov ebp, esp */ 7315 PUSH32(esp, ebx); /* 0x3607CCF3: push ebx */ 7316 PUSH32(esp, esi); /* 0x3607CCF4: push esi */ 7317 ebx = ecx; /* 0x3607CCF5: mov ebx, ecx */ 7318 eax = MEM32(ebx + 0x8); /* 0x3607CCF7: mov eax, dword ptr [ebx + 8] */ 7319 PUSH32(esp, edi); /* 0x3607CCFA: push edi */ 7320 edi = MEM32(ebp + 0x8); /* 0x3607CCFB: mov edi, dword ptr [ebp + 8] */ 7321 /* cmp edi, eax */ /* 0x3607CCFE: cmp edi, eax */ 7322 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7324 _flag_k = FK_CMP; 7325 esi = edi; /* 0x3607CD00: mov esi, edi */ 7326 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CD23; /* 0x3607CD02: je 0x3607cd23 */ 7327 L_3607CD04: 7328 eax = MEM32(esi + 0x8); /* 0x3607CD04: mov eax, dword ptr [esi + 8] */ 7329 PUSH32(esp, eax); /* 0x3607CD07: push eax */ 7330 ecx = ebx; /* 0x3607CD08: mov ecx, ebx */ 7331 RECOMP_ICALL(0x3607CCF0u); /* 0x3607CD0A: call 0x3607ccf0 */ /* not lifted */ 7332 RECOMP_FLAGS_IN(); 7333 esi = MEM32(esi); /* 0x3607CD0F: mov esi, dword ptr [esi] */ 7334 PUSH32(esp, edi); /* 0x3607CD11: push edi */ 7335 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CD12: call 0x3615fcc4 */ /* not lifted */ 7336 RECOMP_FLAGS_IN(); 7337 eax = MEM32(ebx + 0x8); /* 0x3607CD17: mov eax, dword ptr [ebx + 8] */ 7338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7340 esp = esp + 4; /* 0x3607CD1A: add esp, 4 */ 7341 _flag_k = FK_ADD; 7342 /* cmp esi, eax */ /* 0x3607CD1D: cmp esi, eax */ 7343 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7345 _flag_k = FK_CMP; 7346 edi = esi; /* 0x3607CD1F: mov edi, esi */ 7347 RECOMP_BACKEDGE(); 7348 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CD04; /* 0x3607CD21: jne 0x3607cd04 */ 7349 L_3607CD23: 7350 edi = POP32_VAL(esp); /* 0x3607CD23: pop edi */ 7351 esi = POP32_VAL(esp); /* 0x3607CD24: pop esi */ 7352 ebx = POP32_VAL(esp); /* 0x3607CD25: pop ebx */ 7353 ebp = POP32_VAL(esp); /* 0x3607CD26: pop ebp */ 7354 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CD27: ret 4 */ 7355 RECOMP_REGS_OUT(); 7356 } 7357 7358 void sub_3607CD30(void) { 7359 int _fpu_cmp = 0; 7360 uint32_t _cf = 0; 7361 int _df = 1; 7362 uint32_t _flag_k = FK_NONE; 7363 uint32_t _flag_a = 0, _flag_b = 0; 7364 uint32_t _itail_tgt = 0; 7365 RECOMP_REGS_LOCALS 7366 RECOMP_ENTER(0x3607CD30u); 7367 7368 L_3607CD30: 7369 PUSH32(esp, ebp); /* 0x3607CD30: push ebp */ 7370 ebp = esp; /* 0x3607CD31: mov ebp, esp */ 7371 PUSH32(esp, ebx); /* 0x3607CD33: push ebx */ 7372 PUSH32(esp, esi); /* 0x3607CD34: push esi */ 7373 ebx = ecx; /* 0x3607CD35: mov ebx, ecx */ 7374 eax = MEM32(ebx + 0x8); /* 0x3607CD37: mov eax, dword ptr [ebx + 8] */ 7375 PUSH32(esp, edi); /* 0x3607CD3A: push edi */ 7376 edi = MEM32(ebp + 0x8); /* 0x3607CD3B: mov edi, dword ptr [ebp + 8] */ 7377 /* cmp edi, eax */ /* 0x3607CD3E: cmp edi, eax */ 7378 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 7379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7380 _flag_k = FK_CMP; 7381 esi = edi; /* 0x3607CD40: mov esi, edi */ 7382 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CD63; /* 0x3607CD42: je 0x3607cd63 */ 7383 L_3607CD44: 7384 eax = MEM32(esi + 0x8); /* 0x3607CD44: mov eax, dword ptr [esi + 8] */ 7385 PUSH32(esp, eax); /* 0x3607CD47: push eax */ 7386 ecx = ebx; /* 0x3607CD48: mov ecx, ebx */ 7387 RECOMP_ICALL(0x3607CD30u); /* 0x3607CD4A: call 0x3607cd30 */ /* not lifted */ 7388 RECOMP_FLAGS_IN(); 7389 esi = MEM32(esi); /* 0x3607CD4F: mov esi, dword ptr [esi] */ 7390 PUSH32(esp, edi); /* 0x3607CD51: push edi */ 7391 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CD52: call 0x3615fcc4 */ /* not lifted */ 7392 RECOMP_FLAGS_IN(); 7393 eax = MEM32(ebx + 0x8); /* 0x3607CD57: mov eax, dword ptr [ebx + 8] */ 7394 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7396 esp = esp + 4; /* 0x3607CD5A: add esp, 4 */ 7397 _flag_k = FK_ADD; 7398 /* cmp esi, eax */ /* 0x3607CD5D: cmp esi, eax */ 7399 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7401 _flag_k = FK_CMP; 7402 edi = esi; /* 0x3607CD5F: mov edi, esi */ 7403 RECOMP_BACKEDGE(); 7404 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CD44; /* 0x3607CD61: jne 0x3607cd44 */ 7405 L_3607CD63: 7406 edi = POP32_VAL(esp); /* 0x3607CD63: pop edi */ 7407 esi = POP32_VAL(esp); /* 0x3607CD64: pop esi */ 7408 ebx = POP32_VAL(esp); /* 0x3607CD65: pop ebx */ 7409 ebp = POP32_VAL(esp); /* 0x3607CD66: pop ebp */ 7410 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CD67: ret 4 */ 7411 RECOMP_REGS_OUT(); 7412 } 7413 7414 void sub_3607CD70(void) { 7415 int _fpu_cmp = 0; 7416 uint32_t _cf = 0; 7417 int _df = 1; 7418 uint32_t _flag_k = FK_NONE; 7419 uint32_t _flag_a = 0, _flag_b = 0; 7420 uint32_t _itail_tgt = 0; 7421 RECOMP_REGS_LOCALS 7422 RECOMP_ENTER(0x3607CD70u); 7423 7424 L_3607CD70: 7425 PUSH32(esp, esi); /* 0x3607CD70: push esi */ 7426 esi = ecx; /* 0x3607CD71: mov esi, ecx */ 7427 eax = MEM32(esi + 0x1C); /* 0x3607CD73: mov eax, dword ptr [esi + 0x1c] */ 7428 /* cmp eax, MEM32(esi + 0x14) */ /* 0x3607CD76: cmp eax, dword ptr [esi + 0x14] */ 7429 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x14)); 7430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7431 _flag_k = FK_CMP; 7432 PUSH32(esp, edi); /* 0x3607CD79: push edi */ 7433 edi = MEM32(esi + 0x20); /* 0x3607CD7A: mov edi, dword ptr [esi + 0x20] */ 7434 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CD9B; /* 0x3607CD7D: jne 0x3607cd9b */ 7435 L_3607CD7F: 7436 eax = edi; /* 0x3607CD7F: mov eax, edi */ 7437 ecx = MEM32(eax + (-0x4)); /* 0x3607CD81: mov ecx, dword ptr [eax - 4] */ 7438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu); 7439 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7440 eax = eax + 0xFFFFFFFCu; /* 0x3607CD84: add eax, -4 */ 7441 _flag_k = FK_ADD; 7442 /* test ecx, ecx */ /* 0x3607CD87: test ecx, ecx */ 7443 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7444 _cf = 0; 7445 _flag_k = FK_TEST; 7446 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CDA1; /* 0x3607CD89: je 0x3607cda1 */ 7447 L_3607CD8B: 7448 MEM32(esi + 0x20) = eax; /* 0x3607CD8B: mov dword ptr [esi + 0x20], eax */ 7449 eax = MEM32(eax); /* 0x3607CD8E: mov eax, dword ptr [eax] */ 7450 MEM32(esi + 0x14) = eax; /* 0x3607CD90: mov dword ptr [esi + 0x14], eax */ 7451 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 7452 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7453 eax = eax + 0x1000u; /* 0x3607CD93: add eax, 0x1000 */ 7454 _flag_k = FK_ADD; 7455 MEM32(esi + 0x18) = eax; /* 0x3607CD98: mov dword ptr [esi + 0x18], eax */ 7456 L_3607CD9B: 7457 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFF8u); 7458 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7459 eax = eax + 0xFFFFFFF8u; /* 0x3607CD9B: add eax, -8 */ 7460 _flag_k = FK_ADD; 7461 MEM32(esi + 0x1C) = eax; /* 0x3607CD9E: mov dword ptr [esi + 0x1c], eax */ 7462 L_3607CDA1: 7463 _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1); 7464 MEM32(esi + 0x2C) = MEM32(esi + 0x2C) - 1; /* 0x3607CDA1: dec dword ptr [esi + 0x2c] */ 7465 _flag_k = FK_DEC; 7466 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3607CDFC; /* 0x3607CDA4: jne 0x3607cdfc */ 7467 L_3607CDA6: 7468 eax = MEM32(esi + 0x10); /* 0x3607CDA6: mov eax, dword ptr [esi + 0x10] */ 7469 ecx = MEM32(eax + (-0x4)); /* 0x3607CDA9: mov ecx, dword ptr [eax - 4] */ 7470 PUSH32(esp, ebx); /* 0x3607CDAC: push ebx */ 7471 PUSH32(esp, ecx); /* 0x3607CDAD: push ecx */ 7472 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CDAE: call 0x3615fcc4 */ /* not lifted */ 7473 RECOMP_FLAGS_IN(); 7474 edx = MEM32(esi + 0x10); /* 0x3607CDB3: mov edx, dword ptr [esi + 0x10] */ 7475 eax = MEM32(edx); /* 0x3607CDB6: mov eax, dword ptr [edx] */ 7476 PUSH32(esp, eax); /* 0x3607CDB8: push eax */ 7477 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CDB9: call 0x3615fcc4 */ /* not lifted */ 7478 RECOMP_FLAGS_IN(); 7479 ecx = MEM32(esi + 0x10); /* 0x3607CDBE: mov ecx, dword ptr [esi + 0x10] */ 7480 edx = MEM32(ecx + 0x4); /* 0x3607CDC1: mov edx, dword ptr [ecx + 4] */ 7481 PUSH32(esp, edx); /* 0x3607CDC4: push edx */ 7482 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CDC5: call 0x3615fcc4 */ /* not lifted */ 7483 RECOMP_FLAGS_IN(); 7484 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7485 eax = 0; /* 0x3607CDCA: xor eax, eax */ 7486 _cf = 0; 7487 _flag_k = FK_TEST; 7488 ebx = esi + 0x4; /* 0x3607CDCC: lea ebx, [esi + 4] */ 7489 MEM32(ebx) = eax; /* 0x3607CDCF: mov dword ptr [ebx], eax */ 7490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7491 ecx = 0; /* 0x3607CDD1: xor ecx, ecx */ 7492 _cf = 0; 7493 _flag_k = FK_TEST; 7494 MEM32(esi + 0x14) = eax; /* 0x3607CDD3: mov dword ptr [esi + 0x14], eax */ 7495 eax = MEM32(esi + 0x24); /* 0x3607CDD6: mov eax, dword ptr [esi + 0x24] */ 7496 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7497 edx = 0; /* 0x3607CDD9: xor edx, edx */ 7498 _cf = 0; 7499 _flag_k = FK_TEST; 7500 MEM32(ebx + 0x4) = ecx; /* 0x3607CDDB: mov dword ptr [ebx + 4], ecx */ 7501 MEM32(esi + 0x18) = ecx; /* 0x3607CDDE: mov dword ptr [esi + 0x18], ecx */ 7502 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7503 edi = 0; /* 0x3607CDE1: xor edi, edi */ 7504 _cf = 0; 7505 _flag_k = FK_TEST; 7506 MEM32(ebx + 0x8) = edx; /* 0x3607CDE3: mov dword ptr [ebx + 8], edx */ 7507 MEM32(esi + 0x1C) = edx; /* 0x3607CDE6: mov dword ptr [esi + 0x1c], edx */ 7508 PUSH32(esp, eax); /* 0x3607CDE9: push eax */ 7509 MEM32(ebx + 0xC) = edi; /* 0x3607CDEA: mov dword ptr [ebx + 0xc], edi */ 7510 MEM32(esi + 0x20) = edi; /* 0x3607CDED: mov dword ptr [esi + 0x20], edi */ 7511 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CDF0: call 0x3615fcc4 */ /* not lifted */ 7512 RECOMP_FLAGS_IN(); 7513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7515 esp = esp + 0x10u; /* 0x3607CDF5: add esp, 0x10 */ 7516 _flag_k = FK_ADD; 7517 ebx = POP32_VAL(esp); /* 0x3607CDF8: pop ebx */ 7518 edi = POP32_VAL(esp); /* 0x3607CDF9: pop edi */ 7519 esi = POP32_VAL(esp); /* 0x3607CDFA: pop esi */ 7520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CDFB: ret */ 7521 L_3607CDFC: 7522 /* cmp edi, MEM32(esi + 0x20) */ /* 0x3607CDFC: cmp edi, dword ptr [esi + 0x20] */ 7523 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x20)); 7524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7525 _flag_k = FK_CMP; 7526 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607CE12; /* 0x3607CDFF: je 0x3607ce12 */ 7527 L_3607CE01: 7528 ecx = MEM32(edi); /* 0x3607CE01: mov ecx, dword ptr [edi] */ 7529 PUSH32(esp, ecx); /* 0x3607CE03: push ecx */ 7530 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CE04: call 0x3615fcc4 */ /* not lifted */ 7531 RECOMP_FLAGS_IN(); 7532 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7533 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7534 esp = esp + 4; /* 0x3607CE09: add esp, 4 */ 7535 _flag_k = FK_ADD; 7536 MEM32(edi) = 0; /* 0x3607CE0C: mov dword ptr [edi], 0 */ 7537 L_3607CE12: 7538 edi = POP32_VAL(esp); /* 0x3607CE12: pop edi */ 7539 esi = POP32_VAL(esp); /* 0x3607CE13: pop esi */ 7540 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CE14: ret */ 7541 RECOMP_REGS_OUT(); 7542 } 7543 7544 void sub_3607CE20(void) { 7545 int _fpu_cmp = 0; 7546 uint32_t _cf = 0; 7547 int _df = 1; 7548 uint32_t _flag_k = FK_NONE; 7549 uint32_t _flag_a = 0, _flag_b = 0; 7550 uint32_t _itail_tgt = 0; 7551 RECOMP_REGS_LOCALS 7552 RECOMP_ENTER(0x3607CE20u); 7553 7554 L_3607CE20: 7555 eax = ecx; /* 0x3607CE20: mov eax, ecx */ 7556 ecx = MEM32(eax + 0x8); /* 0x3607CE22: mov ecx, dword ptr [eax + 8] */ 7557 /* cmp ecx, MEM32(eax) */ /* 0x3607CE25: cmp ecx, dword ptr [eax] */ 7558 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 7559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7560 _flag_k = FK_CMP; 7561 if (CMP_NE(_flag_a, _flag_b)) goto L_3607CE46; /* 0x3607CE27: jne 0x3607ce46 */ 7562 L_3607CE29: 7563 ecx = MEM32(eax + 0xC); /* 0x3607CE29: mov ecx, dword ptr [eax + 0xc] */ 7564 edx = MEM32(ecx + (-0x4)); /* 0x3607CE2C: mov edx, dword ptr [ecx - 4] */ 7565 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFFCu); 7566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7567 ecx = ecx + 0xFFFFFFFCu; /* 0x3607CE2F: add ecx, -4 */ 7568 _flag_k = FK_ADD; 7569 /* test edx, edx */ /* 0x3607CE32: test edx, edx */ 7570 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 7571 _cf = 0; 7572 _flag_k = FK_TEST; 7573 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CE4C; /* 0x3607CE34: je 0x3607ce4c */ 7574 L_3607CE36: 7575 MEM32(eax + 0xC) = ecx; /* 0x3607CE36: mov dword ptr [eax + 0xc], ecx */ 7576 ecx = MEM32(ecx); /* 0x3607CE39: mov ecx, dword ptr [ecx] */ 7577 MEM32(eax) = ecx; /* 0x3607CE3B: mov dword ptr [eax], ecx */ 7578 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1000u); 7579 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7580 ecx = ecx + 0x1000u; /* 0x3607CE3D: add ecx, 0x1000 */ 7581 _flag_k = FK_ADD; 7582 MEM32(eax + 0x4) = ecx; /* 0x3607CE43: mov dword ptr [eax + 4], ecx */ 7583 L_3607CE46: 7584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFF8u); 7585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7586 ecx = ecx + 0xFFFFFFF8u; /* 0x3607CE46: add ecx, -8 */ 7587 _flag_k = FK_ADD; 7588 MEM32(eax + 0x8) = ecx; /* 0x3607CE49: mov dword ptr [eax + 8], ecx */ 7589 L_3607CE4C: 7590 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CE4C: ret */ 7591 RECOMP_REGS_OUT(); 7592 } 7593 7594 void sub_3607CE50(void) { 7595 int _fpu_cmp = 0; 7596 uint32_t _cf = 0; 7597 int _df = 1; 7598 uint32_t _flag_k = FK_NONE; 7599 uint32_t _flag_a = 0, _flag_b = 0; 7600 uint32_t _itail_tgt = 0; 7601 RECOMP_REGS_LOCALS 7602 RECOMP_ENTER(0x3607CE50u); 7603 7604 L_3607CE50: 7605 PUSH32(esp, ebp); /* 0x3607CE50: push ebp */ 7606 ebp = esp; /* 0x3607CE51: mov ebp, esp */ 7607 eax = MEM32(ecx + 0x8); /* 0x3607CE53: mov eax, dword ptr [ecx + 8] */ 7608 edx = MEM32(ebp + 0x8); /* 0x3607CE56: mov edx, dword ptr [ebp + 8] */ 7609 PUSH32(esp, esi); /* 0x3607CE59: push esi */ 7610 esi = eax + edx * 8; /* 0x3607CE5A: lea esi, [eax + edx*8] */ 7611 edx = MEM32(ecx); /* 0x3607CE5D: mov edx, dword ptr [ecx] */ 7612 eax = esi; /* 0x3607CE5F: mov eax, esi */ 7613 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7614 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7615 eax = eax - edx; /* 0x3607CE61: sub eax, edx */ 7616 _flag_k = FK_CMP; 7617 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607CE63: sar eax, 3 */ 7618 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7619 eax = (uint32_t)((int32_t)eax >> 3u); 7620 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_S, _cf)) goto L_3607CE6F; /* 0x3607CE66: js 0x3607ce6f */ 7621 L_3607CE68: 7622 edx = eax; /* 0x3607CE68: mov edx, eax */ 7623 if (9u) _cf = (((edx) >> 8) & 1u); /* 0x3607CE6A: shr edx, 9 */ 7624 if (9u) { _flag_a = recomp_flags_pack((edx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7625 edx = edx >> 9u; /* 0x3607CE6A: shr edx, 9 */ 7626 goto L_3607CE7B; /* 0x3607CE6D: jmp 0x3607ce7b */ 7627 L_3607CE6F: 7628 edx = 0x1FFu; /* 0x3607CE6F: mov edx, 0x1ff */ 7629 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7631 edx = edx - eax; /* 0x3607CE74: sub edx, eax */ 7632 _flag_k = FK_CMP; 7633 if (9u) _cf = (((edx) >> 8) & 1u); /* 0x3607CE76: shr edx, 9 */ 7634 if (9u) { _flag_a = recomp_flags_pack((edx >> 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7635 edx = edx >> 9u; /* 0x3607CE76: shr edx, 9 */ 7636 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(edx); 7637 _cf = (edx) != 0; 7638 edx = (uint32_t)(-(int32_t)edx); /* 0x3607CE79: neg edx */ 7639 _flag_k = FK_CMP; 7640 L_3607CE7B: 7641 /* test edx, edx */ /* 0x3607CE7B: test edx, edx */ 7642 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 7643 _cf = 0; 7644 _flag_k = FK_TEST; 7645 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607CE87; /* 0x3607CE7D: jne 0x3607ce87 */ 7646 L_3607CE7F: 7647 MEM32(ecx + 0x8) = esi; /* 0x3607CE7F: mov dword ptr [ecx + 8], esi */ 7648 esi = POP32_VAL(esp); /* 0x3607CE82: pop esi */ 7649 ebp = POP32_VAL(esp); /* 0x3607CE83: pop ebp */ 7650 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CE84: ret 4 */ 7651 L_3607CE87: 7652 PUSH32(esp, edi); /* 0x3607CE87: push edi */ 7653 edi = MEM32(ecx + 0xC); /* 0x3607CE88: mov edi, dword ptr [ecx + 0xc] */ 7654 esi = edx * 4; /* 0x3607CE8B: lea esi, [edx*4] */ 7655 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7656 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7657 edi = edi + esi; /* 0x3607CE92: add edi, esi */ 7658 _flag_k = FK_ADD; 7659 esi = edi; /* 0x3607CE94: mov esi, edi */ 7660 MEM32(ecx + 0xC) = edi; /* 0x3607CE96: mov dword ptr [ecx + 0xc], edi */ 7661 esi = MEM32(esi); /* 0x3607CE99: mov esi, dword ptr [esi] */ 7662 MEM32(ecx) = esi; /* 0x3607CE9B: mov dword ptr [ecx], esi */ 7663 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x1000u); 7664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7665 esi = esi + 0x1000u; /* 0x3607CE9D: add esi, 0x1000 */ 7666 _flag_k = FK_ADD; 7667 if (9u) _cf = (((edx) >> 23) & 1u); /* 0x3607CEA3: shl edx, 9 */ 7668 if (9u) { _flag_a = recomp_flags_pack((edx << 9u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7669 edx = edx << 9u; /* 0x3607CEA3: shl edx, 9 */ 7670 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 7671 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7672 eax = eax - edx; /* 0x3607CEA6: sub eax, edx */ 7673 _flag_k = FK_CMP; 7674 edx = MEM32(ecx); /* 0x3607CEA8: mov edx, dword ptr [ecx] */ 7675 eax = edx + eax * 8; /* 0x3607CEAA: lea eax, [edx + eax*8] */ 7676 edi = POP32_VAL(esp); /* 0x3607CEAD: pop edi */ 7677 MEM32(ecx + 0x4) = esi; /* 0x3607CEAE: mov dword ptr [ecx + 4], esi */ 7678 MEM32(ecx + 0x8) = eax; /* 0x3607CEB1: mov dword ptr [ecx + 8], eax */ 7679 esi = POP32_VAL(esp); /* 0x3607CEB4: pop esi */ 7680 ebp = POP32_VAL(esp); /* 0x3607CEB5: pop ebp */ 7681 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CEB6: ret 4 */ 7682 RECOMP_REGS_OUT(); 7683 } 7684 7685 void sub_3607CEC0(void) { 7686 int _fpu_cmp = 0; 7687 uint32_t _cf = 0; 7688 int _df = 1; 7689 uint32_t _flag_k = FK_NONE; 7690 uint32_t _flag_a = 0, _flag_b = 0; 7691 uint32_t _itail_tgt = 0; 7692 RECOMP_REGS_LOCALS 7693 RECOMP_ENTER(0x3607CEC0u); 7694 7695 L_3607CEC0: 7696 PUSH32(esp, esi); /* 0x3607CEC0: push esi */ 7697 esi = ecx; /* 0x3607CEC1: mov esi, ecx */ 7698 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607CEC3: call dword ptr [0x3616ffd0] */ 7699 RECOMP_FLAGS_IN(); 7700 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7701 eax = 0; /* 0x3607CEC9: xor eax, eax */ 7702 _cf = 0; 7703 _flag_k = FK_TEST; 7704 MEM32(esi + 0x20) = eax; /* 0x3607CECB: mov dword ptr [esi + 0x20], eax */ 7705 MEM32(esi + 0x24) = eax; /* 0x3607CECE: mov dword ptr [esi + 0x24], eax */ 7706 MEM32(esi) = 0x36171594u; /* 0x3607CED1: mov dword ptr [esi], 0x36171594 */ 7707 eax = esi; /* 0x3607CED7: mov eax, esi */ 7708 esi = POP32_VAL(esp); /* 0x3607CED9: pop esi */ 7709 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CEDA: ret */ 7710 RECOMP_REGS_OUT(); 7711 } 7712 7713 void sub_3607CEE0(void) { 7714 int _fpu_cmp = 0; 7715 uint32_t _cf = 0; 7716 int _df = 1; 7717 uint32_t _flag_k = FK_NONE; 7718 uint32_t _flag_a = 0, _flag_b = 0; 7719 uint32_t _itail_tgt = 0; 7720 RECOMP_REGS_LOCALS 7721 RECOMP_ENTER(0x3607CEE0u); 7722 7723 L_3607CEE0: 7724 PUSH32(esp, ebp); /* 0x3607CEE0: push ebp */ 7725 ebp = esp; /* 0x3607CEE1: mov ebp, esp */ 7726 PUSH32(esp, esi); /* 0x3607CEE3: push esi */ 7727 esi = ecx; /* 0x3607CEE4: mov esi, ecx */ 7728 RECOMP_ICALL(0x3607CF10u); /* 0x3607CEE6: call 0x3607cf10 */ /* not lifted */ 7729 RECOMP_FLAGS_IN(); 7730 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607CEEB: test byte ptr [ebp + 8], 1 */ 7731 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7732 _cf = 0; 7733 _flag_k = FK_NARROW(FK_TEST, 24); 7734 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CEFA; /* 0x3607CEEF: je 0x3607cefa */ 7735 L_3607CEF1: 7736 PUSH32(esp, esi); /* 0x3607CEF1: push esi */ 7737 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CEF2: call 0x3615fcc4 */ /* not lifted */ 7738 RECOMP_FLAGS_IN(); 7739 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7740 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7741 esp = esp + 4; /* 0x3607CEF7: add esp, 4 */ 7742 _flag_k = FK_ADD; 7743 L_3607CEFA: 7744 eax = esi; /* 0x3607CEFA: mov eax, esi */ 7745 esi = POP32_VAL(esp); /* 0x3607CEFC: pop esi */ 7746 ebp = POP32_VAL(esp); /* 0x3607CEFD: pop ebp */ 7747 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CEFE: ret 4 */ 7748 RECOMP_REGS_OUT(); 7749 } 7750 7751 void sub_3607CF10(void) { 7752 int _fpu_cmp = 0; 7753 uint32_t _cf = 0; 7754 int _df = 1; 7755 uint32_t _flag_k = FK_NONE; 7756 uint32_t _flag_a = 0, _flag_b = 0; 7757 uint32_t _itail_tgt = 0; 7758 RECOMP_REGS_LOCALS 7759 RECOMP_ENTER(0x3607CF10u); 7760 7761 L_3607CF10: 7762 MEM32(ecx) = 0x36171594u; /* 0x3607CF10: mov dword ptr [ecx], 0x36171594 */ 7763 L_3607CF16: 7764 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 7765 { RECOMP_REGS_OUT(); return; } /* end of function */ 7766 _ljump: 7767 switch (_itail_tgt) { 7768 case 0x3607CF10u: goto L_3607CF10; 7769 case 0x3607CF16u: goto L_3607CF16; 7770 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7771 } 7772 RECOMP_REGS_OUT(); 7773 } 7774 7775 void sub_3607CF20(void) { 7776 int _fpu_cmp = 0; 7777 uint32_t _cf = 0; 7778 int _df = 1; 7779 uint32_t _flag_k = FK_NONE; 7780 uint32_t _flag_a = 0, _flag_b = 0; 7781 uint32_t _itail_tgt = 0; 7782 RECOMP_REGS_LOCALS 7783 RECOMP_ENTER(0x3607CF20u); 7784 7785 L_3607CF20: 7786 PUSH32(esp, ebp); /* 0x3607CF20: push ebp */ 7787 ebp = esp; /* 0x3607CF21: mov ebp, esp */ 7788 eax = MEM32(ebp + 0x8); /* 0x3607CF23: mov eax, dword ptr [ebp + 8] */ 7789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 7790 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7791 ecx = ecx + 0x20u; /* 0x3607CF26: add ecx, 0x20 */ 7792 _flag_k = FK_ADD; 7793 PUSH32(esp, ecx); /* 0x3607CF29: push ecx */ 7794 PUSH32(esp, eax); /* 0x3607CF2A: push eax */ 7795 RECOMP_ICALL(0x3615B840u); /* 0x3607CF2B: call 0x3615b840 */ /* not lifted */ 7796 RECOMP_FLAGS_IN(); 7797 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7798 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7799 esp = esp + 8; /* 0x3607CF30: add esp, 8 */ 7800 _flag_k = FK_ADD; 7801 ebp = POP32_VAL(esp); /* 0x3607CF33: pop ebp */ 7802 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CF34: ret 4 */ 7803 RECOMP_REGS_OUT(); 7804 } 7805 7806 void sub_3607CF40(void) { 7807 int _fpu_cmp = 0; 7808 uint32_t _cf = 0; 7809 int _df = 1; 7810 uint32_t _flag_k = FK_NONE; 7811 uint32_t _flag_a = 0, _flag_b = 0; 7812 uint32_t _itail_tgt = 0; 7813 RECOMP_REGS_LOCALS 7814 RECOMP_ENTER(0x3607CF40u); 7815 7816 L_3607CF40: 7817 PUSH32(esp, ebx); /* 0x3607CF40: push ebx */ 7818 PUSH32(esp, esi); /* 0x3607CF41: push esi */ 7819 esi = ecx; /* 0x3607CF42: mov esi, ecx */ 7820 eax = esi + 0x4; /* 0x3607CF44: lea eax, [esi + 4] */ 7821 PUSH32(esp, edi); /* 0x3607CF47: push edi */ 7822 PUSH32(esp, eax); /* 0x3607CF48: push eax */ 7823 RECOMP_ICALL(0x3606DA90u); /* 0x3607CF49: call 0x3606da90 */ /* not lifted */ 7824 RECOMP_FLAGS_IN(); 7825 ebx = esi + 0x20; /* 0x3607CF4E: lea ebx, [esi + 0x20] */ 7826 PUSH32(esp, ebx); /* 0x3607CF51: push ebx */ 7827 edi = eax; /* 0x3607CF52: mov edi, eax */ 7828 RECOMP_ICALL(0x3606DA90u); /* 0x3607CF54: call 0x3606da90 */ /* not lifted */ 7829 RECOMP_FLAGS_IN(); 7830 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7831 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7832 esp = esp + 8; /* 0x3607CF59: add esp, 8 */ 7833 _flag_k = FK_ADD; 7834 /* test edi, edi */ /* 0x3607CF5C: test edi, edi */ 7835 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7836 _cf = 0; 7837 _flag_k = FK_TEST; 7838 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CF6C; /* 0x3607CF5E: je 0x3607cf6c */ 7839 L_3607CF60: 7840 ecx = MEM32(edi + 0x170); /* 0x3607CF60: mov ecx, dword ptr [edi + 0x170] */ 7841 PUSH32(esp, ebx); /* 0x3607CF66: push ebx */ 7842 RECOMP_ICALL(0x360678B0u); /* 0x3607CF67: call 0x360678b0 */ /* not lifted */ 7843 RECOMP_FLAGS_IN(); 7844 L_3607CF6C: 7845 ecx = esi; /* 0x3607CF6C: mov ecx, esi */ 7846 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3607CF6E: call dword ptr [0x3616fc20] */ 7847 RECOMP_FLAGS_IN(); 7848 edi = POP32_VAL(esp); /* 0x3607CF74: pop edi */ 7849 esi = POP32_VAL(esp); /* 0x3607CF75: pop esi */ 7850 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7851 eax = 0; /* 0x3607CF76: xor eax, eax */ 7852 _cf = 0; 7853 _flag_k = FK_TEST; 7854 ebx = POP32_VAL(esp); /* 0x3607CF78: pop ebx */ 7855 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CF79: ret */ 7856 RECOMP_REGS_OUT(); 7857 } 7858 7859 void sub_3607CF80(void) { 7860 int _fpu_cmp = 0; 7861 uint32_t _cf = 0; 7862 int _df = 1; 7863 uint32_t _flag_k = FK_NONE; 7864 uint32_t _flag_a = 0, _flag_b = 0; 7865 uint32_t _itail_tgt = 0; 7866 RECOMP_REGS_LOCALS 7867 RECOMP_ENTER(0x3607CF80u); 7868 7869 L_3607CF80: 7870 PUSH32(esp, esi); /* 0x3607CF80: push esi */ 7871 esi = ecx; /* 0x3607CF81: mov esi, ecx */ 7872 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607CF83: call dword ptr [0x3616ffd0] */ 7873 RECOMP_FLAGS_IN(); 7874 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7875 eax = 0; /* 0x3607CF89: xor eax, eax */ 7876 _cf = 0; 7877 _flag_k = FK_TEST; 7878 MEM32(esi + 0x20) = eax; /* 0x3607CF8B: mov dword ptr [esi + 0x20], eax */ 7879 MEM32(esi + 0x24) = eax; /* 0x3607CF8E: mov dword ptr [esi + 0x24], eax */ 7880 MEM32(esi + 0x28) = eax; /* 0x3607CF91: mov dword ptr [esi + 0x28], eax */ 7881 MEM32(esi) = 0x361715B8u; /* 0x3607CF94: mov dword ptr [esi], 0x361715b8 */ 7882 eax = esi; /* 0x3607CF9A: mov eax, esi */ 7883 esi = POP32_VAL(esp); /* 0x3607CF9C: pop esi */ 7884 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607CF9D: ret */ 7885 RECOMP_REGS_OUT(); 7886 } 7887 7888 void sub_3607CFA0(void) { 7889 int _fpu_cmp = 0; 7890 uint32_t _cf = 0; 7891 int _df = 1; 7892 uint32_t _flag_k = FK_NONE; 7893 uint32_t _flag_a = 0, _flag_b = 0; 7894 uint32_t _itail_tgt = 0; 7895 RECOMP_REGS_LOCALS 7896 RECOMP_ENTER(0x3607CFA0u); 7897 7898 L_3607CFA0: 7899 PUSH32(esp, ebp); /* 0x3607CFA0: push ebp */ 7900 ebp = esp; /* 0x3607CFA1: mov ebp, esp */ 7901 PUSH32(esp, esi); /* 0x3607CFA3: push esi */ 7902 esi = ecx; /* 0x3607CFA4: mov esi, ecx */ 7903 RECOMP_ICALL(0x3607CFD0u); /* 0x3607CFA6: call 0x3607cfd0 */ /* not lifted */ 7904 RECOMP_FLAGS_IN(); 7905 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607CFAB: test byte ptr [ebp + 8], 1 */ 7906 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7907 _cf = 0; 7908 _flag_k = FK_NARROW(FK_TEST, 24); 7909 if (TEST_Z(_flag_a, _flag_b)) goto L_3607CFBA; /* 0x3607CFAF: je 0x3607cfba */ 7910 L_3607CFB1: 7911 PUSH32(esp, esi); /* 0x3607CFB1: push esi */ 7912 RECOMP_ICALL(0x3615FCC4u); /* 0x3607CFB2: call 0x3615fcc4 */ /* not lifted */ 7913 RECOMP_FLAGS_IN(); 7914 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7916 esp = esp + 4; /* 0x3607CFB7: add esp, 4 */ 7917 _flag_k = FK_ADD; 7918 L_3607CFBA: 7919 eax = esi; /* 0x3607CFBA: mov eax, esi */ 7920 esi = POP32_VAL(esp); /* 0x3607CFBC: pop esi */ 7921 ebp = POP32_VAL(esp); /* 0x3607CFBD: pop ebp */ 7922 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607CFBE: ret 4 */ 7923 RECOMP_REGS_OUT(); 7924 } 7925 7926 void sub_3607CFD0(void) { 7927 int _fpu_cmp = 0; 7928 uint32_t _cf = 0; 7929 int _df = 1; 7930 uint32_t _flag_k = FK_NONE; 7931 uint32_t _flag_a = 0, _flag_b = 0; 7932 uint32_t _itail_tgt = 0; 7933 RECOMP_REGS_LOCALS 7934 RECOMP_ENTER(0x3607CFD0u); 7935 7936 L_3607CFD0: 7937 MEM32(ecx) = 0x361715B8u; /* 0x3607CFD0: mov dword ptr [ecx], 0x361715b8 */ 7938 L_3607CFD6: 7939 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 7940 { RECOMP_REGS_OUT(); return; } /* end of function */ 7941 _ljump: 7942 switch (_itail_tgt) { 7943 case 0x3607CFD0u: goto L_3607CFD0; 7944 case 0x3607CFD6u: goto L_3607CFD6; 7945 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 7946 } 7947 RECOMP_REGS_OUT(); 7948 } 7949 7950 void sub_3607CFE0(void) { 7951 int _fpu_cmp = 0; 7952 uint32_t _cf = 0; 7953 int _df = 1; 7954 uint32_t _flag_k = FK_NONE; 7955 uint32_t _flag_a = 0, _flag_b = 0; 7956 uint32_t _itail_tgt = 0; 7957 RECOMP_REGS_LOCALS 7958 RECOMP_ENTER(0x3607CFE0u); 7959 7960 L_3607CFE0: 7961 PUSH32(esp, ebp); /* 0x3607CFE0: push ebp */ 7962 ebp = esp; /* 0x3607CFE1: mov ebp, esp */ 7963 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7964 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7965 esp = esp - 8; /* 0x3607CFE3: sub esp, 8 */ 7966 _flag_k = FK_CMP; 7967 PUSH32(esp, ebx); /* 0x3607CFE6: push ebx */ 7968 PUSH32(esp, esi); /* 0x3607CFE7: push esi */ 7969 esi = MEM32(ebp + 0x8); /* 0x3607CFE8: mov esi, dword ptr [ebp + 8] */ 7970 PUSH32(esp, edi); /* 0x3607CFEB: push edi */ 7971 edi = MEM32(0x3616FA8C); /* 0x3607CFEC: mov edi, dword ptr [0x3616fa8c] */ 7972 eax = ebp + 0x8; /* 0x3607CFF2: lea eax, [ebp + 8] */ 7973 ebx = ecx; /* 0x3607CFF5: mov ebx, ecx */ 7974 PUSH32(esp, eax); /* 0x3607CFF7: push eax */ 7975 ecx = esi; /* 0x3607CFF8: mov ecx, esi */ 7976 RECOMP_ICALL(edi); /* 0x3607CFFA: call edi */ 7977 RECOMP_FLAGS_IN(); 7978 ecx = ebp + (-0x8); /* 0x3607CFFC: lea ecx, [ebp - 8] */ 7979 PUSH32(esp, ecx); /* 0x3607CFFF: push ecx */ 7980 ecx = esi; /* 0x3607D000: mov ecx, esi */ 7981 RECOMP_ICALL(edi); /* 0x3607D002: call edi */ 7982 RECOMP_FLAGS_IN(); 7983 edx = ebp + (-0x4); /* 0x3607D004: lea edx, [ebp - 4] */ 7984 PUSH32(esp, edx); /* 0x3607D007: push edx */ 7985 ecx = esi; /* 0x3607D008: mov ecx, esi */ 7986 RECOMP_ICALL(edi); /* 0x3607D00A: call edi */ 7987 RECOMP_FLAGS_IN(); 7988 eax = MEM32(ebp + (-0x4)); /* 0x3607D00C: mov eax, dword ptr [ebp - 4] */ 7989 ecx = MEM32(ebp + (-0x8)); /* 0x3607D00F: mov ecx, dword ptr [ebp - 8] */ 7990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 7991 eax = eax & 0xFFFFu; /* 0x3607D012: and eax, 0xffff */ 7992 _cf = 0; 7993 _flag_k = FK_TEST; 7994 /* test ecx, ecx */ /* 0x3607D017: test ecx, ecx */ 7995 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7996 _cf = 0; 7997 _flag_k = FK_TEST; 7998 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607D01E; /* 0x3607D019: jne 0x3607d01e */ 7999 L_3607D01B: 8000 ecx = MEM32(ebp + 0x8); /* 0x3607D01B: mov ecx, dword ptr [ebp + 8] */ 8001 L_3607D01E: 8002 edx = ebx + 0x20; /* 0x3607D01E: lea edx, [ebx + 0x20] */ 8003 MEM32(edx) = eax; /* 0x3607D021: mov dword ptr [edx], eax */ 8004 eax = MEM32(ebp + 0x8); /* 0x3607D023: mov eax, dword ptr [ebp + 8] */ 8005 MEM32(edx + 0x4) = eax; /* 0x3607D026: mov dword ptr [edx + 4], eax */ 8006 MEM32(edx + 0x8) = ecx; /* 0x3607D029: mov dword ptr [edx + 8], ecx */ 8007 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x2Cu); 8008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8009 ebx = ebx + 0x2Cu; /* 0x3607D02C: add ebx, 0x2c */ 8010 _flag_k = FK_ADD; 8011 PUSH32(esp, ebx); /* 0x3607D02F: push ebx */ 8012 ecx = esi; /* 0x3607D030: mov ecx, esi */ 8013 RECOMP_ICALL(edi); /* 0x3607D032: call edi */ 8014 RECOMP_FLAGS_IN(); 8015 ecx = esi; /* 0x3607D034: mov ecx, esi */ 8016 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607D036: call dword ptr [0x3616fadc] */ 8017 RECOMP_FLAGS_IN(); 8018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8019 _cf = (eax) != 0; 8020 eax = (uint32_t)(-(int32_t)eax); /* 0x3607D03C: neg eax */ 8021 _flag_k = FK_CMP; 8022 edi = POP32_VAL(esp); /* 0x3607D03E: pop edi */ 8023 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607D03F: sbb eax, eax */ 8024 eax = _sc ? 0xFFFFFFFFu : 0; 8025 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8026 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8027 esi = POP32_VAL(esp); /* 0x3607D041: pop esi */ 8028 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8029 eax = eax + 1; /* 0x3607D042: inc eax */ 8030 _flag_k = FK_INC; 8031 ebx = POP32_VAL(esp); /* 0x3607D043: pop ebx */ 8032 esp = ebp; /* 0x3607D044: mov esp, ebp */ 8033 ebp = POP32_VAL(esp); /* 0x3607D046: pop ebp */ 8034 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D047: ret 4 */ 8035 RECOMP_REGS_OUT(); 8036 } 8037 8038 void sub_3607D050(void) { 8039 int _fpu_cmp = 0; 8040 uint32_t _cf = 0; 8041 int _df = 1; 8042 uint32_t _flag_k = FK_NONE; 8043 uint32_t _flag_a = 0, _flag_b = 0; 8044 uint32_t _itail_tgt = 0; 8045 RECOMP_REGS_LOCALS 8046 RECOMP_ENTER(0x3607D050u); 8047 8048 L_3607D050: 8049 PUSH32(esp, ebp); /* 0x3607D050: push ebp */ 8050 ebp = esp; /* 0x3607D051: mov ebp, esp */ 8051 PUSH32(esp, ebx); /* 0x3607D053: push ebx */ 8052 ebx = MEM32(0x3616FAEC); /* 0x3607D054: mov ebx, dword ptr [0x3616faec] */ 8053 PUSH32(esp, esi); /* 0x3607D05A: push esi */ 8054 esi = ecx; /* 0x3607D05B: mov esi, ecx */ 8055 eax = MEM32(esi + 0x24); /* 0x3607D05D: mov eax, dword ptr [esi + 0x24] */ 8056 PUSH32(esp, edi); /* 0x3607D060: push edi */ 8057 edi = MEM32(ebp + 0x8); /* 0x3607D061: mov edi, dword ptr [ebp + 8] */ 8058 PUSH32(esp, eax); /* 0x3607D064: push eax */ 8059 ecx = edi; /* 0x3607D065: mov ecx, edi */ 8060 RECOMP_ICALL(ebx); /* 0x3607D067: call ebx */ 8061 RECOMP_FLAGS_IN(); 8062 ecx = MEM32(esi + 0x28); /* 0x3607D069: mov ecx, dword ptr [esi + 0x28] */ 8063 PUSH32(esp, ecx); /* 0x3607D06C: push ecx */ 8064 ecx = edi; /* 0x3607D06D: mov ecx, edi */ 8065 RECOMP_ICALL(ebx); /* 0x3607D06F: call ebx */ 8066 RECOMP_FLAGS_IN(); 8067 edx = MEM32(esi + 0x20); /* 0x3607D071: mov edx, dword ptr [esi + 0x20] */ 8068 PUSH32(esp, edx); /* 0x3607D074: push edx */ 8069 ecx = edi; /* 0x3607D075: mov ecx, edi */ 8070 RECOMP_ICALL(ebx); /* 0x3607D077: call ebx */ 8071 RECOMP_FLAGS_IN(); 8072 eax = MEM32(esi + 0x2C); /* 0x3607D079: mov eax, dword ptr [esi + 0x2c] */ 8073 PUSH32(esp, eax); /* 0x3607D07C: push eax */ 8074 ecx = edi; /* 0x3607D07D: mov ecx, edi */ 8075 RECOMP_ICALL(ebx); /* 0x3607D07F: call ebx */ 8076 RECOMP_FLAGS_IN(); 8077 edi = POP32_VAL(esp); /* 0x3607D081: pop edi */ 8078 esi = POP32_VAL(esp); /* 0x3607D082: pop esi */ 8079 ebx = POP32_VAL(esp); /* 0x3607D083: pop ebx */ 8080 ebp = POP32_VAL(esp); /* 0x3607D084: pop ebp */ 8081 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D085: ret 4 */ 8082 RECOMP_REGS_OUT(); 8083 } 8084 8085 void sub_3607D090(void) { 8086 int _fpu_cmp = 0; 8087 uint32_t _cf = 0; 8088 int _df = 1; 8089 uint32_t _flag_k = FK_NONE; 8090 uint32_t _flag_a = 0, _flag_b = 0; 8091 uint32_t _itail_tgt = 0; 8092 RECOMP_REGS_LOCALS 8093 RECOMP_ENTER(0x3607D090u); 8094 8095 L_3607D090: 8096 PUSH32(esp, esi); /* 0x3607D090: push esi */ 8097 esi = ecx; /* 0x3607D091: mov esi, ecx */ 8098 eax = esi + 0x4; /* 0x3607D093: lea eax, [esi + 4] */ 8099 PUSH32(esp, eax); /* 0x3607D096: push eax */ 8100 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607D097: call dword ptr [0x3616ff70] */ 8101 RECOMP_FLAGS_IN(); 8102 PUSH32(esp, 0); /* 0x3607D09D: push 0 */ 8103 PUSH32(esp, 0x361B2CD8u); /* 0x3607D09F: push 0x361b2cd8 */ 8104 PUSH32(esp, 0x361B2CC0u); /* 0x3607D0A4: push 0x361b2cc0 */ 8105 PUSH32(esp, 0); /* 0x3607D0A9: push 0 */ 8106 PUSH32(esp, eax); /* 0x3607D0AB: push eax */ 8107 RECOMP_ICALL(0x3615FD86u); /* 0x3607D0AC: call 0x3615fd86 */ /* not lifted */ 8108 RECOMP_FLAGS_IN(); 8109 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8110 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8111 esp = esp + 0x18u; /* 0x3607D0B1: add esp, 0x18 */ 8112 _flag_k = FK_ADD; 8113 /* test eax, eax */ /* 0x3607D0B4: test eax, eax */ 8114 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8115 _cf = 0; 8116 _flag_k = FK_TEST; 8117 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D0CB; /* 0x3607D0B6: je 0x3607d0cb */ 8118 L_3607D0B8: 8119 ecx = MEM32(esi + 0x2C); /* 0x3607D0B8: mov ecx, dword ptr [esi + 0x2c] */ 8120 PUSH32(esp, ecx); /* 0x3607D0BB: push ecx */ 8121 ecx = MEM32(eax + 0x150); /* 0x3607D0BC: mov ecx, dword ptr [eax + 0x150] */ 8122 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u); 8123 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8124 esi = esi + 0x20u; /* 0x3607D0C2: add esi, 0x20 */ 8125 _flag_k = FK_ADD; 8126 PUSH32(esp, esi); /* 0x3607D0C5: push esi */ 8127 RECOMP_ICALL(0x3605EF90u); /* 0x3607D0C6: call 0x3605ef90 */ /* not lifted */ 8128 RECOMP_FLAGS_IN(); 8129 L_3607D0CB: 8130 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8131 eax = 0; /* 0x3607D0CB: xor eax, eax */ 8132 _cf = 0; 8133 _flag_k = FK_TEST; 8134 esi = POP32_VAL(esp); /* 0x3607D0CD: pop esi */ 8135 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D0CE: ret */ 8136 RECOMP_REGS_OUT(); 8137 } 8138 8139 void sub_3607D0D0(void) { 8140 int _fpu_cmp = 0; 8141 uint32_t _cf = 0; 8142 int _df = 1; 8143 uint32_t _flag_k = FK_NONE; 8144 uint32_t _flag_a = 0, _flag_b = 0; 8145 uint32_t _itail_tgt = 0; 8146 RECOMP_REGS_LOCALS 8147 RECOMP_ENTER(0x3607D0D0u); 8148 8149 L_3607D0D0: 8150 PUSH32(esp, ebp); /* 0x3607D0D0: push ebp */ 8151 ebp = esp; /* 0x3607D0D1: mov ebp, esp */ 8152 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607D0D3: push -1 */ 8153 PUSH32(esp, 0x361653F4u); /* 0x3607D0D5: push 0x361653f4 */ 8154 eax = MEM32(FS_BASE + (0)); /* 0x3607D0DA: mov eax, dword ptr fs:[0] */ 8155 PUSH32(esp, eax); /* 0x3607D0E0: push eax */ 8156 MEM32(FS_BASE + (0)) = esp; /* 0x3607D0E1: mov dword ptr fs:[0], esp */ 8157 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8159 esp = esp - 0x10u; /* 0x3607D0E8: sub esp, 0x10 */ 8160 _flag_k = FK_CMP; 8161 PUSH32(esp, esi); /* 0x3607D0EB: push esi */ 8162 esi = ecx; /* 0x3607D0EC: mov esi, ecx */ 8163 MEM32(ebp + (-0x10)) = esi; /* 0x3607D0EE: mov dword ptr [ebp - 0x10], esi */ 8164 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607D0F1: call dword ptr [0x3616ffd0] */ 8165 RECOMP_FLAGS_IN(); 8166 PUSH32(esp, 0x38u); /* 0x3607D0F7: push 0x38 */ 8167 MEM32(ebp + (-0x4)) = 0; /* 0x3607D0F9: mov dword ptr [ebp - 4], 0 */ 8168 MEM32(esi) = 0x361715DCu; /* 0x3607D100: mov dword ptr [esi], 0x361715dc */ 8169 RECOMP_ICALL(0x3615FD6Au); /* 0x3607D106: call 0x3615fd6a */ /* not lifted */ 8170 RECOMP_FLAGS_IN(); 8171 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8173 esp = esp + 4; /* 0x3607D10B: add esp, 4 */ 8174 _flag_k = FK_ADD; 8175 MEM32(ebp + (-0x14)) = eax; /* 0x3607D10E: mov dword ptr [ebp - 0x14], eax */ 8176 /* test eax, eax */ /* 0x3607D111: test eax, eax */ 8177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8178 _cf = 0; 8179 _flag_k = FK_TEST; 8180 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607D113: mov byte ptr [ebp - 4], 1 */ 8181 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D146; /* 0x3607D117: je 0x3607d146 */ 8182 L_3607D119: 8183 ecx = ebp + (-0x1C); /* 0x3607D119: lea ecx, [ebp - 0x1c] */ 8184 PUSH32(esp, ecx); /* 0x3607D11C: push ecx */ 8185 ecx = eax; /* 0x3607D11D: mov ecx, eax */ 8186 MEM32(ebp + (-0x1C)) = 0xDEAEu; /* 0x3607D11F: mov dword ptr [ebp - 0x1c], 0xdeae */ 8187 MEM32(ebp + (-0x18)) = 0; /* 0x3607D126: mov dword ptr [ebp - 0x18], 0 */ 8188 RECOMP_ICALL(0x36151200u); /* 0x3607D12D: call 0x36151200 */ /* not lifted */ 8189 RECOMP_FLAGS_IN(); 8190 MEM32(esi + 0x20) = eax; /* 0x3607D132: mov dword ptr [esi + 0x20], eax */ 8191 eax = esi; /* 0x3607D135: mov eax, esi */ 8192 esi = POP32_VAL(esp); /* 0x3607D137: pop esi */ 8193 ecx = MEM32(ebp + (-0xC)); /* 0x3607D138: mov ecx, dword ptr [ebp - 0xc] */ 8194 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D13B: mov dword ptr fs:[0], ecx */ 8195 esp = ebp; /* 0x3607D142: mov esp, ebp */ 8196 ebp = POP32_VAL(esp); /* 0x3607D144: pop ebp */ 8197 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D145: ret */ 8198 L_3607D146: 8199 ecx = MEM32(ebp + (-0xC)); /* 0x3607D146: mov ecx, dword ptr [ebp - 0xc] */ 8200 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8201 eax = 0; /* 0x3607D149: xor eax, eax */ 8202 _cf = 0; 8203 _flag_k = FK_TEST; 8204 MEM32(esi + 0x20) = eax; /* 0x3607D14B: mov dword ptr [esi + 0x20], eax */ 8205 eax = esi; /* 0x3607D14E: mov eax, esi */ 8206 esi = POP32_VAL(esp); /* 0x3607D150: pop esi */ 8207 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D151: mov dword ptr fs:[0], ecx */ 8208 esp = ebp; /* 0x3607D158: mov esp, ebp */ 8209 ebp = POP32_VAL(esp); /* 0x3607D15A: pop ebp */ 8210 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D15B: ret */ 8211 RECOMP_REGS_OUT(); 8212 } 8213 8214 void sub_3607D12D(void) { 8215 int _fpu_cmp = 0; 8216 uint32_t _cf = 0; 8217 int _df = 1; 8218 uint32_t _flag_k = FK_NONE; 8219 uint32_t _flag_a = 0, _flag_b = 0; 8220 uint32_t _itail_tgt = 0; 8221 RECOMP_REGS_LOCALS 8222 RECOMP_ENTER(0x3607D12Du); 8223 8224 L_3607D12D: 8225 RECOMP_ICALL(0x36151200u); /* 0x3607D12D: call 0x36151200 */ /* not lifted */ 8226 RECOMP_FLAGS_IN(); 8227 MEM32(esi + 0x20) = eax; /* 0x3607D132: mov dword ptr [esi + 0x20], eax */ 8228 eax = esi; /* 0x3607D135: mov eax, esi */ 8229 esi = POP32_VAL(esp); /* 0x3607D137: pop esi */ 8230 ecx = MEM32(ebp + (-0xC)); /* 0x3607D138: mov ecx, dword ptr [ebp - 0xc] */ 8231 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D13B: mov dword ptr fs:[0], ecx */ 8232 esp = ebp; /* 0x3607D142: mov esp, ebp */ 8233 ebp = POP32_VAL(esp); /* 0x3607D144: pop ebp */ 8234 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D145: ret */ 8235 RECOMP_REGS_OUT(); 8236 } 8237 8238 void sub_3607D160(void) { 8239 int _fpu_cmp = 0; 8240 uint32_t _cf = 0; 8241 int _df = 1; 8242 uint32_t _flag_k = FK_NONE; 8243 uint32_t _flag_a = 0, _flag_b = 0; 8244 uint32_t _itail_tgt = 0; 8245 RECOMP_REGS_LOCALS 8246 RECOMP_ENTER(0x3607D160u); 8247 8248 L_3607D160: 8249 PUSH32(esp, ebp); /* 0x3607D160: push ebp */ 8250 ebp = esp; /* 0x3607D161: mov ebp, esp */ 8251 PUSH32(esp, esi); /* 0x3607D163: push esi */ 8252 esi = ecx; /* 0x3607D164: mov esi, ecx */ 8253 RECOMP_ICALL(0x3607D190u); /* 0x3607D166: call 0x3607d190 */ /* not lifted */ 8254 RECOMP_FLAGS_IN(); 8255 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607D16B: test byte ptr [ebp + 8], 1 */ 8256 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8257 _cf = 0; 8258 _flag_k = FK_NARROW(FK_TEST, 24); 8259 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D17A; /* 0x3607D16F: je 0x3607d17a */ 8260 L_3607D171: 8261 PUSH32(esp, esi); /* 0x3607D171: push esi */ 8262 RECOMP_ICALL(0x3615FCC4u); /* 0x3607D172: call 0x3615fcc4 */ /* not lifted */ 8263 RECOMP_FLAGS_IN(); 8264 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8265 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8266 esp = esp + 4; /* 0x3607D177: add esp, 4 */ 8267 _flag_k = FK_ADD; 8268 L_3607D17A: 8269 eax = esi; /* 0x3607D17A: mov eax, esi */ 8270 esi = POP32_VAL(esp); /* 0x3607D17C: pop esi */ 8271 ebp = POP32_VAL(esp); /* 0x3607D17D: pop ebp */ 8272 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D17E: ret 4 */ 8273 RECOMP_REGS_OUT(); 8274 } 8275 8276 void sub_3607D190(void) { 8277 int _fpu_cmp = 0; 8278 uint32_t _cf = 0; 8279 int _df = 1; 8280 uint32_t _flag_k = FK_NONE; 8281 uint32_t _flag_a = 0, _flag_b = 0; 8282 uint32_t _itail_tgt = 0; 8283 RECOMP_REGS_LOCALS 8284 RECOMP_ENTER(0x3607D190u); 8285 8286 L_3607D190: 8287 MEM32(ecx) = 0x361715DCu; /* 0x3607D190: mov dword ptr [ecx], 0x361715dc */ 8288 L_3607D196: 8289 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 8290 { RECOMP_REGS_OUT(); return; } /* end of function */ 8291 _ljump: 8292 switch (_itail_tgt) { 8293 case 0x3607D190u: goto L_3607D190; 8294 case 0x3607D196u: goto L_3607D196; 8295 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8296 } 8297 RECOMP_REGS_OUT(); 8298 } 8299 8300 void sub_3607D1A0(void) { 8301 int _fpu_cmp = 0; 8302 uint32_t _cf = 0; 8303 int _df = 1; 8304 uint32_t _flag_k = FK_NONE; 8305 uint32_t _flag_a = 0, _flag_b = 0; 8306 uint32_t _itail_tgt = 0; 8307 RECOMP_REGS_LOCALS 8308 RECOMP_ENTER(0x3607D1A0u); 8309 8310 L_3607D1A0: 8311 PUSH32(esp, ebp); /* 0x3607D1A0: push ebp */ 8312 ebp = esp; /* 0x3607D1A1: mov ebp, esp */ 8313 PUSH32(esp, esi); /* 0x3607D1A3: push esi */ 8314 esi = ecx; /* 0x3607D1A4: mov esi, ecx */ 8315 eax = MEM32(esi + 0x20); /* 0x3607D1A6: mov eax, dword ptr [esi + 0x20] */ 8316 PUSH32(esp, edi); /* 0x3607D1A9: push edi */ 8317 edi = MEM32(ebp + 0x8); /* 0x3607D1AA: mov edi, dword ptr [ebp + 8] */ 8318 PUSH32(esp, eax); /* 0x3607D1AD: push eax */ 8319 PUSH32(esp, edi); /* 0x3607D1AE: push edi */ 8320 RECOMP_ICALL(0x361516D0u); /* 0x3607D1AF: call 0x361516d0 */ /* not lifted */ 8321 RECOMP_FLAGS_IN(); 8322 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8323 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8324 esp = esp + 8; /* 0x3607D1B4: add esp, 8 */ 8325 _flag_k = FK_ADD; 8326 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x24u); 8327 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8328 esi = esi + 0x24u; /* 0x3607D1B7: add esi, 0x24 */ 8329 _flag_k = FK_ADD; 8330 PUSH32(esp, esi); /* 0x3607D1BA: push esi */ 8331 ecx = edi; /* 0x3607D1BB: mov ecx, edi */ 8332 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607D1BD: call dword ptr [0x3616fa8c] */ 8333 RECOMP_FLAGS_IN(); 8334 ecx = edi; /* 0x3607D1C3: mov ecx, edi */ 8335 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607D1C5: call dword ptr [0x3616fadc] */ 8336 RECOMP_FLAGS_IN(); 8337 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8338 _cf = (eax) != 0; 8339 eax = (uint32_t)(-(int32_t)eax); /* 0x3607D1CB: neg eax */ 8340 _flag_k = FK_CMP; 8341 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607D1CD: sbb eax, eax */ 8342 eax = _sc ? 0xFFFFFFFFu : 0; 8343 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8344 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8345 edi = POP32_VAL(esp); /* 0x3607D1CF: pop edi */ 8346 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8347 eax = eax + 1; /* 0x3607D1D0: inc eax */ 8348 _flag_k = FK_INC; 8349 esi = POP32_VAL(esp); /* 0x3607D1D1: pop esi */ 8350 ebp = POP32_VAL(esp); /* 0x3607D1D2: pop ebp */ 8351 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D1D3: ret 4 */ 8352 RECOMP_REGS_OUT(); 8353 } 8354 8355 void sub_3607D1E0(void) { 8356 int _fpu_cmp = 0; 8357 uint32_t _cf = 0; 8358 int _df = 1; 8359 uint32_t _flag_k = FK_NONE; 8360 uint32_t _flag_a = 0, _flag_b = 0; 8361 uint32_t _itail_tgt = 0; 8362 RECOMP_REGS_LOCALS 8363 RECOMP_ENTER(0x3607D1E0u); 8364 8365 L_3607D1E0: 8366 PUSH32(esp, ebp); /* 0x3607D1E0: push ebp */ 8367 ebp = esp; /* 0x3607D1E1: mov ebp, esp */ 8368 PUSH32(esp, esi); /* 0x3607D1E3: push esi */ 8369 esi = ecx; /* 0x3607D1E4: mov esi, ecx */ 8370 eax = MEM32(esi + 0x20); /* 0x3607D1E6: mov eax, dword ptr [esi + 0x20] */ 8371 PUSH32(esp, edi); /* 0x3607D1E9: push edi */ 8372 edi = MEM32(ebp + 0x8); /* 0x3607D1EA: mov edi, dword ptr [ebp + 8] */ 8373 PUSH32(esp, eax); /* 0x3607D1ED: push eax */ 8374 PUSH32(esp, edi); /* 0x3607D1EE: push edi */ 8375 RECOMP_ICALL(0x36151690u); /* 0x3607D1EF: call 0x36151690 */ /* not lifted */ 8376 RECOMP_FLAGS_IN(); 8377 ecx = MEM32(esi + 0x24); /* 0x3607D1F4: mov ecx, dword ptr [esi + 0x24] */ 8378 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8379 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8380 esp = esp + 8; /* 0x3607D1F7: add esp, 8 */ 8381 _flag_k = FK_ADD; 8382 PUSH32(esp, ecx); /* 0x3607D1FA: push ecx */ 8383 ecx = edi; /* 0x3607D1FB: mov ecx, edi */ 8384 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3607D1FD: call dword ptr [0x3616faec] */ 8385 RECOMP_FLAGS_IN(); 8386 edi = POP32_VAL(esp); /* 0x3607D203: pop edi */ 8387 esi = POP32_VAL(esp); /* 0x3607D204: pop esi */ 8388 ebp = POP32_VAL(esp); /* 0x3607D205: pop ebp */ 8389 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D206: ret 4 */ 8390 RECOMP_REGS_OUT(); 8391 } 8392 8393 void sub_3607D210(void) { 8394 int _fpu_cmp = 0; 8395 uint32_t _cf = 0; 8396 int _df = 1; 8397 uint32_t _flag_k = FK_NONE; 8398 uint32_t _flag_a = 0, _flag_b = 0; 8399 uint32_t _itail_tgt = 0; 8400 RECOMP_REGS_LOCALS 8401 RECOMP_ENTER(0x3607D210u); 8402 8403 L_3607D210: 8404 PUSH32(esp, esi); /* 0x3607D210: push esi */ 8405 esi = ecx; /* 0x3607D211: mov esi, ecx */ 8406 eax = esi + 0x4; /* 0x3607D213: lea eax, [esi + 4] */ 8407 PUSH32(esp, edi); /* 0x3607D216: push edi */ 8408 PUSH32(esp, eax); /* 0x3607D217: push eax */ 8409 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607D218: call dword ptr [0x3616ff70] */ 8410 RECOMP_FLAGS_IN(); 8411 PUSH32(esp, 0); /* 0x3607D21E: push 0 */ 8412 PUSH32(esp, 0x361B2CD8u); /* 0x3607D220: push 0x361b2cd8 */ 8413 PUSH32(esp, 0x361B2CC0u); /* 0x3607D225: push 0x361b2cc0 */ 8414 PUSH32(esp, 0); /* 0x3607D22A: push 0 */ 8415 PUSH32(esp, eax); /* 0x3607D22C: push eax */ 8416 RECOMP_ICALL(0x3615FD86u); /* 0x3607D22D: call 0x3615fd86 */ /* not lifted */ 8417 RECOMP_FLAGS_IN(); 8418 edi = eax; /* 0x3607D232: mov edi, eax */ 8419 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8420 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8421 esp = esp + 0x18u; /* 0x3607D234: add esp, 0x18 */ 8422 _flag_k = FK_ADD; 8423 /* test edi, edi */ /* 0x3607D237: test edi, edi */ 8424 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8425 _cf = 0; 8426 _flag_k = FK_TEST; 8427 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D277; /* 0x3607D239: je 0x3607d277 */ 8428 L_3607D23B: 8429 ecx = esi + 0x24; /* 0x3607D23B: lea ecx, [esi + 0x24] */ 8430 PUSH32(esp, ecx); /* 0x3607D23E: push ecx */ 8431 ecx = MEM32(esi + 0x20); /* 0x3607D23F: mov ecx, dword ptr [esi + 0x20] */ 8432 RECOMP_ICALL(MEM32(0x3616FB1C)); /* 0x3607D242: call dword ptr [0x3616fb1c] */ 8433 RECOMP_FLAGS_IN(); 8434 edx = MEM32(edi + 0x150); /* 0x3607D248: mov edx, dword ptr [edi + 0x150] */ 8435 eax = MEM32(esi + 0x20); /* 0x3607D24E: mov eax, dword ptr [esi + 0x20] */ 8436 MEM32(edx + 0xD4) = eax; /* 0x3607D251: mov dword ptr [edx + 0xd4], eax */ 8437 ecx = MEM32(esi + 0x20); /* 0x3607D257: mov ecx, dword ptr [esi + 0x20] */ 8438 PUSH32(esp, 0); /* 0x3607D25A: push 0 */ 8439 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 8440 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8441 ecx = ecx + 4; /* 0x3607D25C: add ecx, 4 */ 8442 _flag_k = FK_ADD; 8443 PUSH32(esp, 0); /* 0x3607D25F: push 0 */ 8444 PUSH32(esp, ecx); /* 0x3607D261: push ecx */ 8445 ecx = edi; /* 0x3607D262: mov ecx, edi */ 8446 RECOMP_ICALL(0x36072000u); /* 0x3607D264: call 0x36072000 */ /* not lifted */ 8447 RECOMP_FLAGS_IN(); 8448 ecx = eax; /* 0x3607D269: mov ecx, eax */ 8449 RECOMP_ICALL(0x360530C0u); /* 0x3607D26B: call 0x360530c0 */ /* not lifted */ 8450 RECOMP_FLAGS_IN(); 8451 MEM32(esi + 0x20) = 0; /* 0x3607D270: mov dword ptr [esi + 0x20], 0 */ 8452 L_3607D277: 8453 edi = POP32_VAL(esp); /* 0x3607D277: pop edi */ 8454 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8455 eax = 0; /* 0x3607D278: xor eax, eax */ 8456 _cf = 0; 8457 _flag_k = FK_TEST; 8458 esi = POP32_VAL(esp); /* 0x3607D27A: pop esi */ 8459 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D27B: ret */ 8460 RECOMP_REGS_OUT(); 8461 } 8462 8463 void sub_3607D280(void) { 8464 int _fpu_cmp = 0; 8465 uint32_t _cf = 0; 8466 int _df = 1; 8467 uint32_t _flag_k = FK_NONE; 8468 uint32_t _flag_a = 0, _flag_b = 0; 8469 uint32_t _itail_tgt = 0; 8470 RECOMP_REGS_LOCALS 8471 RECOMP_ENTER(0x3607D280u); 8472 8473 L_3607D280: 8474 PUSH32(esp, ebp); /* 0x3607D280: push ebp */ 8475 ebp = esp; /* 0x3607D281: mov ebp, esp */ 8476 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607D283: push -1 */ 8477 PUSH32(esp, 0x36165414u); /* 0x3607D285: push 0x36165414 */ 8478 eax = MEM32(FS_BASE + (0)); /* 0x3607D28A: mov eax, dword ptr fs:[0] */ 8479 PUSH32(esp, eax); /* 0x3607D290: push eax */ 8480 MEM32(FS_BASE + (0)) = esp; /* 0x3607D291: mov dword ptr fs:[0], esp */ 8481 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8483 esp = esp - 0x10u; /* 0x3607D298: sub esp, 0x10 */ 8484 _flag_k = FK_CMP; 8485 PUSH32(esp, esi); /* 0x3607D29B: push esi */ 8486 esi = ecx; /* 0x3607D29C: mov esi, ecx */ 8487 MEM32(ebp + (-0x10)) = esi; /* 0x3607D29E: mov dword ptr [ebp - 0x10], esi */ 8488 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607D2A1: call dword ptr [0x3616ffd0] */ 8489 RECOMP_FLAGS_IN(); 8490 PUSH32(esp, 0x40u); /* 0x3607D2A7: push 0x40 */ 8491 MEM32(ebp + (-0x4)) = 0; /* 0x3607D2A9: mov dword ptr [ebp - 4], 0 */ 8492 MEM32(esi) = 0x36171600u; /* 0x3607D2B0: mov dword ptr [esi], 0x36171600 */ 8493 RECOMP_ICALL(0x3615FD6Au); /* 0x3607D2B6: call 0x3615fd6a */ /* not lifted */ 8494 RECOMP_FLAGS_IN(); 8495 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8496 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8497 esp = esp + 4; /* 0x3607D2BB: add esp, 4 */ 8498 _flag_k = FK_ADD; 8499 MEM32(ebp + (-0x14)) = eax; /* 0x3607D2BE: mov dword ptr [ebp - 0x14], eax */ 8500 /* test eax, eax */ /* 0x3607D2C1: test eax, eax */ 8501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8502 _cf = 0; 8503 _flag_k = FK_TEST; 8504 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607D2C3: mov byte ptr [ebp - 4], 1 */ 8505 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D2F6; /* 0x3607D2C7: je 0x3607d2f6 */ 8506 L_3607D2C9: 8507 ecx = ebp + (-0x1C); /* 0x3607D2C9: lea ecx, [ebp - 0x1c] */ 8508 PUSH32(esp, ecx); /* 0x3607D2CC: push ecx */ 8509 ecx = eax; /* 0x3607D2CD: mov ecx, eax */ 8510 MEM32(ebp + (-0x1C)) = 0xDEADu; /* 0x3607D2CF: mov dword ptr [ebp - 0x1c], 0xdead */ 8511 MEM32(ebp + (-0x18)) = 0; /* 0x3607D2D6: mov dword ptr [ebp - 0x18], 0 */ 8512 RECOMP_ICALL(0x36150B30u); /* 0x3607D2DD: call 0x36150b30 */ /* not lifted */ 8513 RECOMP_FLAGS_IN(); 8514 MEM32(esi + 0x20) = eax; /* 0x3607D2E2: mov dword ptr [esi + 0x20], eax */ 8515 eax = esi; /* 0x3607D2E5: mov eax, esi */ 8516 esi = POP32_VAL(esp); /* 0x3607D2E7: pop esi */ 8517 ecx = MEM32(ebp + (-0xC)); /* 0x3607D2E8: mov ecx, dword ptr [ebp - 0xc] */ 8518 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D2EB: mov dword ptr fs:[0], ecx */ 8519 esp = ebp; /* 0x3607D2F2: mov esp, ebp */ 8520 ebp = POP32_VAL(esp); /* 0x3607D2F4: pop ebp */ 8521 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D2F5: ret */ 8522 L_3607D2F6: 8523 ecx = MEM32(ebp + (-0xC)); /* 0x3607D2F6: mov ecx, dword ptr [ebp - 0xc] */ 8524 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8525 eax = 0; /* 0x3607D2F9: xor eax, eax */ 8526 _cf = 0; 8527 _flag_k = FK_TEST; 8528 MEM32(esi + 0x20) = eax; /* 0x3607D2FB: mov dword ptr [esi + 0x20], eax */ 8529 eax = esi; /* 0x3607D2FE: mov eax, esi */ 8530 esi = POP32_VAL(esp); /* 0x3607D300: pop esi */ 8531 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D301: mov dword ptr fs:[0], ecx */ 8532 esp = ebp; /* 0x3607D308: mov esp, ebp */ 8533 ebp = POP32_VAL(esp); /* 0x3607D30A: pop ebp */ 8534 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D30B: ret */ 8535 RECOMP_REGS_OUT(); 8536 } 8537 8538 void sub_3607D2DD(void) { 8539 int _fpu_cmp = 0; 8540 uint32_t _cf = 0; 8541 int _df = 1; 8542 uint32_t _flag_k = FK_NONE; 8543 uint32_t _flag_a = 0, _flag_b = 0; 8544 uint32_t _itail_tgt = 0; 8545 RECOMP_REGS_LOCALS 8546 RECOMP_ENTER(0x3607D2DDu); 8547 8548 L_3607D2DD: 8549 RECOMP_ICALL(0x36150B30u); /* 0x3607D2DD: call 0x36150b30 */ /* not lifted */ 8550 RECOMP_FLAGS_IN(); 8551 MEM32(esi + 0x20) = eax; /* 0x3607D2E2: mov dword ptr [esi + 0x20], eax */ 8552 eax = esi; /* 0x3607D2E5: mov eax, esi */ 8553 esi = POP32_VAL(esp); /* 0x3607D2E7: pop esi */ 8554 ecx = MEM32(ebp + (-0xC)); /* 0x3607D2E8: mov ecx, dword ptr [ebp - 0xc] */ 8555 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D2EB: mov dword ptr fs:[0], ecx */ 8556 esp = ebp; /* 0x3607D2F2: mov esp, ebp */ 8557 ebp = POP32_VAL(esp); /* 0x3607D2F4: pop ebp */ 8558 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D2F5: ret */ 8559 RECOMP_REGS_OUT(); 8560 } 8561 8562 void sub_3607D310(void) { 8563 int _fpu_cmp = 0; 8564 uint32_t _cf = 0; 8565 int _df = 1; 8566 uint32_t _flag_k = FK_NONE; 8567 uint32_t _flag_a = 0, _flag_b = 0; 8568 uint32_t _itail_tgt = 0; 8569 RECOMP_REGS_LOCALS 8570 RECOMP_ENTER(0x3607D310u); 8571 8572 L_3607D310: 8573 PUSH32(esp, ebp); /* 0x3607D310: push ebp */ 8574 ebp = esp; /* 0x3607D311: mov ebp, esp */ 8575 PUSH32(esp, esi); /* 0x3607D313: push esi */ 8576 esi = ecx; /* 0x3607D314: mov esi, ecx */ 8577 RECOMP_ICALL(0x3607D340u); /* 0x3607D316: call 0x3607d340 */ /* not lifted */ 8578 RECOMP_FLAGS_IN(); 8579 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607D31B: test byte ptr [ebp + 8], 1 */ 8580 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8581 _cf = 0; 8582 _flag_k = FK_NARROW(FK_TEST, 24); 8583 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D32A; /* 0x3607D31F: je 0x3607d32a */ 8584 L_3607D321: 8585 PUSH32(esp, esi); /* 0x3607D321: push esi */ 8586 RECOMP_ICALL(0x3615FCC4u); /* 0x3607D322: call 0x3615fcc4 */ /* not lifted */ 8587 RECOMP_FLAGS_IN(); 8588 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8590 esp = esp + 4; /* 0x3607D327: add esp, 4 */ 8591 _flag_k = FK_ADD; 8592 L_3607D32A: 8593 eax = esi; /* 0x3607D32A: mov eax, esi */ 8594 esi = POP32_VAL(esp); /* 0x3607D32C: pop esi */ 8595 ebp = POP32_VAL(esp); /* 0x3607D32D: pop ebp */ 8596 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D32E: ret 4 */ 8597 RECOMP_REGS_OUT(); 8598 } 8599 8600 void sub_3607D340(void) { 8601 int _fpu_cmp = 0; 8602 uint32_t _cf = 0; 8603 int _df = 1; 8604 uint32_t _flag_k = FK_NONE; 8605 uint32_t _flag_a = 0, _flag_b = 0; 8606 uint32_t _itail_tgt = 0; 8607 RECOMP_REGS_LOCALS 8608 RECOMP_ENTER(0x3607D340u); 8609 8610 L_3607D340: 8611 MEM32(ecx) = 0x36171600u; /* 0x3607D340: mov dword ptr [ecx], 0x36171600 */ 8612 L_3607D346: 8613 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 8614 { RECOMP_REGS_OUT(); return; } /* end of function */ 8615 _ljump: 8616 switch (_itail_tgt) { 8617 case 0x3607D340u: goto L_3607D340; 8618 case 0x3607D346u: goto L_3607D346; 8619 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8620 } 8621 RECOMP_REGS_OUT(); 8622 } 8623 8624 void sub_3607D350(void) { 8625 int _fpu_cmp = 0; 8626 uint32_t _cf = 0; 8627 int _df = 1; 8628 uint32_t _flag_k = FK_NONE; 8629 uint32_t _flag_a = 0, _flag_b = 0; 8630 uint32_t _itail_tgt = 0; 8631 RECOMP_REGS_LOCALS 8632 RECOMP_ENTER(0x3607D350u); 8633 8634 L_3607D350: 8635 PUSH32(esp, ebp); /* 0x3607D350: push ebp */ 8636 ebp = esp; /* 0x3607D351: mov ebp, esp */ 8637 eax = MEM32(ecx + 0x20); /* 0x3607D353: mov eax, dword ptr [ecx + 0x20] */ 8638 PUSH32(esp, esi); /* 0x3607D356: push esi */ 8639 esi = MEM32(ebp + 0x8); /* 0x3607D357: mov esi, dword ptr [ebp + 8] */ 8640 PUSH32(esp, eax); /* 0x3607D35A: push eax */ 8641 PUSH32(esp, esi); /* 0x3607D35B: push esi */ 8642 RECOMP_ICALL(0x36151110u); /* 0x3607D35C: call 0x36151110 */ /* not lifted */ 8643 RECOMP_FLAGS_IN(); 8644 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8646 esp = esp + 8; /* 0x3607D361: add esp, 8 */ 8647 _flag_k = FK_ADD; 8648 ecx = esi; /* 0x3607D364: mov ecx, esi */ 8649 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607D366: call dword ptr [0x3616fadc] */ 8650 RECOMP_FLAGS_IN(); 8651 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8652 _cf = (eax) != 0; 8653 eax = (uint32_t)(-(int32_t)eax); /* 0x3607D36C: neg eax */ 8654 _flag_k = FK_CMP; 8655 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607D36E: sbb eax, eax */ 8656 eax = _sc ? 0xFFFFFFFFu : 0; 8657 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8658 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8659 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8660 eax = eax + 1; /* 0x3607D370: inc eax */ 8661 _flag_k = FK_INC; 8662 esi = POP32_VAL(esp); /* 0x3607D371: pop esi */ 8663 ebp = POP32_VAL(esp); /* 0x3607D372: pop ebp */ 8664 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D373: ret 4 */ 8665 RECOMP_REGS_OUT(); 8666 } 8667 8668 void sub_3607D380(void) { 8669 int _fpu_cmp = 0; 8670 uint32_t _cf = 0; 8671 int _df = 1; 8672 uint32_t _flag_k = FK_NONE; 8673 uint32_t _flag_a = 0, _flag_b = 0; 8674 uint32_t _itail_tgt = 0; 8675 RECOMP_REGS_LOCALS 8676 RECOMP_ENTER(0x3607D380u); 8677 8678 L_3607D380: 8679 PUSH32(esp, ebp); /* 0x3607D380: push ebp */ 8680 ebp = esp; /* 0x3607D381: mov ebp, esp */ 8681 eax = MEM32(ecx + 0x20); /* 0x3607D383: mov eax, dword ptr [ecx + 0x20] */ 8682 ecx = MEM32(ebp + 0x8); /* 0x3607D386: mov ecx, dword ptr [ebp + 8] */ 8683 PUSH32(esp, eax); /* 0x3607D389: push eax */ 8684 PUSH32(esp, ecx); /* 0x3607D38A: push ecx */ 8685 RECOMP_ICALL(0x361510B0u); /* 0x3607D38B: call 0x361510b0 */ /* not lifted */ 8686 RECOMP_FLAGS_IN(); 8687 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8688 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8689 esp = esp + 8; /* 0x3607D390: add esp, 8 */ 8690 _flag_k = FK_ADD; 8691 ebp = POP32_VAL(esp); /* 0x3607D393: pop ebp */ 8692 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D394: ret 4 */ 8693 RECOMP_REGS_OUT(); 8694 } 8695 8696 void sub_3607D3A0(void) { 8697 int _fpu_cmp = 0; 8698 uint32_t _cf = 0; 8699 int _df = 1; 8700 uint32_t _flag_k = FK_NONE; 8701 uint32_t _flag_a = 0, _flag_b = 0; 8702 uint32_t _itail_tgt = 0; 8703 RECOMP_REGS_LOCALS 8704 RECOMP_ENTER(0x3607D3A0u); 8705 8706 L_3607D3A0: 8707 PUSH32(esp, ebp); /* 0x3607D3A0: push ebp */ 8708 ebp = esp; /* 0x3607D3A1: mov ebp, esp */ 8709 PUSH32(esp, ecx); /* 0x3607D3A3: push ecx */ 8710 PUSH32(esp, esi); /* 0x3607D3A4: push esi */ 8711 PUSH32(esp, edi); /* 0x3607D3A5: push edi */ 8712 edi = ecx; /* 0x3607D3A6: mov edi, ecx */ 8713 eax = edi + 0x4; /* 0x3607D3A8: lea eax, [edi + 4] */ 8714 PUSH32(esp, eax); /* 0x3607D3AB: push eax */ 8715 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607D3AC: call dword ptr [0x3616ff70] */ 8716 RECOMP_FLAGS_IN(); 8717 PUSH32(esp, 0); /* 0x3607D3B2: push 0 */ 8718 PUSH32(esp, 0x361B2CD8u); /* 0x3607D3B4: push 0x361b2cd8 */ 8719 PUSH32(esp, 0x361B2CC0u); /* 0x3607D3B9: push 0x361b2cc0 */ 8720 PUSH32(esp, 0); /* 0x3607D3BE: push 0 */ 8721 PUSH32(esp, eax); /* 0x3607D3C0: push eax */ 8722 RECOMP_ICALL(0x3615FD86u); /* 0x3607D3C1: call 0x3615fd86 */ /* not lifted */ 8723 RECOMP_FLAGS_IN(); 8724 esi = eax; /* 0x3607D3C6: mov esi, eax */ 8725 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8726 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8727 esp = esp + 0x18u; /* 0x3607D3C8: add esp, 0x18 */ 8728 _flag_k = FK_ADD; 8729 /* test esi, esi */ /* 0x3607D3CB: test esi, esi */ 8730 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 8731 _cf = 0; 8732 _flag_k = FK_TEST; 8733 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D441; /* 0x3607D3CD: je 0x3607d441 */ 8734 L_3607D3CF: 8735 ecx = MEM32(esi + 0x8); /* 0x3607D3CF: mov ecx, dword ptr [esi + 8] */ 8736 PUSH32(esp, ebx); /* 0x3607D3D2: push ebx */ 8737 edx = ebp + (-0x4); /* 0x3607D3D3: lea edx, [ebp - 4] */ 8738 MEM32(ebp + (-0x4)) = ecx; /* 0x3607D3D6: mov dword ptr [ebp - 4], ecx */ 8739 ecx = MEM32(edi + 0x20); /* 0x3607D3D9: mov ecx, dword ptr [edi + 0x20] */ 8740 PUSH32(esp, edx); /* 0x3607D3DC: push edx */ 8741 RECOMP_ICALL(MEM32(0x3616FB1C)); /* 0x3607D3DD: call dword ptr [0x3616fb1c] */ 8742 RECOMP_FLAGS_IN(); 8743 eax = MEM32(edi + 0x20); /* 0x3607D3E3: mov eax, dword ptr [edi + 0x20] */ 8744 ecx = MEM32(esi + 0x150); /* 0x3607D3E6: mov ecx, dword ptr [esi + 0x150] */ 8745 PUSH32(esp, eax); /* 0x3607D3EC: push eax */ 8746 RECOMP_ICALL(0x3605DD20u); /* 0x3607D3ED: call 0x3605dd20 */ /* not lifted */ 8747 RECOMP_FLAGS_IN(); 8748 ecx = esi; /* 0x3607D3F2: mov ecx, esi */ 8749 RECOMP_ICALL(MEM32(0x3616FFB0)); /* 0x3607D3F4: call dword ptr [0x3616ffb0] */ 8750 RECOMP_FLAGS_IN(); 8751 ecx = esi; /* 0x3607D3FA: mov ecx, esi */ 8752 ebx = eax; /* 0x3607D3FC: mov ebx, eax */ 8753 RECOMP_ICALL(0x36072000u); /* 0x3607D3FE: call 0x36072000 */ /* not lifted */ 8754 RECOMP_FLAGS_IN(); 8755 ecx = MEM32(ebx); /* 0x3607D403: mov ecx, dword ptr [ebx] */ 8756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x9Cu); 8757 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8758 eax = eax + 0x9Cu; /* 0x3607D405: add eax, 0x9c */ 8759 _flag_k = FK_ADD; 8760 MEM32(eax) = ecx; /* 0x3607D40A: mov dword ptr [eax], ecx */ 8761 edx = MEM32(ebx + 0x4); /* 0x3607D40C: mov edx, dword ptr [ebx + 4] */ 8762 MEM32(eax + 0x4) = edx; /* 0x3607D40F: mov dword ptr [eax + 4], edx */ 8763 ecx = MEM32(ebx + 0x8); /* 0x3607D412: mov ecx, dword ptr [ebx + 8] */ 8764 MEM32(eax + 0x8) = ecx; /* 0x3607D415: mov dword ptr [eax + 8], ecx */ 8765 edx = MEM32(edi + 0x20); /* 0x3607D418: mov edx, dword ptr [edi + 0x20] */ 8766 PUSH32(esp, 0); /* 0x3607D41B: push 0 */ 8767 PUSH32(esp, 1); /* 0x3607D41D: push 1 */ 8768 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4); 8769 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8770 edx = edx + 4; /* 0x3607D41F: add edx, 4 */ 8771 _flag_k = FK_ADD; 8772 PUSH32(esp, edx); /* 0x3607D422: push edx */ 8773 ecx = esi; /* 0x3607D423: mov ecx, esi */ 8774 RECOMP_ICALL(0x36072000u); /* 0x3607D425: call 0x36072000 */ /* not lifted */ 8775 RECOMP_FLAGS_IN(); 8776 ecx = eax; /* 0x3607D42A: mov ecx, eax */ 8777 RECOMP_ICALL(0x360530C0u); /* 0x3607D42C: call 0x360530c0 */ /* not lifted */ 8778 RECOMP_FLAGS_IN(); 8779 ebx = POP32_VAL(esp); /* 0x3607D431: pop ebx */ 8780 MEM32(edi + 0x20) = 0; /* 0x3607D432: mov dword ptr [edi + 0x20], 0 */ 8781 edi = POP32_VAL(esp); /* 0x3607D439: pop edi */ 8782 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8783 eax = 0; /* 0x3607D43A: xor eax, eax */ 8784 _cf = 0; 8785 _flag_k = FK_TEST; 8786 esi = POP32_VAL(esp); /* 0x3607D43C: pop esi */ 8787 esp = ebp; /* 0x3607D43D: mov esp, ebp */ 8788 ebp = POP32_VAL(esp); /* 0x3607D43F: pop ebp */ 8789 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D440: ret */ 8790 L_3607D441: 8791 edi = POP32_VAL(esp); /* 0x3607D441: pop edi */ 8792 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8793 eax = 0; /* 0x3607D442: xor eax, eax */ 8794 _cf = 0; 8795 _flag_k = FK_TEST; 8796 esi = POP32_VAL(esp); /* 0x3607D444: pop esi */ 8797 esp = ebp; /* 0x3607D445: mov esp, ebp */ 8798 ebp = POP32_VAL(esp); /* 0x3607D447: pop ebp */ 8799 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D448: ret */ 8800 RECOMP_REGS_OUT(); 8801 } 8802 8803 void sub_3607D450(void) { 8804 int _fpu_cmp = 0; 8805 uint32_t _cf = 0; 8806 int _df = 1; 8807 uint32_t _flag_k = FK_NONE; 8808 uint32_t _flag_a = 0, _flag_b = 0; 8809 uint32_t _itail_tgt = 0; 8810 RECOMP_REGS_LOCALS 8811 RECOMP_ENTER(0x3607D450u); 8812 8813 L_3607D450: 8814 PUSH32(esp, esi); /* 0x3607D450: push esi */ 8815 esi = ecx; /* 0x3607D451: mov esi, ecx */ 8816 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607D453: call dword ptr [0x3616ffd0] */ 8817 RECOMP_FLAGS_IN(); 8818 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8819 eax = 0; /* 0x3607D459: xor eax, eax */ 8820 _cf = 0; 8821 _flag_k = FK_TEST; 8822 MEM32(esi + 0x24) = eax; /* 0x3607D45B: mov dword ptr [esi + 0x24], eax */ 8823 MEM32(esi + 0x28) = eax; /* 0x3607D45E: mov dword ptr [esi + 0x28], eax */ 8824 MEM32(esi + 0x2C) = eax; /* 0x3607D461: mov dword ptr [esi + 0x2c], eax */ 8825 MEM32(esi + 0x30) = eax; /* 0x3607D464: mov dword ptr [esi + 0x30], eax */ 8826 MEM32(esi) = 0x36171624u; /* 0x3607D467: mov dword ptr [esi], 0x36171624 */ 8827 eax = esi; /* 0x3607D46D: mov eax, esi */ 8828 esi = POP32_VAL(esp); /* 0x3607D46F: pop esi */ 8829 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D470: ret */ 8830 RECOMP_REGS_OUT(); 8831 } 8832 8833 void sub_3607D480(void) { 8834 int _fpu_cmp = 0; 8835 uint32_t _cf = 0; 8836 int _df = 1; 8837 uint32_t _flag_k = FK_NONE; 8838 uint32_t _flag_a = 0, _flag_b = 0; 8839 uint32_t _itail_tgt = 0; 8840 RECOMP_REGS_LOCALS 8841 RECOMP_ENTER(0x3607D480u); 8842 8843 L_3607D480: 8844 PUSH32(esp, ebp); /* 0x3607D480: push ebp */ 8845 ebp = esp; /* 0x3607D481: mov ebp, esp */ 8846 PUSH32(esp, esi); /* 0x3607D483: push esi */ 8847 esi = ecx; /* 0x3607D484: mov esi, ecx */ 8848 RECOMP_ICALL(0x3607D5B0u); /* 0x3607D486: call 0x3607d5b0 */ /* not lifted */ 8849 RECOMP_FLAGS_IN(); 8850 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607D48B: test byte ptr [ebp + 8], 1 */ 8851 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8852 _cf = 0; 8853 _flag_k = FK_NARROW(FK_TEST, 24); 8854 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D49A; /* 0x3607D48F: je 0x3607d49a */ 8855 L_3607D491: 8856 PUSH32(esp, esi); /* 0x3607D491: push esi */ 8857 RECOMP_ICALL(0x3615FCC4u); /* 0x3607D492: call 0x3615fcc4 */ /* not lifted */ 8858 RECOMP_FLAGS_IN(); 8859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8861 esp = esp + 4; /* 0x3607D497: add esp, 4 */ 8862 _flag_k = FK_ADD; 8863 L_3607D49A: 8864 eax = esi; /* 0x3607D49A: mov eax, esi */ 8865 esi = POP32_VAL(esp); /* 0x3607D49C: pop esi */ 8866 ebp = POP32_VAL(esp); /* 0x3607D49D: pop ebp */ 8867 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D49E: ret 4 */ 8868 RECOMP_REGS_OUT(); 8869 } 8870 8871 void sub_3607D4B0(void) { 8872 int _fpu_cmp = 0; 8873 uint32_t _cf = 0; 8874 int _df = 1; 8875 uint32_t _flag_k = FK_NONE; 8876 uint32_t _flag_a = 0, _flag_b = 0; 8877 uint32_t _itail_tgt = 0; 8878 RECOMP_REGS_LOCALS 8879 RECOMP_ENTER(0x3607D4B0u); 8880 8881 L_3607D4B0: 8882 PUSH32(esp, ebp); /* 0x3607D4B0: push ebp */ 8883 ebp = esp; /* 0x3607D4B1: mov ebp, esp */ 8884 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607D4B3: push -1 */ 8885 PUSH32(esp, 0x36165432u); /* 0x3607D4B5: push 0x36165432 */ 8886 eax = MEM32(FS_BASE + (0)); /* 0x3607D4BA: mov eax, dword ptr fs:[0] */ 8887 PUSH32(esp, eax); /* 0x3607D4C0: push eax */ 8888 MEM32(FS_BASE + (0)) = esp; /* 0x3607D4C1: mov dword ptr fs:[0], esp */ 8889 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8890 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8891 esp = esp - 0x18u; /* 0x3607D4C8: sub esp, 0x18 */ 8892 _flag_k = FK_CMP; 8893 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607D4CB: mov al, byte ptr [ebp + 0xb] */ 8894 PUSH32(esp, ebx); /* 0x3607D4CE: push ebx */ 8895 PUSH32(esp, esi); /* 0x3607D4CF: push esi */ 8896 PUSH32(esp, edi); /* 0x3607D4D0: push edi */ 8897 ebx = ecx; /* 0x3607D4D1: mov ebx, ecx */ 8898 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8899 esi = 0; /* 0x3607D4D3: xor esi, esi */ 8900 _cf = 0; 8901 _flag_k = FK_TEST; 8902 PUSH32(esp, esi); /* 0x3607D4D5: push esi */ 8903 ecx = ebp + (-0x24); /* 0x3607D4D6: lea ecx, [ebp - 0x24] */ 8904 MEM32(ebp + (-0x14)) = ebx; /* 0x3607D4D9: mov dword ptr [ebp - 0x14], ebx */ 8905 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x3607D4DC: mov byte ptr [ebp - 0x24], al */ 8906 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3607D4DF: call dword ptr [0x3616f100] */ 8907 RECOMP_FLAGS_IN(); 8908 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8909 ecx = ecx | 0xFFFFFFFFu; /* 0x3607D4E5: or ecx, 0xffffffff */ 8910 _cf = 0; 8911 _flag_k = FK_TEST; 8912 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8913 eax = 0; /* 0x3607D4E8: xor eax, eax */ 8914 _cf = 0; 8915 _flag_k = FK_TEST; 8916 edi = 0x361B401Cu; /* 0x3607D4EA: mov edi, 0x361b401c */ 8917 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; } /* 0x3607D4EF: repne scasb al, byte ptr es:[edi] */ 8918 ecx = ~ecx; /* 0x3607D4F1: not ecx */ 8919 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8920 ecx = ecx - 1; /* 0x3607D4F3: dec ecx */ 8921 _flag_k = FK_DEC; 8922 edi = ecx; /* 0x3607D4F4: mov edi, ecx */ 8923 PUSH32(esp, 1); /* 0x3607D4F6: push 1 */ 8924 PUSH32(esp, edi); /* 0x3607D4F8: push edi */ 8925 ecx = ebp + (-0x24); /* 0x3607D4F9: lea ecx, [ebp - 0x24] */ 8926 MEM32(ebp + (-0x10)) = edi; /* 0x3607D4FC: mov dword ptr [ebp - 0x10], edi */ 8927 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3607D4FF: call dword ptr [0x3616f00c] */ 8928 RECOMP_FLAGS_IN(); 8929 /* test LO8(eax), LO8(eax) */ /* 0x3607D505: test al, al */ 8930 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8931 _cf = 0; 8932 _flag_k = FK_NARROW(FK_TEST, 24); 8933 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D52F; /* 0x3607D507: je 0x3607d52f */ 8934 L_3607D509: 8935 ecx = edi; /* 0x3607D509: mov ecx, edi */ 8936 edi = MEM32(ebp + (-0x20)); /* 0x3607D50B: mov edi, dword ptr [ebp - 0x20] */ 8937 edx = ecx; /* 0x3607D50E: mov edx, ecx */ 8938 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607D510: shr ecx, 2 */ 8939 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8940 ecx = ecx >> 2u; /* 0x3607D510: shr ecx, 2 */ 8941 esi = 0x361B401Cu; /* 0x3607D513: mov esi, 0x361b401c */ 8942 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3607D518: 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; } 8943 ecx = edx; /* 0x3607D51A: mov ecx, edx */ 8944 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8945 ecx = ecx & 3; /* 0x3607D51C: and ecx, 3 */ 8946 _cf = 0; 8947 _flag_k = FK_TEST; 8948 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3607D51F: 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; } 8949 ecx = MEM32(ebp + (-0x20)); /* 0x3607D521: mov ecx, dword ptr [ebp - 0x20] */ 8950 eax = edx; /* 0x3607D524: mov eax, edx */ 8951 MEM32(ebp + (-0x1C)) = eax; /* 0x3607D526: mov dword ptr [ebp - 0x1c], eax */ 8952 MEM8(ecx + eax) = (uint8_t)(0); /* 0x3607D529: mov byte ptr [ecx + eax], 0 */ 8953 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8954 esi = 0; /* 0x3607D52D: xor esi, esi */ 8955 _cf = 0; 8956 _flag_k = FK_TEST; 8957 L_3607D52F: 8958 eax = MEM32(ebp + 0x8); /* 0x3607D52F: mov eax, dword ptr [ebp + 8] */ 8959 edx = ebp + (-0x24); /* 0x3607D532: lea edx, [ebp - 0x24] */ 8960 PUSH32(esp, edx); /* 0x3607D535: push edx */ 8961 PUSH32(esp, eax); /* 0x3607D536: push eax */ 8962 ecx = ebx; /* 0x3607D537: mov ecx, ebx */ 8963 MEM32(ebp + (-0x4)) = esi; /* 0x3607D539: mov dword ptr [ebp - 4], esi */ 8964 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x3607D53C: call dword ptr [0x3616fc0c] */ 8965 RECOMP_FLAGS_IN(); 8966 PUSH32(esp, 1); /* 0x3607D542: push 1 */ 8967 ecx = ebp + (-0x24); /* 0x3607D544: lea ecx, [ebp - 0x24] */ 8968 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3607D547: mov byte ptr [ebp - 4], 2 */ 8969 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3607D54B: call dword ptr [0x3616f100] */ 8970 RECOMP_FLAGS_IN(); 8971 MEM32(ebx + 0x24) = esi; /* 0x3607D551: mov dword ptr [ebx + 0x24], esi */ 8972 MEM32(ebx + 0x28) = esi; /* 0x3607D554: mov dword ptr [ebx + 0x28], esi */ 8973 MEM32(ebx + 0x2C) = esi; /* 0x3607D557: mov dword ptr [ebx + 0x2c], esi */ 8974 MEM32(ebx + 0x30) = esi; /* 0x3607D55A: mov dword ptr [ebx + 0x30], esi */ 8975 MEM32(ebx) = 0x36171624u; /* 0x3607D55D: mov dword ptr [ebx], 0x36171624 */ 8976 ecx = MEM32(0x3616FF74); /* 0x3607D563: mov ecx, dword ptr [0x3616ff74] */ 8977 ecx = MEM32(ecx); /* 0x3607D569: mov ecx, dword ptr [ecx] */ 8978 edx = MEM32(ecx); /* 0x3607D56B: mov edx, dword ptr [ecx] */ 8979 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3607D56D: call dword ptr [edx + 0x10] */ 8980 RECOMP_FLAGS_IN(); 8981 eax = MEM32(ebp + 0x10); /* 0x3607D570: mov eax, dword ptr [ebp + 0x10] */ 8982 MEM32(ebx + 0x20) = eax; /* 0x3607D573: mov dword ptr [ebx + 0x20], eax */ 8983 eax = MEM32(ebp + 0xC); /* 0x3607D576: mov eax, dword ptr [ebp + 0xc] */ 8984 MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x3607D579: mov byte ptr [ebx + 0xc], 0 */ 8985 ecx = MEM32(eax); /* 0x3607D57D: mov ecx, dword ptr [eax] */ 8986 MEM32(ebx + 0x24) = ecx; /* 0x3607D57F: mov dword ptr [ebx + 0x24], ecx */ 8987 edx = MEM32(eax + 0x4); /* 0x3607D582: mov edx, dword ptr [eax + 4] */ 8988 eax = MEM32(ebp + 0x14); /* 0x3607D585: mov eax, dword ptr [ebp + 0x14] */ 8989 MEM32(ebx + 0x28) = edx; /* 0x3607D588: mov dword ptr [ebx + 0x28], edx */ 8990 ecx = MEM32(eax); /* 0x3607D58B: mov ecx, dword ptr [eax] */ 8991 MEM32(ebx + 0x2C) = ecx; /* 0x3607D58D: mov dword ptr [ebx + 0x2c], ecx */ 8992 edx = MEM32(eax + 0x4); /* 0x3607D590: mov edx, dword ptr [eax + 4] */ 8993 ecx = MEM32(ebp + (-0xC)); /* 0x3607D593: mov ecx, dword ptr [ebp - 0xc] */ 8994 edi = POP32_VAL(esp); /* 0x3607D596: pop edi */ 8995 MEM32(ebx + 0x30) = edx; /* 0x3607D597: mov dword ptr [ebx + 0x30], edx */ 8996 esi = POP32_VAL(esp); /* 0x3607D59A: pop esi */ 8997 eax = ebx; /* 0x3607D59B: mov eax, ebx */ 8998 ebx = POP32_VAL(esp); /* 0x3607D59D: pop ebx */ 8999 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D59E: mov dword ptr fs:[0], ecx */ 9000 esp = ebp; /* 0x3607D5A5: mov esp, ebp */ 9001 ebp = POP32_VAL(esp); /* 0x3607D5A7: pop ebp */ 9002 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3607D5A8: ret 0x10 */ 9003 RECOMP_REGS_OUT(); 9004 } 9005 9006 void sub_3607D5B0(void) { 9007 int _fpu_cmp = 0; 9008 uint32_t _cf = 0; 9009 int _df = 1; 9010 uint32_t _flag_k = FK_NONE; 9011 uint32_t _flag_a = 0, _flag_b = 0; 9012 uint32_t _itail_tgt = 0; 9013 RECOMP_REGS_LOCALS 9014 RECOMP_ENTER(0x3607D5B0u); 9015 9016 L_3607D5B0: 9017 MEM32(ecx) = 0x36171624u; /* 0x3607D5B0: mov dword ptr [ecx], 0x36171624 */ 9018 L_3607D5B6: 9019 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 9020 { RECOMP_REGS_OUT(); return; } /* end of function */ 9021 _ljump: 9022 switch (_itail_tgt) { 9023 case 0x3607D5B0u: goto L_3607D5B0; 9024 case 0x3607D5B6u: goto L_3607D5B6; 9025 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9026 } 9027 RECOMP_REGS_OUT(); 9028 } 9029 9030 void sub_3607D5C0(void) { 9031 int _fpu_cmp = 0; 9032 uint32_t _cf = 0; 9033 int _df = 1; 9034 uint32_t _flag_k = FK_NONE; 9035 uint32_t _flag_a = 0, _flag_b = 0; 9036 uint32_t _itail_tgt = 0; 9037 RECOMP_REGS_LOCALS 9038 RECOMP_ENTER(0x3607D5C0u); 9039 9040 L_3607D5C0: 9041 PUSH32(esp, ebp); /* 0x3607D5C0: push ebp */ 9042 ebp = esp; /* 0x3607D5C1: mov ebp, esp */ 9043 PUSH32(esp, esi); /* 0x3607D5C3: push esi */ 9044 esi = ecx; /* 0x3607D5C4: mov esi, ecx */ 9045 PUSH32(esp, edi); /* 0x3607D5C6: push edi */ 9046 edi = MEM32(ebp + 0x8); /* 0x3607D5C7: mov edi, dword ptr [ebp + 8] */ 9047 eax = esi + 0x20; /* 0x3607D5CA: lea eax, [esi + 0x20] */ 9048 PUSH32(esp, eax); /* 0x3607D5CD: push eax */ 9049 ecx = edi; /* 0x3607D5CE: mov ecx, edi */ 9050 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607D5D0: call dword ptr [0x3616fa8c] */ 9051 RECOMP_FLAGS_IN(); 9052 ecx = esi + 0x24; /* 0x3607D5D6: lea ecx, [esi + 0x24] */ 9053 PUSH32(esp, ecx); /* 0x3607D5D9: push ecx */ 9054 PUSH32(esp, edi); /* 0x3607D5DA: push edi */ 9055 RECOMP_ICALL(0x3615B870u); /* 0x3607D5DB: call 0x3615b870 */ /* not lifted */ 9056 RECOMP_FLAGS_IN(); 9057 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu); 9058 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9059 esi = esi + 0x2Cu; /* 0x3607D5E0: add esi, 0x2c */ 9060 _flag_k = FK_ADD; 9061 PUSH32(esp, esi); /* 0x3607D5E3: push esi */ 9062 PUSH32(esp, edi); /* 0x3607D5E4: push edi */ 9063 RECOMP_ICALL(0x3615B870u); /* 0x3607D5E5: call 0x3615b870 */ /* not lifted */ 9064 RECOMP_FLAGS_IN(); 9065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9067 esp = esp + 0x10u; /* 0x3607D5EA: add esp, 0x10 */ 9068 _flag_k = FK_ADD; 9069 ecx = edi; /* 0x3607D5ED: mov ecx, edi */ 9070 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607D5EF: call dword ptr [0x3616fadc] */ 9071 RECOMP_FLAGS_IN(); 9072 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 9073 _cf = (eax) != 0; 9074 eax = (uint32_t)(-(int32_t)eax); /* 0x3607D5F5: neg eax */ 9075 _flag_k = FK_CMP; 9076 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607D5F7: sbb eax, eax */ 9077 eax = _sc ? 0xFFFFFFFFu : 0; 9078 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9079 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9080 edi = POP32_VAL(esp); /* 0x3607D5F9: pop edi */ 9081 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9082 eax = eax + 1; /* 0x3607D5FA: inc eax */ 9083 _flag_k = FK_INC; 9084 esi = POP32_VAL(esp); /* 0x3607D5FB: pop esi */ 9085 ebp = POP32_VAL(esp); /* 0x3607D5FC: pop ebp */ 9086 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D5FD: ret 4 */ 9087 RECOMP_REGS_OUT(); 9088 } 9089 9090 void sub_3607D600(void) { 9091 int _fpu_cmp = 0; 9092 uint32_t _cf = 0; 9093 int _df = 1; 9094 uint32_t _flag_k = FK_NONE; 9095 uint32_t _flag_a = 0, _flag_b = 0; 9096 uint32_t _itail_tgt = 0; 9097 RECOMP_REGS_LOCALS 9098 RECOMP_ENTER(0x3607D600u); 9099 9100 L_3607D600: 9101 PUSH32(esp, ebp); /* 0x3607D600: push ebp */ 9102 ebp = esp; /* 0x3607D601: mov ebp, esp */ 9103 PUSH32(esp, esi); /* 0x3607D603: push esi */ 9104 esi = ecx; /* 0x3607D604: mov esi, ecx */ 9105 eax = MEM32(esi + 0x20); /* 0x3607D606: mov eax, dword ptr [esi + 0x20] */ 9106 PUSH32(esp, edi); /* 0x3607D609: push edi */ 9107 edi = MEM32(ebp + 0x8); /* 0x3607D60A: mov edi, dword ptr [ebp + 8] */ 9108 PUSH32(esp, eax); /* 0x3607D60D: push eax */ 9109 ecx = edi; /* 0x3607D60E: mov ecx, edi */ 9110 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3607D610: call dword ptr [0x3616faec] */ 9111 RECOMP_FLAGS_IN(); 9112 ecx = esi + 0x24; /* 0x3607D616: lea ecx, [esi + 0x24] */ 9113 PUSH32(esp, ecx); /* 0x3607D619: push ecx */ 9114 PUSH32(esp, edi); /* 0x3607D61A: push edi */ 9115 RECOMP_ICALL(0x3615B840u); /* 0x3607D61B: call 0x3615b840 */ /* not lifted */ 9116 RECOMP_FLAGS_IN(); 9117 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu); 9118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9119 esi = esi + 0x2Cu; /* 0x3607D620: add esi, 0x2c */ 9120 _flag_k = FK_ADD; 9121 PUSH32(esp, esi); /* 0x3607D623: push esi */ 9122 PUSH32(esp, edi); /* 0x3607D624: push edi */ 9123 RECOMP_ICALL(0x3615B840u); /* 0x3607D625: call 0x3615b840 */ /* not lifted */ 9124 RECOMP_FLAGS_IN(); 9125 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9126 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9127 esp = esp + 0x10u; /* 0x3607D62A: add esp, 0x10 */ 9128 _flag_k = FK_ADD; 9129 edi = POP32_VAL(esp); /* 0x3607D62D: pop edi */ 9130 esi = POP32_VAL(esp); /* 0x3607D62E: pop esi */ 9131 ebp = POP32_VAL(esp); /* 0x3607D62F: pop ebp */ 9132 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D630: ret 4 */ 9133 RECOMP_REGS_OUT(); 9134 } 9135 9136 void sub_3607D640(void) { 9137 int _fpu_cmp = 0; 9138 uint32_t _cf = 0; 9139 int _df = 1; 9140 uint32_t _flag_k = FK_NONE; 9141 uint32_t _flag_a = 0, _flag_b = 0; 9142 uint32_t _itail_tgt = 0; 9143 RECOMP_REGS_LOCALS 9144 RECOMP_ENTER(0x3607D640u); 9145 9146 L_3607D640: 9147 PUSH32(esp, esi); /* 0x3607D640: push esi */ 9148 esi = ecx; /* 0x3607D641: mov esi, ecx */ 9149 eax = esi + 0x4; /* 0x3607D643: lea eax, [esi + 4] */ 9150 PUSH32(esp, eax); /* 0x3607D646: push eax */ 9151 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607D647: call dword ptr [0x3616ff70] */ 9152 RECOMP_FLAGS_IN(); 9153 PUSH32(esp, 0); /* 0x3607D64D: push 0 */ 9154 PUSH32(esp, 0x361B2CD8u); /* 0x3607D64F: push 0x361b2cd8 */ 9155 PUSH32(esp, 0x361B2CC0u); /* 0x3607D654: push 0x361b2cc0 */ 9156 PUSH32(esp, 0); /* 0x3607D659: push 0 */ 9157 PUSH32(esp, eax); /* 0x3607D65B: push eax */ 9158 RECOMP_ICALL(0x3615FD86u); /* 0x3607D65C: call 0x3615fd86 */ /* not lifted */ 9159 RECOMP_FLAGS_IN(); 9160 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9162 esp = esp + 0x18u; /* 0x3607D661: add esp, 0x18 */ 9163 _flag_k = FK_ADD; 9164 /* test eax, eax */ /* 0x3607D664: test eax, eax */ 9165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9166 _cf = 0; 9167 _flag_k = FK_TEST; 9168 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D67E; /* 0x3607D666: je 0x3607d67e */ 9169 L_3607D668: 9170 edx = MEM32(eax); /* 0x3607D668: mov edx, dword ptr [eax] */ 9171 ecx = esi + 0x2C; /* 0x3607D66A: lea ecx, [esi + 0x2c] */ 9172 PUSH32(esp, ecx); /* 0x3607D66D: push ecx */ 9173 ecx = esi + 0x24; /* 0x3607D66E: lea ecx, [esi + 0x24] */ 9174 PUSH32(esp, ecx); /* 0x3607D671: push ecx */ 9175 ecx = MEM32(esi + 0x20); /* 0x3607D672: mov ecx, dword ptr [esi + 0x20] */ 9176 PUSH32(esp, ecx); /* 0x3607D675: push ecx */ 9177 ecx = eax; /* 0x3607D676: mov ecx, eax */ 9178 RECOMP_ICALL(MEM32(edx + 0xA4)); /* 0x3607D678: call dword ptr [edx + 0xa4] */ 9179 RECOMP_FLAGS_IN(); 9180 L_3607D67E: 9181 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9182 eax = 0; /* 0x3607D67E: xor eax, eax */ 9183 _cf = 0; 9184 _flag_k = FK_TEST; 9185 esi = POP32_VAL(esp); /* 0x3607D680: pop esi */ 9186 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D681: ret */ 9187 RECOMP_REGS_OUT(); 9188 } 9189 9190 void sub_3607D690(void) { 9191 int _fpu_cmp = 0; 9192 uint32_t _cf = 0; 9193 int _df = 1; 9194 uint32_t _flag_k = FK_NONE; 9195 uint32_t _flag_a = 0, _flag_b = 0; 9196 uint32_t _itail_tgt = 0; 9197 RECOMP_REGS_LOCALS 9198 RECOMP_ENTER(0x3607D690u); 9199 9200 L_3607D690: 9201 PUSH32(esp, esi); /* 0x3607D690: push esi */ 9202 esi = ecx; /* 0x3607D691: mov esi, ecx */ 9203 RECOMP_ICALL(MEM32(0x3616FD04)); /* 0x3607D693: call dword ptr [0x3616fd04] */ 9204 RECOMP_FLAGS_IN(); 9205 MEM32(esi) = 0x36171648u; /* 0x3607D699: mov dword ptr [esi], 0x36171648 */ 9206 MEM8(esi + 0xC) = (uint8_t)(1); /* 0x3607D69F: mov byte ptr [esi + 0xc], 1 */ 9207 eax = esi; /* 0x3607D6A3: mov eax, esi */ 9208 esi = POP32_VAL(esp); /* 0x3607D6A5: pop esi */ 9209 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D6A6: ret */ 9210 RECOMP_REGS_OUT(); 9211 } 9212 9213 void sub_3607D6B0(void) { 9214 int _fpu_cmp = 0; 9215 uint32_t _cf = 0; 9216 int _df = 1; 9217 uint32_t _flag_k = FK_NONE; 9218 uint32_t _flag_a = 0, _flag_b = 0; 9219 uint32_t _itail_tgt = 0; 9220 RECOMP_REGS_LOCALS 9221 RECOMP_ENTER(0x3607D6B0u); 9222 9223 L_3607D6B0: 9224 PUSH32(esp, ebp); /* 0x3607D6B0: push ebp */ 9225 ebp = esp; /* 0x3607D6B1: mov ebp, esp */ 9226 PUSH32(esp, esi); /* 0x3607D6B3: push esi */ 9227 esi = ecx; /* 0x3607D6B4: mov esi, ecx */ 9228 RECOMP_ICALL(0x3607D7B0u); /* 0x3607D6B6: call 0x3607d7b0 */ /* not lifted */ 9229 RECOMP_FLAGS_IN(); 9230 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607D6BB: test byte ptr [ebp + 8], 1 */ 9231 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9232 _cf = 0; 9233 _flag_k = FK_NARROW(FK_TEST, 24); 9234 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D6CA; /* 0x3607D6BF: je 0x3607d6ca */ 9235 L_3607D6C1: 9236 PUSH32(esp, esi); /* 0x3607D6C1: push esi */ 9237 RECOMP_ICALL(0x3615FCC4u); /* 0x3607D6C2: call 0x3615fcc4 */ /* not lifted */ 9238 RECOMP_FLAGS_IN(); 9239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9241 esp = esp + 4; /* 0x3607D6C7: add esp, 4 */ 9242 _flag_k = FK_ADD; 9243 L_3607D6CA: 9244 eax = esi; /* 0x3607D6CA: mov eax, esi */ 9245 esi = POP32_VAL(esp); /* 0x3607D6CC: pop esi */ 9246 ebp = POP32_VAL(esp); /* 0x3607D6CD: pop ebp */ 9247 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D6CE: ret 4 */ 9248 RECOMP_REGS_OUT(); 9249 } 9250 9251 void sub_3607D6E0(void) { 9252 int _fpu_cmp = 0; 9253 uint32_t _cf = 0; 9254 int _df = 1; 9255 uint32_t _flag_k = FK_NONE; 9256 uint32_t _flag_a = 0, _flag_b = 0; 9257 uint32_t _itail_tgt = 0; 9258 RECOMP_REGS_LOCALS 9259 RECOMP_ENTER(0x3607D6E0u); 9260 9261 L_3607D6E0: 9262 PUSH32(esp, ebp); /* 0x3607D6E0: push ebp */ 9263 ebp = esp; /* 0x3607D6E1: mov ebp, esp */ 9264 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607D6E3: push -1 */ 9265 PUSH32(esp, 0x36165449u); /* 0x3607D6E5: push 0x36165449 */ 9266 eax = MEM32(FS_BASE + (0)); /* 0x3607D6EA: mov eax, dword ptr fs:[0] */ 9267 PUSH32(esp, eax); /* 0x3607D6F0: push eax */ 9268 MEM32(FS_BASE + (0)) = esp; /* 0x3607D6F1: mov dword ptr fs:[0], esp */ 9269 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9271 esp = esp - 0x14u; /* 0x3607D6F8: sub esp, 0x14 */ 9272 _flag_k = FK_CMP; 9273 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607D6FB: mov al, byte ptr [ebp + 0xb] */ 9274 PUSH32(esp, ebx); /* 0x3607D6FE: push ebx */ 9275 PUSH32(esp, esi); /* 0x3607D6FF: push esi */ 9276 MEM32(ebp + (-0x10)) = ecx; /* 0x3607D700: mov dword ptr [ebp - 0x10], ecx */ 9277 PUSH32(esp, edi); /* 0x3607D703: push edi */ 9278 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9279 ecx = ecx | 0xFFFFFFFFu; /* 0x3607D704: or ecx, 0xffffffff */ 9280 _cf = 0; 9281 _flag_k = FK_TEST; 9282 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9283 esi = 0; /* 0x3607D707: xor esi, esi */ 9284 _cf = 0; 9285 _flag_k = FK_TEST; 9286 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3607D709: mov byte ptr [ebp - 0x20], al */ 9287 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9288 eax = 0; /* 0x3607D70C: xor eax, eax */ 9289 _cf = 0; 9290 _flag_k = FK_TEST; 9291 edi = 0x361B4218u; /* 0x3607D70E: mov edi, 0x361b4218 */ 9292 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; } /* 0x3607D713: repne scasb al, byte ptr es:[edi] */ 9293 ecx = ~ecx; /* 0x3607D715: not ecx */ 9294 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9295 ecx = ecx - 1; /* 0x3607D717: dec ecx */ 9296 _flag_k = FK_DEC; 9297 ebx = ecx; /* 0x3607D718: mov ebx, ecx */ 9298 PUSH32(esp, 1); /* 0x3607D71A: push 1 */ 9299 PUSH32(esp, ebx); /* 0x3607D71C: push ebx */ 9300 ecx = ebp + (-0x20); /* 0x3607D71D: lea ecx, [ebp - 0x20] */ 9301 MEM32(ebp + (-0x1C)) = esi; /* 0x3607D720: mov dword ptr [ebp - 0x1c], esi */ 9302 MEM32(ebp + (-0x18)) = esi; /* 0x3607D723: mov dword ptr [ebp - 0x18], esi */ 9303 MEM32(ebp + (-0x14)) = esi; /* 0x3607D726: mov dword ptr [ebp - 0x14], esi */ 9304 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3607D729: call dword ptr [0x3616f00c] */ 9305 RECOMP_FLAGS_IN(); 9306 /* test LO8(eax), LO8(eax) */ /* 0x3607D72F: test al, al */ 9307 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9308 _cf = 0; 9309 _flag_k = FK_NARROW(FK_TEST, 24); 9310 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D757; /* 0x3607D731: je 0x3607d757 */ 9311 L_3607D733: 9312 edi = MEM32(ebp + (-0x1C)); /* 0x3607D733: mov edi, dword ptr [ebp - 0x1c] */ 9313 ecx = ebx; /* 0x3607D736: mov ecx, ebx */ 9314 edx = ecx; /* 0x3607D738: mov edx, ecx */ 9315 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607D73A: shr ecx, 2 */ 9316 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9317 ecx = ecx >> 2u; /* 0x3607D73A: shr ecx, 2 */ 9318 esi = 0x361B4218u; /* 0x3607D73D: mov esi, 0x361b4218 */ 9319 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3607D742: 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; } 9320 ecx = edx; /* 0x3607D744: mov ecx, edx */ 9321 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9322 ecx = ecx & 3; /* 0x3607D746: and ecx, 3 */ 9323 _cf = 0; 9324 _flag_k = FK_TEST; 9325 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3607D749: 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; } 9326 eax = MEM32(ebp + (-0x1C)); /* 0x3607D74B: mov eax, dword ptr [ebp - 0x1c] */ 9327 MEM32(ebp + (-0x18)) = ebx; /* 0x3607D74E: mov dword ptr [ebp - 0x18], ebx */ 9328 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3607D751: mov byte ptr [eax + ebx], 0 */ 9329 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9330 esi = 0; /* 0x3607D755: xor esi, esi */ 9331 _cf = 0; 9332 _flag_k = FK_TEST; 9333 L_3607D757: 9334 edx = MEM32(ebp + 0x8); /* 0x3607D757: mov edx, dword ptr [ebp + 8] */ 9335 edi = MEM32(ebp + (-0x10)); /* 0x3607D75A: mov edi, dword ptr [ebp - 0x10] */ 9336 ecx = ebp + (-0x20); /* 0x3607D75D: lea ecx, [ebp - 0x20] */ 9337 PUSH32(esp, ecx); /* 0x3607D760: push ecx */ 9338 PUSH32(esp, edx); /* 0x3607D761: push edx */ 9339 ecx = edi; /* 0x3607D762: mov ecx, edi */ 9340 MEM32(ebp + (-0x4)) = esi; /* 0x3607D764: mov dword ptr [ebp - 4], esi */ 9341 RECOMP_ICALL(MEM32(0x3616FD08)); /* 0x3607D767: call dword ptr [0x3616fd08] */ 9342 RECOMP_FLAGS_IN(); 9343 ecx = MEM32(ebp + (-0x1C)); /* 0x3607D76D: mov ecx, dword ptr [ebp - 0x1c] */ 9344 /* cmp ecx, esi */ /* 0x3607D770: cmp ecx, esi */ 9345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 9346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9347 _flag_k = FK_CMP; 9348 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607D78F; /* 0x3607D772: je 0x3607d78f */ 9349 L_3607D774: 9350 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3607D774: mov al, byte ptr [ecx - 1] */ 9351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9352 ecx = ecx - 1; /* 0x3607D777: dec ecx */ 9353 _flag_k = FK_DEC; 9354 /* test LO8(eax), LO8(eax) */ /* 0x3607D778: test al, al */ 9355 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9356 _cf = 0; 9357 _flag_k = FK_NARROW(FK_TEST, 24); 9358 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D786; /* 0x3607D77A: je 0x3607d786 */ 9359 L_3607D77C: 9360 /* cmp LO8(eax), 0xFFu */ /* 0x3607D77C: cmp al, 0xff */ 9361 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9363 _flag_k = FK_NARROW(FK_CMP, 24); 9364 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607D786; /* 0x3607D77E: je 0x3607d786 */ 9365 L_3607D780: 9366 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9367 SET_LO8(eax, LO8(eax) - 1); /* 0x3607D780: dec al */ 9368 _flag_k = FK_NARROW(FK_DEC, 24); 9369 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3607D782: mov byte ptr [ecx], al */ 9370 goto L_3607D78F; /* 0x3607D784: jmp 0x3607d78f */ 9371 L_3607D786: 9372 PUSH32(esp, ecx); /* 0x3607D786: push ecx */ 9373 RECOMP_ICALL(0x3615FCC4u); /* 0x3607D787: call 0x3615fcc4 */ /* not lifted */ 9374 RECOMP_FLAGS_IN(); 9375 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9377 esp = esp + 4; /* 0x3607D78C: add esp, 4 */ 9378 _flag_k = FK_ADD; 9379 L_3607D78F: 9380 ecx = MEM32(ebp + (-0xC)); /* 0x3607D78F: mov ecx, dword ptr [ebp - 0xc] */ 9381 MEM32(edi) = 0x36171648u; /* 0x3607D792: mov dword ptr [edi], 0x36171648 */ 9382 MEM8(edi + 0xC) = (uint8_t)(1); /* 0x3607D798: mov byte ptr [edi + 0xc], 1 */ 9383 eax = edi; /* 0x3607D79C: mov eax, edi */ 9384 edi = POP32_VAL(esp); /* 0x3607D79E: pop edi */ 9385 esi = POP32_VAL(esp); /* 0x3607D79F: pop esi */ 9386 ebx = POP32_VAL(esp); /* 0x3607D7A0: pop ebx */ 9387 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D7A1: mov dword ptr fs:[0], ecx */ 9388 esp = ebp; /* 0x3607D7A8: mov esp, ebp */ 9389 ebp = POP32_VAL(esp); /* 0x3607D7AA: pop ebp */ 9390 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D7AB: ret 4 */ 9391 RECOMP_REGS_OUT(); 9392 } 9393 9394 void sub_3607D7B0(void) { 9395 int _fpu_cmp = 0; 9396 uint32_t _cf = 0; 9397 int _df = 1; 9398 uint32_t _flag_k = FK_NONE; 9399 uint32_t _flag_a = 0, _flag_b = 0; 9400 uint32_t _itail_tgt = 0; 9401 RECOMP_REGS_LOCALS 9402 RECOMP_ENTER(0x3607D7B0u); 9403 9404 L_3607D7B0: 9405 MEM32(ecx) = 0x36171648u; /* 0x3607D7B0: mov dword ptr [ecx], 0x36171648 */ 9406 L_3607D7B6: 9407 { _itail_tgt = (uint32_t)(MEM32(0x3616FD0C)); goto _ljump; } 9408 { RECOMP_REGS_OUT(); return; } /* end of function */ 9409 _ljump: 9410 switch (_itail_tgt) { 9411 case 0x3607D7B0u: goto L_3607D7B0; 9412 case 0x3607D7B6u: goto L_3607D7B6; 9413 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9414 } 9415 RECOMP_REGS_OUT(); 9416 } 9417 9418 void sub_3607D7C0(void) { 9419 int _fpu_cmp = 0; 9420 uint32_t _cf = 0; 9421 int _df = 1; 9422 uint32_t _flag_k = FK_NONE; 9423 uint32_t _flag_a = 0, _flag_b = 0; 9424 uint32_t _itail_tgt = 0; 9425 RECOMP_REGS_LOCALS 9426 RECOMP_ENTER(0x3607D7C0u); 9427 9428 L_3607D7C0: 9429 PUSH32(esp, ebp); /* 0x3607D7C0: push ebp */ 9430 ebp = esp; /* 0x3607D7C1: mov ebp, esp */ 9431 PUSH32(esp, esi); /* 0x3607D7C3: push esi */ 9432 esi = MEM32(ebp + 0x8); /* 0x3607D7C4: mov esi, dword ptr [ebp + 8] */ 9433 PUSH32(esp, esi); /* 0x3607D7C7: push esi */ 9434 RECOMP_ICALL(MEM32(0x3616FD10)); /* 0x3607D7C8: call dword ptr [0x3616fd10] */ 9435 RECOMP_FLAGS_IN(); 9436 ecx = esi; /* 0x3607D7CE: mov ecx, esi */ 9437 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607D7D0: call dword ptr [0x3616fadc] */ 9438 RECOMP_FLAGS_IN(); 9439 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 9440 _cf = (eax) != 0; 9441 eax = (uint32_t)(-(int32_t)eax); /* 0x3607D7D6: neg eax */ 9442 _flag_k = FK_CMP; 9443 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607D7D8: sbb eax, eax */ 9444 eax = _sc ? 0xFFFFFFFFu : 0; 9445 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9446 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9447 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9448 eax = eax + 1; /* 0x3607D7DA: inc eax */ 9449 _flag_k = FK_INC; 9450 esi = POP32_VAL(esp); /* 0x3607D7DB: pop esi */ 9451 ebp = POP32_VAL(esp); /* 0x3607D7DC: pop ebp */ 9452 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D7DD: ret 4 */ 9453 RECOMP_REGS_OUT(); 9454 } 9455 9456 void sub_3607D7E0(void) { 9457 int _fpu_cmp = 0; 9458 uint32_t _cf = 0; 9459 int _df = 1; 9460 uint32_t _flag_k = FK_NONE; 9461 uint32_t _flag_a = 0, _flag_b = 0; 9462 uint32_t _itail_tgt = 0; 9463 RECOMP_REGS_LOCALS 9464 RECOMP_ENTER(0x3607D7E0u); 9465 9466 L_3607D7E0: 9467 PUSH32(esp, ebp); /* 0x3607D7E0: push ebp */ 9468 ebp = esp; /* 0x3607D7E1: mov ebp, esp */ 9469 eax = MEM32(ebp + 0x8); /* 0x3607D7E3: mov eax, dword ptr [ebp + 8] */ 9470 PUSH32(esp, eax); /* 0x3607D7E6: push eax */ 9471 RECOMP_ICALL(MEM32(0x3616FD14)); /* 0x3607D7E7: call dword ptr [0x3616fd14] */ 9472 RECOMP_FLAGS_IN(); 9473 ebp = POP32_VAL(esp); /* 0x3607D7ED: pop ebp */ 9474 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D7EE: ret 4 */ 9475 RECOMP_REGS_OUT(); 9476 } 9477 9478 void sub_3607D800(void) { 9479 int _fpu_cmp = 0; 9480 uint32_t _cf = 0; 9481 int _df = 1; 9482 uint32_t _flag_k = FK_NONE; 9483 uint32_t _flag_a = 0, _flag_b = 0; 9484 uint32_t _itail_tgt = 0; 9485 RECOMP_REGS_LOCALS 9486 RECOMP_ENTER(0x3607D800u); 9487 9488 L_3607D800: 9489 PUSH32(esp, esi); /* 0x3607D800: push esi */ 9490 PUSH32(esp, edi); /* 0x3607D801: push edi */ 9491 edi = ecx; /* 0x3607D802: mov edi, ecx */ 9492 eax = edi + 0x4; /* 0x3607D804: lea eax, [edi + 4] */ 9493 PUSH32(esp, eax); /* 0x3607D807: push eax */ 9494 RECOMP_ICALL(0x3606DA90u); /* 0x3607D808: call 0x3606da90 */ /* not lifted */ 9495 RECOMP_FLAGS_IN(); 9496 esi = eax; /* 0x3607D80D: mov esi, eax */ 9497 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9498 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9499 esp = esp + 4; /* 0x3607D80F: add esp, 4 */ 9500 _flag_k = FK_ADD; 9501 /* test esi, esi */ /* 0x3607D812: test esi, esi */ 9502 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 9503 _cf = 0; 9504 _flag_k = FK_TEST; 9505 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D877; /* 0x3607D814: je 0x3607d877 */ 9506 L_3607D816: 9507 ecx = esi; /* 0x3607D816: mov ecx, esi */ 9508 RECOMP_ICALL(MEM32(0x3616FC6C)); /* 0x3607D818: call dword ptr [0x3616fc6c] */ 9509 RECOMP_FLAGS_IN(); 9510 edx = MEM32(esi + 0xE4); /* 0x3607D81E: mov edx, dword ptr [esi + 0xe4] */ 9511 ecx = esi + 0xE4; /* 0x3607D824: lea ecx, [esi + 0xe4] */ 9512 PUSH32(esp, 1); /* 0x3607D82A: push 1 */ 9513 PUSH32(esp, 0xC2u); /* 0x3607D82C: push 0xc2 */ 9514 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607D831: call dword ptr [edx + 8] */ 9515 RECOMP_FLAGS_IN(); 9516 SET_LO8(eax, MEM8(esi + 0x128)); /* 0x3607D834: mov al, byte ptr [esi + 0x128] */ 9517 /* test LO8(eax), LO8(eax) */ /* 0x3607D83A: test al, al */ 9518 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9519 _cf = 0; 9520 _flag_k = FK_NARROW(FK_TEST, 24); 9521 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607D854; /* 0x3607D83C: jne 0x3607d854 */ 9522 L_3607D83E: 9523 RECOMP_ICALL(0x360F7B00u); /* 0x3607D83E: call 0x360f7b00 */ /* not lifted */ 9524 RECOMP_FLAGS_IN(); 9525 PUSH32(esp, 0); /* 0x3607D843: push 0 */ 9526 PUSH32(esp, esi); /* 0x3607D845: push esi */ 9527 PUSH32(esp, 0x2CEDu); /* 0x3607D846: push 0x2ced */ 9528 ecx = eax; /* 0x3607D84B: mov ecx, eax */ 9529 RECOMP_ICALL(0x360F81E0u); /* 0x3607D84D: call 0x360f81e0 */ /* not lifted */ 9530 RECOMP_FLAGS_IN(); 9531 goto L_3607D860; /* 0x3607D852: jmp 0x3607d860 */ 9532 L_3607D854: 9533 RECOMP_ICALL(0x3601C590u); /* 0x3607D854: call 0x3601c590 */ /* not lifted */ 9534 RECOMP_FLAGS_IN(); 9535 ecx = eax; /* 0x3607D859: mov ecx, eax */ 9536 RECOMP_ICALL(0x3601C860u); /* 0x3607D85B: call 0x3601c860 */ /* not lifted */ 9537 RECOMP_FLAGS_IN(); 9538 L_3607D860: 9539 /* test MEM8(esi + 0x11C), 4 */ /* 0x3607D860: test byte ptr [esi + 0x11c], 4 */ 9540 _flag_a = (uint32_t)(MEM8(esi + 0x11C)) << 24; _flag_b = (uint32_t)(4) << 24; 9541 _cf = 0; 9542 _flag_k = FK_NARROW(FK_TEST, 24); 9543 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D877; /* 0x3607D867: je 0x3607d877 */ 9544 L_3607D869: 9545 ecx = esi; /* 0x3607D869: mov ecx, esi */ 9546 RECOMP_ICALL(0x36072000u); /* 0x3607D86B: call 0x36072000 */ /* not lifted */ 9547 RECOMP_FLAGS_IN(); 9548 ecx = eax; /* 0x3607D870: mov ecx, eax */ 9549 RECOMP_ICALL(0x36057DA0u); /* 0x3607D872: call 0x36057da0 */ /* not lifted */ 9550 RECOMP_FLAGS_IN(); 9551 L_3607D877: 9552 ecx = edi; /* 0x3607D877: mov ecx, edi */ 9553 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3607D879: call dword ptr [0x3616fc20] */ 9554 RECOMP_FLAGS_IN(); 9555 edi = POP32_VAL(esp); /* 0x3607D87F: pop edi */ 9556 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9557 eax = 0; /* 0x3607D880: xor eax, eax */ 9558 _cf = 0; 9559 _flag_k = FK_TEST; 9560 esi = POP32_VAL(esp); /* 0x3607D882: pop esi */ 9561 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D883: ret */ 9562 RECOMP_REGS_OUT(); 9563 } 9564 9565 void sub_3607D890(void) { 9566 int _fpu_cmp = 0; 9567 uint32_t _cf = 0; 9568 int _df = 1; 9569 uint32_t _flag_k = FK_NONE; 9570 uint32_t _flag_a = 0, _flag_b = 0; 9571 uint32_t _itail_tgt = 0; 9572 RECOMP_REGS_LOCALS 9573 RECOMP_ENTER(0x3607D890u); 9574 9575 L_3607D890: 9576 PUSH32(esp, esi); /* 0x3607D890: push esi */ 9577 esi = ecx; /* 0x3607D891: mov esi, ecx */ 9578 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607D893: call dword ptr [0x3616ffd0] */ 9579 RECOMP_FLAGS_IN(); 9580 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9581 eax = 0; /* 0x3607D899: xor eax, eax */ 9582 _cf = 0; 9583 _flag_k = FK_TEST; 9584 MEM32(esi + 0x20) = eax; /* 0x3607D89B: mov dword ptr [esi + 0x20], eax */ 9585 MEM32(esi + 0x24) = eax; /* 0x3607D89E: mov dword ptr [esi + 0x24], eax */ 9586 MEM32(esi) = 0x3617166Cu; /* 0x3607D8A1: mov dword ptr [esi], 0x3617166c */ 9587 eax = esi; /* 0x3607D8A7: mov eax, esi */ 9588 esi = POP32_VAL(esp); /* 0x3607D8A9: pop esi */ 9589 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607D8AA: ret */ 9590 RECOMP_REGS_OUT(); 9591 } 9592 9593 void sub_3607D8B0(void) { 9594 int _fpu_cmp = 0; 9595 uint32_t _cf = 0; 9596 int _df = 1; 9597 uint32_t _flag_k = FK_NONE; 9598 uint32_t _flag_a = 0, _flag_b = 0; 9599 uint32_t _itail_tgt = 0; 9600 RECOMP_REGS_LOCALS 9601 RECOMP_ENTER(0x3607D8B0u); 9602 9603 L_3607D8B0: 9604 PUSH32(esp, ebp); /* 0x3607D8B0: push ebp */ 9605 ebp = esp; /* 0x3607D8B1: mov ebp, esp */ 9606 PUSH32(esp, esi); /* 0x3607D8B3: push esi */ 9607 esi = ecx; /* 0x3607D8B4: mov esi, ecx */ 9608 RECOMP_ICALL(0x3607D9E0u); /* 0x3607D8B6: call 0x3607d9e0 */ /* not lifted */ 9609 RECOMP_FLAGS_IN(); 9610 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607D8BB: test byte ptr [ebp + 8], 1 */ 9611 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9612 _cf = 0; 9613 _flag_k = FK_NARROW(FK_TEST, 24); 9614 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D8CA; /* 0x3607D8BF: je 0x3607d8ca */ 9615 L_3607D8C1: 9616 PUSH32(esp, esi); /* 0x3607D8C1: push esi */ 9617 RECOMP_ICALL(0x3615FCC4u); /* 0x3607D8C2: call 0x3615fcc4 */ /* not lifted */ 9618 RECOMP_FLAGS_IN(); 9619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9621 esp = esp + 4; /* 0x3607D8C7: add esp, 4 */ 9622 _flag_k = FK_ADD; 9623 L_3607D8CA: 9624 eax = esi; /* 0x3607D8CA: mov eax, esi */ 9625 esi = POP32_VAL(esp); /* 0x3607D8CC: pop esi */ 9626 ebp = POP32_VAL(esp); /* 0x3607D8CD: pop ebp */ 9627 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607D8CE: ret 4 */ 9628 RECOMP_REGS_OUT(); 9629 } 9630 9631 void sub_3607D8E0(void) { 9632 int _fpu_cmp = 0; 9633 uint32_t _cf = 0; 9634 int _df = 1; 9635 uint32_t _flag_k = FK_NONE; 9636 uint32_t _flag_a = 0, _flag_b = 0; 9637 uint32_t _itail_tgt = 0; 9638 RECOMP_REGS_LOCALS 9639 RECOMP_ENTER(0x3607D8E0u); 9640 9641 L_3607D8E0: 9642 PUSH32(esp, ebp); /* 0x3607D8E0: push ebp */ 9643 ebp = esp; /* 0x3607D8E1: mov ebp, esp */ 9644 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607D8E3: push -1 */ 9645 PUSH32(esp, 0x36165472u); /* 0x3607D8E5: push 0x36165472 */ 9646 eax = MEM32(FS_BASE + (0)); /* 0x3607D8EA: mov eax, dword ptr fs:[0] */ 9647 PUSH32(esp, eax); /* 0x3607D8F0: push eax */ 9648 MEM32(FS_BASE + (0)) = esp; /* 0x3607D8F1: mov dword ptr fs:[0], esp */ 9649 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 9650 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9651 esp = esp - 0x14u; /* 0x3607D8F8: sub esp, 0x14 */ 9652 _flag_k = FK_CMP; 9653 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607D8FB: mov al, byte ptr [ebp + 0xb] */ 9654 PUSH32(esp, ebx); /* 0x3607D8FE: push ebx */ 9655 PUSH32(esp, esi); /* 0x3607D8FF: push esi */ 9656 esi = ecx; /* 0x3607D900: mov esi, ecx */ 9657 PUSH32(esp, edi); /* 0x3607D902: push edi */ 9658 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 9659 ecx = ecx | 0xFFFFFFFFu; /* 0x3607D903: or ecx, 0xffffffff */ 9660 _cf = 0; 9661 _flag_k = FK_TEST; 9662 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3607D906: mov byte ptr [ebp - 0x20], al */ 9663 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9664 eax = 0; /* 0x3607D909: xor eax, eax */ 9665 _cf = 0; 9666 _flag_k = FK_TEST; 9667 edi = 0x361B42E4u; /* 0x3607D90B: mov edi, 0x361b42e4 */ 9668 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; } /* 0x3607D910: repne scasb al, byte ptr es:[edi] */ 9669 ecx = ~ecx; /* 0x3607D912: not ecx */ 9670 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9671 ecx = ecx - 1; /* 0x3607D914: dec ecx */ 9672 _flag_k = FK_DEC; 9673 ebx = ecx; /* 0x3607D915: mov ebx, ecx */ 9674 PUSH32(esp, 1); /* 0x3607D917: push 1 */ 9675 PUSH32(esp, ebx); /* 0x3607D919: push ebx */ 9676 ecx = ebp + (-0x20); /* 0x3607D91A: lea ecx, [ebp - 0x20] */ 9677 MEM32(ebp + (-0x10)) = esi; /* 0x3607D91D: mov dword ptr [ebp - 0x10], esi */ 9678 MEM32(ebp + (-0x1C)) = eax; /* 0x3607D920: mov dword ptr [ebp - 0x1c], eax */ 9679 MEM32(ebp + (-0x18)) = eax; /* 0x3607D923: mov dword ptr [ebp - 0x18], eax */ 9680 MEM32(ebp + (-0x14)) = eax; /* 0x3607D926: mov dword ptr [ebp - 0x14], eax */ 9681 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3607D929: call dword ptr [0x3616f00c] */ 9682 RECOMP_FLAGS_IN(); 9683 /* test LO8(eax), LO8(eax) */ /* 0x3607D92F: test al, al */ 9684 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9685 _cf = 0; 9686 _flag_k = FK_NARROW(FK_TEST, 24); 9687 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D958; /* 0x3607D931: je 0x3607d958 */ 9688 L_3607D933: 9689 edi = MEM32(ebp + (-0x1C)); /* 0x3607D933: mov edi, dword ptr [ebp - 0x1c] */ 9690 ecx = ebx; /* 0x3607D936: mov ecx, ebx */ 9691 edx = ecx; /* 0x3607D938: mov edx, ecx */ 9692 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607D93A: shr ecx, 2 */ 9693 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 9694 ecx = ecx >> 2u; /* 0x3607D93A: shr ecx, 2 */ 9695 esi = 0x361B42E4u; /* 0x3607D93D: mov esi, 0x361b42e4 */ 9696 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3607D942: 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; } 9697 ecx = edx; /* 0x3607D944: mov ecx, edx */ 9698 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 9699 ecx = ecx & 3; /* 0x3607D946: and ecx, 3 */ 9700 _cf = 0; 9701 _flag_k = FK_TEST; 9702 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3607D949: 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; } 9703 eax = MEM32(ebp + (-0x1C)); /* 0x3607D94B: mov eax, dword ptr [ebp - 0x1c] */ 9704 esi = MEM32(ebp + (-0x10)); /* 0x3607D94E: mov esi, dword ptr [ebp - 0x10] */ 9705 MEM32(ebp + (-0x18)) = ebx; /* 0x3607D951: mov dword ptr [ebp - 0x18], ebx */ 9706 MEM8(eax + ebx) = (uint8_t)(0); /* 0x3607D954: mov byte ptr [eax + ebx], 0 */ 9707 L_3607D958: 9708 edx = MEM32(ebp + 0x8); /* 0x3607D958: mov edx, dword ptr [ebp + 8] */ 9709 ecx = ebp + (-0x20); /* 0x3607D95B: lea ecx, [ebp - 0x20] */ 9710 PUSH32(esp, ecx); /* 0x3607D95E: push ecx */ 9711 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9712 edi = 0; /* 0x3607D95F: xor edi, edi */ 9713 _cf = 0; 9714 _flag_k = FK_TEST; 9715 PUSH32(esp, edx); /* 0x3607D961: push edx */ 9716 ecx = esi; /* 0x3607D962: mov ecx, esi */ 9717 MEM32(ebp + (-0x4)) = edi; /* 0x3607D964: mov dword ptr [ebp - 4], edi */ 9718 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x3607D967: call dword ptr [0x3616fc0c] */ 9719 RECOMP_FLAGS_IN(); 9720 ecx = MEM32(ebp + (-0x1C)); /* 0x3607D96D: mov ecx, dword ptr [ebp - 0x1c] */ 9721 /* cmp ecx, edi */ /* 0x3607D970: cmp ecx, edi */ 9722 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 9723 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9724 _flag_k = FK_CMP; 9725 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3607D972: mov byte ptr [ebp - 4], 2 */ 9726 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607D993; /* 0x3607D976: je 0x3607d993 */ 9727 L_3607D978: 9728 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3607D978: mov al, byte ptr [ecx - 1] */ 9729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9730 ecx = ecx - 1; /* 0x3607D97B: dec ecx */ 9731 _flag_k = FK_DEC; 9732 /* test LO8(eax), LO8(eax) */ /* 0x3607D97C: test al, al */ 9733 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9734 _cf = 0; 9735 _flag_k = FK_NARROW(FK_TEST, 24); 9736 if (TEST_Z(_flag_a, _flag_b)) goto L_3607D98A; /* 0x3607D97E: je 0x3607d98a */ 9737 L_3607D980: 9738 /* cmp LO8(eax), 0xFFu */ /* 0x3607D980: cmp al, 0xff */ 9739 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9741 _flag_k = FK_NARROW(FK_CMP, 24); 9742 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607D98A; /* 0x3607D982: je 0x3607d98a */ 9743 L_3607D984: 9744 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9745 SET_LO8(eax, LO8(eax) - 1); /* 0x3607D984: dec al */ 9746 _flag_k = FK_NARROW(FK_DEC, 24); 9747 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3607D986: mov byte ptr [ecx], al */ 9748 goto L_3607D993; /* 0x3607D988: jmp 0x3607d993 */ 9749 L_3607D98A: 9750 PUSH32(esp, ecx); /* 0x3607D98A: push ecx */ 9751 RECOMP_ICALL(0x3615FCC4u); /* 0x3607D98B: call 0x3615fcc4 */ /* not lifted */ 9752 RECOMP_FLAGS_IN(); 9753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9755 esp = esp + 4; /* 0x3607D990: add esp, 4 */ 9756 _flag_k = FK_ADD; 9757 L_3607D993: 9758 ecx = MEM32(ebp + 0xC); /* 0x3607D993: mov ecx, dword ptr [ebp + 0xc] */ 9759 eax = esi + 0x20; /* 0x3607D996: lea eax, [esi + 0x20] */ 9760 /* cmp eax, ecx */ /* 0x3607D999: cmp eax, ecx */ 9761 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 9762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9763 _flag_k = FK_CMP; 9764 MEM32(ebp + (-0x1C)) = edi; /* 0x3607D99B: mov dword ptr [ebp - 0x1c], edi */ 9765 MEM32(ebp + (-0x18)) = edi; /* 0x3607D99E: mov dword ptr [ebp - 0x18], edi */ 9766 MEM32(ebp + (-0x14)) = edi; /* 0x3607D9A1: mov dword ptr [ebp - 0x14], edi */ 9767 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607D9B0; /* 0x3607D9A4: je 0x3607d9b0 */ 9768 L_3607D9A6: 9769 edx = MEM32(ecx); /* 0x3607D9A6: mov edx, dword ptr [ecx] */ 9770 MEM32(eax) = edx; /* 0x3607D9A8: mov dword ptr [eax], edx */ 9771 ecx = MEM32(ecx + 0x4); /* 0x3607D9AA: mov ecx, dword ptr [ecx + 4] */ 9772 MEM32(eax + 0x4) = ecx; /* 0x3607D9AD: mov dword ptr [eax + 4], ecx */ 9773 L_3607D9B0: 9774 edx = MEM32(ebp + 0x10); /* 0x3607D9B0: mov edx, dword ptr [ebp + 0x10] */ 9775 ecx = esi; /* 0x3607D9B3: mov ecx, esi */ 9776 MEM32(esi + 0x28) = edx; /* 0x3607D9B5: mov dword ptr [esi + 0x28], edx */ 9777 MEM32(esi) = 0x3617166Cu; /* 0x3607D9B8: mov dword ptr [esi], 0x3617166c */ 9778 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3607D9BE: call dword ptr [0x3616fc20] */ 9779 RECOMP_FLAGS_IN(); 9780 ecx = MEM32(ebp + (-0xC)); /* 0x3607D9C4: mov ecx, dword ptr [ebp - 0xc] */ 9781 edi = POP32_VAL(esp); /* 0x3607D9C7: pop edi */ 9782 eax = esi; /* 0x3607D9C8: mov eax, esi */ 9783 esi = POP32_VAL(esp); /* 0x3607D9CA: pop esi */ 9784 ebx = POP32_VAL(esp); /* 0x3607D9CB: pop ebx */ 9785 MEM32(FS_BASE + (0)) = ecx; /* 0x3607D9CC: mov dword ptr fs:[0], ecx */ 9786 esp = ebp; /* 0x3607D9D3: mov esp, ebp */ 9787 ebp = POP32_VAL(esp); /* 0x3607D9D5: pop ebp */ 9788 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607D9D6: ret 0xc */ 9789 RECOMP_REGS_OUT(); 9790 } 9791 9792 void sub_3607D9E0(void) { 9793 int _fpu_cmp = 0; 9794 uint32_t _cf = 0; 9795 int _df = 1; 9796 uint32_t _flag_k = FK_NONE; 9797 uint32_t _flag_a = 0, _flag_b = 0; 9798 uint32_t _itail_tgt = 0; 9799 RECOMP_REGS_LOCALS 9800 RECOMP_ENTER(0x3607D9E0u); 9801 9802 L_3607D9E0: 9803 MEM32(ecx) = 0x3617166Cu; /* 0x3607D9E0: mov dword ptr [ecx], 0x3617166c */ 9804 L_3607D9E6: 9805 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 9806 { RECOMP_REGS_OUT(); return; } /* end of function */ 9807 _ljump: 9808 switch (_itail_tgt) { 9809 case 0x3607D9E0u: goto L_3607D9E0; 9810 case 0x3607D9E6u: goto L_3607D9E6; 9811 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9812 } 9813 RECOMP_REGS_OUT(); 9814 } 9815 9816 void sub_3607D9F0(void) { 9817 int _fpu_cmp = 0; 9818 uint32_t _cf = 0; 9819 int _df = 1; 9820 uint32_t _flag_k = FK_NONE; 9821 uint32_t _flag_a = 0, _flag_b = 0; 9822 uint32_t _itail_tgt = 0; 9823 RECOMP_REGS_LOCALS 9824 RECOMP_ENTER(0x3607D9F0u); 9825 9826 L_3607D9F0: 9827 PUSH32(esp, ebp); /* 0x3607D9F0: push ebp */ 9828 ebp = esp; /* 0x3607D9F1: mov ebp, esp */ 9829 PUSH32(esp, esi); /* 0x3607D9F3: push esi */ 9830 esi = ecx; /* 0x3607D9F4: mov esi, ecx */ 9831 PUSH32(esp, edi); /* 0x3607D9F6: push edi */ 9832 edi = MEM32(ebp + 0x8); /* 0x3607D9F7: mov edi, dword ptr [ebp + 8] */ 9833 eax = esi + 0x20; /* 0x3607D9FA: lea eax, [esi + 0x20] */ 9834 PUSH32(esp, eax); /* 0x3607D9FD: push eax */ 9835 PUSH32(esp, edi); /* 0x3607D9FE: push edi */ 9836 RECOMP_ICALL(0x3615B870u); /* 0x3607D9FF: call 0x3615b870 */ /* not lifted */ 9837 RECOMP_FLAGS_IN(); 9838 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9839 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9840 esp = esp + 8; /* 0x3607DA04: add esp, 8 */ 9841 _flag_k = FK_ADD; 9842 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 9843 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9844 esi = esi + 0x28u; /* 0x3607DA07: add esi, 0x28 */ 9845 _flag_k = FK_ADD; 9846 PUSH32(esp, esi); /* 0x3607DA0A: push esi */ 9847 ecx = edi; /* 0x3607DA0B: mov ecx, edi */ 9848 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607DA0D: call dword ptr [0x3616fa8c] */ 9849 RECOMP_FLAGS_IN(); 9850 ecx = edi; /* 0x3607DA13: mov ecx, edi */ 9851 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607DA15: call dword ptr [0x3616fadc] */ 9852 RECOMP_FLAGS_IN(); 9853 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 9854 _cf = (eax) != 0; 9855 eax = (uint32_t)(-(int32_t)eax); /* 0x3607DA1B: neg eax */ 9856 _flag_k = FK_CMP; 9857 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607DA1D: sbb eax, eax */ 9858 eax = _sc ? 0xFFFFFFFFu : 0; 9859 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9860 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9861 edi = POP32_VAL(esp); /* 0x3607DA1F: pop edi */ 9862 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9863 eax = eax + 1; /* 0x3607DA20: inc eax */ 9864 _flag_k = FK_INC; 9865 esi = POP32_VAL(esp); /* 0x3607DA21: pop esi */ 9866 ebp = POP32_VAL(esp); /* 0x3607DA22: pop ebp */ 9867 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607DA23: ret 4 */ 9868 RECOMP_REGS_OUT(); 9869 } 9870 9871 void sub_3607DA30(void) { 9872 int _fpu_cmp = 0; 9873 uint32_t _cf = 0; 9874 int _df = 1; 9875 uint32_t _flag_k = FK_NONE; 9876 uint32_t _flag_a = 0, _flag_b = 0; 9877 uint32_t _itail_tgt = 0; 9878 RECOMP_REGS_LOCALS 9879 RECOMP_ENTER(0x3607DA30u); 9880 9881 L_3607DA30: 9882 PUSH32(esp, esi); /* 0x3607DA30: push esi */ 9883 esi = ecx; /* 0x3607DA31: mov esi, ecx */ 9884 eax = esi + 0x4; /* 0x3607DA33: lea eax, [esi + 4] */ 9885 PUSH32(esp, eax); /* 0x3607DA36: push eax */ 9886 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607DA37: call dword ptr [0x3616ff70] */ 9887 RECOMP_FLAGS_IN(); 9888 PUSH32(esp, 0); /* 0x3607DA3D: push 0 */ 9889 PUSH32(esp, 0x361B2CD8u); /* 0x3607DA3F: push 0x361b2cd8 */ 9890 PUSH32(esp, 0x361B2CC0u); /* 0x3607DA44: push 0x361b2cc0 */ 9891 PUSH32(esp, 0); /* 0x3607DA49: push 0 */ 9892 PUSH32(esp, eax); /* 0x3607DA4B: push eax */ 9893 RECOMP_ICALL(0x3615FD86u); /* 0x3607DA4C: call 0x3615fd86 */ /* not lifted */ 9894 RECOMP_FLAGS_IN(); 9895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9897 esp = esp + 0x18u; /* 0x3607DA51: add esp, 0x18 */ 9898 _flag_k = FK_ADD; 9899 /* test eax, eax */ /* 0x3607DA54: test eax, eax */ 9900 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9901 _cf = 0; 9902 _flag_k = FK_TEST; 9903 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DA6B; /* 0x3607DA56: je 0x3607da6b */ 9904 L_3607DA58: 9905 ecx = MEM32(esi + 0x28); /* 0x3607DA58: mov ecx, dword ptr [esi + 0x28] */ 9906 PUSH32(esp, ecx); /* 0x3607DA5B: push ecx */ 9907 ecx = MEM32(eax + 0x16C); /* 0x3607DA5C: mov ecx, dword ptr [eax + 0x16c] */ 9908 edx = esi + 0x20; /* 0x3607DA62: lea edx, [esi + 0x20] */ 9909 PUSH32(esp, edx); /* 0x3607DA65: push edx */ 9910 RECOMP_ICALL(0x36078A40u); /* 0x3607DA66: call 0x36078a40 */ /* not lifted */ 9911 RECOMP_FLAGS_IN(); 9912 L_3607DA6B: 9913 ecx = esi; /* 0x3607DA6B: mov ecx, esi */ 9914 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3607DA6D: call dword ptr [0x3616fc20] */ 9915 RECOMP_FLAGS_IN(); 9916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9917 eax = 0; /* 0x3607DA73: xor eax, eax */ 9918 _cf = 0; 9919 _flag_k = FK_TEST; 9920 esi = POP32_VAL(esp); /* 0x3607DA75: pop esi */ 9921 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DA76: ret */ 9922 RECOMP_REGS_OUT(); 9923 } 9924 9925 void sub_3607DA80(void) { 9926 int _fpu_cmp = 0; 9927 uint32_t _cf = 0; 9928 int _df = 1; 9929 uint32_t _flag_k = FK_NONE; 9930 uint32_t _flag_a = 0, _flag_b = 0; 9931 uint32_t _itail_tgt = 0; 9932 RECOMP_REGS_LOCALS 9933 RECOMP_ENTER(0x3607DA80u); 9934 9935 L_3607DA80: 9936 PUSH32(esp, ebp); /* 0x3607DA80: push ebp */ 9937 ebp = esp; /* 0x3607DA81: mov ebp, esp */ 9938 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607DA83: push -1 */ 9939 PUSH32(esp, 0x36165495u); /* 0x3607DA85: push 0x36165495 */ 9940 eax = MEM32(FS_BASE + (0)); /* 0x3607DA8A: mov eax, dword ptr fs:[0] */ 9941 PUSH32(esp, eax); /* 0x3607DA90: push eax */ 9942 MEM32(FS_BASE + (0)) = esp; /* 0x3607DA91: mov dword ptr fs:[0], esp */ 9943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9945 esp = esp - 8; /* 0x3607DA98: sub esp, 8 */ 9946 _flag_k = FK_CMP; 9947 PUSH32(esp, esi); /* 0x3607DA9B: push esi */ 9948 esi = ecx; /* 0x3607DA9C: mov esi, ecx */ 9949 PUSH32(esp, edi); /* 0x3607DA9E: push edi */ 9950 MEM32(ebp + (-0x14)) = esi; /* 0x3607DA9F: mov dword ptr [ebp - 0x14], esi */ 9951 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607DAA2: call dword ptr [0x3616ffd0] */ 9952 RECOMP_FLAGS_IN(); 9953 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3607DAA8: mov al, byte ptr [ebp - 0xd] */ 9954 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9955 edi = 0; /* 0x3607DAAB: xor edi, edi */ 9956 _cf = 0; 9957 _flag_k = FK_TEST; 9958 MEM32(ebp + (-0x4)) = edi; /* 0x3607DAAD: mov dword ptr [ebp - 4], edi */ 9959 MEM8(esi + 0x2C) = (uint8_t)(LO8(eax)); /* 0x3607DAB0: mov byte ptr [esi + 0x2c], al */ 9960 MEM32(esi + 0x30) = edi; /* 0x3607DAB3: mov dword ptr [esi + 0x30], edi */ 9961 MEM32(esi + 0x34) = edi; /* 0x3607DAB6: mov dword ptr [esi + 0x34], edi */ 9962 MEM32(esi + 0x38) = edi; /* 0x3607DAB9: mov dword ptr [esi + 0x38], edi */ 9963 PUSH32(esp, 0x10u); /* 0x3607DABC: push 0x10 */ 9964 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607DABE: mov byte ptr [ebp - 4], 1 */ 9965 MEM32(esi) = 0x36171690u; /* 0x3607DAC2: mov dword ptr [esi], 0x36171690 */ 9966 RECOMP_ICALL(0x3615FD6Au); /* 0x3607DAC8: call 0x3615fd6a */ /* not lifted */ 9967 RECOMP_FLAGS_IN(); 9968 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9970 esp = esp + 4; /* 0x3607DACD: add esp, 4 */ 9971 _flag_k = FK_ADD; 9972 /* cmp eax, edi */ /* 0x3607DAD0: cmp eax, edi */ 9973 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 9974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9975 _flag_k = FK_CMP; 9976 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607DAF7; /* 0x3607DAD2: je 0x3607daf7 */ 9977 L_3607DAD4: 9978 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3607DAD4: mov cl, byte ptr [ebp - 0xd] */ 9979 MEM32(eax + 0x4) = edi; /* 0x3607DAD7: mov dword ptr [eax + 4], edi */ 9980 MEM32(eax + 0x8) = edi; /* 0x3607DADA: mov dword ptr [eax + 8], edi */ 9981 MEM32(eax + 0xC) = edi; /* 0x3607DADD: mov dword ptr [eax + 0xc], edi */ 9982 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3607DAE0: mov byte ptr [eax], cl */ 9983 MEM32(esi + 0x20) = eax; /* 0x3607DAE2: mov dword ptr [esi + 0x20], eax */ 9984 edi = POP32_VAL(esp); /* 0x3607DAE5: pop edi */ 9985 eax = esi; /* 0x3607DAE6: mov eax, esi */ 9986 esi = POP32_VAL(esp); /* 0x3607DAE8: pop esi */ 9987 ecx = MEM32(ebp + (-0xC)); /* 0x3607DAE9: mov ecx, dword ptr [ebp - 0xc] */ 9988 MEM32(FS_BASE + (0)) = ecx; /* 0x3607DAEC: mov dword ptr fs:[0], ecx */ 9989 esp = ebp; /* 0x3607DAF3: mov esp, ebp */ 9990 ebp = POP32_VAL(esp); /* 0x3607DAF5: pop ebp */ 9991 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DAF6: ret */ 9992 L_3607DAF7: 9993 ecx = MEM32(ebp + (-0xC)); /* 0x3607DAF7: mov ecx, dword ptr [ebp - 0xc] */ 9994 MEM32(esi + 0x20) = edi; /* 0x3607DAFA: mov dword ptr [esi + 0x20], edi */ 9995 edi = POP32_VAL(esp); /* 0x3607DAFD: pop edi */ 9996 eax = esi; /* 0x3607DAFE: mov eax, esi */ 9997 esi = POP32_VAL(esp); /* 0x3607DB00: pop esi */ 9998 MEM32(FS_BASE + (0)) = ecx; /* 0x3607DB01: mov dword ptr fs:[0], ecx */ 9999 esp = ebp; /* 0x3607DB08: mov esp, ebp */ 10000 ebp = POP32_VAL(esp); /* 0x3607DB0A: pop ebp */ 10001 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DB0B: ret */ 10002 RECOMP_REGS_OUT(); 10003 } 10004 10005 void sub_3607DB10(void) { 10006 int _fpu_cmp = 0; 10007 uint32_t _cf = 0; 10008 int _df = 1; 10009 uint32_t _flag_k = FK_NONE; 10010 uint32_t _flag_a = 0, _flag_b = 0; 10011 uint32_t _itail_tgt = 0; 10012 RECOMP_REGS_LOCALS 10013 RECOMP_ENTER(0x3607DB10u); 10014 10015 L_3607DB10: 10016 PUSH32(esp, ebp); /* 0x3607DB10: push ebp */ 10017 ebp = esp; /* 0x3607DB11: mov ebp, esp */ 10018 PUSH32(esp, esi); /* 0x3607DB13: push esi */ 10019 esi = ecx; /* 0x3607DB14: mov esi, ecx */ 10020 RECOMP_ICALL(0x3607DB40u); /* 0x3607DB16: call 0x3607db40 */ /* not lifted */ 10021 RECOMP_FLAGS_IN(); 10022 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607DB1B: test byte ptr [ebp + 8], 1 */ 10023 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10024 _cf = 0; 10025 _flag_k = FK_NARROW(FK_TEST, 24); 10026 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DB2A; /* 0x3607DB1F: je 0x3607db2a */ 10027 L_3607DB21: 10028 PUSH32(esp, esi); /* 0x3607DB21: push esi */ 10029 RECOMP_ICALL(0x3615FCC4u); /* 0x3607DB22: call 0x3615fcc4 */ /* not lifted */ 10030 RECOMP_FLAGS_IN(); 10031 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10032 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10033 esp = esp + 4; /* 0x3607DB27: add esp, 4 */ 10034 _flag_k = FK_ADD; 10035 L_3607DB2A: 10036 eax = esi; /* 0x3607DB2A: mov eax, esi */ 10037 esi = POP32_VAL(esp); /* 0x3607DB2C: pop esi */ 10038 ebp = POP32_VAL(esp); /* 0x3607DB2D: pop ebp */ 10039 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607DB2E: ret 4 */ 10040 RECOMP_REGS_OUT(); 10041 } 10042 10043 void sub_3607DB40(void) { 10044 int _fpu_cmp = 0; 10045 uint32_t _cf = 0; 10046 int _df = 1; 10047 uint32_t _flag_k = FK_NONE; 10048 uint32_t _flag_a = 0, _flag_b = 0; 10049 uint32_t _itail_tgt = 0; 10050 RECOMP_REGS_LOCALS 10051 RECOMP_ENTER(0x3607DB40u); 10052 10053 L_3607DB40: 10054 PUSH32(esp, esi); /* 0x3607DB40: push esi */ 10055 esi = ecx; /* 0x3607DB41: mov esi, ecx */ 10056 MEM32(esi) = 0x36171690u; /* 0x3607DB43: mov dword ptr [esi], 0x36171690 */ 10057 eax = MEM32(esi + 0x30); /* 0x3607DB49: mov eax, dword ptr [esi + 0x30] */ 10058 /* test eax, eax */ /* 0x3607DB4C: test eax, eax */ 10059 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10060 _cf = 0; 10061 _flag_k = FK_TEST; 10062 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DB6C; /* 0x3607DB4E: je 0x3607db6c */ 10063 L_3607DB50: 10064 ecx = eax + (-0x1); /* 0x3607DB50: lea ecx, [eax - 1] */ 10065 SET_LO8(eax, MEM8(ecx)); /* 0x3607DB53: mov al, byte ptr [ecx] */ 10066 /* test LO8(eax), LO8(eax) */ /* 0x3607DB55: test al, al */ 10067 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10068 _cf = 0; 10069 _flag_k = FK_NARROW(FK_TEST, 24); 10070 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DB63; /* 0x3607DB57: je 0x3607db63 */ 10071 L_3607DB59: 10072 /* cmp LO8(eax), 0xFFu */ /* 0x3607DB59: cmp al, 0xff */ 10073 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10075 _flag_k = FK_NARROW(FK_CMP, 24); 10076 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607DB63; /* 0x3607DB5B: je 0x3607db63 */ 10077 L_3607DB5D: 10078 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10079 SET_LO8(eax, LO8(eax) - 1); /* 0x3607DB5D: dec al */ 10080 _flag_k = FK_NARROW(FK_DEC, 24); 10081 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3607DB5F: mov byte ptr [ecx], al */ 10082 goto L_3607DB6C; /* 0x3607DB61: jmp 0x3607db6c */ 10083 L_3607DB63: 10084 PUSH32(esp, ecx); /* 0x3607DB63: push ecx */ 10085 RECOMP_ICALL(0x3615FCC4u); /* 0x3607DB64: call 0x3615fcc4 */ /* not lifted */ 10086 RECOMP_FLAGS_IN(); 10087 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10088 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10089 esp = esp + 4; /* 0x3607DB69: add esp, 4 */ 10090 _flag_k = FK_ADD; 10091 L_3607DB6C: 10092 ecx = esi; /* 0x3607DB6C: mov ecx, esi */ 10093 MEM32(esi + 0x30) = 0; /* 0x3607DB6E: mov dword ptr [esi + 0x30], 0 */ 10094 MEM32(esi + 0x34) = 0; /* 0x3607DB75: mov dword ptr [esi + 0x34], 0 */ 10095 MEM32(esi + 0x38) = 0; /* 0x3607DB7C: mov dword ptr [esi + 0x38], 0 */ 10096 RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x3607DB83: call dword ptr [0x3616ffd4] */ 10097 RECOMP_FLAGS_IN(); 10098 esi = POP32_VAL(esp); /* 0x3607DB89: pop esi */ 10099 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DB8A: ret */ 10100 RECOMP_REGS_OUT(); 10101 } 10102 10103 void sub_3607DB90(void) { 10104 int _fpu_cmp = 0; 10105 uint32_t _cf = 0; 10106 int _df = 1; 10107 uint32_t _flag_k = FK_NONE; 10108 uint32_t _flag_a = 0, _flag_b = 0; 10109 uint32_t _itail_tgt = 0; 10110 RECOMP_REGS_LOCALS 10111 RECOMP_ENTER(0x3607DB90u); 10112 10113 L_3607DB90: 10114 PUSH32(esp, ebp); /* 0x3607DB90: push ebp */ 10115 ebp = esp; /* 0x3607DB91: mov ebp, esp */ 10116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x104u); 10117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10118 esp = esp - 0x104u; /* 0x3607DB93: sub esp, 0x104 */ 10119 _flag_k = FK_CMP; 10120 PUSH32(esp, ebx); /* 0x3607DB99: push ebx */ 10121 PUSH32(esp, esi); /* 0x3607DB9A: push esi */ 10122 esi = MEM32(ebp + 0x8); /* 0x3607DB9B: mov esi, dword ptr [ebp + 8] */ 10123 ebx = ecx; /* 0x3607DB9E: mov ebx, ecx */ 10124 eax = MEM32(ebx + 0x20); /* 0x3607DBA0: mov eax, dword ptr [ebx + 0x20] */ 10125 PUSH32(esp, edi); /* 0x3607DBA3: push edi */ 10126 PUSH32(esp, eax); /* 0x3607DBA4: push eax */ 10127 PUSH32(esp, esi); /* 0x3607DBA5: push esi */ 10128 RECOMP_ICALL(0x36005440u); /* 0x3607DBA6: call 0x36005440 */ /* not lifted */ 10129 RECOMP_FLAGS_IN(); 10130 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10131 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10132 esp = esp + 8; /* 0x3607DBAB: add esp, 8 */ 10133 _flag_k = FK_ADD; 10134 ecx = ebx + 0x24; /* 0x3607DBAE: lea ecx, [ebx + 0x24] */ 10135 PUSH32(esp, ecx); /* 0x3607DBB1: push ecx */ 10136 ecx = esi; /* 0x3607DBB2: mov ecx, esi */ 10137 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607DBB4: call dword ptr [0x3616fa8c] */ 10138 RECOMP_FLAGS_IN(); 10139 edi = MEM32(0x3616FAE0); /* 0x3607DBBA: mov edi, dword ptr [0x3616fae0] */ 10140 edx = ebx + 0x28; /* 0x3607DBC0: lea edx, [ebx + 0x28] */ 10141 PUSH32(esp, edx); /* 0x3607DBC3: push edx */ 10142 ecx = esi; /* 0x3607DBC4: mov ecx, esi */ 10143 RECOMP_ICALL(edi); /* 0x3607DBC6: call edi */ 10144 RECOMP_FLAGS_IN(); 10145 eax = ebx + 0x29; /* 0x3607DBC8: lea eax, [ebx + 0x29] */ 10146 PUSH32(esp, eax); /* 0x3607DBCB: push eax */ 10147 ecx = esi; /* 0x3607DBCC: mov ecx, esi */ 10148 RECOMP_ICALL(edi); /* 0x3607DBCE: call edi */ 10149 RECOMP_FLAGS_IN(); 10150 ecx = ebx + 0x2A; /* 0x3607DBD0: lea ecx, [ebx + 0x2a] */ 10151 PUSH32(esp, ecx); /* 0x3607DBD3: push ecx */ 10152 ecx = esi; /* 0x3607DBD4: mov ecx, esi */ 10153 RECOMP_ICALL(edi); /* 0x3607DBD6: call edi */ 10154 RECOMP_FLAGS_IN(); 10155 edx = ebp + (-0x104); /* 0x3607DBD8: lea edx, [ebp - 0x104] */ 10156 PUSH32(esp, edx); /* 0x3607DBDE: push edx */ 10157 ecx = esi; /* 0x3607DBDF: mov ecx, esi */ 10158 RECOMP_ICALL(MEM32(0x3616FA9C)); /* 0x3607DBE1: call dword ptr [0x3616fa9c] */ 10159 RECOMP_FLAGS_IN(); 10160 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10161 ecx = ecx | 0xFFFFFFFFu; /* 0x3607DBE7: or ecx, 0xffffffff */ 10162 _cf = 0; 10163 _flag_k = FK_TEST; 10164 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10165 eax = 0; /* 0x3607DBEA: xor eax, eax */ 10166 _cf = 0; 10167 _flag_k = FK_TEST; 10168 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x2Cu); 10169 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10170 ebx = ebx + 0x2Cu; /* 0x3607DBEC: add ebx, 0x2c */ 10171 _flag_k = FK_ADD; 10172 edi = ebp + (-0x104); /* 0x3607DBEF: lea edi, [ebp - 0x104] */ 10173 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; } /* 0x3607DBF5: repne scasb al, byte ptr es:[edi] */ 10174 ecx = ~ecx; /* 0x3607DBF7: not ecx */ 10175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10176 ecx = ecx - 1; /* 0x3607DBF9: dec ecx */ 10177 _flag_k = FK_DEC; 10178 edi = ecx; /* 0x3607DBFA: mov edi, ecx */ 10179 /* cmp edi, 0xFFFFFFFDu */ /* 0x3607DBFC: cmp edi, -3 */ 10180 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu); 10181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10182 _flag_k = FK_CMP; 10183 MEM32(ebp + (-0x4)) = edi; /* 0x3607DBFF: mov dword ptr [ebp - 4], edi */ 10184 if (CMP_BE(_flag_a, _flag_b)) goto L_3607DC0A; /* 0x3607DC02: jbe 0x3607dc0a */ 10185 L_3607DC04: 10186 RECOMP_ICALL(MEM32(0x3616F104)); /* 0x3607DC04: call dword ptr [0x3616f104] */ 10187 RECOMP_FLAGS_IN(); 10188 L_3607DC0A: 10189 ecx = MEM32(ebx + 0x4); /* 0x3607DC0A: mov ecx, dword ptr [ebx + 4] */ 10190 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10191 edx = 0; /* 0x3607DC0D: xor edx, edx */ 10192 _cf = 0; 10193 _flag_k = FK_TEST; 10194 /* cmp ecx, edx */ /* 0x3607DC0F: cmp ecx, edx */ 10195 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 10196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10197 _flag_k = FK_CMP; 10198 MEM32(ebx + 0x8) = edx; /* 0x3607DC11: mov dword ptr [ebx + 8], edx */ 10199 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607DC35; /* 0x3607DC14: je 0x3607dc35 */ 10200 L_3607DC16: 10201 SET_LO8(eax, MEM8(ecx + (-0x1))); /* 0x3607DC16: mov al, byte ptr [ecx - 1] */ 10202 /* test LO8(eax), LO8(eax) */ /* 0x3607DC19: test al, al */ 10203 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10204 _cf = 0; 10205 _flag_k = FK_NARROW(FK_TEST, 24); 10206 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DC35; /* 0x3607DC1B: je 0x3607dc35 */ 10207 L_3607DC1D: 10208 /* cmp LO8(eax), 0xFFu */ /* 0x3607DC1D: cmp al, 0xff */ 10209 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10210 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10211 _flag_k = FK_NARROW(FK_CMP, 24); 10212 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607DC35; /* 0x3607DC1F: je 0x3607dc35 */ 10213 L_3607DC21: 10214 /* cmp edi, edx */ /* 0x3607DC21: cmp edi, edx */ 10215 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 10216 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10217 _flag_k = FK_CMP; 10218 if (CMP_NE(_flag_a, _flag_b)) goto L_3607DC5B; /* 0x3607DC23: jne 0x3607dc5b */ 10219 L_3607DC25: 10220 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10221 SET_LO8(eax, LO8(eax) - 1); /* 0x3607DC25: dec al */ 10222 _flag_k = FK_NARROW(FK_DEC, 24); 10223 MEM8(ecx + (-0x1)) = (uint8_t)(LO8(eax)); /* 0x3607DC27: mov byte ptr [ecx - 1], al */ 10224 MEM32(ebx + 0x4) = edx; /* 0x3607DC2A: mov dword ptr [ebx + 4], edx */ 10225 MEM32(ebx + 0x8) = edx; /* 0x3607DC2D: mov dword ptr [ebx + 8], edx */ 10226 MEM32(ebx + 0xC) = edx; /* 0x3607DC30: mov dword ptr [ebx + 0xc], edx */ 10227 goto L_3607DC8D; /* 0x3607DC33: jmp 0x3607dc8d */ 10228 L_3607DC35: 10229 /* cmp edi, edx */ /* 0x3607DC35: cmp edi, edx */ 10230 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edx); 10231 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10232 _flag_k = FK_CMP; 10233 if (CMP_NE(_flag_a, _flag_b)) goto L_3607DC45; /* 0x3607DC37: jne 0x3607dc45 */ 10234 L_3607DC39: 10235 PUSH32(esp, 1); /* 0x3607DC39: push 1 */ 10236 ecx = ebx; /* 0x3607DC3B: mov ecx, ebx */ 10237 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3607DC3D: call dword ptr [0x3616f100] */ 10238 RECOMP_FLAGS_IN(); 10239 goto L_3607DC8D; /* 0x3607DC43: jmp 0x3607dc8d */ 10240 L_3607DC45: 10241 eax = MEM32(ebx + 0xC); /* 0x3607DC45: mov eax, dword ptr [ebx + 0xc] */ 10242 /* cmp eax, 0x1Fu */ /* 0x3607DC48: cmp eax, 0x1f */ 10243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 10244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10245 _flag_k = FK_CMP; 10246 if (CMP_A(_flag_a, _flag_b)) goto L_3607DC51; /* 0x3607DC4B: ja 0x3607dc51 */ 10247 L_3607DC4D: 10248 /* cmp eax, edi */ /* 0x3607DC4D: cmp eax, edi */ 10249 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10250 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10251 _flag_k = FK_CMP; 10252 if (CMP_AE(_flag_a, _flag_b)) goto L_3607DC64; /* 0x3607DC4F: jae 0x3607dc64 */ 10253 L_3607DC51: 10254 PUSH32(esp, 1); /* 0x3607DC51: push 1 */ 10255 ecx = ebx; /* 0x3607DC53: mov ecx, ebx */ 10256 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3607DC55: call dword ptr [0x3616f100] */ 10257 RECOMP_FLAGS_IN(); 10258 L_3607DC5B: 10259 PUSH32(esp, edi); /* 0x3607DC5B: push edi */ 10260 ecx = ebx; /* 0x3607DC5C: mov ecx, ebx */ 10261 RECOMP_ICALL(MEM32(0x3616F048)); /* 0x3607DC5E: call dword ptr [0x3616f048] */ 10262 RECOMP_FLAGS_IN(); 10263 L_3607DC64: 10264 ecx = edi; /* 0x3607DC64: mov ecx, edi */ 10265 edi = MEM32(ebx + 0x4); /* 0x3607DC66: mov edi, dword ptr [ebx + 4] */ 10266 eax = ecx; /* 0x3607DC69: mov eax, ecx */ 10267 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607DC6B: shr ecx, 2 */ 10268 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10269 ecx = ecx >> 2u; /* 0x3607DC6B: shr ecx, 2 */ 10270 esi = ebp + (-0x104); /* 0x3607DC6E: lea esi, [ebp - 0x104] */ 10271 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3607DC74: 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; } 10272 ecx = eax; /* 0x3607DC76: mov ecx, eax */ 10273 eax = MEM32(ebp + (-0x4)); /* 0x3607DC78: mov eax, dword ptr [ebp - 4] */ 10274 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10275 ecx = ecx & 3; /* 0x3607DC7B: and ecx, 3 */ 10276 _cf = 0; 10277 _flag_k = FK_TEST; 10278 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3607DC7E: 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; } 10279 ecx = MEM32(ebx + 0x4); /* 0x3607DC80: mov ecx, dword ptr [ebx + 4] */ 10280 esi = MEM32(ebp + 0x8); /* 0x3607DC83: mov esi, dword ptr [ebp + 8] */ 10281 MEM32(ebx + 0x8) = eax; /* 0x3607DC86: mov dword ptr [ebx + 8], eax */ 10282 MEM8(ecx + eax) = (uint8_t)(0); /* 0x3607DC89: mov byte ptr [ecx + eax], 0 */ 10283 L_3607DC8D: 10284 ecx = esi; /* 0x3607DC8D: mov ecx, esi */ 10285 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607DC8F: call dword ptr [0x3616fadc] */ 10286 RECOMP_FLAGS_IN(); 10287 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 10288 _cf = (eax) != 0; 10289 eax = (uint32_t)(-(int32_t)eax); /* 0x3607DC95: neg eax */ 10290 _flag_k = FK_CMP; 10291 edi = POP32_VAL(esp); /* 0x3607DC97: pop edi */ 10292 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607DC98: sbb eax, eax */ 10293 eax = _sc ? 0xFFFFFFFFu : 0; 10294 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10295 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10296 esi = POP32_VAL(esp); /* 0x3607DC9A: pop esi */ 10297 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 10298 eax = eax + 1; /* 0x3607DC9B: inc eax */ 10299 _flag_k = FK_INC; 10300 ebx = POP32_VAL(esp); /* 0x3607DC9C: pop ebx */ 10301 esp = ebp; /* 0x3607DC9D: mov esp, ebp */ 10302 ebp = POP32_VAL(esp); /* 0x3607DC9F: pop ebp */ 10303 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607DCA0: ret 4 */ 10304 RECOMP_REGS_OUT(); 10305 } 10306 10307 void sub_3607DCB0(void) { 10308 int _fpu_cmp = 0; 10309 uint32_t _cf = 0; 10310 int _df = 1; 10311 uint32_t _flag_k = FK_NONE; 10312 uint32_t _flag_a = 0, _flag_b = 0; 10313 uint32_t _itail_tgt = 0; 10314 RECOMP_REGS_LOCALS 10315 RECOMP_ENTER(0x3607DCB0u); 10316 10317 L_3607DCB0: 10318 PUSH32(esp, ebp); /* 0x3607DCB0: push ebp */ 10319 ebp = esp; /* 0x3607DCB1: mov ebp, esp */ 10320 PUSH32(esp, ebx); /* 0x3607DCB3: push ebx */ 10321 PUSH32(esp, esi); /* 0x3607DCB4: push esi */ 10322 esi = ecx; /* 0x3607DCB5: mov esi, ecx */ 10323 eax = MEM32(esi + 0x20); /* 0x3607DCB7: mov eax, dword ptr [esi + 0x20] */ 10324 PUSH32(esp, edi); /* 0x3607DCBA: push edi */ 10325 edi = MEM32(ebp + 0x8); /* 0x3607DCBB: mov edi, dword ptr [ebp + 8] */ 10326 PUSH32(esp, eax); /* 0x3607DCBE: push eax */ 10327 PUSH32(esp, edi); /* 0x3607DCBF: push edi */ 10328 RECOMP_ICALL(0x360053C0u); /* 0x3607DCC0: call 0x360053c0 */ /* not lifted */ 10329 RECOMP_FLAGS_IN(); 10330 ecx = MEM32(esi + 0x24); /* 0x3607DCC5: mov ecx, dword ptr [esi + 0x24] */ 10331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10333 esp = esp + 8; /* 0x3607DCC8: add esp, 8 */ 10334 _flag_k = FK_ADD; 10335 PUSH32(esp, ecx); /* 0x3607DCCB: push ecx */ 10336 ecx = edi; /* 0x3607DCCC: mov ecx, edi */ 10337 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3607DCCE: call dword ptr [0x3616faec] */ 10338 RECOMP_FLAGS_IN(); 10339 ebx = MEM32(0x3616FAE8); /* 0x3607DCD4: mov ebx, dword ptr [0x3616fae8] */ 10340 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10341 edx = 0; /* 0x3607DCDA: xor edx, edx */ 10342 _cf = 0; 10343 _flag_k = FK_TEST; 10344 SET_LO8(edx, MEM8(esi + 0x28)); /* 0x3607DCDC: mov dl, byte ptr [esi + 0x28] */ 10345 ecx = edi; /* 0x3607DCDF: mov ecx, edi */ 10346 PUSH32(esp, edx); /* 0x3607DCE1: push edx */ 10347 RECOMP_ICALL(ebx); /* 0x3607DCE2: call ebx */ 10348 RECOMP_FLAGS_IN(); 10349 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10350 eax = 0; /* 0x3607DCE4: xor eax, eax */ 10351 _cf = 0; 10352 _flag_k = FK_TEST; 10353 SET_LO8(eax, MEM8(esi + 0x29)); /* 0x3607DCE6: mov al, byte ptr [esi + 0x29] */ 10354 ecx = edi; /* 0x3607DCE9: mov ecx, edi */ 10355 PUSH32(esp, eax); /* 0x3607DCEB: push eax */ 10356 RECOMP_ICALL(ebx); /* 0x3607DCEC: call ebx */ 10357 RECOMP_FLAGS_IN(); 10358 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10359 ecx = 0; /* 0x3607DCEE: xor ecx, ecx */ 10360 _cf = 0; 10361 _flag_k = FK_TEST; 10362 SET_LO8(ecx, MEM8(esi + 0x2A)); /* 0x3607DCF0: mov cl, byte ptr [esi + 0x2a] */ 10363 PUSH32(esp, ecx); /* 0x3607DCF3: push ecx */ 10364 ecx = edi; /* 0x3607DCF4: mov ecx, edi */ 10365 RECOMP_ICALL(ebx); /* 0x3607DCF6: call ebx */ 10366 RECOMP_FLAGS_IN(); 10367 esi = MEM32(esi + 0x30); /* 0x3607DCF8: mov esi, dword ptr [esi + 0x30] */ 10368 /* test esi, esi */ /* 0x3607DCFB: test esi, esi */ 10369 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10370 _cf = 0; 10371 _flag_k = FK_TEST; 10372 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607DD05; /* 0x3607DCFD: jne 0x3607dd05 */ 10373 L_3607DCFF: 10374 esi = MEM32(0x3616F10C); /* 0x3607DCFF: mov esi, dword ptr [0x3616f10c] */ 10375 L_3607DD05: 10376 PUSH32(esp, esi); /* 0x3607DD05: push esi */ 10377 ecx = edi; /* 0x3607DD06: mov ecx, edi */ 10378 RECOMP_ICALL(MEM32(0x3616FAAC)); /* 0x3607DD08: call dword ptr [0x3616faac] */ 10379 RECOMP_FLAGS_IN(); 10380 edi = POP32_VAL(esp); /* 0x3607DD0E: pop edi */ 10381 esi = POP32_VAL(esp); /* 0x3607DD0F: pop esi */ 10382 ebx = POP32_VAL(esp); /* 0x3607DD10: pop ebx */ 10383 ebp = POP32_VAL(esp); /* 0x3607DD11: pop ebp */ 10384 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607DD12: ret 4 */ 10385 RECOMP_REGS_OUT(); 10386 } 10387 10388 void sub_3607DD20(void) { 10389 int _fpu_cmp = 0; 10390 uint32_t _cf = 0; 10391 int _df = 1; 10392 uint32_t _flag_k = FK_NONE; 10393 uint32_t _flag_a = 0, _flag_b = 0; 10394 uint32_t _itail_tgt = 0; 10395 RECOMP_REGS_LOCALS 10396 RECOMP_ENTER(0x3607DD20u); 10397 10398 L_3607DD20: 10399 PUSH32(esp, ebp); /* 0x3607DD20: push ebp */ 10400 ebp = esp; /* 0x3607DD21: mov ebp, esp */ 10401 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607DD23: push -1 */ 10402 PUSH32(esp, 0x361654A9u); /* 0x3607DD25: push 0x361654a9 */ 10403 eax = MEM32(FS_BASE + (0)); /* 0x3607DD2A: mov eax, dword ptr fs:[0] */ 10404 PUSH32(esp, eax); /* 0x3607DD30: push eax */ 10405 MEM32(FS_BASE + (0)) = esp; /* 0x3607DD31: mov dword ptr fs:[0], esp */ 10406 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 10407 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10408 esp = esp - 0x18u; /* 0x3607DD38: sub esp, 0x18 */ 10409 _flag_k = FK_CMP; 10410 PUSH32(esp, ebx); /* 0x3607DD3B: push ebx */ 10411 PUSH32(esp, esi); /* 0x3607DD3C: push esi */ 10412 esi = ecx; /* 0x3607DD3D: mov esi, ecx */ 10413 eax = esi + 0x4; /* 0x3607DD3F: lea eax, [esi + 4] */ 10414 PUSH32(esp, edi); /* 0x3607DD42: push edi */ 10415 PUSH32(esp, eax); /* 0x3607DD43: push eax */ 10416 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607DD44: call dword ptr [0x3616ff70] */ 10417 RECOMP_FLAGS_IN(); 10418 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10419 ebx = 0; /* 0x3607DD4A: xor ebx, ebx */ 10420 _cf = 0; 10421 _flag_k = FK_TEST; 10422 PUSH32(esp, ebx); /* 0x3607DD4C: push ebx */ 10423 PUSH32(esp, 0x361B2CD8u); /* 0x3607DD4D: push 0x361b2cd8 */ 10424 PUSH32(esp, 0x361B2CC0u); /* 0x3607DD52: push 0x361b2cc0 */ 10425 PUSH32(esp, ebx); /* 0x3607DD57: push ebx */ 10426 PUSH32(esp, eax); /* 0x3607DD58: push eax */ 10427 RECOMP_ICALL(0x3615FD86u); /* 0x3607DD59: call 0x3615fd86 */ /* not lifted */ 10428 RECOMP_FLAGS_IN(); 10429 edi = eax; /* 0x3607DD5E: mov edi, eax */ 10430 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 10431 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10432 esp = esp + 0x18u; /* 0x3607DD60: add esp, 0x18 */ 10433 _flag_k = FK_ADD; 10434 /* cmp edi, ebx */ /* 0x3607DD63: cmp edi, ebx */ 10435 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 10436 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10437 _flag_k = FK_CMP; 10438 MEM32(ebp + (-0x14)) = edi; /* 0x3607DD65: mov dword ptr [ebp - 0x14], edi */ 10439 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607DE4B; /* 0x3607DD68: je 0x3607de4b */ 10440 L_3607DD6E: 10441 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10442 ecx = 0; /* 0x3607DD6E: xor ecx, ecx */ 10443 _cf = 0; 10444 _flag_k = FK_TEST; 10445 SET_LO8(ecx, MEM8(esi + 0x2A)); /* 0x3607DD70: mov cl, byte ptr [esi + 0x2a] */ 10446 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10447 edx = 0; /* 0x3607DD73: xor edx, edx */ 10448 _cf = 0; 10449 _flag_k = FK_TEST; 10450 SET_LO8(edx, MEM8(esi + 0x29)); /* 0x3607DD75: mov dl, byte ptr [esi + 0x29] */ 10451 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10452 eax = 0; /* 0x3607DD78: xor eax, eax */ 10453 _cf = 0; 10454 _flag_k = FK_TEST; 10455 SET_LO8(eax, MEM8(esi + 0x28)); /* 0x3607DD7A: mov al, byte ptr [esi + 0x28] */ 10456 PUSH32(esp, ecx); /* 0x3607DD7D: push ecx */ 10457 ecx = MEM32(esi + 0x24); /* 0x3607DD7E: mov ecx, dword ptr [esi + 0x24] */ 10458 PUSH32(esp, edx); /* 0x3607DD81: push edx */ 10459 PUSH32(esp, eax); /* 0x3607DD82: push eax */ 10460 PUSH32(esp, ecx); /* 0x3607DD83: push ecx */ 10461 ecx = edi; /* 0x3607DD84: mov ecx, edi */ 10462 RECOMP_ICALL(0x36072000u); /* 0x3607DD86: call 0x36072000 */ /* not lifted */ 10463 RECOMP_FLAGS_IN(); 10464 ecx = eax; /* 0x3607DD8B: mov ecx, eax */ 10465 RECOMP_ICALL(0x36057AD0u); /* 0x3607DD8D: call 0x36057ad0 */ /* not lifted */ 10466 RECOMP_FLAGS_IN(); 10467 edx = MEM32(esi + 0x20); /* 0x3607DD92: mov edx, dword ptr [esi + 0x20] */ 10468 ecx = MEM32(edi + 0x150); /* 0x3607DD95: mov ecx, dword ptr [edi + 0x150] */ 10469 PUSH32(esp, edx); /* 0x3607DD9B: push edx */ 10470 RECOMP_ICALL(0x3605CD10u); /* 0x3607DD9C: call 0x3605cd10 */ /* not lifted */ 10471 RECOMP_FLAGS_IN(); 10472 esi = MEM32(esi + 0x30); /* 0x3607DDA1: mov esi, dword ptr [esi + 0x30] */ 10473 /* cmp esi, ebx */ /* 0x3607DDA4: cmp esi, ebx */ 10474 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10475 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10476 _flag_k = FK_CMP; 10477 if (CMP_NE(_flag_a, _flag_b)) goto L_3607DDAE; /* 0x3607DDA6: jne 0x3607ddae */ 10478 L_3607DDA8: 10479 esi = MEM32(0x3616F10C); /* 0x3607DDA8: mov esi, dword ptr [0x3616f10c] */ 10480 L_3607DDAE: 10481 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3607DDAE: mov al, byte ptr [ebp - 0xd] */ 10482 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10483 ecx = ecx | 0xFFFFFFFFu; /* 0x3607DDB1: or ecx, 0xffffffff */ 10484 _cf = 0; 10485 _flag_k = FK_TEST; 10486 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x3607DDB4: mov byte ptr [ebp - 0x24], al */ 10487 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10488 eax = 0; /* 0x3607DDB7: xor eax, eax */ 10489 _cf = 0; 10490 _flag_k = FK_TEST; 10491 MEM32(ebp + (-0x20)) = ebx; /* 0x3607DDB9: mov dword ptr [ebp - 0x20], ebx */ 10492 MEM32(ebp + (-0x1C)) = ebx; /* 0x3607DDBC: mov dword ptr [ebp - 0x1c], ebx */ 10493 MEM32(ebp + (-0x18)) = ebx; /* 0x3607DDBF: mov dword ptr [ebp - 0x18], ebx */ 10494 edi = esi; /* 0x3607DDC2: mov edi, esi */ 10495 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; } /* 0x3607DDC4: repne scasb al, byte ptr es:[edi] */ 10496 ecx = ~ecx; /* 0x3607DDC6: not ecx */ 10497 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10498 ecx = ecx - 1; /* 0x3607DDC8: dec ecx */ 10499 _flag_k = FK_DEC; 10500 ebx = ecx; /* 0x3607DDC9: mov ebx, ecx */ 10501 PUSH32(esp, 1); /* 0x3607DDCB: push 1 */ 10502 PUSH32(esp, ebx); /* 0x3607DDCD: push ebx */ 10503 ecx = ebp + (-0x24); /* 0x3607DDCE: lea ecx, [ebp - 0x24] */ 10504 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3607DDD1: call dword ptr [0x3616f00c] */ 10505 RECOMP_FLAGS_IN(); 10506 /* test LO8(eax), LO8(eax) */ /* 0x3607DDD7: test al, al */ 10507 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10508 _cf = 0; 10509 _flag_k = FK_NARROW(FK_TEST, 24); 10510 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DDF8; /* 0x3607DDD9: je 0x3607ddf8 */ 10511 L_3607DDDB: 10512 edi = MEM32(ebp + (-0x20)); /* 0x3607DDDB: mov edi, dword ptr [ebp - 0x20] */ 10513 ecx = ebx; /* 0x3607DDDE: mov ecx, ebx */ 10514 edx = ecx; /* 0x3607DDE0: mov edx, ecx */ 10515 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607DDE2: shr ecx, 2 */ 10516 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10517 ecx = ecx >> 2u; /* 0x3607DDE2: shr ecx, 2 */ 10518 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3607DDE5: 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; } 10519 ecx = edx; /* 0x3607DDE7: mov ecx, edx */ 10520 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10521 ecx = ecx & 3; /* 0x3607DDE9: and ecx, 3 */ 10522 _cf = 0; 10523 _flag_k = FK_TEST; 10524 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3607DDEC: 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; } 10525 eax = MEM32(ebp + (-0x20)); /* 0x3607DDEE: mov eax, dword ptr [ebp - 0x20] */ 10526 MEM32(ebp + (-0x1C)) = ebx; /* 0x3607DDF1: mov dword ptr [ebp - 0x1c], ebx */ 10527 MEM8(ebx + eax) = (uint8_t)(0); /* 0x3607DDF4: mov byte ptr [ebx + eax], 0 */ 10528 L_3607DDF8: 10529 esi = MEM32(ebp + (-0x14)); /* 0x3607DDF8: mov esi, dword ptr [ebp - 0x14] */ 10530 ecx = ebp + (-0x24); /* 0x3607DDFB: lea ecx, [ebp - 0x24] */ 10531 PUSH32(esp, ecx); /* 0x3607DDFE: push ecx */ 10532 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10533 edi = 0; /* 0x3607DDFF: xor edi, edi */ 10534 _cf = 0; 10535 _flag_k = FK_TEST; 10536 PUSH32(esp, 3); /* 0x3607DE01: push 3 */ 10537 ecx = esi; /* 0x3607DE03: mov ecx, esi */ 10538 MEM32(ebp + (-0x4)) = edi; /* 0x3607DE05: mov dword ptr [ebp - 4], edi */ 10539 RECOMP_ICALL(0x36070F40u); /* 0x3607DE08: call 0x36070f40 */ /* not lifted */ 10540 RECOMP_FLAGS_IN(); 10541 eax = MEM32(ebp + (-0x20)); /* 0x3607DE0D: mov eax, dword ptr [ebp - 0x20] */ 10542 /* cmp eax, edi */ /* 0x3607DE10: cmp eax, edi */ 10543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 10544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10545 _flag_k = FK_CMP; 10546 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607DE12: mov dword ptr [ebp - 4], 0xffffffff */ 10547 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607DE37; /* 0x3607DE19: je 0x3607de37 */ 10548 L_3607DE1B: 10549 ecx = eax + (-0x1); /* 0x3607DE1B: lea ecx, [eax - 1] */ 10550 SET_LO8(eax, MEM8(ecx)); /* 0x3607DE1E: mov al, byte ptr [ecx] */ 10551 /* test LO8(eax), LO8(eax) */ /* 0x3607DE20: test al, al */ 10552 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10553 _cf = 0; 10554 _flag_k = FK_NARROW(FK_TEST, 24); 10555 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DE2E; /* 0x3607DE22: je 0x3607de2e */ 10556 L_3607DE24: 10557 /* cmp LO8(eax), 0xFFu */ /* 0x3607DE24: cmp al, 0xff */ 10558 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10560 _flag_k = FK_NARROW(FK_CMP, 24); 10561 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607DE2E; /* 0x3607DE26: je 0x3607de2e */ 10562 L_3607DE28: 10563 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10564 SET_LO8(eax, LO8(eax) - 1); /* 0x3607DE28: dec al */ 10565 _flag_k = FK_NARROW(FK_DEC, 24); 10566 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3607DE2A: mov byte ptr [ecx], al */ 10567 goto L_3607DE37; /* 0x3607DE2C: jmp 0x3607de37 */ 10568 L_3607DE2E: 10569 PUSH32(esp, ecx); /* 0x3607DE2E: push ecx */ 10570 RECOMP_ICALL(0x3615FCC4u); /* 0x3607DE2F: call 0x3615fcc4 */ /* not lifted */ 10571 RECOMP_FLAGS_IN(); 10572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10574 esp = esp + 4; /* 0x3607DE34: add esp, 4 */ 10575 _flag_k = FK_ADD; 10576 L_3607DE37: 10577 ecx = MEM32(esi + 0x150); /* 0x3607DE37: mov ecx, dword ptr [esi + 0x150] */ 10578 MEM32(ebp + (-0x20)) = edi; /* 0x3607DE3D: mov dword ptr [ebp - 0x20], edi */ 10579 MEM32(ebp + (-0x1C)) = edi; /* 0x3607DE40: mov dword ptr [ebp - 0x1c], edi */ 10580 MEM32(ebp + (-0x18)) = edi; /* 0x3607DE43: mov dword ptr [ebp - 0x18], edi */ 10581 RECOMP_ICALL(0x3605CE10u); /* 0x3607DE46: call 0x3605ce10 */ /* not lifted */ 10582 RECOMP_FLAGS_IN(); 10583 L_3607DE4B: 10584 ecx = MEM32(ebp + (-0xC)); /* 0x3607DE4B: mov ecx, dword ptr [ebp - 0xc] */ 10585 edi = POP32_VAL(esp); /* 0x3607DE4E: pop edi */ 10586 esi = POP32_VAL(esp); /* 0x3607DE4F: pop esi */ 10587 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10588 eax = 0; /* 0x3607DE50: xor eax, eax */ 10589 _cf = 0; 10590 _flag_k = FK_TEST; 10591 ebx = POP32_VAL(esp); /* 0x3607DE52: pop ebx */ 10592 MEM32(FS_BASE + (0)) = ecx; /* 0x3607DE53: mov dword ptr fs:[0], ecx */ 10593 esp = ebp; /* 0x3607DE5A: mov esp, ebp */ 10594 ebp = POP32_VAL(esp); /* 0x3607DE5C: pop ebp */ 10595 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DE5D: ret */ 10596 RECOMP_REGS_OUT(); 10597 } 10598 10599 void sub_3607DE60(void) { 10600 int _fpu_cmp = 0; 10601 uint32_t _cf = 0; 10602 int _df = 1; 10603 uint32_t _flag_k = FK_NONE; 10604 uint32_t _flag_a = 0, _flag_b = 0; 10605 uint32_t _itail_tgt = 0; 10606 RECOMP_REGS_LOCALS 10607 RECOMP_ENTER(0x3607DE60u); 10608 10609 L_3607DE60: 10610 PUSH32(esp, esi); /* 0x3607DE60: push esi */ 10611 esi = ecx; /* 0x3607DE61: mov esi, ecx */ 10612 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607DE63: call dword ptr [0x3616ffd0] */ 10613 RECOMP_FLAGS_IN(); 10614 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10615 eax = 0; /* 0x3607DE69: xor eax, eax */ 10616 _cf = 0; 10617 _flag_k = FK_TEST; 10618 MEM32(esi + 0x20) = eax; /* 0x3607DE6B: mov dword ptr [esi + 0x20], eax */ 10619 MEM32(esi + 0x24) = eax; /* 0x3607DE6E: mov dword ptr [esi + 0x24], eax */ 10620 MEM32(esi + 0x28) = eax; /* 0x3607DE71: mov dword ptr [esi + 0x28], eax */ 10621 MEM32(esi + 0x2C) = eax; /* 0x3607DE74: mov dword ptr [esi + 0x2c], eax */ 10622 MEM32(esi + 0x30) = eax; /* 0x3607DE77: mov dword ptr [esi + 0x30], eax */ 10623 MEM32(esi) = 0x361716B4u; /* 0x3607DE7A: mov dword ptr [esi], 0x361716b4 */ 10624 eax = esi; /* 0x3607DE80: mov eax, esi */ 10625 esi = POP32_VAL(esp); /* 0x3607DE82: pop esi */ 10626 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DE83: ret */ 10627 RECOMP_REGS_OUT(); 10628 } 10629 10630 void sub_3607DE90(void) { 10631 int _fpu_cmp = 0; 10632 uint32_t _cf = 0; 10633 int _df = 1; 10634 uint32_t _flag_k = FK_NONE; 10635 uint32_t _flag_a = 0, _flag_b = 0; 10636 uint32_t _itail_tgt = 0; 10637 RECOMP_REGS_LOCALS 10638 RECOMP_ENTER(0x3607DE90u); 10639 10640 L_3607DE90: 10641 PUSH32(esp, ebp); /* 0x3607DE90: push ebp */ 10642 ebp = esp; /* 0x3607DE91: mov ebp, esp */ 10643 PUSH32(esp, esi); /* 0x3607DE93: push esi */ 10644 esi = ecx; /* 0x3607DE94: mov esi, ecx */ 10645 RECOMP_ICALL(0x3607DEC0u); /* 0x3607DE96: call 0x3607dec0 */ /* not lifted */ 10646 RECOMP_FLAGS_IN(); 10647 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607DE9B: test byte ptr [ebp + 8], 1 */ 10648 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10649 _cf = 0; 10650 _flag_k = FK_NARROW(FK_TEST, 24); 10651 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DEAA; /* 0x3607DE9F: je 0x3607deaa */ 10652 L_3607DEA1: 10653 PUSH32(esp, esi); /* 0x3607DEA1: push esi */ 10654 RECOMP_ICALL(0x3615FCC4u); /* 0x3607DEA2: call 0x3615fcc4 */ /* not lifted */ 10655 RECOMP_FLAGS_IN(); 10656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10658 esp = esp + 4; /* 0x3607DEA7: add esp, 4 */ 10659 _flag_k = FK_ADD; 10660 L_3607DEAA: 10661 eax = esi; /* 0x3607DEAA: mov eax, esi */ 10662 esi = POP32_VAL(esp); /* 0x3607DEAC: pop esi */ 10663 ebp = POP32_VAL(esp); /* 0x3607DEAD: pop ebp */ 10664 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607DEAE: ret 4 */ 10665 RECOMP_REGS_OUT(); 10666 } 10667 10668 void sub_3607DEC0(void) { 10669 int _fpu_cmp = 0; 10670 uint32_t _cf = 0; 10671 int _df = 1; 10672 uint32_t _flag_k = FK_NONE; 10673 uint32_t _flag_a = 0, _flag_b = 0; 10674 uint32_t _itail_tgt = 0; 10675 RECOMP_REGS_LOCALS 10676 RECOMP_ENTER(0x3607DEC0u); 10677 10678 L_3607DEC0: 10679 MEM32(ecx) = 0x361716B4u; /* 0x3607DEC0: mov dword ptr [ecx], 0x361716b4 */ 10680 L_3607DEC6: 10681 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 10682 { RECOMP_REGS_OUT(); return; } /* end of function */ 10683 _ljump: 10684 switch (_itail_tgt) { 10685 case 0x3607DEC0u: goto L_3607DEC0; 10686 case 0x3607DEC6u: goto L_3607DEC6; 10687 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 10688 } 10689 RECOMP_REGS_OUT(); 10690 }