client/game/kkr.dll/lifted-0037.c (454518B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include "kkr.dll/weapon_health.h" 4 #include <math.h> 5 #include <stdio.h> 6 #include <stdlib.h> 7 #include <string.h> 8 9 void sub_3607DED0(void) { 10 int _fpu_cmp = 0; 11 uint32_t _cf = 0; 12 int _df = 1; 13 uint32_t _flag_k = FK_NONE; 14 uint32_t _flag_a = 0, _flag_b = 0; 15 uint32_t _itail_tgt = 0; 16 RECOMP_REGS_LOCALS 17 RECOMP_ENTER(0x3607DED0u); 18 19 L_3607DED0: 20 PUSH32(esp, ebx); /* 0x3607DED0: push ebx */ 21 ebx = MEM32(0x3616FF70); /* 0x3607DED1: mov ebx, dword ptr [0x3616ff70] */ 22 PUSH32(esp, esi); /* 0x3607DED7: push esi */ 23 PUSH32(esp, edi); /* 0x3607DED8: push edi */ 24 PUSH32(esp, 0); /* 0x3607DED9: push 0 */ 25 PUSH32(esp, 0x361B2CD8u); /* 0x3607DEDB: push 0x361b2cd8 */ 26 esi = ecx; /* 0x3607DEE0: mov esi, ecx */ 27 PUSH32(esp, 0x361B2CC0u); /* 0x3607DEE2: push 0x361b2cc0 */ 28 eax = esi + 0x4; /* 0x3607DEE7: lea eax, [esi + 4] */ 29 PUSH32(esp, 0); /* 0x3607DEEA: push 0 */ 30 PUSH32(esp, eax); /* 0x3607DEEC: push eax */ 31 RECOMP_ICALL(ebx); /* 0x3607DEED: call ebx */ 32 RECOMP_FLAGS_IN(); 33 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 34 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 35 esp = esp + 4; /* 0x3607DEEF: add esp, 4 */ 36 _flag_k = FK_ADD; 37 PUSH32(esp, eax); /* 0x3607DEF2: push eax */ 38 RECOMP_ICALL(0x3615FD86u); /* 0x3607DEF3: call 0x3615fd86 */ /* not lifted */ 39 RECOMP_FLAGS_IN(); 40 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 41 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 42 esp = esp + 0x14u; /* 0x3607DEF8: add esp, 0x14 */ 43 _flag_k = FK_ADD; 44 PUSH32(esp, 0); /* 0x3607DEFB: push 0 */ 45 PUSH32(esp, 0x361B2CF8u); /* 0x3607DEFD: push 0x361b2cf8 */ 46 PUSH32(esp, 0x361B2CC0u); /* 0x3607DF02: push 0x361b2cc0 */ 47 ecx = esi + 0x20; /* 0x3607DF07: lea ecx, [esi + 0x20] */ 48 PUSH32(esp, 0); /* 0x3607DF0A: push 0 */ 49 PUSH32(esp, ecx); /* 0x3607DF0C: push ecx */ 50 edi = eax; /* 0x3607DF0D: mov edi, eax */ 51 RECOMP_ICALL(ebx); /* 0x3607DF0F: call ebx */ 52 RECOMP_FLAGS_IN(); 53 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 54 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 55 esp = esp + 4; /* 0x3607DF11: add esp, 4 */ 56 _flag_k = FK_ADD; 57 PUSH32(esp, eax); /* 0x3607DF14: push eax */ 58 RECOMP_ICALL(0x3615FD86u); /* 0x3607DF15: call 0x3615fd86 */ /* not lifted */ 59 RECOMP_FLAGS_IN(); 60 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 61 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 62 esp = esp + 0x14u; /* 0x3607DF1A: add esp, 0x14 */ 63 _flag_k = FK_ADD; 64 /* test edi, edi */ /* 0x3607DF1D: test edi, edi */ 65 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 66 _cf = 0; 67 _flag_k = FK_TEST; 68 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DF36; /* 0x3607DF1F: je 0x3607df36 */ 69 L_3607DF21: 70 /* test eax, eax */ /* 0x3607DF21: test eax, eax */ 71 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 72 _cf = 0; 73 _flag_k = FK_TEST; 74 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DF36; /* 0x3607DF23: je 0x3607df36 */ 75 L_3607DF25: 76 edx = MEM32(eax); /* 0x3607DF25: mov edx, dword ptr [eax] */ 77 PUSH32(esp, 0); /* 0x3607DF27: push 0 */ 78 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 79 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 80 esi = esi + 0x28u; /* 0x3607DF29: add esi, 0x28 */ 81 _flag_k = FK_ADD; 82 PUSH32(esp, esi); /* 0x3607DF2C: push esi */ 83 PUSH32(esp, edi); /* 0x3607DF2D: push edi */ 84 ecx = eax; /* 0x3607DF2E: mov ecx, eax */ 85 RECOMP_ICALL(MEM32(edx + 0xD0)); /* 0x3607DF30: call dword ptr [edx + 0xd0] */ 86 RECOMP_FLAGS_IN(); 87 L_3607DF36: 88 edi = POP32_VAL(esp); /* 0x3607DF36: pop edi */ 89 esi = POP32_VAL(esp); /* 0x3607DF37: pop esi */ 90 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 91 eax = 0; /* 0x3607DF38: xor eax, eax */ 92 _cf = 0; 93 _flag_k = FK_TEST; 94 ebx = POP32_VAL(esp); /* 0x3607DF3A: pop ebx */ 95 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DF3B: ret */ 96 RECOMP_REGS_OUT(); 97 } 98 99 void sub_3607DF40(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(0x3607DF40u); 108 109 L_3607DF40: 110 PUSH32(esp, esi); /* 0x3607DF40: push esi */ 111 esi = ecx; /* 0x3607DF41: mov esi, ecx */ 112 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607DF43: call dword ptr [0x3616ffd0] */ 113 RECOMP_FLAGS_IN(); 114 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 115 eax = 0; /* 0x3607DF49: xor eax, eax */ 116 _cf = 0; 117 _flag_k = FK_TEST; 118 MEM32(esi + 0x20) = eax; /* 0x3607DF4B: mov dword ptr [esi + 0x20], eax */ 119 MEM32(esi + 0x24) = eax; /* 0x3607DF4E: mov dword ptr [esi + 0x24], eax */ 120 MEM32(esi + 0x28) = eax; /* 0x3607DF51: mov dword ptr [esi + 0x28], eax */ 121 MEM32(esi + 0x2C) = eax; /* 0x3607DF54: mov dword ptr [esi + 0x2c], eax */ 122 MEM32(esi + 0x30) = eax; /* 0x3607DF57: mov dword ptr [esi + 0x30], eax */ 123 MEM32(esi) = 0x361716D8u; /* 0x3607DF5A: mov dword ptr [esi], 0x361716d8 */ 124 eax = esi; /* 0x3607DF60: mov eax, esi */ 125 esi = POP32_VAL(esp); /* 0x3607DF62: pop esi */ 126 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607DF63: ret */ 127 RECOMP_REGS_OUT(); 128 } 129 130 void sub_3607DF70(void) { 131 int _fpu_cmp = 0; 132 uint32_t _cf = 0; 133 int _df = 1; 134 uint32_t _flag_k = FK_NONE; 135 uint32_t _flag_a = 0, _flag_b = 0; 136 uint32_t _itail_tgt = 0; 137 RECOMP_REGS_LOCALS 138 RECOMP_ENTER(0x3607DF70u); 139 140 L_3607DF70: 141 PUSH32(esp, ebp); /* 0x3607DF70: push ebp */ 142 ebp = esp; /* 0x3607DF71: mov ebp, esp */ 143 PUSH32(esp, esi); /* 0x3607DF73: push esi */ 144 esi = ecx; /* 0x3607DF74: mov esi, ecx */ 145 RECOMP_ICALL(0x3607E0A0u); /* 0x3607DF76: call 0x3607e0a0 */ /* not lifted */ 146 RECOMP_FLAGS_IN(); 147 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607DF7B: test byte ptr [ebp + 8], 1 */ 148 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 149 _cf = 0; 150 _flag_k = FK_NARROW(FK_TEST, 24); 151 if (TEST_Z(_flag_a, _flag_b)) goto L_3607DF8A; /* 0x3607DF7F: je 0x3607df8a */ 152 L_3607DF81: 153 PUSH32(esp, esi); /* 0x3607DF81: push esi */ 154 RECOMP_ICALL(0x3615FCC4u); /* 0x3607DF82: call 0x3615fcc4 */ /* not lifted */ 155 RECOMP_FLAGS_IN(); 156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 158 esp = esp + 4; /* 0x3607DF87: add esp, 4 */ 159 _flag_k = FK_ADD; 160 L_3607DF8A: 161 eax = esi; /* 0x3607DF8A: mov eax, esi */ 162 esi = POP32_VAL(esp); /* 0x3607DF8C: pop esi */ 163 ebp = POP32_VAL(esp); /* 0x3607DF8D: pop ebp */ 164 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607DF8E: ret 4 */ 165 RECOMP_REGS_OUT(); 166 } 167 168 void sub_3607DFA0(void) { 169 int _fpu_cmp = 0; 170 uint32_t _cf = 0; 171 int _df = 1; 172 uint32_t _flag_k = FK_NONE; 173 uint32_t _flag_a = 0, _flag_b = 0; 174 uint32_t _itail_tgt = 0; 175 RECOMP_REGS_LOCALS 176 RECOMP_ENTER(0x3607DFA0u); 177 178 L_3607DFA0: 179 PUSH32(esp, ebp); /* 0x3607DFA0: push ebp */ 180 ebp = esp; /* 0x3607DFA1: mov ebp, esp */ 181 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607DFA3: push -1 */ 182 PUSH32(esp, 0x361654C9u); /* 0x3607DFA5: push 0x361654c9 */ 183 eax = MEM32(FS_BASE + (0)); /* 0x3607DFAA: mov eax, dword ptr fs:[0] */ 184 PUSH32(esp, eax); /* 0x3607DFB0: push eax */ 185 MEM32(FS_BASE + (0)) = esp; /* 0x3607DFB1: mov dword ptr fs:[0], esp */ 186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 187 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 188 esp = esp - 0x14u; /* 0x3607DFB8: sub esp, 0x14 */ 189 _flag_k = FK_CMP; 190 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607DFBB: mov al, byte ptr [ebp + 0xb] */ 191 PUSH32(esp, ebx); /* 0x3607DFBE: push ebx */ 192 PUSH32(esp, esi); /* 0x3607DFBF: push esi */ 193 esi = ecx; /* 0x3607DFC0: mov esi, ecx */ 194 PUSH32(esp, edi); /* 0x3607DFC2: push edi */ 195 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 196 ecx = ecx | 0xFFFFFFFFu; /* 0x3607DFC3: or ecx, 0xffffffff */ 197 _cf = 0; 198 _flag_k = FK_TEST; 199 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3607DFC6: mov byte ptr [ebp - 0x20], al */ 200 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 201 eax = 0; /* 0x3607DFC9: xor eax, eax */ 202 _cf = 0; 203 _flag_k = FK_TEST; 204 edi = 0x361B42FCu; /* 0x3607DFCB: mov edi, 0x361b42fc */ 205 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; } /* 0x3607DFD0: repne scasb al, byte ptr es:[edi] */ 206 ecx = ~ecx; /* 0x3607DFD2: not ecx */ 207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 208 ecx = ecx - 1; /* 0x3607DFD4: dec ecx */ 209 _flag_k = FK_DEC; 210 ebx = ecx; /* 0x3607DFD5: mov ebx, ecx */ 211 PUSH32(esp, 1); /* 0x3607DFD7: push 1 */ 212 PUSH32(esp, ebx); /* 0x3607DFD9: push ebx */ 213 ecx = ebp + (-0x20); /* 0x3607DFDA: lea ecx, [ebp - 0x20] */ 214 MEM32(ebp + (-0x10)) = esi; /* 0x3607DFDD: mov dword ptr [ebp - 0x10], esi */ 215 MEM32(ebp + (-0x1C)) = eax; /* 0x3607DFE0: mov dword ptr [ebp - 0x1c], eax */ 216 MEM32(ebp + (-0x18)) = eax; /* 0x3607DFE3: mov dword ptr [ebp - 0x18], eax */ 217 MEM32(ebp + (-0x14)) = eax; /* 0x3607DFE6: mov dword ptr [ebp - 0x14], eax */ 218 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3607DFE9: call dword ptr [0x3616f00c] */ 219 RECOMP_FLAGS_IN(); 220 /* test LO8(eax), LO8(eax) */ /* 0x3607DFEF: test al, al */ 221 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 222 _cf = 0; 223 _flag_k = FK_NARROW(FK_TEST, 24); 224 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E018; /* 0x3607DFF1: je 0x3607e018 */ 225 L_3607DFF3: 226 edi = MEM32(ebp + (-0x1C)); /* 0x3607DFF3: mov edi, dword ptr [ebp - 0x1c] */ 227 ecx = ebx; /* 0x3607DFF6: mov ecx, ebx */ 228 edx = ecx; /* 0x3607DFF8: mov edx, ecx */ 229 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607DFFA: shr ecx, 2 */ 230 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 231 ecx = ecx >> 2u; /* 0x3607DFFA: shr ecx, 2 */ 232 esi = 0x361B42FCu; /* 0x3607DFFD: mov esi, 0x361b42fc */ 233 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3607E002: 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; } 234 ecx = edx; /* 0x3607E004: mov ecx, edx */ 235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 236 ecx = ecx & 3; /* 0x3607E006: and ecx, 3 */ 237 _cf = 0; 238 _flag_k = FK_TEST; 239 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3607E009: 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; } 240 eax = MEM32(ebp + (-0x1C)); /* 0x3607E00B: mov eax, dword ptr [ebp - 0x1c] */ 241 esi = MEM32(ebp + (-0x10)); /* 0x3607E00E: mov esi, dword ptr [ebp - 0x10] */ 242 MEM32(ebp + (-0x18)) = ebx; /* 0x3607E011: mov dword ptr [ebp - 0x18], ebx */ 243 MEM8(ebx + eax) = (uint8_t)(0); /* 0x3607E014: mov byte ptr [ebx + eax], 0 */ 244 L_3607E018: 245 edx = MEM32(ebp + 0x8); /* 0x3607E018: mov edx, dword ptr [ebp + 8] */ 246 ecx = ebp + (-0x20); /* 0x3607E01B: lea ecx, [ebp - 0x20] */ 247 PUSH32(esp, ecx); /* 0x3607E01E: push ecx */ 248 PUSH32(esp, edx); /* 0x3607E01F: push edx */ 249 ecx = esi; /* 0x3607E020: mov ecx, esi */ 250 MEM32(ebp + (-0x4)) = 0; /* 0x3607E022: mov dword ptr [ebp - 4], 0 */ 251 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x3607E029: call dword ptr [0x3616fc0c] */ 252 RECOMP_FLAGS_IN(); 253 eax = MEM32(ebp + (-0x1C)); /* 0x3607E02F: mov eax, dword ptr [ebp - 0x1c] */ 254 /* test eax, eax */ /* 0x3607E032: test eax, eax */ 255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 256 _cf = 0; 257 _flag_k = FK_TEST; 258 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E052; /* 0x3607E034: je 0x3607e052 */ 259 L_3607E036: 260 ecx = eax + (-0x1); /* 0x3607E036: lea ecx, [eax - 1] */ 261 SET_LO8(eax, MEM8(ecx)); /* 0x3607E039: mov al, byte ptr [ecx] */ 262 /* test LO8(eax), LO8(eax) */ /* 0x3607E03B: test al, al */ 263 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 264 _cf = 0; 265 _flag_k = FK_NARROW(FK_TEST, 24); 266 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E049; /* 0x3607E03D: je 0x3607e049 */ 267 L_3607E03F: 268 /* cmp LO8(eax), 0xFFu */ /* 0x3607E03F: cmp al, 0xff */ 269 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 271 _flag_k = FK_NARROW(FK_CMP, 24); 272 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E049; /* 0x3607E041: je 0x3607e049 */ 273 L_3607E043: 274 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 275 SET_LO8(eax, LO8(eax) - 1); /* 0x3607E043: dec al */ 276 _flag_k = FK_NARROW(FK_DEC, 24); 277 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3607E045: mov byte ptr [ecx], al */ 278 goto L_3607E052; /* 0x3607E047: jmp 0x3607e052 */ 279 L_3607E049: 280 PUSH32(esp, ecx); /* 0x3607E049: push ecx */ 281 RECOMP_ICALL(0x3615FCC4u); /* 0x3607E04A: call 0x3615fcc4 */ /* not lifted */ 282 RECOMP_FLAGS_IN(); 283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 285 esp = esp + 4; /* 0x3607E04F: add esp, 4 */ 286 _flag_k = FK_ADD; 287 L_3607E052: 288 ecx = MEM32(ebp + 0xC); /* 0x3607E052: mov ecx, dword ptr [ebp + 0xc] */ 289 eax = esi + 0x20; /* 0x3607E055: lea eax, [esi + 0x20] */ 290 /* cmp eax, ecx */ /* 0x3607E058: cmp eax, ecx */ 291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 293 _flag_k = FK_CMP; 294 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E066; /* 0x3607E05A: je 0x3607e066 */ 295 L_3607E05C: 296 edx = MEM32(ecx); /* 0x3607E05C: mov edx, dword ptr [ecx] */ 297 MEM32(eax) = edx; /* 0x3607E05E: mov dword ptr [eax], edx */ 298 ecx = MEM32(ecx + 0x4); /* 0x3607E060: mov ecx, dword ptr [ecx + 4] */ 299 MEM32(eax + 0x4) = ecx; /* 0x3607E063: mov dword ptr [eax + 4], ecx */ 300 L_3607E066: 301 eax = MEM32(ebp + 0x10); /* 0x3607E066: mov eax, dword ptr [ebp + 0x10] */ 302 ecx = MEM32(eax); /* 0x3607E069: mov ecx, dword ptr [eax] */ 303 edx = esi + 0x28; /* 0x3607E06B: lea edx, [esi + 0x28] */ 304 MEM32(edx) = ecx; /* 0x3607E06E: mov dword ptr [edx], ecx */ 305 ecx = MEM32(eax + 0x4); /* 0x3607E070: mov ecx, dword ptr [eax + 4] */ 306 MEM32(edx + 0x4) = ecx; /* 0x3607E073: mov dword ptr [edx + 4], ecx */ 307 eax = MEM32(eax + 0x8); /* 0x3607E076: mov eax, dword ptr [eax + 8] */ 308 ecx = MEM32(ebp + (-0xC)); /* 0x3607E079: mov ecx, dword ptr [ebp - 0xc] */ 309 MEM32(edx + 0x8) = eax; /* 0x3607E07C: mov dword ptr [edx + 8], eax */ 310 edi = POP32_VAL(esp); /* 0x3607E07F: pop edi */ 311 MEM32(esi) = 0x361716D8u; /* 0x3607E080: mov dword ptr [esi], 0x361716d8 */ 312 MEM8(esi + 0xC) = (uint8_t)(0); /* 0x3607E086: mov byte ptr [esi + 0xc], 0 */ 313 eax = esi; /* 0x3607E08A: mov eax, esi */ 314 esi = POP32_VAL(esp); /* 0x3607E08C: pop esi */ 315 ebx = POP32_VAL(esp); /* 0x3607E08D: pop ebx */ 316 MEM32(FS_BASE + (0)) = ecx; /* 0x3607E08E: mov dword ptr fs:[0], ecx */ 317 esp = ebp; /* 0x3607E095: mov esp, ebp */ 318 ebp = POP32_VAL(esp); /* 0x3607E097: pop ebp */ 319 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607E098: ret 0xc */ 320 RECOMP_REGS_OUT(); 321 } 322 323 void sub_3607E0A0(void) { 324 int _fpu_cmp = 0; 325 uint32_t _cf = 0; 326 int _df = 1; 327 uint32_t _flag_k = FK_NONE; 328 uint32_t _flag_a = 0, _flag_b = 0; 329 uint32_t _itail_tgt = 0; 330 RECOMP_REGS_LOCALS 331 RECOMP_ENTER(0x3607E0A0u); 332 333 L_3607E0A0: 334 MEM32(ecx) = 0x361716D8u; /* 0x3607E0A0: mov dword ptr [ecx], 0x361716d8 */ 335 L_3607E0A6: 336 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 337 { RECOMP_REGS_OUT(); return; } /* end of function */ 338 _ljump: 339 switch (_itail_tgt) { 340 case 0x3607E0A0u: goto L_3607E0A0; 341 case 0x3607E0A6u: goto L_3607E0A6; 342 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 343 } 344 RECOMP_REGS_OUT(); 345 } 346 347 void sub_3607E0B0(void) { 348 int _fpu_cmp = 0; 349 uint32_t _cf = 0; 350 int _df = 1; 351 uint32_t _flag_k = FK_NONE; 352 uint32_t _flag_a = 0, _flag_b = 0; 353 uint32_t _itail_tgt = 0; 354 RECOMP_REGS_LOCALS 355 RECOMP_ENTER(0x3607E0B0u); 356 357 L_3607E0B0: 358 PUSH32(esp, ebp); /* 0x3607E0B0: push ebp */ 359 ebp = esp; /* 0x3607E0B1: mov ebp, esp */ 360 PUSH32(esp, ebx); /* 0x3607E0B3: push ebx */ 361 PUSH32(esp, esi); /* 0x3607E0B4: push esi */ 362 esi = ecx; /* 0x3607E0B5: mov esi, ecx */ 363 PUSH32(esp, edi); /* 0x3607E0B7: push edi */ 364 edi = MEM32(ebp + 0x8); /* 0x3607E0B8: mov edi, dword ptr [ebp + 8] */ 365 eax = esi + 0x20; /* 0x3607E0BB: lea eax, [esi + 0x20] */ 366 PUSH32(esp, eax); /* 0x3607E0BE: push eax */ 367 PUSH32(esp, edi); /* 0x3607E0BF: push edi */ 368 RECOMP_ICALL(0x3615B870u); /* 0x3607E0C0: call 0x3615b870 */ /* not lifted */ 369 RECOMP_FLAGS_IN(); 370 ebx = MEM32(0x3616FAD0); /* 0x3607E0C5: mov ebx, dword ptr [0x3616fad0] */ 371 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 372 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 373 esp = esp + 8; /* 0x3607E0CB: add esp, 8 */ 374 _flag_k = FK_ADD; 375 ecx = esi + 0x28; /* 0x3607E0CE: lea ecx, [esi + 0x28] */ 376 PUSH32(esp, ecx); /* 0x3607E0D1: push ecx */ 377 ecx = edi; /* 0x3607E0D2: mov ecx, edi */ 378 RECOMP_ICALL(ebx); /* 0x3607E0D4: call ebx */ 379 RECOMP_FLAGS_IN(); 380 edx = esi + 0x2C; /* 0x3607E0D6: lea edx, [esi + 0x2c] */ 381 PUSH32(esp, edx); /* 0x3607E0D9: push edx */ 382 ecx = edi; /* 0x3607E0DA: mov ecx, edi */ 383 RECOMP_ICALL(ebx); /* 0x3607E0DC: call ebx */ 384 RECOMP_FLAGS_IN(); 385 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x30u); 386 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 387 esi = esi + 0x30u; /* 0x3607E0DE: add esi, 0x30 */ 388 _flag_k = FK_ADD; 389 PUSH32(esp, esi); /* 0x3607E0E1: push esi */ 390 ecx = edi; /* 0x3607E0E2: mov ecx, edi */ 391 RECOMP_ICALL(ebx); /* 0x3607E0E4: call ebx */ 392 RECOMP_FLAGS_IN(); 393 ecx = edi; /* 0x3607E0E6: mov ecx, edi */ 394 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607E0E8: call dword ptr [0x3616fadc] */ 395 RECOMP_FLAGS_IN(); 396 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 397 _cf = (eax) != 0; 398 eax = (uint32_t)(-(int32_t)eax); /* 0x3607E0EE: neg eax */ 399 _flag_k = FK_CMP; 400 edi = POP32_VAL(esp); /* 0x3607E0F0: pop edi */ 401 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607E0F1: sbb eax, eax */ 402 eax = _sc ? 0xFFFFFFFFu : 0; 403 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 404 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 405 esi = POP32_VAL(esp); /* 0x3607E0F3: pop esi */ 406 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 407 eax = eax + 1; /* 0x3607E0F4: inc eax */ 408 _flag_k = FK_INC; 409 ebx = POP32_VAL(esp); /* 0x3607E0F5: pop ebx */ 410 ebp = POP32_VAL(esp); /* 0x3607E0F6: pop ebp */ 411 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E0F7: ret 4 */ 412 RECOMP_REGS_OUT(); 413 } 414 415 void sub_3607E100(void) { 416 int _fpu_cmp = 0; 417 uint32_t _cf = 0; 418 int _df = 1; 419 uint32_t _flag_k = FK_NONE; 420 uint32_t _flag_a = 0, _flag_b = 0; 421 uint32_t _itail_tgt = 0; 422 RECOMP_REGS_LOCALS 423 RECOMP_ENTER(0x3607E100u); 424 425 L_3607E100: 426 PUSH32(esp, ebp); /* 0x3607E100: push ebp */ 427 ebp = esp; /* 0x3607E101: mov ebp, esp */ 428 PUSH32(esp, ebx); /* 0x3607E103: push ebx */ 429 PUSH32(esp, esi); /* 0x3607E104: push esi */ 430 esi = ecx; /* 0x3607E105: mov esi, ecx */ 431 PUSH32(esp, edi); /* 0x3607E107: push edi */ 432 edi = MEM32(ebp + 0x8); /* 0x3607E108: mov edi, dword ptr [ebp + 8] */ 433 eax = esi + 0x20; /* 0x3607E10B: lea eax, [esi + 0x20] */ 434 PUSH32(esp, eax); /* 0x3607E10E: push eax */ 435 PUSH32(esp, edi); /* 0x3607E10F: push edi */ 436 RECOMP_ICALL(0x3615B840u); /* 0x3607E110: call 0x3615b840 */ /* not lifted */ 437 RECOMP_FLAGS_IN(); 438 ecx = MEM32(esi + 0x28); /* 0x3607E115: mov ecx, dword ptr [esi + 0x28] */ 439 ebx = MEM32(0x3616FAD4); /* 0x3607E118: mov ebx, dword ptr [0x3616fad4] */ 440 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 441 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 442 esp = esp + 8; /* 0x3607E11E: add esp, 8 */ 443 _flag_k = FK_ADD; 444 PUSH32(esp, ecx); /* 0x3607E121: push ecx */ 445 ecx = edi; /* 0x3607E122: mov ecx, edi */ 446 RECOMP_ICALL(ebx); /* 0x3607E124: call ebx */ 447 RECOMP_FLAGS_IN(); 448 edx = MEM32(esi + 0x2C); /* 0x3607E126: mov edx, dword ptr [esi + 0x2c] */ 449 PUSH32(esp, edx); /* 0x3607E129: push edx */ 450 ecx = edi; /* 0x3607E12A: mov ecx, edi */ 451 RECOMP_ICALL(ebx); /* 0x3607E12C: call ebx */ 452 RECOMP_FLAGS_IN(); 453 eax = MEM32(esi + 0x30); /* 0x3607E12E: mov eax, dword ptr [esi + 0x30] */ 454 PUSH32(esp, eax); /* 0x3607E131: push eax */ 455 ecx = edi; /* 0x3607E132: mov ecx, edi */ 456 RECOMP_ICALL(ebx); /* 0x3607E134: call ebx */ 457 RECOMP_FLAGS_IN(); 458 edi = POP32_VAL(esp); /* 0x3607E136: pop edi */ 459 esi = POP32_VAL(esp); /* 0x3607E137: pop esi */ 460 ebx = POP32_VAL(esp); /* 0x3607E138: pop ebx */ 461 ebp = POP32_VAL(esp); /* 0x3607E139: pop ebp */ 462 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E13A: ret 4 */ 463 RECOMP_REGS_OUT(); 464 } 465 466 void sub_3607E140(void) { 467 int _fpu_cmp = 0; 468 uint32_t _cf = 0; 469 int _df = 1; 470 uint32_t _flag_k = FK_NONE; 471 uint32_t _flag_a = 0, _flag_b = 0; 472 uint32_t _itail_tgt = 0; 473 RECOMP_REGS_LOCALS 474 RECOMP_ENTER(0x3607E140u); 475 476 L_3607E140: 477 PUSH32(esp, esi); /* 0x3607E140: push esi */ 478 esi = ecx; /* 0x3607E141: mov esi, ecx */ 479 eax = esi + 0x4; /* 0x3607E143: lea eax, [esi + 4] */ 480 PUSH32(esp, eax); /* 0x3607E146: push eax */ 481 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607E147: call dword ptr [0x3616ff70] */ 482 RECOMP_FLAGS_IN(); 483 PUSH32(esp, 0); /* 0x3607E14D: push 0 */ 484 PUSH32(esp, 0x361B2CD8u); /* 0x3607E14F: push 0x361b2cd8 */ 485 PUSH32(esp, 0x361B2CC0u); /* 0x3607E154: push 0x361b2cc0 */ 486 PUSH32(esp, 0); /* 0x3607E159: push 0 */ 487 PUSH32(esp, eax); /* 0x3607E15B: push eax */ 488 RECOMP_ICALL(0x3615FD86u); /* 0x3607E15C: call 0x3615fd86 */ /* not lifted */ 489 RECOMP_FLAGS_IN(); 490 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 492 esp = esp + 0x18u; /* 0x3607E161: add esp, 0x18 */ 493 _flag_k = FK_ADD; 494 /* test eax, eax */ /* 0x3607E164: test eax, eax */ 495 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 496 _cf = 0; 497 _flag_k = FK_TEST; 498 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E17B; /* 0x3607E166: je 0x3607e17b */ 499 L_3607E168: 500 ecx = esi + 0x28; /* 0x3607E168: lea ecx, [esi + 0x28] */ 501 PUSH32(esp, ecx); /* 0x3607E16B: push ecx */ 502 ecx = MEM32(eax + 0x150); /* 0x3607E16C: mov ecx, dword ptr [eax + 0x150] */ 503 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u); 504 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 505 esi = esi + 0x20u; /* 0x3607E172: add esi, 0x20 */ 506 _flag_k = FK_ADD; 507 PUSH32(esp, esi); /* 0x3607E175: push esi */ 508 RECOMP_ICALL(0x3605F4E0u); /* 0x3607E176: call 0x3605f4e0 */ /* not lifted */ 509 RECOMP_FLAGS_IN(); 510 L_3607E17B: 511 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 512 eax = 0; /* 0x3607E17B: xor eax, eax */ 513 _cf = 0; 514 _flag_k = FK_TEST; 515 esi = POP32_VAL(esp); /* 0x3607E17D: pop esi */ 516 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E17E: ret */ 517 RECOMP_REGS_OUT(); 518 } 519 520 void sub_3607E180(void) { 521 int _fpu_cmp = 0; 522 uint32_t _cf = 0; 523 int _df = 1; 524 uint32_t _flag_k = FK_NONE; 525 uint32_t _flag_a = 0, _flag_b = 0; 526 uint32_t _itail_tgt = 0; 527 RECOMP_REGS_LOCALS 528 RECOMP_ENTER(0x3607E180u); 529 530 L_3607E180: 531 PUSH32(esp, esi); /* 0x3607E180: push esi */ 532 esi = ecx; /* 0x3607E181: mov esi, ecx */ 533 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607E183: call dword ptr [0x3616ffd0] */ 534 RECOMP_FLAGS_IN(); 535 MEM32(esi) = 0x361716FCu; /* 0x3607E189: mov dword ptr [esi], 0x361716fc */ 536 eax = esi; /* 0x3607E18F: mov eax, esi */ 537 esi = POP32_VAL(esp); /* 0x3607E191: pop esi */ 538 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E192: ret */ 539 RECOMP_REGS_OUT(); 540 } 541 542 void sub_3607E1A0(void) { 543 int _fpu_cmp = 0; 544 uint32_t _cf = 0; 545 int _df = 1; 546 uint32_t _flag_k = FK_NONE; 547 uint32_t _flag_a = 0, _flag_b = 0; 548 uint32_t _itail_tgt = 0; 549 RECOMP_REGS_LOCALS 550 RECOMP_ENTER(0x3607E1A0u); 551 552 L_3607E1A0: 553 PUSH32(esp, ebp); /* 0x3607E1A0: push ebp */ 554 ebp = esp; /* 0x3607E1A1: mov ebp, esp */ 555 PUSH32(esp, esi); /* 0x3607E1A3: push esi */ 556 esi = ecx; /* 0x3607E1A4: mov esi, ecx */ 557 RECOMP_ICALL(0x3607E1D0u); /* 0x3607E1A6: call 0x3607e1d0 */ /* not lifted */ 558 RECOMP_FLAGS_IN(); 559 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607E1AB: test byte ptr [ebp + 8], 1 */ 560 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 561 _cf = 0; 562 _flag_k = FK_NARROW(FK_TEST, 24); 563 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E1BA; /* 0x3607E1AF: je 0x3607e1ba */ 564 L_3607E1B1: 565 PUSH32(esp, esi); /* 0x3607E1B1: push esi */ 566 RECOMP_ICALL(0x3615FCC4u); /* 0x3607E1B2: call 0x3615fcc4 */ /* not lifted */ 567 RECOMP_FLAGS_IN(); 568 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 569 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 570 esp = esp + 4; /* 0x3607E1B7: add esp, 4 */ 571 _flag_k = FK_ADD; 572 L_3607E1BA: 573 eax = esi; /* 0x3607E1BA: mov eax, esi */ 574 esi = POP32_VAL(esp); /* 0x3607E1BC: pop esi */ 575 ebp = POP32_VAL(esp); /* 0x3607E1BD: pop ebp */ 576 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E1BE: ret 4 */ 577 RECOMP_REGS_OUT(); 578 } 579 580 void sub_3607E1D0(void) { 581 int _fpu_cmp = 0; 582 uint32_t _cf = 0; 583 int _df = 1; 584 uint32_t _flag_k = FK_NONE; 585 uint32_t _flag_a = 0, _flag_b = 0; 586 uint32_t _itail_tgt = 0; 587 RECOMP_REGS_LOCALS 588 RECOMP_ENTER(0x3607E1D0u); 589 590 L_3607E1D0: 591 MEM32(ecx) = 0x361716FCu; /* 0x3607E1D0: mov dword ptr [ecx], 0x361716fc */ 592 L_3607E1D6: 593 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 594 { RECOMP_REGS_OUT(); return; } /* end of function */ 595 _ljump: 596 switch (_itail_tgt) { 597 case 0x3607E1D0u: goto L_3607E1D0; 598 case 0x3607E1D6u: goto L_3607E1D6; 599 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 600 } 601 RECOMP_REGS_OUT(); 602 } 603 604 void sub_3607E1E0(void) { 605 int _fpu_cmp = 0; 606 uint32_t _cf = 0; 607 int _df = 1; 608 uint32_t _flag_k = FK_NONE; 609 uint32_t _flag_a = 0, _flag_b = 0; 610 uint32_t _itail_tgt = 0; 611 RECOMP_REGS_LOCALS 612 RECOMP_ENTER(0x3607E1E0u); 613 614 L_3607E1E0: 615 PUSH32(esp, ebp); /* 0x3607E1E0: push ebp */ 616 ebp = esp; /* 0x3607E1E1: mov ebp, esp */ 617 PUSH32(esp, esi); /* 0x3607E1E3: push esi */ 618 esi = MEM32(ebp + 0x8); /* 0x3607E1E4: mov esi, dword ptr [ebp + 8] */ 619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 621 ecx = ecx + 0x20u; /* 0x3607E1E7: add ecx, 0x20 */ 622 _flag_k = FK_ADD; 623 PUSH32(esp, ecx); /* 0x3607E1EA: push ecx */ 624 ecx = esi; /* 0x3607E1EB: mov ecx, esi */ 625 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607E1ED: call dword ptr [0x3616fa8c] */ 626 RECOMP_FLAGS_IN(); 627 ecx = esi; /* 0x3607E1F3: mov ecx, esi */ 628 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607E1F5: call dword ptr [0x3616fadc] */ 629 RECOMP_FLAGS_IN(); 630 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 631 _cf = (eax) != 0; 632 eax = (uint32_t)(-(int32_t)eax); /* 0x3607E1FB: neg eax */ 633 _flag_k = FK_CMP; 634 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607E1FD: sbb eax, eax */ 635 eax = _sc ? 0xFFFFFFFFu : 0; 636 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 637 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 639 eax = eax + 1; /* 0x3607E1FF: inc eax */ 640 _flag_k = FK_INC; 641 esi = POP32_VAL(esp); /* 0x3607E200: pop esi */ 642 ebp = POP32_VAL(esp); /* 0x3607E201: pop ebp */ 643 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E202: ret 4 */ 644 RECOMP_REGS_OUT(); 645 } 646 647 void sub_3607E210(void) { 648 int _fpu_cmp = 0; 649 uint32_t _cf = 0; 650 int _df = 1; 651 uint32_t _flag_k = FK_NONE; 652 uint32_t _flag_a = 0, _flag_b = 0; 653 uint32_t _itail_tgt = 0; 654 RECOMP_REGS_LOCALS 655 RECOMP_ENTER(0x3607E210u); 656 657 L_3607E210: 658 eax = MEM32(ecx + 0x20); /* 0x3607E210: mov eax, dword ptr [ecx + 0x20] */ 659 PUSH32(esp, eax); /* 0x3607E213: push eax */ 660 RECOMP_ICALL(0x360418D0u); /* 0x3607E214: call 0x360418d0 */ /* not lifted */ 661 RECOMP_FLAGS_IN(); 662 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 663 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 664 esp = esp + 4; /* 0x3607E219: add esp, 4 */ 665 _flag_k = FK_ADD; 666 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 667 eax = 0; /* 0x3607E21C: xor eax, eax */ 668 _cf = 0; 669 _flag_k = FK_TEST; 670 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E21E: ret */ 671 RECOMP_REGS_OUT(); 672 } 673 674 void sub_3607E220(void) { 675 int _fpu_cmp = 0; 676 uint32_t _cf = 0; 677 int _df = 1; 678 uint32_t _flag_k = FK_NONE; 679 uint32_t _flag_a = 0, _flag_b = 0; 680 uint32_t _itail_tgt = 0; 681 RECOMP_REGS_LOCALS 682 RECOMP_ENTER(0x3607E220u); 683 684 L_3607E220: 685 PUSH32(esp, ebp); /* 0x3607E220: push ebp */ 686 ebp = esp; /* 0x3607E221: mov ebp, esp */ 687 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607E223: push -1 */ 688 PUSH32(esp, 0x361654E9u); /* 0x3607E225: push 0x361654e9 */ 689 eax = MEM32(FS_BASE + (0)); /* 0x3607E22A: mov eax, dword ptr fs:[0] */ 690 PUSH32(esp, eax); /* 0x3607E230: push eax */ 691 MEM32(FS_BASE + (0)) = esp; /* 0x3607E231: mov dword ptr fs:[0], esp */ 692 PUSH32(esp, ecx); /* 0x3607E238: push ecx */ 693 PUSH32(esp, ebx); /* 0x3607E239: push ebx */ 694 PUSH32(esp, esi); /* 0x3607E23A: push esi */ 695 esi = ecx; /* 0x3607E23B: mov esi, ecx */ 696 PUSH32(esp, edi); /* 0x3607E23D: push edi */ 697 MEM32(ebp + (-0x10)) = esi; /* 0x3607E23E: mov dword ptr [ebp - 0x10], esi */ 698 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607E241: call dword ptr [0x3616ffd0] */ 699 RECOMP_FLAGS_IN(); 700 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 701 eax = 0; /* 0x3607E247: xor eax, eax */ 702 _cf = 0; 703 _flag_k = FK_TEST; 704 MEM32(esi + 0x20) = eax; /* 0x3607E249: mov dword ptr [esi + 0x20], eax */ 705 MEM32(esi + 0x24) = eax; /* 0x3607E24C: mov dword ptr [esi + 0x24], eax */ 706 MEM32(ebp + (-0x4)) = eax; /* 0x3607E24F: mov dword ptr [ebp - 4], eax */ 707 MEM32(esi + 0x30) = eax; /* 0x3607E252: mov dword ptr [esi + 0x30], eax */ 708 MEM32(esi + 0x34) = eax; /* 0x3607E255: mov dword ptr [esi + 0x34], eax */ 709 MEM32(esi + 0x38) = eax; /* 0x3607E258: mov dword ptr [esi + 0x38], eax */ 710 edi = esi + 0x3C; /* 0x3607E25B: lea edi, [esi + 0x3c] */ 711 ebx = 0x1Eu; /* 0x3607E25E: mov ebx, 0x1e */ 712 L_3607E263: 713 ecx = edi; /* 0x3607E263: mov ecx, edi */ 714 RECOMP_ICALL(MEM32(0x36170174)); /* 0x3607E265: call dword ptr [0x36170174] */ 715 RECOMP_FLAGS_IN(); 716 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 717 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 718 edi = edi + 0xCu; /* 0x3607E26B: add edi, 0xc */ 719 _flag_k = FK_ADD; 720 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 721 ebx = ebx - 1; /* 0x3607E26E: dec ebx */ 722 _flag_k = FK_DEC; 723 RECOMP_BACKEDGE(); 724 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3607E263; /* 0x3607E26F: jne 0x3607e263 */ 725 L_3607E271: 726 ecx = MEM32(ebp + (-0xC)); /* 0x3607E271: mov ecx, dword ptr [ebp - 0xc] */ 727 edi = POP32_VAL(esp); /* 0x3607E274: pop edi */ 728 MEM32(esi) = 0x36171720u; /* 0x3607E275: mov dword ptr [esi], 0x36171720 */ 729 eax = esi; /* 0x3607E27B: mov eax, esi */ 730 esi = POP32_VAL(esp); /* 0x3607E27D: pop esi */ 731 ebx = POP32_VAL(esp); /* 0x3607E27E: pop ebx */ 732 MEM32(FS_BASE + (0)) = ecx; /* 0x3607E27F: mov dword ptr fs:[0], ecx */ 733 esp = ebp; /* 0x3607E286: mov esp, ebp */ 734 ebp = POP32_VAL(esp); /* 0x3607E288: pop ebp */ 735 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E289: ret */ 736 RECOMP_REGS_OUT(); 737 } 738 739 void sub_3607E290(void) { 740 int _fpu_cmp = 0; 741 uint32_t _cf = 0; 742 int _df = 1; 743 uint32_t _flag_k = FK_NONE; 744 uint32_t _flag_a = 0, _flag_b = 0; 745 uint32_t _itail_tgt = 0; 746 RECOMP_REGS_LOCALS 747 RECOMP_ENTER(0x3607E290u); 748 749 L_3607E290: 750 PUSH32(esp, ebp); /* 0x3607E290: push ebp */ 751 ebp = esp; /* 0x3607E291: mov ebp, esp */ 752 PUSH32(esp, esi); /* 0x3607E293: push esi */ 753 esi = ecx; /* 0x3607E294: mov esi, ecx */ 754 RECOMP_ICALL(0x3607E480u); /* 0x3607E296: call 0x3607e480 */ /* not lifted */ 755 RECOMP_FLAGS_IN(); 756 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607E29B: test byte ptr [ebp + 8], 1 */ 757 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 758 _cf = 0; 759 _flag_k = FK_NARROW(FK_TEST, 24); 760 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E2AA; /* 0x3607E29F: je 0x3607e2aa */ 761 L_3607E2A1: 762 PUSH32(esp, esi); /* 0x3607E2A1: push esi */ 763 RECOMP_ICALL(0x3615FCC4u); /* 0x3607E2A2: call 0x3615fcc4 */ /* not lifted */ 764 RECOMP_FLAGS_IN(); 765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 766 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 767 esp = esp + 4; /* 0x3607E2A7: add esp, 4 */ 768 _flag_k = FK_ADD; 769 L_3607E2AA: 770 eax = esi; /* 0x3607E2AA: mov eax, esi */ 771 esi = POP32_VAL(esp); /* 0x3607E2AC: pop esi */ 772 ebp = POP32_VAL(esp); /* 0x3607E2AD: pop ebp */ 773 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E2AE: ret 4 */ 774 RECOMP_REGS_OUT(); 775 } 776 777 void sub_3607E2C0(void) { 778 int _fpu_cmp = 0; 779 uint32_t _cf = 0; 780 int _df = 1; 781 uint32_t _flag_k = FK_NONE; 782 uint32_t _flag_a = 0, _flag_b = 0; 783 uint32_t _itail_tgt = 0; 784 RECOMP_REGS_LOCALS 785 RECOMP_ENTER(0x3607E2C0u); 786 787 L_3607E2C0: 788 PUSH32(esp, ebp); /* 0x3607E2C0: push ebp */ 789 ebp = esp; /* 0x3607E2C1: mov ebp, esp */ 790 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607E2C3: push -1 */ 791 PUSH32(esp, 0x36165512u); /* 0x3607E2C5: push 0x36165512 */ 792 eax = MEM32(FS_BASE + (0)); /* 0x3607E2CA: mov eax, dword ptr fs:[0] */ 793 PUSH32(esp, eax); /* 0x3607E2D0: push eax */ 794 MEM32(FS_BASE + (0)) = esp; /* 0x3607E2D1: mov dword ptr fs:[0], esp */ 795 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 797 esp = esp - 0x14u; /* 0x3607E2D8: sub esp, 0x14 */ 798 _flag_k = FK_CMP; 799 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607E2DB: mov al, byte ptr [ebp + 0xb] */ 800 PUSH32(esp, ebx); /* 0x3607E2DE: push ebx */ 801 PUSH32(esp, esi); /* 0x3607E2DF: push esi */ 802 esi = ecx; /* 0x3607E2E0: mov esi, ecx */ 803 PUSH32(esp, edi); /* 0x3607E2E2: push edi */ 804 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 805 ecx = ecx | 0xFFFFFFFFu; /* 0x3607E2E3: or ecx, 0xffffffff */ 806 _cf = 0; 807 _flag_k = FK_TEST; 808 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 809 ebx = 0; /* 0x3607E2E6: xor ebx, ebx */ 810 _cf = 0; 811 _flag_k = FK_TEST; 812 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3607E2E8: mov byte ptr [ebp - 0x20], al */ 813 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 814 eax = 0; /* 0x3607E2EB: xor eax, eax */ 815 _cf = 0; 816 _flag_k = FK_TEST; 817 edi = 0x361B4330u; /* 0x3607E2ED: mov edi, 0x361b4330 */ 818 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; } /* 0x3607E2F2: repne scasb al, byte ptr es:[edi] */ 819 ecx = ~ecx; /* 0x3607E2F4: not ecx */ 820 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 821 ecx = ecx - 1; /* 0x3607E2F6: dec ecx */ 822 _flag_k = FK_DEC; 823 PUSH32(esp, ecx); /* 0x3607E2F7: push ecx */ 824 PUSH32(esp, 0x361B4330u); /* 0x3607E2F8: push 0x361b4330 */ 825 ecx = ebp + (-0x20); /* 0x3607E2FD: lea ecx, [ebp - 0x20] */ 826 MEM32(ebp + (-0x10)) = esi; /* 0x3607E300: mov dword ptr [ebp - 0x10], esi */ 827 MEM32(ebp + (-0x1C)) = ebx; /* 0x3607E303: mov dword ptr [ebp - 0x1c], ebx */ 828 MEM32(ebp + (-0x18)) = ebx; /* 0x3607E306: mov dword ptr [ebp - 0x18], ebx */ 829 MEM32(ebp + (-0x14)) = ebx; /* 0x3607E309: mov dword ptr [ebp - 0x14], ebx */ 830 RECOMP_ICALL(MEM32(0x3616F014)); /* 0x3607E30C: call dword ptr [0x3616f014] */ 831 RECOMP_FLAGS_IN(); 832 edx = MEM32(ebp + 0x8); /* 0x3607E312: mov edx, dword ptr [ebp + 8] */ 833 ecx = ebp + (-0x20); /* 0x3607E315: lea ecx, [ebp - 0x20] */ 834 PUSH32(esp, ecx); /* 0x3607E318: push ecx */ 835 PUSH32(esp, edx); /* 0x3607E319: push edx */ 836 ecx = esi; /* 0x3607E31A: mov ecx, esi */ 837 MEM32(ebp + (-0x4)) = ebx; /* 0x3607E31C: mov dword ptr [ebp - 4], ebx */ 838 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x3607E31F: call dword ptr [0x3616fc0c] */ 839 RECOMP_FLAGS_IN(); 840 eax = MEM32(ebp + (-0x1C)); /* 0x3607E325: mov eax, dword ptr [ebp - 0x1c] */ 841 /* cmp eax, ebx */ /* 0x3607E328: cmp eax, ebx */ 842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 844 _flag_k = FK_CMP; 845 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3607E32A: mov byte ptr [ebp - 4], 2 */ 846 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E34C; /* 0x3607E32E: je 0x3607e34c */ 847 L_3607E330: 848 ecx = eax + (-0x1); /* 0x3607E330: lea ecx, [eax - 1] */ 849 SET_LO8(eax, MEM8(ecx)); /* 0x3607E333: mov al, byte ptr [ecx] */ 850 /* test LO8(eax), LO8(eax) */ /* 0x3607E335: test al, al */ 851 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 852 _cf = 0; 853 _flag_k = FK_NARROW(FK_TEST, 24); 854 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E343; /* 0x3607E337: je 0x3607e343 */ 855 L_3607E339: 856 /* cmp LO8(eax), 0xFFu */ /* 0x3607E339: cmp al, 0xff */ 857 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 859 _flag_k = FK_NARROW(FK_CMP, 24); 860 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E343; /* 0x3607E33B: je 0x3607e343 */ 861 L_3607E33D: 862 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 863 SET_LO8(eax, LO8(eax) - 1); /* 0x3607E33D: dec al */ 864 _flag_k = FK_NARROW(FK_DEC, 24); 865 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3607E33F: mov byte ptr [ecx], al */ 866 goto L_3607E34C; /* 0x3607E341: jmp 0x3607e34c */ 867 L_3607E343: 868 PUSH32(esp, ecx); /* 0x3607E343: push ecx */ 869 RECOMP_ICALL(0x3615FCC4u); /* 0x3607E344: call 0x3615fcc4 */ /* not lifted */ 870 RECOMP_FLAGS_IN(); 871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 873 esp = esp + 4; /* 0x3607E349: add esp, 4 */ 874 _flag_k = FK_ADD; 875 L_3607E34C: 876 ecx = MEM32(ebp + 0xC); /* 0x3607E34C: mov ecx, dword ptr [ebp + 0xc] */ 877 eax = esi + 0x20; /* 0x3607E34F: lea eax, [esi + 0x20] */ 878 /* cmp eax, ecx */ /* 0x3607E352: cmp eax, ecx */ 879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 881 _flag_k = FK_CMP; 882 MEM32(ebp + (-0x1C)) = ebx; /* 0x3607E354: mov dword ptr [ebp - 0x1c], ebx */ 883 MEM32(ebp + (-0x18)) = ebx; /* 0x3607E357: mov dword ptr [ebp - 0x18], ebx */ 884 MEM32(ebp + (-0x14)) = ebx; /* 0x3607E35A: mov dword ptr [ebp - 0x14], ebx */ 885 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E369; /* 0x3607E35D: je 0x3607e369 */ 886 L_3607E35F: 887 edx = MEM32(ecx); /* 0x3607E35F: mov edx, dword ptr [ecx] */ 888 MEM32(eax) = edx; /* 0x3607E361: mov dword ptr [eax], edx */ 889 ecx = MEM32(ecx + 0x4); /* 0x3607E363: mov ecx, dword ptr [ecx + 4] */ 890 MEM32(eax + 0x4) = ecx; /* 0x3607E366: mov dword ptr [eax + 4], ecx */ 891 L_3607E369: 892 edx = MEM32(ebp + 0x10); /* 0x3607E369: mov edx, dword ptr [ebp + 0x10] */ 893 eax = MEM32(ebp + 0x14); /* 0x3607E36C: mov eax, dword ptr [ebp + 0x14] */ 894 MEM32(esi + 0x28) = edx; /* 0x3607E36F: mov dword ptr [esi + 0x28], edx */ 895 edx = MEM32(ebp + 0x18); /* 0x3607E372: mov edx, dword ptr [ebp + 0x18] */ 896 ecx = esi + 0x30; /* 0x3607E375: lea ecx, [esi + 0x30] */ 897 MEM32(ecx) = edx; /* 0x3607E378: mov dword ptr [ecx], edx */ 898 edx = MEM32(ebp + 0x20); /* 0x3607E37A: mov edx, dword ptr [ebp + 0x20] */ 899 MEM32(esi + 0x2C) = eax; /* 0x3607E37D: mov dword ptr [esi + 0x2c], eax */ 900 eax = MEM32(ebp + 0x1C); /* 0x3607E380: mov eax, dword ptr [ebp + 0x1c] */ 901 MEM32(ecx + 0x4) = eax; /* 0x3607E383: mov dword ptr [ecx + 4], eax */ 902 edi = esi + 0x3C; /* 0x3607E386: lea edi, [esi + 0x3c] */ 903 MEM32(ecx + 0x8) = edx; /* 0x3607E389: mov dword ptr [ecx + 8], edx */ 904 ebx = edi; /* 0x3607E38C: mov ebx, edi */ 905 MEM32(ebp + 0x8) = 0x1Eu; /* 0x3607E38E: mov dword ptr [ebp + 8], 0x1e */ 906 L_3607E395: 907 ecx = ebx; /* 0x3607E395: mov ecx, ebx */ 908 RECOMP_ICALL(MEM32(0x36170174)); /* 0x3607E397: call dword ptr [0x36170174] */ 909 RECOMP_FLAGS_IN(); 910 eax = MEM32(ebp + 0x8); /* 0x3607E39D: mov eax, dword ptr [ebp + 8] */ 911 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 913 ebx = ebx + 0xCu; /* 0x3607E3A0: add ebx, 0xc */ 914 _flag_k = FK_ADD; 915 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 916 eax = eax - 1; /* 0x3607E3A3: dec eax */ 917 _flag_k = FK_DEC; 918 MEM32(ebp + 0x8) = eax; /* 0x3607E3A4: mov dword ptr [ebp + 8], eax */ 919 RECOMP_BACKEDGE(); 920 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3607E395; /* 0x3607E3A7: jne 0x3607e395 */ 921 L_3607E3A9: 922 eax = MEM32(ebp + 0x24); /* 0x3607E3A9: mov eax, dword ptr [ebp + 0x24] */ 923 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 924 ecx = 0; /* 0x3607E3AC: xor ecx, ecx */ 925 _cf = 0; 926 _flag_k = FK_TEST; 927 /* cmp eax, ecx */ /* 0x3607E3AE: cmp eax, ecx */ 928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 930 _flag_k = FK_CMP; 931 MEM32(esi) = 0x36171720u; /* 0x3607E3B0: mov dword ptr [esi], 0x36171720 */ 932 MEM32(esi + 0x1A4) = ecx; /* 0x3607E3B6: mov dword ptr [esi + 0x1a4], ecx */ 933 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E421; /* 0x3607E3BC: je 0x3607e421 */ 934 L_3607E3BE: 935 MEM32(ebp + 0x8) = eax; /* 0x3607E3BE: mov dword ptr [ebp + 8], eax */ 936 edx = edi; /* 0x3607E3C1: mov edx, edi */ 937 L_3607E3C3: 938 ebx = MEM32(eax); /* 0x3607E3C3: mov ebx, dword ptr [eax] */ 939 edi = edx; /* 0x3607E3C5: mov edi, edx */ 940 MEM32(edi) = ebx; /* 0x3607E3C7: mov dword ptr [edi], ebx */ 941 ebx = MEM32(eax + 0x4); /* 0x3607E3C9: mov ebx, dword ptr [eax + 4] */ 942 MEM32(edi + 0x4) = ebx; /* 0x3607E3CC: mov dword ptr [edi + 4], ebx */ 943 eax = MEM32(eax + 0x8); /* 0x3607E3CF: mov eax, dword ptr [eax + 8] */ 944 MEM32(edi + 0x8) = eax; /* 0x3607E3D2: mov dword ptr [edi + 8], eax */ 945 fp_push(*(float*)&MEM32(edx)); /* 0x3607E3D5: fld dword ptr [edx] */ 946 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3607E3D7: fcomp dword ptr [0x3617040c] */ 947 fp_pop(); 948 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3607E3DD: fnstsw ax */ 949 /* test HI8(eax), 0x40u */ /* 0x3607E3DF: test ah, 0x40 */ 950 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 951 _cf = 0; 952 _flag_k = FK_NARROW(FK_TEST, 24); 953 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E404; /* 0x3607E3E2: je 0x3607e404 */ 954 L_3607E3E4: 955 fp_push(*(float*)&MEM32(edx + 0x4)); /* 0x3607E3E4: fld dword ptr [edx + 4] */ 956 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3607E3E7: fcomp dword ptr [0x3617040c] */ 957 fp_pop(); 958 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3607E3ED: fnstsw ax */ 959 /* test HI8(eax), 0x40u */ /* 0x3607E3EF: test ah, 0x40 */ 960 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 961 _cf = 0; 962 _flag_k = FK_NARROW(FK_TEST, 24); 963 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E404; /* 0x3607E3F2: je 0x3607e404 */ 964 L_3607E3F4: 965 fp_push(*(float*)&MEM32(edx + 0x8)); /* 0x3607E3F4: fld dword ptr [edx + 8] */ 966 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3607E3F7: fcomp dword ptr [0x3617040c] */ 967 fp_pop(); 968 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3607E3FD: fnstsw ax */ 969 /* test HI8(eax), 0x40u */ /* 0x3607E3FF: test ah, 0x40 */ 970 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 971 _cf = 0; 972 _flag_k = FK_NARROW(FK_TEST, 24); 973 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607E40D; /* 0x3607E402: jne 0x3607e40d */ 974 L_3607E404: 975 eax = ecx + 0x1; /* 0x3607E404: lea eax, [ecx + 1] */ 976 MEM32(esi + 0x1A4) = eax; /* 0x3607E407: mov dword ptr [esi + 0x1a4], eax */ 977 L_3607E40D: 978 eax = MEM32(ebp + 0x8); /* 0x3607E40D: mov eax, dword ptr [ebp + 8] */ 979 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 980 ecx = ecx + 1; /* 0x3607E410: inc ecx */ 981 _flag_k = FK_INC; 982 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 984 eax = eax + 0xCu; /* 0x3607E411: add eax, 0xc */ 985 _flag_k = FK_ADD; 986 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 987 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 988 edx = edx + 0xCu; /* 0x3607E414: add edx, 0xc */ 989 _flag_k = FK_ADD; 990 /* cmp ecx, 0x1Eu */ /* 0x3607E417: cmp ecx, 0x1e */ 991 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x1Eu); 992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 993 _flag_k = FK_CMP; 994 MEM32(ebp + 0x8) = eax; /* 0x3607E41A: mov dword ptr [ebp + 8], eax */ 995 RECOMP_BACKEDGE(); 996 if (CMP_L(_flag_a, _flag_b)) goto L_3607E3C3; /* 0x3607E41D: jl 0x3607e3c3 */ 997 L_3607E41F: 998 goto L_3607E456; /* 0x3607E41F: jmp 0x3607e456 */ 999 L_3607E421: 1000 MEM32(ebp + 0x1C) = 0; /* 0x3607E421: mov dword ptr [ebp + 0x1c], 0 */ 1001 edx = MEM32(ebp + 0x1C); /* 0x3607E428: mov edx, dword ptr [ebp + 0x1c] */ 1002 MEM32(ebp + 0x18) = 0; /* 0x3607E42B: mov dword ptr [ebp + 0x18], 0 */ 1003 MEM32(ebp + 0x20) = 0; /* 0x3607E432: mov dword ptr [ebp + 0x20], 0 */ 1004 eax = edi; /* 0x3607E439: mov eax, edi */ 1005 ecx = 0x1Eu; /* 0x3607E43B: mov ecx, 0x1e */ 1006 L_3607E440: 1007 ebx = MEM32(ebp + 0x18); /* 0x3607E440: mov ebx, dword ptr [ebp + 0x18] */ 1008 edi = eax; /* 0x3607E443: mov edi, eax */ 1009 MEM32(edi) = ebx; /* 0x3607E445: mov dword ptr [edi], ebx */ 1010 ebx = MEM32(ebp + 0x20); /* 0x3607E447: mov ebx, dword ptr [ebp + 0x20] */ 1011 MEM32(edi + 0x4) = edx; /* 0x3607E44A: mov dword ptr [edi + 4], edx */ 1012 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 1013 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1014 eax = eax + 0xCu; /* 0x3607E44D: add eax, 0xc */ 1015 _flag_k = FK_ADD; 1016 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 1017 ecx = ecx - 1; /* 0x3607E450: dec ecx */ 1018 _flag_k = FK_DEC; 1019 MEM32(edi + 0x8) = ebx; /* 0x3607E451: mov dword ptr [edi + 8], ebx */ 1020 RECOMP_BACKEDGE(); 1021 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3607E440; /* 0x3607E454: jne 0x3607e440 */ 1022 L_3607E456: 1023 ecx = esi; /* 0x3607E456: mov ecx, esi */ 1024 RECOMP_ICALL(MEM32(0x3616FC3C)); /* 0x3607E458: call dword ptr [0x3616fc3c] */ 1025 RECOMP_FLAGS_IN(); 1026 ecx = MEM32(ebp + (-0xC)); /* 0x3607E45E: mov ecx, dword ptr [ebp - 0xc] */ 1027 edi = POP32_VAL(esp); /* 0x3607E461: pop edi */ 1028 eax = esi; /* 0x3607E462: mov eax, esi */ 1029 esi = POP32_VAL(esp); /* 0x3607E464: pop esi */ 1030 ebx = POP32_VAL(esp); /* 0x3607E465: pop ebx */ 1031 MEM32(FS_BASE + (0)) = ecx; /* 0x3607E466: mov dword ptr fs:[0], ecx */ 1032 esp = ebp; /* 0x3607E46D: mov esp, ebp */ 1033 ebp = POP32_VAL(esp); /* 0x3607E46F: pop ebp */ 1034 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x3607E470: ret 0x20 */ 1035 RECOMP_REGS_OUT(); 1036 } 1037 1038 void sub_3607E480(void) { 1039 int _fpu_cmp = 0; 1040 uint32_t _cf = 0; 1041 int _df = 1; 1042 uint32_t _flag_k = FK_NONE; 1043 uint32_t _flag_a = 0, _flag_b = 0; 1044 uint32_t _itail_tgt = 0; 1045 RECOMP_REGS_LOCALS 1046 RECOMP_ENTER(0x3607E480u); 1047 1048 L_3607E480: 1049 MEM32(ecx) = 0x36171720u; /* 0x3607E480: mov dword ptr [ecx], 0x36171720 */ 1050 L_3607E486: 1051 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 1052 { RECOMP_REGS_OUT(); return; } /* end of function */ 1053 _ljump: 1054 switch (_itail_tgt) { 1055 case 0x3607E480u: goto L_3607E480; 1056 case 0x3607E486u: goto L_3607E486; 1057 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1058 } 1059 RECOMP_REGS_OUT(); 1060 } 1061 1062 void sub_3607E490(void) { 1063 int _fpu_cmp = 0; 1064 uint32_t _cf = 0; 1065 int _df = 1; 1066 uint32_t _flag_k = FK_NONE; 1067 uint32_t _flag_a = 0, _flag_b = 0; 1068 uint32_t _itail_tgt = 0; 1069 RECOMP_REGS_LOCALS 1070 RECOMP_ENTER(0x3607E490u); 1071 1072 L_3607E490: 1073 PUSH32(esp, ebp); /* 0x3607E490: push ebp */ 1074 ebp = esp; /* 0x3607E491: mov ebp, esp */ 1075 PUSH32(esp, ecx); /* 0x3607E493: push ecx */ 1076 PUSH32(esp, ebx); /* 0x3607E494: push ebx */ 1077 ebx = MEM32(ebp + 0x8); /* 0x3607E495: mov ebx, dword ptr [ebp + 8] */ 1078 PUSH32(esp, esi); /* 0x3607E498: push esi */ 1079 esi = ecx; /* 0x3607E499: mov esi, ecx */ 1080 PUSH32(esp, edi); /* 0x3607E49B: push edi */ 1081 eax = esi + 0x20; /* 0x3607E49C: lea eax, [esi + 0x20] */ 1082 PUSH32(esp, eax); /* 0x3607E49F: push eax */ 1083 PUSH32(esp, ebx); /* 0x3607E4A0: push ebx */ 1084 RECOMP_ICALL(0x3615B840u); /* 0x3607E4A1: call 0x3615b840 */ /* not lifted */ 1085 RECOMP_FLAGS_IN(); 1086 ecx = MEM32(esi + 0x28); /* 0x3607E4A6: mov ecx, dword ptr [esi + 0x28] */ 1087 edi = MEM32(0x3616FAD4); /* 0x3607E4A9: mov edi, dword ptr [0x3616fad4] */ 1088 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1090 esp = esp + 8; /* 0x3607E4AF: add esp, 8 */ 1091 _flag_k = FK_ADD; 1092 PUSH32(esp, ecx); /* 0x3607E4B2: push ecx */ 1093 ecx = ebx; /* 0x3607E4B3: mov ecx, ebx */ 1094 RECOMP_ICALL(edi); /* 0x3607E4B5: call edi */ 1095 RECOMP_FLAGS_IN(); 1096 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1097 edx = 0; /* 0x3607E4B7: xor edx, edx */ 1098 _cf = 0; 1099 _flag_k = FK_TEST; 1100 SET_LO8(edx, MEM8(esi + 0x2C)); /* 0x3607E4B9: mov dl, byte ptr [esi + 0x2c] */ 1101 ecx = ebx; /* 0x3607E4BC: mov ecx, ebx */ 1102 PUSH32(esp, edx); /* 0x3607E4BE: push edx */ 1103 RECOMP_ICALL(MEM32(0x3616FAE8)); /* 0x3607E4BF: call dword ptr [0x3616fae8] */ 1104 RECOMP_FLAGS_IN(); 1105 eax = MEM32(esi + 0x38); /* 0x3607E4C5: mov eax, dword ptr [esi + 0x38] */ 1106 ecx = MEM32(esi + 0x34); /* 0x3607E4C8: mov ecx, dword ptr [esi + 0x34] */ 1107 edx = MEM32(esi + 0x30); /* 0x3607E4CB: mov edx, dword ptr [esi + 0x30] */ 1108 PUSH32(esp, eax); /* 0x3607E4CE: push eax */ 1109 PUSH32(esp, ecx); /* 0x3607E4CF: push ecx */ 1110 PUSH32(esp, edx); /* 0x3607E4D0: push edx */ 1111 ecx = ebx; /* 0x3607E4D1: mov ecx, ebx */ 1112 RECOMP_ICALL(edi); /* 0x3607E4D3: call edi */ 1113 RECOMP_FLAGS_IN(); 1114 ecx = eax; /* 0x3607E4D5: mov ecx, eax */ 1115 RECOMP_ICALL(edi); /* 0x3607E4D7: call edi */ 1116 RECOMP_FLAGS_IN(); 1117 ecx = eax; /* 0x3607E4D9: mov ecx, eax */ 1118 RECOMP_ICALL(edi); /* 0x3607E4DB: call edi */ 1119 RECOMP_FLAGS_IN(); 1120 eax = MEM32(esi + 0x1A4); /* 0x3607E4DD: mov eax, dword ptr [esi + 0x1a4] */ 1121 PUSH32(esp, eax); /* 0x3607E4E3: push eax */ 1122 ecx = ebx; /* 0x3607E4E4: mov ecx, ebx */ 1123 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3607E4E6: call dword ptr [0x3616faec] */ 1124 RECOMP_FLAGS_IN(); 1125 eax = MEM32(esi + 0x1A4); /* 0x3607E4EC: mov eax, dword ptr [esi + 0x1a4] */ 1126 /* test eax, eax */ /* 0x3607E4F2: test eax, eax */ 1127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1128 _cf = 0; 1129 _flag_k = FK_TEST; 1130 MEM32(ebp + (-0x4)) = 0; /* 0x3607E4F4: mov dword ptr [ebp - 4], 0 */ 1131 if (TEST_LE(_flag_a, _flag_b)) goto L_3607E52C; /* 0x3607E4FB: jle 0x3607e52c */ 1132 L_3607E4FD: 1133 ebx = esi + 0x40; /* 0x3607E4FD: lea ebx, [esi + 0x40] */ 1134 L_3607E500: 1135 ecx = MEM32(ebx + 0x4); /* 0x3607E500: mov ecx, dword ptr [ebx + 4] */ 1136 edx = MEM32(ebx); /* 0x3607E503: mov edx, dword ptr [ebx] */ 1137 eax = MEM32(ebx + (-0x4)); /* 0x3607E505: mov eax, dword ptr [ebx - 4] */ 1138 PUSH32(esp, ecx); /* 0x3607E508: push ecx */ 1139 ecx = MEM32(ebp + 0x8); /* 0x3607E509: mov ecx, dword ptr [ebp + 8] */ 1140 PUSH32(esp, edx); /* 0x3607E50C: push edx */ 1141 PUSH32(esp, eax); /* 0x3607E50D: push eax */ 1142 RECOMP_ICALL(edi); /* 0x3607E50E: call edi */ 1143 RECOMP_FLAGS_IN(); 1144 ecx = eax; /* 0x3607E510: mov ecx, eax */ 1145 RECOMP_ICALL(edi); /* 0x3607E512: call edi */ 1146 RECOMP_FLAGS_IN(); 1147 ecx = eax; /* 0x3607E514: mov ecx, eax */ 1148 RECOMP_ICALL(edi); /* 0x3607E516: call edi */ 1149 RECOMP_FLAGS_IN(); 1150 eax = MEM32(ebp + (-0x4)); /* 0x3607E518: mov eax, dword ptr [ebp - 4] */ 1151 ecx = MEM32(esi + 0x1A4); /* 0x3607E51B: mov ecx, dword ptr [esi + 0x1a4] */ 1152 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1153 eax = eax + 1; /* 0x3607E521: inc eax */ 1154 _flag_k = FK_INC; 1155 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0xCu); 1156 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1157 ebx = ebx + 0xCu; /* 0x3607E522: add ebx, 0xc */ 1158 _flag_k = FK_ADD; 1159 /* cmp eax, ecx */ /* 0x3607E525: cmp eax, ecx */ 1160 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 1161 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1162 _flag_k = FK_CMP; 1163 MEM32(ebp + (-0x4)) = eax; /* 0x3607E527: mov dword ptr [ebp - 4], eax */ 1164 RECOMP_BACKEDGE(); 1165 if (CMP_L(_flag_a, _flag_b)) goto L_3607E500; /* 0x3607E52A: jl 0x3607e500 */ 1166 L_3607E52C: 1167 edi = POP32_VAL(esp); /* 0x3607E52C: pop edi */ 1168 esi = POP32_VAL(esp); /* 0x3607E52D: pop esi */ 1169 ebx = POP32_VAL(esp); /* 0x3607E52E: pop ebx */ 1170 esp = ebp; /* 0x3607E52F: mov esp, ebp */ 1171 ebp = POP32_VAL(esp); /* 0x3607E531: pop ebp */ 1172 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E532: ret 4 */ 1173 RECOMP_REGS_OUT(); 1174 } 1175 1176 void sub_3607E540(void) { 1177 int _fpu_cmp = 0; 1178 uint32_t _cf = 0; 1179 int _df = 1; 1180 uint32_t _flag_k = FK_NONE; 1181 uint32_t _flag_a = 0, _flag_b = 0; 1182 uint32_t _itail_tgt = 0; 1183 RECOMP_REGS_LOCALS 1184 RECOMP_ENTER(0x3607E540u); 1185 1186 L_3607E540: 1187 PUSH32(esp, ebp); /* 0x3607E540: push ebp */ 1188 ebp = esp; /* 0x3607E541: mov ebp, esp */ 1189 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1190 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1191 esp = esp - 0x14u; /* 0x3607E543: sub esp, 0x14 */ 1192 _flag_k = FK_CMP; 1193 PUSH32(esp, ebx); /* 0x3607E546: push ebx */ 1194 ebx = MEM32(ebp + 0x8); /* 0x3607E547: mov ebx, dword ptr [ebp + 8] */ 1195 PUSH32(esp, esi); /* 0x3607E54A: push esi */ 1196 esi = ecx; /* 0x3607E54B: mov esi, ecx */ 1197 PUSH32(esp, edi); /* 0x3607E54D: push edi */ 1198 eax = esi + 0x20; /* 0x3607E54E: lea eax, [esi + 0x20] */ 1199 PUSH32(esp, eax); /* 0x3607E551: push eax */ 1200 PUSH32(esp, ebx); /* 0x3607E552: push ebx */ 1201 RECOMP_ICALL(0x3615B870u); /* 0x3607E553: call 0x3615b870 */ /* not lifted */ 1202 RECOMP_FLAGS_IN(); 1203 edi = MEM32(0x3616FAD0); /* 0x3607E558: mov edi, dword ptr [0x3616fad0] */ 1204 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1205 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1206 esp = esp + 8; /* 0x3607E55E: add esp, 8 */ 1207 _flag_k = FK_ADD; 1208 ecx = esi + 0x28; /* 0x3607E561: lea ecx, [esi + 0x28] */ 1209 PUSH32(esp, ecx); /* 0x3607E564: push ecx */ 1210 ecx = ebx; /* 0x3607E565: mov ecx, ebx */ 1211 RECOMP_ICALL(edi); /* 0x3607E567: call edi */ 1212 RECOMP_FLAGS_IN(); 1213 edx = ebp + (-0x4); /* 0x3607E569: lea edx, [ebp - 4] */ 1214 PUSH32(esp, edx); /* 0x3607E56C: push edx */ 1215 ecx = ebx; /* 0x3607E56D: mov ecx, ebx */ 1216 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3607E56F: call dword ptr [0x3616fae0] */ 1217 RECOMP_FLAGS_IN(); 1218 eax = MEM32(ebp + (-0x4)); /* 0x3607E575: mov eax, dword ptr [ebp - 4] */ 1219 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 1220 eax = eax & 0xFFu; /* 0x3607E578: and eax, 0xff */ 1221 _cf = 0; 1222 _flag_k = FK_TEST; 1223 MEM32(esi + 0x2C) = eax; /* 0x3607E57D: mov dword ptr [esi + 0x2c], eax */ 1224 eax = esi + 0x30; /* 0x3607E580: lea eax, [esi + 0x30] */ 1225 ecx = eax + 0x8; /* 0x3607E583: lea ecx, [eax + 8] */ 1226 PUSH32(esp, ecx); /* 0x3607E586: push ecx */ 1227 edx = eax + 0x4; /* 0x3607E587: lea edx, [eax + 4] */ 1228 PUSH32(esp, edx); /* 0x3607E58A: push edx */ 1229 PUSH32(esp, eax); /* 0x3607E58B: push eax */ 1230 ecx = ebx; /* 0x3607E58C: mov ecx, ebx */ 1231 RECOMP_ICALL(edi); /* 0x3607E58E: call edi */ 1232 RECOMP_FLAGS_IN(); 1233 ecx = eax; /* 0x3607E590: mov ecx, eax */ 1234 RECOMP_ICALL(edi); /* 0x3607E592: call edi */ 1235 RECOMP_FLAGS_IN(); 1236 ecx = eax; /* 0x3607E594: mov ecx, eax */ 1237 RECOMP_ICALL(edi); /* 0x3607E596: call edi */ 1238 RECOMP_FLAGS_IN(); 1239 eax = esi + 0x1A4; /* 0x3607E598: lea eax, [esi + 0x1a4] */ 1240 PUSH32(esp, eax); /* 0x3607E59E: push eax */ 1241 ecx = ebx; /* 0x3607E59F: mov ecx, ebx */ 1242 MEM32(ebp + (-0x8)) = eax; /* 0x3607E5A1: mov dword ptr [ebp - 8], eax */ 1243 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607E5A4: call dword ptr [0x3616fa8c] */ 1244 RECOMP_FLAGS_IN(); 1245 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1246 eax = 0; /* 0x3607E5AA: xor eax, eax */ 1247 _cf = 0; 1248 _flag_k = FK_TEST; 1249 MEM32(ebp + 0x8) = eax; /* 0x3607E5AC: mov dword ptr [ebp + 8], eax */ 1250 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 1251 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1252 esi = esi + 0x3Cu; /* 0x3607E5AF: add esi, 0x3c */ 1253 _flag_k = FK_ADD; 1254 L_3607E5B2: 1255 ecx = MEM32(ebp + (-0x8)); /* 0x3607E5B2: mov ecx, dword ptr [ebp - 8] */ 1256 /* cmp eax, MEM32(ecx) */ /* 0x3607E5B5: cmp eax, dword ptr [ecx] */ 1257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1259 _flag_k = FK_CMP; 1260 if (CMP_GE(_flag_a, _flag_b)) goto L_3607E5D3; /* 0x3607E5B7: jge 0x3607e5d3 */ 1261 L_3607E5B9: 1262 eax = esi + 0x4; /* 0x3607E5B9: lea eax, [esi + 4] */ 1263 edx = eax + 0x4; /* 0x3607E5BC: lea edx, [eax + 4] */ 1264 PUSH32(esp, edx); /* 0x3607E5BF: push edx */ 1265 PUSH32(esp, eax); /* 0x3607E5C0: push eax */ 1266 PUSH32(esp, esi); /* 0x3607E5C1: push esi */ 1267 ecx = ebx; /* 0x3607E5C2: mov ecx, ebx */ 1268 RECOMP_ICALL(edi); /* 0x3607E5C4: call edi */ 1269 RECOMP_FLAGS_IN(); 1270 ecx = eax; /* 0x3607E5C6: mov ecx, eax */ 1271 RECOMP_ICALL(edi); /* 0x3607E5C8: call edi */ 1272 RECOMP_FLAGS_IN(); 1273 ecx = eax; /* 0x3607E5CA: mov ecx, eax */ 1274 RECOMP_ICALL(edi); /* 0x3607E5CC: call edi */ 1275 RECOMP_FLAGS_IN(); 1276 eax = MEM32(ebp + 0x8); /* 0x3607E5CE: mov eax, dword ptr [ebp + 8] */ 1277 goto L_3607E5FB; /* 0x3607E5D1: jmp 0x3607e5fb */ 1278 L_3607E5D3: 1279 MEM32(ebp + (-0x14)) = 0; /* 0x3607E5D3: mov dword ptr [ebp - 0x14], 0 */ 1280 edx = MEM32(ebp + (-0x14)); /* 0x3607E5DA: mov edx, dword ptr [ebp - 0x14] */ 1281 ecx = esi; /* 0x3607E5DD: mov ecx, esi */ 1282 MEM32(ecx) = edx; /* 0x3607E5DF: mov dword ptr [ecx], edx */ 1283 MEM32(ebp + (-0x10)) = 0; /* 0x3607E5E1: mov dword ptr [ebp - 0x10], 0 */ 1284 edx = MEM32(ebp + (-0x10)); /* 0x3607E5E8: mov edx, dword ptr [ebp - 0x10] */ 1285 MEM32(ecx + 0x4) = edx; /* 0x3607E5EB: mov dword ptr [ecx + 4], edx */ 1286 MEM32(ebp + (-0xC)) = 0; /* 0x3607E5EE: mov dword ptr [ebp - 0xc], 0 */ 1287 edx = MEM32(ebp + (-0xC)); /* 0x3607E5F5: mov edx, dword ptr [ebp - 0xc] */ 1288 MEM32(ecx + 0x8) = edx; /* 0x3607E5F8: mov dword ptr [ecx + 8], edx */ 1289 L_3607E5FB: 1290 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1291 eax = eax + 1; /* 0x3607E5FB: inc eax */ 1292 _flag_k = FK_INC; 1293 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 1294 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1295 esi = esi + 0xCu; /* 0x3607E5FC: add esi, 0xc */ 1296 _flag_k = FK_ADD; 1297 /* cmp eax, 0x1Eu */ /* 0x3607E5FF: cmp eax, 0x1e */ 1298 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Eu); 1299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1300 _flag_k = FK_CMP; 1301 MEM32(ebp + 0x8) = eax; /* 0x3607E602: mov dword ptr [ebp + 8], eax */ 1302 RECOMP_BACKEDGE(); 1303 if (CMP_L(_flag_a, _flag_b)) goto L_3607E5B2; /* 0x3607E605: jl 0x3607e5b2 */ 1304 L_3607E607: 1305 ecx = ebx; /* 0x3607E607: mov ecx, ebx */ 1306 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607E609: call dword ptr [0x3616fadc] */ 1307 RECOMP_FLAGS_IN(); 1308 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1309 _cf = (eax) != 0; 1310 eax = (uint32_t)(-(int32_t)eax); /* 0x3607E60F: neg eax */ 1311 _flag_k = FK_CMP; 1312 edi = POP32_VAL(esp); /* 0x3607E611: pop edi */ 1313 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607E612: sbb eax, eax */ 1314 eax = _sc ? 0xFFFFFFFFu : 0; 1315 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1316 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1317 esi = POP32_VAL(esp); /* 0x3607E614: pop esi */ 1318 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1319 eax = eax + 1; /* 0x3607E615: inc eax */ 1320 _flag_k = FK_INC; 1321 ebx = POP32_VAL(esp); /* 0x3607E616: pop ebx */ 1322 esp = ebp; /* 0x3607E617: mov esp, ebp */ 1323 ebp = POP32_VAL(esp); /* 0x3607E619: pop ebp */ 1324 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E61A: ret 4 */ 1325 RECOMP_REGS_OUT(); 1326 } 1327 1328 void sub_3607E620(void) { 1329 int _fpu_cmp = 0; 1330 uint32_t _cf = 0; 1331 int _df = 1; 1332 uint32_t _flag_k = FK_NONE; 1333 uint32_t _flag_a = 0, _flag_b = 0; 1334 uint32_t _itail_tgt = 0; 1335 RECOMP_REGS_LOCALS 1336 RECOMP_ENTER(0x3607E620u); 1337 1338 L_3607E620: 1339 PUSH32(esp, esi); /* 0x3607E620: push esi */ 1340 PUSH32(esp, edi); /* 0x3607E621: push edi */ 1341 edi = ecx; /* 0x3607E622: mov edi, ecx */ 1342 ecx = MEM32(edi + 0x4); /* 0x3607E624: mov ecx, dword ptr [edi + 4] */ 1343 /* cmp ecx, 0xC350u */ /* 0x3607E627: cmp ecx, 0xc350 */ 1344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xC350u); 1345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1346 _flag_k = FK_CMP; 1347 eax = edi + 0x4; /* 0x3607E62D: lea eax, [edi + 4] */ 1348 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E63A; /* 0x3607E630: je 0x3607e63a */ 1349 L_3607E632: 1350 edi = POP32_VAL(esp); /* 0x3607E632: pop edi */ 1351 eax = 3; /* 0x3607E633: mov eax, 3 */ 1352 esi = POP32_VAL(esp); /* 0x3607E638: pop esi */ 1353 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E639: ret */ 1354 L_3607E63A: 1355 esi = MEM32(0x3616FF70); /* 0x3607E63A: mov esi, dword ptr [0x3616ff70] */ 1356 PUSH32(esp, eax); /* 0x3607E640: push eax */ 1357 RECOMP_ICALL(esi); /* 0x3607E641: call esi */ 1358 RECOMP_FLAGS_IN(); 1359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1360 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1361 esp = esp + 4; /* 0x3607E643: add esp, 4 */ 1362 _flag_k = FK_ADD; 1363 /* test eax, eax */ /* 0x3607E646: test eax, eax */ 1364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1365 _cf = 0; 1366 _flag_k = FK_TEST; 1367 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E67F; /* 0x3607E648: je 0x3607e67f */ 1368 L_3607E64A: 1369 /* cmp MEM8(eax + 0x94), 1 */ /* 0x3607E64A: cmp byte ptr [eax + 0x94], 1 */ 1370 _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24; 1371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1372 _flag_k = FK_NARROW(FK_CMP, 24); 1373 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E67F; /* 0x3607E651: je 0x3607e67f */ 1374 L_3607E653: 1375 ecx = MEM32(edi + 0x20); /* 0x3607E653: mov ecx, dword ptr [edi + 0x20] */ 1376 /* test ecx, ecx */ /* 0x3607E656: test ecx, ecx */ 1377 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1378 _cf = 0; 1379 _flag_k = FK_TEST; 1380 eax = edi + 0x20; /* 0x3607E658: lea eax, [edi + 0x20] */ 1381 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607E664; /* 0x3607E65B: jne 0x3607e664 */ 1382 L_3607E65D: 1383 ecx = MEM32(eax + 0x4); /* 0x3607E65D: mov ecx, dword ptr [eax + 4] */ 1384 /* test ecx, ecx */ /* 0x3607E660: test ecx, ecx */ 1385 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1386 _cf = 0; 1387 _flag_k = FK_TEST; 1388 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E677; /* 0x3607E662: je 0x3607e677 */ 1389 L_3607E664: 1390 PUSH32(esp, eax); /* 0x3607E664: push eax */ 1391 RECOMP_ICALL(esi); /* 0x3607E665: call esi */ 1392 RECOMP_FLAGS_IN(); 1393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1395 esp = esp + 4; /* 0x3607E667: add esp, 4 */ 1396 _flag_k = FK_ADD; 1397 /* test eax, eax */ /* 0x3607E66A: test eax, eax */ 1398 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1399 _cf = 0; 1400 _flag_k = FK_TEST; 1401 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E67F; /* 0x3607E66C: je 0x3607e67f */ 1402 L_3607E66E: 1403 /* cmp MEM8(eax + 0x94), 1 */ /* 0x3607E66E: cmp byte ptr [eax + 0x94], 1 */ 1404 _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24; 1405 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1406 _flag_k = FK_NARROW(FK_CMP, 24); 1407 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E67F; /* 0x3607E675: je 0x3607e67f */ 1408 L_3607E677: 1409 edi = POP32_VAL(esp); /* 0x3607E677: pop edi */ 1410 eax = 1; /* 0x3607E678: mov eax, 1 */ 1411 esi = POP32_VAL(esp); /* 0x3607E67D: pop esi */ 1412 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E67E: ret */ 1413 L_3607E67F: 1414 edi = POP32_VAL(esp); /* 0x3607E67F: pop edi */ 1415 eax = 2; /* 0x3607E680: mov eax, 2 */ 1416 esi = POP32_VAL(esp); /* 0x3607E685: pop esi */ 1417 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E686: ret */ 1418 RECOMP_REGS_OUT(); 1419 } 1420 1421 void sub_3607E690(void) { 1422 int _fpu_cmp = 0; 1423 uint32_t _cf = 0; 1424 int _df = 1; 1425 uint32_t _flag_k = FK_NONE; 1426 uint32_t _flag_a = 0, _flag_b = 0; 1427 uint32_t _itail_tgt = 0; 1428 RECOMP_REGS_LOCALS 1429 RECOMP_ENTER(0x3607E690u); 1430 1431 L_3607E690: 1432 PUSH32(esp, ebp); /* 0x3607E690: push ebp */ 1433 ebp = esp; /* 0x3607E691: mov ebp, esp */ 1434 PUSH32(esp, ecx); /* 0x3607E693: push ecx */ 1435 PUSH32(esp, ebx); /* 0x3607E694: push ebx */ 1436 PUSH32(esp, esi); /* 0x3607E695: push esi */ 1437 PUSH32(esp, edi); /* 0x3607E696: push edi */ 1438 edi = MEM32(0x3616FC20); /* 0x3607E697: mov edi, dword ptr [0x3616fc20] */ 1439 esi = ecx; /* 0x3607E69D: mov esi, ecx */ 1440 RECOMP_ICALL(edi); /* 0x3607E69F: call edi */ 1441 RECOMP_FLAGS_IN(); 1442 eax = esi + 0x4; /* 0x3607E6A1: lea eax, [esi + 4] */ 1443 PUSH32(esp, eax); /* 0x3607E6A4: push eax */ 1444 RECOMP_ICALL(0x3606DA90u); /* 0x3607E6A5: call 0x3606da90 */ /* not lifted */ 1445 RECOMP_FLAGS_IN(); 1446 ebx = eax; /* 0x3607E6AA: mov ebx, eax */ 1447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1449 esp = esp + 4; /* 0x3607E6AC: add esp, 4 */ 1450 _flag_k = FK_ADD; 1451 /* test ebx, ebx */ /* 0x3607E6AF: test ebx, ebx */ 1452 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 1453 _cf = 0; 1454 _flag_k = FK_TEST; 1455 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607E6C0; /* 0x3607E6B1: jne 0x3607e6c0 */ 1456 L_3607E6B3: 1457 ecx = esi; /* 0x3607E6B3: mov ecx, esi */ 1458 RECOMP_ICALL(edi); /* 0x3607E6B5: call edi */ 1459 RECOMP_FLAGS_IN(); 1460 edi = POP32_VAL(esp); /* 0x3607E6B7: pop edi */ 1461 esi = POP32_VAL(esp); /* 0x3607E6B8: pop esi */ 1462 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1463 eax = 0; /* 0x3607E6B9: xor eax, eax */ 1464 _cf = 0; 1465 _flag_k = FK_TEST; 1466 ebx = POP32_VAL(esp); /* 0x3607E6BB: pop ebx */ 1467 esp = ebp; /* 0x3607E6BC: mov esp, ebp */ 1468 ebp = POP32_VAL(esp); /* 0x3607E6BE: pop ebp */ 1469 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E6BF: ret */ 1470 L_3607E6C0: 1471 ecx = ebx; /* 0x3607E6C0: mov ecx, ebx */ 1472 RECOMP_ICALL(0x3606D5A0u); /* 0x3607E6C2: call 0x3606d5a0 */ /* not lifted */ 1473 RECOMP_FLAGS_IN(); 1474 edi = eax; /* 0x3607E6C7: mov edi, eax */ 1475 /* test edi, edi */ /* 0x3607E6C9: test edi, edi */ 1476 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 1477 _cf = 0; 1478 _flag_k = FK_TEST; 1479 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E7A0; /* 0x3607E6CB: je 0x3607e7a0 */ 1480 L_3607E6D1: 1481 fp_push(*(float*)&MEM32(esi + 0x30)); /* 0x3607E6D1: fld dword ptr [esi + 0x30] */ 1482 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3607E6D4: fcomp dword ptr [0x3617040c] */ 1483 fp_pop(); 1484 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3607E6DA: fnstsw ax */ 1485 /* test HI8(eax), 0x40u */ /* 0x3607E6DC: test ah, 0x40 */ 1486 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 1487 _cf = 0; 1488 _flag_k = FK_NARROW(FK_TEST, 24); 1489 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E701; /* 0x3607E6DF: je 0x3607e701 */ 1490 L_3607E6E1: 1491 fp_push(*(float*)&MEM32(esi + 0x34)); /* 0x3607E6E1: fld dword ptr [esi + 0x34] */ 1492 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3607E6E4: fcomp dword ptr [0x3617040c] */ 1493 fp_pop(); 1494 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3607E6EA: fnstsw ax */ 1495 /* test HI8(eax), 0x40u */ /* 0x3607E6EC: test ah, 0x40 */ 1496 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 1497 _cf = 0; 1498 _flag_k = FK_NARROW(FK_TEST, 24); 1499 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E701; /* 0x3607E6EF: je 0x3607e701 */ 1500 L_3607E6F1: 1501 fp_push(*(float*)&MEM32(esi + 0x38)); /* 0x3607E6F1: fld dword ptr [esi + 0x38] */ 1502 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x3617040C)); /* 0x3607E6F4: fcomp dword ptr [0x3617040c] */ 1503 fp_pop(); 1504 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3607E6FA: fnstsw ax */ 1505 /* test HI8(eax), 0x40u */ /* 0x3607E6FC: test ah, 0x40 */ 1506 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x40u) << 24; 1507 _cf = 0; 1508 _flag_k = FK_NARROW(FK_TEST, 24); 1509 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607E715; /* 0x3607E6FF: jne 0x3607e715 */ 1510 L_3607E701: 1511 ecx = ebx; /* 0x3607E701: mov ecx, ebx */ 1512 RECOMP_ICALL(MEM32(0x3616FC30)); /* 0x3607E703: call dword ptr [0x3616fc30] */ 1513 RECOMP_FLAGS_IN(); 1514 eax = esi + 0x30; /* 0x3607E709: lea eax, [esi + 0x30] */ 1515 PUSH32(esp, eax); /* 0x3607E70C: push eax */ 1516 ecx = edi; /* 0x3607E70D: mov ecx, edi */ 1517 RECOMP_ICALL(MEM32(0x36170360)); /* 0x3607E70F: call dword ptr [0x36170360] */ 1518 RECOMP_FLAGS_IN(); 1519 L_3607E715: 1520 ecx = edi; /* 0x3607E715: mov ecx, edi */ 1521 RECOMP_ICALL(0x36047900u); /* 0x3607E717: call 0x36047900 */ /* not lifted */ 1522 RECOMP_FLAGS_IN(); 1523 ecx = eax; /* 0x3607E71C: mov ecx, eax */ 1524 RECOMP_ICALL(0x36008320u); /* 0x3607E71E: call 0x36008320 */ /* not lifted */ 1525 RECOMP_FLAGS_IN(); 1526 /* cmp eax, 1 */ /* 0x3607E723: cmp eax, 1 */ 1527 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1529 _flag_k = FK_CMP; 1530 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E7A0; /* 0x3607E726: je 0x3607e7a0 */ 1531 L_3607E728: 1532 /* cmp eax, 8 */ /* 0x3607E728: cmp eax, 8 */ 1533 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 1534 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1535 _flag_k = FK_CMP; 1536 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E7A0; /* 0x3607E72B: je 0x3607e7a0 */ 1537 L_3607E72D: 1538 /* cmp eax, 9 */ /* 0x3607E72D: cmp eax, 9 */ 1539 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(9); 1540 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1541 _flag_k = FK_CMP; 1542 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E7A0; /* 0x3607E730: je 0x3607e7a0 */ 1543 L_3607E732: 1544 ecx = esi + 0x20; /* 0x3607E732: lea ecx, [esi + 0x20] */ 1545 PUSH32(esp, ecx); /* 0x3607E735: push ecx */ 1546 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607E736: call dword ptr [0x3616ff70] */ 1547 RECOMP_FLAGS_IN(); 1548 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1549 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1550 esp = esp + 4; /* 0x3607E73C: add esp, 4 */ 1551 _flag_k = FK_ADD; 1552 /* test eax, eax */ /* 0x3607E73F: test eax, eax */ 1553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1554 _cf = 0; 1555 _flag_k = FK_TEST; 1556 MEM32(ebp + (-0x4)) = eax; /* 0x3607E741: mov dword ptr [ebp - 4], eax */ 1557 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E784; /* 0x3607E744: je 0x3607e784 */ 1558 L_3607E746: 1559 ecx = edi; /* 0x3607E746: mov ecx, edi */ 1560 RECOMP_ICALL(0x36047900u); /* 0x3607E748: call 0x36047900 */ /* not lifted */ 1561 RECOMP_FLAGS_IN(); 1562 ecx = MEM32(esi + 0x2C); /* 0x3607E74D: mov ecx, dword ptr [esi + 0x2c] */ 1563 edx = MEM32(eax); /* 0x3607E750: mov edx, dword ptr [eax] */ 1564 PUSH32(esp, ecx); /* 0x3607E752: push ecx */ 1565 ecx = eax; /* 0x3607E753: mov ecx, eax */ 1566 RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x3607E755: call dword ptr [edx + 0x18] */ 1567 RECOMP_FLAGS_IN(); 1568 SET_LO8(eax, MEM8(ebx + 0x1B4)); /* 0x3607E758: mov al, byte ptr [ebx + 0x1b4] */ 1569 /* test LO8(eax), LO8(eax) */ /* 0x3607E75E: test al, al */ 1570 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1571 _cf = 0; 1572 _flag_k = FK_NARROW(FK_TEST, 24); 1573 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E784; /* 0x3607E760: je 0x3607e784 */ 1574 L_3607E762: 1575 PUSH32(esp, 0); /* 0x3607E762: push 0 */ 1576 PUSH32(esp, 0x361C19F8u); /* 0x3607E764: push 0x361c19f8 */ 1577 PUSH32(esp, 0x361C19B0u); /* 0x3607E769: push 0x361c19b0 */ 1578 PUSH32(esp, 0); /* 0x3607E76E: push 0 */ 1579 PUSH32(esp, edi); /* 0x3607E770: push edi */ 1580 RECOMP_ICALL(0x3615FD86u); /* 0x3607E771: call 0x3615fd86 */ /* not lifted */ 1581 RECOMP_FLAGS_IN(); 1582 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 1583 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1584 esp = esp + 0x14u; /* 0x3607E776: add esp, 0x14 */ 1585 _flag_k = FK_ADD; 1586 /* test eax, eax */ /* 0x3607E779: test eax, eax */ 1587 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1588 _cf = 0; 1589 _flag_k = FK_TEST; 1590 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E784; /* 0x3607E77B: je 0x3607e784 */ 1591 L_3607E77D: 1592 ecx = eax; /* 0x3607E77D: mov ecx, eax */ 1593 RECOMP_ICALL(0x3604ADC0u); /* 0x3607E77F: call 0x3604adc0 */ /* not lifted */ 1594 RECOMP_FLAGS_IN(); 1595 L_3607E784: 1596 eax = MEM32(esi + 0x28); /* 0x3607E784: mov eax, dword ptr [esi + 0x28] */ 1597 ecx = MEM32(ebp + (-0x4)); /* 0x3607E787: mov ecx, dword ptr [ebp - 4] */ 1598 edx = esi + 0x3C; /* 0x3607E78A: lea edx, [esi + 0x3c] */ 1599 PUSH32(esp, edx); /* 0x3607E78D: push edx */ 1600 PUSH32(esp, eax); /* 0x3607E78E: push eax */ 1601 PUSH32(esp, ecx); /* 0x3607E78F: push ecx */ 1602 ecx = edi; /* 0x3607E790: mov ecx, edi */ 1603 RECOMP_ICALL(0x36048260u); /* 0x3607E792: call 0x36048260 */ /* not lifted */ 1604 RECOMP_FLAGS_IN(); 1605 edi = POP32_VAL(esp); /* 0x3607E797: pop edi */ 1606 esi = POP32_VAL(esp); /* 0x3607E798: pop esi */ 1607 eax = ebx; /* 0x3607E799: mov eax, ebx */ 1608 ebx = POP32_VAL(esp); /* 0x3607E79B: pop ebx */ 1609 esp = ebp; /* 0x3607E79C: mov esp, ebp */ 1610 ebp = POP32_VAL(esp); /* 0x3607E79E: pop ebp */ 1611 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E79F: ret */ 1612 L_3607E7A0: 1613 ecx = esi; /* 0x3607E7A0: mov ecx, esi */ 1614 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3607E7A2: call dword ptr [0x3616fc20] */ 1615 RECOMP_FLAGS_IN(); 1616 edi = POP32_VAL(esp); /* 0x3607E7A8: pop edi */ 1617 esi = POP32_VAL(esp); /* 0x3607E7A9: pop esi */ 1618 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1619 eax = 0; /* 0x3607E7AA: xor eax, eax */ 1620 _cf = 0; 1621 _flag_k = FK_TEST; 1622 ebx = POP32_VAL(esp); /* 0x3607E7AC: pop ebx */ 1623 esp = ebp; /* 0x3607E7AD: mov esp, ebp */ 1624 ebp = POP32_VAL(esp); /* 0x3607E7AF: pop ebp */ 1625 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E7B0: ret */ 1626 RECOMP_REGS_OUT(); 1627 } 1628 1629 void sub_3607E7C0(void) { 1630 int _fpu_cmp = 0; 1631 uint32_t _cf = 0; 1632 int _df = 1; 1633 uint32_t _flag_k = FK_NONE; 1634 uint32_t _flag_a = 0, _flag_b = 0; 1635 uint32_t _itail_tgt = 0; 1636 RECOMP_REGS_LOCALS 1637 RECOMP_ENTER(0x3607E7C0u); 1638 1639 L_3607E7C0: 1640 PUSH32(esp, ebp); /* 0x3607E7C0: push ebp */ 1641 ebp = esp; /* 0x3607E7C1: mov ebp, esp */ 1642 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607E7C3: push -1 */ 1643 PUSH32(esp, 0x36165529u); /* 0x3607E7C5: push 0x36165529 */ 1644 eax = MEM32(FS_BASE + (0)); /* 0x3607E7CA: mov eax, dword ptr fs:[0] */ 1645 PUSH32(esp, eax); /* 0x3607E7D0: push eax */ 1646 MEM32(FS_BASE + (0)) = esp; /* 0x3607E7D1: mov dword ptr fs:[0], esp */ 1647 PUSH32(esp, ecx); /* 0x3607E7D8: push ecx */ 1648 PUSH32(esp, esi); /* 0x3607E7D9: push esi */ 1649 esi = ecx; /* 0x3607E7DA: mov esi, ecx */ 1650 MEM32(ebp + (-0x10)) = esi; /* 0x3607E7DC: mov dword ptr [ebp - 0x10], esi */ 1651 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607E7DF: call dword ptr [0x3616ffd0] */ 1652 RECOMP_FLAGS_IN(); 1653 ecx = esi; /* 0x3607E7E5: mov ecx, esi */ 1654 MEM32(ebp + (-0x4)) = 0; /* 0x3607E7E7: mov dword ptr [ebp - 4], 0 */ 1655 MEM32(esi) = 0x36171744u; /* 0x3607E7EE: mov dword ptr [esi], 0x36171744 */ 1656 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3607E7F4: call dword ptr [0x3616fc20] */ 1657 RECOMP_FLAGS_IN(); 1658 ecx = MEM32(ebp + (-0xC)); /* 0x3607E7FA: mov ecx, dword ptr [ebp - 0xc] */ 1659 MEM32(esi + 0x20) = 0; /* 0x3607E7FD: mov dword ptr [esi + 0x20], 0 */ 1660 eax = esi; /* 0x3607E804: mov eax, esi */ 1661 esi = POP32_VAL(esp); /* 0x3607E806: pop esi */ 1662 MEM32(FS_BASE + (0)) = ecx; /* 0x3607E807: mov dword ptr fs:[0], ecx */ 1663 esp = ebp; /* 0x3607E80E: mov esp, ebp */ 1664 ebp = POP32_VAL(esp); /* 0x3607E810: pop ebp */ 1665 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E811: ret */ 1666 RECOMP_REGS_OUT(); 1667 } 1668 1669 void sub_3607E820(void) { 1670 int _fpu_cmp = 0; 1671 uint32_t _cf = 0; 1672 int _df = 1; 1673 uint32_t _flag_k = FK_NONE; 1674 uint32_t _flag_a = 0, _flag_b = 0; 1675 uint32_t _itail_tgt = 0; 1676 RECOMP_REGS_LOCALS 1677 RECOMP_ENTER(0x3607E820u); 1678 1679 L_3607E820: 1680 PUSH32(esp, ebp); /* 0x3607E820: push ebp */ 1681 ebp = esp; /* 0x3607E821: mov ebp, esp */ 1682 PUSH32(esp, esi); /* 0x3607E823: push esi */ 1683 esi = ecx; /* 0x3607E824: mov esi, ecx */ 1684 RECOMP_ICALL(0x3607E850u); /* 0x3607E826: call 0x3607e850 */ /* not lifted */ 1685 RECOMP_FLAGS_IN(); 1686 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607E82B: test byte ptr [ebp + 8], 1 */ 1687 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1688 _cf = 0; 1689 _flag_k = FK_NARROW(FK_TEST, 24); 1690 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E83A; /* 0x3607E82F: je 0x3607e83a */ 1691 L_3607E831: 1692 PUSH32(esp, esi); /* 0x3607E831: push esi */ 1693 RECOMP_ICALL(0x3615FCC4u); /* 0x3607E832: call 0x3615fcc4 */ /* not lifted */ 1694 RECOMP_FLAGS_IN(); 1695 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1696 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1697 esp = esp + 4; /* 0x3607E837: add esp, 4 */ 1698 _flag_k = FK_ADD; 1699 L_3607E83A: 1700 eax = esi; /* 0x3607E83A: mov eax, esi */ 1701 esi = POP32_VAL(esp); /* 0x3607E83C: pop esi */ 1702 ebp = POP32_VAL(esp); /* 0x3607E83D: pop ebp */ 1703 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E83E: ret 4 */ 1704 RECOMP_REGS_OUT(); 1705 } 1706 1707 void sub_3607E850(void) { 1708 int _fpu_cmp = 0; 1709 uint32_t _cf = 0; 1710 int _df = 1; 1711 uint32_t _flag_k = FK_NONE; 1712 uint32_t _flag_a = 0, _flag_b = 0; 1713 uint32_t _itail_tgt = 0; 1714 RECOMP_REGS_LOCALS 1715 RECOMP_ENTER(0x3607E850u); 1716 1717 L_3607E850: 1718 MEM32(ecx) = 0x36171744u; /* 0x3607E850: mov dword ptr [ecx], 0x36171744 */ 1719 L_3607E856: 1720 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 1721 { RECOMP_REGS_OUT(); return; } /* end of function */ 1722 _ljump: 1723 switch (_itail_tgt) { 1724 case 0x3607E850u: goto L_3607E850; 1725 case 0x3607E856u: goto L_3607E856; 1726 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1727 } 1728 RECOMP_REGS_OUT(); 1729 } 1730 1731 void sub_3607E860(void) { 1732 int _fpu_cmp = 0; 1733 uint32_t _cf = 0; 1734 int _df = 1; 1735 uint32_t _flag_k = FK_NONE; 1736 uint32_t _flag_a = 0, _flag_b = 0; 1737 uint32_t _itail_tgt = 0; 1738 RECOMP_REGS_LOCALS 1739 RECOMP_ENTER(0x3607E860u); 1740 1741 L_3607E860: 1742 PUSH32(esp, ebp); /* 0x3607E860: push ebp */ 1743 ebp = esp; /* 0x3607E861: mov ebp, esp */ 1744 PUSH32(esp, ebx); /* 0x3607E863: push ebx */ 1745 PUSH32(esp, esi); /* 0x3607E864: push esi */ 1746 PUSH32(esp, edi); /* 0x3607E865: push edi */ 1747 PUSH32(esp, 0x24u); /* 0x3607E866: push 0x24 */ 1748 esi = ecx; /* 0x3607E868: mov esi, ecx */ 1749 RECOMP_ICALL(0x3615FD6Au); /* 0x3607E86A: call 0x3615fd6a */ /* not lifted */ 1750 RECOMP_FLAGS_IN(); 1751 edi = MEM32(ebp + 0x8); /* 0x3607E86F: mov edi, dword ptr [ebp + 8] */ 1752 ebx = MEM32(0x3616FAD0); /* 0x3607E872: mov ebx, dword ptr [0x3616fad0] */ 1753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1755 esp = esp + 4; /* 0x3607E878: add esp, 4 */ 1756 _flag_k = FK_ADD; 1757 PUSH32(esp, eax); /* 0x3607E87B: push eax */ 1758 ecx = edi; /* 0x3607E87C: mov ecx, edi */ 1759 MEM32(esi + 0x20) = eax; /* 0x3607E87E: mov dword ptr [esi + 0x20], eax */ 1760 RECOMP_ICALL(ebx); /* 0x3607E881: call ebx */ 1761 RECOMP_FLAGS_IN(); 1762 eax = MEM32(esi + 0x20); /* 0x3607E883: mov eax, dword ptr [esi + 0x20] */ 1763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 1764 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1765 eax = eax + 4; /* 0x3607E886: add eax, 4 */ 1766 _flag_k = FK_ADD; 1767 PUSH32(esp, eax); /* 0x3607E889: push eax */ 1768 ecx = edi; /* 0x3607E88A: mov ecx, edi */ 1769 RECOMP_ICALL(ebx); /* 0x3607E88C: call ebx */ 1770 RECOMP_FLAGS_IN(); 1771 ecx = MEM32(esi + 0x20); /* 0x3607E88E: mov ecx, dword ptr [esi + 0x20] */ 1772 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 1773 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1774 ecx = ecx + 8; /* 0x3607E891: add ecx, 8 */ 1775 _flag_k = FK_ADD; 1776 PUSH32(esp, ecx); /* 0x3607E894: push ecx */ 1777 ecx = edi; /* 0x3607E895: mov ecx, edi */ 1778 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3607E897: call dword ptr [0x3616fae0] */ 1779 RECOMP_FLAGS_IN(); 1780 edx = MEM32(esi + 0x20); /* 0x3607E89D: mov edx, dword ptr [esi + 0x20] */ 1781 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xCu); 1782 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1783 edx = edx + 0xCu; /* 0x3607E8A0: add edx, 0xc */ 1784 _flag_k = FK_ADD; 1785 PUSH32(esp, edx); /* 0x3607E8A3: push edx */ 1786 ecx = edi; /* 0x3607E8A4: mov ecx, edi */ 1787 RECOMP_ICALL(ebx); /* 0x3607E8A6: call ebx */ 1788 RECOMP_FLAGS_IN(); 1789 eax = MEM32(esi + 0x20); /* 0x3607E8A8: mov eax, dword ptr [esi + 0x20] */ 1790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 1791 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1792 eax = eax + 0x10u; /* 0x3607E8AB: add eax, 0x10 */ 1793 _flag_k = FK_ADD; 1794 PUSH32(esp, eax); /* 0x3607E8AE: push eax */ 1795 ecx = edi; /* 0x3607E8AF: mov ecx, edi */ 1796 RECOMP_ICALL(ebx); /* 0x3607E8B1: call ebx */ 1797 RECOMP_FLAGS_IN(); 1798 ecx = MEM32(esi + 0x20); /* 0x3607E8B3: mov ecx, dword ptr [esi + 0x20] */ 1799 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x14u); 1800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1801 ecx = ecx + 0x14u; /* 0x3607E8B6: add ecx, 0x14 */ 1802 _flag_k = FK_ADD; 1803 PUSH32(esp, ecx); /* 0x3607E8B9: push ecx */ 1804 ecx = edi; /* 0x3607E8BA: mov ecx, edi */ 1805 RECOMP_ICALL(ebx); /* 0x3607E8BC: call ebx */ 1806 RECOMP_FLAGS_IN(); 1807 edx = MEM32(esi + 0x20); /* 0x3607E8BE: mov edx, dword ptr [esi + 0x20] */ 1808 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 1809 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1810 edx = edx + 0x18u; /* 0x3607E8C1: add edx, 0x18 */ 1811 _flag_k = FK_ADD; 1812 PUSH32(esp, edx); /* 0x3607E8C4: push edx */ 1813 ecx = edi; /* 0x3607E8C5: mov ecx, edi */ 1814 RECOMP_ICALL(ebx); /* 0x3607E8C7: call ebx */ 1815 RECOMP_FLAGS_IN(); 1816 eax = MEM32(esi + 0x20); /* 0x3607E8C9: mov eax, dword ptr [esi + 0x20] */ 1817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Cu); 1818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1819 eax = eax + 0x1Cu; /* 0x3607E8CC: add eax, 0x1c */ 1820 _flag_k = FK_ADD; 1821 PUSH32(esp, eax); /* 0x3607E8CF: push eax */ 1822 ecx = edi; /* 0x3607E8D0: mov ecx, edi */ 1823 RECOMP_ICALL(ebx); /* 0x3607E8D2: call ebx */ 1824 RECOMP_FLAGS_IN(); 1825 ecx = MEM32(esi + 0x20); /* 0x3607E8D4: mov ecx, dword ptr [esi + 0x20] */ 1826 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 1827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1828 ecx = ecx + 0x20u; /* 0x3607E8D7: add ecx, 0x20 */ 1829 _flag_k = FK_ADD; 1830 PUSH32(esp, ecx); /* 0x3607E8DA: push ecx */ 1831 ecx = edi; /* 0x3607E8DB: mov ecx, edi */ 1832 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607E8DD: call dword ptr [0x3616fa8c] */ 1833 RECOMP_FLAGS_IN(); 1834 ecx = edi; /* 0x3607E8E3: mov ecx, edi */ 1835 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607E8E5: call dword ptr [0x3616fadc] */ 1836 RECOMP_FLAGS_IN(); 1837 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 1838 _cf = (eax) != 0; 1839 eax = (uint32_t)(-(int32_t)eax); /* 0x3607E8EB: neg eax */ 1840 _flag_k = FK_CMP; 1841 edi = POP32_VAL(esp); /* 0x3607E8ED: pop edi */ 1842 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607E8EE: sbb eax, eax */ 1843 eax = _sc ? 0xFFFFFFFFu : 0; 1844 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1845 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1846 esi = POP32_VAL(esp); /* 0x3607E8F0: pop esi */ 1847 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 1848 eax = eax + 1; /* 0x3607E8F1: inc eax */ 1849 _flag_k = FK_INC; 1850 ebx = POP32_VAL(esp); /* 0x3607E8F2: pop ebx */ 1851 ebp = POP32_VAL(esp); /* 0x3607E8F3: pop ebp */ 1852 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607E8F4: ret 4 */ 1853 RECOMP_REGS_OUT(); 1854 } 1855 1856 void sub_3607E900(void) { 1857 int _fpu_cmp = 0; 1858 uint32_t _cf = 0; 1859 int _df = 1; 1860 uint32_t _flag_k = FK_NONE; 1861 uint32_t _flag_a = 0, _flag_b = 0; 1862 uint32_t _itail_tgt = 0; 1863 RECOMP_REGS_LOCALS 1864 RECOMP_ENTER(0x3607E900u); 1865 1866 L_3607E900: 1867 PUSH32(esp, esi); /* 0x3607E900: push esi */ 1868 PUSH32(esp, edi); /* 0x3607E901: push edi */ 1869 edi = ecx; /* 0x3607E902: mov edi, ecx */ 1870 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x3607E904: call dword ptr [0x3616fc20] */ 1871 RECOMP_FLAGS_IN(); 1872 eax = edi + 0x4; /* 0x3607E90A: lea eax, [edi + 4] */ 1873 PUSH32(esp, eax); /* 0x3607E90D: push eax */ 1874 RECOMP_ICALL(0x3606DA90u); /* 0x3607E90E: call 0x3606da90 */ /* not lifted */ 1875 RECOMP_FLAGS_IN(); 1876 esi = eax; /* 0x3607E913: mov esi, eax */ 1877 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1878 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1879 esp = esp + 4; /* 0x3607E915: add esp, 4 */ 1880 _flag_k = FK_ADD; 1881 /* test esi, esi */ /* 0x3607E918: test esi, esi */ 1882 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1883 _cf = 0; 1884 _flag_k = FK_TEST; 1885 if (TEST_Z(_flag_a, _flag_b)) goto L_3607E941; /* 0x3607E91A: je 0x3607e941 */ 1886 L_3607E91C: 1887 ecx = MEM32(edi + 0x20); /* 0x3607E91C: mov ecx, dword ptr [edi + 0x20] */ 1888 PUSH32(esp, ecx); /* 0x3607E91F: push ecx */ 1889 ecx = MEM32(esi + 0x170); /* 0x3607E920: mov ecx, dword ptr [esi + 0x170] */ 1890 RECOMP_ICALL(0x36067C90u); /* 0x3607E926: call 0x36067c90 */ /* not lifted */ 1891 RECOMP_FLAGS_IN(); 1892 edx = MEM32(esi + 0xE4); /* 0x3607E92B: mov edx, dword ptr [esi + 0xe4] */ 1893 ecx = esi + 0xE4; /* 0x3607E931: lea ecx, [esi + 0xe4] */ 1894 PUSH32(esp, 1); /* 0x3607E937: push 1 */ 1895 PUSH32(esp, 0x217u); /* 0x3607E939: push 0x217 */ 1896 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607E93E: call dword ptr [edx + 8] */ 1897 RECOMP_FLAGS_IN(); 1898 L_3607E941: 1899 edi = POP32_VAL(esp); /* 0x3607E941: pop edi */ 1900 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1901 eax = 0; /* 0x3607E942: xor eax, eax */ 1902 _cf = 0; 1903 _flag_k = FK_TEST; 1904 esi = POP32_VAL(esp); /* 0x3607E944: pop esi */ 1905 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607E945: ret */ 1906 RECOMP_REGS_OUT(); 1907 } 1908 1909 void sub_3607E950(void) { 1910 int _fpu_cmp = 0; 1911 uint32_t _cf = 0; 1912 int _df = 1; 1913 uint32_t _flag_k = FK_NONE; 1914 uint32_t _flag_a = 0, _flag_b = 0; 1915 uint32_t _itail_tgt = 0; 1916 RECOMP_REGS_LOCALS 1917 RECOMP_ENTER(0x3607E950u); 1918 1919 L_3607E950: 1920 PUSH32(esp, ebp); /* 0x3607E950: push ebp */ 1921 ebp = esp; /* 0x3607E951: mov ebp, esp */ 1922 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607E953: push -1 */ 1923 PUSH32(esp, 0x361655ACu); /* 0x3607E955: push 0x361655ac */ 1924 eax = MEM32(FS_BASE + (0)); /* 0x3607E95A: mov eax, dword ptr fs:[0] */ 1925 PUSH32(esp, eax); /* 0x3607E960: push eax */ 1926 MEM32(FS_BASE + (0)) = esp; /* 0x3607E961: mov dword ptr fs:[0], esp */ 1927 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1928 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1929 esp = esp - 0xCu; /* 0x3607E968: sub esp, 0xc */ 1930 _flag_k = FK_CMP; 1931 PUSH32(esp, ebx); /* 0x3607E96B: push ebx */ 1932 PUSH32(esp, esi); /* 0x3607E96C: push esi */ 1933 esi = ecx; /* 0x3607E96D: mov esi, ecx */ 1934 PUSH32(esp, edi); /* 0x3607E96F: push edi */ 1935 MEM32(ebp + (-0x14)) = esi; /* 0x3607E970: mov dword ptr [ebp - 0x14], esi */ 1936 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607E973: call dword ptr [0x3616ffd0] */ 1937 RECOMP_FLAGS_IN(); 1938 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1939 ebx = 0; /* 0x3607E979: xor ebx, ebx */ 1940 _cf = 0; 1941 _flag_k = FK_TEST; 1942 ecx = esi + 0x68; /* 0x3607E97B: lea ecx, [esi + 0x68] */ 1943 MEM32(ebp + (-0x4)) = ebx; /* 0x3607E97E: mov dword ptr [ebp - 4], ebx */ 1944 MEM32(esi + 0x50) = ebx; /* 0x3607E981: mov dword ptr [esi + 0x50], ebx */ 1945 MEM32(esi + 0x54) = ebx; /* 0x3607E984: mov dword ptr [esi + 0x54], ebx */ 1946 RECOMP_ICALL(0x360BFE20u); /* 0x3607E987: call 0x360bfe20 */ /* not lifted */ 1947 RECOMP_FLAGS_IN(); 1948 PUSH32(esp, 0x18u); /* 0x3607E98C: push 0x18 */ 1949 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607E98E: mov byte ptr [ebp - 4], 1 */ 1950 MEM32(esi) = 0x36171768u; /* 0x3607E992: mov dword ptr [esi], 0x36171768 */ 1951 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3607E998: mov byte ptr [esi + 0xc], bl */ 1952 RECOMP_ICALL(0x3615FD6Au); /* 0x3607E99B: call 0x3615fd6a */ /* not lifted */ 1953 RECOMP_FLAGS_IN(); 1954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1956 esp = esp + 4; /* 0x3607E9A0: add esp, 4 */ 1957 _flag_k = FK_ADD; 1958 MEM32(ebp + (-0x18)) = eax; /* 0x3607E9A3: mov dword ptr [ebp - 0x18], eax */ 1959 /* cmp eax, ebx */ /* 0x3607E9A6: cmp eax, ebx */ 1960 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1962 _flag_k = FK_CMP; 1963 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x3607E9A8: mov byte ptr [ebp - 4], 2 */ 1964 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E9BD; /* 0x3607E9AC: je 0x3607e9bd */ 1965 L_3607E9AE: 1966 ecx = esi + 0x4; /* 0x3607E9AE: lea ecx, [esi + 4] */ 1967 PUSH32(esp, ecx); /* 0x3607E9B1: push ecx */ 1968 PUSH32(esp, 0x4Eu); /* 0x3607E9B2: push 0x4e */ 1969 ecx = eax; /* 0x3607E9B4: mov ecx, eax */ 1970 RECOMP_ICALL(0x3602D080u); /* 0x3607E9B6: call 0x3602d080 */ /* not lifted */ 1971 RECOMP_FLAGS_IN(); 1972 goto L_3607E9BF; /* 0x3607E9BB: jmp 0x3607e9bf */ 1973 L_3607E9BD: 1974 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1975 eax = 0; /* 0x3607E9BD: xor eax, eax */ 1976 _cf = 0; 1977 _flag_k = FK_TEST; 1978 L_3607E9BF: 1979 PUSH32(esp, 0xCu); /* 0x3607E9BF: push 0xc */ 1980 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607E9C1: mov byte ptr [ebp - 4], 1 */ 1981 MEM32(esi + 0x5C) = eax; /* 0x3607E9C5: mov dword ptr [esi + 0x5c], eax */ 1982 RECOMP_ICALL(0x3615FD6Au); /* 0x3607E9C8: call 0x3615fd6a */ /* not lifted */ 1983 RECOMP_FLAGS_IN(); 1984 edi = eax; /* 0x3607E9CD: mov edi, eax */ 1985 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1986 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1987 esp = esp + 4; /* 0x3607E9CF: add esp, 4 */ 1988 _flag_k = FK_ADD; 1989 MEM32(ebp + (-0x18)) = edi; /* 0x3607E9D2: mov dword ptr [ebp - 0x18], edi */ 1990 /* cmp edi, ebx */ /* 0x3607E9D5: cmp edi, ebx */ 1991 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1993 _flag_k = FK_CMP; 1994 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3607E9D7: mov byte ptr [ebp - 4], 3 */ 1995 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607E9F9; /* 0x3607E9DB: je 0x3607e9f9 */ 1996 L_3607E9DD: 1997 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3607E9DD: mov dl, byte ptr [ebp - 0xd] */ 1998 PUSH32(esp, 0xCu); /* 0x3607E9E0: push 0xc */ 1999 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x3607E9E2: mov byte ptr [edi], dl */ 2000 RECOMP_ICALL(0x3615FD6Au); /* 0x3607E9E4: call 0x3615fd6a */ /* not lifted */ 2001 RECOMP_FLAGS_IN(); 2002 MEM32(eax) = eax; /* 0x3607E9E9: mov dword ptr [eax], eax */ 2003 MEM32(eax + 0x4) = eax; /* 0x3607E9EB: mov dword ptr [eax + 4], eax */ 2004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2006 esp = esp + 4; /* 0x3607E9EE: add esp, 4 */ 2007 _flag_k = FK_ADD; 2008 MEM32(edi + 0x4) = eax; /* 0x3607E9F1: mov dword ptr [edi + 4], eax */ 2009 MEM32(edi + 0x8) = ebx; /* 0x3607E9F4: mov dword ptr [edi + 8], ebx */ 2010 goto L_3607E9FB; /* 0x3607E9F7: jmp 0x3607e9fb */ 2011 L_3607E9F9: 2012 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2013 edi = 0; /* 0x3607E9F9: xor edi, edi */ 2014 _cf = 0; 2015 _flag_k = FK_TEST; 2016 L_3607E9FB: 2017 PUSH32(esp, 0xCu); /* 0x3607E9FB: push 0xc */ 2018 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607E9FD: mov byte ptr [ebp - 4], 1 */ 2019 MEM32(esi + 0x24) = edi; /* 0x3607EA01: mov dword ptr [esi + 0x24], edi */ 2020 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EA04: call 0x3615fd6a */ /* not lifted */ 2021 RECOMP_FLAGS_IN(); 2022 edi = eax; /* 0x3607EA09: mov edi, eax */ 2023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2025 esp = esp + 4; /* 0x3607EA0B: add esp, 4 */ 2026 _flag_k = FK_ADD; 2027 MEM32(ebp + (-0x18)) = edi; /* 0x3607EA0E: mov dword ptr [ebp - 0x18], edi */ 2028 /* cmp edi, ebx */ /* 0x3607EA11: cmp edi, ebx */ 2029 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2030 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2031 _flag_k = FK_CMP; 2032 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3607EA13: mov byte ptr [ebp - 4], 4 */ 2033 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EA35; /* 0x3607EA17: je 0x3607ea35 */ 2034 L_3607EA19: 2035 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3607EA19: mov al, byte ptr [ebp - 0xd] */ 2036 PUSH32(esp, 0x10u); /* 0x3607EA1C: push 0x10 */ 2037 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3607EA1E: mov byte ptr [edi], al */ 2038 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EA20: call 0x3615fd6a */ /* not lifted */ 2039 RECOMP_FLAGS_IN(); 2040 MEM32(eax) = eax; /* 0x3607EA25: mov dword ptr [eax], eax */ 2041 MEM32(eax + 0x4) = eax; /* 0x3607EA27: mov dword ptr [eax + 4], eax */ 2042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2044 esp = esp + 4; /* 0x3607EA2A: add esp, 4 */ 2045 _flag_k = FK_ADD; 2046 MEM32(edi + 0x4) = eax; /* 0x3607EA2D: mov dword ptr [edi + 4], eax */ 2047 MEM32(edi + 0x8) = ebx; /* 0x3607EA30: mov dword ptr [edi + 8], ebx */ 2048 goto L_3607EA37; /* 0x3607EA33: jmp 0x3607ea37 */ 2049 L_3607EA35: 2050 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2051 edi = 0; /* 0x3607EA35: xor edi, edi */ 2052 _cf = 0; 2053 _flag_k = FK_TEST; 2054 L_3607EA37: 2055 PUSH32(esp, 0xCu); /* 0x3607EA37: push 0xc */ 2056 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607EA39: mov byte ptr [ebp - 4], 1 */ 2057 MEM32(esi + 0x28) = edi; /* 0x3607EA3D: mov dword ptr [esi + 0x28], edi */ 2058 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EA40: call 0x3615fd6a */ /* not lifted */ 2059 RECOMP_FLAGS_IN(); 2060 edi = eax; /* 0x3607EA45: mov edi, eax */ 2061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2063 esp = esp + 4; /* 0x3607EA47: add esp, 4 */ 2064 _flag_k = FK_ADD; 2065 MEM32(ebp + (-0x18)) = edi; /* 0x3607EA4A: mov dword ptr [ebp - 0x18], edi */ 2066 /* cmp edi, ebx */ /* 0x3607EA4D: cmp edi, ebx */ 2067 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2069 _flag_k = FK_CMP; 2070 MEM8(ebp + (-0x4)) = (uint8_t)(5); /* 0x3607EA4F: mov byte ptr [ebp - 4], 5 */ 2071 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EA71; /* 0x3607EA53: je 0x3607ea71 */ 2072 L_3607EA55: 2073 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3607EA55: mov cl, byte ptr [ebp - 0xd] */ 2074 PUSH32(esp, 0xCu); /* 0x3607EA58: push 0xc */ 2075 MEM8(edi) = (uint8_t)(LO8(ecx)); /* 0x3607EA5A: mov byte ptr [edi], cl */ 2076 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EA5C: call 0x3615fd6a */ /* not lifted */ 2077 RECOMP_FLAGS_IN(); 2078 MEM32(eax) = eax; /* 0x3607EA61: mov dword ptr [eax], eax */ 2079 MEM32(eax + 0x4) = eax; /* 0x3607EA63: mov dword ptr [eax + 4], eax */ 2080 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2081 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2082 esp = esp + 4; /* 0x3607EA66: add esp, 4 */ 2083 _flag_k = FK_ADD; 2084 MEM32(edi + 0x4) = eax; /* 0x3607EA69: mov dword ptr [edi + 4], eax */ 2085 MEM32(edi + 0x8) = ebx; /* 0x3607EA6C: mov dword ptr [edi + 8], ebx */ 2086 goto L_3607EA73; /* 0x3607EA6F: jmp 0x3607ea73 */ 2087 L_3607EA71: 2088 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2089 edi = 0; /* 0x3607EA71: xor edi, edi */ 2090 _cf = 0; 2091 _flag_k = FK_TEST; 2092 L_3607EA73: 2093 PUSH32(esp, 0xCu); /* 0x3607EA73: push 0xc */ 2094 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607EA75: mov byte ptr [ebp - 4], 1 */ 2095 MEM32(esi + 0x20) = edi; /* 0x3607EA79: mov dword ptr [esi + 0x20], edi */ 2096 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EA7C: call 0x3615fd6a */ /* not lifted */ 2097 RECOMP_FLAGS_IN(); 2098 edi = eax; /* 0x3607EA81: mov edi, eax */ 2099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2101 esp = esp + 4; /* 0x3607EA83: add esp, 4 */ 2102 _flag_k = FK_ADD; 2103 MEM32(ebp + (-0x18)) = edi; /* 0x3607EA86: mov dword ptr [ebp - 0x18], edi */ 2104 /* cmp edi, ebx */ /* 0x3607EA89: cmp edi, ebx */ 2105 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2107 _flag_k = FK_CMP; 2108 MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x3607EA8B: mov byte ptr [ebp - 4], 6 */ 2109 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EAAD; /* 0x3607EA8F: je 0x3607eaad */ 2110 L_3607EA91: 2111 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3607EA91: mov dl, byte ptr [ebp - 0xd] */ 2112 PUSH32(esp, 0x10u); /* 0x3607EA94: push 0x10 */ 2113 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x3607EA96: mov byte ptr [edi], dl */ 2114 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EA98: call 0x3615fd6a */ /* not lifted */ 2115 RECOMP_FLAGS_IN(); 2116 MEM32(eax) = eax; /* 0x3607EA9D: mov dword ptr [eax], eax */ 2117 MEM32(eax + 0x4) = eax; /* 0x3607EA9F: mov dword ptr [eax + 4], eax */ 2118 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2120 esp = esp + 4; /* 0x3607EAA2: add esp, 4 */ 2121 _flag_k = FK_ADD; 2122 MEM32(edi + 0x4) = eax; /* 0x3607EAA5: mov dword ptr [edi + 4], eax */ 2123 MEM32(edi + 0x8) = ebx; /* 0x3607EAA8: mov dword ptr [edi + 8], ebx */ 2124 goto L_3607EAAF; /* 0x3607EAAB: jmp 0x3607eaaf */ 2125 L_3607EAAD: 2126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2127 edi = 0; /* 0x3607EAAD: xor edi, edi */ 2128 _cf = 0; 2129 _flag_k = FK_TEST; 2130 L_3607EAAF: 2131 PUSH32(esp, 0xCu); /* 0x3607EAAF: push 0xc */ 2132 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607EAB1: mov byte ptr [ebp - 4], 1 */ 2133 MEM32(esi + 0x2C) = edi; /* 0x3607EAB5: mov dword ptr [esi + 0x2c], edi */ 2134 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EAB8: call 0x3615fd6a */ /* not lifted */ 2135 RECOMP_FLAGS_IN(); 2136 edi = eax; /* 0x3607EABD: mov edi, eax */ 2137 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2138 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2139 esp = esp + 4; /* 0x3607EABF: add esp, 4 */ 2140 _flag_k = FK_ADD; 2141 MEM32(ebp + (-0x18)) = edi; /* 0x3607EAC2: mov dword ptr [ebp - 0x18], edi */ 2142 /* cmp edi, ebx */ /* 0x3607EAC5: cmp edi, ebx */ 2143 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2145 _flag_k = FK_CMP; 2146 MEM8(ebp + (-0x4)) = (uint8_t)(7); /* 0x3607EAC7: mov byte ptr [ebp - 4], 7 */ 2147 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EAE9; /* 0x3607EACB: je 0x3607eae9 */ 2148 L_3607EACD: 2149 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3607EACD: mov al, byte ptr [ebp - 0xd] */ 2150 PUSH32(esp, 0xCu); /* 0x3607EAD0: push 0xc */ 2151 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x3607EAD2: mov byte ptr [edi], al */ 2152 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EAD4: call 0x3615fd6a */ /* not lifted */ 2153 RECOMP_FLAGS_IN(); 2154 MEM32(eax) = eax; /* 0x3607EAD9: mov dword ptr [eax], eax */ 2155 MEM32(eax + 0x4) = eax; /* 0x3607EADB: mov dword ptr [eax + 4], eax */ 2156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2157 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2158 esp = esp + 4; /* 0x3607EADE: add esp, 4 */ 2159 _flag_k = FK_ADD; 2160 MEM32(edi + 0x4) = eax; /* 0x3607EAE1: mov dword ptr [edi + 4], eax */ 2161 MEM32(edi + 0x8) = ebx; /* 0x3607EAE4: mov dword ptr [edi + 8], ebx */ 2162 goto L_3607EAEB; /* 0x3607EAE7: jmp 0x3607eaeb */ 2163 L_3607EAE9: 2164 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2165 edi = 0; /* 0x3607EAE9: xor edi, edi */ 2166 _cf = 0; 2167 _flag_k = FK_TEST; 2168 L_3607EAEB: 2169 PUSH32(esp, 0x10u); /* 0x3607EAEB: push 0x10 */ 2170 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607EAED: mov byte ptr [ebp - 4], 1 */ 2171 MEM32(esi + 0x30) = edi; /* 0x3607EAF1: mov dword ptr [esi + 0x30], edi */ 2172 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EAF4: call 0x3615fd6a */ /* not lifted */ 2173 RECOMP_FLAGS_IN(); 2174 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2176 esp = esp + 4; /* 0x3607EAF9: add esp, 4 */ 2177 _flag_k = FK_ADD; 2178 /* cmp eax, ebx */ /* 0x3607EAFC: cmp eax, ebx */ 2179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2181 _flag_k = FK_CMP; 2182 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EB10; /* 0x3607EAFE: je 0x3607eb10 */ 2183 L_3607EB00: 2184 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3607EB00: mov cl, byte ptr [ebp - 0xd] */ 2185 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3607EB03: mov byte ptr [eax], cl */ 2186 MEM32(eax + 0x4) = ebx; /* 0x3607EB05: mov dword ptr [eax + 4], ebx */ 2187 MEM32(eax + 0x8) = ebx; /* 0x3607EB08: mov dword ptr [eax + 8], ebx */ 2188 MEM32(eax + 0xC) = ebx; /* 0x3607EB0B: mov dword ptr [eax + 0xc], ebx */ 2189 goto L_3607EB12; /* 0x3607EB0E: jmp 0x3607eb12 */ 2190 L_3607EB10: 2191 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2192 eax = 0; /* 0x3607EB10: xor eax, eax */ 2193 _cf = 0; 2194 _flag_k = FK_TEST; 2195 L_3607EB12: 2196 PUSH32(esp, 0x10u); /* 0x3607EB12: push 0x10 */ 2197 MEM32(esi + 0x34) = eax; /* 0x3607EB14: mov dword ptr [esi + 0x34], eax */ 2198 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EB17: call 0x3615fd6a */ /* not lifted */ 2199 RECOMP_FLAGS_IN(); 2200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2202 esp = esp + 4; /* 0x3607EB1C: add esp, 4 */ 2203 _flag_k = FK_ADD; 2204 /* cmp eax, ebx */ /* 0x3607EB1F: cmp eax, ebx */ 2205 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2206 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2207 _flag_k = FK_CMP; 2208 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EB33; /* 0x3607EB21: je 0x3607eb33 */ 2209 L_3607EB23: 2210 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3607EB23: mov dl, byte ptr [ebp - 0xd] */ 2211 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3607EB26: mov byte ptr [eax], dl */ 2212 MEM32(eax + 0x4) = ebx; /* 0x3607EB28: mov dword ptr [eax + 4], ebx */ 2213 MEM32(eax + 0x8) = ebx; /* 0x3607EB2B: mov dword ptr [eax + 8], ebx */ 2214 MEM32(eax + 0xC) = ebx; /* 0x3607EB2E: mov dword ptr [eax + 0xc], ebx */ 2215 goto L_3607EB35; /* 0x3607EB31: jmp 0x3607eb35 */ 2216 L_3607EB33: 2217 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2218 eax = 0; /* 0x3607EB33: xor eax, eax */ 2219 _cf = 0; 2220 _flag_k = FK_TEST; 2221 L_3607EB35: 2222 PUSH32(esp, 0x10u); /* 0x3607EB35: push 0x10 */ 2223 MEM32(esi + 0x38) = eax; /* 0x3607EB37: mov dword ptr [esi + 0x38], eax */ 2224 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EB3A: call 0x3615fd6a */ /* not lifted */ 2225 RECOMP_FLAGS_IN(); 2226 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2227 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2228 esp = esp + 4; /* 0x3607EB3F: add esp, 4 */ 2229 _flag_k = FK_ADD; 2230 /* cmp eax, ebx */ /* 0x3607EB42: cmp eax, ebx */ 2231 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2233 _flag_k = FK_CMP; 2234 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EB56; /* 0x3607EB44: je 0x3607eb56 */ 2235 L_3607EB46: 2236 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3607EB46: mov cl, byte ptr [ebp - 0xd] */ 2237 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3607EB49: mov byte ptr [eax], cl */ 2238 MEM32(eax + 0x4) = ebx; /* 0x3607EB4B: mov dword ptr [eax + 4], ebx */ 2239 MEM32(eax + 0x8) = ebx; /* 0x3607EB4E: mov dword ptr [eax + 8], ebx */ 2240 MEM32(eax + 0xC) = ebx; /* 0x3607EB51: mov dword ptr [eax + 0xc], ebx */ 2241 goto L_3607EB58; /* 0x3607EB54: jmp 0x3607eb58 */ 2242 L_3607EB56: 2243 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2244 eax = 0; /* 0x3607EB56: xor eax, eax */ 2245 _cf = 0; 2246 _flag_k = FK_TEST; 2247 L_3607EB58: 2248 PUSH32(esp, 0x10u); /* 0x3607EB58: push 0x10 */ 2249 MEM32(esi + 0x3C) = eax; /* 0x3607EB5A: mov dword ptr [esi + 0x3c], eax */ 2250 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EB5D: call 0x3615fd6a */ /* not lifted */ 2251 RECOMP_FLAGS_IN(); 2252 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2253 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2254 esp = esp + 4; /* 0x3607EB62: add esp, 4 */ 2255 _flag_k = FK_ADD; 2256 /* cmp eax, ebx */ /* 0x3607EB65: cmp eax, ebx */ 2257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2259 _flag_k = FK_CMP; 2260 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EB79; /* 0x3607EB67: je 0x3607eb79 */ 2261 L_3607EB69: 2262 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3607EB69: mov dl, byte ptr [ebp - 0xd] */ 2263 MEM8(eax) = (uint8_t)(LO8(edx)); /* 0x3607EB6C: mov byte ptr [eax], dl */ 2264 MEM32(eax + 0x4) = ebx; /* 0x3607EB6E: mov dword ptr [eax + 4], ebx */ 2265 MEM32(eax + 0x8) = ebx; /* 0x3607EB71: mov dword ptr [eax + 8], ebx */ 2266 MEM32(eax + 0xC) = ebx; /* 0x3607EB74: mov dword ptr [eax + 0xc], ebx */ 2267 goto L_3607EB7B; /* 0x3607EB77: jmp 0x3607eb7b */ 2268 L_3607EB79: 2269 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2270 eax = 0; /* 0x3607EB79: xor eax, eax */ 2271 _cf = 0; 2272 _flag_k = FK_TEST; 2273 L_3607EB7B: 2274 PUSH32(esp, 0x10u); /* 0x3607EB7B: push 0x10 */ 2275 MEM32(esi + 0x40) = eax; /* 0x3607EB7D: mov dword ptr [esi + 0x40], eax */ 2276 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EB80: call 0x3615fd6a */ /* not lifted */ 2277 RECOMP_FLAGS_IN(); 2278 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2279 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2280 esp = esp + 4; /* 0x3607EB85: add esp, 4 */ 2281 _flag_k = FK_ADD; 2282 /* cmp eax, ebx */ /* 0x3607EB88: cmp eax, ebx */ 2283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2285 _flag_k = FK_CMP; 2286 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EB9C; /* 0x3607EB8A: je 0x3607eb9c */ 2287 L_3607EB8C: 2288 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3607EB8C: mov cl, byte ptr [ebp - 0xd] */ 2289 MEM8(eax) = (uint8_t)(LO8(ecx)); /* 0x3607EB8F: mov byte ptr [eax], cl */ 2290 MEM32(eax + 0x4) = ebx; /* 0x3607EB91: mov dword ptr [eax + 4], ebx */ 2291 MEM32(eax + 0x8) = ebx; /* 0x3607EB94: mov dword ptr [eax + 8], ebx */ 2292 MEM32(eax + 0xC) = ebx; /* 0x3607EB97: mov dword ptr [eax + 0xc], ebx */ 2293 goto L_3607EB9E; /* 0x3607EB9A: jmp 0x3607eb9e */ 2294 L_3607EB9C: 2295 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2296 eax = 0; /* 0x3607EB9C: xor eax, eax */ 2297 _cf = 0; 2298 _flag_k = FK_TEST; 2299 L_3607EB9E: 2300 PUSH32(esp, 0x14u); /* 0x3607EB9E: push 0x14 */ 2301 MEM32(esi + 0x44) = eax; /* 0x3607EBA0: mov dword ptr [esi + 0x44], eax */ 2302 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EBA3: call 0x3615fd6a */ /* not lifted */ 2303 RECOMP_FLAGS_IN(); 2304 edi = eax; /* 0x3607EBA8: mov edi, eax */ 2305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2307 esp = esp + 4; /* 0x3607EBAA: add esp, 4 */ 2308 _flag_k = FK_ADD; 2309 MEM32(ebp + (-0x18)) = edi; /* 0x3607EBAD: mov dword ptr [ebp - 0x18], edi */ 2310 /* cmp edi, ebx */ /* 0x3607EBB0: cmp edi, ebx */ 2311 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2313 _flag_k = FK_CMP; 2314 MEM8(ebp + (-0x4)) = (uint8_t)(8); /* 0x3607EBB2: mov byte ptr [ebp - 4], 8 */ 2315 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EBCF; /* 0x3607EBB6: je 0x3607ebcf */ 2316 L_3607EBB8: 2317 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x3607EBB8: mov dl, byte ptr [ebp - 0xd] */ 2318 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3607EBBB: mov al, byte ptr [ebp - 0xd] */ 2319 ecx = edi; /* 0x3607EBBE: mov ecx, edi */ 2320 MEM8(edi) = (uint8_t)(LO8(edx)); /* 0x3607EBC0: mov byte ptr [edi], dl */ 2321 MEM8(edi + 0x1) = (uint8_t)(LO8(eax)); /* 0x3607EBC2: mov byte ptr [edi + 1], al */ 2322 MEM8(edi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3607EBC5: mov byte ptr [edi + 0xc], bl */ 2323 RECOMP_ICALL(0x36068320u); /* 0x3607EBC8: call 0x36068320 */ /* not lifted */ 2324 RECOMP_FLAGS_IN(); 2325 goto L_3607EBD1; /* 0x3607EBCD: jmp 0x3607ebd1 */ 2326 L_3607EBCF: 2327 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2328 edi = 0; /* 0x3607EBCF: xor edi, edi */ 2329 _cf = 0; 2330 _flag_k = FK_TEST; 2331 L_3607EBD1: 2332 PUSH32(esp, 0xCu); /* 0x3607EBD1: push 0xc */ 2333 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607EBD3: mov byte ptr [ebp - 4], 1 */ 2334 MEM32(esi + 0x48) = edi; /* 0x3607EBD7: mov dword ptr [esi + 0x48], edi */ 2335 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EBDA: call 0x3615fd6a */ /* not lifted */ 2336 RECOMP_FLAGS_IN(); 2337 edi = eax; /* 0x3607EBDF: mov edi, eax */ 2338 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2340 esp = esp + 4; /* 0x3607EBE1: add esp, 4 */ 2341 _flag_k = FK_ADD; 2342 MEM32(ebp + (-0x18)) = edi; /* 0x3607EBE4: mov dword ptr [ebp - 0x18], edi */ 2343 /* cmp edi, ebx */ /* 0x3607EBE7: cmp edi, ebx */ 2344 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2346 _flag_k = FK_CMP; 2347 MEM8(ebp + (-0x4)) = (uint8_t)(9); /* 0x3607EBE9: mov byte ptr [ebp - 4], 9 */ 2348 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EC1F; /* 0x3607EBED: je 0x3607ec1f */ 2349 L_3607EBEF: 2350 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x3607EBEF: mov cl, byte ptr [ebp - 0xd] */ 2351 PUSH32(esp, 0x10u); /* 0x3607EBF2: push 0x10 */ 2352 MEM8(edi) = (uint8_t)(LO8(ecx)); /* 0x3607EBF4: mov byte ptr [edi], cl */ 2353 RECOMP_ICALL(0x3615FD6Au); /* 0x3607EBF6: call 0x3615fd6a */ /* not lifted */ 2354 RECOMP_FLAGS_IN(); 2355 MEM32(eax) = eax; /* 0x3607EBFB: mov dword ptr [eax], eax */ 2356 MEM32(eax + 0x4) = eax; /* 0x3607EBFD: mov dword ptr [eax + 4], eax */ 2357 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2359 esp = esp + 4; /* 0x3607EC00: add esp, 4 */ 2360 _flag_k = FK_ADD; 2361 MEM32(edi + 0x4) = eax; /* 0x3607EC03: mov dword ptr [edi + 4], eax */ 2362 MEM32(edi + 0x8) = ebx; /* 0x3607EC06: mov dword ptr [edi + 8], ebx */ 2363 MEM32(esi + 0x58) = edi; /* 0x3607EC09: mov dword ptr [esi + 0x58], edi */ 2364 edi = POP32_VAL(esp); /* 0x3607EC0C: pop edi */ 2365 eax = esi; /* 0x3607EC0D: mov eax, esi */ 2366 esi = POP32_VAL(esp); /* 0x3607EC0F: pop esi */ 2367 ebx = POP32_VAL(esp); /* 0x3607EC10: pop ebx */ 2368 ecx = MEM32(ebp + (-0xC)); /* 0x3607EC11: mov ecx, dword ptr [ebp - 0xc] */ 2369 MEM32(FS_BASE + (0)) = ecx; /* 0x3607EC14: mov dword ptr fs:[0], ecx */ 2370 esp = ebp; /* 0x3607EC1B: mov esp, ebp */ 2371 ebp = POP32_VAL(esp); /* 0x3607EC1D: pop ebp */ 2372 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607EC1E: ret */ 2373 L_3607EC1F: 2374 ecx = MEM32(ebp + (-0xC)); /* 0x3607EC1F: mov ecx, dword ptr [ebp - 0xc] */ 2375 MEM32(esi + 0x58) = ebx; /* 0x3607EC22: mov dword ptr [esi + 0x58], ebx */ 2376 edi = POP32_VAL(esp); /* 0x3607EC25: pop edi */ 2377 eax = esi; /* 0x3607EC26: mov eax, esi */ 2378 esi = POP32_VAL(esp); /* 0x3607EC28: pop esi */ 2379 ebx = POP32_VAL(esp); /* 0x3607EC29: pop ebx */ 2380 MEM32(FS_BASE + (0)) = ecx; /* 0x3607EC2A: mov dword ptr fs:[0], ecx */ 2381 esp = ebp; /* 0x3607EC31: mov esp, ebp */ 2382 ebp = POP32_VAL(esp); /* 0x3607EC33: pop ebp */ 2383 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607EC34: ret */ 2384 RECOMP_REGS_OUT(); 2385 } 2386 2387 void sub_3607EC40(void) { 2388 int _fpu_cmp = 0; 2389 uint32_t _cf = 0; 2390 int _df = 1; 2391 uint32_t _flag_k = FK_NONE; 2392 uint32_t _flag_a = 0, _flag_b = 0; 2393 uint32_t _itail_tgt = 0; 2394 RECOMP_REGS_LOCALS 2395 RECOMP_ENTER(0x3607EC40u); 2396 2397 L_3607EC40: 2398 PUSH32(esp, ebp); /* 0x3607EC40: push ebp */ 2399 ebp = esp; /* 0x3607EC41: mov ebp, esp */ 2400 PUSH32(esp, esi); /* 0x3607EC43: push esi */ 2401 esi = ecx; /* 0x3607EC44: mov esi, ecx */ 2402 RECOMP_ICALL(0x3607EC70u); /* 0x3607EC46: call 0x3607ec70 */ /* not lifted */ 2403 RECOMP_FLAGS_IN(); 2404 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607EC4B: test byte ptr [ebp + 8], 1 */ 2405 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 2406 _cf = 0; 2407 _flag_k = FK_NARROW(FK_TEST, 24); 2408 if (TEST_Z(_flag_a, _flag_b)) goto L_3607EC5A; /* 0x3607EC4F: je 0x3607ec5a */ 2409 L_3607EC51: 2410 PUSH32(esp, esi); /* 0x3607EC51: push esi */ 2411 RECOMP_ICALL(0x3615FCC4u); /* 0x3607EC52: call 0x3615fcc4 */ /* not lifted */ 2412 RECOMP_FLAGS_IN(); 2413 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2414 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2415 esp = esp + 4; /* 0x3607EC57: add esp, 4 */ 2416 _flag_k = FK_ADD; 2417 L_3607EC5A: 2418 eax = esi; /* 0x3607EC5A: mov eax, esi */ 2419 esi = POP32_VAL(esp); /* 0x3607EC5C: pop esi */ 2420 ebp = POP32_VAL(esp); /* 0x3607EC5D: pop ebp */ 2421 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607EC5E: ret 4 */ 2422 RECOMP_REGS_OUT(); 2423 } 2424 2425 void sub_3607EC70(void) { 2426 int _fpu_cmp = 0; 2427 uint32_t _cf = 0; 2428 int _df = 1; 2429 uint32_t _flag_k = FK_NONE; 2430 uint32_t _flag_a = 0, _flag_b = 0; 2431 uint32_t _itail_tgt = 0; 2432 RECOMP_REGS_LOCALS 2433 RECOMP_ENTER(0x3607EC70u); 2434 2435 L_3607EC70: 2436 PUSH32(esp, ebp); /* 0x3607EC70: push ebp */ 2437 ebp = esp; /* 0x3607EC71: mov ebp, esp */ 2438 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607EC73: push -1 */ 2439 PUSH32(esp, 0x361655D4u); /* 0x3607EC75: push 0x361655d4 */ 2440 eax = MEM32(FS_BASE + (0)); /* 0x3607EC7A: mov eax, dword ptr fs:[0] */ 2441 PUSH32(esp, eax); /* 0x3607EC80: push eax */ 2442 MEM32(FS_BASE + (0)) = esp; /* 0x3607EC81: mov dword ptr fs:[0], esp */ 2443 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2444 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2445 esp = esp - 0xCu; /* 0x3607EC88: sub esp, 0xc */ 2446 _flag_k = FK_CMP; 2447 PUSH32(esp, ebx); /* 0x3607EC8B: push ebx */ 2448 PUSH32(esp, esi); /* 0x3607EC8C: push esi */ 2449 esi = ecx; /* 0x3607EC8D: mov esi, ecx */ 2450 PUSH32(esp, edi); /* 0x3607EC8F: push edi */ 2451 MEM32(ebp + (-0x10)) = esi; /* 0x3607EC90: mov dword ptr [ebp - 0x10], esi */ 2452 MEM32(esi) = 0x36171768u; /* 0x3607EC93: mov dword ptr [esi], 0x36171768 */ 2453 ecx = MEM32(esi + 0x5C); /* 0x3607EC99: mov ecx, dword ptr [esi + 0x5c] */ 2454 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2455 ebx = 0; /* 0x3607EC9C: xor ebx, ebx */ 2456 _cf = 0; 2457 _flag_k = FK_TEST; 2458 /* cmp ecx, ebx */ /* 0x3607EC9E: cmp ecx, ebx */ 2459 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 2460 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2461 _flag_k = FK_CMP; 2462 MEM32(ebp + (-0x4)) = 1; /* 0x3607ECA0: mov dword ptr [ebp - 4], 1 */ 2463 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ECAF; /* 0x3607ECA7: je 0x3607ecaf */ 2464 L_3607ECA9: 2465 eax = MEM32(ecx); /* 0x3607ECA9: mov eax, dword ptr [ecx] */ 2466 PUSH32(esp, 1); /* 0x3607ECAB: push 1 */ 2467 RECOMP_ICALL(MEM32(eax)); /* 0x3607ECAD: call dword ptr [eax] */ 2468 RECOMP_FLAGS_IN(); 2469 L_3607ECAF: 2470 edi = MEM32(esi + 0x20); /* 0x3607ECAF: mov edi, dword ptr [esi + 0x20] */ 2471 /* cmp edi, ebx */ /* 0x3607ECB2: cmp edi, ebx */ 2472 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2474 _flag_k = FK_CMP; 2475 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ECC6; /* 0x3607ECB4: je 0x3607ecc6 */ 2476 L_3607ECB6: 2477 ecx = edi; /* 0x3607ECB6: mov ecx, edi */ 2478 RECOMP_ICALL(0x36096200u); /* 0x3607ECB8: call 0x36096200 */ /* not lifted */ 2479 RECOMP_FLAGS_IN(); 2480 PUSH32(esp, edi); /* 0x3607ECBD: push edi */ 2481 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ECBE: call 0x3615fcc4 */ /* not lifted */ 2482 RECOMP_FLAGS_IN(); 2483 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2484 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2485 esp = esp + 4; /* 0x3607ECC3: add esp, 4 */ 2486 _flag_k = FK_ADD; 2487 L_3607ECC6: 2488 edi = MEM32(esi + 0x24); /* 0x3607ECC6: mov edi, dword ptr [esi + 0x24] */ 2489 /* cmp edi, ebx */ /* 0x3607ECC9: cmp edi, ebx */ 2490 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2491 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2492 _flag_k = FK_CMP; 2493 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ECDD; /* 0x3607ECCB: je 0x3607ecdd */ 2494 L_3607ECCD: 2495 ecx = edi; /* 0x3607ECCD: mov ecx, edi */ 2496 RECOMP_ICALL(0x36096200u); /* 0x3607ECCF: call 0x36096200 */ /* not lifted */ 2497 RECOMP_FLAGS_IN(); 2498 PUSH32(esp, edi); /* 0x3607ECD4: push edi */ 2499 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ECD5: call 0x3615fcc4 */ /* not lifted */ 2500 RECOMP_FLAGS_IN(); 2501 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2502 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2503 esp = esp + 4; /* 0x3607ECDA: add esp, 4 */ 2504 _flag_k = FK_ADD; 2505 L_3607ECDD: 2506 edi = MEM32(esi + 0x28); /* 0x3607ECDD: mov edi, dword ptr [esi + 0x28] */ 2507 /* cmp edi, ebx */ /* 0x3607ECE0: cmp edi, ebx */ 2508 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2510 _flag_k = FK_CMP; 2511 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ECF4; /* 0x3607ECE2: je 0x3607ecf4 */ 2512 L_3607ECE4: 2513 ecx = edi; /* 0x3607ECE4: mov ecx, edi */ 2514 RECOMP_ICALL(0x36096200u); /* 0x3607ECE6: call 0x36096200 */ /* not lifted */ 2515 RECOMP_FLAGS_IN(); 2516 PUSH32(esp, edi); /* 0x3607ECEB: push edi */ 2517 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ECEC: call 0x3615fcc4 */ /* not lifted */ 2518 RECOMP_FLAGS_IN(); 2519 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2521 esp = esp + 4; /* 0x3607ECF1: add esp, 4 */ 2522 _flag_k = FK_ADD; 2523 L_3607ECF4: 2524 edi = MEM32(esi + 0x2C); /* 0x3607ECF4: mov edi, dword ptr [esi + 0x2c] */ 2525 /* cmp edi, ebx */ /* 0x3607ECF7: cmp edi, ebx */ 2526 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2528 _flag_k = FK_CMP; 2529 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ED30; /* 0x3607ECF9: je 0x3607ed30 */ 2530 L_3607ECFB: 2531 eax = MEM32(edi + 0x4); /* 0x3607ECFB: mov eax, dword ptr [edi + 4] */ 2532 PUSH32(esp, eax); /* 0x3607ECFE: push eax */ 2533 ecx = ebp + (-0x14); /* 0x3607ECFF: lea ecx, [ebp - 0x14] */ 2534 PUSH32(esp, ecx); /* 0x3607ED02: push ecx */ 2535 ecx = edi; /* 0x3607ED03: mov ecx, edi */ 2536 RECOMP_ICALL(0x3614FC30u); /* 0x3607ED05: call 0x3614fc30 */ /* not lifted */ 2537 RECOMP_FLAGS_IN(); 2538 edx = MEM32(eax); /* 0x3607ED0A: mov edx, dword ptr [eax] */ 2539 PUSH32(esp, edx); /* 0x3607ED0C: push edx */ 2540 eax = ebp + (-0x18); /* 0x3607ED0D: lea eax, [ebp - 0x18] */ 2541 PUSH32(esp, eax); /* 0x3607ED10: push eax */ 2542 ecx = edi; /* 0x3607ED11: mov ecx, edi */ 2543 RECOMP_ICALL(0x360AA870u); /* 0x3607ED13: call 0x360aa870 */ /* not lifted */ 2544 RECOMP_FLAGS_IN(); 2545 eax = MEM32(edi + 0x4); /* 0x3607ED18: mov eax, dword ptr [edi + 4] */ 2546 PUSH32(esp, eax); /* 0x3607ED1B: push eax */ 2547 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ED1C: call 0x3615fcc4 */ /* not lifted */ 2548 RECOMP_FLAGS_IN(); 2549 PUSH32(esp, edi); /* 0x3607ED21: push edi */ 2550 MEM32(edi + 0x4) = ebx; /* 0x3607ED22: mov dword ptr [edi + 4], ebx */ 2551 MEM32(edi + 0x8) = ebx; /* 0x3607ED25: mov dword ptr [edi + 8], ebx */ 2552 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ED28: call 0x3615fcc4 */ /* not lifted */ 2553 RECOMP_FLAGS_IN(); 2554 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2555 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2556 esp = esp + 8; /* 0x3607ED2D: add esp, 8 */ 2557 _flag_k = FK_ADD; 2558 L_3607ED30: 2559 edi = MEM32(esi + 0x30); /* 0x3607ED30: mov edi, dword ptr [esi + 0x30] */ 2560 /* cmp edi, ebx */ /* 0x3607ED33: cmp edi, ebx */ 2561 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2563 _flag_k = FK_CMP; 2564 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ED47; /* 0x3607ED35: je 0x3607ed47 */ 2565 L_3607ED37: 2566 ecx = edi; /* 0x3607ED37: mov ecx, edi */ 2567 RECOMP_ICALL(0x36096200u); /* 0x3607ED39: call 0x36096200 */ /* not lifted */ 2568 RECOMP_FLAGS_IN(); 2569 PUSH32(esp, edi); /* 0x3607ED3E: push edi */ 2570 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ED3F: call 0x3615fcc4 */ /* not lifted */ 2571 RECOMP_FLAGS_IN(); 2572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2574 esp = esp + 4; /* 0x3607ED44: add esp, 4 */ 2575 _flag_k = FK_ADD; 2576 L_3607ED47: 2577 edi = MEM32(esi + 0x34); /* 0x3607ED47: mov edi, dword ptr [esi + 0x34] */ 2578 /* cmp edi, ebx */ /* 0x3607ED4A: cmp edi, ebx */ 2579 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2581 _flag_k = FK_CMP; 2582 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ED78; /* 0x3607ED4C: je 0x3607ed78 */ 2583 L_3607ED4E: 2584 ecx = MEM32(edi + 0x8); /* 0x3607ED4E: mov ecx, dword ptr [edi + 8] */ 2585 edx = MEM32(edi + 0x4); /* 0x3607ED51: mov edx, dword ptr [edi + 4] */ 2586 PUSH32(esp, ecx); /* 0x3607ED54: push ecx */ 2587 PUSH32(esp, edx); /* 0x3607ED55: push edx */ 2588 ecx = edi; /* 0x3607ED56: mov ecx, edi */ 2589 RECOMP_ICALL(0x36030CF0u); /* 0x3607ED58: call 0x36030cf0 */ /* not lifted */ 2590 RECOMP_FLAGS_IN(); 2591 eax = MEM32(edi + 0x4); /* 0x3607ED5D: mov eax, dword ptr [edi + 4] */ 2592 PUSH32(esp, eax); /* 0x3607ED60: push eax */ 2593 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ED61: call 0x3615fcc4 */ /* not lifted */ 2594 RECOMP_FLAGS_IN(); 2595 PUSH32(esp, edi); /* 0x3607ED66: push edi */ 2596 MEM32(edi + 0x4) = ebx; /* 0x3607ED67: mov dword ptr [edi + 4], ebx */ 2597 MEM32(edi + 0x8) = ebx; /* 0x3607ED6A: mov dword ptr [edi + 8], ebx */ 2598 MEM32(edi + 0xC) = ebx; /* 0x3607ED6D: mov dword ptr [edi + 0xc], ebx */ 2599 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ED70: call 0x3615fcc4 */ /* not lifted */ 2600 RECOMP_FLAGS_IN(); 2601 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2602 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2603 esp = esp + 8; /* 0x3607ED75: add esp, 8 */ 2604 _flag_k = FK_ADD; 2605 L_3607ED78: 2606 edi = MEM32(esi + 0x38); /* 0x3607ED78: mov edi, dword ptr [esi + 0x38] */ 2607 /* cmp edi, ebx */ /* 0x3607ED7B: cmp edi, ebx */ 2608 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2610 _flag_k = FK_CMP; 2611 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607ED8F; /* 0x3607ED7D: je 0x3607ed8f */ 2612 L_3607ED7F: 2613 ecx = edi; /* 0x3607ED7F: mov ecx, edi */ 2614 RECOMP_ICALL(0x360765D0u); /* 0x3607ED81: call 0x360765d0 */ /* not lifted */ 2615 RECOMP_FLAGS_IN(); 2616 PUSH32(esp, edi); /* 0x3607ED86: push edi */ 2617 RECOMP_ICALL(0x3615FCC4u); /* 0x3607ED87: call 0x3615fcc4 */ /* not lifted */ 2618 RECOMP_FLAGS_IN(); 2619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2621 esp = esp + 4; /* 0x3607ED8C: add esp, 4 */ 2622 _flag_k = FK_ADD; 2623 L_3607ED8F: 2624 edi = MEM32(esi + 0x40); /* 0x3607ED8F: mov edi, dword ptr [esi + 0x40] */ 2625 /* cmp edi, ebx */ /* 0x3607ED92: cmp edi, ebx */ 2626 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2628 _flag_k = FK_CMP; 2629 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EDC0; /* 0x3607ED94: je 0x3607edc0 */ 2630 L_3607ED96: 2631 eax = MEM32(edi + 0x8); /* 0x3607ED96: mov eax, dword ptr [edi + 8] */ 2632 ecx = MEM32(edi + 0x4); /* 0x3607ED99: mov ecx, dword ptr [edi + 4] */ 2633 PUSH32(esp, eax); /* 0x3607ED9C: push eax */ 2634 PUSH32(esp, ecx); /* 0x3607ED9D: push ecx */ 2635 ecx = edi; /* 0x3607ED9E: mov ecx, edi */ 2636 RECOMP_ICALL(0x36030CF0u); /* 0x3607EDA0: call 0x36030cf0 */ /* not lifted */ 2637 RECOMP_FLAGS_IN(); 2638 eax = MEM32(edi + 0x4); /* 0x3607EDA5: mov eax, dword ptr [edi + 4] */ 2639 PUSH32(esp, eax); /* 0x3607EDA8: push eax */ 2640 RECOMP_ICALL(0x3615FCC4u); /* 0x3607EDA9: call 0x3615fcc4 */ /* not lifted */ 2641 RECOMP_FLAGS_IN(); 2642 PUSH32(esp, edi); /* 0x3607EDAE: push edi */ 2643 MEM32(edi + 0x4) = ebx; /* 0x3607EDAF: mov dword ptr [edi + 4], ebx */ 2644 MEM32(edi + 0x8) = ebx; /* 0x3607EDB2: mov dword ptr [edi + 8], ebx */ 2645 MEM32(edi + 0xC) = ebx; /* 0x3607EDB5: mov dword ptr [edi + 0xc], ebx */ 2646 RECOMP_ICALL(0x3615FCC4u); /* 0x3607EDB8: call 0x3615fcc4 */ /* not lifted */ 2647 RECOMP_FLAGS_IN(); 2648 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2649 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2650 esp = esp + 8; /* 0x3607EDBD: add esp, 8 */ 2651 _flag_k = FK_ADD; 2652 L_3607EDC0: 2653 edi = MEM32(esi + 0x44); /* 0x3607EDC0: mov edi, dword ptr [esi + 0x44] */ 2654 /* cmp edi, ebx */ /* 0x3607EDC3: cmp edi, ebx */ 2655 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2656 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2657 _flag_k = FK_CMP; 2658 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EDD7; /* 0x3607EDC5: je 0x3607edd7 */ 2659 L_3607EDC7: 2660 ecx = edi; /* 0x3607EDC7: mov ecx, edi */ 2661 RECOMP_ICALL(0x360765D0u); /* 0x3607EDC9: call 0x360765d0 */ /* not lifted */ 2662 RECOMP_FLAGS_IN(); 2663 PUSH32(esp, edi); /* 0x3607EDCE: push edi */ 2664 RECOMP_ICALL(0x3615FCC4u); /* 0x3607EDCF: call 0x3615fcc4 */ /* not lifted */ 2665 RECOMP_FLAGS_IN(); 2666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2668 esp = esp + 4; /* 0x3607EDD4: add esp, 4 */ 2669 _flag_k = FK_ADD; 2670 L_3607EDD7: 2671 edi = MEM32(esi + 0x3C); /* 0x3607EDD7: mov edi, dword ptr [esi + 0x3c] */ 2672 /* cmp edi, ebx */ /* 0x3607EDDA: cmp edi, ebx */ 2673 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2675 _flag_k = FK_CMP; 2676 MEM32(esi + 0x38) = ebx; /* 0x3607EDDC: mov dword ptr [esi + 0x38], ebx */ 2677 MEM32(esi + 0x40) = ebx; /* 0x3607EDDF: mov dword ptr [esi + 0x40], ebx */ 2678 MEM32(esi + 0x44) = ebx; /* 0x3607EDE2: mov dword ptr [esi + 0x44], ebx */ 2679 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EE11; /* 0x3607EDE5: je 0x3607ee11 */ 2680 L_3607EDE7: 2681 edx = MEM32(edi + 0x8); /* 0x3607EDE7: mov edx, dword ptr [edi + 8] */ 2682 eax = MEM32(edi + 0x4); /* 0x3607EDEA: mov eax, dword ptr [edi + 4] */ 2683 PUSH32(esp, edx); /* 0x3607EDED: push edx */ 2684 PUSH32(esp, eax); /* 0x3607EDEE: push eax */ 2685 ecx = edi; /* 0x3607EDEF: mov ecx, edi */ 2686 RECOMP_ICALL(0x36030CF0u); /* 0x3607EDF1: call 0x36030cf0 */ /* not lifted */ 2687 RECOMP_FLAGS_IN(); 2688 eax = MEM32(edi + 0x4); /* 0x3607EDF6: mov eax, dword ptr [edi + 4] */ 2689 PUSH32(esp, eax); /* 0x3607EDF9: push eax */ 2690 RECOMP_ICALL(0x3615FCC4u); /* 0x3607EDFA: call 0x3615fcc4 */ /* not lifted */ 2691 RECOMP_FLAGS_IN(); 2692 PUSH32(esp, edi); /* 0x3607EDFF: push edi */ 2693 MEM32(edi + 0x4) = ebx; /* 0x3607EE00: mov dword ptr [edi + 4], ebx */ 2694 MEM32(edi + 0x8) = ebx; /* 0x3607EE03: mov dword ptr [edi + 8], ebx */ 2695 MEM32(edi + 0xC) = ebx; /* 0x3607EE06: mov dword ptr [edi + 0xc], ebx */ 2696 RECOMP_ICALL(0x3615FCC4u); /* 0x3607EE09: call 0x3615fcc4 */ /* not lifted */ 2697 RECOMP_FLAGS_IN(); 2698 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2700 esp = esp + 8; /* 0x3607EE0E: add esp, 8 */ 2701 _flag_k = FK_ADD; 2702 L_3607EE11: 2703 edi = MEM32(esi + 0x58); /* 0x3607EE11: mov edi, dword ptr [esi + 0x58] */ 2704 /* cmp edi, ebx */ /* 0x3607EE14: cmp edi, ebx */ 2705 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2707 _flag_k = FK_CMP; 2708 MEM32(esi + 0x3C) = ebx; /* 0x3607EE16: mov dword ptr [esi + 0x3c], ebx */ 2709 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EE2B; /* 0x3607EE19: je 0x3607ee2b */ 2710 L_3607EE1B: 2711 ecx = edi; /* 0x3607EE1B: mov ecx, edi */ 2712 RECOMP_ICALL(0x36096200u); /* 0x3607EE1D: call 0x36096200 */ /* not lifted */ 2713 RECOMP_FLAGS_IN(); 2714 PUSH32(esp, edi); /* 0x3607EE22: push edi */ 2715 RECOMP_ICALL(0x3615FCC4u); /* 0x3607EE23: call 0x3615fcc4 */ /* not lifted */ 2716 RECOMP_FLAGS_IN(); 2717 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2718 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2719 esp = esp + 4; /* 0x3607EE28: add esp, 4 */ 2720 _flag_k = FK_ADD; 2721 L_3607EE2B: 2722 ecx = esi + 0x68; /* 0x3607EE2B: lea ecx, [esi + 0x68] */ 2723 MEM32(esi + 0x58) = ebx; /* 0x3607EE2E: mov dword ptr [esi + 0x58], ebx */ 2724 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3607EE31: mov byte ptr [ebp - 4], bl */ 2725 RECOMP_ICALL(0x360BFE90u); /* 0x3607EE34: call 0x360bfe90 */ /* not lifted */ 2726 RECOMP_FLAGS_IN(); 2727 ecx = esi; /* 0x3607EE39: mov ecx, esi */ 2728 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607EE3B: mov dword ptr [ebp - 4], 0xffffffff */ 2729 RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x3607EE42: call dword ptr [0x3616ffd4] */ 2730 RECOMP_FLAGS_IN(); 2731 ecx = MEM32(ebp + (-0xC)); /* 0x3607EE48: mov ecx, dword ptr [ebp - 0xc] */ 2732 edi = POP32_VAL(esp); /* 0x3607EE4B: pop edi */ 2733 esi = POP32_VAL(esp); /* 0x3607EE4C: pop esi */ 2734 ebx = POP32_VAL(esp); /* 0x3607EE4D: pop ebx */ 2735 MEM32(FS_BASE + (0)) = ecx; /* 0x3607EE4E: mov dword ptr fs:[0], ecx */ 2736 esp = ebp; /* 0x3607EE55: mov esp, ebp */ 2737 ebp = POP32_VAL(esp); /* 0x3607EE57: pop ebp */ 2738 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607EE58: ret */ 2739 RECOMP_REGS_OUT(); 2740 } 2741 2742 void sub_3607EE60(void) { 2743 int _fpu_cmp = 0; 2744 uint32_t _cf = 0; 2745 int _df = 1; 2746 uint32_t _flag_k = FK_NONE; 2747 uint32_t _flag_a = 0, _flag_b = 0; 2748 uint32_t _itail_tgt = 0; 2749 RECOMP_REGS_LOCALS 2750 RECOMP_ENTER(0x3607EE60u); 2751 2752 L_3607EE60: 2753 eax = ecx + 0x4; /* 0x3607EE60: lea eax, [ecx + 4] */ 2754 /* cmp MEM32(eax), 0xC350u */ /* 0x3607EE63: cmp dword ptr [eax], 0xc350 */ 2755 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xC350u); 2756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2757 _flag_k = FK_CMP; 2758 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EE71; /* 0x3607EE69: je 0x3607ee71 */ 2759 L_3607EE6B: 2760 eax = 3; /* 0x3607EE6B: mov eax, 3 */ 2761 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607EE70: ret */ 2762 L_3607EE71: 2763 PUSH32(esp, eax); /* 0x3607EE71: push eax */ 2764 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607EE72: call dword ptr [0x3616ff70] */ 2765 RECOMP_FLAGS_IN(); 2766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2768 esp = esp + 4; /* 0x3607EE78: add esp, 4 */ 2769 _flag_k = FK_ADD; 2770 /* test eax, eax */ /* 0x3607EE7B: test eax, eax */ 2771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2772 _cf = 0; 2773 _flag_k = FK_TEST; 2774 if (TEST_Z(_flag_a, _flag_b)) goto L_3607EE8D; /* 0x3607EE7D: je 0x3607ee8d */ 2775 L_3607EE7F: 2776 /* cmp MEM8(eax + 0x94), 1 */ /* 0x3607EE7F: cmp byte ptr [eax + 0x94], 1 */ 2777 _flag_a = (uint32_t)(MEM8(eax + 0x94)) << 24; _flag_b = (uint32_t)(1) << 24; 2778 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2779 _flag_k = FK_NARROW(FK_CMP, 24); 2780 eax = 1; /* 0x3607EE86: mov eax, 1 */ 2781 if (CMP_NE(_flag_a, _flag_b)) goto L_3607EE92; /* 0x3607EE8B: jne 0x3607ee92 */ 2782 L_3607EE8D: 2783 eax = 2; /* 0x3607EE8D: mov eax, 2 */ 2784 L_3607EE92: 2785 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607EE92: ret */ 2786 RECOMP_REGS_OUT(); 2787 } 2788 2789 void sub_3607EEA0(void) { 2790 int _fpu_cmp = 0; 2791 uint32_t _cf = 0; 2792 int _df = 1; 2793 uint32_t _flag_k = FK_NONE; 2794 uint32_t _flag_a = 0, _flag_b = 0; 2795 uint32_t _itail_tgt = 0; 2796 RECOMP_REGS_LOCALS 2797 RECOMP_ENTER(0x3607EEA0u); 2798 2799 L_3607EEA0: 2800 PUSH32(esp, ebp); /* 0x3607EEA0: push ebp */ 2801 ebp = esp; /* 0x3607EEA1: mov ebp, esp */ 2802 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2804 esp = esp - 0x18u; /* 0x3607EEA3: sub esp, 0x18 */ 2805 _flag_k = FK_CMP; 2806 PUSH32(esp, ebx); /* 0x3607EEA6: push ebx */ 2807 PUSH32(esp, esi); /* 0x3607EEA7: push esi */ 2808 PUSH32(esp, edi); /* 0x3607EEA8: push edi */ 2809 PUSH32(esp, 0); /* 0x3607EEA9: push 0 */ 2810 PUSH32(esp, 0x361B2CD8u); /* 0x3607EEAB: push 0x361b2cd8 */ 2811 ebx = ecx; /* 0x3607EEB0: mov ebx, ecx */ 2812 PUSH32(esp, 0x361B2CC0u); /* 0x3607EEB2: push 0x361b2cc0 */ 2813 eax = ebx + 0x4; /* 0x3607EEB7: lea eax, [ebx + 4] */ 2814 PUSH32(esp, 0); /* 0x3607EEBA: push 0 */ 2815 PUSH32(esp, eax); /* 0x3607EEBC: push eax */ 2816 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607EEBD: call dword ptr [0x3616ff70] */ 2817 RECOMP_FLAGS_IN(); 2818 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2819 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2820 esp = esp + 4; /* 0x3607EEC3: add esp, 4 */ 2821 _flag_k = FK_ADD; 2822 PUSH32(esp, eax); /* 0x3607EEC6: push eax */ 2823 RECOMP_ICALL(0x3615FD86u); /* 0x3607EEC7: call 0x3615fd86 */ /* not lifted */ 2824 RECOMP_FLAGS_IN(); 2825 edi = eax; /* 0x3607EECC: mov edi, eax */ 2826 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2827 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2828 esp = esp + 0x14u; /* 0x3607EECE: add esp, 0x14 */ 2829 _flag_k = FK_ADD; 2830 /* test edi, edi */ /* 0x3607EED1: test edi, edi */ 2831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 2832 _cf = 0; 2833 _flag_k = FK_TEST; 2834 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F5A4; /* 0x3607EED3: je 0x3607f5a4 */ 2835 L_3607EED9: 2836 ecx = MEM32(ebx + 0x48); /* 0x3607EED9: mov ecx, dword ptr [ebx + 0x48] */ 2837 PUSH32(esp, ecx); /* 0x3607EEDC: push ecx */ 2838 ecx = MEM32(edi + 0x154); /* 0x3607EEDD: mov ecx, dword ptr [edi + 0x154] */ 2839 RECOMP_ICALL(0x360761F0u); /* 0x3607EEE3: call 0x360761f0 */ /* not lifted */ 2840 RECOMP_FLAGS_IN(); 2841 edx = MEM32(ebx + 0x5C); /* 0x3607EEE8: mov edx, dword ptr [ebx + 0x5c] */ 2842 MEM32(ebx + 0x48) = 0; /* 0x3607EEEB: mov dword ptr [ebx + 0x48], 0 */ 2843 eax = MEM32(edi + 0x150); /* 0x3607EEF2: mov eax, dword ptr [edi + 0x150] */ 2844 ecx = MEM32(eax + 0xC); /* 0x3607EEF8: mov ecx, dword ptr [eax + 0xc] */ 2845 PUSH32(esp, edx); /* 0x3607EEFB: push edx */ 2846 RECOMP_ICALL(0x3602DCE0u); /* 0x3607EEFC: call 0x3602dce0 */ /* not lifted */ 2847 RECOMP_FLAGS_IN(); 2848 ecx = MEM32(edi + 0x150); /* 0x3607EF01: mov ecx, dword ptr [edi + 0x150] */ 2849 RECOMP_ICALL(0x3605F220u); /* 0x3607EF07: call 0x3605f220 */ /* not lifted */ 2850 RECOMP_FLAGS_IN(); 2851 ecx = MEM32(edi + 0x150); /* 0x3607EF0C: mov ecx, dword ptr [edi + 0x150] */ 2852 RECOMP_ICALL(0x3605F150u); /* 0x3607EF12: call 0x3605f150 */ /* not lifted */ 2853 RECOMP_FLAGS_IN(); 2854 ecx = MEM32(ebx + 0x38); /* 0x3607EF17: mov ecx, dword ptr [ebx + 0x38] */ 2855 eax = MEM32(ecx + 0x4); /* 0x3607EF1A: mov eax, dword ptr [ecx + 4] */ 2856 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3607EF1D: cmp eax, dword ptr [ecx + 8] */ 2857 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2858 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2859 _flag_k = FK_CMP; 2860 MEM32(ebp + (-0x10)) = eax; /* 0x3607EF20: mov dword ptr [ebp - 0x10], eax */ 2861 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EF7F; /* 0x3607EF23: je 0x3607ef7f */ 2862 L_3607EF25: 2863 ecx = MEM32(eax + 0x4); /* 0x3607EF25: mov ecx, dword ptr [eax + 4] */ 2864 /* cmp ecx, 0x499602D2u */ /* 0x3607EF28: cmp ecx, 0x499602d2 */ 2865 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x499602D2u); 2866 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2867 _flag_k = FK_CMP; 2868 edx = MEM32(eax); /* 0x3607EF2E: mov edx, dword ptr [eax] */ 2869 MEM32(ebp + (-0x8)) = edx; /* 0x3607EF30: mov dword ptr [ebp - 8], edx */ 2870 MEM32(ebp + (-0x4)) = ecx; /* 0x3607EF33: mov dword ptr [ebp - 4], ecx */ 2871 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EF6F; /* 0x3607EF36: je 0x3607ef6f */ 2872 L_3607EF38: 2873 eax = MEM32(edi + 0xE4); /* 0x3607EF38: mov eax, dword ptr [edi + 0xe4] */ 2874 esi = edi + 0xE4; /* 0x3607EF3E: lea esi, [edi + 0xe4] */ 2875 PUSH32(esp, edx); /* 0x3607EF44: push edx */ 2876 ecx = esi; /* 0x3607EF45: mov ecx, esi */ 2877 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3607EF47: call dword ptr [eax + 0x10] */ 2878 RECOMP_FLAGS_IN(); 2879 /* test LO8(eax), LO8(eax) */ /* 0x3607EF4A: test al, al */ 2880 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2881 _cf = 0; 2882 _flag_k = FK_NARROW(FK_TEST, 24); 2883 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607EF5D; /* 0x3607EF4C: jne 0x3607ef5d */ 2884 L_3607EF4E: 2885 eax = MEM32(ebp + (-0x4)); /* 0x3607EF4E: mov eax, dword ptr [ebp - 4] */ 2886 ecx = MEM32(ebp + (-0x8)); /* 0x3607EF51: mov ecx, dword ptr [ebp - 8] */ 2887 edx = MEM32(esi); /* 0x3607EF54: mov edx, dword ptr [esi] */ 2888 PUSH32(esp, eax); /* 0x3607EF56: push eax */ 2889 PUSH32(esp, ecx); /* 0x3607EF57: push ecx */ 2890 ecx = esi; /* 0x3607EF58: mov ecx, esi */ 2891 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3607EF5A: call dword ptr [edx + 0xc] */ 2892 RECOMP_FLAGS_IN(); 2893 L_3607EF5D: 2894 eax = MEM32(ebp + (-0x4)); /* 0x3607EF5D: mov eax, dword ptr [ebp - 4] */ 2895 ecx = MEM32(ebp + (-0x8)); /* 0x3607EF60: mov ecx, dword ptr [ebp - 8] */ 2896 edx = MEM32(esi); /* 0x3607EF63: mov edx, dword ptr [esi] */ 2897 PUSH32(esp, eax); /* 0x3607EF65: push eax */ 2898 PUSH32(esp, ecx); /* 0x3607EF66: push ecx */ 2899 ecx = esi; /* 0x3607EF67: mov ecx, esi */ 2900 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607EF69: call dword ptr [edx + 8] */ 2901 RECOMP_FLAGS_IN(); 2902 eax = MEM32(ebp + (-0x10)); /* 0x3607EF6C: mov eax, dword ptr [ebp - 0x10] */ 2903 L_3607EF6F: 2904 edx = MEM32(ebx + 0x38); /* 0x3607EF6F: mov edx, dword ptr [ebx + 0x38] */ 2905 ecx = MEM32(edx + 0x8); /* 0x3607EF72: mov ecx, dword ptr [edx + 8] */ 2906 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2908 eax = eax + 8; /* 0x3607EF75: add eax, 8 */ 2909 _flag_k = FK_ADD; 2910 /* cmp eax, ecx */ /* 0x3607EF78: cmp eax, ecx */ 2911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2912 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2913 _flag_k = FK_CMP; 2914 MEM32(ebp + (-0x10)) = eax; /* 0x3607EF7A: mov dword ptr [ebp - 0x10], eax */ 2915 RECOMP_BACKEDGE(); 2916 if (CMP_NE(_flag_a, _flag_b)) goto L_3607EF25; /* 0x3607EF7D: jne 0x3607ef25 */ 2917 L_3607EF7F: 2918 ecx = MEM32(ebx + 0x3C); /* 0x3607EF7F: mov ecx, dword ptr [ebx + 0x3c] */ 2919 eax = MEM32(ecx + 0x4); /* 0x3607EF82: mov eax, dword ptr [ecx + 4] */ 2920 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3607EF85: cmp eax, dword ptr [ecx + 8] */ 2921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2922 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2923 _flag_k = FK_CMP; 2924 MEM32(ebp + (-0x10)) = eax; /* 0x3607EF88: mov dword ptr [ebp - 0x10], eax */ 2925 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EFE7; /* 0x3607EF8B: je 0x3607efe7 */ 2926 L_3607EF8D: 2927 ecx = MEM32(eax + 0x4); /* 0x3607EF8D: mov ecx, dword ptr [eax + 4] */ 2928 /* cmp ecx, 0x499602D2u */ /* 0x3607EF90: cmp ecx, 0x499602d2 */ 2929 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x499602D2u); 2930 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2931 _flag_k = FK_CMP; 2932 edx = MEM32(eax); /* 0x3607EF96: mov edx, dword ptr [eax] */ 2933 MEM32(ebp + (-0x8)) = edx; /* 0x3607EF98: mov dword ptr [ebp - 8], edx */ 2934 MEM32(ebp + (-0x4)) = ecx; /* 0x3607EF9B: mov dword ptr [ebp - 4], ecx */ 2935 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607EFD7; /* 0x3607EF9E: je 0x3607efd7 */ 2936 L_3607EFA0: 2937 eax = MEM32(edi + 0xE4); /* 0x3607EFA0: mov eax, dword ptr [edi + 0xe4] */ 2938 esi = edi + 0xE4; /* 0x3607EFA6: lea esi, [edi + 0xe4] */ 2939 PUSH32(esp, edx); /* 0x3607EFAC: push edx */ 2940 ecx = esi; /* 0x3607EFAD: mov ecx, esi */ 2941 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3607EFAF: call dword ptr [eax + 0x10] */ 2942 RECOMP_FLAGS_IN(); 2943 /* test LO8(eax), LO8(eax) */ /* 0x3607EFB2: test al, al */ 2944 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 2945 _cf = 0; 2946 _flag_k = FK_NARROW(FK_TEST, 24); 2947 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607EFC5; /* 0x3607EFB4: jne 0x3607efc5 */ 2948 L_3607EFB6: 2949 eax = MEM32(ebp + (-0x4)); /* 0x3607EFB6: mov eax, dword ptr [ebp - 4] */ 2950 ecx = MEM32(ebp + (-0x8)); /* 0x3607EFB9: mov ecx, dword ptr [ebp - 8] */ 2951 edx = MEM32(esi); /* 0x3607EFBC: mov edx, dword ptr [esi] */ 2952 PUSH32(esp, eax); /* 0x3607EFBE: push eax */ 2953 PUSH32(esp, ecx); /* 0x3607EFBF: push ecx */ 2954 ecx = esi; /* 0x3607EFC0: mov ecx, esi */ 2955 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3607EFC2: call dword ptr [edx + 0xc] */ 2956 RECOMP_FLAGS_IN(); 2957 L_3607EFC5: 2958 eax = MEM32(ebp + (-0x4)); /* 0x3607EFC5: mov eax, dword ptr [ebp - 4] */ 2959 ecx = MEM32(ebp + (-0x8)); /* 0x3607EFC8: mov ecx, dword ptr [ebp - 8] */ 2960 edx = MEM32(esi); /* 0x3607EFCB: mov edx, dword ptr [esi] */ 2961 PUSH32(esp, eax); /* 0x3607EFCD: push eax */ 2962 PUSH32(esp, ecx); /* 0x3607EFCE: push ecx */ 2963 ecx = esi; /* 0x3607EFCF: mov ecx, esi */ 2964 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607EFD1: call dword ptr [edx + 8] */ 2965 RECOMP_FLAGS_IN(); 2966 eax = MEM32(ebp + (-0x10)); /* 0x3607EFD4: mov eax, dword ptr [ebp - 0x10] */ 2967 L_3607EFD7: 2968 edx = MEM32(ebx + 0x3C); /* 0x3607EFD7: mov edx, dword ptr [ebx + 0x3c] */ 2969 ecx = MEM32(edx + 0x8); /* 0x3607EFDA: mov ecx, dword ptr [edx + 8] */ 2970 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 2971 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2972 eax = eax + 8; /* 0x3607EFDD: add eax, 8 */ 2973 _flag_k = FK_ADD; 2974 /* cmp eax, ecx */ /* 0x3607EFE0: cmp eax, ecx */ 2975 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2977 _flag_k = FK_CMP; 2978 MEM32(ebp + (-0x10)) = eax; /* 0x3607EFE2: mov dword ptr [ebp - 0x10], eax */ 2979 RECOMP_BACKEDGE(); 2980 if (CMP_NE(_flag_a, _flag_b)) goto L_3607EF8D; /* 0x3607EFE5: jne 0x3607ef8d */ 2981 L_3607EFE7: 2982 ecx = MEM32(ebx + 0x40); /* 0x3607EFE7: mov ecx, dword ptr [ebx + 0x40] */ 2983 eax = MEM32(ecx + 0x4); /* 0x3607EFEA: mov eax, dword ptr [ecx + 4] */ 2984 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3607EFED: cmp eax, dword ptr [ecx + 8] */ 2985 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2986 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2987 _flag_k = FK_CMP; 2988 MEM32(ebp + (-0x10)) = eax; /* 0x3607EFF0: mov dword ptr [ebp - 0x10], eax */ 2989 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F051; /* 0x3607EFF3: je 0x3607f051 */ 2990 L_3607EFF5: 2991 edx = MEM32(eax); /* 0x3607EFF5: mov edx, dword ptr [eax] */ 2992 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2993 ecx = 0; /* 0x3607EFF7: xor ecx, ecx */ 2994 _cf = 0; 2995 _flag_k = FK_TEST; 2996 SET_LO8(ecx, MEM8(eax + 0x4)); /* 0x3607EFF9: mov cl, byte ptr [eax + 4] */ 2997 MEM32(ebp + (-0x8)) = edx; /* 0x3607EFFC: mov dword ptr [ebp - 8], edx */ 2998 /* cmp ecx, 0x499602D2u */ /* 0x3607EFFF: cmp ecx, 0x499602d2 */ 2999 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x499602D2u); 3000 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3001 _flag_k = FK_CMP; 3002 MEM32(ebp + (-0x4)) = ecx; /* 0x3607F005: mov dword ptr [ebp - 4], ecx */ 3003 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F041; /* 0x3607F008: je 0x3607f041 */ 3004 L_3607F00A: 3005 eax = MEM32(edi + 0xE4); /* 0x3607F00A: mov eax, dword ptr [edi + 0xe4] */ 3006 esi = edi + 0xE4; /* 0x3607F010: lea esi, [edi + 0xe4] */ 3007 PUSH32(esp, edx); /* 0x3607F016: push edx */ 3008 ecx = esi; /* 0x3607F017: mov ecx, esi */ 3009 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3607F019: call dword ptr [eax + 0x10] */ 3010 RECOMP_FLAGS_IN(); 3011 /* test LO8(eax), LO8(eax) */ /* 0x3607F01C: test al, al */ 3012 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3013 _cf = 0; 3014 _flag_k = FK_NARROW(FK_TEST, 24); 3015 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607F02F; /* 0x3607F01E: jne 0x3607f02f */ 3016 L_3607F020: 3017 eax = MEM32(ebp + (-0x4)); /* 0x3607F020: mov eax, dword ptr [ebp - 4] */ 3018 ecx = MEM32(ebp + (-0x8)); /* 0x3607F023: mov ecx, dword ptr [ebp - 8] */ 3019 edx = MEM32(esi); /* 0x3607F026: mov edx, dword ptr [esi] */ 3020 PUSH32(esp, eax); /* 0x3607F028: push eax */ 3021 PUSH32(esp, ecx); /* 0x3607F029: push ecx */ 3022 ecx = esi; /* 0x3607F02A: mov ecx, esi */ 3023 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3607F02C: call dword ptr [edx + 0xc] */ 3024 RECOMP_FLAGS_IN(); 3025 L_3607F02F: 3026 eax = MEM32(ebp + (-0x4)); /* 0x3607F02F: mov eax, dword ptr [ebp - 4] */ 3027 ecx = MEM32(ebp + (-0x8)); /* 0x3607F032: mov ecx, dword ptr [ebp - 8] */ 3028 edx = MEM32(esi); /* 0x3607F035: mov edx, dword ptr [esi] */ 3029 PUSH32(esp, eax); /* 0x3607F037: push eax */ 3030 PUSH32(esp, ecx); /* 0x3607F038: push ecx */ 3031 ecx = esi; /* 0x3607F039: mov ecx, esi */ 3032 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607F03B: call dword ptr [edx + 8] */ 3033 RECOMP_FLAGS_IN(); 3034 eax = MEM32(ebp + (-0x10)); /* 0x3607F03E: mov eax, dword ptr [ebp - 0x10] */ 3035 L_3607F041: 3036 edx = MEM32(ebx + 0x40); /* 0x3607F041: mov edx, dword ptr [ebx + 0x40] */ 3037 ecx = MEM32(edx + 0x8); /* 0x3607F044: mov ecx, dword ptr [edx + 8] */ 3038 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3039 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3040 eax = eax + 8; /* 0x3607F047: add eax, 8 */ 3041 _flag_k = FK_ADD; 3042 /* cmp eax, ecx */ /* 0x3607F04A: cmp eax, ecx */ 3043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3045 _flag_k = FK_CMP; 3046 MEM32(ebp + (-0x10)) = eax; /* 0x3607F04C: mov dword ptr [ebp - 0x10], eax */ 3047 RECOMP_BACKEDGE(); 3048 if (CMP_NE(_flag_a, _flag_b)) goto L_3607EFF5; /* 0x3607F04F: jne 0x3607eff5 */ 3049 L_3607F051: 3050 ecx = MEM32(ebx + 0x44); /* 0x3607F051: mov ecx, dword ptr [ebx + 0x44] */ 3051 eax = MEM32(ecx + 0x4); /* 0x3607F054: mov eax, dword ptr [ecx + 4] */ 3052 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3607F057: cmp eax, dword ptr [ecx + 8] */ 3053 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3055 _flag_k = FK_CMP; 3056 MEM32(ebp + (-0x10)) = eax; /* 0x3607F05A: mov dword ptr [ebp - 0x10], eax */ 3057 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F0BA; /* 0x3607F05D: je 0x3607f0ba */ 3058 L_3607F05F: 3059 ecx = (int32_t)(int16_t)MEM16(eax + 0x4); /* 0x3607F05F: movsx ecx, word ptr [eax + 4] */ 3060 /* cmp ecx, 0x499602D2u */ /* 0x3607F063: cmp ecx, 0x499602d2 */ 3061 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x499602D2u); 3062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3063 _flag_k = FK_CMP; 3064 edx = MEM32(eax); /* 0x3607F069: mov edx, dword ptr [eax] */ 3065 MEM32(ebp + (-0x8)) = edx; /* 0x3607F06B: mov dword ptr [ebp - 8], edx */ 3066 MEM32(ebp + (-0x4)) = ecx; /* 0x3607F06E: mov dword ptr [ebp - 4], ecx */ 3067 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F0AA; /* 0x3607F071: je 0x3607f0aa */ 3068 L_3607F073: 3069 eax = MEM32(edi + 0xE4); /* 0x3607F073: mov eax, dword ptr [edi + 0xe4] */ 3070 esi = edi + 0xE4; /* 0x3607F079: lea esi, [edi + 0xe4] */ 3071 PUSH32(esp, edx); /* 0x3607F07F: push edx */ 3072 ecx = esi; /* 0x3607F080: mov ecx, esi */ 3073 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3607F082: call dword ptr [eax + 0x10] */ 3074 RECOMP_FLAGS_IN(); 3075 /* test LO8(eax), LO8(eax) */ /* 0x3607F085: test al, al */ 3076 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3077 _cf = 0; 3078 _flag_k = FK_NARROW(FK_TEST, 24); 3079 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607F098; /* 0x3607F087: jne 0x3607f098 */ 3080 L_3607F089: 3081 eax = MEM32(ebp + (-0x4)); /* 0x3607F089: mov eax, dword ptr [ebp - 4] */ 3082 ecx = MEM32(ebp + (-0x8)); /* 0x3607F08C: mov ecx, dword ptr [ebp - 8] */ 3083 edx = MEM32(esi); /* 0x3607F08F: mov edx, dword ptr [esi] */ 3084 PUSH32(esp, eax); /* 0x3607F091: push eax */ 3085 PUSH32(esp, ecx); /* 0x3607F092: push ecx */ 3086 ecx = esi; /* 0x3607F093: mov ecx, esi */ 3087 RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x3607F095: call dword ptr [edx + 0xc] */ 3088 RECOMP_FLAGS_IN(); 3089 L_3607F098: 3090 eax = MEM32(ebp + (-0x4)); /* 0x3607F098: mov eax, dword ptr [ebp - 4] */ 3091 ecx = MEM32(ebp + (-0x8)); /* 0x3607F09B: mov ecx, dword ptr [ebp - 8] */ 3092 edx = MEM32(esi); /* 0x3607F09E: mov edx, dword ptr [esi] */ 3093 PUSH32(esp, eax); /* 0x3607F0A0: push eax */ 3094 PUSH32(esp, ecx); /* 0x3607F0A1: push ecx */ 3095 ecx = esi; /* 0x3607F0A2: mov ecx, esi */ 3096 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607F0A4: call dword ptr [edx + 8] */ 3097 RECOMP_FLAGS_IN(); 3098 eax = MEM32(ebp + (-0x10)); /* 0x3607F0A7: mov eax, dword ptr [ebp - 0x10] */ 3099 L_3607F0AA: 3100 edx = MEM32(ebx + 0x44); /* 0x3607F0AA: mov edx, dword ptr [ebx + 0x44] */ 3101 ecx = MEM32(edx + 0x8); /* 0x3607F0AD: mov ecx, dword ptr [edx + 8] */ 3102 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3104 eax = eax + 8; /* 0x3607F0B0: add eax, 8 */ 3105 _flag_k = FK_ADD; 3106 /* cmp eax, ecx */ /* 0x3607F0B3: cmp eax, ecx */ 3107 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3108 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3109 _flag_k = FK_CMP; 3110 MEM32(ebp + (-0x10)) = eax; /* 0x3607F0B5: mov dword ptr [ebp - 0x10], eax */ 3111 RECOMP_BACKEDGE(); 3112 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F05F; /* 0x3607F0B8: jne 0x3607f05f */ 3113 L_3607F0BA: 3114 ecx = edi; /* 0x3607F0BA: mov ecx, edi */ 3115 RECOMP_ICALL(0x36071F20u); /* 0x3607F0BC: call 0x36071f20 */ /* not lifted */ 3116 RECOMP_FLAGS_IN(); 3117 eax = MEM32(eax + 0x8); /* 0x3607F0C1: mov eax, dword ptr [eax + 8] */ 3118 eax = MEM32(eax + 0x4); /* 0x3607F0C4: mov eax, dword ptr [eax + 4] */ 3119 ecx = edi; /* 0x3607F0C7: mov ecx, edi */ 3120 MEM32(ebp + (-0x14)) = eax; /* 0x3607F0C9: mov dword ptr [ebp - 0x14], eax */ 3121 RECOMP_ICALL(0x36071F20u); /* 0x3607F0CC: call 0x36071f20 */ /* not lifted */ 3122 RECOMP_FLAGS_IN(); 3123 ecx = MEM32(eax + 0x8); /* 0x3607F0D1: mov ecx, dword ptr [eax + 8] */ 3124 esi = MEM32(ebx + 0x20); /* 0x3607F0D4: mov esi, dword ptr [ebx + 0x20] */ 3125 eax = MEM32(esi + 0x8); /* 0x3607F0D7: mov eax, dword ptr [esi + 8] */ 3126 /* test eax, eax */ /* 0x3607F0DA: test eax, eax */ 3127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3128 _cf = 0; 3129 _flag_k = FK_TEST; 3130 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F0DC: mov dword ptr [ebp - 0x10], ecx */ 3131 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F102; /* 0x3607F0DF: je 0x3607f102 */ 3132 L_3607F0E1: 3133 edx = MEM32(esi + 0x4); /* 0x3607F0E1: mov edx, dword ptr [esi + 4] */ 3134 eax = MEM32(edx); /* 0x3607F0E4: mov eax, dword ptr [edx] */ 3135 PUSH32(esp, edx); /* 0x3607F0E6: push edx */ 3136 edx = MEM32(ebp + (-0x14)); /* 0x3607F0E7: mov edx, dword ptr [ebp - 0x14] */ 3137 PUSH32(esp, eax); /* 0x3607F0EA: push eax */ 3138 PUSH32(esp, esi); /* 0x3607F0EB: push esi */ 3139 PUSH32(esp, edx); /* 0x3607F0EC: push edx */ 3140 RECOMP_ICALL(0x3607F910u); /* 0x3607F0ED: call 0x3607f910 */ /* not lifted */ 3141 RECOMP_FLAGS_IN(); 3142 eax = MEM32(ebp + (-0x10)); /* 0x3607F0F2: mov eax, dword ptr [ebp - 0x10] */ 3143 ecx = MEM32(esi + 0x8); /* 0x3607F0F5: mov ecx, dword ptr [esi + 8] */ 3144 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 3145 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3146 MEM32(eax + 0x8) = MEM32(eax + 0x8) + ecx; /* 0x3607F0F8: add dword ptr [eax + 8], ecx */ 3147 _flag_k = FK_ADD; 3148 MEM32(esi + 0x8) = 0; /* 0x3607F0FB: mov dword ptr [esi + 8], 0 */ 3149 L_3607F102: 3150 esi = MEM32(ebx + 0x24); /* 0x3607F102: mov esi, dword ptr [ebx + 0x24] */ 3151 edx = MEM32(edi + 0x158); /* 0x3607F105: mov edx, dword ptr [edi + 0x158] */ 3152 eax = MEM32(esi + 0x8); /* 0x3607F10B: mov eax, dword ptr [esi + 8] */ 3153 /* test eax, eax */ /* 0x3607F10E: test eax, eax */ 3154 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3155 _cf = 0; 3156 _flag_k = FK_TEST; 3157 ecx = MEM32(edx + 0x10); /* 0x3607F110: mov ecx, dword ptr [edx + 0x10] */ 3158 MEM32(ebp + (-0x14)) = ecx; /* 0x3607F113: mov dword ptr [ebp - 0x14], ecx */ 3159 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F139; /* 0x3607F116: je 0x3607f139 */ 3160 L_3607F118: 3161 eax = MEM32(esi + 0x4); /* 0x3607F118: mov eax, dword ptr [esi + 4] */ 3162 edx = MEM32(eax); /* 0x3607F11B: mov edx, dword ptr [eax] */ 3163 PUSH32(esp, eax); /* 0x3607F11D: push eax */ 3164 eax = MEM32(ecx + 0x4); /* 0x3607F11E: mov eax, dword ptr [ecx + 4] */ 3165 PUSH32(esp, edx); /* 0x3607F121: push edx */ 3166 PUSH32(esp, esi); /* 0x3607F122: push esi */ 3167 PUSH32(esp, eax); /* 0x3607F123: push eax */ 3168 RECOMP_ICALL(0x3607F910u); /* 0x3607F124: call 0x3607f910 */ /* not lifted */ 3169 RECOMP_FLAGS_IN(); 3170 eax = MEM32(ebp + (-0x14)); /* 0x3607F129: mov eax, dword ptr [ebp - 0x14] */ 3171 ecx = MEM32(esi + 0x8); /* 0x3607F12C: mov ecx, dword ptr [esi + 8] */ 3172 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 3173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3174 MEM32(eax + 0x8) = MEM32(eax + 0x8) + ecx; /* 0x3607F12F: add dword ptr [eax + 8], ecx */ 3175 _flag_k = FK_ADD; 3176 MEM32(esi + 0x8) = 0; /* 0x3607F132: mov dword ptr [esi + 8], 0 */ 3177 L_3607F139: 3178 PUSH32(esp, 1); /* 0x3607F139: push 1 */ 3179 ecx = edi; /* 0x3607F13B: mov ecx, edi */ 3180 RECOMP_ICALL(0x36071F20u); /* 0x3607F13D: call 0x36071f20 */ /* not lifted */ 3181 RECOMP_FLAGS_IN(); 3182 ecx = eax; /* 0x3607F142: mov ecx, eax */ 3183 RECOMP_ICALL(0x3606C1B0u); /* 0x3607F144: call 0x3606c1b0 */ /* not lifted */ 3184 RECOMP_FLAGS_IN(); 3185 edx = MEM32(eax + 0x4); /* 0x3607F149: mov edx, dword ptr [eax + 4] */ 3186 esi = MEM32(ebx + 0x28); /* 0x3607F14C: mov esi, dword ptr [ebx + 0x28] */ 3187 PUSH32(esp, 1); /* 0x3607F14F: push 1 */ 3188 ecx = edi; /* 0x3607F151: mov ecx, edi */ 3189 MEM32(ebp + (-0x14)) = edx; /* 0x3607F153: mov dword ptr [ebp - 0x14], edx */ 3190 RECOMP_ICALL(0x36071F20u); /* 0x3607F156: call 0x36071f20 */ /* not lifted */ 3191 RECOMP_FLAGS_IN(); 3192 ecx = eax; /* 0x3607F15B: mov ecx, eax */ 3193 RECOMP_ICALL(0x3606C1B0u); /* 0x3607F15D: call 0x3606c1b0 */ /* not lifted */ 3194 RECOMP_FLAGS_IN(); 3195 ecx = eax; /* 0x3607F162: mov ecx, eax */ 3196 eax = MEM32(esi + 0x8); /* 0x3607F164: mov eax, dword ptr [esi + 8] */ 3197 /* test eax, eax */ /* 0x3607F167: test eax, eax */ 3198 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3199 _cf = 0; 3200 _flag_k = FK_TEST; 3201 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F169: mov dword ptr [ebp - 0x10], ecx */ 3202 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F18F; /* 0x3607F16C: je 0x3607f18f */ 3203 L_3607F16E: 3204 edx = MEM32(esi + 0x4); /* 0x3607F16E: mov edx, dword ptr [esi + 4] */ 3205 eax = MEM32(edx); /* 0x3607F171: mov eax, dword ptr [edx] */ 3206 PUSH32(esp, edx); /* 0x3607F173: push edx */ 3207 PUSH32(esp, eax); /* 0x3607F174: push eax */ 3208 eax = MEM32(ebp + (-0x14)); /* 0x3607F175: mov eax, dword ptr [ebp - 0x14] */ 3209 PUSH32(esp, esi); /* 0x3607F178: push esi */ 3210 PUSH32(esp, eax); /* 0x3607F179: push eax */ 3211 RECOMP_ICALL(0x3607F910u); /* 0x3607F17A: call 0x3607f910 */ /* not lifted */ 3212 RECOMP_FLAGS_IN(); 3213 eax = MEM32(ebp + (-0x10)); /* 0x3607F17F: mov eax, dword ptr [ebp - 0x10] */ 3214 ecx = MEM32(esi + 0x8); /* 0x3607F182: mov ecx, dword ptr [esi + 8] */ 3215 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 3216 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3217 MEM32(eax + 0x8) = MEM32(eax + 0x8) + ecx; /* 0x3607F185: add dword ptr [eax + 8], ecx */ 3218 _flag_k = FK_ADD; 3219 MEM32(esi + 0x8) = 0; /* 0x3607F188: mov dword ptr [esi + 8], 0 */ 3220 L_3607F18F: 3221 ecx = MEM32(ebx + 0x2C); /* 0x3607F18F: mov ecx, dword ptr [ebx + 0x2c] */ 3222 edx = ebp + (-0x18); /* 0x3607F192: lea edx, [ebp - 0x18] */ 3223 PUSH32(esp, edx); /* 0x3607F195: push edx */ 3224 RECOMP_ICALL(0x360C5CB0u); /* 0x3607F196: call 0x360c5cb0 */ /* not lifted */ 3225 RECOMP_FLAGS_IN(); 3226 eax = MEM32(eax); /* 0x3607F19B: mov eax, dword ptr [eax] */ 3227 PUSH32(esp, ecx); /* 0x3607F19D: push ecx */ 3228 ecx = esp; /* 0x3607F19E: mov ecx, esp */ 3229 MEM32(ecx) = eax; /* 0x3607F1A0: mov dword ptr [ecx], eax */ 3230 ecx = ebp + (-0x14); /* 0x3607F1A2: lea ecx, [ebp - 0x14] */ 3231 PUSH32(esp, ecx); /* 0x3607F1A5: push ecx */ 3232 ecx = MEM32(ebx + 0x2C); /* 0x3607F1A6: mov ecx, dword ptr [ebx + 0x2c] */ 3233 RECOMP_ICALL(0x3614FC30u); /* 0x3607F1A9: call 0x3614fc30 */ /* not lifted */ 3234 RECOMP_FLAGS_IN(); 3235 PUSH32(esp, ecx); /* 0x3607F1AE: push ecx */ 3236 ecx = esp; /* 0x3607F1AF: mov ecx, esp */ 3237 PUSH32(esp, eax); /* 0x3607F1B1: push eax */ 3238 RECOMP_ICALL(0x36003260u); /* 0x3607F1B2: call 0x36003260 */ /* not lifted */ 3239 RECOMP_FLAGS_IN(); 3240 edx = ebp + (-0x10); /* 0x3607F1B7: lea edx, [ebp - 0x10] */ 3241 PUSH32(esp, edx); /* 0x3607F1BA: push edx */ 3242 PUSH32(esp, 2); /* 0x3607F1BB: push 2 */ 3243 ecx = edi; /* 0x3607F1BD: mov ecx, edi */ 3244 RECOMP_ICALL(0x36071F20u); /* 0x3607F1BF: call 0x36071f20 */ /* not lifted */ 3245 RECOMP_FLAGS_IN(); 3246 ecx = eax; /* 0x3607F1C4: mov ecx, eax */ 3247 RECOMP_ICALL(0x3606C1B0u); /* 0x3607F1C6: call 0x3606c1b0 */ /* not lifted */ 3248 RECOMP_FLAGS_IN(); 3249 ecx = eax; /* 0x3607F1CB: mov ecx, eax */ 3250 RECOMP_ICALL(0x360C5CB0u); /* 0x3607F1CD: call 0x360c5cb0 */ /* not lifted */ 3251 RECOMP_FLAGS_IN(); 3252 eax = MEM32(eax); /* 0x3607F1D2: mov eax, dword ptr [eax] */ 3253 PUSH32(esp, eax); /* 0x3607F1D4: push eax */ 3254 PUSH32(esp, 2); /* 0x3607F1D5: push 2 */ 3255 ecx = edi; /* 0x3607F1D7: mov ecx, edi */ 3256 RECOMP_ICALL(0x36071F20u); /* 0x3607F1D9: call 0x36071f20 */ /* not lifted */ 3257 RECOMP_FLAGS_IN(); 3258 ecx = eax; /* 0x3607F1DE: mov ecx, eax */ 3259 RECOMP_ICALL(0x3606C1B0u); /* 0x3607F1E0: call 0x3606c1b0 */ /* not lifted */ 3260 RECOMP_FLAGS_IN(); 3261 ecx = eax; /* 0x3607F1E5: mov ecx, eax */ 3262 RECOMP_ICALL(0x3607F8A0u); /* 0x3607F1E7: call 0x3607f8a0 */ /* not lifted */ 3263 RECOMP_FLAGS_IN(); 3264 ecx = MEM32(ebx + 0x2C); /* 0x3607F1EC: mov ecx, dword ptr [ebx + 0x2c] */ 3265 eax = MEM32(ecx + 0x4); /* 0x3607F1EF: mov eax, dword ptr [ecx + 4] */ 3266 edx = MEM32(eax); /* 0x3607F1F2: mov edx, dword ptr [eax] */ 3267 PUSH32(esp, eax); /* 0x3607F1F4: push eax */ 3268 PUSH32(esp, edx); /* 0x3607F1F5: push edx */ 3269 edx = ebp + (-0x18); /* 0x3607F1F6: lea edx, [ebp - 0x18] */ 3270 PUSH32(esp, edx); /* 0x3607F1F9: push edx */ 3271 RECOMP_ICALL(0x360AA870u); /* 0x3607F1FA: call 0x360aa870 */ /* not lifted */ 3272 RECOMP_FLAGS_IN(); 3273 SET_LO8(eax, MEM8(ebx + 0x64)); /* 0x3607F1FF: mov al, byte ptr [ebx + 0x64] */ 3274 /* test LO8(eax), LO8(eax) */ /* 0x3607F202: test al, al */ 3275 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 3276 _cf = 0; 3277 _flag_k = FK_NARROW(FK_TEST, 24); 3278 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F23F; /* 0x3607F204: je 0x3607f23f */ 3279 L_3607F206: 3280 eax = MEM32(ebx + 0x4C); /* 0x3607F206: mov eax, dword ptr [ebx + 0x4c] */ 3281 PUSH32(esp, eax); /* 0x3607F209: push eax */ 3282 ecx = edi; /* 0x3607F20A: mov ecx, edi */ 3283 RECOMP_ICALL(0x36071E40u); /* 0x3607F20C: call 0x36071e40 */ /* not lifted */ 3284 RECOMP_FLAGS_IN(); 3285 ecx = eax; /* 0x3607F211: mov ecx, eax */ 3286 RECOMP_ICALL(0x36076EA0u); /* 0x3607F213: call 0x36076ea0 */ /* not lifted */ 3287 RECOMP_FLAGS_IN(); 3288 ecx = ebx + 0x50; /* 0x3607F218: lea ecx, [ebx + 0x50] */ 3289 PUSH32(esp, ecx); /* 0x3607F21B: push ecx */ 3290 ecx = edi; /* 0x3607F21C: mov ecx, edi */ 3291 RECOMP_ICALL(0x36071E40u); /* 0x3607F21E: call 0x36071e40 */ /* not lifted */ 3292 RECOMP_FLAGS_IN(); 3293 ecx = eax; /* 0x3607F223: mov ecx, eax */ 3294 RECOMP_ICALL(0x36076E60u); /* 0x3607F225: call 0x36076e60 */ /* not lifted */ 3295 RECOMP_FLAGS_IN(); 3296 esi = MEM32(ebx + 0x60); /* 0x3607F22A: mov esi, dword ptr [ebx + 0x60] */ 3297 ecx = edi; /* 0x3607F22D: mov ecx, edi */ 3298 RECOMP_ICALL(0x36071E40u); /* 0x3607F22F: call 0x36071e40 */ /* not lifted */ 3299 RECOMP_FLAGS_IN(); 3300 MEM32(eax + 0x24) = esi; /* 0x3607F234: mov dword ptr [eax + 0x24], esi */ 3301 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3302 eax = 0; /* 0x3607F237: xor eax, eax */ 3303 _cf = 0; 3304 _flag_k = FK_TEST; 3305 MEM32(ebx + 0x4C) = eax; /* 0x3607F239: mov dword ptr [ebx + 0x4c], eax */ 3306 MEM32(ebx + 0x60) = eax; /* 0x3607F23C: mov dword ptr [ebx + 0x60], eax */ 3307 L_3607F23F: 3308 ecx = edi; /* 0x3607F23F: mov ecx, edi */ 3309 RECOMP_ICALL(0x36071EB0u); /* 0x3607F241: call 0x36071eb0 */ /* not lifted */ 3310 RECOMP_FLAGS_IN(); 3311 eax = MEM32(eax); /* 0x3607F246: mov eax, dword ptr [eax] */ 3312 edx = MEM32(eax + 0x4); /* 0x3607F248: mov edx, dword ptr [eax + 4] */ 3313 ecx = edi; /* 0x3607F24B: mov ecx, edi */ 3314 MEM32(ebp + (-0x14)) = edx; /* 0x3607F24D: mov dword ptr [ebp - 0x14], edx */ 3315 RECOMP_ICALL(0x36071EB0u); /* 0x3607F250: call 0x36071eb0 */ /* not lifted */ 3316 RECOMP_FLAGS_IN(); 3317 ecx = MEM32(eax); /* 0x3607F255: mov ecx, dword ptr [eax] */ 3318 esi = MEM32(ebx + 0x30); /* 0x3607F257: mov esi, dword ptr [ebx + 0x30] */ 3319 eax = MEM32(esi + 0x8); /* 0x3607F25A: mov eax, dword ptr [esi + 8] */ 3320 /* test eax, eax */ /* 0x3607F25D: test eax, eax */ 3321 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3322 _cf = 0; 3323 _flag_k = FK_TEST; 3324 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F25F: mov dword ptr [ebp - 0x10], ecx */ 3325 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F285; /* 0x3607F262: je 0x3607f285 */ 3326 L_3607F264: 3327 edx = MEM32(esi + 0x4); /* 0x3607F264: mov edx, dword ptr [esi + 4] */ 3328 eax = MEM32(edx); /* 0x3607F267: mov eax, dword ptr [edx] */ 3329 PUSH32(esp, edx); /* 0x3607F269: push edx */ 3330 PUSH32(esp, eax); /* 0x3607F26A: push eax */ 3331 eax = MEM32(ebp + (-0x14)); /* 0x3607F26B: mov eax, dword ptr [ebp - 0x14] */ 3332 PUSH32(esp, esi); /* 0x3607F26E: push esi */ 3333 PUSH32(esp, eax); /* 0x3607F26F: push eax */ 3334 RECOMP_ICALL(0x3607F910u); /* 0x3607F270: call 0x3607f910 */ /* not lifted */ 3335 RECOMP_FLAGS_IN(); 3336 eax = MEM32(ebp + (-0x10)); /* 0x3607F275: mov eax, dword ptr [ebp - 0x10] */ 3337 ecx = MEM32(esi + 0x8); /* 0x3607F278: mov ecx, dword ptr [esi + 8] */ 3338 _flag_a = (uint32_t)(MEM32(eax + 0x8)); _flag_b = (uint32_t)(ecx); 3339 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3340 MEM32(eax + 0x8) = MEM32(eax + 0x8) + ecx; /* 0x3607F27B: add dword ptr [eax + 8], ecx */ 3341 _flag_k = FK_ADD; 3342 MEM32(esi + 0x8) = 0; /* 0x3607F27E: mov dword ptr [esi + 8], 0 */ 3343 L_3607F285: 3344 eax = MEM32(ebx + 0x34); /* 0x3607F285: mov eax, dword ptr [ebx + 0x34] */ 3345 ecx = MEM32(eax + 0x8); /* 0x3607F288: mov ecx, dword ptr [eax + 8] */ 3346 edx = MEM32(edi + 0x154); /* 0x3607F28B: mov edx, dword ptr [edi + 0x154] */ 3347 esi = MEM32(edx); /* 0x3607F291: mov esi, dword ptr [edx] */ 3348 eax = MEM32(eax + 0x4); /* 0x3607F293: mov eax, dword ptr [eax + 4] */ 3349 edx = MEM32(esi + 0x8); /* 0x3607F296: mov edx, dword ptr [esi + 8] */ 3350 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F299: mov dword ptr [ebp - 0x10], ecx */ 3351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3353 ecx = ecx - eax; /* 0x3607F29C: sub ecx, eax */ 3354 _flag_k = FK_CMP; 3355 MEM32(ebp + (-0x8)) = edx; /* 0x3607F29E: mov dword ptr [ebp - 8], edx */ 3356 MEM32(ebp + (-0x4)) = eax; /* 0x3607F2A1: mov dword ptr [ebp - 4], eax */ 3357 eax = edx; /* 0x3607F2A4: mov eax, edx */ 3358 edx = MEM32(esi + 0xC); /* 0x3607F2A6: mov edx, dword ptr [esi + 0xc] */ 3359 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3361 edx = edx - eax; /* 0x3607F2A9: sub edx, eax */ 3362 _flag_k = FK_CMP; 3363 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3607F2AB: sar ecx, 3 */ 3364 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3365 ecx = (uint32_t)((int32_t)ecx >> 3u); 3366 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3607F2AE: sar edx, 3 */ 3367 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3368 edx = (uint32_t)((int32_t)edx >> 3u); 3369 /* cmp edx, ecx */ /* 0x3607F2B1: cmp edx, ecx */ 3370 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3371 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3372 _flag_k = FK_CMP; 3373 MEM32(ebp + (-0xC)) = ecx; /* 0x3607F2B3: mov dword ptr [ebp - 0xc], ecx */ 3374 if (CMP_AE(_flag_a, _flag_b)) goto L_3607F374; /* 0x3607F2B6: jae 0x3607f374 */ 3375 L_3607F2BC: 3376 edx = MEM32(esi + 0x4); /* 0x3607F2BC: mov edx, dword ptr [esi + 4] */ 3377 /* test edx, edx */ /* 0x3607F2BF: test edx, edx */ 3378 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3379 _cf = 0; 3380 _flag_k = FK_TEST; 3381 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F2D6; /* 0x3607F2C1: je 0x3607f2d6 */ 3382 L_3607F2C3: 3383 ecx = MEM32(esi + 0x4); /* 0x3607F2C3: mov ecx, dword ptr [esi + 4] */ 3384 edx = eax; /* 0x3607F2C6: mov edx, eax */ 3385 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3387 edx = edx - ecx; /* 0x3607F2C8: sub edx, ecx */ 3388 _flag_k = FK_CMP; 3389 ecx = MEM32(ebp + (-0xC)); /* 0x3607F2CA: mov ecx, dword ptr [ebp - 0xc] */ 3390 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3607F2CD: sar edx, 3 */ 3391 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3392 edx = (uint32_t)((int32_t)edx >> 3u); 3393 /* cmp ecx, edx */ /* 0x3607F2D0: cmp ecx, edx */ 3394 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3396 _flag_k = FK_CMP; 3397 if (CMP_AE(_flag_a, _flag_b)) goto L_3607F2D6; /* 0x3607F2D2: jae 0x3607f2d6 */ 3398 L_3607F2D4: 3399 ecx = edx; /* 0x3607F2D4: mov ecx, edx */ 3400 L_3607F2D6: 3401 edx = MEM32(esi + 0x4); /* 0x3607F2D6: mov edx, dword ptr [esi + 4] */ 3402 /* test edx, edx */ /* 0x3607F2D9: test edx, edx */ 3403 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3404 _cf = 0; 3405 _flag_k = FK_TEST; 3406 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607F2E1; /* 0x3607F2DB: jne 0x3607f2e1 */ 3407 L_3607F2DD: 3408 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3409 eax = 0; /* 0x3607F2DD: xor eax, eax */ 3410 _cf = 0; 3411 _flag_k = FK_TEST; 3412 goto L_3607F2E6; /* 0x3607F2DF: jmp 0x3607f2e6 */ 3413 L_3607F2E1: 3414 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3415 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3416 eax = eax - edx; /* 0x3607F2E1: sub eax, edx */ 3417 _flag_k = FK_CMP; 3418 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607F2E3: sar eax, 3 */ 3419 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3420 eax = (uint32_t)((int32_t)eax >> 3u); 3421 L_3607F2E6: 3422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3424 eax = eax + ecx; /* 0x3607F2E6: add eax, ecx */ 3425 _flag_k = FK_ADD; 3426 /* test eax, eax */ /* 0x3607F2E8: test eax, eax */ 3427 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3428 _cf = 0; 3429 _flag_k = FK_TEST; 3430 MEM32(ebp + (-0x18)) = eax; /* 0x3607F2EA: mov dword ptr [ebp - 0x18], eax */ 3431 if (TEST_NS(_flag_a, _flag_b)) goto L_3607F2F1; /* 0x3607F2ED: jge 0x3607f2f1 */ 3432 L_3607F2EF: 3433 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3434 eax = 0; /* 0x3607F2EF: xor eax, eax */ 3435 _cf = 0; 3436 _flag_k = FK_TEST; 3437 L_3607F2F1: 3438 if (3u) _cf = (((eax) >> 29) & 1u); /* 0x3607F2F1: shl eax, 3 */ 3439 if (3u) { _flag_a = recomp_flags_pack((eax << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3440 eax = eax << 3u; /* 0x3607F2F1: shl eax, 3 */ 3441 PUSH32(esp, eax); /* 0x3607F2F4: push eax */ 3442 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F2F5: call 0x3615fd6a */ /* not lifted */ 3443 RECOMP_FLAGS_IN(); 3444 ecx = MEM32(ebp + (-0x8)); /* 0x3607F2FA: mov ecx, dword ptr [ebp - 8] */ 3445 edx = MEM32(esi + 0x4); /* 0x3607F2FD: mov edx, dword ptr [esi + 4] */ 3446 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3447 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3448 esp = esp + 4; /* 0x3607F300: add esp, 4 */ 3449 _flag_k = FK_ADD; 3450 PUSH32(esp, eax); /* 0x3607F303: push eax */ 3451 PUSH32(esp, ecx); /* 0x3607F304: push ecx */ 3452 PUSH32(esp, edx); /* 0x3607F305: push edx */ 3453 ecx = esi; /* 0x3607F306: mov ecx, esi */ 3454 MEM32(ebp + (-0x14)) = eax; /* 0x3607F308: mov dword ptr [ebp - 0x14], eax */ 3455 RECOMP_ICALL(0x360303E0u); /* 0x3607F30B: call 0x360303e0 */ /* not lifted */ 3456 RECOMP_FLAGS_IN(); 3457 ecx = MEM32(ebp + (-0x4)); /* 0x3607F310: mov ecx, dword ptr [ebp - 4] */ 3458 PUSH32(esp, eax); /* 0x3607F313: push eax */ 3459 eax = MEM32(ebp + (-0x10)); /* 0x3607F314: mov eax, dword ptr [ebp - 0x10] */ 3460 PUSH32(esp, eax); /* 0x3607F317: push eax */ 3461 PUSH32(esp, ecx); /* 0x3607F318: push ecx */ 3462 ecx = esi; /* 0x3607F319: mov ecx, esi */ 3463 RECOMP_ICALL(0x360303E0u); /* 0x3607F31B: call 0x360303e0 */ /* not lifted */ 3464 RECOMP_FLAGS_IN(); 3465 edx = MEM32(esi + 0x8); /* 0x3607F320: mov edx, dword ptr [esi + 8] */ 3466 PUSH32(esp, eax); /* 0x3607F323: push eax */ 3467 eax = MEM32(ebp + (-0x8)); /* 0x3607F324: mov eax, dword ptr [ebp - 8] */ 3468 PUSH32(esp, edx); /* 0x3607F327: push edx */ 3469 PUSH32(esp, eax); /* 0x3607F328: push eax */ 3470 ecx = esi; /* 0x3607F329: mov ecx, esi */ 3471 RECOMP_ICALL(0x360303E0u); /* 0x3607F32B: call 0x360303e0 */ /* not lifted */ 3472 RECOMP_FLAGS_IN(); 3473 ecx = MEM32(esi + 0x8); /* 0x3607F330: mov ecx, dword ptr [esi + 8] */ 3474 edx = MEM32(esi + 0x4); /* 0x3607F333: mov edx, dword ptr [esi + 4] */ 3475 PUSH32(esp, ecx); /* 0x3607F336: push ecx */ 3476 PUSH32(esp, edx); /* 0x3607F337: push edx */ 3477 ecx = esi; /* 0x3607F338: mov ecx, esi */ 3478 RECOMP_ICALL(0x36030CF0u); /* 0x3607F33A: call 0x36030cf0 */ /* not lifted */ 3479 RECOMP_FLAGS_IN(); 3480 eax = MEM32(esi + 0x4); /* 0x3607F33F: mov eax, dword ptr [esi + 4] */ 3481 PUSH32(esp, eax); /* 0x3607F342: push eax */ 3482 RECOMP_ICALL(0x3615FCC4u); /* 0x3607F343: call 0x3615fcc4 */ /* not lifted */ 3483 RECOMP_FLAGS_IN(); 3484 ecx = MEM32(ebp + (-0x14)); /* 0x3607F348: mov ecx, dword ptr [ebp - 0x14] */ 3485 edx = MEM32(ebp + (-0x18)); /* 0x3607F34B: mov edx, dword ptr [ebp - 0x18] */ 3486 eax = ecx + edx * 8; /* 0x3607F34E: lea eax, [ecx + edx*8] */ 3487 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3488 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3489 esp = esp + 4; /* 0x3607F351: add esp, 4 */ 3490 _flag_k = FK_ADD; 3491 ecx = esi; /* 0x3607F354: mov ecx, esi */ 3492 MEM32(esi + 0xC) = eax; /* 0x3607F356: mov dword ptr [esi + 0xc], eax */ 3493 RECOMP_ICALL(0x3602F6C0u); /* 0x3607F359: call 0x3602f6c0 */ /* not lifted */ 3494 RECOMP_FLAGS_IN(); 3495 ecx = eax; /* 0x3607F35E: mov ecx, eax */ 3496 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ebp + (-0xC))); 3497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3498 ecx = ecx + MEM32(ebp + (-0xC)); /* 0x3607F360: add ecx, dword ptr [ebp - 0xc] */ 3499 _flag_k = FK_ADD; 3500 eax = MEM32(ebp + (-0x14)); /* 0x3607F363: mov eax, dword ptr [ebp - 0x14] */ 3501 edx = eax + ecx * 8; /* 0x3607F366: lea edx, [eax + ecx*8] */ 3502 MEM32(esi + 0x8) = edx; /* 0x3607F369: mov dword ptr [esi + 8], edx */ 3503 MEM32(esi + 0x4) = eax; /* 0x3607F36C: mov dword ptr [esi + 4], eax */ 3504 goto L_3607F427; /* 0x3607F36F: jmp 0x3607f427 */ 3505 L_3607F374: 3506 ecx = MEM32(ebp + (-0x8)); /* 0x3607F374: mov ecx, dword ptr [ebp - 8] */ 3507 edx = eax; /* 0x3607F377: mov edx, eax */ 3508 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3509 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3510 edx = edx - ecx; /* 0x3607F379: sub edx, ecx */ 3511 _flag_k = FK_CMP; 3512 ecx = MEM32(ebp + (-0xC)); /* 0x3607F37B: mov ecx, dword ptr [ebp - 0xc] */ 3513 if (3u) _cf = (((edx) >> 2) & 1u); /* 0x3607F37E: sar edx, 3 */ 3514 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3515 edx = (uint32_t)((int32_t)edx >> 3u); 3516 /* cmp edx, ecx */ /* 0x3607F381: cmp edx, ecx */ 3517 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3519 _flag_k = FK_CMP; 3520 if (CMP_AE(_flag_a, _flag_b)) goto L_3607F3DF; /* 0x3607F383: jae 0x3607f3df */ 3521 L_3607F385: 3522 edx = MEM32(ebp + (-0x8)); /* 0x3607F385: mov edx, dword ptr [ebp - 8] */ 3523 if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x3607F388: shl ecx, 3 */ 3524 if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3525 ecx = ecx << 3u; /* 0x3607F388: shl ecx, 3 */ 3526 MEM32(ebp + (-0xC)) = ecx; /* 0x3607F38B: mov dword ptr [ebp - 0xc], ecx */ 3527 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3528 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3529 ecx = ecx + edx; /* 0x3607F38E: add ecx, edx */ 3530 _flag_k = FK_ADD; 3531 PUSH32(esp, ecx); /* 0x3607F390: push ecx */ 3532 PUSH32(esp, eax); /* 0x3607F391: push eax */ 3533 PUSH32(esp, edx); /* 0x3607F392: push edx */ 3534 ecx = esi; /* 0x3607F393: mov ecx, esi */ 3535 RECOMP_ICALL(0x360303E0u); /* 0x3607F395: call 0x360303e0 */ /* not lifted */ 3536 RECOMP_FLAGS_IN(); 3537 eax = MEM32(esi + 0x8); /* 0x3607F39A: mov eax, dword ptr [esi + 8] */ 3538 edx = MEM32(ebp + (-0x10)); /* 0x3607F39D: mov edx, dword ptr [ebp - 0x10] */ 3539 ecx = MEM32(ebp + (-0x4)); /* 0x3607F3A0: mov ecx, dword ptr [ebp - 4] */ 3540 PUSH32(esp, eax); /* 0x3607F3A3: push eax */ 3541 PUSH32(esp, edx); /* 0x3607F3A4: push edx */ 3542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebp + (-0x8))); 3543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3544 eax = eax - MEM32(ebp + (-0x8)); /* 0x3607F3A5: sub eax, dword ptr [ebp - 8] */ 3545 _flag_k = FK_CMP; 3546 if (3u) _cf = (((eax) >> 2) & 1u); /* 0x3607F3A8: sar eax, 3 */ 3547 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3548 eax = (uint32_t)((int32_t)eax >> 3u); 3549 edx = ecx + eax * 8; /* 0x3607F3AB: lea edx, [ecx + eax*8] */ 3550 PUSH32(esp, edx); /* 0x3607F3AE: push edx */ 3551 ecx = esi; /* 0x3607F3AF: mov ecx, esi */ 3552 RECOMP_ICALL(0x360303E0u); /* 0x3607F3B1: call 0x360303e0 */ /* not lifted */ 3553 RECOMP_FLAGS_IN(); 3554 eax = MEM32(ebp + (-0x8)); /* 0x3607F3B6: mov eax, dword ptr [ebp - 8] */ 3555 ecx = MEM32(esi + 0x8); /* 0x3607F3B9: mov ecx, dword ptr [esi + 8] */ 3556 PUSH32(esp, eax); /* 0x3607F3BC: push eax */ 3557 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3558 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3559 ecx = ecx - eax; /* 0x3607F3BD: sub ecx, eax */ 3560 _flag_k = FK_CMP; 3561 eax = MEM32(ebp + (-0x4)); /* 0x3607F3BF: mov eax, dword ptr [ebp - 4] */ 3562 if (3u) _cf = (((ecx) >> 2) & 1u); /* 0x3607F3C2: sar ecx, 3 */ 3563 if (3u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 3u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3564 ecx = (uint32_t)((int32_t)ecx >> 3u); 3565 edx = eax + ecx * 8; /* 0x3607F3C5: lea edx, [eax + ecx*8] */ 3566 PUSH32(esp, edx); /* 0x3607F3C8: push edx */ 3567 PUSH32(esp, eax); /* 0x3607F3C9: push eax */ 3568 RECOMP_ICALL(0x3607F950u); /* 0x3607F3CA: call 0x3607f950 */ /* not lifted */ 3569 RECOMP_FLAGS_IN(); 3570 ecx = MEM32(esi + 0x8); /* 0x3607F3CF: mov ecx, dword ptr [esi + 8] */ 3571 eax = MEM32(ebp + (-0xC)); /* 0x3607F3D2: mov eax, dword ptr [ebp - 0xc] */ 3572 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3573 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3574 esp = esp + 0xCu; /* 0x3607F3D5: add esp, 0xc */ 3575 _flag_k = FK_ADD; 3576 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3577 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3578 ecx = ecx + eax; /* 0x3607F3D8: add ecx, eax */ 3579 _flag_k = FK_ADD; 3580 MEM32(esi + 0x8) = ecx; /* 0x3607F3DA: mov dword ptr [esi + 8], ecx */ 3581 goto L_3607F427; /* 0x3607F3DD: jmp 0x3607f427 */ 3582 L_3607F3DF: 3583 /* test ecx, ecx */ /* 0x3607F3DF: test ecx, ecx */ 3584 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3585 _cf = 0; 3586 _flag_k = FK_TEST; 3587 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F427; /* 0x3607F3E1: jbe 0x3607f427 */ 3588 L_3607F3E3: 3589 PUSH32(esp, eax); /* 0x3607F3E3: push eax */ 3590 if (3u) _cf = (((ecx) >> 29) & 1u); /* 0x3607F3E4: shl ecx, 3 */ 3591 if (3u) { _flag_a = recomp_flags_pack((ecx << 3u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3592 ecx = ecx << 3u; /* 0x3607F3E4: shl ecx, 3 */ 3593 PUSH32(esp, eax); /* 0x3607F3E7: push eax */ 3594 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3596 eax = eax - ecx; /* 0x3607F3E8: sub eax, ecx */ 3597 _flag_k = FK_CMP; 3598 MEM32(ebp + (-0xC)) = ecx; /* 0x3607F3EA: mov dword ptr [ebp - 0xc], ecx */ 3599 PUSH32(esp, eax); /* 0x3607F3ED: push eax */ 3600 ecx = esi; /* 0x3607F3EE: mov ecx, esi */ 3601 RECOMP_ICALL(0x360303E0u); /* 0x3607F3F0: call 0x360303e0 */ /* not lifted */ 3602 RECOMP_FLAGS_IN(); 3603 eax = MEM32(esi + 0x8); /* 0x3607F3F5: mov eax, dword ptr [esi + 8] */ 3604 edx = MEM32(ebp + (-0xC)); /* 0x3607F3F8: mov edx, dword ptr [ebp - 0xc] */ 3605 ecx = MEM32(ebp + (-0x8)); /* 0x3607F3FB: mov ecx, dword ptr [ebp - 8] */ 3606 PUSH32(esp, eax); /* 0x3607F3FE: push eax */ 3607 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3609 eax = eax - edx; /* 0x3607F3FF: sub eax, edx */ 3610 _flag_k = FK_CMP; 3611 PUSH32(esp, eax); /* 0x3607F401: push eax */ 3612 PUSH32(esp, ecx); /* 0x3607F402: push ecx */ 3613 RECOMP_ICALL(0x36030450u); /* 0x3607F403: call 0x36030450 */ /* not lifted */ 3614 RECOMP_FLAGS_IN(); 3615 edx = MEM32(ebp + (-0x8)); /* 0x3607F408: mov edx, dword ptr [ebp - 8] */ 3616 eax = MEM32(ebp + (-0x10)); /* 0x3607F40B: mov eax, dword ptr [ebp - 0x10] */ 3617 ecx = MEM32(ebp + (-0x4)); /* 0x3607F40E: mov ecx, dword ptr [ebp - 4] */ 3618 PUSH32(esp, edx); /* 0x3607F411: push edx */ 3619 PUSH32(esp, eax); /* 0x3607F412: push eax */ 3620 PUSH32(esp, ecx); /* 0x3607F413: push ecx */ 3621 RECOMP_ICALL(0x3607F950u); /* 0x3607F414: call 0x3607f950 */ /* not lifted */ 3622 RECOMP_FLAGS_IN(); 3623 eax = MEM32(esi + 0x8); /* 0x3607F419: mov eax, dword ptr [esi + 8] */ 3624 edx = MEM32(ebp + (-0xC)); /* 0x3607F41C: mov edx, dword ptr [ebp - 0xc] */ 3625 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 3626 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3627 esp = esp + 0x18u; /* 0x3607F41F: add esp, 0x18 */ 3628 _flag_k = FK_ADD; 3629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3631 eax = eax + edx; /* 0x3607F422: add eax, edx */ 3632 _flag_k = FK_ADD; 3633 MEM32(esi + 0x8) = eax; /* 0x3607F424: mov dword ptr [esi + 8], eax */ 3634 L_3607F427: 3635 esi = MEM32(ebx + 0x34); /* 0x3607F427: mov esi, dword ptr [ebx + 0x34] */ 3636 eax = MEM32(esi + 0x8); /* 0x3607F42A: mov eax, dword ptr [esi + 8] */ 3637 /* cmp eax, eax */ /* 0x3607F42D: cmp eax, eax */ 3638 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3640 _flag_k = FK_CMP; 3641 ecx = MEM32(esi + 0x4); /* 0x3607F42F: mov ecx, dword ptr [esi + 4] */ 3642 MEM32(ebp + (-0x18)) = eax; /* 0x3607F432: mov dword ptr [ebp - 0x18], eax */ 3643 MEM32(ebp + (-0x8)) = ecx; /* 0x3607F435: mov dword ptr [ebp - 8], ecx */ 3644 MEM32(ebp + (-0x10)) = eax; /* 0x3607F438: mov dword ptr [ebp - 0x10], eax */ 3645 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F464; /* 0x3607F43B: je 0x3607f464 */ 3646 L_3607F43D: 3647 goto L_3607F442; /* 0x3607F43D: jmp 0x3607f442 */ 3648 L_3607F43F: 3649 eax = MEM32(ebp + (-0x10)); /* 0x3607F43F: mov eax, dword ptr [ebp - 0x10] */ 3650 L_3607F442: 3651 ecx = MEM32(ebp + (-0x8)); /* 0x3607F442: mov ecx, dword ptr [ebp - 8] */ 3652 PUSH32(esp, eax); /* 0x3607F445: push eax */ 3653 RECOMP_ICALL(0x3602F6A0u); /* 0x3607F446: call 0x3602f6a0 */ /* not lifted */ 3654 RECOMP_FLAGS_IN(); 3655 eax = MEM32(ebp + (-0x8)); /* 0x3607F44B: mov eax, dword ptr [ebp - 8] */ 3656 ecx = MEM32(ebp + (-0x18)); /* 0x3607F44E: mov ecx, dword ptr [ebp - 0x18] */ 3657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3658 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3659 eax = eax + 8; /* 0x3607F451: add eax, 8 */ 3660 _flag_k = FK_ADD; 3661 MEM32(ebp + (-0x8)) = eax; /* 0x3607F454: mov dword ptr [ebp - 8], eax */ 3662 eax = MEM32(ebp + (-0x10)); /* 0x3607F457: mov eax, dword ptr [ebp - 0x10] */ 3663 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3664 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3665 eax = eax + 8; /* 0x3607F45A: add eax, 8 */ 3666 _flag_k = FK_ADD; 3667 /* cmp eax, ecx */ /* 0x3607F45D: cmp eax, ecx */ 3668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3670 _flag_k = FK_CMP; 3671 MEM32(ebp + (-0x10)) = eax; /* 0x3607F45F: mov dword ptr [ebp - 0x10], eax */ 3672 RECOMP_BACKEDGE(); 3673 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F43F; /* 0x3607F462: jne 0x3607f43f */ 3674 L_3607F464: 3675 edx = MEM32(esi + 0x8); /* 0x3607F464: mov edx, dword ptr [esi + 8] */ 3676 eax = MEM32(ebp + (-0x8)); /* 0x3607F467: mov eax, dword ptr [ebp - 8] */ 3677 PUSH32(esp, edx); /* 0x3607F46A: push edx */ 3678 PUSH32(esp, eax); /* 0x3607F46B: push eax */ 3679 ecx = esi; /* 0x3607F46C: mov ecx, esi */ 3680 RECOMP_ICALL(0x36030CF0u); /* 0x3607F46E: call 0x36030cf0 */ /* not lifted */ 3681 RECOMP_FLAGS_IN(); 3682 ecx = MEM32(ebp + (-0x8)); /* 0x3607F473: mov ecx, dword ptr [ebp - 8] */ 3683 PUSH32(esp, 6); /* 0x3607F476: push 6 */ 3684 MEM32(esi + 0x8) = ecx; /* 0x3607F478: mov dword ptr [esi + 8], ecx */ 3685 RECOMP_ICALL(0x3601C590u); /* 0x3607F47B: call 0x3601c590 */ /* not lifted */ 3686 RECOMP_FLAGS_IN(); 3687 ecx = eax; /* 0x3607F480: mov ecx, eax */ 3688 RECOMP_ICALL(0x3601C880u); /* 0x3607F482: call 0x3601c880 */ /* not lifted */ 3689 RECOMP_FLAGS_IN(); 3690 PUSH32(esp, 1); /* 0x3607F487: push 1 */ 3691 RECOMP_ICALL(0x3601C590u); /* 0x3607F489: call 0x3601c590 */ /* not lifted */ 3692 RECOMP_FLAGS_IN(); 3693 ecx = eax; /* 0x3607F48E: mov ecx, eax */ 3694 RECOMP_ICALL(0x3601C880u); /* 0x3607F490: call 0x3601c880 */ /* not lifted */ 3695 RECOMP_FLAGS_IN(); 3696 PUSH32(esp, 3); /* 0x3607F495: push 3 */ 3697 RECOMP_ICALL(0x3601C590u); /* 0x3607F497: call 0x3601c590 */ /* not lifted */ 3698 RECOMP_FLAGS_IN(); 3699 ecx = eax; /* 0x3607F49C: mov ecx, eax */ 3700 RECOMP_ICALL(0x3601C880u); /* 0x3607F49E: call 0x3601c880 */ /* not lifted */ 3701 RECOMP_FLAGS_IN(); 3702 PUSH32(esp, 7); /* 0x3607F4A3: push 7 */ 3703 RECOMP_ICALL(0x3601C590u); /* 0x3607F4A5: call 0x3601c590 */ /* not lifted */ 3704 RECOMP_FLAGS_IN(); 3705 ecx = eax; /* 0x3607F4AA: mov ecx, eax */ 3706 RECOMP_ICALL(0x3601C880u); /* 0x3607F4AC: call 0x3601c880 */ /* not lifted */ 3707 RECOMP_FLAGS_IN(); 3708 PUSH32(esp, 8); /* 0x3607F4B1: push 8 */ 3709 RECOMP_ICALL(0x3601C590u); /* 0x3607F4B3: call 0x3601c590 */ /* not lifted */ 3710 RECOMP_FLAGS_IN(); 3711 ecx = eax; /* 0x3607F4B8: mov ecx, eax */ 3712 RECOMP_ICALL(0x3601C880u); /* 0x3607F4BA: call 0x3601c880 */ /* not lifted */ 3713 RECOMP_FLAGS_IN(); 3714 edx = MEM32(edi + 0x154); /* 0x3607F4BF: mov edx, dword ptr [edi + 0x154] */ 3715 eax = MEM32(edi + 0xE4); /* 0x3607F4C5: mov eax, dword ptr [edi + 0xe4] */ 3716 esi = edi + 0xE4; /* 0x3607F4CB: lea esi, [edi + 0xe4] */ 3717 PUSH32(esp, 2); /* 0x3607F4D1: push 2 */ 3718 PUSH32(esp, 0xF7u); /* 0x3607F4D3: push 0xf7 */ 3719 ecx = esi; /* 0x3607F4D8: mov ecx, esi */ 3720 MEM32(ebp + (-0x18)) = edx; /* 0x3607F4DA: mov dword ptr [ebp - 0x18], edx */ 3721 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3607F4DD: call dword ptr [eax + 4] */ 3722 RECOMP_FLAGS_IN(); 3723 ecx = MEM32(ebp + (-0x18)); /* 0x3607F4E0: mov ecx, dword ptr [ebp - 0x18] */ 3724 MEM32(ecx + 0x2C) = eax; /* 0x3607F4E3: mov dword ptr [ecx + 0x2c], eax */ 3725 PUSH32(esp, 0); /* 0x3607F4E6: push 0 */ 3726 ecx = edi; /* 0x3607F4E8: mov ecx, edi */ 3727 RECOMP_ICALL(0x360714A0u); /* 0x3607F4EA: call 0x360714a0 */ /* not lifted */ 3728 RECOMP_FLAGS_IN(); 3729 ecx = edi; /* 0x3607F4EF: mov ecx, edi */ 3730 RECOMP_ICALL(0x36072180u); /* 0x3607F4F1: call 0x36072180 */ /* not lifted */ 3731 RECOMP_FLAGS_IN(); 3732 RECOMP_ICALL(0x3601C590u); /* 0x3607F4F6: call 0x3601c590 */ /* not lifted */ 3733 RECOMP_FLAGS_IN(); 3734 ecx = eax; /* 0x3607F4FB: mov ecx, eax */ 3735 RECOMP_ICALL(0x3601CDB0u); /* 0x3607F4FD: call 0x3601cdb0 */ /* not lifted */ 3736 RECOMP_FLAGS_IN(); 3737 edx = MEM32(ebx + 0x58); /* 0x3607F502: mov edx, dword ptr [ebx + 0x58] */ 3738 eax = MEM32(edx + 0x4); /* 0x3607F505: mov eax, dword ptr [edx + 4] */ 3739 ecx = MEM32(eax); /* 0x3607F508: mov ecx, dword ptr [eax] */ 3740 /* cmp ecx, eax */ /* 0x3607F50A: cmp ecx, eax */ 3741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3743 _flag_k = FK_CMP; 3744 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F50C: mov dword ptr [ebp - 0x10], ecx */ 3745 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F535; /* 0x3607F50F: je 0x3607f535 */ 3746 L_3607F511: 3747 goto L_3607F516; /* 0x3607F511: jmp 0x3607f516 */ 3748 L_3607F513: 3749 ecx = MEM32(ebp + (-0x10)); /* 0x3607F513: mov ecx, dword ptr [ebp - 0x10] */ 3750 L_3607F516: 3751 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3753 ecx = ecx + 8; /* 0x3607F516: add ecx, 8 */ 3754 _flag_k = FK_ADD; 3755 PUSH32(esp, ecx); /* 0x3607F519: push ecx */ 3756 ecx = MEM32(edi + 0x170); /* 0x3607F51A: mov ecx, dword ptr [edi + 0x170] */ 3757 RECOMP_ICALL(0x360678B0u); /* 0x3607F520: call 0x360678b0 */ /* not lifted */ 3758 RECOMP_FLAGS_IN(); 3759 eax = MEM32(ebp + (-0x10)); /* 0x3607F525: mov eax, dword ptr [ebp - 0x10] */ 3760 ecx = MEM32(ebx + 0x58); /* 0x3607F528: mov ecx, dword ptr [ebx + 0x58] */ 3761 eax = MEM32(eax); /* 0x3607F52B: mov eax, dword ptr [eax] */ 3762 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607F52D: cmp eax, dword ptr [ecx + 4] */ 3763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3765 _flag_k = FK_CMP; 3766 MEM32(ebp + (-0x10)) = eax; /* 0x3607F530: mov dword ptr [ebp - 0x10], eax */ 3767 RECOMP_BACKEDGE(); 3768 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F513; /* 0x3607F533: jne 0x3607f513 */ 3769 L_3607F535: 3770 edx = MEM32(esi); /* 0x3607F535: mov edx, dword ptr [esi] */ 3771 eax = edi + 0x4; /* 0x3607F537: lea eax, [edi + 4] */ 3772 PUSH32(esp, eax); /* 0x3607F53A: push eax */ 3773 ecx = esi; /* 0x3607F53B: mov ecx, esi */ 3774 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3607F53D: call dword ptr [edx + 0x24] */ 3775 RECOMP_FLAGS_IN(); 3776 edx = MEM32(esi); /* 0x3607F540: mov edx, dword ptr [esi] */ 3777 PUSH32(esp, 0x362EA510u); /* 0x3607F542: push 0x362ea510 */ 3778 PUSH32(esp, 0); /* 0x3607F547: push 0 */ 3779 PUSH32(esp, esi); /* 0x3607F549: push esi */ 3780 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x68u); 3781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3782 ebx = ebx + 0x68u; /* 0x3607F54A: add ebx, 0x68 */ 3783 _flag_k = FK_ADD; 3784 PUSH32(esp, ebx); /* 0x3607F54D: push ebx */ 3785 ecx = esi; /* 0x3607F54E: mov ecx, esi */ 3786 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3607F550: call dword ptr [edx + 0x34] */ 3787 RECOMP_FLAGS_IN(); 3788 ecx = MEM32(edi + 0x188); /* 0x3607F553: mov ecx, dword ptr [edi + 0x188] */ 3789 PUSH32(esp, 0x00100000u); /* 0x3607F559: push 0x100000 */ 3790 RECOMP_ICALL(0x36059BA0u); /* 0x3607F55E: call 0x36059ba0 */ /* not lifted */ 3791 RECOMP_FLAGS_IN(); 3792 SET_LO8(ebx, LO8(eax)); /* 0x3607F563: mov bl, al */ 3793 RECOMP_ICALL(0x360F7B00u); /* 0x3607F565: call 0x360f7b00 */ /* not lifted */ 3794 RECOMP_FLAGS_IN(); 3795 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F56A: test bl, bl */ 3796 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 3797 _cf = 0; 3798 _flag_k = FK_NARROW(FK_TEST, 24); 3799 esi = eax; /* 0x3607F56C: mov esi, eax */ 3800 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F57F; /* 0x3607F56E: je 0x3607f57f */ 3801 L_3607F570: 3802 PUSH32(esp, 0); /* 0x3607F570: push 0 */ 3803 PUSH32(esp, edi); /* 0x3607F572: push edi */ 3804 PUSH32(esp, 0x2CF2u); /* 0x3607F573: push 0x2cf2 */ 3805 ecx = esi; /* 0x3607F578: mov ecx, esi */ 3806 RECOMP_ICALL(0x360F81E0u); /* 0x3607F57A: call 0x360f81e0 */ /* not lifted */ 3807 RECOMP_FLAGS_IN(); 3808 L_3607F57F: 3809 PUSH32(esp, 0); /* 0x3607F57F: push 0 */ 3810 PUSH32(esp, edi); /* 0x3607F581: push edi */ 3811 PUSH32(esp, 0x2CEDu); /* 0x3607F582: push 0x2ced */ 3812 ecx = esi; /* 0x3607F587: mov ecx, esi */ 3813 RECOMP_ICALL(0x360F81E0u); /* 0x3607F589: call 0x360f81e0 */ /* not lifted */ 3814 RECOMP_FLAGS_IN(); 3815 PUSH32(esp, 0); /* 0x3607F58E: push 0 */ 3816 PUSH32(esp, edi); /* 0x3607F590: push edi */ 3817 PUSH32(esp, 0x2D50u); /* 0x3607F591: push 0x2d50 */ 3818 ecx = esi; /* 0x3607F596: mov ecx, esi */ 3819 MEM32(esi + 0x54) = 0x20u; /* 0x3607F598: mov dword ptr [esi + 0x54], 0x20 */ 3820 RECOMP_ICALL(0x360F81E0u); /* 0x3607F59F: call 0x360f81e0 */ /* not lifted */ 3821 RECOMP_FLAGS_IN(); 3822 L_3607F5A4: 3823 edi = POP32_VAL(esp); /* 0x3607F5A4: pop edi */ 3824 esi = POP32_VAL(esp); /* 0x3607F5A5: pop esi */ 3825 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3826 eax = 0; /* 0x3607F5A6: xor eax, eax */ 3827 _cf = 0; 3828 _flag_k = FK_TEST; 3829 ebx = POP32_VAL(esp); /* 0x3607F5A8: pop ebx */ 3830 esp = ebp; /* 0x3607F5A9: mov esp, ebp */ 3831 ebp = POP32_VAL(esp); /* 0x3607F5AB: pop ebp */ 3832 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F5AC: ret */ 3833 RECOMP_REGS_OUT(); 3834 } 3835 3836 void sub_3607F427(void) { 3837 int _fpu_cmp = 0; 3838 uint32_t _cf = 0; 3839 int _df = 1; 3840 uint32_t _flag_k = FK_NONE; 3841 uint32_t _flag_a = 0, _flag_b = 0; 3842 uint32_t _itail_tgt = 0; 3843 RECOMP_REGS_LOCALS 3844 RECOMP_ENTER(0x3607F427u); 3845 3846 L_3607F427: 3847 esi = MEM32(ebx + 0x34); /* 0x3607F427: mov esi, dword ptr [ebx + 0x34] */ 3848 eax = MEM32(esi + 0x8); /* 0x3607F42A: mov eax, dword ptr [esi + 8] */ 3849 /* cmp eax, eax */ /* 0x3607F42D: cmp eax, eax */ 3850 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3851 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3852 _flag_k = FK_CMP; 3853 ecx = MEM32(esi + 0x4); /* 0x3607F42F: mov ecx, dword ptr [esi + 4] */ 3854 MEM32(ebp + (-0x18)) = eax; /* 0x3607F432: mov dword ptr [ebp - 0x18], eax */ 3855 MEM32(ebp + (-0x8)) = ecx; /* 0x3607F435: mov dword ptr [ebp - 8], ecx */ 3856 MEM32(ebp + (-0x10)) = eax; /* 0x3607F438: mov dword ptr [ebp - 0x10], eax */ 3857 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F464; /* 0x3607F43B: je 0x3607f464 */ 3858 L_3607F43D: 3859 goto L_3607F442; /* 0x3607F43D: jmp 0x3607f442 */ 3860 L_3607F43F: 3861 eax = MEM32(ebp + (-0x10)); /* 0x3607F43F: mov eax, dword ptr [ebp - 0x10] */ 3862 L_3607F442: 3863 ecx = MEM32(ebp + (-0x8)); /* 0x3607F442: mov ecx, dword ptr [ebp - 8] */ 3864 PUSH32(esp, eax); /* 0x3607F445: push eax */ 3865 RECOMP_ICALL(0x3602F6A0u); /* 0x3607F446: call 0x3602f6a0 */ /* not lifted */ 3866 RECOMP_FLAGS_IN(); 3867 eax = MEM32(ebp + (-0x8)); /* 0x3607F44B: mov eax, dword ptr [ebp - 8] */ 3868 ecx = MEM32(ebp + (-0x18)); /* 0x3607F44E: mov ecx, dword ptr [ebp - 0x18] */ 3869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3870 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3871 eax = eax + 8; /* 0x3607F451: add eax, 8 */ 3872 _flag_k = FK_ADD; 3873 MEM32(ebp + (-0x8)) = eax; /* 0x3607F454: mov dword ptr [ebp - 8], eax */ 3874 eax = MEM32(ebp + (-0x10)); /* 0x3607F457: mov eax, dword ptr [ebp - 0x10] */ 3875 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 3876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3877 eax = eax + 8; /* 0x3607F45A: add eax, 8 */ 3878 _flag_k = FK_ADD; 3879 /* cmp eax, ecx */ /* 0x3607F45D: cmp eax, ecx */ 3880 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3881 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3882 _flag_k = FK_CMP; 3883 MEM32(ebp + (-0x10)) = eax; /* 0x3607F45F: mov dword ptr [ebp - 0x10], eax */ 3884 RECOMP_BACKEDGE(); 3885 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F43F; /* 0x3607F462: jne 0x3607f43f */ 3886 L_3607F464: 3887 edx = MEM32(esi + 0x8); /* 0x3607F464: mov edx, dword ptr [esi + 8] */ 3888 eax = MEM32(ebp + (-0x8)); /* 0x3607F467: mov eax, dword ptr [ebp - 8] */ 3889 PUSH32(esp, edx); /* 0x3607F46A: push edx */ 3890 PUSH32(esp, eax); /* 0x3607F46B: push eax */ 3891 ecx = esi; /* 0x3607F46C: mov ecx, esi */ 3892 RECOMP_ICALL(0x36030CF0u); /* 0x3607F46E: call 0x36030cf0 */ /* not lifted */ 3893 RECOMP_FLAGS_IN(); 3894 ecx = MEM32(ebp + (-0x8)); /* 0x3607F473: mov ecx, dword ptr [ebp - 8] */ 3895 PUSH32(esp, 6); /* 0x3607F476: push 6 */ 3896 MEM32(esi + 0x8) = ecx; /* 0x3607F478: mov dword ptr [esi + 8], ecx */ 3897 RECOMP_ICALL(0x3601C590u); /* 0x3607F47B: call 0x3601c590 */ /* not lifted */ 3898 RECOMP_FLAGS_IN(); 3899 ecx = eax; /* 0x3607F480: mov ecx, eax */ 3900 RECOMP_ICALL(0x3601C880u); /* 0x3607F482: call 0x3601c880 */ /* not lifted */ 3901 RECOMP_FLAGS_IN(); 3902 PUSH32(esp, 1); /* 0x3607F487: push 1 */ 3903 RECOMP_ICALL(0x3601C590u); /* 0x3607F489: call 0x3601c590 */ /* not lifted */ 3904 RECOMP_FLAGS_IN(); 3905 ecx = eax; /* 0x3607F48E: mov ecx, eax */ 3906 RECOMP_ICALL(0x3601C880u); /* 0x3607F490: call 0x3601c880 */ /* not lifted */ 3907 RECOMP_FLAGS_IN(); 3908 PUSH32(esp, 3); /* 0x3607F495: push 3 */ 3909 RECOMP_ICALL(0x3601C590u); /* 0x3607F497: call 0x3601c590 */ /* not lifted */ 3910 RECOMP_FLAGS_IN(); 3911 ecx = eax; /* 0x3607F49C: mov ecx, eax */ 3912 RECOMP_ICALL(0x3601C880u); /* 0x3607F49E: call 0x3601c880 */ /* not lifted */ 3913 RECOMP_FLAGS_IN(); 3914 PUSH32(esp, 7); /* 0x3607F4A3: push 7 */ 3915 RECOMP_ICALL(0x3601C590u); /* 0x3607F4A5: call 0x3601c590 */ /* not lifted */ 3916 RECOMP_FLAGS_IN(); 3917 ecx = eax; /* 0x3607F4AA: mov ecx, eax */ 3918 RECOMP_ICALL(0x3601C880u); /* 0x3607F4AC: call 0x3601c880 */ /* not lifted */ 3919 RECOMP_FLAGS_IN(); 3920 PUSH32(esp, 8); /* 0x3607F4B1: push 8 */ 3921 RECOMP_ICALL(0x3601C590u); /* 0x3607F4B3: call 0x3601c590 */ /* not lifted */ 3922 RECOMP_FLAGS_IN(); 3923 ecx = eax; /* 0x3607F4B8: mov ecx, eax */ 3924 RECOMP_ICALL(0x3601C880u); /* 0x3607F4BA: call 0x3601c880 */ /* not lifted */ 3925 RECOMP_FLAGS_IN(); 3926 edx = MEM32(edi + 0x154); /* 0x3607F4BF: mov edx, dword ptr [edi + 0x154] */ 3927 eax = MEM32(edi + 0xE4); /* 0x3607F4C5: mov eax, dword ptr [edi + 0xe4] */ 3928 esi = edi + 0xE4; /* 0x3607F4CB: lea esi, [edi + 0xe4] */ 3929 PUSH32(esp, 2); /* 0x3607F4D1: push 2 */ 3930 PUSH32(esp, 0xF7u); /* 0x3607F4D3: push 0xf7 */ 3931 ecx = esi; /* 0x3607F4D8: mov ecx, esi */ 3932 MEM32(ebp + (-0x18)) = edx; /* 0x3607F4DA: mov dword ptr [ebp - 0x18], edx */ 3933 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3607F4DD: call dword ptr [eax + 4] */ 3934 RECOMP_FLAGS_IN(); 3935 ecx = MEM32(ebp + (-0x18)); /* 0x3607F4E0: mov ecx, dword ptr [ebp - 0x18] */ 3936 MEM32(ecx + 0x2C) = eax; /* 0x3607F4E3: mov dword ptr [ecx + 0x2c], eax */ 3937 PUSH32(esp, 0); /* 0x3607F4E6: push 0 */ 3938 ecx = edi; /* 0x3607F4E8: mov ecx, edi */ 3939 RECOMP_ICALL(0x360714A0u); /* 0x3607F4EA: call 0x360714a0 */ /* not lifted */ 3940 RECOMP_FLAGS_IN(); 3941 ecx = edi; /* 0x3607F4EF: mov ecx, edi */ 3942 RECOMP_ICALL(0x36072180u); /* 0x3607F4F1: call 0x36072180 */ /* not lifted */ 3943 RECOMP_FLAGS_IN(); 3944 RECOMP_ICALL(0x3601C590u); /* 0x3607F4F6: call 0x3601c590 */ /* not lifted */ 3945 RECOMP_FLAGS_IN(); 3946 ecx = eax; /* 0x3607F4FB: mov ecx, eax */ 3947 RECOMP_ICALL(0x3601CDB0u); /* 0x3607F4FD: call 0x3601cdb0 */ /* not lifted */ 3948 RECOMP_FLAGS_IN(); 3949 edx = MEM32(ebx + 0x58); /* 0x3607F502: mov edx, dword ptr [ebx + 0x58] */ 3950 eax = MEM32(edx + 0x4); /* 0x3607F505: mov eax, dword ptr [edx + 4] */ 3951 ecx = MEM32(eax); /* 0x3607F508: mov ecx, dword ptr [eax] */ 3952 /* cmp ecx, eax */ /* 0x3607F50A: cmp ecx, eax */ 3953 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3955 _flag_k = FK_CMP; 3956 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F50C: mov dword ptr [ebp - 0x10], ecx */ 3957 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F535; /* 0x3607F50F: je 0x3607f535 */ 3958 L_3607F511: 3959 goto L_3607F516; /* 0x3607F511: jmp 0x3607f516 */ 3960 L_3607F513: 3961 ecx = MEM32(ebp + (-0x10)); /* 0x3607F513: mov ecx, dword ptr [ebp - 0x10] */ 3962 L_3607F516: 3963 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3964 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3965 ecx = ecx + 8; /* 0x3607F516: add ecx, 8 */ 3966 _flag_k = FK_ADD; 3967 PUSH32(esp, ecx); /* 0x3607F519: push ecx */ 3968 ecx = MEM32(edi + 0x170); /* 0x3607F51A: mov ecx, dword ptr [edi + 0x170] */ 3969 RECOMP_ICALL(0x360678B0u); /* 0x3607F520: call 0x360678b0 */ /* not lifted */ 3970 RECOMP_FLAGS_IN(); 3971 eax = MEM32(ebp + (-0x10)); /* 0x3607F525: mov eax, dword ptr [ebp - 0x10] */ 3972 ecx = MEM32(ebx + 0x58); /* 0x3607F528: mov ecx, dword ptr [ebx + 0x58] */ 3973 eax = MEM32(eax); /* 0x3607F52B: mov eax, dword ptr [eax] */ 3974 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607F52D: cmp eax, dword ptr [ecx + 4] */ 3975 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3976 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3977 _flag_k = FK_CMP; 3978 MEM32(ebp + (-0x10)) = eax; /* 0x3607F530: mov dword ptr [ebp - 0x10], eax */ 3979 RECOMP_BACKEDGE(); 3980 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F513; /* 0x3607F533: jne 0x3607f513 */ 3981 L_3607F535: 3982 edx = MEM32(esi); /* 0x3607F535: mov edx, dword ptr [esi] */ 3983 eax = edi + 0x4; /* 0x3607F537: lea eax, [edi + 4] */ 3984 PUSH32(esp, eax); /* 0x3607F53A: push eax */ 3985 ecx = esi; /* 0x3607F53B: mov ecx, esi */ 3986 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3607F53D: call dword ptr [edx + 0x24] */ 3987 RECOMP_FLAGS_IN(); 3988 edx = MEM32(esi); /* 0x3607F540: mov edx, dword ptr [esi] */ 3989 PUSH32(esp, 0x362EA510u); /* 0x3607F542: push 0x362ea510 */ 3990 PUSH32(esp, 0); /* 0x3607F547: push 0 */ 3991 PUSH32(esp, esi); /* 0x3607F549: push esi */ 3992 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x68u); 3993 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3994 ebx = ebx + 0x68u; /* 0x3607F54A: add ebx, 0x68 */ 3995 _flag_k = FK_ADD; 3996 PUSH32(esp, ebx); /* 0x3607F54D: push ebx */ 3997 ecx = esi; /* 0x3607F54E: mov ecx, esi */ 3998 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3607F550: call dword ptr [edx + 0x34] */ 3999 RECOMP_FLAGS_IN(); 4000 ecx = MEM32(edi + 0x188); /* 0x3607F553: mov ecx, dword ptr [edi + 0x188] */ 4001 PUSH32(esp, 0x00100000u); /* 0x3607F559: push 0x100000 */ 4002 RECOMP_ICALL(0x36059BA0u); /* 0x3607F55E: call 0x36059ba0 */ /* not lifted */ 4003 RECOMP_FLAGS_IN(); 4004 SET_LO8(ebx, LO8(eax)); /* 0x3607F563: mov bl, al */ 4005 RECOMP_ICALL(0x360F7B00u); /* 0x3607F565: call 0x360f7b00 */ /* not lifted */ 4006 RECOMP_FLAGS_IN(); 4007 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F56A: test bl, bl */ 4008 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4009 _cf = 0; 4010 _flag_k = FK_NARROW(FK_TEST, 24); 4011 esi = eax; /* 0x3607F56C: mov esi, eax */ 4012 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F57F; /* 0x3607F56E: je 0x3607f57f */ 4013 L_3607F570: 4014 PUSH32(esp, 0); /* 0x3607F570: push 0 */ 4015 PUSH32(esp, edi); /* 0x3607F572: push edi */ 4016 PUSH32(esp, 0x2CF2u); /* 0x3607F573: push 0x2cf2 */ 4017 ecx = esi; /* 0x3607F578: mov ecx, esi */ 4018 RECOMP_ICALL(0x360F81E0u); /* 0x3607F57A: call 0x360f81e0 */ /* not lifted */ 4019 RECOMP_FLAGS_IN(); 4020 L_3607F57F: 4021 PUSH32(esp, 0); /* 0x3607F57F: push 0 */ 4022 PUSH32(esp, edi); /* 0x3607F581: push edi */ 4023 PUSH32(esp, 0x2CEDu); /* 0x3607F582: push 0x2ced */ 4024 ecx = esi; /* 0x3607F587: mov ecx, esi */ 4025 RECOMP_ICALL(0x360F81E0u); /* 0x3607F589: call 0x360f81e0 */ /* not lifted */ 4026 RECOMP_FLAGS_IN(); 4027 PUSH32(esp, 0); /* 0x3607F58E: push 0 */ 4028 PUSH32(esp, edi); /* 0x3607F590: push edi */ 4029 PUSH32(esp, 0x2D50u); /* 0x3607F591: push 0x2d50 */ 4030 ecx = esi; /* 0x3607F596: mov ecx, esi */ 4031 MEM32(esi + 0x54) = 0x20u; /* 0x3607F598: mov dword ptr [esi + 0x54], 0x20 */ 4032 RECOMP_ICALL(0x360F81E0u); /* 0x3607F59F: call 0x360f81e0 */ /* not lifted */ 4033 RECOMP_FLAGS_IN(); 4034 edi = POP32_VAL(esp); /* 0x3607F5A4: pop edi */ 4035 esi = POP32_VAL(esp); /* 0x3607F5A5: pop esi */ 4036 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4037 eax = 0; /* 0x3607F5A6: xor eax, eax */ 4038 _cf = 0; 4039 _flag_k = FK_TEST; 4040 ebx = POP32_VAL(esp); /* 0x3607F5A8: pop ebx */ 4041 esp = ebp; /* 0x3607F5A9: mov esp, ebp */ 4042 ebp = POP32_VAL(esp); /* 0x3607F5AB: pop ebp */ 4043 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F5AC: ret */ 4044 RECOMP_REGS_OUT(); 4045 } 4046 4047 void sub_3607F43F(void) { 4048 int _fpu_cmp = 0; 4049 uint32_t _cf = 0; 4050 int _df = 1; 4051 uint32_t _flag_k = FK_NONE; 4052 uint32_t _flag_a = 0, _flag_b = 0; 4053 uint32_t _itail_tgt = 0; 4054 RECOMP_REGS_LOCALS 4055 RECOMP_ENTER(0x3607F43Fu); 4056 4057 L_3607F43F: 4058 eax = MEM32(ebp + (-0x10)); /* 0x3607F43F: mov eax, dword ptr [ebp - 0x10] */ 4059 ecx = MEM32(ebp + (-0x8)); /* 0x3607F442: mov ecx, dword ptr [ebp - 8] */ 4060 PUSH32(esp, eax); /* 0x3607F445: push eax */ 4061 RECOMP_ICALL(0x3602F6A0u); /* 0x3607F446: call 0x3602f6a0 */ /* not lifted */ 4062 RECOMP_FLAGS_IN(); 4063 eax = MEM32(ebp + (-0x8)); /* 0x3607F44B: mov eax, dword ptr [ebp - 8] */ 4064 ecx = MEM32(ebp + (-0x18)); /* 0x3607F44E: mov ecx, dword ptr [ebp - 0x18] */ 4065 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4066 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4067 eax = eax + 8; /* 0x3607F451: add eax, 8 */ 4068 _flag_k = FK_ADD; 4069 MEM32(ebp + (-0x8)) = eax; /* 0x3607F454: mov dword ptr [ebp - 8], eax */ 4070 eax = MEM32(ebp + (-0x10)); /* 0x3607F457: mov eax, dword ptr [ebp - 0x10] */ 4071 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4073 eax = eax + 8; /* 0x3607F45A: add eax, 8 */ 4074 _flag_k = FK_ADD; 4075 /* cmp eax, ecx */ /* 0x3607F45D: cmp eax, ecx */ 4076 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4078 _flag_k = FK_CMP; 4079 MEM32(ebp + (-0x10)) = eax; /* 0x3607F45F: mov dword ptr [ebp - 0x10], eax */ 4080 RECOMP_BACKEDGE(); 4081 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F43F; /* 0x3607F462: jne 0x3607f43f */ 4082 L_3607F464: 4083 edx = MEM32(esi + 0x8); /* 0x3607F464: mov edx, dword ptr [esi + 8] */ 4084 eax = MEM32(ebp + (-0x8)); /* 0x3607F467: mov eax, dword ptr [ebp - 8] */ 4085 PUSH32(esp, edx); /* 0x3607F46A: push edx */ 4086 PUSH32(esp, eax); /* 0x3607F46B: push eax */ 4087 ecx = esi; /* 0x3607F46C: mov ecx, esi */ 4088 RECOMP_ICALL(0x36030CF0u); /* 0x3607F46E: call 0x36030cf0 */ /* not lifted */ 4089 RECOMP_FLAGS_IN(); 4090 ecx = MEM32(ebp + (-0x8)); /* 0x3607F473: mov ecx, dword ptr [ebp - 8] */ 4091 PUSH32(esp, 6); /* 0x3607F476: push 6 */ 4092 MEM32(esi + 0x8) = ecx; /* 0x3607F478: mov dword ptr [esi + 8], ecx */ 4093 RECOMP_ICALL(0x3601C590u); /* 0x3607F47B: call 0x3601c590 */ /* not lifted */ 4094 RECOMP_FLAGS_IN(); 4095 ecx = eax; /* 0x3607F480: mov ecx, eax */ 4096 RECOMP_ICALL(0x3601C880u); /* 0x3607F482: call 0x3601c880 */ /* not lifted */ 4097 RECOMP_FLAGS_IN(); 4098 PUSH32(esp, 1); /* 0x3607F487: push 1 */ 4099 RECOMP_ICALL(0x3601C590u); /* 0x3607F489: call 0x3601c590 */ /* not lifted */ 4100 RECOMP_FLAGS_IN(); 4101 ecx = eax; /* 0x3607F48E: mov ecx, eax */ 4102 RECOMP_ICALL(0x3601C880u); /* 0x3607F490: call 0x3601c880 */ /* not lifted */ 4103 RECOMP_FLAGS_IN(); 4104 PUSH32(esp, 3); /* 0x3607F495: push 3 */ 4105 RECOMP_ICALL(0x3601C590u); /* 0x3607F497: call 0x3601c590 */ /* not lifted */ 4106 RECOMP_FLAGS_IN(); 4107 ecx = eax; /* 0x3607F49C: mov ecx, eax */ 4108 RECOMP_ICALL(0x3601C880u); /* 0x3607F49E: call 0x3601c880 */ /* not lifted */ 4109 RECOMP_FLAGS_IN(); 4110 PUSH32(esp, 7); /* 0x3607F4A3: push 7 */ 4111 RECOMP_ICALL(0x3601C590u); /* 0x3607F4A5: call 0x3601c590 */ /* not lifted */ 4112 RECOMP_FLAGS_IN(); 4113 ecx = eax; /* 0x3607F4AA: mov ecx, eax */ 4114 RECOMP_ICALL(0x3601C880u); /* 0x3607F4AC: call 0x3601c880 */ /* not lifted */ 4115 RECOMP_FLAGS_IN(); 4116 PUSH32(esp, 8); /* 0x3607F4B1: push 8 */ 4117 RECOMP_ICALL(0x3601C590u); /* 0x3607F4B3: call 0x3601c590 */ /* not lifted */ 4118 RECOMP_FLAGS_IN(); 4119 ecx = eax; /* 0x3607F4B8: mov ecx, eax */ 4120 RECOMP_ICALL(0x3601C880u); /* 0x3607F4BA: call 0x3601c880 */ /* not lifted */ 4121 RECOMP_FLAGS_IN(); 4122 edx = MEM32(edi + 0x154); /* 0x3607F4BF: mov edx, dword ptr [edi + 0x154] */ 4123 eax = MEM32(edi + 0xE4); /* 0x3607F4C5: mov eax, dword ptr [edi + 0xe4] */ 4124 esi = edi + 0xE4; /* 0x3607F4CB: lea esi, [edi + 0xe4] */ 4125 PUSH32(esp, 2); /* 0x3607F4D1: push 2 */ 4126 PUSH32(esp, 0xF7u); /* 0x3607F4D3: push 0xf7 */ 4127 ecx = esi; /* 0x3607F4D8: mov ecx, esi */ 4128 MEM32(ebp + (-0x18)) = edx; /* 0x3607F4DA: mov dword ptr [ebp - 0x18], edx */ 4129 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3607F4DD: call dword ptr [eax + 4] */ 4130 RECOMP_FLAGS_IN(); 4131 ecx = MEM32(ebp + (-0x18)); /* 0x3607F4E0: mov ecx, dword ptr [ebp - 0x18] */ 4132 MEM32(ecx + 0x2C) = eax; /* 0x3607F4E3: mov dword ptr [ecx + 0x2c], eax */ 4133 PUSH32(esp, 0); /* 0x3607F4E6: push 0 */ 4134 ecx = edi; /* 0x3607F4E8: mov ecx, edi */ 4135 RECOMP_ICALL(0x360714A0u); /* 0x3607F4EA: call 0x360714a0 */ /* not lifted */ 4136 RECOMP_FLAGS_IN(); 4137 ecx = edi; /* 0x3607F4EF: mov ecx, edi */ 4138 RECOMP_ICALL(0x36072180u); /* 0x3607F4F1: call 0x36072180 */ /* not lifted */ 4139 RECOMP_FLAGS_IN(); 4140 RECOMP_ICALL(0x3601C590u); /* 0x3607F4F6: call 0x3601c590 */ /* not lifted */ 4141 RECOMP_FLAGS_IN(); 4142 ecx = eax; /* 0x3607F4FB: mov ecx, eax */ 4143 RECOMP_ICALL(0x3601CDB0u); /* 0x3607F4FD: call 0x3601cdb0 */ /* not lifted */ 4144 RECOMP_FLAGS_IN(); 4145 edx = MEM32(ebx + 0x58); /* 0x3607F502: mov edx, dword ptr [ebx + 0x58] */ 4146 eax = MEM32(edx + 0x4); /* 0x3607F505: mov eax, dword ptr [edx + 4] */ 4147 ecx = MEM32(eax); /* 0x3607F508: mov ecx, dword ptr [eax] */ 4148 /* cmp ecx, eax */ /* 0x3607F50A: cmp ecx, eax */ 4149 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4151 _flag_k = FK_CMP; 4152 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F50C: mov dword ptr [ebp - 0x10], ecx */ 4153 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F535; /* 0x3607F50F: je 0x3607f535 */ 4154 L_3607F511: 4155 goto L_3607F516; /* 0x3607F511: jmp 0x3607f516 */ 4156 L_3607F513: 4157 ecx = MEM32(ebp + (-0x10)); /* 0x3607F513: mov ecx, dword ptr [ebp - 0x10] */ 4158 L_3607F516: 4159 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4160 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4161 ecx = ecx + 8; /* 0x3607F516: add ecx, 8 */ 4162 _flag_k = FK_ADD; 4163 PUSH32(esp, ecx); /* 0x3607F519: push ecx */ 4164 ecx = MEM32(edi + 0x170); /* 0x3607F51A: mov ecx, dword ptr [edi + 0x170] */ 4165 RECOMP_ICALL(0x360678B0u); /* 0x3607F520: call 0x360678b0 */ /* not lifted */ 4166 RECOMP_FLAGS_IN(); 4167 eax = MEM32(ebp + (-0x10)); /* 0x3607F525: mov eax, dword ptr [ebp - 0x10] */ 4168 ecx = MEM32(ebx + 0x58); /* 0x3607F528: mov ecx, dword ptr [ebx + 0x58] */ 4169 eax = MEM32(eax); /* 0x3607F52B: mov eax, dword ptr [eax] */ 4170 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607F52D: cmp eax, dword ptr [ecx + 4] */ 4171 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4173 _flag_k = FK_CMP; 4174 MEM32(ebp + (-0x10)) = eax; /* 0x3607F530: mov dword ptr [ebp - 0x10], eax */ 4175 RECOMP_BACKEDGE(); 4176 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F513; /* 0x3607F533: jne 0x3607f513 */ 4177 L_3607F535: 4178 edx = MEM32(esi); /* 0x3607F535: mov edx, dword ptr [esi] */ 4179 eax = edi + 0x4; /* 0x3607F537: lea eax, [edi + 4] */ 4180 PUSH32(esp, eax); /* 0x3607F53A: push eax */ 4181 ecx = esi; /* 0x3607F53B: mov ecx, esi */ 4182 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3607F53D: call dword ptr [edx + 0x24] */ 4183 RECOMP_FLAGS_IN(); 4184 edx = MEM32(esi); /* 0x3607F540: mov edx, dword ptr [esi] */ 4185 PUSH32(esp, 0x362EA510u); /* 0x3607F542: push 0x362ea510 */ 4186 PUSH32(esp, 0); /* 0x3607F547: push 0 */ 4187 PUSH32(esp, esi); /* 0x3607F549: push esi */ 4188 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x68u); 4189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4190 ebx = ebx + 0x68u; /* 0x3607F54A: add ebx, 0x68 */ 4191 _flag_k = FK_ADD; 4192 PUSH32(esp, ebx); /* 0x3607F54D: push ebx */ 4193 ecx = esi; /* 0x3607F54E: mov ecx, esi */ 4194 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3607F550: call dword ptr [edx + 0x34] */ 4195 RECOMP_FLAGS_IN(); 4196 ecx = MEM32(edi + 0x188); /* 0x3607F553: mov ecx, dword ptr [edi + 0x188] */ 4197 PUSH32(esp, 0x00100000u); /* 0x3607F559: push 0x100000 */ 4198 RECOMP_ICALL(0x36059BA0u); /* 0x3607F55E: call 0x36059ba0 */ /* not lifted */ 4199 RECOMP_FLAGS_IN(); 4200 SET_LO8(ebx, LO8(eax)); /* 0x3607F563: mov bl, al */ 4201 RECOMP_ICALL(0x360F7B00u); /* 0x3607F565: call 0x360f7b00 */ /* not lifted */ 4202 RECOMP_FLAGS_IN(); 4203 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F56A: test bl, bl */ 4204 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4205 _cf = 0; 4206 _flag_k = FK_NARROW(FK_TEST, 24); 4207 esi = eax; /* 0x3607F56C: mov esi, eax */ 4208 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F57F; /* 0x3607F56E: je 0x3607f57f */ 4209 L_3607F570: 4210 PUSH32(esp, 0); /* 0x3607F570: push 0 */ 4211 PUSH32(esp, edi); /* 0x3607F572: push edi */ 4212 PUSH32(esp, 0x2CF2u); /* 0x3607F573: push 0x2cf2 */ 4213 ecx = esi; /* 0x3607F578: mov ecx, esi */ 4214 RECOMP_ICALL(0x360F81E0u); /* 0x3607F57A: call 0x360f81e0 */ /* not lifted */ 4215 RECOMP_FLAGS_IN(); 4216 L_3607F57F: 4217 PUSH32(esp, 0); /* 0x3607F57F: push 0 */ 4218 PUSH32(esp, edi); /* 0x3607F581: push edi */ 4219 PUSH32(esp, 0x2CEDu); /* 0x3607F582: push 0x2ced */ 4220 ecx = esi; /* 0x3607F587: mov ecx, esi */ 4221 RECOMP_ICALL(0x360F81E0u); /* 0x3607F589: call 0x360f81e0 */ /* not lifted */ 4222 RECOMP_FLAGS_IN(); 4223 PUSH32(esp, 0); /* 0x3607F58E: push 0 */ 4224 PUSH32(esp, edi); /* 0x3607F590: push edi */ 4225 PUSH32(esp, 0x2D50u); /* 0x3607F591: push 0x2d50 */ 4226 ecx = esi; /* 0x3607F596: mov ecx, esi */ 4227 MEM32(esi + 0x54) = 0x20u; /* 0x3607F598: mov dword ptr [esi + 0x54], 0x20 */ 4228 RECOMP_ICALL(0x360F81E0u); /* 0x3607F59F: call 0x360f81e0 */ /* not lifted */ 4229 RECOMP_FLAGS_IN(); 4230 edi = POP32_VAL(esp); /* 0x3607F5A4: pop edi */ 4231 esi = POP32_VAL(esp); /* 0x3607F5A5: pop esi */ 4232 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4233 eax = 0; /* 0x3607F5A6: xor eax, eax */ 4234 _cf = 0; 4235 _flag_k = FK_TEST; 4236 ebx = POP32_VAL(esp); /* 0x3607F5A8: pop ebx */ 4237 esp = ebp; /* 0x3607F5A9: mov esp, ebp */ 4238 ebp = POP32_VAL(esp); /* 0x3607F5AB: pop ebp */ 4239 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F5AC: ret */ 4240 RECOMP_REGS_OUT(); 4241 } 4242 4243 void sub_3607F442(void) { 4244 int _fpu_cmp = 0; 4245 uint32_t _cf = 0; 4246 int _df = 1; 4247 uint32_t _flag_k = FK_NONE; 4248 uint32_t _flag_a = 0, _flag_b = 0; 4249 uint32_t _itail_tgt = 0; 4250 RECOMP_REGS_LOCALS 4251 RECOMP_ENTER(0x3607F442u); 4252 4253 goto L_3607F442; 4254 L_3607F43F: 4255 eax = MEM32(ebp + (-0x10)); /* 0x3607F43F: mov eax, dword ptr [ebp - 0x10] */ 4256 L_3607F442: 4257 ecx = MEM32(ebp + (-0x8)); /* 0x3607F442: mov ecx, dword ptr [ebp - 8] */ 4258 PUSH32(esp, eax); /* 0x3607F445: push eax */ 4259 RECOMP_ICALL(0x3602F6A0u); /* 0x3607F446: call 0x3602f6a0 */ /* not lifted */ 4260 RECOMP_FLAGS_IN(); 4261 eax = MEM32(ebp + (-0x8)); /* 0x3607F44B: mov eax, dword ptr [ebp - 8] */ 4262 ecx = MEM32(ebp + (-0x18)); /* 0x3607F44E: mov ecx, dword ptr [ebp - 0x18] */ 4263 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4265 eax = eax + 8; /* 0x3607F451: add eax, 8 */ 4266 _flag_k = FK_ADD; 4267 MEM32(ebp + (-0x8)) = eax; /* 0x3607F454: mov dword ptr [ebp - 8], eax */ 4268 eax = MEM32(ebp + (-0x10)); /* 0x3607F457: mov eax, dword ptr [ebp - 0x10] */ 4269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4270 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4271 eax = eax + 8; /* 0x3607F45A: add eax, 8 */ 4272 _flag_k = FK_ADD; 4273 /* cmp eax, ecx */ /* 0x3607F45D: cmp eax, ecx */ 4274 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4275 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4276 _flag_k = FK_CMP; 4277 MEM32(ebp + (-0x10)) = eax; /* 0x3607F45F: mov dword ptr [ebp - 0x10], eax */ 4278 RECOMP_BACKEDGE(); 4279 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F43F; /* 0x3607F462: jne 0x3607f43f */ 4280 L_3607F464: 4281 edx = MEM32(esi + 0x8); /* 0x3607F464: mov edx, dword ptr [esi + 8] */ 4282 eax = MEM32(ebp + (-0x8)); /* 0x3607F467: mov eax, dword ptr [ebp - 8] */ 4283 PUSH32(esp, edx); /* 0x3607F46A: push edx */ 4284 PUSH32(esp, eax); /* 0x3607F46B: push eax */ 4285 ecx = esi; /* 0x3607F46C: mov ecx, esi */ 4286 RECOMP_ICALL(0x36030CF0u); /* 0x3607F46E: call 0x36030cf0 */ /* not lifted */ 4287 RECOMP_FLAGS_IN(); 4288 ecx = MEM32(ebp + (-0x8)); /* 0x3607F473: mov ecx, dword ptr [ebp - 8] */ 4289 PUSH32(esp, 6); /* 0x3607F476: push 6 */ 4290 MEM32(esi + 0x8) = ecx; /* 0x3607F478: mov dword ptr [esi + 8], ecx */ 4291 RECOMP_ICALL(0x3601C590u); /* 0x3607F47B: call 0x3601c590 */ /* not lifted */ 4292 RECOMP_FLAGS_IN(); 4293 ecx = eax; /* 0x3607F480: mov ecx, eax */ 4294 RECOMP_ICALL(0x3601C880u); /* 0x3607F482: call 0x3601c880 */ /* not lifted */ 4295 RECOMP_FLAGS_IN(); 4296 PUSH32(esp, 1); /* 0x3607F487: push 1 */ 4297 RECOMP_ICALL(0x3601C590u); /* 0x3607F489: call 0x3601c590 */ /* not lifted */ 4298 RECOMP_FLAGS_IN(); 4299 ecx = eax; /* 0x3607F48E: mov ecx, eax */ 4300 RECOMP_ICALL(0x3601C880u); /* 0x3607F490: call 0x3601c880 */ /* not lifted */ 4301 RECOMP_FLAGS_IN(); 4302 PUSH32(esp, 3); /* 0x3607F495: push 3 */ 4303 RECOMP_ICALL(0x3601C590u); /* 0x3607F497: call 0x3601c590 */ /* not lifted */ 4304 RECOMP_FLAGS_IN(); 4305 ecx = eax; /* 0x3607F49C: mov ecx, eax */ 4306 RECOMP_ICALL(0x3601C880u); /* 0x3607F49E: call 0x3601c880 */ /* not lifted */ 4307 RECOMP_FLAGS_IN(); 4308 PUSH32(esp, 7); /* 0x3607F4A3: push 7 */ 4309 RECOMP_ICALL(0x3601C590u); /* 0x3607F4A5: call 0x3601c590 */ /* not lifted */ 4310 RECOMP_FLAGS_IN(); 4311 ecx = eax; /* 0x3607F4AA: mov ecx, eax */ 4312 RECOMP_ICALL(0x3601C880u); /* 0x3607F4AC: call 0x3601c880 */ /* not lifted */ 4313 RECOMP_FLAGS_IN(); 4314 PUSH32(esp, 8); /* 0x3607F4B1: push 8 */ 4315 RECOMP_ICALL(0x3601C590u); /* 0x3607F4B3: call 0x3601c590 */ /* not lifted */ 4316 RECOMP_FLAGS_IN(); 4317 ecx = eax; /* 0x3607F4B8: mov ecx, eax */ 4318 RECOMP_ICALL(0x3601C880u); /* 0x3607F4BA: call 0x3601c880 */ /* not lifted */ 4319 RECOMP_FLAGS_IN(); 4320 edx = MEM32(edi + 0x154); /* 0x3607F4BF: mov edx, dword ptr [edi + 0x154] */ 4321 eax = MEM32(edi + 0xE4); /* 0x3607F4C5: mov eax, dword ptr [edi + 0xe4] */ 4322 esi = edi + 0xE4; /* 0x3607F4CB: lea esi, [edi + 0xe4] */ 4323 PUSH32(esp, 2); /* 0x3607F4D1: push 2 */ 4324 PUSH32(esp, 0xF7u); /* 0x3607F4D3: push 0xf7 */ 4325 ecx = esi; /* 0x3607F4D8: mov ecx, esi */ 4326 MEM32(ebp + (-0x18)) = edx; /* 0x3607F4DA: mov dword ptr [ebp - 0x18], edx */ 4327 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3607F4DD: call dword ptr [eax + 4] */ 4328 RECOMP_FLAGS_IN(); 4329 ecx = MEM32(ebp + (-0x18)); /* 0x3607F4E0: mov ecx, dword ptr [ebp - 0x18] */ 4330 MEM32(ecx + 0x2C) = eax; /* 0x3607F4E3: mov dword ptr [ecx + 0x2c], eax */ 4331 PUSH32(esp, 0); /* 0x3607F4E6: push 0 */ 4332 ecx = edi; /* 0x3607F4E8: mov ecx, edi */ 4333 RECOMP_ICALL(0x360714A0u); /* 0x3607F4EA: call 0x360714a0 */ /* not lifted */ 4334 RECOMP_FLAGS_IN(); 4335 ecx = edi; /* 0x3607F4EF: mov ecx, edi */ 4336 RECOMP_ICALL(0x36072180u); /* 0x3607F4F1: call 0x36072180 */ /* not lifted */ 4337 RECOMP_FLAGS_IN(); 4338 RECOMP_ICALL(0x3601C590u); /* 0x3607F4F6: call 0x3601c590 */ /* not lifted */ 4339 RECOMP_FLAGS_IN(); 4340 ecx = eax; /* 0x3607F4FB: mov ecx, eax */ 4341 RECOMP_ICALL(0x3601CDB0u); /* 0x3607F4FD: call 0x3601cdb0 */ /* not lifted */ 4342 RECOMP_FLAGS_IN(); 4343 edx = MEM32(ebx + 0x58); /* 0x3607F502: mov edx, dword ptr [ebx + 0x58] */ 4344 eax = MEM32(edx + 0x4); /* 0x3607F505: mov eax, dword ptr [edx + 4] */ 4345 ecx = MEM32(eax); /* 0x3607F508: mov ecx, dword ptr [eax] */ 4346 /* cmp ecx, eax */ /* 0x3607F50A: cmp ecx, eax */ 4347 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4348 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4349 _flag_k = FK_CMP; 4350 MEM32(ebp + (-0x10)) = ecx; /* 0x3607F50C: mov dword ptr [ebp - 0x10], ecx */ 4351 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F535; /* 0x3607F50F: je 0x3607f535 */ 4352 L_3607F511: 4353 goto L_3607F516; /* 0x3607F511: jmp 0x3607f516 */ 4354 L_3607F513: 4355 ecx = MEM32(ebp + (-0x10)); /* 0x3607F513: mov ecx, dword ptr [ebp - 0x10] */ 4356 L_3607F516: 4357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4359 ecx = ecx + 8; /* 0x3607F516: add ecx, 8 */ 4360 _flag_k = FK_ADD; 4361 PUSH32(esp, ecx); /* 0x3607F519: push ecx */ 4362 ecx = MEM32(edi + 0x170); /* 0x3607F51A: mov ecx, dword ptr [edi + 0x170] */ 4363 RECOMP_ICALL(0x360678B0u); /* 0x3607F520: call 0x360678b0 */ /* not lifted */ 4364 RECOMP_FLAGS_IN(); 4365 eax = MEM32(ebp + (-0x10)); /* 0x3607F525: mov eax, dword ptr [ebp - 0x10] */ 4366 ecx = MEM32(ebx + 0x58); /* 0x3607F528: mov ecx, dword ptr [ebx + 0x58] */ 4367 eax = MEM32(eax); /* 0x3607F52B: mov eax, dword ptr [eax] */ 4368 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607F52D: cmp eax, dword ptr [ecx + 4] */ 4369 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4370 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4371 _flag_k = FK_CMP; 4372 MEM32(ebp + (-0x10)) = eax; /* 0x3607F530: mov dword ptr [ebp - 0x10], eax */ 4373 RECOMP_BACKEDGE(); 4374 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F513; /* 0x3607F533: jne 0x3607f513 */ 4375 L_3607F535: 4376 edx = MEM32(esi); /* 0x3607F535: mov edx, dword ptr [esi] */ 4377 eax = edi + 0x4; /* 0x3607F537: lea eax, [edi + 4] */ 4378 PUSH32(esp, eax); /* 0x3607F53A: push eax */ 4379 ecx = esi; /* 0x3607F53B: mov ecx, esi */ 4380 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3607F53D: call dword ptr [edx + 0x24] */ 4381 RECOMP_FLAGS_IN(); 4382 edx = MEM32(esi); /* 0x3607F540: mov edx, dword ptr [esi] */ 4383 PUSH32(esp, 0x362EA510u); /* 0x3607F542: push 0x362ea510 */ 4384 PUSH32(esp, 0); /* 0x3607F547: push 0 */ 4385 PUSH32(esp, esi); /* 0x3607F549: push esi */ 4386 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x68u); 4387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4388 ebx = ebx + 0x68u; /* 0x3607F54A: add ebx, 0x68 */ 4389 _flag_k = FK_ADD; 4390 PUSH32(esp, ebx); /* 0x3607F54D: push ebx */ 4391 ecx = esi; /* 0x3607F54E: mov ecx, esi */ 4392 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3607F550: call dword ptr [edx + 0x34] */ 4393 RECOMP_FLAGS_IN(); 4394 ecx = MEM32(edi + 0x188); /* 0x3607F553: mov ecx, dword ptr [edi + 0x188] */ 4395 PUSH32(esp, 0x00100000u); /* 0x3607F559: push 0x100000 */ 4396 RECOMP_ICALL(0x36059BA0u); /* 0x3607F55E: call 0x36059ba0 */ /* not lifted */ 4397 RECOMP_FLAGS_IN(); 4398 SET_LO8(ebx, LO8(eax)); /* 0x3607F563: mov bl, al */ 4399 RECOMP_ICALL(0x360F7B00u); /* 0x3607F565: call 0x360f7b00 */ /* not lifted */ 4400 RECOMP_FLAGS_IN(); 4401 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F56A: test bl, bl */ 4402 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4403 _cf = 0; 4404 _flag_k = FK_NARROW(FK_TEST, 24); 4405 esi = eax; /* 0x3607F56C: mov esi, eax */ 4406 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F57F; /* 0x3607F56E: je 0x3607f57f */ 4407 L_3607F570: 4408 PUSH32(esp, 0); /* 0x3607F570: push 0 */ 4409 PUSH32(esp, edi); /* 0x3607F572: push edi */ 4410 PUSH32(esp, 0x2CF2u); /* 0x3607F573: push 0x2cf2 */ 4411 ecx = esi; /* 0x3607F578: mov ecx, esi */ 4412 RECOMP_ICALL(0x360F81E0u); /* 0x3607F57A: call 0x360f81e0 */ /* not lifted */ 4413 RECOMP_FLAGS_IN(); 4414 L_3607F57F: 4415 PUSH32(esp, 0); /* 0x3607F57F: push 0 */ 4416 PUSH32(esp, edi); /* 0x3607F581: push edi */ 4417 PUSH32(esp, 0x2CEDu); /* 0x3607F582: push 0x2ced */ 4418 ecx = esi; /* 0x3607F587: mov ecx, esi */ 4419 RECOMP_ICALL(0x360F81E0u); /* 0x3607F589: call 0x360f81e0 */ /* not lifted */ 4420 RECOMP_FLAGS_IN(); 4421 PUSH32(esp, 0); /* 0x3607F58E: push 0 */ 4422 PUSH32(esp, edi); /* 0x3607F590: push edi */ 4423 PUSH32(esp, 0x2D50u); /* 0x3607F591: push 0x2d50 */ 4424 ecx = esi; /* 0x3607F596: mov ecx, esi */ 4425 MEM32(esi + 0x54) = 0x20u; /* 0x3607F598: mov dword ptr [esi + 0x54], 0x20 */ 4426 RECOMP_ICALL(0x360F81E0u); /* 0x3607F59F: call 0x360f81e0 */ /* not lifted */ 4427 RECOMP_FLAGS_IN(); 4428 edi = POP32_VAL(esp); /* 0x3607F5A4: pop edi */ 4429 esi = POP32_VAL(esp); /* 0x3607F5A5: pop esi */ 4430 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4431 eax = 0; /* 0x3607F5A6: xor eax, eax */ 4432 _cf = 0; 4433 _flag_k = FK_TEST; 4434 ebx = POP32_VAL(esp); /* 0x3607F5A8: pop ebx */ 4435 esp = ebp; /* 0x3607F5A9: mov esp, ebp */ 4436 ebp = POP32_VAL(esp); /* 0x3607F5AB: pop ebp */ 4437 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F5AC: ret */ 4438 RECOMP_REGS_OUT(); 4439 } 4440 4441 void sub_3607F513(void) { 4442 int _fpu_cmp = 0; 4443 uint32_t _cf = 0; 4444 int _df = 1; 4445 uint32_t _flag_k = FK_NONE; 4446 uint32_t _flag_a = 0, _flag_b = 0; 4447 uint32_t _itail_tgt = 0; 4448 RECOMP_REGS_LOCALS 4449 RECOMP_ENTER(0x3607F513u); 4450 4451 L_3607F513: 4452 ecx = MEM32(ebp + (-0x10)); /* 0x3607F513: mov ecx, dword ptr [ebp - 0x10] */ 4453 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4455 ecx = ecx + 8; /* 0x3607F516: add ecx, 8 */ 4456 _flag_k = FK_ADD; 4457 PUSH32(esp, ecx); /* 0x3607F519: push ecx */ 4458 ecx = MEM32(edi + 0x170); /* 0x3607F51A: mov ecx, dword ptr [edi + 0x170] */ 4459 RECOMP_ICALL(0x360678B0u); /* 0x3607F520: call 0x360678b0 */ /* not lifted */ 4460 RECOMP_FLAGS_IN(); 4461 eax = MEM32(ebp + (-0x10)); /* 0x3607F525: mov eax, dword ptr [ebp - 0x10] */ 4462 ecx = MEM32(ebx + 0x58); /* 0x3607F528: mov ecx, dword ptr [ebx + 0x58] */ 4463 eax = MEM32(eax); /* 0x3607F52B: mov eax, dword ptr [eax] */ 4464 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607F52D: cmp eax, dword ptr [ecx + 4] */ 4465 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4466 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4467 _flag_k = FK_CMP; 4468 MEM32(ebp + (-0x10)) = eax; /* 0x3607F530: mov dword ptr [ebp - 0x10], eax */ 4469 RECOMP_BACKEDGE(); 4470 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F513; /* 0x3607F533: jne 0x3607f513 */ 4471 L_3607F535: 4472 edx = MEM32(esi); /* 0x3607F535: mov edx, dword ptr [esi] */ 4473 eax = edi + 0x4; /* 0x3607F537: lea eax, [edi + 4] */ 4474 PUSH32(esp, eax); /* 0x3607F53A: push eax */ 4475 ecx = esi; /* 0x3607F53B: mov ecx, esi */ 4476 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3607F53D: call dword ptr [edx + 0x24] */ 4477 RECOMP_FLAGS_IN(); 4478 edx = MEM32(esi); /* 0x3607F540: mov edx, dword ptr [esi] */ 4479 PUSH32(esp, 0x362EA510u); /* 0x3607F542: push 0x362ea510 */ 4480 PUSH32(esp, 0); /* 0x3607F547: push 0 */ 4481 PUSH32(esp, esi); /* 0x3607F549: push esi */ 4482 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x68u); 4483 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4484 ebx = ebx + 0x68u; /* 0x3607F54A: add ebx, 0x68 */ 4485 _flag_k = FK_ADD; 4486 PUSH32(esp, ebx); /* 0x3607F54D: push ebx */ 4487 ecx = esi; /* 0x3607F54E: mov ecx, esi */ 4488 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3607F550: call dword ptr [edx + 0x34] */ 4489 RECOMP_FLAGS_IN(); 4490 ecx = MEM32(edi + 0x188); /* 0x3607F553: mov ecx, dword ptr [edi + 0x188] */ 4491 PUSH32(esp, 0x00100000u); /* 0x3607F559: push 0x100000 */ 4492 RECOMP_ICALL(0x36059BA0u); /* 0x3607F55E: call 0x36059ba0 */ /* not lifted */ 4493 RECOMP_FLAGS_IN(); 4494 SET_LO8(ebx, LO8(eax)); /* 0x3607F563: mov bl, al */ 4495 RECOMP_ICALL(0x360F7B00u); /* 0x3607F565: call 0x360f7b00 */ /* not lifted */ 4496 RECOMP_FLAGS_IN(); 4497 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F56A: test bl, bl */ 4498 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4499 _cf = 0; 4500 _flag_k = FK_NARROW(FK_TEST, 24); 4501 esi = eax; /* 0x3607F56C: mov esi, eax */ 4502 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F57F; /* 0x3607F56E: je 0x3607f57f */ 4503 L_3607F570: 4504 PUSH32(esp, 0); /* 0x3607F570: push 0 */ 4505 PUSH32(esp, edi); /* 0x3607F572: push edi */ 4506 PUSH32(esp, 0x2CF2u); /* 0x3607F573: push 0x2cf2 */ 4507 ecx = esi; /* 0x3607F578: mov ecx, esi */ 4508 RECOMP_ICALL(0x360F81E0u); /* 0x3607F57A: call 0x360f81e0 */ /* not lifted */ 4509 RECOMP_FLAGS_IN(); 4510 L_3607F57F: 4511 PUSH32(esp, 0); /* 0x3607F57F: push 0 */ 4512 PUSH32(esp, edi); /* 0x3607F581: push edi */ 4513 PUSH32(esp, 0x2CEDu); /* 0x3607F582: push 0x2ced */ 4514 ecx = esi; /* 0x3607F587: mov ecx, esi */ 4515 RECOMP_ICALL(0x360F81E0u); /* 0x3607F589: call 0x360f81e0 */ /* not lifted */ 4516 RECOMP_FLAGS_IN(); 4517 PUSH32(esp, 0); /* 0x3607F58E: push 0 */ 4518 PUSH32(esp, edi); /* 0x3607F590: push edi */ 4519 PUSH32(esp, 0x2D50u); /* 0x3607F591: push 0x2d50 */ 4520 ecx = esi; /* 0x3607F596: mov ecx, esi */ 4521 MEM32(esi + 0x54) = 0x20u; /* 0x3607F598: mov dword ptr [esi + 0x54], 0x20 */ 4522 RECOMP_ICALL(0x360F81E0u); /* 0x3607F59F: call 0x360f81e0 */ /* not lifted */ 4523 RECOMP_FLAGS_IN(); 4524 edi = POP32_VAL(esp); /* 0x3607F5A4: pop edi */ 4525 esi = POP32_VAL(esp); /* 0x3607F5A5: pop esi */ 4526 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4527 eax = 0; /* 0x3607F5A6: xor eax, eax */ 4528 _cf = 0; 4529 _flag_k = FK_TEST; 4530 ebx = POP32_VAL(esp); /* 0x3607F5A8: pop ebx */ 4531 esp = ebp; /* 0x3607F5A9: mov esp, ebp */ 4532 ebp = POP32_VAL(esp); /* 0x3607F5AB: pop ebp */ 4533 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F5AC: ret */ 4534 RECOMP_REGS_OUT(); 4535 } 4536 4537 void sub_3607F516(void) { 4538 int _fpu_cmp = 0; 4539 uint32_t _cf = 0; 4540 int _df = 1; 4541 uint32_t _flag_k = FK_NONE; 4542 uint32_t _flag_a = 0, _flag_b = 0; 4543 uint32_t _itail_tgt = 0; 4544 RECOMP_REGS_LOCALS 4545 RECOMP_ENTER(0x3607F516u); 4546 4547 goto L_3607F516; 4548 L_3607F513: 4549 ecx = MEM32(ebp + (-0x10)); /* 0x3607F513: mov ecx, dword ptr [ebp - 0x10] */ 4550 L_3607F516: 4551 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 4552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4553 ecx = ecx + 8; /* 0x3607F516: add ecx, 8 */ 4554 _flag_k = FK_ADD; 4555 PUSH32(esp, ecx); /* 0x3607F519: push ecx */ 4556 ecx = MEM32(edi + 0x170); /* 0x3607F51A: mov ecx, dword ptr [edi + 0x170] */ 4557 RECOMP_ICALL(0x360678B0u); /* 0x3607F520: call 0x360678b0 */ /* not lifted */ 4558 RECOMP_FLAGS_IN(); 4559 eax = MEM32(ebp + (-0x10)); /* 0x3607F525: mov eax, dword ptr [ebp - 0x10] */ 4560 ecx = MEM32(ebx + 0x58); /* 0x3607F528: mov ecx, dword ptr [ebx + 0x58] */ 4561 eax = MEM32(eax); /* 0x3607F52B: mov eax, dword ptr [eax] */ 4562 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3607F52D: cmp eax, dword ptr [ecx + 4] */ 4563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 4564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4565 _flag_k = FK_CMP; 4566 MEM32(ebp + (-0x10)) = eax; /* 0x3607F530: mov dword ptr [ebp - 0x10], eax */ 4567 RECOMP_BACKEDGE(); 4568 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F513; /* 0x3607F533: jne 0x3607f513 */ 4569 L_3607F535: 4570 edx = MEM32(esi); /* 0x3607F535: mov edx, dword ptr [esi] */ 4571 eax = edi + 0x4; /* 0x3607F537: lea eax, [edi + 4] */ 4572 PUSH32(esp, eax); /* 0x3607F53A: push eax */ 4573 ecx = esi; /* 0x3607F53B: mov ecx, esi */ 4574 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3607F53D: call dword ptr [edx + 0x24] */ 4575 RECOMP_FLAGS_IN(); 4576 edx = MEM32(esi); /* 0x3607F540: mov edx, dword ptr [esi] */ 4577 PUSH32(esp, 0x362EA510u); /* 0x3607F542: push 0x362ea510 */ 4578 PUSH32(esp, 0); /* 0x3607F547: push 0 */ 4579 PUSH32(esp, esi); /* 0x3607F549: push esi */ 4580 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x68u); 4581 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4582 ebx = ebx + 0x68u; /* 0x3607F54A: add ebx, 0x68 */ 4583 _flag_k = FK_ADD; 4584 PUSH32(esp, ebx); /* 0x3607F54D: push ebx */ 4585 ecx = esi; /* 0x3607F54E: mov ecx, esi */ 4586 RECOMP_ICALL(MEM32(edx + 0x34)); /* 0x3607F550: call dword ptr [edx + 0x34] */ 4587 RECOMP_FLAGS_IN(); 4588 ecx = MEM32(edi + 0x188); /* 0x3607F553: mov ecx, dword ptr [edi + 0x188] */ 4589 PUSH32(esp, 0x00100000u); /* 0x3607F559: push 0x100000 */ 4590 RECOMP_ICALL(0x36059BA0u); /* 0x3607F55E: call 0x36059ba0 */ /* not lifted */ 4591 RECOMP_FLAGS_IN(); 4592 SET_LO8(ebx, LO8(eax)); /* 0x3607F563: mov bl, al */ 4593 RECOMP_ICALL(0x360F7B00u); /* 0x3607F565: call 0x360f7b00 */ /* not lifted */ 4594 RECOMP_FLAGS_IN(); 4595 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F56A: test bl, bl */ 4596 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4597 _cf = 0; 4598 _flag_k = FK_NARROW(FK_TEST, 24); 4599 esi = eax; /* 0x3607F56C: mov esi, eax */ 4600 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F57F; /* 0x3607F56E: je 0x3607f57f */ 4601 L_3607F570: 4602 PUSH32(esp, 0); /* 0x3607F570: push 0 */ 4603 PUSH32(esp, edi); /* 0x3607F572: push edi */ 4604 PUSH32(esp, 0x2CF2u); /* 0x3607F573: push 0x2cf2 */ 4605 ecx = esi; /* 0x3607F578: mov ecx, esi */ 4606 RECOMP_ICALL(0x360F81E0u); /* 0x3607F57A: call 0x360f81e0 */ /* not lifted */ 4607 RECOMP_FLAGS_IN(); 4608 L_3607F57F: 4609 PUSH32(esp, 0); /* 0x3607F57F: push 0 */ 4610 PUSH32(esp, edi); /* 0x3607F581: push edi */ 4611 PUSH32(esp, 0x2CEDu); /* 0x3607F582: push 0x2ced */ 4612 ecx = esi; /* 0x3607F587: mov ecx, esi */ 4613 RECOMP_ICALL(0x360F81E0u); /* 0x3607F589: call 0x360f81e0 */ /* not lifted */ 4614 RECOMP_FLAGS_IN(); 4615 PUSH32(esp, 0); /* 0x3607F58E: push 0 */ 4616 PUSH32(esp, edi); /* 0x3607F590: push edi */ 4617 PUSH32(esp, 0x2D50u); /* 0x3607F591: push 0x2d50 */ 4618 ecx = esi; /* 0x3607F596: mov ecx, esi */ 4619 MEM32(esi + 0x54) = 0x20u; /* 0x3607F598: mov dword ptr [esi + 0x54], 0x20 */ 4620 RECOMP_ICALL(0x360F81E0u); /* 0x3607F59F: call 0x360f81e0 */ /* not lifted */ 4621 RECOMP_FLAGS_IN(); 4622 edi = POP32_VAL(esp); /* 0x3607F5A4: pop edi */ 4623 esi = POP32_VAL(esp); /* 0x3607F5A5: pop esi */ 4624 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4625 eax = 0; /* 0x3607F5A6: xor eax, eax */ 4626 _cf = 0; 4627 _flag_k = FK_TEST; 4628 ebx = POP32_VAL(esp); /* 0x3607F5A8: pop ebx */ 4629 esp = ebp; /* 0x3607F5A9: mov esp, ebp */ 4630 ebp = POP32_VAL(esp); /* 0x3607F5AB: pop ebp */ 4631 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F5AC: ret */ 4632 RECOMP_REGS_OUT(); 4633 } 4634 4635 void sub_3607F5B0(void) { 4636 int _fpu_cmp = 0; 4637 uint32_t _cf = 0; 4638 int _df = 1; 4639 uint32_t _flag_k = FK_NONE; 4640 uint32_t _flag_a = 0, _flag_b = 0; 4641 uint32_t _itail_tgt = 0; 4642 RECOMP_REGS_LOCALS 4643 RECOMP_ENTER(0x3607F5B0u); 4644 RECOMP_EH_ENTER(); 4645 4646 L_3607F5B0: 4647 PUSH32(esp, ebp); /* 0x3607F5B0: push ebp */ 4648 ebp = esp; /* 0x3607F5B1: mov ebp, esp */ 4649 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607F5B3: push -1 */ 4650 PUSH32(esp, 0x36165606u); /* 0x3607F5B5: push 0x36165606 */ 4651 eax = MEM32(FS_BASE + (0)); /* 0x3607F5BA: mov eax, dword ptr fs:[0] */ 4652 PUSH32(esp, eax); /* 0x3607F5C0: push eax */ 4653 MEM32(FS_BASE + (0)) = esp; /* 0x3607F5C1: mov dword ptr fs:[0], esp */ 4654 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u); 4655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4656 esp = esp - 0x28u; /* 0x3607F5C8: sub esp, 0x28 */ 4657 _flag_k = FK_CMP; 4658 PUSH32(esp, ebx); /* 0x3607F5CB: push ebx */ 4659 PUSH32(esp, esi); /* 0x3607F5CC: push esi */ 4660 esi = MEM32(ebp + 0x8); /* 0x3607F5CD: mov esi, dword ptr [ebp + 8] */ 4661 PUSH32(esp, edi); /* 0x3607F5D0: push edi */ 4662 edi = ecx; /* 0x3607F5D1: mov edi, ecx */ 4663 eax = ebp + (-0x14); /* 0x3607F5D3: lea eax, [ebp - 0x14] */ 4664 MEM32(ebp + (-0x10)) = esp; /* 0x3607F5D6: mov dword ptr [ebp - 0x10], esp */ 4665 PUSH32(esp, eax); /* 0x3607F5D9: push eax */ 4666 ecx = esi; /* 0x3607F5DA: mov ecx, esi */ 4667 MEM32(ebp + (-0x20)) = edi; /* 0x3607F5DC: mov dword ptr [ebp - 0x20], edi */ 4668 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607F5DF: call dword ptr [0x3616fa8c] */ 4669 RECOMP_FLAGS_IN(); 4670 eax = MEM32(ebp + (-0x14)); /* 0x3607F5E5: mov eax, dword ptr [ebp - 0x14] */ 4671 ecx = MEM32(0x361C4E18); /* 0x3607F5E8: mov ecx, dword ptr [0x361c4e18] */ 4672 /* cmp eax, ecx */ /* 0x3607F5EE: cmp eax, ecx */ 4673 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4674 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4675 _flag_k = FK_CMP; 4676 SET_LO8(edx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3607F5F0: sete dl */ 4677 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4678 ecx = ecx - 1; /* 0x3607F5F3: dec ecx */ 4679 _flag_k = FK_DEC; 4680 /* cmp eax, ecx */ /* 0x3607F5F4: cmp eax, ecx */ 4681 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4683 _flag_k = FK_CMP; 4684 SET_LO8(ebx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3607F5F6: sete bl */ 4685 /* test LO8(edx), LO8(edx) */ /* 0x3607F5F9: test dl, dl */ 4686 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 4687 _cf = 0; 4688 _flag_k = FK_NARROW(FK_TEST, 24); 4689 MEM8(ebp + 0xB) = (uint8_t)(LO8(ebx)); /* 0x3607F5FB: mov byte ptr [ebp + 0xb], bl */ 4690 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607F61C; /* 0x3607F5FE: jne 0x3607f61c */ 4691 L_3607F600: 4692 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F600: test bl, bl */ 4693 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4694 _cf = 0; 4695 _flag_k = FK_NARROW(FK_TEST, 24); 4696 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607F61C; /* 0x3607F602: jne 0x3607f61c */ 4697 L_3607F604: 4698 eax = 1; /* 0x3607F604: mov eax, 1 */ 4699 ecx = MEM32(ebp + (-0xC)); /* 0x3607F609: mov ecx, dword ptr [ebp - 0xc] */ 4700 MEM32(FS_BASE + (0)) = ecx; /* 0x3607F60C: mov dword ptr fs:[0], ecx */ 4701 edi = POP32_VAL(esp); /* 0x3607F613: pop edi */ 4702 esi = POP32_VAL(esp); /* 0x3607F614: pop esi */ 4703 ebx = POP32_VAL(esp); /* 0x3607F615: pop ebx */ 4704 esp = ebp; /* 0x3607F616: mov esp, ebp */ 4705 ebp = POP32_VAL(esp); /* 0x3607F618: pop ebp */ 4706 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x3607F619: ret 4 */ 4707 L_3607F61C: 4708 ecx = MEM32(edi + 0x5C); /* 0x3607F61C: mov ecx, dword ptr [edi + 0x5c] */ 4709 PUSH32(esp, ecx); /* 0x3607F61F: push ecx */ 4710 PUSH32(esp, esi); /* 0x3607F620: push esi */ 4711 RECOMP_ICALL(0x3602DBA0u); /* 0x3607F621: call 0x3602dba0 */ /* not lifted */ 4712 RECOMP_FLAGS_IN(); 4713 edx = MEM32(edi + 0x20); /* 0x3607F626: mov edx, dword ptr [edi + 0x20] */ 4714 PUSH32(esp, edx); /* 0x3607F629: push edx */ 4715 PUSH32(esp, esi); /* 0x3607F62A: push esi */ 4716 RECOMP_ICALL(0x360C5270u); /* 0x3607F62B: call 0x360c5270 */ /* not lifted */ 4717 RECOMP_FLAGS_IN(); 4718 eax = MEM32(edi + 0x24); /* 0x3607F630: mov eax, dword ptr [edi + 0x24] */ 4719 PUSH32(esp, eax); /* 0x3607F633: push eax */ 4720 PUSH32(esp, esi); /* 0x3607F634: push esi */ 4721 RECOMP_ICALL(0x3601DE20u); /* 0x3607F635: call 0x3601de20 */ /* not lifted */ 4722 RECOMP_FLAGS_IN(); 4723 ecx = MEM32(edi + 0x28); /* 0x3607F63A: mov ecx, dword ptr [edi + 0x28] */ 4724 PUSH32(esp, ecx); /* 0x3607F63D: push ecx */ 4725 PUSH32(esp, esi); /* 0x3607F63E: push esi */ 4726 RECOMP_ICALL(0x3601DD60u); /* 0x3607F63F: call 0x3601dd60 */ /* not lifted */ 4727 RECOMP_FLAGS_IN(); 4728 edx = MEM32(edi + 0x2C); /* 0x3607F644: mov edx, dword ptr [edi + 0x2c] */ 4729 PUSH32(esp, edx); /* 0x3607F647: push edx */ 4730 PUSH32(esp, esi); /* 0x3607F648: push esi */ 4731 RECOMP_ICALL(0x3601DD60u); /* 0x3607F649: call 0x3601dd60 */ /* not lifted */ 4732 RECOMP_FLAGS_IN(); 4733 eax = MEM32(edi + 0x30); /* 0x3607F64E: mov eax, dword ptr [edi + 0x30] */ 4734 PUSH32(esp, eax); /* 0x3607F651: push eax */ 4735 PUSH32(esp, esi); /* 0x3607F652: push esi */ 4736 RECOMP_ICALL(0x3602EA00u); /* 0x3607F653: call 0x3602ea00 */ /* not lifted */ 4737 RECOMP_FLAGS_IN(); 4738 ecx = MEM32(edi + 0x34); /* 0x3607F658: mov ecx, dword ptr [edi + 0x34] */ 4739 PUSH32(esp, ecx); /* 0x3607F65B: push ecx */ 4740 PUSH32(esp, esi); /* 0x3607F65C: push esi */ 4741 RECOMP_ICALL(0x3602F2D0u); /* 0x3607F65D: call 0x3602f2d0 */ /* not lifted */ 4742 RECOMP_FLAGS_IN(); 4743 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 4744 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4745 esp = esp + 0x38u; /* 0x3607F662: add esp, 0x38 */ 4746 _flag_k = FK_ADD; 4747 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F665: test bl, bl */ 4748 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4749 _cf = 0; 4750 _flag_k = FK_NARROW(FK_TEST, 24); 4751 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F6BE; /* 0x3607F667: je 0x3607f6be */ 4752 L_3607F669: 4753 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3607F669: mov dl, byte ptr [ebp + 0xb] */ 4754 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4755 eax = 0; /* 0x3607F66C: xor eax, eax */ 4756 _cf = 0; 4757 _flag_k = FK_TEST; 4758 MEM8(ebp + (-0x30)) = (uint8_t)(LO8(edx)); /* 0x3607F66E: mov byte ptr [ebp - 0x30], dl */ 4759 MEM32(ebp + (-0x2C)) = eax; /* 0x3607F671: mov dword ptr [ebp - 0x2c], eax */ 4760 MEM32(ebp + (-0x28)) = eax; /* 0x3607F674: mov dword ptr [ebp - 0x28], eax */ 4761 MEM32(ebp + (-0x24)) = eax; /* 0x3607F677: mov dword ptr [ebp - 0x24], eax */ 4762 MEM32(ebp + (-0x4)) = eax; /* 0x3607F67A: mov dword ptr [ebp - 4], eax */ 4763 eax = ebp + (-0x30); /* 0x3607F67D: lea eax, [ebp - 0x30] */ 4764 PUSH32(esp, eax); /* 0x3607F680: push eax */ 4765 PUSH32(esp, esi); /* 0x3607F681: push esi */ 4766 RECOMP_ICALL(0x3602F2D0u); /* 0x3607F682: call 0x3602f2d0 */ /* not lifted */ 4767 RECOMP_FLAGS_IN(); 4768 eax = MEM32(ebp + (-0x28)); /* 0x3607F687: mov eax, dword ptr [ebp - 0x28] */ 4769 ebx = MEM32(ebp + (-0x2C)); /* 0x3607F68A: mov ebx, dword ptr [ebp - 0x2c] */ 4770 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4771 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4772 esp = esp + 8; /* 0x3607F68D: add esp, 8 */ 4773 _flag_k = FK_ADD; 4774 /* cmp ebx, eax */ /* 0x3607F690: cmp ebx, eax */ 4775 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4776 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4777 _flag_k = FK_CMP; 4778 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F692: mov dword ptr [ebp - 4], 0xffffffff */ 4779 MEM32(ebp + (-0x18)) = eax; /* 0x3607F699: mov dword ptr [ebp - 0x18], eax */ 4780 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F6B2; /* 0x3607F69C: je 0x3607f6b2 */ 4781 L_3607F69E: 4782 ecx = ebx; /* 0x3607F69E: mov ecx, ebx */ 4783 RECOMP_ICALL(0x360E2940u); /* 0x3607F6A0: call 0x360e2940 */ /* not lifted */ 4784 RECOMP_FLAGS_IN(); 4785 eax = MEM32(ebp + (-0x18)); /* 0x3607F6A5: mov eax, dword ptr [ebp - 0x18] */ 4786 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 4787 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4788 ebx = ebx + 8; /* 0x3607F6A8: add ebx, 8 */ 4789 _flag_k = FK_ADD; 4790 /* cmp ebx, eax */ /* 0x3607F6AB: cmp ebx, eax */ 4791 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 4792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4793 _flag_k = FK_CMP; 4794 RECOMP_BACKEDGE(); 4795 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F69E; /* 0x3607F6AD: jne 0x3607f69e */ 4796 L_3607F6AF: 4797 ebx = MEM32(ebp + (-0x2C)); /* 0x3607F6AF: mov ebx, dword ptr [ebp - 0x2c] */ 4798 L_3607F6B2: 4799 PUSH32(esp, ebx); /* 0x3607F6B2: push ebx */ 4800 RECOMP_ICALL(0x3615FCC4u); /* 0x3607F6B3: call 0x3615fcc4 */ /* not lifted */ 4801 RECOMP_FLAGS_IN(); 4802 SET_LO8(ebx, MEM8(ebp + 0xB)); /* 0x3607F6B8: mov bl, byte ptr [ebp + 0xb] */ 4803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4805 esp = esp + 4; /* 0x3607F6BB: add esp, 4 */ 4806 _flag_k = FK_ADD; 4807 L_3607F6BE: 4808 ecx = MEM32(edi + 0x38); /* 0x3607F6BE: mov ecx, dword ptr [edi + 0x38] */ 4809 PUSH32(esp, ecx); /* 0x3607F6C1: push ecx */ 4810 PUSH32(esp, esi); /* 0x3607F6C2: push esi */ 4811 RECOMP_ICALL(0x36030100u); /* 0x3607F6C3: call 0x36030100 */ /* not lifted */ 4812 RECOMP_FLAGS_IN(); 4813 edx = MEM32(edi + 0x3C); /* 0x3607F6C8: mov edx, dword ptr [edi + 0x3c] */ 4814 PUSH32(esp, edx); /* 0x3607F6CB: push edx */ 4815 PUSH32(esp, esi); /* 0x3607F6CC: push esi */ 4816 RECOMP_ICALL(0x36030100u); /* 0x3607F6CD: call 0x36030100 */ /* not lifted */ 4817 RECOMP_FLAGS_IN(); 4818 eax = MEM32(edi + 0x40); /* 0x3607F6D2: mov eax, dword ptr [edi + 0x40] */ 4819 PUSH32(esp, eax); /* 0x3607F6D5: push eax */ 4820 PUSH32(esp, esi); /* 0x3607F6D6: push esi */ 4821 RECOMP_ICALL(0x36030B60u); /* 0x3607F6D7: call 0x36030b60 */ /* not lifted */ 4822 RECOMP_FLAGS_IN(); 4823 ecx = MEM32(edi + 0x44); /* 0x3607F6DC: mov ecx, dword ptr [edi + 0x44] */ 4824 PUSH32(esp, ecx); /* 0x3607F6DF: push ecx */ 4825 PUSH32(esp, esi); /* 0x3607F6E0: push esi */ 4826 RECOMP_ICALL(0x360306C0u); /* 0x3607F6E1: call 0x360306c0 */ /* not lifted */ 4827 RECOMP_FLAGS_IN(); 4828 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4829 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4830 esp = esp + 0x20u; /* 0x3607F6E6: add esp, 0x20 */ 4831 _flag_k = FK_ADD; 4832 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F6E9: test bl, bl */ 4833 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 4834 _cf = 0; 4835 _flag_k = FK_NARROW(FK_TEST, 24); 4836 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F750; /* 0x3607F6EB: je 0x3607f750 */ 4837 L_3607F6ED: 4838 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3607F6ED: mov dl, byte ptr [ebp + 0xb] */ 4839 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607F6F0: mov al, byte ptr [ebp + 0xb] */ 4840 ecx = ebp + (-0x34); /* 0x3607F6F3: lea ecx, [ebp - 0x34] */ 4841 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(edx)); /* 0x3607F6F6: mov byte ptr [ebp - 0x34], dl */ 4842 MEM8(ebp + (-0x33)) = (uint8_t)(LO8(eax)); /* 0x3607F6F9: mov byte ptr [ebp - 0x33], al */ 4843 MEM8(ebp + (-0x28)) = (uint8_t)(0); /* 0x3607F6FC: mov byte ptr [ebp - 0x28], 0 */ 4844 RECOMP_ICALL(0x36068320u); /* 0x3607F700: call 0x36068320 */ /* not lifted */ 4845 RECOMP_FLAGS_IN(); 4846 ecx = ebp + (-0x34); /* 0x3607F705: lea ecx, [ebp - 0x34] */ 4847 PUSH32(esp, ecx); /* 0x3607F708: push ecx */ 4848 PUSH32(esp, esi); /* 0x3607F709: push esi */ 4849 MEM32(ebp + (-0x4)) = 1; /* 0x3607F70A: mov dword ptr [ebp - 4], 1 */ 4850 RECOMP_ICALL(0x36008C90u); /* 0x3607F711: call 0x36008c90 */ /* not lifted */ 4851 RECOMP_FLAGS_IN(); 4852 eax = MEM32(ebp + (-0x30)); /* 0x3607F716: mov eax, dword ptr [ebp - 0x30] */ 4853 ecx = MEM32(eax); /* 0x3607F719: mov ecx, dword ptr [eax] */ 4854 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4855 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4856 esp = esp + 8; /* 0x3607F71B: add esp, 8 */ 4857 _flag_k = FK_ADD; 4858 PUSH32(esp, eax); /* 0x3607F71E: push eax */ 4859 PUSH32(esp, ecx); /* 0x3607F71F: push ecx */ 4860 edx = ebp + 0x8; /* 0x3607F720: lea edx, [ebp + 8] */ 4861 PUSH32(esp, edx); /* 0x3607F723: push edx */ 4862 ecx = ebp + (-0x34); /* 0x3607F724: lea ecx, [ebp - 0x34] */ 4863 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F727: mov dword ptr [ebp - 4], 0xffffffff */ 4864 RECOMP_ICALL(0x360724D0u); /* 0x3607F72E: call 0x360724d0 */ /* not lifted */ 4865 RECOMP_FLAGS_IN(); 4866 eax = MEM32(ebp + (-0x30)); /* 0x3607F733: mov eax, dword ptr [ebp - 0x30] */ 4867 PUSH32(esp, eax); /* 0x3607F736: push eax */ 4868 RECOMP_ICALL(0x3615FCC4u); /* 0x3607F737: call 0x3615fcc4 */ /* not lifted */ 4869 RECOMP_FLAGS_IN(); 4870 ecx = MEM32(ebp + (-0x2C)); /* 0x3607F73C: mov ecx, dword ptr [ebp - 0x2c] */ 4871 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4872 eax = 0; /* 0x3607F73F: xor eax, eax */ 4873 _cf = 0; 4874 _flag_k = FK_TEST; 4875 PUSH32(esp, ecx); /* 0x3607F741: push ecx */ 4876 MEM32(ebp + (-0x30)) = eax; /* 0x3607F742: mov dword ptr [ebp - 0x30], eax */ 4877 MEM32(ebp + (-0x24)) = eax; /* 0x3607F745: mov dword ptr [ebp - 0x24], eax */ 4878 RECOMP_ICALL(0x3615FCC4u); /* 0x3607F748: call 0x3615fcc4 */ /* not lifted */ 4879 RECOMP_FLAGS_IN(); 4880 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4881 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4882 esp = esp + 8; /* 0x3607F74D: add esp, 8 */ 4883 _flag_k = FK_ADD; 4884 L_3607F750: 4885 edx = MEM32(edi + 0x48); /* 0x3607F750: mov edx, dword ptr [edi + 0x48] */ 4886 PUSH32(esp, edx); /* 0x3607F753: push edx */ 4887 PUSH32(esp, esi); /* 0x3607F754: push esi */ 4888 RECOMP_ICALL(0x36008C90u); /* 0x3607F755: call 0x36008c90 */ /* not lifted */ 4889 RECOMP_FLAGS_IN(); 4890 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4892 esp = esp + 8; /* 0x3607F75A: add esp, 8 */ 4893 _flag_k = FK_ADD; 4894 eax = ebp + (-0x1C); /* 0x3607F75D: lea eax, [ebp - 0x1c] */ 4895 PUSH32(esp, eax); /* 0x3607F760: push eax */ 4896 ecx = esi; /* 0x3607F761: mov ecx, esi */ 4897 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607F763: call dword ptr [0x3616fa8c] */ 4898 RECOMP_FLAGS_IN(); 4899 edx = MEM32(ebp + (-0x1C)); /* 0x3607F769: mov edx, dword ptr [ebp - 0x1c] */ 4900 /* test edx, edx */ /* 0x3607F76C: test edx, edx */ 4901 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4902 _cf = 0; 4903 _flag_k = FK_TEST; 4904 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3607F76E: setne al */ 4905 /* test LO8(eax), LO8(eax) */ /* 0x3607F771: test al, al */ 4906 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4907 _cf = 0; 4908 _flag_k = FK_NARROW(FK_TEST, 24); 4909 MEM8(edi + 0x64) = (uint8_t)(LO8(eax)); /* 0x3607F773: mov byte ptr [edi + 0x64], al */ 4910 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F836; /* 0x3607F776: je 0x3607f836 */ 4911 L_3607F77C: 4912 PUSH32(esp, 0xCu); /* 0x3607F77C: push 0xc */ 4913 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F77E: call 0x3615fd6a */ /* not lifted */ 4914 RECOMP_FLAGS_IN(); 4915 ebx = eax; /* 0x3607F783: mov ebx, eax */ 4916 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4917 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4918 esp = esp + 4; /* 0x3607F785: add esp, 4 */ 4919 _flag_k = FK_ADD; 4920 MEM32(ebp + 0x8) = ebx; /* 0x3607F788: mov dword ptr [ebp + 8], ebx */ 4921 /* test ebx, ebx */ /* 0x3607F78B: test ebx, ebx */ 4922 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4923 _cf = 0; 4924 _flag_k = FK_TEST; 4925 MEM32(ebp + (-0x4)) = 2; /* 0x3607F78D: mov dword ptr [ebp - 4], 2 */ 4926 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F7B6; /* 0x3607F794: je 0x3607f7b6 */ 4927 L_3607F796: 4928 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3607F796: mov cl, byte ptr [ebp + 0xb] */ 4929 PUSH32(esp, 0x10u); /* 0x3607F799: push 0x10 */ 4930 MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x3607F79B: mov byte ptr [ebx], cl */ 4931 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F79D: call 0x3615fd6a */ /* not lifted */ 4932 RECOMP_FLAGS_IN(); 4933 MEM32(eax) = eax; /* 0x3607F7A2: mov dword ptr [eax], eax */ 4934 MEM32(eax + 0x4) = eax; /* 0x3607F7A4: mov dword ptr [eax + 4], eax */ 4935 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4936 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4937 esp = esp + 4; /* 0x3607F7A7: add esp, 4 */ 4938 _flag_k = FK_ADD; 4939 MEM32(ebx + 0x4) = eax; /* 0x3607F7AA: mov dword ptr [ebx + 4], eax */ 4940 MEM32(ebx + 0x8) = 0; /* 0x3607F7AD: mov dword ptr [ebx + 8], 0 */ 4941 goto L_3607F7B8; /* 0x3607F7B4: jmp 0x3607f7b8 */ 4942 L_3607F7B6: 4943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4944 ebx = 0; /* 0x3607F7B6: xor ebx, ebx */ 4945 _cf = 0; 4946 _flag_k = FK_TEST; 4947 L_3607F7B8: 4948 PUSH32(esp, 0xCu); /* 0x3607F7B8: push 0xc */ 4949 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F7BA: mov dword ptr [ebp - 4], 0xffffffff */ 4950 MEM32(edi + 0x4C) = ebx; /* 0x3607F7C1: mov dword ptr [edi + 0x4c], ebx */ 4951 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F7C4: call 0x3615fd6a */ /* not lifted */ 4952 RECOMP_FLAGS_IN(); 4953 ebx = eax; /* 0x3607F7C9: mov ebx, eax */ 4954 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4955 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4956 esp = esp + 4; /* 0x3607F7CB: add esp, 4 */ 4957 _flag_k = FK_ADD; 4958 MEM32(ebp + 0x8) = ebx; /* 0x3607F7CE: mov dword ptr [ebp + 8], ebx */ 4959 /* test ebx, ebx */ /* 0x3607F7D1: test ebx, ebx */ 4960 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 4961 _cf = 0; 4962 _flag_k = FK_TEST; 4963 MEM32(ebp + (-0x4)) = 3; /* 0x3607F7D3: mov dword ptr [ebp - 4], 3 */ 4964 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F7FC; /* 0x3607F7DA: je 0x3607f7fc */ 4965 L_3607F7DC: 4966 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3607F7DC: mov dl, byte ptr [ebp + 0xb] */ 4967 PUSH32(esp, 0xCu); /* 0x3607F7DF: push 0xc */ 4968 MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x3607F7E1: mov byte ptr [ebx], dl */ 4969 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F7E3: call 0x3615fd6a */ /* not lifted */ 4970 RECOMP_FLAGS_IN(); 4971 MEM32(eax) = eax; /* 0x3607F7E8: mov dword ptr [eax], eax */ 4972 MEM32(eax + 0x4) = eax; /* 0x3607F7EA: mov dword ptr [eax + 4], eax */ 4973 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4974 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4975 esp = esp + 4; /* 0x3607F7ED: add esp, 4 */ 4976 _flag_k = FK_ADD; 4977 MEM32(ebx + 0x4) = eax; /* 0x3607F7F0: mov dword ptr [ebx + 4], eax */ 4978 MEM32(ebx + 0x8) = 0; /* 0x3607F7F3: mov dword ptr [ebx + 8], 0 */ 4979 goto L_3607F7FE; /* 0x3607F7FA: jmp 0x3607f7fe */ 4980 L_3607F7FC: 4981 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4982 ebx = 0; /* 0x3607F7FC: xor ebx, ebx */ 4983 _cf = 0; 4984 _flag_k = FK_TEST; 4985 L_3607F7FE: 4986 eax = MEM32(edi + 0x4C); /* 0x3607F7FE: mov eax, dword ptr [edi + 0x4c] */ 4987 PUSH32(esp, eax); /* 0x3607F801: push eax */ 4988 PUSH32(esp, esi); /* 0x3607F802: push esi */ 4989 MEM32(edi + 0x60) = ebx; /* 0x3607F803: mov dword ptr [edi + 0x60], ebx */ 4990 MEM32(ebp + (-0x4)) = 4; /* 0x3607F806: mov dword ptr [ebp - 4], 4 */ 4991 RECOMP_ICALL(0x3601DD60u); /* 0x3607F80D: call 0x3601dd60 */ /* not lifted */ 4992 RECOMP_FLAGS_IN(); 4993 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4994 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4995 esp = esp + 8; /* 0x3607F812: add esp, 8 */ 4996 _flag_k = FK_ADD; 4997 ecx = edi + 0x50; /* 0x3607F815: lea ecx, [edi + 0x50] */ 4998 PUSH32(esp, ecx); /* 0x3607F818: push ecx */ 4999 PUSH32(esp, esi); /* 0x3607F819: push esi */ 5000 RECOMP_ICALL(0x3615B870u); /* 0x3607F81A: call 0x3615b870 */ /* not lifted */ 5001 RECOMP_FLAGS_IN(); 5002 edx = MEM32(edi + 0x60); /* 0x3607F81F: mov edx, dword ptr [edi + 0x60] */ 5003 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5005 esp = esp + 8; /* 0x3607F822: add esp, 8 */ 5006 _flag_k = FK_ADD; 5007 PUSH32(esp, edx); /* 0x3607F825: push edx */ 5008 PUSH32(esp, esi); /* 0x3607F826: push esi */ 5009 RECOMP_ICALL(0x361517B0u); /* 0x3607F827: call 0x361517b0 */ /* not lifted */ 5010 RECOMP_FLAGS_IN(); 5011 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5012 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5013 esp = esp + 8; /* 0x3607F82C: add esp, 8 */ 5014 _flag_k = FK_ADD; 5015 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F82F: mov dword ptr [ebp - 4], 0xffffffff */ 5016 L_3607F836: 5017 eax = MEM32(edi + 0x58); /* 0x3607F836: mov eax, dword ptr [edi + 0x58] */ 5018 PUSH32(esp, eax); /* 0x3607F839: push eax */ 5019 PUSH32(esp, esi); /* 0x3607F83A: push esi */ 5020 RECOMP_ICALL(0x3601DD60u); /* 0x3607F83B: call 0x3601dd60 */ /* not lifted */ 5021 RECOMP_FLAGS_IN(); 5022 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x68u); 5023 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5024 edi = edi + 0x68u; /* 0x3607F840: add edi, 0x68 */ 5025 _flag_k = FK_ADD; 5026 PUSH32(esp, edi); /* 0x3607F843: push edi */ 5027 PUSH32(esp, esi); /* 0x3607F844: push esi */ 5028 RECOMP_ICALL(0x360BD000u); /* 0x3607F845: call 0x360bd000 */ /* not lifted */ 5029 RECOMP_FLAGS_IN(); 5030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5031 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5032 esp = esp + 0x10u; /* 0x3607F84A: add esp, 0x10 */ 5033 _flag_k = FK_ADD; 5034 ecx = esi; /* 0x3607F84D: mov ecx, esi */ 5035 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607F84F: call dword ptr [0x3616fadc] */ 5036 RECOMP_FLAGS_IN(); 5037 ecx = MEM32(ebp + (-0xC)); /* 0x3607F855: mov ecx, dword ptr [ebp - 0xc] */ 5038 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 5039 _cf = (eax) != 0; 5040 eax = (uint32_t)(-(int32_t)eax); /* 0x3607F858: neg eax */ 5041 _flag_k = FK_CMP; 5042 edi = POP32_VAL(esp); /* 0x3607F85A: pop edi */ 5043 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607F85B: sbb eax, eax */ 5044 eax = _sc ? 0xFFFFFFFFu : 0; 5045 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5046 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5047 esi = POP32_VAL(esp); /* 0x3607F85D: pop esi */ 5048 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5049 eax = eax + 1; /* 0x3607F85E: inc eax */ 5050 _flag_k = FK_INC; 5051 MEM32(FS_BASE + (0)) = ecx; /* 0x3607F85F: mov dword ptr fs:[0], ecx */ 5052 ebx = POP32_VAL(esp); /* 0x3607F866: pop ebx */ 5053 esp = ebp; /* 0x3607F867: mov esp, ebp */ 5054 ebp = POP32_VAL(esp); /* 0x3607F869: pop ebp */ 5055 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } /* 0x3607F86A: ret 4 */ 5056 _ljump: 5057 switch (_itail_tgt) { 5058 case 0x3607F604u: goto L_3607F604; 5059 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); return; } 5060 } 5061 RECOMP_EH_LEAVE(); RECOMP_REGS_OUT(); 5062 } 5063 5064 void sub_3607F604(void) { 5065 int _fpu_cmp = 0; 5066 uint32_t _cf = 0; 5067 int _df = 1; 5068 uint32_t _flag_k = FK_NONE; 5069 uint32_t _flag_a = 0, _flag_b = 0; 5070 uint32_t _itail_tgt = 0; 5071 RECOMP_REGS_LOCALS 5072 RECOMP_ENTER(0x3607F604u); 5073 5074 L_3607F604: 5075 eax = 1; /* 0x3607F604: mov eax, 1 */ 5076 ecx = MEM32(ebp + (-0xC)); /* 0x3607F609: mov ecx, dword ptr [ebp - 0xc] */ 5077 MEM32(FS_BASE + (0)) = ecx; /* 0x3607F60C: mov dword ptr fs:[0], ecx */ 5078 edi = POP32_VAL(esp); /* 0x3607F613: pop edi */ 5079 esi = POP32_VAL(esp); /* 0x3607F614: pop esi */ 5080 ebx = POP32_VAL(esp); /* 0x3607F615: pop ebx */ 5081 esp = ebp; /* 0x3607F616: mov esp, ebp */ 5082 ebp = POP32_VAL(esp); /* 0x3607F618: pop ebp */ 5083 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607F619: ret 4 */ 5084 RECOMP_REGS_OUT(); 5085 } 5086 5087 void sub_3607F61C(void) { 5088 int _fpu_cmp = 0; 5089 uint32_t _cf = 0; 5090 int _df = 1; 5091 uint32_t _flag_k = FK_NONE; 5092 uint32_t _flag_a = 0, _flag_b = 0; 5093 uint32_t _itail_tgt = 0; 5094 RECOMP_REGS_LOCALS 5095 RECOMP_ENTER(0x3607F61Cu); 5096 5097 L_3607F61C: 5098 ecx = MEM32(edi + 0x5C); /* 0x3607F61C: mov ecx, dword ptr [edi + 0x5c] */ 5099 PUSH32(esp, ecx); /* 0x3607F61F: push ecx */ 5100 PUSH32(esp, esi); /* 0x3607F620: push esi */ 5101 RECOMP_ICALL(0x3602DBA0u); /* 0x3607F621: call 0x3602dba0 */ /* not lifted */ 5102 RECOMP_FLAGS_IN(); 5103 edx = MEM32(edi + 0x20); /* 0x3607F626: mov edx, dword ptr [edi + 0x20] */ 5104 PUSH32(esp, edx); /* 0x3607F629: push edx */ 5105 PUSH32(esp, esi); /* 0x3607F62A: push esi */ 5106 RECOMP_ICALL(0x360C5270u); /* 0x3607F62B: call 0x360c5270 */ /* not lifted */ 5107 RECOMP_FLAGS_IN(); 5108 eax = MEM32(edi + 0x24); /* 0x3607F630: mov eax, dword ptr [edi + 0x24] */ 5109 PUSH32(esp, eax); /* 0x3607F633: push eax */ 5110 PUSH32(esp, esi); /* 0x3607F634: push esi */ 5111 RECOMP_ICALL(0x3601DE20u); /* 0x3607F635: call 0x3601de20 */ /* not lifted */ 5112 RECOMP_FLAGS_IN(); 5113 ecx = MEM32(edi + 0x28); /* 0x3607F63A: mov ecx, dword ptr [edi + 0x28] */ 5114 PUSH32(esp, ecx); /* 0x3607F63D: push ecx */ 5115 PUSH32(esp, esi); /* 0x3607F63E: push esi */ 5116 RECOMP_ICALL(0x3601DD60u); /* 0x3607F63F: call 0x3601dd60 */ /* not lifted */ 5117 RECOMP_FLAGS_IN(); 5118 edx = MEM32(edi + 0x2C); /* 0x3607F644: mov edx, dword ptr [edi + 0x2c] */ 5119 PUSH32(esp, edx); /* 0x3607F647: push edx */ 5120 PUSH32(esp, esi); /* 0x3607F648: push esi */ 5121 RECOMP_ICALL(0x3601DD60u); /* 0x3607F649: call 0x3601dd60 */ /* not lifted */ 5122 RECOMP_FLAGS_IN(); 5123 eax = MEM32(edi + 0x30); /* 0x3607F64E: mov eax, dword ptr [edi + 0x30] */ 5124 PUSH32(esp, eax); /* 0x3607F651: push eax */ 5125 PUSH32(esp, esi); /* 0x3607F652: push esi */ 5126 RECOMP_ICALL(0x3602EA00u); /* 0x3607F653: call 0x3602ea00 */ /* not lifted */ 5127 RECOMP_FLAGS_IN(); 5128 ecx = MEM32(edi + 0x34); /* 0x3607F658: mov ecx, dword ptr [edi + 0x34] */ 5129 PUSH32(esp, ecx); /* 0x3607F65B: push ecx */ 5130 PUSH32(esp, esi); /* 0x3607F65C: push esi */ 5131 RECOMP_ICALL(0x3602F2D0u); /* 0x3607F65D: call 0x3602f2d0 */ /* not lifted */ 5132 RECOMP_FLAGS_IN(); 5133 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 5134 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5135 esp = esp + 0x38u; /* 0x3607F662: add esp, 0x38 */ 5136 _flag_k = FK_ADD; 5137 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F665: test bl, bl */ 5138 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5139 _cf = 0; 5140 _flag_k = FK_NARROW(FK_TEST, 24); 5141 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F6BE; /* 0x3607F667: je 0x3607f6be */ 5142 L_3607F669: 5143 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3607F669: mov dl, byte ptr [ebp + 0xb] */ 5144 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5145 eax = 0; /* 0x3607F66C: xor eax, eax */ 5146 _cf = 0; 5147 _flag_k = FK_TEST; 5148 MEM8(ebp + (-0x30)) = (uint8_t)(LO8(edx)); /* 0x3607F66E: mov byte ptr [ebp - 0x30], dl */ 5149 MEM32(ebp + (-0x2C)) = eax; /* 0x3607F671: mov dword ptr [ebp - 0x2c], eax */ 5150 MEM32(ebp + (-0x28)) = eax; /* 0x3607F674: mov dword ptr [ebp - 0x28], eax */ 5151 MEM32(ebp + (-0x24)) = eax; /* 0x3607F677: mov dword ptr [ebp - 0x24], eax */ 5152 MEM32(ebp + (-0x4)) = eax; /* 0x3607F67A: mov dword ptr [ebp - 4], eax */ 5153 eax = ebp + (-0x30); /* 0x3607F67D: lea eax, [ebp - 0x30] */ 5154 PUSH32(esp, eax); /* 0x3607F680: push eax */ 5155 PUSH32(esp, esi); /* 0x3607F681: push esi */ 5156 RECOMP_ICALL(0x3602F2D0u); /* 0x3607F682: call 0x3602f2d0 */ /* not lifted */ 5157 RECOMP_FLAGS_IN(); 5158 eax = MEM32(ebp + (-0x28)); /* 0x3607F687: mov eax, dword ptr [ebp - 0x28] */ 5159 ebx = MEM32(ebp + (-0x2C)); /* 0x3607F68A: mov ebx, dword ptr [ebp - 0x2c] */ 5160 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5161 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5162 esp = esp + 8; /* 0x3607F68D: add esp, 8 */ 5163 _flag_k = FK_ADD; 5164 /* cmp ebx, eax */ /* 0x3607F690: cmp ebx, eax */ 5165 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 5166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5167 _flag_k = FK_CMP; 5168 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F692: mov dword ptr [ebp - 4], 0xffffffff */ 5169 MEM32(ebp + (-0x18)) = eax; /* 0x3607F699: mov dword ptr [ebp - 0x18], eax */ 5170 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F6B2; /* 0x3607F69C: je 0x3607f6b2 */ 5171 L_3607F69E: 5172 ecx = ebx; /* 0x3607F69E: mov ecx, ebx */ 5173 RECOMP_ICALL(0x360E2940u); /* 0x3607F6A0: call 0x360e2940 */ /* not lifted */ 5174 RECOMP_FLAGS_IN(); 5175 eax = MEM32(ebp + (-0x18)); /* 0x3607F6A5: mov eax, dword ptr [ebp - 0x18] */ 5176 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(8); 5177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5178 ebx = ebx + 8; /* 0x3607F6A8: add ebx, 8 */ 5179 _flag_k = FK_ADD; 5180 /* cmp ebx, eax */ /* 0x3607F6AB: cmp ebx, eax */ 5181 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 5182 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5183 _flag_k = FK_CMP; 5184 RECOMP_BACKEDGE(); 5185 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F69E; /* 0x3607F6AD: jne 0x3607f69e */ 5186 L_3607F6AF: 5187 ebx = MEM32(ebp + (-0x2C)); /* 0x3607F6AF: mov ebx, dword ptr [ebp - 0x2c] */ 5188 L_3607F6B2: 5189 PUSH32(esp, ebx); /* 0x3607F6B2: push ebx */ 5190 RECOMP_ICALL(0x3615FCC4u); /* 0x3607F6B3: call 0x3615fcc4 */ /* not lifted */ 5191 RECOMP_FLAGS_IN(); 5192 SET_LO8(ebx, MEM8(ebp + 0xB)); /* 0x3607F6B8: mov bl, byte ptr [ebp + 0xb] */ 5193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5194 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5195 esp = esp + 4; /* 0x3607F6BB: add esp, 4 */ 5196 _flag_k = FK_ADD; 5197 L_3607F6BE: 5198 ecx = MEM32(edi + 0x38); /* 0x3607F6BE: mov ecx, dword ptr [edi + 0x38] */ 5199 PUSH32(esp, ecx); /* 0x3607F6C1: push ecx */ 5200 PUSH32(esp, esi); /* 0x3607F6C2: push esi */ 5201 RECOMP_ICALL(0x36030100u); /* 0x3607F6C3: call 0x36030100 */ /* not lifted */ 5202 RECOMP_FLAGS_IN(); 5203 edx = MEM32(edi + 0x3C); /* 0x3607F6C8: mov edx, dword ptr [edi + 0x3c] */ 5204 PUSH32(esp, edx); /* 0x3607F6CB: push edx */ 5205 PUSH32(esp, esi); /* 0x3607F6CC: push esi */ 5206 RECOMP_ICALL(0x36030100u); /* 0x3607F6CD: call 0x36030100 */ /* not lifted */ 5207 RECOMP_FLAGS_IN(); 5208 eax = MEM32(edi + 0x40); /* 0x3607F6D2: mov eax, dword ptr [edi + 0x40] */ 5209 PUSH32(esp, eax); /* 0x3607F6D5: push eax */ 5210 PUSH32(esp, esi); /* 0x3607F6D6: push esi */ 5211 RECOMP_ICALL(0x36030B60u); /* 0x3607F6D7: call 0x36030b60 */ /* not lifted */ 5212 RECOMP_FLAGS_IN(); 5213 ecx = MEM32(edi + 0x44); /* 0x3607F6DC: mov ecx, dword ptr [edi + 0x44] */ 5214 PUSH32(esp, ecx); /* 0x3607F6DF: push ecx */ 5215 PUSH32(esp, esi); /* 0x3607F6E0: push esi */ 5216 RECOMP_ICALL(0x360306C0u); /* 0x3607F6E1: call 0x360306c0 */ /* not lifted */ 5217 RECOMP_FLAGS_IN(); 5218 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 5219 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5220 esp = esp + 0x20u; /* 0x3607F6E6: add esp, 0x20 */ 5221 _flag_k = FK_ADD; 5222 /* test LO8(ebx), LO8(ebx) */ /* 0x3607F6E9: test bl, bl */ 5223 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(LO8(ebx)) << 24; 5224 _cf = 0; 5225 _flag_k = FK_NARROW(FK_TEST, 24); 5226 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F750; /* 0x3607F6EB: je 0x3607f750 */ 5227 L_3607F6ED: 5228 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3607F6ED: mov dl, byte ptr [ebp + 0xb] */ 5229 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607F6F0: mov al, byte ptr [ebp + 0xb] */ 5230 ecx = ebp + (-0x34); /* 0x3607F6F3: lea ecx, [ebp - 0x34] */ 5231 MEM8(ebp + (-0x34)) = (uint8_t)(LO8(edx)); /* 0x3607F6F6: mov byte ptr [ebp - 0x34], dl */ 5232 MEM8(ebp + (-0x33)) = (uint8_t)(LO8(eax)); /* 0x3607F6F9: mov byte ptr [ebp - 0x33], al */ 5233 MEM8(ebp + (-0x28)) = (uint8_t)(0); /* 0x3607F6FC: mov byte ptr [ebp - 0x28], 0 */ 5234 RECOMP_ICALL(0x36068320u); /* 0x3607F700: call 0x36068320 */ /* not lifted */ 5235 RECOMP_FLAGS_IN(); 5236 ecx = ebp + (-0x34); /* 0x3607F705: lea ecx, [ebp - 0x34] */ 5237 PUSH32(esp, ecx); /* 0x3607F708: push ecx */ 5238 PUSH32(esp, esi); /* 0x3607F709: push esi */ 5239 MEM32(ebp + (-0x4)) = 1; /* 0x3607F70A: mov dword ptr [ebp - 4], 1 */ 5240 RECOMP_ICALL(0x36008C90u); /* 0x3607F711: call 0x36008c90 */ /* not lifted */ 5241 RECOMP_FLAGS_IN(); 5242 eax = MEM32(ebp + (-0x30)); /* 0x3607F716: mov eax, dword ptr [ebp - 0x30] */ 5243 ecx = MEM32(eax); /* 0x3607F719: mov ecx, dword ptr [eax] */ 5244 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5245 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5246 esp = esp + 8; /* 0x3607F71B: add esp, 8 */ 5247 _flag_k = FK_ADD; 5248 PUSH32(esp, eax); /* 0x3607F71E: push eax */ 5249 PUSH32(esp, ecx); /* 0x3607F71F: push ecx */ 5250 edx = ebp + 0x8; /* 0x3607F720: lea edx, [ebp + 8] */ 5251 PUSH32(esp, edx); /* 0x3607F723: push edx */ 5252 ecx = ebp + (-0x34); /* 0x3607F724: lea ecx, [ebp - 0x34] */ 5253 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F727: mov dword ptr [ebp - 4], 0xffffffff */ 5254 RECOMP_ICALL(0x360724D0u); /* 0x3607F72E: call 0x360724d0 */ /* not lifted */ 5255 RECOMP_FLAGS_IN(); 5256 eax = MEM32(ebp + (-0x30)); /* 0x3607F733: mov eax, dword ptr [ebp - 0x30] */ 5257 PUSH32(esp, eax); /* 0x3607F736: push eax */ 5258 RECOMP_ICALL(0x3615FCC4u); /* 0x3607F737: call 0x3615fcc4 */ /* not lifted */ 5259 RECOMP_FLAGS_IN(); 5260 ecx = MEM32(ebp + (-0x2C)); /* 0x3607F73C: mov ecx, dword ptr [ebp - 0x2c] */ 5261 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5262 eax = 0; /* 0x3607F73F: xor eax, eax */ 5263 _cf = 0; 5264 _flag_k = FK_TEST; 5265 PUSH32(esp, ecx); /* 0x3607F741: push ecx */ 5266 MEM32(ebp + (-0x30)) = eax; /* 0x3607F742: mov dword ptr [ebp - 0x30], eax */ 5267 MEM32(ebp + (-0x24)) = eax; /* 0x3607F745: mov dword ptr [ebp - 0x24], eax */ 5268 RECOMP_ICALL(0x3615FCC4u); /* 0x3607F748: call 0x3615fcc4 */ /* not lifted */ 5269 RECOMP_FLAGS_IN(); 5270 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5271 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5272 esp = esp + 8; /* 0x3607F74D: add esp, 8 */ 5273 _flag_k = FK_ADD; 5274 L_3607F750: 5275 edx = MEM32(edi + 0x48); /* 0x3607F750: mov edx, dword ptr [edi + 0x48] */ 5276 PUSH32(esp, edx); /* 0x3607F753: push edx */ 5277 PUSH32(esp, esi); /* 0x3607F754: push esi */ 5278 RECOMP_ICALL(0x36008C90u); /* 0x3607F755: call 0x36008c90 */ /* not lifted */ 5279 RECOMP_FLAGS_IN(); 5280 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5281 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5282 esp = esp + 8; /* 0x3607F75A: add esp, 8 */ 5283 _flag_k = FK_ADD; 5284 eax = ebp + (-0x1C); /* 0x3607F75D: lea eax, [ebp - 0x1c] */ 5285 PUSH32(esp, eax); /* 0x3607F760: push eax */ 5286 ecx = esi; /* 0x3607F761: mov ecx, esi */ 5287 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607F763: call dword ptr [0x3616fa8c] */ 5288 RECOMP_FLAGS_IN(); 5289 edx = MEM32(ebp + (-0x1C)); /* 0x3607F769: mov edx, dword ptr [ebp - 0x1c] */ 5290 /* test edx, edx */ /* 0x3607F76C: test edx, edx */ 5291 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 5292 _cf = 0; 5293 _flag_k = FK_TEST; 5294 SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x3607F76E: setne al */ 5295 /* test LO8(eax), LO8(eax) */ /* 0x3607F771: test al, al */ 5296 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 5297 _cf = 0; 5298 _flag_k = FK_NARROW(FK_TEST, 24); 5299 MEM8(edi + 0x64) = (uint8_t)(LO8(eax)); /* 0x3607F773: mov byte ptr [edi + 0x64], al */ 5300 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F836; /* 0x3607F776: je 0x3607f836 */ 5301 L_3607F77C: 5302 PUSH32(esp, 0xCu); /* 0x3607F77C: push 0xc */ 5303 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F77E: call 0x3615fd6a */ /* not lifted */ 5304 RECOMP_FLAGS_IN(); 5305 ebx = eax; /* 0x3607F783: mov ebx, eax */ 5306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5308 esp = esp + 4; /* 0x3607F785: add esp, 4 */ 5309 _flag_k = FK_ADD; 5310 MEM32(ebp + 0x8) = ebx; /* 0x3607F788: mov dword ptr [ebp + 8], ebx */ 5311 /* test ebx, ebx */ /* 0x3607F78B: test ebx, ebx */ 5312 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5313 _cf = 0; 5314 _flag_k = FK_TEST; 5315 MEM32(ebp + (-0x4)) = 2; /* 0x3607F78D: mov dword ptr [ebp - 4], 2 */ 5316 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F7B6; /* 0x3607F794: je 0x3607f7b6 */ 5317 L_3607F796: 5318 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3607F796: mov cl, byte ptr [ebp + 0xb] */ 5319 PUSH32(esp, 0x10u); /* 0x3607F799: push 0x10 */ 5320 MEM8(ebx) = (uint8_t)(LO8(ecx)); /* 0x3607F79B: mov byte ptr [ebx], cl */ 5321 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F79D: call 0x3615fd6a */ /* not lifted */ 5322 RECOMP_FLAGS_IN(); 5323 MEM32(eax) = eax; /* 0x3607F7A2: mov dword ptr [eax], eax */ 5324 MEM32(eax + 0x4) = eax; /* 0x3607F7A4: mov dword ptr [eax + 4], eax */ 5325 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5326 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5327 esp = esp + 4; /* 0x3607F7A7: add esp, 4 */ 5328 _flag_k = FK_ADD; 5329 MEM32(ebx + 0x4) = eax; /* 0x3607F7AA: mov dword ptr [ebx + 4], eax */ 5330 MEM32(ebx + 0x8) = 0; /* 0x3607F7AD: mov dword ptr [ebx + 8], 0 */ 5331 goto L_3607F7B8; /* 0x3607F7B4: jmp 0x3607f7b8 */ 5332 L_3607F7B6: 5333 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5334 ebx = 0; /* 0x3607F7B6: xor ebx, ebx */ 5335 _cf = 0; 5336 _flag_k = FK_TEST; 5337 L_3607F7B8: 5338 PUSH32(esp, 0xCu); /* 0x3607F7B8: push 0xc */ 5339 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F7BA: mov dword ptr [ebp - 4], 0xffffffff */ 5340 MEM32(edi + 0x4C) = ebx; /* 0x3607F7C1: mov dword ptr [edi + 0x4c], ebx */ 5341 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F7C4: call 0x3615fd6a */ /* not lifted */ 5342 RECOMP_FLAGS_IN(); 5343 ebx = eax; /* 0x3607F7C9: mov ebx, eax */ 5344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5346 esp = esp + 4; /* 0x3607F7CB: add esp, 4 */ 5347 _flag_k = FK_ADD; 5348 MEM32(ebp + 0x8) = ebx; /* 0x3607F7CE: mov dword ptr [ebp + 8], ebx */ 5349 /* test ebx, ebx */ /* 0x3607F7D1: test ebx, ebx */ 5350 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5351 _cf = 0; 5352 _flag_k = FK_TEST; 5353 MEM32(ebp + (-0x4)) = 3; /* 0x3607F7D3: mov dword ptr [ebp - 4], 3 */ 5354 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F7FC; /* 0x3607F7DA: je 0x3607f7fc */ 5355 L_3607F7DC: 5356 SET_LO8(edx, MEM8(ebp + 0xB)); /* 0x3607F7DC: mov dl, byte ptr [ebp + 0xb] */ 5357 PUSH32(esp, 0xCu); /* 0x3607F7DF: push 0xc */ 5358 MEM8(ebx) = (uint8_t)(LO8(edx)); /* 0x3607F7E1: mov byte ptr [ebx], dl */ 5359 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F7E3: call 0x3615fd6a */ /* not lifted */ 5360 RECOMP_FLAGS_IN(); 5361 MEM32(eax) = eax; /* 0x3607F7E8: mov dword ptr [eax], eax */ 5362 MEM32(eax + 0x4) = eax; /* 0x3607F7EA: mov dword ptr [eax + 4], eax */ 5363 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5364 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5365 esp = esp + 4; /* 0x3607F7ED: add esp, 4 */ 5366 _flag_k = FK_ADD; 5367 MEM32(ebx + 0x4) = eax; /* 0x3607F7F0: mov dword ptr [ebx + 4], eax */ 5368 MEM32(ebx + 0x8) = 0; /* 0x3607F7F3: mov dword ptr [ebx + 8], 0 */ 5369 goto L_3607F7FE; /* 0x3607F7FA: jmp 0x3607f7fe */ 5370 L_3607F7FC: 5371 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5372 ebx = 0; /* 0x3607F7FC: xor ebx, ebx */ 5373 _cf = 0; 5374 _flag_k = FK_TEST; 5375 L_3607F7FE: 5376 eax = MEM32(edi + 0x4C); /* 0x3607F7FE: mov eax, dword ptr [edi + 0x4c] */ 5377 PUSH32(esp, eax); /* 0x3607F801: push eax */ 5378 PUSH32(esp, esi); /* 0x3607F802: push esi */ 5379 MEM32(edi + 0x60) = ebx; /* 0x3607F803: mov dword ptr [edi + 0x60], ebx */ 5380 MEM32(ebp + (-0x4)) = 4; /* 0x3607F806: mov dword ptr [ebp - 4], 4 */ 5381 RECOMP_ICALL(0x3601DD60u); /* 0x3607F80D: call 0x3601dd60 */ /* not lifted */ 5382 RECOMP_FLAGS_IN(); 5383 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5384 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5385 esp = esp + 8; /* 0x3607F812: add esp, 8 */ 5386 _flag_k = FK_ADD; 5387 ecx = edi + 0x50; /* 0x3607F815: lea ecx, [edi + 0x50] */ 5388 PUSH32(esp, ecx); /* 0x3607F818: push ecx */ 5389 PUSH32(esp, esi); /* 0x3607F819: push esi */ 5390 RECOMP_ICALL(0x3615B870u); /* 0x3607F81A: call 0x3615b870 */ /* not lifted */ 5391 RECOMP_FLAGS_IN(); 5392 edx = MEM32(edi + 0x60); /* 0x3607F81F: mov edx, dword ptr [edi + 0x60] */ 5393 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5394 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5395 esp = esp + 8; /* 0x3607F822: add esp, 8 */ 5396 _flag_k = FK_ADD; 5397 PUSH32(esp, edx); /* 0x3607F825: push edx */ 5398 PUSH32(esp, esi); /* 0x3607F826: push esi */ 5399 RECOMP_ICALL(0x361517B0u); /* 0x3607F827: call 0x361517b0 */ /* not lifted */ 5400 RECOMP_FLAGS_IN(); 5401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5403 esp = esp + 8; /* 0x3607F82C: add esp, 8 */ 5404 _flag_k = FK_ADD; 5405 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3607F82F: mov dword ptr [ebp - 4], 0xffffffff */ 5406 L_3607F836: 5407 eax = MEM32(edi + 0x58); /* 0x3607F836: mov eax, dword ptr [edi + 0x58] */ 5408 PUSH32(esp, eax); /* 0x3607F839: push eax */ 5409 PUSH32(esp, esi); /* 0x3607F83A: push esi */ 5410 RECOMP_ICALL(0x3601DD60u); /* 0x3607F83B: call 0x3601dd60 */ /* not lifted */ 5411 RECOMP_FLAGS_IN(); 5412 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x68u); 5413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5414 edi = edi + 0x68u; /* 0x3607F840: add edi, 0x68 */ 5415 _flag_k = FK_ADD; 5416 PUSH32(esp, edi); /* 0x3607F843: push edi */ 5417 PUSH32(esp, esi); /* 0x3607F844: push esi */ 5418 RECOMP_ICALL(0x360BD000u); /* 0x3607F845: call 0x360bd000 */ /* not lifted */ 5419 RECOMP_FLAGS_IN(); 5420 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5421 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5422 esp = esp + 0x10u; /* 0x3607F84A: add esp, 0x10 */ 5423 _flag_k = FK_ADD; 5424 ecx = esi; /* 0x3607F84D: mov ecx, esi */ 5425 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607F84F: call dword ptr [0x3616fadc] */ 5426 RECOMP_FLAGS_IN(); 5427 ecx = MEM32(ebp + (-0xC)); /* 0x3607F855: mov ecx, dword ptr [ebp - 0xc] */ 5428 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 5429 _cf = (eax) != 0; 5430 eax = (uint32_t)(-(int32_t)eax); /* 0x3607F858: neg eax */ 5431 _flag_k = FK_CMP; 5432 edi = POP32_VAL(esp); /* 0x3607F85A: pop edi */ 5433 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607F85B: sbb eax, eax */ 5434 eax = _sc ? 0xFFFFFFFFu : 0; 5435 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5436 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5437 esi = POP32_VAL(esp); /* 0x3607F85D: pop esi */ 5438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5439 eax = eax + 1; /* 0x3607F85E: inc eax */ 5440 _flag_k = FK_INC; 5441 MEM32(FS_BASE + (0)) = ecx; /* 0x3607F85F: mov dword ptr fs:[0], ecx */ 5442 ebx = POP32_VAL(esp); /* 0x3607F866: pop ebx */ 5443 esp = ebp; /* 0x3607F867: mov esp, ebp */ 5444 ebp = POP32_VAL(esp); /* 0x3607F869: pop ebp */ 5445 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607F86A: ret 4 */ 5446 RECOMP_REGS_OUT(); 5447 } 5448 5449 void sub_3607F86D(void) { 5450 int _fpu_cmp = 0; 5451 uint32_t _cf = 0; 5452 int _df = 1; 5453 uint32_t _flag_k = FK_NONE; 5454 uint32_t _flag_a = 0, _flag_b = 0; 5455 uint32_t _itail_tgt = 0; 5456 RECOMP_REGS_LOCALS 5457 RECOMP_ENTER(0x3607F86Du); 5458 5459 L_3607F86D: 5460 eax = MEM32(ebp + (-0x20)); /* 0x3607F86D: mov eax, dword ptr [ebp - 0x20] */ 5461 ecx = MEM32(ebp + 0x8); /* 0x3607F870: mov ecx, dword ptr [ebp + 8] */ 5462 esi = MEM32(eax + 0x8); /* 0x3607F873: mov esi, dword ptr [eax + 8] */ 5463 edi = MEM32(eax + 0x4); /* 0x3607F876: mov edi, dword ptr [eax + 4] */ 5464 RECOMP_ICALL(0x36008320u); /* 0x3607F879: call 0x36008320 */ /* not lifted */ 5465 RECOMP_FLAGS_IN(); 5466 PUSH32(esp, eax); /* 0x3607F87E: push eax */ 5467 PUSH32(esp, esi); /* 0x3607F87F: push esi */ 5468 PUSH32(esp, edi); /* 0x3607F880: push edi */ 5469 PUSH32(esp, 0x361C4E44u); /* 0x3607F881: push 0x361c4e44 */ 5470 RECOMP_ICALL(MEM32(0x3616F18C)); /* 0x3607F886: call dword ptr [0x3616f18c] */ 5471 RECOMP_FLAGS_IN(); 5472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5473 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5474 esp = esp + 0x10u; /* 0x3607F88C: add esp, 0x10 */ 5475 _flag_k = FK_ADD; 5476 eax = 0x3607F604u; /* 0x3607F88F: mov eax, 0x3607f604 */ 5477 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F894: ret */ 5478 RECOMP_REGS_OUT(); 5479 } 5480 5481 void sub_3607F8A0(void) { 5482 int _fpu_cmp = 0; 5483 uint32_t _cf = 0; 5484 int _df = 1; 5485 uint32_t _flag_k = FK_NONE; 5486 uint32_t _flag_a = 0, _flag_b = 0; 5487 uint32_t _itail_tgt = 0; 5488 RECOMP_REGS_LOCALS 5489 RECOMP_ENTER(0x3607F8A0u); 5490 5491 L_3607F8A0: 5492 PUSH32(esp, ebp); /* 0x3607F8A0: push ebp */ 5493 ebp = esp; /* 0x3607F8A1: mov ebp, esp */ 5494 PUSH32(esp, ecx); /* 0x3607F8A3: push ecx */ 5495 eax = MEM32(ebp + 0x10); /* 0x3607F8A4: mov eax, dword ptr [ebp + 0x10] */ 5496 PUSH32(esp, esi); /* 0x3607F8A7: push esi */ 5497 esi = MEM32(ebp + 0xC); /* 0x3607F8A8: mov esi, dword ptr [ebp + 0xc] */ 5498 /* cmp esi, eax */ /* 0x3607F8AB: cmp esi, eax */ 5499 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 5500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5501 _flag_k = FK_CMP; 5502 MEM32(ebp + (-0x4)) = ecx; /* 0x3607F8AD: mov dword ptr [ebp - 4], ecx */ 5503 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F904; /* 0x3607F8B0: je 0x3607f904 */ 5504 L_3607F8B2: 5505 PUSH32(esp, ebx); /* 0x3607F8B2: push ebx */ 5506 PUSH32(esp, edi); /* 0x3607F8B3: push edi */ 5507 edi = MEM32(ebp + 0x8); /* 0x3607F8B4: mov edi, dword ptr [ebp + 8] */ 5508 L_3607F8B7: 5509 ebx = MEM32(edi + 0x4); /* 0x3607F8B7: mov ebx, dword ptr [edi + 4] */ 5510 PUSH32(esp, 0x10u); /* 0x3607F8BA: push 0x10 */ 5511 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F8BC: call 0x3615fd6a */ /* not lifted */ 5512 RECOMP_FLAGS_IN(); 5513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5515 esp = esp + 4; /* 0x3607F8C1: add esp, 4 */ 5516 _flag_k = FK_ADD; 5517 /* test edi, edi */ /* 0x3607F8C4: test edi, edi */ 5518 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 5519 _cf = 0; 5520 _flag_k = FK_TEST; 5521 ecx = edi; /* 0x3607F8C6: mov ecx, edi */ 5522 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607F8CC; /* 0x3607F8C8: jne 0x3607f8cc */ 5523 L_3607F8CA: 5524 ecx = eax; /* 0x3607F8CA: mov ecx, eax */ 5525 L_3607F8CC: 5526 /* test ebx, ebx */ /* 0x3607F8CC: test ebx, ebx */ 5527 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5528 _cf = 0; 5529 _flag_k = FK_TEST; 5530 MEM32(eax) = ecx; /* 0x3607F8CE: mov dword ptr [eax], ecx */ 5531 ecx = ebx; /* 0x3607F8D0: mov ecx, ebx */ 5532 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607F8D6; /* 0x3607F8D2: jne 0x3607f8d6 */ 5533 L_3607F8D4: 5534 ecx = eax; /* 0x3607F8D4: mov ecx, eax */ 5535 L_3607F8D6: 5536 MEM32(eax + 0x4) = ecx; /* 0x3607F8D6: mov dword ptr [eax + 4], ecx */ 5537 MEM32(edi + 0x4) = eax; /* 0x3607F8D9: mov dword ptr [edi + 4], eax */ 5538 ecx = MEM32(eax + 0x4); /* 0x3607F8DC: mov ecx, dword ptr [eax + 4] */ 5539 MEM32(ecx) = eax; /* 0x3607F8DF: mov dword ptr [ecx], eax */ 5540 ecx = esi + 0x8; /* 0x3607F8E1: lea ecx, [esi + 8] */ 5541 PUSH32(esp, ecx); /* 0x3607F8E4: push ecx */ 5542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 5543 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5544 eax = eax + 8; /* 0x3607F8E5: add eax, 8 */ 5545 _flag_k = FK_ADD; 5546 PUSH32(esp, eax); /* 0x3607F8E8: push eax */ 5547 RECOMP_ICALL(0x360180C0u); /* 0x3607F8E9: call 0x360180c0 */ /* not lifted */ 5548 RECOMP_FLAGS_IN(); 5549 eax = MEM32(ebp + (-0x4)); /* 0x3607F8EE: mov eax, dword ptr [ebp - 4] */ 5550 ecx = MEM32(eax + 0x8); /* 0x3607F8F1: mov ecx, dword ptr [eax + 8] */ 5551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5553 esp = esp + 8; /* 0x3607F8F4: add esp, 8 */ 5554 _flag_k = FK_ADD; 5555 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5556 ecx = ecx + 1; /* 0x3607F8F7: inc ecx */ 5557 _flag_k = FK_INC; 5558 MEM32(eax + 0x8) = ecx; /* 0x3607F8F8: mov dword ptr [eax + 8], ecx */ 5559 esi = MEM32(esi); /* 0x3607F8FB: mov esi, dword ptr [esi] */ 5560 /* cmp esi, MEM32(ebp + 0x10) */ /* 0x3607F8FD: cmp esi, dword ptr [ebp + 0x10] */ 5561 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ebp + 0x10)); 5562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5563 _flag_k = FK_CMP; 5564 RECOMP_BACKEDGE(); 5565 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F8B7; /* 0x3607F900: jne 0x3607f8b7 */ 5566 L_3607F902: 5567 edi = POP32_VAL(esp); /* 0x3607F902: pop edi */ 5568 ebx = POP32_VAL(esp); /* 0x3607F903: pop ebx */ 5569 L_3607F904: 5570 esi = POP32_VAL(esp); /* 0x3607F904: pop esi */ 5571 esp = ebp; /* 0x3607F905: mov esp, ebp */ 5572 ebp = POP32_VAL(esp); /* 0x3607F907: pop ebp */ 5573 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607F908: ret 0xc */ 5574 RECOMP_REGS_OUT(); 5575 } 5576 5577 void sub_3607F910(void) { 5578 int _fpu_cmp = 0; 5579 uint32_t _cf = 0; 5580 int _df = 1; 5581 uint32_t _flag_k = FK_NONE; 5582 uint32_t _flag_a = 0, _flag_b = 0; 5583 uint32_t _itail_tgt = 0; 5584 RECOMP_REGS_LOCALS 5585 RECOMP_ENTER(0x3607F910u); 5586 5587 L_3607F910: 5588 PUSH32(esp, ebp); /* 0x3607F910: push ebp */ 5589 ebp = esp; /* 0x3607F911: mov ebp, esp */ 5590 eax = MEM32(ebp + 0x14); /* 0x3607F913: mov eax, dword ptr [ebp + 0x14] */ 5591 edx = MEM32(eax + 0x4); /* 0x3607F916: mov edx, dword ptr [eax + 4] */ 5592 ecx = MEM32(ebp + 0x8); /* 0x3607F919: mov ecx, dword ptr [ebp + 8] */ 5593 MEM32(edx) = ecx; /* 0x3607F91C: mov dword ptr [edx], ecx */ 5594 edx = MEM32(ebp + 0x10); /* 0x3607F91E: mov edx, dword ptr [ebp + 0x10] */ 5595 edx = MEM32(edx + 0x4); /* 0x3607F921: mov edx, dword ptr [edx + 4] */ 5596 MEM32(edx) = eax; /* 0x3607F924: mov dword ptr [edx], eax */ 5597 edx = MEM32(ecx + 0x4); /* 0x3607F926: mov edx, dword ptr [ecx + 4] */ 5598 PUSH32(esp, esi); /* 0x3607F929: push esi */ 5599 esi = MEM32(ebp + 0x10); /* 0x3607F92A: mov esi, dword ptr [ebp + 0x10] */ 5600 MEM32(edx) = esi; /* 0x3607F92D: mov dword ptr [edx], esi */ 5601 esi = MEM32(eax + 0x4); /* 0x3607F92F: mov esi, dword ptr [eax + 4] */ 5602 edx = MEM32(ecx + 0x4); /* 0x3607F932: mov edx, dword ptr [ecx + 4] */ 5603 MEM32(ecx + 0x4) = esi; /* 0x3607F935: mov dword ptr [ecx + 4], esi */ 5604 ecx = MEM32(ebp + 0x10); /* 0x3607F938: mov ecx, dword ptr [ebp + 0x10] */ 5605 esi = MEM32(ecx + 0x4); /* 0x3607F93B: mov esi, dword ptr [ecx + 4] */ 5606 MEM32(eax + 0x4) = esi; /* 0x3607F93E: mov dword ptr [eax + 4], esi */ 5607 MEM32(ecx + 0x4) = edx; /* 0x3607F941: mov dword ptr [ecx + 4], edx */ 5608 esi = POP32_VAL(esp); /* 0x3607F944: pop esi */ 5609 ebp = POP32_VAL(esp); /* 0x3607F945: pop ebp */ 5610 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x3607F946: ret 0x10 */ 5611 RECOMP_REGS_OUT(); 5612 } 5613 5614 void sub_3607F950(void) { 5615 int _fpu_cmp = 0; 5616 uint32_t _cf = 0; 5617 int _df = 1; 5618 uint32_t _flag_k = FK_NONE; 5619 uint32_t _flag_a = 0, _flag_b = 0; 5620 uint32_t _itail_tgt = 0; 5621 RECOMP_REGS_LOCALS 5622 RECOMP_ENTER(0x3607F950u); 5623 5624 L_3607F950: 5625 PUSH32(esp, ebp); /* 0x3607F950: push ebp */ 5626 ebp = esp; /* 0x3607F951: mov ebp, esp */ 5627 PUSH32(esp, ebx); /* 0x3607F953: push ebx */ 5628 ebx = MEM32(ebp + 0xC); /* 0x3607F954: mov ebx, dword ptr [ebp + 0xc] */ 5629 PUSH32(esp, esi); /* 0x3607F957: push esi */ 5630 esi = MEM32(ebp + 0x8); /* 0x3607F958: mov esi, dword ptr [ebp + 8] */ 5631 /* cmp esi, ebx */ /* 0x3607F95B: cmp esi, ebx */ 5632 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5634 _flag_k = FK_CMP; 5635 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607F97C; /* 0x3607F95D: je 0x3607f97c */ 5636 L_3607F95F: 5637 PUSH32(esp, edi); /* 0x3607F95F: push edi */ 5638 edi = MEM32(ebp + 0x10); /* 0x3607F960: mov edi, dword ptr [ebp + 0x10] */ 5639 L_3607F963: 5640 PUSH32(esp, esi); /* 0x3607F963: push esi */ 5641 ecx = edi; /* 0x3607F964: mov ecx, edi */ 5642 RECOMP_ICALL(0x3602F6A0u); /* 0x3607F966: call 0x3602f6a0 */ /* not lifted */ 5643 RECOMP_FLAGS_IN(); 5644 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(8); 5645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5646 esi = esi + 8; /* 0x3607F96B: add esi, 8 */ 5647 _flag_k = FK_ADD; 5648 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 5649 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5650 edi = edi + 8; /* 0x3607F96E: add edi, 8 */ 5651 _flag_k = FK_ADD; 5652 /* cmp esi, ebx */ /* 0x3607F971: cmp esi, ebx */ 5653 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 5654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5655 _flag_k = FK_CMP; 5656 RECOMP_BACKEDGE(); 5657 if (CMP_NE(_flag_a, _flag_b)) goto L_3607F963; /* 0x3607F973: jne 0x3607f963 */ 5658 L_3607F975: 5659 eax = edi; /* 0x3607F975: mov eax, edi */ 5660 edi = POP32_VAL(esp); /* 0x3607F977: pop edi */ 5661 esi = POP32_VAL(esp); /* 0x3607F978: pop esi */ 5662 ebx = POP32_VAL(esp); /* 0x3607F979: pop ebx */ 5663 ebp = POP32_VAL(esp); /* 0x3607F97A: pop ebp */ 5664 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F97B: ret */ 5665 L_3607F97C: 5666 eax = MEM32(ebp + 0x10); /* 0x3607F97C: mov eax, dword ptr [ebp + 0x10] */ 5667 esi = POP32_VAL(esp); /* 0x3607F97F: pop esi */ 5668 ebx = POP32_VAL(esp); /* 0x3607F980: pop ebx */ 5669 ebp = POP32_VAL(esp); /* 0x3607F981: pop ebp */ 5670 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F982: ret */ 5671 RECOMP_REGS_OUT(); 5672 } 5673 5674 void sub_3607F990(void) { 5675 int _fpu_cmp = 0; 5676 uint32_t _cf = 0; 5677 int _df = 1; 5678 uint32_t _flag_k = FK_NONE; 5679 uint32_t _flag_a = 0, _flag_b = 0; 5680 uint32_t _itail_tgt = 0; 5681 RECOMP_REGS_LOCALS 5682 RECOMP_ENTER(0x3607F990u); 5683 5684 L_3607F990: 5685 PUSH32(esp, ebp); /* 0x3607F990: push ebp */ 5686 ebp = esp; /* 0x3607F991: mov ebp, esp */ 5687 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607F993: push -1 */ 5688 PUSH32(esp, 0x36165624u); /* 0x3607F995: push 0x36165624 */ 5689 eax = MEM32(FS_BASE + (0)); /* 0x3607F99A: mov eax, dword ptr fs:[0] */ 5690 PUSH32(esp, eax); /* 0x3607F9A0: push eax */ 5691 MEM32(FS_BASE + (0)) = esp; /* 0x3607F9A1: mov dword ptr fs:[0], esp */ 5692 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5694 esp = esp - 8; /* 0x3607F9A8: sub esp, 8 */ 5695 _flag_k = FK_CMP; 5696 PUSH32(esp, esi); /* 0x3607F9AB: push esi */ 5697 esi = ecx; /* 0x3607F9AC: mov esi, ecx */ 5698 MEM32(ebp + (-0x10)) = esi; /* 0x3607F9AE: mov dword ptr [ebp - 0x10], esi */ 5699 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607F9B1: call dword ptr [0x3616ffd0] */ 5700 RECOMP_FLAGS_IN(); 5701 PUSH32(esp, 0xA8u); /* 0x3607F9B7: push 0xa8 */ 5702 MEM32(ebp + (-0x4)) = 0; /* 0x3607F9BC: mov dword ptr [ebp - 4], 0 */ 5703 MEM32(esi) = 0x3617178Cu; /* 0x3607F9C3: mov dword ptr [esi], 0x3617178c */ 5704 RECOMP_ICALL(0x3615FD6Au); /* 0x3607F9C9: call 0x3615fd6a */ /* not lifted */ 5705 RECOMP_FLAGS_IN(); 5706 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5707 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5708 esp = esp + 4; /* 0x3607F9CE: add esp, 4 */ 5709 _flag_k = FK_ADD; 5710 MEM32(ebp + (-0x14)) = eax; /* 0x3607F9D1: mov dword ptr [ebp - 0x14], eax */ 5711 /* test eax, eax */ /* 0x3607F9D4: test eax, eax */ 5712 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5713 _cf = 0; 5714 _flag_k = FK_TEST; 5715 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3607F9D6: mov byte ptr [ebp - 4], 1 */ 5716 if (TEST_Z(_flag_a, _flag_b)) goto L_3607F9F7; /* 0x3607F9DA: je 0x3607f9f7 */ 5717 L_3607F9DC: 5718 ecx = eax; /* 0x3607F9DC: mov ecx, eax */ 5719 RECOMP_ICALL(0x3605B730u); /* 0x3607F9DE: call 0x3605b730 */ /* not lifted */ 5720 RECOMP_FLAGS_IN(); 5721 MEM32(esi + 0x20) = eax; /* 0x3607F9E3: mov dword ptr [esi + 0x20], eax */ 5722 eax = esi; /* 0x3607F9E6: mov eax, esi */ 5723 esi = POP32_VAL(esp); /* 0x3607F9E8: pop esi */ 5724 ecx = MEM32(ebp + (-0xC)); /* 0x3607F9E9: mov ecx, dword ptr [ebp - 0xc] */ 5725 MEM32(FS_BASE + (0)) = ecx; /* 0x3607F9EC: mov dword ptr fs:[0], ecx */ 5726 esp = ebp; /* 0x3607F9F3: mov esp, ebp */ 5727 ebp = POP32_VAL(esp); /* 0x3607F9F5: pop ebp */ 5728 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607F9F6: ret */ 5729 L_3607F9F7: 5730 ecx = MEM32(ebp + (-0xC)); /* 0x3607F9F7: mov ecx, dword ptr [ebp - 0xc] */ 5731 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5732 eax = 0; /* 0x3607F9FA: xor eax, eax */ 5733 _cf = 0; 5734 _flag_k = FK_TEST; 5735 MEM32(esi + 0x20) = eax; /* 0x3607F9FC: mov dword ptr [esi + 0x20], eax */ 5736 eax = esi; /* 0x3607F9FF: mov eax, esi */ 5737 esi = POP32_VAL(esp); /* 0x3607FA01: pop esi */ 5738 MEM32(FS_BASE + (0)) = ecx; /* 0x3607FA02: mov dword ptr fs:[0], ecx */ 5739 esp = ebp; /* 0x3607FA09: mov esp, ebp */ 5740 ebp = POP32_VAL(esp); /* 0x3607FA0B: pop ebp */ 5741 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607FA0C: ret */ 5742 RECOMP_REGS_OUT(); 5743 } 5744 5745 void sub_3607FA10(void) { 5746 int _fpu_cmp = 0; 5747 uint32_t _cf = 0; 5748 int _df = 1; 5749 uint32_t _flag_k = FK_NONE; 5750 uint32_t _flag_a = 0, _flag_b = 0; 5751 uint32_t _itail_tgt = 0; 5752 RECOMP_REGS_LOCALS 5753 RECOMP_ENTER(0x3607FA10u); 5754 5755 L_3607FA10: 5756 PUSH32(esp, ebp); /* 0x3607FA10: push ebp */ 5757 ebp = esp; /* 0x3607FA11: mov ebp, esp */ 5758 PUSH32(esp, esi); /* 0x3607FA13: push esi */ 5759 esi = ecx; /* 0x3607FA14: mov esi, ecx */ 5760 RECOMP_ICALL(0x3607FA40u); /* 0x3607FA16: call 0x3607fa40 */ /* not lifted */ 5761 RECOMP_FLAGS_IN(); 5762 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607FA1B: test byte ptr [ebp + 8], 1 */ 5763 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 5764 _cf = 0; 5765 _flag_k = FK_NARROW(FK_TEST, 24); 5766 if (TEST_Z(_flag_a, _flag_b)) goto L_3607FA2A; /* 0x3607FA1F: je 0x3607fa2a */ 5767 L_3607FA21: 5768 PUSH32(esp, esi); /* 0x3607FA21: push esi */ 5769 RECOMP_ICALL(0x3615FCC4u); /* 0x3607FA22: call 0x3615fcc4 */ /* not lifted */ 5770 RECOMP_FLAGS_IN(); 5771 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5772 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5773 esp = esp + 4; /* 0x3607FA27: add esp, 4 */ 5774 _flag_k = FK_ADD; 5775 L_3607FA2A: 5776 eax = esi; /* 0x3607FA2A: mov eax, esi */ 5777 esi = POP32_VAL(esp); /* 0x3607FA2C: pop esi */ 5778 ebp = POP32_VAL(esp); /* 0x3607FA2D: pop ebp */ 5779 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FA2E: ret 4 */ 5780 RECOMP_REGS_OUT(); 5781 } 5782 5783 void sub_3607FA40(void) { 5784 int _fpu_cmp = 0; 5785 uint32_t _cf = 0; 5786 int _df = 1; 5787 uint32_t _flag_k = FK_NONE; 5788 uint32_t _flag_a = 0, _flag_b = 0; 5789 uint32_t _itail_tgt = 0; 5790 RECOMP_REGS_LOCALS 5791 RECOMP_ENTER(0x3607FA40u); 5792 5793 L_3607FA40: 5794 MEM32(ecx) = 0x3617178Cu; /* 0x3607FA40: mov dword ptr [ecx], 0x3617178c */ 5795 L_3607FA46: 5796 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 5797 { RECOMP_REGS_OUT(); return; } /* end of function */ 5798 _ljump: 5799 switch (_itail_tgt) { 5800 case 0x3607FA40u: goto L_3607FA40; 5801 case 0x3607FA46u: goto L_3607FA46; 5802 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5803 } 5804 RECOMP_REGS_OUT(); 5805 } 5806 5807 void sub_3607FA50(void) { 5808 int _fpu_cmp = 0; 5809 uint32_t _cf = 0; 5810 int _df = 1; 5811 uint32_t _flag_k = FK_NONE; 5812 uint32_t _flag_a = 0, _flag_b = 0; 5813 uint32_t _itail_tgt = 0; 5814 RECOMP_REGS_LOCALS 5815 RECOMP_ENTER(0x3607FA50u); 5816 5817 L_3607FA50: 5818 PUSH32(esp, ebp); /* 0x3607FA50: push ebp */ 5819 ebp = esp; /* 0x3607FA51: mov ebp, esp */ 5820 eax = MEM32(ecx + 0x20); /* 0x3607FA53: mov eax, dword ptr [ecx + 0x20] */ 5821 PUSH32(esp, esi); /* 0x3607FA56: push esi */ 5822 esi = MEM32(ebp + 0x8); /* 0x3607FA57: mov esi, dword ptr [ebp + 8] */ 5823 PUSH32(esp, eax); /* 0x3607FA5A: push eax */ 5824 PUSH32(esp, esi); /* 0x3607FA5B: push esi */ 5825 RECOMP_ICALL(0x3605BBD0u); /* 0x3607FA5C: call 0x3605bbd0 */ /* not lifted */ 5826 RECOMP_FLAGS_IN(); 5827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5829 esp = esp + 8; /* 0x3607FA61: add esp, 8 */ 5830 _flag_k = FK_ADD; 5831 ecx = esi; /* 0x3607FA64: mov ecx, esi */ 5832 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607FA66: call dword ptr [0x3616fadc] */ 5833 RECOMP_FLAGS_IN(); 5834 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 5835 _cf = (eax) != 0; 5836 eax = (uint32_t)(-(int32_t)eax); /* 0x3607FA6C: neg eax */ 5837 _flag_k = FK_CMP; 5838 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607FA6E: sbb eax, eax */ 5839 eax = _sc ? 0xFFFFFFFFu : 0; 5840 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5841 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5842 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5843 eax = eax + 1; /* 0x3607FA70: inc eax */ 5844 _flag_k = FK_INC; 5845 esi = POP32_VAL(esp); /* 0x3607FA71: pop esi */ 5846 ebp = POP32_VAL(esp); /* 0x3607FA72: pop ebp */ 5847 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FA73: ret 4 */ 5848 RECOMP_REGS_OUT(); 5849 } 5850 5851 void sub_3607FA80(void) { 5852 int _fpu_cmp = 0; 5853 uint32_t _cf = 0; 5854 int _df = 1; 5855 uint32_t _flag_k = FK_NONE; 5856 uint32_t _flag_a = 0, _flag_b = 0; 5857 uint32_t _itail_tgt = 0; 5858 RECOMP_REGS_LOCALS 5859 RECOMP_ENTER(0x3607FA80u); 5860 5861 L_3607FA80: 5862 PUSH32(esp, ebp); /* 0x3607FA80: push ebp */ 5863 ebp = esp; /* 0x3607FA81: mov ebp, esp */ 5864 eax = MEM32(ecx + 0x20); /* 0x3607FA83: mov eax, dword ptr [ecx + 0x20] */ 5865 ecx = MEM32(ebp + 0x8); /* 0x3607FA86: mov ecx, dword ptr [ebp + 8] */ 5866 PUSH32(esp, eax); /* 0x3607FA89: push eax */ 5867 PUSH32(esp, ecx); /* 0x3607FA8A: push ecx */ 5868 RECOMP_ICALL(0x3605B9A0u); /* 0x3607FA8B: call 0x3605b9a0 */ /* not lifted */ 5869 RECOMP_FLAGS_IN(); 5870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5872 esp = esp + 8; /* 0x3607FA90: add esp, 8 */ 5873 _flag_k = FK_ADD; 5874 ebp = POP32_VAL(esp); /* 0x3607FA93: pop ebp */ 5875 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FA94: ret 4 */ 5876 RECOMP_REGS_OUT(); 5877 } 5878 5879 void sub_3607FAA0(void) { 5880 int _fpu_cmp = 0; 5881 uint32_t _cf = 0; 5882 int _df = 1; 5883 uint32_t _flag_k = FK_NONE; 5884 uint32_t _flag_a = 0, _flag_b = 0; 5885 uint32_t _itail_tgt = 0; 5886 RECOMP_REGS_LOCALS 5887 RECOMP_ENTER(0x3607FAA0u); 5888 5889 L_3607FAA0: 5890 PUSH32(esp, esi); /* 0x3607FAA0: push esi */ 5891 esi = ecx; /* 0x3607FAA1: mov esi, ecx */ 5892 eax = esi + 0x4; /* 0x3607FAA3: lea eax, [esi + 4] */ 5893 PUSH32(esp, edi); /* 0x3607FAA6: push edi */ 5894 PUSH32(esp, eax); /* 0x3607FAA7: push eax */ 5895 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607FAA8: call dword ptr [0x3616ff70] */ 5896 RECOMP_FLAGS_IN(); 5897 PUSH32(esp, 0); /* 0x3607FAAE: push 0 */ 5898 PUSH32(esp, 0x361B2CD8u); /* 0x3607FAB0: push 0x361b2cd8 */ 5899 PUSH32(esp, 0x361B2CC0u); /* 0x3607FAB5: push 0x361b2cc0 */ 5900 PUSH32(esp, 0); /* 0x3607FABA: push 0 */ 5901 PUSH32(esp, eax); /* 0x3607FABC: push eax */ 5902 RECOMP_ICALL(0x3615FD86u); /* 0x3607FABD: call 0x3615fd86 */ /* not lifted */ 5903 RECOMP_FLAGS_IN(); 5904 ecx = MEM32(esi + 0x20); /* 0x3607FAC2: mov ecx, dword ptr [esi + 0x20] */ 5905 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5906 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5907 esp = esp + 0x18u; /* 0x3607FAC5: add esp, 0x18 */ 5908 _flag_k = FK_ADD; 5909 edi = eax; /* 0x3607FAC8: mov edi, eax */ 5910 /* Only remote InfoPacket application assigns absolute HP. */ 5911 if (!MEM8(edi + 0x128)) 5912 weapon_health_snapshot(MEM32(esi + 4), MEM32(esi + 8)); 5913 PUSH32(esp, edi); /* 0x3607FACA: push edi */ 5914 RECOMP_ICALL(0x3605B1A0u); /* 0x3607FACB: call 0x3605b1a0 */ /* not lifted */ 5915 RECOMP_FLAGS_IN(); 5916 ecx = MEM32(esi + 0x20); /* 0x3607FAD0: mov ecx, dword ptr [esi + 0x20] */ 5917 PUSH32(esp, ecx); /* 0x3607FAD3: push ecx */ 5918 ecx = edi; /* 0x3607FAD4: mov ecx, edi */ 5919 RECOMP_ICALL(0x36072000u); /* 0x3607FAD6: call 0x36072000 */ /* not lifted */ 5920 RECOMP_FLAGS_IN(); 5921 ecx = eax; /* 0x3607FADB: mov ecx, eax */ 5922 RECOMP_ICALL(0x360564A0u); /* 0x3607FADD: call 0x360564a0 */ /* not lifted */ 5923 RECOMP_FLAGS_IN(); 5924 edi = POP32_VAL(esp); /* 0x3607FAE2: pop edi */ 5925 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5926 eax = 0; /* 0x3607FAE3: xor eax, eax */ 5927 _cf = 0; 5928 _flag_k = FK_TEST; 5929 esi = POP32_VAL(esp); /* 0x3607FAE5: pop esi */ 5930 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607FAE6: ret */ 5931 RECOMP_REGS_OUT(); 5932 } 5933 5934 void sub_3607FAF0(void) { 5935 int _fpu_cmp = 0; 5936 uint32_t _cf = 0; 5937 int _df = 1; 5938 uint32_t _flag_k = FK_NONE; 5939 uint32_t _flag_a = 0, _flag_b = 0; 5940 uint32_t _itail_tgt = 0; 5941 RECOMP_REGS_LOCALS 5942 RECOMP_ENTER(0x3607FAF0u); 5943 5944 L_3607FAF0: 5945 PUSH32(esp, esi); /* 0x3607FAF0: push esi */ 5946 esi = ecx; /* 0x3607FAF1: mov esi, ecx */ 5947 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607FAF3: call dword ptr [0x3616ffd0] */ 5948 RECOMP_FLAGS_IN(); 5949 MEM32(esi) = 0x361717B0u; /* 0x3607FAF9: mov dword ptr [esi], 0x361717b0 */ 5950 eax = esi; /* 0x3607FAFF: mov eax, esi */ 5951 esi = POP32_VAL(esp); /* 0x3607FB01: pop esi */ 5952 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607FB02: ret */ 5953 RECOMP_REGS_OUT(); 5954 } 5955 5956 void sub_3607FB10(void) { 5957 int _fpu_cmp = 0; 5958 uint32_t _cf = 0; 5959 int _df = 1; 5960 uint32_t _flag_k = FK_NONE; 5961 uint32_t _flag_a = 0, _flag_b = 0; 5962 uint32_t _itail_tgt = 0; 5963 RECOMP_REGS_LOCALS 5964 RECOMP_ENTER(0x3607FB10u); 5965 5966 L_3607FB10: 5967 PUSH32(esp, ebp); /* 0x3607FB10: push ebp */ 5968 ebp = esp; /* 0x3607FB11: mov ebp, esp */ 5969 PUSH32(esp, esi); /* 0x3607FB13: push esi */ 5970 esi = ecx; /* 0x3607FB14: mov esi, ecx */ 5971 RECOMP_ICALL(0x3607FB40u); /* 0x3607FB16: call 0x3607fb40 */ /* not lifted */ 5972 RECOMP_FLAGS_IN(); 5973 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607FB1B: test byte ptr [ebp + 8], 1 */ 5974 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 5975 _cf = 0; 5976 _flag_k = FK_NARROW(FK_TEST, 24); 5977 if (TEST_Z(_flag_a, _flag_b)) goto L_3607FB2A; /* 0x3607FB1F: je 0x3607fb2a */ 5978 L_3607FB21: 5979 PUSH32(esp, esi); /* 0x3607FB21: push esi */ 5980 RECOMP_ICALL(0x3615FCC4u); /* 0x3607FB22: call 0x3615fcc4 */ /* not lifted */ 5981 RECOMP_FLAGS_IN(); 5982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5984 esp = esp + 4; /* 0x3607FB27: add esp, 4 */ 5985 _flag_k = FK_ADD; 5986 L_3607FB2A: 5987 eax = esi; /* 0x3607FB2A: mov eax, esi */ 5988 esi = POP32_VAL(esp); /* 0x3607FB2C: pop esi */ 5989 ebp = POP32_VAL(esp); /* 0x3607FB2D: pop ebp */ 5990 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FB2E: ret 4 */ 5991 RECOMP_REGS_OUT(); 5992 } 5993 5994 void sub_3607FB40(void) { 5995 int _fpu_cmp = 0; 5996 uint32_t _cf = 0; 5997 int _df = 1; 5998 uint32_t _flag_k = FK_NONE; 5999 uint32_t _flag_a = 0, _flag_b = 0; 6000 uint32_t _itail_tgt = 0; 6001 RECOMP_REGS_LOCALS 6002 RECOMP_ENTER(0x3607FB40u); 6003 6004 L_3607FB40: 6005 MEM32(ecx) = 0x361717B0u; /* 0x3607FB40: mov dword ptr [ecx], 0x361717b0 */ 6006 L_3607FB46: 6007 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 6008 { RECOMP_REGS_OUT(); return; } /* end of function */ 6009 _ljump: 6010 switch (_itail_tgt) { 6011 case 0x3607FB40u: goto L_3607FB40; 6012 case 0x3607FB46u: goto L_3607FB46; 6013 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6014 } 6015 RECOMP_REGS_OUT(); 6016 } 6017 6018 void sub_3607FB50(void) { 6019 int _fpu_cmp = 0; 6020 uint32_t _cf = 0; 6021 int _df = 1; 6022 uint32_t _flag_k = FK_NONE; 6023 uint32_t _flag_a = 0, _flag_b = 0; 6024 uint32_t _itail_tgt = 0; 6025 RECOMP_REGS_LOCALS 6026 RECOMP_ENTER(0x3607FB50u); 6027 6028 L_3607FB50: 6029 PUSH32(esp, ebp); /* 0x3607FB50: push ebp */ 6030 ebp = esp; /* 0x3607FB51: mov ebp, esp */ 6031 eax = MEM32(ecx + 0x20); /* 0x3607FB53: mov eax, dword ptr [ecx + 0x20] */ 6032 ecx = MEM32(ebp + 0x8); /* 0x3607FB56: mov ecx, dword ptr [ebp + 8] */ 6033 PUSH32(esp, eax); /* 0x3607FB59: push eax */ 6034 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3607FB5A: call dword ptr [0x3616faec] */ 6035 RECOMP_FLAGS_IN(); 6036 ebp = POP32_VAL(esp); /* 0x3607FB60: pop ebp */ 6037 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FB61: ret 4 */ 6038 RECOMP_REGS_OUT(); 6039 } 6040 6041 void sub_3607FB70(void) { 6042 int _fpu_cmp = 0; 6043 uint32_t _cf = 0; 6044 int _df = 1; 6045 uint32_t _flag_k = FK_NONE; 6046 uint32_t _flag_a = 0, _flag_b = 0; 6047 uint32_t _itail_tgt = 0; 6048 RECOMP_REGS_LOCALS 6049 RECOMP_ENTER(0x3607FB70u); 6050 6051 L_3607FB70: 6052 eax = MEM32(0x3616FF74); /* 0x3607FB70: mov eax, dword ptr [0x3616ff74] */ 6053 eax = MEM32(eax); /* 0x3607FB75: mov eax, dword ptr [eax] */ 6054 PUSH32(esp, esi); /* 0x3607FB77: push esi */ 6055 PUSH32(esp, 0); /* 0x3607FB78: push 0 */ 6056 PUSH32(esp, 0x361B2D38u); /* 0x3607FB7A: push 0x361b2d38 */ 6057 PUSH32(esp, 0x361B2D18u); /* 0x3607FB7F: push 0x361b2d18 */ 6058 PUSH32(esp, 0); /* 0x3607FB84: push 0 */ 6059 PUSH32(esp, eax); /* 0x3607FB86: push eax */ 6060 esi = ecx; /* 0x3607FB87: mov esi, ecx */ 6061 RECOMP_ICALL(0x3615FD86u); /* 0x3607FB89: call 0x3615fd86 */ /* not lifted */ 6062 RECOMP_FLAGS_IN(); 6063 edx = MEM32(eax); /* 0x3607FB8E: mov edx, dword ptr [eax] */ 6064 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6065 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6066 esp = esp + 0x14u; /* 0x3607FB90: add esp, 0x14 */ 6067 _flag_k = FK_ADD; 6068 ecx = eax; /* 0x3607FB93: mov ecx, eax */ 6069 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3607FB95: call dword ptr [edx + 0x10] */ 6070 RECOMP_FLAGS_IN(); 6071 /* test eax, eax */ /* 0x3607FB98: test eax, eax */ 6072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6073 _cf = 0; 6074 _flag_k = FK_TEST; 6075 if (TEST_Z(_flag_a, _flag_b)) goto L_3607FBBC; /* 0x3607FB9A: je 0x3607fbbc */ 6076 L_3607FB9C: 6077 ecx = MEM32(eax + 0x8); /* 0x3607FB9C: mov ecx, dword ptr [eax + 8] */ 6078 /* cmp ecx, MEM32(esi + 0x8) */ /* 0x3607FB9F: cmp ecx, dword ptr [esi + 8] */ 6079 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 6080 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6081 _flag_k = FK_CMP; 6082 if (CMP_NE(_flag_a, _flag_b)) goto L_3607FBBC; /* 0x3607FBA2: jne 0x3607fbbc */ 6083 L_3607FBA4: 6084 edx = MEM32(eax + 0x4); /* 0x3607FBA4: mov edx, dword ptr [eax + 4] */ 6085 /* cmp edx, MEM32(esi + 0x4) */ /* 0x3607FBA7: cmp edx, dword ptr [esi + 4] */ 6086 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 6087 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6088 _flag_k = FK_CMP; 6089 if (CMP_NE(_flag_a, _flag_b)) goto L_3607FBBC; /* 0x3607FBAA: jne 0x3607fbbc */ 6090 L_3607FBAC: 6091 eax = MEM32(esi + 0x20); /* 0x3607FBAC: mov eax, dword ptr [esi + 0x20] */ 6092 PUSH32(esp, eax); /* 0x3607FBAF: push eax */ 6093 RECOMP_ICALL(0x3601C590u); /* 0x3607FBB0: call 0x3601c590 */ /* not lifted */ 6094 RECOMP_FLAGS_IN(); 6095 ecx = eax; /* 0x3607FBB5: mov ecx, eax */ 6096 RECOMP_ICALL(0x3601C880u); /* 0x3607FBB7: call 0x3601c880 */ /* not lifted */ 6097 RECOMP_FLAGS_IN(); 6098 L_3607FBBC: 6099 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6100 eax = 0; /* 0x3607FBBC: xor eax, eax */ 6101 _cf = 0; 6102 _flag_k = FK_TEST; 6103 esi = POP32_VAL(esp); /* 0x3607FBBE: pop esi */ 6104 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607FBBF: ret */ 6105 RECOMP_REGS_OUT(); 6106 } 6107 6108 void sub_3607FBC0(void) { 6109 int _fpu_cmp = 0; 6110 uint32_t _cf = 0; 6111 int _df = 1; 6112 uint32_t _flag_k = FK_NONE; 6113 uint32_t _flag_a = 0, _flag_b = 0; 6114 uint32_t _itail_tgt = 0; 6115 RECOMP_REGS_LOCALS 6116 RECOMP_ENTER(0x3607FBC0u); 6117 6118 L_3607FBC0: 6119 PUSH32(esp, esi); /* 0x3607FBC0: push esi */ 6120 esi = ecx; /* 0x3607FBC1: mov esi, ecx */ 6121 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607FBC3: call dword ptr [0x3616ffd0] */ 6122 RECOMP_FLAGS_IN(); 6123 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6124 eax = 0; /* 0x3607FBC9: xor eax, eax */ 6125 _cf = 0; 6126 _flag_k = FK_TEST; 6127 MEM32(esi + 0x20) = eax; /* 0x3607FBCB: mov dword ptr [esi + 0x20], eax */ 6128 MEM32(esi + 0x24) = eax; /* 0x3607FBCE: mov dword ptr [esi + 0x24], eax */ 6129 MEM8(esi + 0xC) = (uint8_t)(LO8(eax)); /* 0x3607FBD1: mov byte ptr [esi + 0xc], al */ 6130 MEM32(esi) = 0x361717D4u; /* 0x3607FBD4: mov dword ptr [esi], 0x361717d4 */ 6131 eax = esi; /* 0x3607FBDA: mov eax, esi */ 6132 esi = POP32_VAL(esp); /* 0x3607FBDC: pop esi */ 6133 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607FBDD: ret */ 6134 RECOMP_REGS_OUT(); 6135 } 6136 6137 void sub_3607FBE0(void) { 6138 int _fpu_cmp = 0; 6139 uint32_t _cf = 0; 6140 int _df = 1; 6141 uint32_t _flag_k = FK_NONE; 6142 uint32_t _flag_a = 0, _flag_b = 0; 6143 uint32_t _itail_tgt = 0; 6144 RECOMP_REGS_LOCALS 6145 RECOMP_ENTER(0x3607FBE0u); 6146 6147 L_3607FBE0: 6148 PUSH32(esp, ebp); /* 0x3607FBE0: push ebp */ 6149 ebp = esp; /* 0x3607FBE1: mov ebp, esp */ 6150 PUSH32(esp, esi); /* 0x3607FBE3: push esi */ 6151 esi = ecx; /* 0x3607FBE4: mov esi, ecx */ 6152 RECOMP_ICALL(0x3607FD00u); /* 0x3607FBE6: call 0x3607fd00 */ /* not lifted */ 6153 RECOMP_FLAGS_IN(); 6154 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607FBEB: test byte ptr [ebp + 8], 1 */ 6155 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6156 _cf = 0; 6157 _flag_k = FK_NARROW(FK_TEST, 24); 6158 if (TEST_Z(_flag_a, _flag_b)) goto L_3607FBFA; /* 0x3607FBEF: je 0x3607fbfa */ 6159 L_3607FBF1: 6160 PUSH32(esp, esi); /* 0x3607FBF1: push esi */ 6161 RECOMP_ICALL(0x3615FCC4u); /* 0x3607FBF2: call 0x3615fcc4 */ /* not lifted */ 6162 RECOMP_FLAGS_IN(); 6163 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6165 esp = esp + 4; /* 0x3607FBF7: add esp, 4 */ 6166 _flag_k = FK_ADD; 6167 L_3607FBFA: 6168 eax = esi; /* 0x3607FBFA: mov eax, esi */ 6169 esi = POP32_VAL(esp); /* 0x3607FBFC: pop esi */ 6170 ebp = POP32_VAL(esp); /* 0x3607FBFD: pop ebp */ 6171 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FBFE: ret 4 */ 6172 RECOMP_REGS_OUT(); 6173 } 6174 6175 void sub_3607FC10(void) { 6176 int _fpu_cmp = 0; 6177 uint32_t _cf = 0; 6178 int _df = 1; 6179 uint32_t _flag_k = FK_NONE; 6180 uint32_t _flag_a = 0, _flag_b = 0; 6181 uint32_t _itail_tgt = 0; 6182 RECOMP_REGS_LOCALS 6183 RECOMP_ENTER(0x3607FC10u); 6184 6185 L_3607FC10: 6186 PUSH32(esp, ebp); /* 0x3607FC10: push ebp */ 6187 ebp = esp; /* 0x3607FC11: mov ebp, esp */ 6188 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607FC13: push -1 */ 6189 PUSH32(esp, 0x36165639u); /* 0x3607FC15: push 0x36165639 */ 6190 eax = MEM32(FS_BASE + (0)); /* 0x3607FC1A: mov eax, dword ptr fs:[0] */ 6191 PUSH32(esp, eax); /* 0x3607FC20: push eax */ 6192 MEM32(FS_BASE + (0)) = esp; /* 0x3607FC21: mov dword ptr fs:[0], esp */ 6193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6195 esp = esp - 0x14u; /* 0x3607FC28: sub esp, 0x14 */ 6196 _flag_k = FK_CMP; 6197 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3607FC2B: mov al, byte ptr [ebp + 0xb] */ 6198 PUSH32(esp, ebx); /* 0x3607FC2E: push ebx */ 6199 PUSH32(esp, esi); /* 0x3607FC2F: push esi */ 6200 ebx = ecx; /* 0x3607FC30: mov ebx, ecx */ 6201 PUSH32(esp, edi); /* 0x3607FC32: push edi */ 6202 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6203 ecx = ecx | 0xFFFFFFFFu; /* 0x3607FC33: or ecx, 0xffffffff */ 6204 _cf = 0; 6205 _flag_k = FK_TEST; 6206 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6207 esi = 0; /* 0x3607FC36: xor esi, esi */ 6208 _cf = 0; 6209 _flag_k = FK_TEST; 6210 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x3607FC38: mov byte ptr [ebp - 0x20], al */ 6211 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6212 eax = 0; /* 0x3607FC3B: xor eax, eax */ 6213 _cf = 0; 6214 _flag_k = FK_TEST; 6215 edi = 0x361B420Cu; /* 0x3607FC3D: mov edi, 0x361b420c */ 6216 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; } /* 0x3607FC42: repne scasb al, byte ptr es:[edi] */ 6217 ecx = ~ecx; /* 0x3607FC44: not ecx */ 6218 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6219 ecx = ecx - 1; /* 0x3607FC46: dec ecx */ 6220 _flag_k = FK_DEC; 6221 edi = ecx; /* 0x3607FC47: mov edi, ecx */ 6222 PUSH32(esp, 1); /* 0x3607FC49: push 1 */ 6223 PUSH32(esp, edi); /* 0x3607FC4B: push edi */ 6224 ecx = ebp + (-0x20); /* 0x3607FC4C: lea ecx, [ebp - 0x20] */ 6225 MEM32(ebp + (-0x1C)) = esi; /* 0x3607FC4F: mov dword ptr [ebp - 0x1c], esi */ 6226 MEM32(ebp + (-0x18)) = esi; /* 0x3607FC52: mov dword ptr [ebp - 0x18], esi */ 6227 MEM32(ebp + (-0x14)) = esi; /* 0x3607FC55: mov dword ptr [ebp - 0x14], esi */ 6228 MEM32(ebp + (-0x10)) = edi; /* 0x3607FC58: mov dword ptr [ebp - 0x10], edi */ 6229 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3607FC5B: call dword ptr [0x3616f00c] */ 6230 RECOMP_FLAGS_IN(); 6231 /* test LO8(eax), LO8(eax) */ /* 0x3607FC61: test al, al */ 6232 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6233 _cf = 0; 6234 _flag_k = FK_NARROW(FK_TEST, 24); 6235 if (TEST_Z(_flag_a, _flag_b)) goto L_3607FC8B; /* 0x3607FC63: je 0x3607fc8b */ 6236 L_3607FC65: 6237 ecx = edi; /* 0x3607FC65: mov ecx, edi */ 6238 edi = MEM32(ebp + (-0x1C)); /* 0x3607FC67: mov edi, dword ptr [ebp - 0x1c] */ 6239 edx = ecx; /* 0x3607FC6A: mov edx, ecx */ 6240 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3607FC6C: shr ecx, 2 */ 6241 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6242 ecx = ecx >> 2u; /* 0x3607FC6C: shr ecx, 2 */ 6243 esi = 0x361B420Cu; /* 0x3607FC6F: mov esi, 0x361b420c */ 6244 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3607FC74: 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; } 6245 ecx = edx; /* 0x3607FC76: mov ecx, edx */ 6246 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 6247 ecx = ecx & 3; /* 0x3607FC78: and ecx, 3 */ 6248 _cf = 0; 6249 _flag_k = FK_TEST; 6250 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3607FC7B: 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; } 6251 ecx = MEM32(ebp + (-0x1C)); /* 0x3607FC7D: mov ecx, dword ptr [ebp - 0x1c] */ 6252 eax = edx; /* 0x3607FC80: mov eax, edx */ 6253 MEM32(ebp + (-0x18)) = eax; /* 0x3607FC82: mov dword ptr [ebp - 0x18], eax */ 6254 MEM8(eax + ecx) = (uint8_t)(0); /* 0x3607FC85: mov byte ptr [eax + ecx], 0 */ 6255 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6256 esi = 0; /* 0x3607FC89: xor esi, esi */ 6257 _cf = 0; 6258 _flag_k = FK_TEST; 6259 L_3607FC8B: 6260 eax = MEM32(ebp + 0x8); /* 0x3607FC8B: mov eax, dword ptr [ebp + 8] */ 6261 edx = ebp + (-0x20); /* 0x3607FC8E: lea edx, [ebp - 0x20] */ 6262 PUSH32(esp, edx); /* 0x3607FC91: push edx */ 6263 PUSH32(esp, eax); /* 0x3607FC92: push eax */ 6264 ecx = ebx; /* 0x3607FC93: mov ecx, ebx */ 6265 MEM32(ebp + (-0x4)) = esi; /* 0x3607FC95: mov dword ptr [ebp - 4], esi */ 6266 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x3607FC98: call dword ptr [0x3616fc0c] */ 6267 RECOMP_FLAGS_IN(); 6268 eax = MEM32(ebp + (-0x1C)); /* 0x3607FC9E: mov eax, dword ptr [ebp - 0x1c] */ 6269 /* cmp eax, esi */ /* 0x3607FCA1: cmp eax, esi */ 6270 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6271 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6272 _flag_k = FK_CMP; 6273 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607FCC1; /* 0x3607FCA3: je 0x3607fcc1 */ 6274 L_3607FCA5: 6275 ecx = eax + (-0x1); /* 0x3607FCA5: lea ecx, [eax - 1] */ 6276 SET_LO8(eax, MEM8(ecx)); /* 0x3607FCA8: mov al, byte ptr [ecx] */ 6277 /* test LO8(eax), LO8(eax) */ /* 0x3607FCAA: test al, al */ 6278 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6279 _cf = 0; 6280 _flag_k = FK_NARROW(FK_TEST, 24); 6281 if (TEST_Z(_flag_a, _flag_b)) goto L_3607FCB8; /* 0x3607FCAC: je 0x3607fcb8 */ 6282 L_3607FCAE: 6283 /* cmp LO8(eax), 0xFFu */ /* 0x3607FCAE: cmp al, 0xff */ 6284 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 6285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6286 _flag_k = FK_NARROW(FK_CMP, 24); 6287 if (CMP_EQ(_flag_a, _flag_b)) goto L_3607FCB8; /* 0x3607FCB0: je 0x3607fcb8 */ 6288 L_3607FCB2: 6289 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6290 SET_LO8(eax, LO8(eax) - 1); /* 0x3607FCB2: dec al */ 6291 _flag_k = FK_NARROW(FK_DEC, 24); 6292 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x3607FCB4: mov byte ptr [ecx], al */ 6293 goto L_3607FCC1; /* 0x3607FCB6: jmp 0x3607fcc1 */ 6294 L_3607FCB8: 6295 PUSH32(esp, ecx); /* 0x3607FCB8: push ecx */ 6296 RECOMP_ICALL(0x3615FCC4u); /* 0x3607FCB9: call 0x3615fcc4 */ /* not lifted */ 6297 RECOMP_FLAGS_IN(); 6298 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6299 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6300 esp = esp + 4; /* 0x3607FCBE: add esp, 4 */ 6301 _flag_k = FK_ADD; 6302 L_3607FCC1: 6303 eax = MEM32(ebp + 0xC); /* 0x3607FCC1: mov eax, dword ptr [ebp + 0xc] */ 6304 MEM32(ebx + 0x20) = esi; /* 0x3607FCC4: mov dword ptr [ebx + 0x20], esi */ 6305 MEM32(ebx + 0x24) = esi; /* 0x3607FCC7: mov dword ptr [ebx + 0x24], esi */ 6306 MEM32(ebx) = 0x361717D4u; /* 0x3607FCCA: mov dword ptr [ebx], 0x361717d4 */ 6307 MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x3607FCD0: mov byte ptr [ebx + 0xc], 0 */ 6308 ecx = MEM32(eax); /* 0x3607FCD4: mov ecx, dword ptr [eax] */ 6309 MEM32(ebx + 0x20) = ecx; /* 0x3607FCD6: mov dword ptr [ebx + 0x20], ecx */ 6310 edx = MEM32(eax + 0x4); /* 0x3607FCD9: mov edx, dword ptr [eax + 4] */ 6311 eax = MEM32(ebp + 0x10); /* 0x3607FCDC: mov eax, dword ptr [ebp + 0x10] */ 6312 ecx = MEM32(ebp + (-0xC)); /* 0x3607FCDF: mov ecx, dword ptr [ebp - 0xc] */ 6313 edi = POP32_VAL(esp); /* 0x3607FCE2: pop edi */ 6314 MEM32(ebx + 0x28) = eax; /* 0x3607FCE3: mov dword ptr [ebx + 0x28], eax */ 6315 MEM32(ebx + 0x24) = edx; /* 0x3607FCE6: mov dword ptr [ebx + 0x24], edx */ 6316 esi = POP32_VAL(esp); /* 0x3607FCE9: pop esi */ 6317 eax = ebx; /* 0x3607FCEA: mov eax, ebx */ 6318 ebx = POP32_VAL(esp); /* 0x3607FCEC: pop ebx */ 6319 MEM32(FS_BASE + (0)) = ecx; /* 0x3607FCED: mov dword ptr fs:[0], ecx */ 6320 esp = ebp; /* 0x3607FCF4: mov esp, ebp */ 6321 ebp = POP32_VAL(esp); /* 0x3607FCF6: pop ebp */ 6322 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3607FCF7: ret 0xc */ 6323 RECOMP_REGS_OUT(); 6324 } 6325 6326 void sub_3607FD00(void) { 6327 int _fpu_cmp = 0; 6328 uint32_t _cf = 0; 6329 int _df = 1; 6330 uint32_t _flag_k = FK_NONE; 6331 uint32_t _flag_a = 0, _flag_b = 0; 6332 uint32_t _itail_tgt = 0; 6333 RECOMP_REGS_LOCALS 6334 RECOMP_ENTER(0x3607FD00u); 6335 6336 L_3607FD00: 6337 MEM32(ecx) = 0x361717D4u; /* 0x3607FD00: mov dword ptr [ecx], 0x361717d4 */ 6338 L_3607FD06: 6339 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 6340 { RECOMP_REGS_OUT(); return; } /* end of function */ 6341 _ljump: 6342 switch (_itail_tgt) { 6343 case 0x3607FD00u: goto L_3607FD00; 6344 case 0x3607FD06u: goto L_3607FD06; 6345 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6346 } 6347 RECOMP_REGS_OUT(); 6348 } 6349 6350 void sub_3607FD10(void) { 6351 int _fpu_cmp = 0; 6352 uint32_t _cf = 0; 6353 int _df = 1; 6354 uint32_t _flag_k = FK_NONE; 6355 uint32_t _flag_a = 0, _flag_b = 0; 6356 uint32_t _itail_tgt = 0; 6357 RECOMP_REGS_LOCALS 6358 RECOMP_ENTER(0x3607FD10u); 6359 6360 L_3607FD10: 6361 PUSH32(esp, ebp); /* 0x3607FD10: push ebp */ 6362 ebp = esp; /* 0x3607FD11: mov ebp, esp */ 6363 PUSH32(esp, esi); /* 0x3607FD13: push esi */ 6364 esi = ecx; /* 0x3607FD14: mov esi, ecx */ 6365 PUSH32(esp, edi); /* 0x3607FD16: push edi */ 6366 edi = MEM32(ebp + 0x8); /* 0x3607FD17: mov edi, dword ptr [ebp + 8] */ 6367 eax = esi + 0x20; /* 0x3607FD1A: lea eax, [esi + 0x20] */ 6368 PUSH32(esp, eax); /* 0x3607FD1D: push eax */ 6369 PUSH32(esp, edi); /* 0x3607FD1E: push edi */ 6370 RECOMP_ICALL(0x3615B870u); /* 0x3607FD1F: call 0x3615b870 */ /* not lifted */ 6371 RECOMP_FLAGS_IN(); 6372 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6373 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6374 esp = esp + 8; /* 0x3607FD24: add esp, 8 */ 6375 _flag_k = FK_ADD; 6376 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x28u); 6377 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6378 esi = esi + 0x28u; /* 0x3607FD27: add esi, 0x28 */ 6379 _flag_k = FK_ADD; 6380 PUSH32(esp, esi); /* 0x3607FD2A: push esi */ 6381 ecx = edi; /* 0x3607FD2B: mov ecx, edi */ 6382 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3607FD2D: call dword ptr [0x3616fa8c] */ 6383 RECOMP_FLAGS_IN(); 6384 esi = MEM32(esi); /* 0x3607FD33: mov esi, dword ptr [esi] */ 6385 /* test esi, esi */ /* 0x3607FD35: test esi, esi */ 6386 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6387 _cf = 0; 6388 _flag_k = FK_TEST; 6389 if (TEST_S(_flag_a, _flag_b)) goto L_3607FD51; /* 0x3607FD37: jl 0x3607fd51 */ 6390 L_3607FD39: 6391 /* cmp esi, 2 */ /* 0x3607FD39: cmp esi, 2 */ 6392 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(2); 6393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6394 _flag_k = FK_CMP; 6395 if (CMP_G(_flag_a, _flag_b)) goto L_3607FD51; /* 0x3607FD3C: jg 0x3607fd51 */ 6396 L_3607FD3E: 6397 ecx = edi; /* 0x3607FD3E: mov ecx, edi */ 6398 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607FD40: call dword ptr [0x3616fadc] */ 6399 RECOMP_FLAGS_IN(); 6400 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 6401 _cf = (eax) != 0; 6402 eax = (uint32_t)(-(int32_t)eax); /* 0x3607FD46: neg eax */ 6403 _flag_k = FK_CMP; 6404 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607FD48: sbb eax, eax */ 6405 eax = _sc ? 0xFFFFFFFFu : 0; 6406 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6407 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6408 edi = POP32_VAL(esp); /* 0x3607FD4A: pop edi */ 6409 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6410 eax = eax + 1; /* 0x3607FD4B: inc eax */ 6411 _flag_k = FK_INC; 6412 esi = POP32_VAL(esp); /* 0x3607FD4C: pop esi */ 6413 ebp = POP32_VAL(esp); /* 0x3607FD4D: pop ebp */ 6414 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FD4E: ret 4 */ 6415 L_3607FD51: 6416 edi = POP32_VAL(esp); /* 0x3607FD51: pop edi */ 6417 eax = 1; /* 0x3607FD52: mov eax, 1 */ 6418 esi = POP32_VAL(esp); /* 0x3607FD57: pop esi */ 6419 ebp = POP32_VAL(esp); /* 0x3607FD58: pop ebp */ 6420 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FD59: ret 4 */ 6421 RECOMP_REGS_OUT(); 6422 } 6423 6424 void sub_3607FD60(void) { 6425 int _fpu_cmp = 0; 6426 uint32_t _cf = 0; 6427 int _df = 1; 6428 uint32_t _flag_k = FK_NONE; 6429 uint32_t _flag_a = 0, _flag_b = 0; 6430 uint32_t _itail_tgt = 0; 6431 RECOMP_REGS_LOCALS 6432 RECOMP_ENTER(0x3607FD60u); 6433 6434 L_3607FD60: 6435 PUSH32(esp, ebp); /* 0x3607FD60: push ebp */ 6436 ebp = esp; /* 0x3607FD61: mov ebp, esp */ 6437 PUSH32(esp, esi); /* 0x3607FD63: push esi */ 6438 esi = ecx; /* 0x3607FD64: mov esi, ecx */ 6439 PUSH32(esp, edi); /* 0x3607FD66: push edi */ 6440 edi = MEM32(ebp + 0x8); /* 0x3607FD67: mov edi, dword ptr [ebp + 8] */ 6441 eax = esi + 0x20; /* 0x3607FD6A: lea eax, [esi + 0x20] */ 6442 PUSH32(esp, eax); /* 0x3607FD6D: push eax */ 6443 PUSH32(esp, edi); /* 0x3607FD6E: push edi */ 6444 RECOMP_ICALL(0x3615B840u); /* 0x3607FD6F: call 0x3615b840 */ /* not lifted */ 6445 RECOMP_FLAGS_IN(); 6446 ecx = MEM32(esi + 0x28); /* 0x3607FD74: mov ecx, dword ptr [esi + 0x28] */ 6447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6449 esp = esp + 8; /* 0x3607FD77: add esp, 8 */ 6450 _flag_k = FK_ADD; 6451 PUSH32(esp, ecx); /* 0x3607FD7A: push ecx */ 6452 ecx = edi; /* 0x3607FD7B: mov ecx, edi */ 6453 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3607FD7D: call dword ptr [0x3616faec] */ 6454 RECOMP_FLAGS_IN(); 6455 edi = POP32_VAL(esp); /* 0x3607FD83: pop edi */ 6456 esi = POP32_VAL(esp); /* 0x3607FD84: pop esi */ 6457 ebp = POP32_VAL(esp); /* 0x3607FD85: pop ebp */ 6458 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FD86: ret 4 */ 6459 RECOMP_REGS_OUT(); 6460 } 6461 6462 void sub_3607FD90(void) { 6463 int _fpu_cmp = 0; 6464 uint32_t _cf = 0; 6465 int _df = 1; 6466 uint32_t _flag_k = FK_NONE; 6467 uint32_t _flag_a = 0, _flag_b = 0; 6468 uint32_t _itail_tgt = 0; 6469 RECOMP_REGS_LOCALS 6470 RECOMP_ENTER(0x3607FD90u); 6471 6472 L_3607FD90: 6473 PUSH32(esp, ebp); /* 0x3607FD90: push ebp */ 6474 ebp = esp; /* 0x3607FD91: mov ebp, esp */ 6475 PUSH32(esp, 0xFFFFFFFFu); /* 0x3607FD93: push -1 */ 6476 PUSH32(esp, 0x36165659u); /* 0x3607FD95: push 0x36165659 */ 6477 eax = MEM32(FS_BASE + (0)); /* 0x3607FD9A: mov eax, dword ptr fs:[0] */ 6478 PUSH32(esp, eax); /* 0x3607FDA0: push eax */ 6479 MEM32(FS_BASE + (0)) = esp; /* 0x3607FDA1: mov dword ptr fs:[0], esp */ 6480 PUSH32(esp, ecx); /* 0x3607FDA8: push ecx */ 6481 PUSH32(esp, esi); /* 0x3607FDA9: push esi */ 6482 esi = ecx; /* 0x3607FDAA: mov esi, ecx */ 6483 MEM32(ebp + (-0x10)) = esi; /* 0x3607FDAC: mov dword ptr [ebp - 0x10], esi */ 6484 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x3607FDAF: call dword ptr [0x3616ffd0] */ 6485 RECOMP_FLAGS_IN(); 6486 PUSH32(esp, 0x361C4F14u); /* 0x3607FDB5: push 0x361c4f14 */ 6487 MEM32(ebp + (-0x4)) = 0; /* 0x3607FDBA: mov dword ptr [ebp - 4], 0 */ 6488 MEM32(esi) = 0x361717F8u; /* 0x3607FDC1: mov dword ptr [esi], 0x361717f8 */ 6489 RECOMP_ICALL(0x3601C590u); /* 0x3607FDC7: call 0x3601c590 */ /* not lifted */ 6490 RECOMP_FLAGS_IN(); 6491 ecx = eax; /* 0x3607FDCC: mov ecx, eax */ 6492 RECOMP_ICALL(0x3601CBC0u); /* 0x3607FDCE: call 0x3601cbc0 */ /* not lifted */ 6493 RECOMP_FLAGS_IN(); 6494 ecx = MEM32(ebp + (-0xC)); /* 0x3607FDD3: mov ecx, dword ptr [ebp - 0xc] */ 6495 MEM32(esi + 0x40) = eax; /* 0x3607FDD6: mov dword ptr [esi + 0x40], eax */ 6496 eax = esi; /* 0x3607FDD9: mov eax, esi */ 6497 esi = POP32_VAL(esp); /* 0x3607FDDB: pop esi */ 6498 MEM32(FS_BASE + (0)) = ecx; /* 0x3607FDDC: mov dword ptr fs:[0], ecx */ 6499 esp = ebp; /* 0x3607FDE3: mov esp, ebp */ 6500 ebp = POP32_VAL(esp); /* 0x3607FDE5: pop ebp */ 6501 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3607FDE6: ret */ 6502 RECOMP_REGS_OUT(); 6503 } 6504 6505 void sub_3607FDF0(void) { 6506 int _fpu_cmp = 0; 6507 uint32_t _cf = 0; 6508 int _df = 1; 6509 uint32_t _flag_k = FK_NONE; 6510 uint32_t _flag_a = 0, _flag_b = 0; 6511 uint32_t _itail_tgt = 0; 6512 RECOMP_REGS_LOCALS 6513 RECOMP_ENTER(0x3607FDF0u); 6514 6515 L_3607FDF0: 6516 PUSH32(esp, ebp); /* 0x3607FDF0: push ebp */ 6517 ebp = esp; /* 0x3607FDF1: mov ebp, esp */ 6518 PUSH32(esp, esi); /* 0x3607FDF3: push esi */ 6519 esi = ecx; /* 0x3607FDF4: mov esi, ecx */ 6520 RECOMP_ICALL(0x3607FE20u); /* 0x3607FDF6: call 0x3607fe20 */ /* not lifted */ 6521 RECOMP_FLAGS_IN(); 6522 /* test MEM8(ebp + 0x8), 1 */ /* 0x3607FDFB: test byte ptr [ebp + 8], 1 */ 6523 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6524 _cf = 0; 6525 _flag_k = FK_NARROW(FK_TEST, 24); 6526 if (TEST_Z(_flag_a, _flag_b)) goto L_3607FE0A; /* 0x3607FDFF: je 0x3607fe0a */ 6527 L_3607FE01: 6528 PUSH32(esp, esi); /* 0x3607FE01: push esi */ 6529 RECOMP_ICALL(0x3615FCC4u); /* 0x3607FE02: call 0x3615fcc4 */ /* not lifted */ 6530 RECOMP_FLAGS_IN(); 6531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6533 esp = esp + 4; /* 0x3607FE07: add esp, 4 */ 6534 _flag_k = FK_ADD; 6535 L_3607FE0A: 6536 eax = esi; /* 0x3607FE0A: mov eax, esi */ 6537 esi = POP32_VAL(esp); /* 0x3607FE0C: pop esi */ 6538 ebp = POP32_VAL(esp); /* 0x3607FE0D: pop ebp */ 6539 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FE0E: ret 4 */ 6540 RECOMP_REGS_OUT(); 6541 } 6542 6543 void sub_3607FE20(void) { 6544 int _fpu_cmp = 0; 6545 uint32_t _cf = 0; 6546 int _df = 1; 6547 uint32_t _flag_k = FK_NONE; 6548 uint32_t _flag_a = 0, _flag_b = 0; 6549 uint32_t _itail_tgt = 0; 6550 RECOMP_REGS_LOCALS 6551 RECOMP_ENTER(0x3607FE20u); 6552 6553 L_3607FE20: 6554 MEM32(ecx) = 0x361717F8u; /* 0x3607FE20: mov dword ptr [ecx], 0x361717f8 */ 6555 L_3607FE26: 6556 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 6557 { RECOMP_REGS_OUT(); return; } /* end of function */ 6558 _ljump: 6559 switch (_itail_tgt) { 6560 case 0x3607FE20u: goto L_3607FE20; 6561 case 0x3607FE26u: goto L_3607FE26; 6562 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6563 } 6564 RECOMP_REGS_OUT(); 6565 } 6566 6567 void sub_3607FE30(void) { 6568 int _fpu_cmp = 0; 6569 uint32_t _cf = 0; 6570 int _df = 1; 6571 uint32_t _flag_k = FK_NONE; 6572 uint32_t _flag_a = 0, _flag_b = 0; 6573 uint32_t _itail_tgt = 0; 6574 RECOMP_REGS_LOCALS 6575 RECOMP_ENTER(0x3607FE30u); 6576 6577 L_3607FE30: 6578 PUSH32(esp, ebp); /* 0x3607FE30: push ebp */ 6579 ebp = esp; /* 0x3607FE31: mov ebp, esp */ 6580 PUSH32(esp, ebx); /* 0x3607FE33: push ebx */ 6581 ebx = MEM32(0x3616FA8C); /* 0x3607FE34: mov ebx, dword ptr [0x3616fa8c] */ 6582 PUSH32(esp, esi); /* 0x3607FE3A: push esi */ 6583 esi = ecx; /* 0x3607FE3B: mov esi, ecx */ 6584 PUSH32(esp, edi); /* 0x3607FE3D: push edi */ 6585 edi = MEM32(ebp + 0x8); /* 0x3607FE3E: mov edi, dword ptr [ebp + 8] */ 6586 eax = esi + 0x20; /* 0x3607FE41: lea eax, [esi + 0x20] */ 6587 PUSH32(esp, eax); /* 0x3607FE44: push eax */ 6588 ecx = edi; /* 0x3607FE45: mov ecx, edi */ 6589 RECOMP_ICALL(ebx); /* 0x3607FE47: call ebx */ 6590 RECOMP_FLAGS_IN(); 6591 ecx = esi + 0x24; /* 0x3607FE49: lea ecx, [esi + 0x24] */ 6592 PUSH32(esp, ecx); /* 0x3607FE4C: push ecx */ 6593 ecx = edi; /* 0x3607FE4D: mov ecx, edi */ 6594 RECOMP_ICALL(ebx); /* 0x3607FE4F: call ebx */ 6595 RECOMP_FLAGS_IN(); 6596 edx = esi + 0x28; /* 0x3607FE51: lea edx, [esi + 0x28] */ 6597 PUSH32(esp, edx); /* 0x3607FE54: push edx */ 6598 ecx = edi; /* 0x3607FE55: mov ecx, edi */ 6599 RECOMP_ICALL(ebx); /* 0x3607FE57: call ebx */ 6600 RECOMP_FLAGS_IN(); 6601 eax = esi + 0x2C; /* 0x3607FE59: lea eax, [esi + 0x2c] */ 6602 PUSH32(esp, eax); /* 0x3607FE5C: push eax */ 6603 ecx = edi; /* 0x3607FE5D: mov ecx, edi */ 6604 RECOMP_ICALL(ebx); /* 0x3607FE5F: call ebx */ 6605 RECOMP_FLAGS_IN(); 6606 ecx = esi + 0x30; /* 0x3607FE61: lea ecx, [esi + 0x30] */ 6607 PUSH32(esp, ecx); /* 0x3607FE64: push ecx */ 6608 ecx = edi; /* 0x3607FE65: mov ecx, edi */ 6609 RECOMP_ICALL(ebx); /* 0x3607FE67: call ebx */ 6610 RECOMP_FLAGS_IN(); 6611 edx = esi + 0x34; /* 0x3607FE69: lea edx, [esi + 0x34] */ 6612 PUSH32(esp, edx); /* 0x3607FE6C: push edx */ 6613 ecx = edi; /* 0x3607FE6D: mov ecx, edi */ 6614 RECOMP_ICALL(ebx); /* 0x3607FE6F: call ebx */ 6615 RECOMP_FLAGS_IN(); 6616 eax = esi + 0x38; /* 0x3607FE71: lea eax, [esi + 0x38] */ 6617 PUSH32(esp, eax); /* 0x3607FE74: push eax */ 6618 ecx = edi; /* 0x3607FE75: mov ecx, edi */ 6619 RECOMP_ICALL(ebx); /* 0x3607FE77: call ebx */ 6620 RECOMP_FLAGS_IN(); 6621 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x3Cu); 6622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6623 esi = esi + 0x3Cu; /* 0x3607FE79: add esi, 0x3c */ 6624 _flag_k = FK_ADD; 6625 PUSH32(esp, esi); /* 0x3607FE7C: push esi */ 6626 ecx = edi; /* 0x3607FE7D: mov ecx, edi */ 6627 RECOMP_ICALL(ebx); /* 0x3607FE7F: call ebx */ 6628 RECOMP_FLAGS_IN(); 6629 ecx = edi; /* 0x3607FE81: mov ecx, edi */ 6630 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3607FE83: call dword ptr [0x3616fadc] */ 6631 RECOMP_FLAGS_IN(); 6632 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 6633 _cf = (eax) != 0; 6634 eax = (uint32_t)(-(int32_t)eax); /* 0x3607FE89: neg eax */ 6635 _flag_k = FK_CMP; 6636 edi = POP32_VAL(esp); /* 0x3607FE8B: pop edi */ 6637 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3607FE8C: sbb eax, eax */ 6638 eax = _sc ? 0xFFFFFFFFu : 0; 6639 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 6640 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 6641 esi = POP32_VAL(esp); /* 0x3607FE8E: pop esi */ 6642 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 6643 eax = eax + 1; /* 0x3607FE8F: inc eax */ 6644 _flag_k = FK_INC; 6645 ebx = POP32_VAL(esp); /* 0x3607FE90: pop ebx */ 6646 ebp = POP32_VAL(esp); /* 0x3607FE91: pop ebp */ 6647 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FE92: ret 4 */ 6648 RECOMP_REGS_OUT(); 6649 } 6650 6651 void sub_3607FEA0(void) { 6652 int _fpu_cmp = 0; 6653 uint32_t _cf = 0; 6654 int _df = 1; 6655 uint32_t _flag_k = FK_NONE; 6656 uint32_t _flag_a = 0, _flag_b = 0; 6657 uint32_t _itail_tgt = 0; 6658 RECOMP_REGS_LOCALS 6659 RECOMP_ENTER(0x3607FEA0u); 6660 6661 L_3607FEA0: 6662 PUSH32(esp, ebp); /* 0x3607FEA0: push ebp */ 6663 ebp = esp; /* 0x3607FEA1: mov ebp, esp */ 6664 PUSH32(esp, ebx); /* 0x3607FEA3: push ebx */ 6665 ebx = MEM32(0x3616FAEC); /* 0x3607FEA4: mov ebx, dword ptr [0x3616faec] */ 6666 PUSH32(esp, esi); /* 0x3607FEAA: push esi */ 6667 esi = ecx; /* 0x3607FEAB: mov esi, ecx */ 6668 eax = MEM32(esi + 0x20); /* 0x3607FEAD: mov eax, dword ptr [esi + 0x20] */ 6669 PUSH32(esp, edi); /* 0x3607FEB0: push edi */ 6670 edi = MEM32(ebp + 0x8); /* 0x3607FEB1: mov edi, dword ptr [ebp + 8] */ 6671 PUSH32(esp, eax); /* 0x3607FEB4: push eax */ 6672 ecx = edi; /* 0x3607FEB5: mov ecx, edi */ 6673 RECOMP_ICALL(ebx); /* 0x3607FEB7: call ebx */ 6674 RECOMP_FLAGS_IN(); 6675 ecx = MEM32(esi + 0x24); /* 0x3607FEB9: mov ecx, dword ptr [esi + 0x24] */ 6676 PUSH32(esp, ecx); /* 0x3607FEBC: push ecx */ 6677 ecx = edi; /* 0x3607FEBD: mov ecx, edi */ 6678 RECOMP_ICALL(ebx); /* 0x3607FEBF: call ebx */ 6679 RECOMP_FLAGS_IN(); 6680 edx = MEM32(esi + 0x28); /* 0x3607FEC1: mov edx, dword ptr [esi + 0x28] */ 6681 PUSH32(esp, edx); /* 0x3607FEC4: push edx */ 6682 ecx = edi; /* 0x3607FEC5: mov ecx, edi */ 6683 RECOMP_ICALL(ebx); /* 0x3607FEC7: call ebx */ 6684 RECOMP_FLAGS_IN(); 6685 eax = MEM32(esi + 0x2C); /* 0x3607FEC9: mov eax, dword ptr [esi + 0x2c] */ 6686 PUSH32(esp, eax); /* 0x3607FECC: push eax */ 6687 ecx = edi; /* 0x3607FECD: mov ecx, edi */ 6688 RECOMP_ICALL(ebx); /* 0x3607FECF: call ebx */ 6689 RECOMP_FLAGS_IN(); 6690 ecx = MEM32(esi + 0x30); /* 0x3607FED1: mov ecx, dword ptr [esi + 0x30] */ 6691 PUSH32(esp, ecx); /* 0x3607FED4: push ecx */ 6692 ecx = edi; /* 0x3607FED5: mov ecx, edi */ 6693 RECOMP_ICALL(ebx); /* 0x3607FED7: call ebx */ 6694 RECOMP_FLAGS_IN(); 6695 edx = MEM32(esi + 0x34); /* 0x3607FED9: mov edx, dword ptr [esi + 0x34] */ 6696 PUSH32(esp, edx); /* 0x3607FEDC: push edx */ 6697 ecx = edi; /* 0x3607FEDD: mov ecx, edi */ 6698 RECOMP_ICALL(ebx); /* 0x3607FEDF: call ebx */ 6699 RECOMP_FLAGS_IN(); 6700 eax = MEM32(esi + 0x38); /* 0x3607FEE1: mov eax, dword ptr [esi + 0x38] */ 6701 PUSH32(esp, eax); /* 0x3607FEE4: push eax */ 6702 ecx = edi; /* 0x3607FEE5: mov ecx, edi */ 6703 RECOMP_ICALL(ebx); /* 0x3607FEE7: call ebx */ 6704 RECOMP_FLAGS_IN(); 6705 ecx = MEM32(esi + 0x3C); /* 0x3607FEE9: mov ecx, dword ptr [esi + 0x3c] */ 6706 PUSH32(esp, ecx); /* 0x3607FEEC: push ecx */ 6707 ecx = edi; /* 0x3607FEED: mov ecx, edi */ 6708 RECOMP_ICALL(ebx); /* 0x3607FEEF: call ebx */ 6709 RECOMP_FLAGS_IN(); 6710 edi = POP32_VAL(esp); /* 0x3607FEF1: pop edi */ 6711 esi = POP32_VAL(esp); /* 0x3607FEF2: pop esi */ 6712 ebx = POP32_VAL(esp); /* 0x3607FEF3: pop ebx */ 6713 ebp = POP32_VAL(esp); /* 0x3607FEF4: pop ebp */ 6714 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3607FEF5: ret 4 */ 6715 RECOMP_REGS_OUT(); 6716 } 6717 6718 void sub_3607FF00(void) { 6719 int _fpu_cmp = 0; 6720 uint32_t _cf = 0; 6721 int _df = 1; 6722 uint32_t _flag_k = FK_NONE; 6723 uint32_t _flag_a = 0, _flag_b = 0; 6724 uint32_t _itail_tgt = 0; 6725 RECOMP_REGS_LOCALS 6726 RECOMP_ENTER(0x3607FF00u); 6727 6728 L_3607FF00: 6729 PUSH32(esp, ebp); /* 0x3607FF00: push ebp */ 6730 ebp = esp; /* 0x3607FF01: mov ebp, esp */ 6731 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x11Cu); 6732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6733 esp = esp - 0x11Cu; /* 0x3607FF03: sub esp, 0x11c */ 6734 _flag_k = FK_CMP; 6735 PUSH32(esp, ebx); /* 0x3607FF09: push ebx */ 6736 PUSH32(esp, esi); /* 0x3607FF0A: push esi */ 6737 PUSH32(esp, edi); /* 0x3607FF0B: push edi */ 6738 edi = ecx; /* 0x3607FF0C: mov edi, ecx */ 6739 eax = edi + 0x4; /* 0x3607FF0E: lea eax, [edi + 4] */ 6740 PUSH32(esp, eax); /* 0x3607FF11: push eax */ 6741 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x3607FF12: call dword ptr [0x3616ff70] */ 6742 RECOMP_FLAGS_IN(); 6743 PUSH32(esp, 0); /* 0x3607FF18: push 0 */ 6744 PUSH32(esp, 0x361B2CD8u); /* 0x3607FF1A: push 0x361b2cd8 */ 6745 PUSH32(esp, 0x361B2CC0u); /* 0x3607FF1F: push 0x361b2cc0 */ 6746 PUSH32(esp, 0); /* 0x3607FF24: push 0 */ 6747 PUSH32(esp, eax); /* 0x3607FF26: push eax */ 6748 RECOMP_ICALL(0x3615FD86u); /* 0x3607FF27: call 0x3615fd86 */ /* not lifted */ 6749 RECOMP_FLAGS_IN(); 6750 ebx = eax; /* 0x3607FF2C: mov ebx, eax */ 6751 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 6752 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6753 esp = esp + 0x18u; /* 0x3607FF2E: add esp, 0x18 */ 6754 _flag_k = FK_ADD; 6755 /* test ebx, ebx */ /* 0x3607FF31: test ebx, ebx */ 6756 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 6757 _cf = 0; 6758 _flag_k = FK_TEST; 6759 if (TEST_Z(_flag_a, _flag_b)) goto L_36080148; /* 0x3607FF33: je 0x36080148 */ 6760 L_3607FF39: 6761 eax = MEM32(edi + 0x20); /* 0x3607FF39: mov eax, dword ptr [edi + 0x20] */ 6762 edx = MEM32(ebx + 0xE4); /* 0x3607FF3C: mov edx, dword ptr [ebx + 0xe4] */ 6763 esi = ebx + 0xE4; /* 0x3607FF42: lea esi, [ebx + 0xe4] */ 6764 PUSH32(esp, eax); /* 0x3607FF48: push eax */ 6765 PUSH32(esp, 0x36u); /* 0x3607FF49: push 0x36 */ 6766 ecx = esi; /* 0x3607FF4B: mov ecx, esi */ 6767 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607FF4D: call dword ptr [edx + 8] */ 6768 RECOMP_FLAGS_IN(); 6769 /* test MEM32(ebx + 0x11C), 0x00400000u */ /* 0x3607FF50: test dword ptr [ebx + 0x11c], 0x400000 */ 6770 _flag_a = (uint32_t)(MEM32(ebx + 0x11C)); _flag_b = (uint32_t)(0x00400000u); 6771 _cf = 0; 6772 _flag_k = FK_TEST; 6773 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607FF69; /* 0x3607FF5A: jne 0x3607ff69 */ 6774 L_3607FF5C: 6775 eax = MEM32(edi + 0x28); /* 0x3607FF5C: mov eax, dword ptr [edi + 0x28] */ 6776 edx = MEM32(esi); /* 0x3607FF5F: mov edx, dword ptr [esi] */ 6777 PUSH32(esp, eax); /* 0x3607FF61: push eax */ 6778 PUSH32(esp, 0x34u); /* 0x3607FF62: push 0x34 */ 6779 ecx = esi; /* 0x3607FF64: mov ecx, esi */ 6780 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607FF66: call dword ptr [edx + 8] */ 6781 RECOMP_FLAGS_IN(); 6782 L_3607FF69: 6783 eax = MEM32(edi + 0x24); /* 0x3607FF69: mov eax, dword ptr [edi + 0x24] */ 6784 edx = MEM32(esi); /* 0x3607FF6C: mov edx, dword ptr [esi] */ 6785 PUSH32(esp, eax); /* 0x3607FF6E: push eax */ 6786 PUSH32(esp, 0x35u); /* 0x3607FF6F: push 0x35 */ 6787 ecx = esi; /* 0x3607FF71: mov ecx, esi */ 6788 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607FF73: call dword ptr [edx + 8] */ 6789 RECOMP_FLAGS_IN(); 6790 eax = MEM32(edi + 0x2C); /* 0x3607FF76: mov eax, dword ptr [edi + 0x2c] */ 6791 edx = MEM32(esi); /* 0x3607FF79: mov edx, dword ptr [esi] */ 6792 PUSH32(esp, eax); /* 0x3607FF7B: push eax */ 6793 PUSH32(esp, 0x39u); /* 0x3607FF7C: push 0x39 */ 6794 ecx = esi; /* 0x3607FF7E: mov ecx, esi */ 6795 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607FF80: call dword ptr [edx + 8] */ 6796 RECOMP_FLAGS_IN(); 6797 eax = MEM32(edi + 0x30); /* 0x3607FF83: mov eax, dword ptr [edi + 0x30] */ 6798 edx = MEM32(esi); /* 0x3607FF86: mov edx, dword ptr [esi] */ 6799 PUSH32(esp, eax); /* 0x3607FF88: push eax */ 6800 PUSH32(esp, 0x15Eu); /* 0x3607FF89: push 0x15e */ 6801 ecx = esi; /* 0x3607FF8E: mov ecx, esi */ 6802 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607FF90: call dword ptr [edx + 8] */ 6803 RECOMP_FLAGS_IN(); 6804 eax = MEM32(edi + 0x38); /* 0x3607FF93: mov eax, dword ptr [edi + 0x38] */ 6805 edx = MEM32(esi); /* 0x3607FF96: mov edx, dword ptr [esi] */ 6806 PUSH32(esp, eax); /* 0x3607FF98: push eax */ 6807 PUSH32(esp, 0x113u); /* 0x3607FF99: push 0x113 */ 6808 ecx = esi; /* 0x3607FF9E: mov ecx, esi */ 6809 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3607FFA0: call dword ptr [edx + 8] */ 6810 RECOMP_FLAGS_IN(); 6811 SET_LO8(eax, MEM8(ebx + 0x128)); /* 0x3607FFA3: mov al, byte ptr [ebx + 0x128] */ 6812 /* test LO8(eax), LO8(eax) */ /* 0x3607FFA9: test al, al */ 6813 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 6814 _cf = 0; 6815 _flag_k = FK_NARROW(FK_TEST, 24); 6816 if (TEST_Z(_flag_a, _flag_b)) goto L_36080148; /* 0x3607FFAB: je 0x36080148 */ 6817 L_3607FFB1: 6818 ecx = MEM32(ebx + 0x154); /* 0x3607FFB1: mov ecx, dword ptr [ebx + 0x154] */ 6819 RECOMP_ICALL(0x360744C0u); /* 0x3607FFB7: call 0x360744c0 */ /* not lifted */ 6820 RECOMP_FLAGS_IN(); 6821 /* test MEM32(ebx + 0x11C), 0x00400000u */ /* 0x3607FFBC: test dword ptr [ebx + 0x11c], 0x400000 */ 6822 _flag_a = (uint32_t)(MEM32(ebx + 0x11C)); _flag_b = (uint32_t)(0x00400000u); 6823 _cf = 0; 6824 _flag_k = FK_TEST; 6825 if (TEST_NZ(_flag_a, _flag_b)) goto L_3607FFE3; /* 0x3607FFC6: jne 0x3607ffe3 */ 6826 L_3607FFC8: 6827 ecx = MEM32(edi + 0x3C); /* 0x3607FFC8: mov ecx, dword ptr [edi + 0x3c] */ 6828 PUSH32(esp, 0); /* 0x3607FFCB: push 0 */ 6829 PUSH32(esp, 0); /* 0x3607FFCD: push 0 */ 6830 PUSH32(esp, 0); /* 0x3607FFCF: push 0 */ 6831 PUSH32(esp, 0); /* 0x3607FFD1: push 0 */ 6832 PUSH32(esp, ecx); /* 0x3607FFD3: push ecx */ 6833 PUSH32(esp, ebx); /* 0x3607FFD4: push ebx */ 6834 PUSH32(esp, 0x23u); /* 0x3607FFD5: push 0x23 */ 6835 RECOMP_ICALL(0x3601C590u); /* 0x3607FFD7: call 0x3601c590 */ /* not lifted */ 6836 RECOMP_FLAGS_IN(); 6837 ecx = eax; /* 0x3607FFDC: mov ecx, eax */ 6838 RECOMP_ICALL(0x3601D0B0u); /* 0x3607FFDE: call 0x3601d0b0 */ /* not lifted */ 6839 RECOMP_FLAGS_IN(); 6840 L_3607FFE3: 6841 edx = MEM32(edi + 0x28); /* 0x3607FFE3: mov edx, dword ptr [edi + 0x28] */ 6842 eax = MEM32(edi + 0x24); /* 0x3607FFE6: mov eax, dword ptr [edi + 0x24] */ 6843 ecx = MEM32(edi + 0x20); /* 0x3607FFE9: mov ecx, dword ptr [edi + 0x20] */ 6844 PUSH32(esp, edx); /* 0x3607FFEC: push edx */ 6845 PUSH32(esp, eax); /* 0x3607FFED: push eax */ 6846 PUSH32(esp, ecx); /* 0x3607FFEE: push ecx */ 6847 RECOMP_ICALL(0x3601C590u); /* 0x3607FFEF: call 0x3601c590 */ /* not lifted */ 6848 RECOMP_FLAGS_IN(); 6849 ecx = eax; /* 0x3607FFF4: mov ecx, eax */ 6850 RECOMP_ICALL(0x3601CE10u); /* 0x3607FFF6: call 0x3601ce10 */ /* not lifted */ 6851 RECOMP_FLAGS_IN(); 6852 edx = MEM32(edi + 0x20); /* 0x3607FFFB: mov edx, dword ptr [edi + 0x20] */ 6853 PUSH32(esp, edx); /* 0x3607FFFE: push edx */ 6854 eax = ebp + (-0x11C); /* 0x3607FFFF: lea eax, [ebp - 0x11c] */ 6855 PUSH32(esp, 0x361C4FE0u); /* 0x36080005: push 0x361c4fe0 */ 6856 PUSH32(esp, eax); /* 0x3608000A: push eax */ 6857 RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x3608000B: call dword ptr [0x3616f25c] */ 6858 RECOMP_FLAGS_IN(); 6859 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6860 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6861 esp = esp + 0xCu; /* 0x36080011: add esp, 0xc */ 6862 _flag_k = FK_ADD; 6863 ecx = ebp + (-0x11C); /* 0x36080014: lea ecx, [ebp - 0x11c] */ 6864 PUSH32(esp, 0); /* 0x3608001A: push 0 */ 6865 PUSH32(esp, ecx); /* 0x3608001C: push ecx */ 6866 RECOMP_ICALL(0x3601C590u); /* 0x3608001D: call 0x3601c590 */ /* not lifted */ 6867 RECOMP_FLAGS_IN(); 6868 ecx = eax; /* 0x36080022: mov ecx, eax */ 6869 RECOMP_ICALL(0x3601C8C0u); /* 0x36080024: call 0x3601c8c0 */ /* not lifted */ 6870 RECOMP_FLAGS_IN(); 6871 /* cmp MEM32(edi + 0x20), 4 */ /* 0x36080029: cmp dword ptr [edi + 0x20], 4 */ 6872 _flag_a = (uint32_t)(MEM32(edi + 0x20)); _flag_b = (uint32_t)(4); 6873 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6874 _flag_k = FK_CMP; 6875 if (CMP_GE(_flag_a, _flag_b)) goto L_36080042; /* 0x3608002D: jge 0x36080042 */ 6876 L_3608002F: 6877 PUSH32(esp, 0); /* 0x3608002F: push 0 */ 6878 PUSH32(esp, 0x361C4F6Cu); /* 0x36080031: push 0x361c4f6c */ 6879 RECOMP_ICALL(0x3601C590u); /* 0x36080036: call 0x3601c590 */ /* not lifted */ 6880 RECOMP_FLAGS_IN(); 6881 ecx = eax; /* 0x3608003B: mov ecx, eax */ 6882 RECOMP_ICALL(0x3601C8C0u); /* 0x3608003D: call 0x3601c8c0 */ /* not lifted */ 6883 RECOMP_FLAGS_IN(); 6884 L_36080042: 6885 eax = MEM32(edi + 0x34); /* 0x36080042: mov eax, dword ptr [edi + 0x34] */ 6886 /* test eax, eax */ /* 0x36080045: test eax, eax */ 6887 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6888 _cf = 0; 6889 _flag_k = FK_TEST; 6890 if (TEST_LE(_flag_a, _flag_b)) goto L_360800C0; /* 0x36080047: jle 0x360800c0 */ 6891 L_36080049: 6892 edx = MEM32(0x3616FF74); /* 0x36080049: mov edx, dword ptr [0x3616ff74] */ 6893 ecx = MEM32(edx); /* 0x3608004F: mov ecx, dword ptr [edx] */ 6894 edx = MEM32(esi); /* 0x36080051: mov edx, dword ptr [esi] */ 6895 PUSH32(esp, eax); /* 0x36080053: push eax */ 6896 PUSH32(esp, 2); /* 0x36080054: push 2 */ 6897 MEM32(ebp + (-0x4)) = ecx; /* 0x36080056: mov dword ptr [ebp - 4], ecx */ 6898 PUSH32(esp, 0x3Cu); /* 0x36080059: push 0x3c */ 6899 ecx = esi; /* 0x3608005B: mov ecx, esi */ 6900 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3608005D: call dword ptr [edx + 4] */ 6901 RECOMP_FLAGS_IN(); 6902 PUSH32(esp, eax); /* 0x36080060: push eax */ 6903 eax = MEM32(ebp + (-0x4)); /* 0x36080061: mov eax, dword ptr [ebp - 4] */ 6904 PUSH32(esp, 0); /* 0x36080064: push 0 */ 6905 PUSH32(esp, 0x361B5A48u); /* 0x36080066: push 0x361b5a48 */ 6906 PUSH32(esp, 0x361B2D18u); /* 0x3608006B: push 0x361b2d18 */ 6907 PUSH32(esp, 0); /* 0x36080070: push 0 */ 6908 PUSH32(esp, eax); /* 0x36080072: push eax */ 6909 RECOMP_ICALL(0x3615FD86u); /* 0x36080073: call 0x3615fd86 */ /* not lifted */ 6910 RECOMP_FLAGS_IN(); 6911 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 6912 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6913 esp = esp + 0x14u; /* 0x36080078: add esp, 0x14 */ 6914 _flag_k = FK_ADD; 6915 ecx = eax; /* 0x3608007B: mov ecx, eax */ 6916 RECOMP_ICALL(0x36020C60u); /* 0x3608007D: call 0x36020c60 */ /* not lifted */ 6917 RECOMP_FLAGS_IN(); 6918 edx = MEM32(esi); /* 0x36080082: mov edx, dword ptr [esi] */ 6919 MEM32(ebp + (-0x4)) = eax; /* 0x36080084: mov dword ptr [ebp - 4], eax */ 6920 eax = MEM32(edi + 0x34); /* 0x36080087: mov eax, dword ptr [edi + 0x34] */ 6921 PUSH32(esp, eax); /* 0x3608008A: push eax */ 6922 PUSH32(esp, 0x25u); /* 0x3608008B: push 0x25 */ 6923 ecx = esi; /* 0x3608008D: mov ecx, esi */ 6924 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3608008F: call dword ptr [edx + 8] */ 6925 RECOMP_FLAGS_IN(); 6926 ecx = MEM32(ebp + (-0x4)); /* 0x36080092: mov ecx, dword ptr [ebp - 4] */ 6927 PUSH32(esp, ecx); /* 0x36080095: push ecx */ 6928 edx = ebp + (-0x11C); /* 0x36080096: lea edx, [ebp - 0x11c] */ 6929 PUSH32(esp, 0x361C4F34u); /* 0x3608009C: push 0x361c4f34 */ 6930 PUSH32(esp, edx); /* 0x360800A1: push edx */ 6931 RECOMP_ICALL(MEM32(0x3616F25C)); /* 0x360800A2: call dword ptr [0x3616f25c] */ 6932 RECOMP_FLAGS_IN(); 6933 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6934 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6935 esp = esp + 0xCu; /* 0x360800A8: add esp, 0xc */ 6936 _flag_k = FK_ADD; 6937 eax = ebp + (-0x11C); /* 0x360800AB: lea eax, [ebp - 0x11c] */ 6938 PUSH32(esp, 0); /* 0x360800B1: push 0 */ 6939 PUSH32(esp, eax); /* 0x360800B3: push eax */ 6940 RECOMP_ICALL(0x3601C590u); /* 0x360800B4: call 0x3601c590 */ /* not lifted */ 6941 RECOMP_FLAGS_IN(); 6942 ecx = eax; /* 0x360800B9: mov ecx, eax */ 6943 RECOMP_ICALL(0x3601C8C0u); /* 0x360800BB: call 0x3601c8c0 */ /* not lifted */ 6944 RECOMP_FLAGS_IN(); 6945 L_360800C0: 6946 PUSH32(esp, 1); /* 0x360800C0: push 1 */ 6947 PUSH32(esp, 6); /* 0x360800C2: push 6 */ 6948 PUSH32(esp, ebx); /* 0x360800C4: push ebx */ 6949 RECOMP_ICALL(0x360185F0u); /* 0x360800C5: call 0x360185f0 */ /* not lifted */ 6950 RECOMP_FLAGS_IN(); 6951 ecx = MEM32(ebx + 0x174); /* 0x360800CA: mov ecx, dword ptr [ebx + 0x174] */ 6952 edx = esp; /* 0x360800D0: mov edx, esp */ 6953 PUSH32(esp, 1); /* 0x360800D2: push 1 */ 6954 PUSH32(esp, 0x64u); /* 0x360800D4: push 0x64 */ 6955 MEM32(ecx + 0xC0) = eax; /* 0x360800D6: mov dword ptr [ecx + 0xc0], eax */ 6956 PUSH32(esp, 0); /* 0x360800DC: push 0 */ 6957 PUSH32(esp, 0); /* 0x360800DE: push 0 */ 6958 MEM32(ebp + (-0x10)) = 0; /* 0x360800E0: mov dword ptr [ebp - 0x10], 0 */ 6959 eax = MEM32(ebp + (-0x10)); /* 0x360800E7: mov eax, dword ptr [ebp - 0x10] */ 6960 MEM32(edx) = eax; /* 0x360800EA: mov dword ptr [edx], eax */ 6961 PUSH32(esp, 0x3F800000u); /* 0x360800EC: push 0x3f800000 */ 6962 MEM32(ebp + (-0xC)) = 0; /* 0x360800F1: mov dword ptr [ebp - 0xc], 0 */ 6963 ecx = MEM32(ebp + (-0xC)); /* 0x360800F8: mov ecx, dword ptr [ebp - 0xc] */ 6964 MEM32(edx + 0x4) = ecx; /* 0x360800FB: mov dword ptr [edx + 4], ecx */ 6965 PUSH32(esp, 0); /* 0x360800FE: push 0 */ 6966 MEM32(ebp + (-0x8)) = 0; /* 0x36080100: mov dword ptr [ebp - 8], 0 */ 6967 eax = MEM32(ebp + (-0x8)); /* 0x36080107: mov eax, dword ptr [ebp - 8] */ 6968 MEM32(edx + 0x8) = eax; /* 0x3608010A: mov dword ptr [edx + 8], eax */ 6969 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6971 esp = esp - 0xCu; /* 0x3608010D: sub esp, 0xc */ 6972 _flag_k = FK_CMP; 6973 MEM32(ebp + (-0x1C)) = 0; /* 0x36080110: mov dword ptr [ebp - 0x1c], 0 */ 6974 edx = MEM32(ebp + (-0x1C)); /* 0x36080117: mov edx, dword ptr [ebp - 0x1c] */ 6975 ecx = esp; /* 0x3608011A: mov ecx, esp */ 6976 MEM32(ecx) = edx; /* 0x3608011C: mov dword ptr [ecx], edx */ 6977 MEM32(ebp + (-0x18)) = 0; /* 0x3608011E: mov dword ptr [ebp - 0x18], 0 */ 6978 eax = MEM32(ebp + (-0x18)); /* 0x36080125: mov eax, dword ptr [ebp - 0x18] */ 6979 MEM32(ecx + 0x4) = eax; /* 0x36080128: mov dword ptr [ecx + 4], eax */ 6980 eax = MEM32(edi + 0x40); /* 0x3608012B: mov eax, dword ptr [edi + 0x40] */ 6981 MEM32(ebp + (-0x14)) = 0; /* 0x3608012E: mov dword ptr [ebp - 0x14], 0 */ 6982 edx = MEM32(ebp + (-0x14)); /* 0x36080135: mov edx, dword ptr [ebp - 0x14] */ 6983 PUSH32(esp, eax); /* 0x36080138: push eax */ 6984 MEM32(ecx + 0x8) = edx; /* 0x36080139: mov dword ptr [ecx + 8], edx */ 6985 RECOMP_ICALL(0x3601C590u); /* 0x3608013C: call 0x3601c590 */ /* not lifted */ 6986 RECOMP_FLAGS_IN(); 6987 ecx = eax; /* 0x36080141: mov ecx, eax */ 6988 RECOMP_ICALL(0x3601CBF0u); /* 0x36080143: call 0x3601cbf0 */ /* not lifted */ 6989 RECOMP_FLAGS_IN(); 6990 L_36080148: 6991 edi = POP32_VAL(esp); /* 0x36080148: pop edi */ 6992 esi = POP32_VAL(esp); /* 0x36080149: pop esi */ 6993 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6994 eax = 0; /* 0x3608014A: xor eax, eax */ 6995 _cf = 0; 6996 _flag_k = FK_TEST; 6997 ebx = POP32_VAL(esp); /* 0x3608014C: pop ebx */ 6998 esp = ebp; /* 0x3608014D: mov esp, ebp */ 6999 ebp = POP32_VAL(esp); /* 0x3608014F: pop ebp */ 7000 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080150: ret */ 7001 RECOMP_REGS_OUT(); 7002 } 7003 7004 void sub_36080125(void) { 7005 int _fpu_cmp = 0; 7006 uint32_t _cf = 0; 7007 int _df = 1; 7008 uint32_t _flag_k = FK_NONE; 7009 uint32_t _flag_a = 0, _flag_b = 0; 7010 uint32_t _itail_tgt = 0; 7011 RECOMP_REGS_LOCALS 7012 RECOMP_ENTER(0x36080125u); 7013 7014 L_36080125: 7015 eax = MEM32(ebp + (-0x18)); /* 0x36080125: mov eax, dword ptr [ebp - 0x18] */ 7016 MEM32(ecx + 0x4) = eax; /* 0x36080128: mov dword ptr [ecx + 4], eax */ 7017 eax = MEM32(edi + 0x40); /* 0x3608012B: mov eax, dword ptr [edi + 0x40] */ 7018 MEM32(ebp + (-0x14)) = 0; /* 0x3608012E: mov dword ptr [ebp - 0x14], 0 */ 7019 edx = MEM32(ebp + (-0x14)); /* 0x36080135: mov edx, dword ptr [ebp - 0x14] */ 7020 PUSH32(esp, eax); /* 0x36080138: push eax */ 7021 MEM32(ecx + 0x8) = edx; /* 0x36080139: mov dword ptr [ecx + 8], edx */ 7022 RECOMP_ICALL(0x3601C590u); /* 0x3608013C: call 0x3601c590 */ /* not lifted */ 7023 RECOMP_FLAGS_IN(); 7024 ecx = eax; /* 0x36080141: mov ecx, eax */ 7025 RECOMP_ICALL(0x3601CBF0u); /* 0x36080143: call 0x3601cbf0 */ /* not lifted */ 7026 RECOMP_FLAGS_IN(); 7027 edi = POP32_VAL(esp); /* 0x36080148: pop edi */ 7028 esi = POP32_VAL(esp); /* 0x36080149: pop esi */ 7029 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7030 eax = 0; /* 0x3608014A: xor eax, eax */ 7031 _cf = 0; 7032 _flag_k = FK_TEST; 7033 ebx = POP32_VAL(esp); /* 0x3608014C: pop ebx */ 7034 esp = ebp; /* 0x3608014D: mov esp, ebp */ 7035 ebp = POP32_VAL(esp); /* 0x3608014F: pop ebp */ 7036 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080150: ret */ 7037 RECOMP_REGS_OUT(); 7038 } 7039 7040 void sub_36080160(void) { 7041 int _fpu_cmp = 0; 7042 uint32_t _cf = 0; 7043 int _df = 1; 7044 uint32_t _flag_k = FK_NONE; 7045 uint32_t _flag_a = 0, _flag_b = 0; 7046 uint32_t _itail_tgt = 0; 7047 RECOMP_REGS_LOCALS 7048 RECOMP_ENTER(0x36080160u); 7049 7050 L_36080160: 7051 PUSH32(esp, ebp); /* 0x36080160: push ebp */ 7052 ebp = esp; /* 0x36080161: mov ebp, esp */ 7053 PUSH32(esp, ecx); /* 0x36080163: push ecx */ 7054 PUSH32(esp, esi); /* 0x36080164: push esi */ 7055 esi = ecx; /* 0x36080165: mov esi, ecx */ 7056 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36080167: call dword ptr [0x3616ffd0] */ 7057 RECOMP_FLAGS_IN(); 7058 SET_LO8(eax, MEM8(ebp + (-0x1))); /* 0x3608016D: mov al, byte ptr [ebp - 1] */ 7059 MEM8(esi + 0x20) = (uint8_t)(LO8(eax)); /* 0x36080170: mov byte ptr [esi + 0x20], al */ 7060 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7061 eax = 0; /* 0x36080173: xor eax, eax */ 7062 _cf = 0; 7063 _flag_k = FK_TEST; 7064 MEM32(esi + 0x24) = eax; /* 0x36080175: mov dword ptr [esi + 0x24], eax */ 7065 MEM32(esi + 0x28) = eax; /* 0x36080178: mov dword ptr [esi + 0x28], eax */ 7066 MEM32(esi + 0x2C) = eax; /* 0x3608017B: mov dword ptr [esi + 0x2c], eax */ 7067 MEM32(esi) = 0x3617181Cu; /* 0x3608017E: mov dword ptr [esi], 0x3617181c */ 7068 eax = esi; /* 0x36080184: mov eax, esi */ 7069 esi = POP32_VAL(esp); /* 0x36080186: pop esi */ 7070 esp = ebp; /* 0x36080187: mov esp, ebp */ 7071 ebp = POP32_VAL(esp); /* 0x36080189: pop ebp */ 7072 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608018A: ret */ 7073 RECOMP_REGS_OUT(); 7074 } 7075 7076 void sub_36080190(void) { 7077 int _fpu_cmp = 0; 7078 uint32_t _cf = 0; 7079 int _df = 1; 7080 uint32_t _flag_k = FK_NONE; 7081 uint32_t _flag_a = 0, _flag_b = 0; 7082 uint32_t _itail_tgt = 0; 7083 RECOMP_REGS_LOCALS 7084 RECOMP_ENTER(0x36080190u); 7085 7086 L_36080190: 7087 PUSH32(esp, ebp); /* 0x36080190: push ebp */ 7088 ebp = esp; /* 0x36080191: mov ebp, esp */ 7089 PUSH32(esp, esi); /* 0x36080193: push esi */ 7090 esi = ecx; /* 0x36080194: mov esi, ecx */ 7091 RECOMP_ICALL(0x360801C0u); /* 0x36080196: call 0x360801c0 */ /* not lifted */ 7092 RECOMP_FLAGS_IN(); 7093 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608019B: test byte ptr [ebp + 8], 1 */ 7094 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7095 _cf = 0; 7096 _flag_k = FK_NARROW(FK_TEST, 24); 7097 if (TEST_Z(_flag_a, _flag_b)) goto L_360801AA; /* 0x3608019F: je 0x360801aa */ 7098 L_360801A1: 7099 PUSH32(esp, esi); /* 0x360801A1: push esi */ 7100 RECOMP_ICALL(0x3615FCC4u); /* 0x360801A2: call 0x3615fcc4 */ /* not lifted */ 7101 RECOMP_FLAGS_IN(); 7102 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7103 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7104 esp = esp + 4; /* 0x360801A7: add esp, 4 */ 7105 _flag_k = FK_ADD; 7106 L_360801AA: 7107 eax = esi; /* 0x360801AA: mov eax, esi */ 7108 esi = POP32_VAL(esp); /* 0x360801AC: pop esi */ 7109 ebp = POP32_VAL(esp); /* 0x360801AD: pop ebp */ 7110 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360801AE: ret 4 */ 7111 RECOMP_REGS_OUT(); 7112 } 7113 7114 void sub_360801C0(void) { 7115 int _fpu_cmp = 0; 7116 uint32_t _cf = 0; 7117 int _df = 1; 7118 uint32_t _flag_k = FK_NONE; 7119 uint32_t _flag_a = 0, _flag_b = 0; 7120 uint32_t _itail_tgt = 0; 7121 RECOMP_REGS_LOCALS 7122 RECOMP_ENTER(0x360801C0u); 7123 7124 L_360801C0: 7125 PUSH32(esp, esi); /* 0x360801C0: push esi */ 7126 esi = ecx; /* 0x360801C1: mov esi, ecx */ 7127 MEM32(esi) = 0x3617181Cu; /* 0x360801C3: mov dword ptr [esi], 0x3617181c */ 7128 eax = MEM32(esi + 0x24); /* 0x360801C9: mov eax, dword ptr [esi + 0x24] */ 7129 /* test eax, eax */ /* 0x360801CC: test eax, eax */ 7130 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7131 _cf = 0; 7132 _flag_k = FK_TEST; 7133 if (TEST_Z(_flag_a, _flag_b)) goto L_360801EC; /* 0x360801CE: je 0x360801ec */ 7134 L_360801D0: 7135 ecx = eax + (-0x1); /* 0x360801D0: lea ecx, [eax - 1] */ 7136 SET_LO8(eax, MEM8(ecx)); /* 0x360801D3: mov al, byte ptr [ecx] */ 7137 /* test LO8(eax), LO8(eax) */ /* 0x360801D5: test al, al */ 7138 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7139 _cf = 0; 7140 _flag_k = FK_NARROW(FK_TEST, 24); 7141 if (TEST_Z(_flag_a, _flag_b)) goto L_360801E3; /* 0x360801D7: je 0x360801e3 */ 7142 L_360801D9: 7143 /* cmp LO8(eax), 0xFFu */ /* 0x360801D9: cmp al, 0xff */ 7144 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 7145 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7146 _flag_k = FK_NARROW(FK_CMP, 24); 7147 if (CMP_EQ(_flag_a, _flag_b)) goto L_360801E3; /* 0x360801DB: je 0x360801e3 */ 7148 L_360801DD: 7149 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 7150 SET_LO8(eax, LO8(eax) - 1); /* 0x360801DD: dec al */ 7151 _flag_k = FK_NARROW(FK_DEC, 24); 7152 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360801DF: mov byte ptr [ecx], al */ 7153 goto L_360801EC; /* 0x360801E1: jmp 0x360801ec */ 7154 L_360801E3: 7155 PUSH32(esp, ecx); /* 0x360801E3: push ecx */ 7156 RECOMP_ICALL(0x3615FCC4u); /* 0x360801E4: call 0x3615fcc4 */ /* not lifted */ 7157 RECOMP_FLAGS_IN(); 7158 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7159 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7160 esp = esp + 4; /* 0x360801E9: add esp, 4 */ 7161 _flag_k = FK_ADD; 7162 L_360801EC: 7163 ecx = esi; /* 0x360801EC: mov ecx, esi */ 7164 MEM32(esi + 0x24) = 0; /* 0x360801EE: mov dword ptr [esi + 0x24], 0 */ 7165 MEM32(esi + 0x28) = 0; /* 0x360801F5: mov dword ptr [esi + 0x28], 0 */ 7166 MEM32(esi + 0x2C) = 0; /* 0x360801FC: mov dword ptr [esi + 0x2c], 0 */ 7167 RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x36080203: call dword ptr [0x3616ffd4] */ 7168 RECOMP_FLAGS_IN(); 7169 esi = POP32_VAL(esp); /* 0x36080209: pop esi */ 7170 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608020A: ret */ 7171 RECOMP_REGS_OUT(); 7172 } 7173 7174 void sub_36080210(void) { 7175 int _fpu_cmp = 0; 7176 uint32_t _cf = 0; 7177 int _df = 1; 7178 uint32_t _flag_k = FK_NONE; 7179 uint32_t _flag_a = 0, _flag_b = 0; 7180 uint32_t _itail_tgt = 0; 7181 RECOMP_REGS_LOCALS 7182 RECOMP_ENTER(0x36080210u); 7183 7184 L_36080210: 7185 PUSH32(esp, ebp); /* 0x36080210: push ebp */ 7186 ebp = esp; /* 0x36080211: mov ebp, esp */ 7187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7189 esp = esp - 0xCu; /* 0x36080213: sub esp, 0xc */ 7190 _flag_k = FK_CMP; 7191 PUSH32(esp, ebx); /* 0x36080216: push ebx */ 7192 PUSH32(esp, esi); /* 0x36080217: push esi */ 7193 PUSH32(esp, edi); /* 0x36080218: push edi */ 7194 eax = ebp + (-0x4); /* 0x36080219: lea eax, [ebp - 4] */ 7195 ebx = ecx + 0x20; /* 0x3608021C: lea ebx, [ecx + 0x20] */ 7196 ecx = MEM32(ebp + 0x8); /* 0x3608021F: mov ecx, dword ptr [ebp + 8] */ 7197 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7198 esi = 0; /* 0x36080222: xor esi, esi */ 7199 _cf = 0; 7200 _flag_k = FK_TEST; 7201 PUSH32(esp, eax); /* 0x36080224: push eax */ 7202 MEM32(ebp + (-0x4)) = esi; /* 0x36080225: mov dword ptr [ebp - 4], esi */ 7203 RECOMP_ICALL(MEM32(0x3616FAC8)); /* 0x36080228: call dword ptr [0x3616fac8] */ 7204 RECOMP_FLAGS_IN(); 7205 eax = MEM32(ebp + (-0x4)); /* 0x3608022E: mov eax, dword ptr [ebp - 4] */ 7206 /* cmp LO16(eax), LO16(esi) */ /* 0x36080231: cmp ax, si */ 7207 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(LO16(esi)) << 16; 7208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7209 _flag_k = FK_NARROW(FK_CMP, 16); 7210 if (CMP_NE(_flag_a, _flag_b)) goto L_36080286; /* 0x36080234: jne 0x36080286 */ 7211 L_36080236: 7212 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7213 ecx = ecx | 0xFFFFFFFFu; /* 0x36080236: or ecx, 0xffffffff */ 7214 _cf = 0; 7215 _flag_k = FK_TEST; 7216 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7217 eax = 0; /* 0x36080239: xor eax, eax */ 7218 _cf = 0; 7219 _flag_k = FK_TEST; 7220 edi = 0x363033BCu; /* 0x3608023B: mov edi, 0x363033bc */ 7221 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; } /* 0x36080240: repne scasb al, byte ptr es:[edi] */ 7222 ecx = ~ecx; /* 0x36080242: not ecx */ 7223 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7224 ecx = ecx - 1; /* 0x36080244: dec ecx */ 7225 _flag_k = FK_DEC; 7226 esi = ecx; /* 0x36080245: mov esi, ecx */ 7227 PUSH32(esp, 1); /* 0x36080247: push 1 */ 7228 PUSH32(esp, esi); /* 0x36080249: push esi */ 7229 ecx = ebx; /* 0x3608024A: mov ecx, ebx */ 7230 MEM32(ebp + (-0x8)) = esi; /* 0x3608024C: mov dword ptr [ebp - 8], esi */ 7231 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3608024F: call dword ptr [0x3616f00c] */ 7232 RECOMP_FLAGS_IN(); 7233 /* test LO8(eax), LO8(eax) */ /* 0x36080255: test al, al */ 7234 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7235 _cf = 0; 7236 _flag_k = FK_NARROW(FK_TEST, 24); 7237 if (TEST_Z(_flag_a, _flag_b)) goto L_360803B7; /* 0x36080257: je 0x360803b7 */ 7238 L_3608025D: 7239 edi = MEM32(ebx + 0x4); /* 0x3608025D: mov edi, dword ptr [ebx + 4] */ 7240 ecx = esi; /* 0x36080260: mov ecx, esi */ 7241 edx = ecx; /* 0x36080262: mov edx, ecx */ 7242 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36080264: shr ecx, 2 */ 7243 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7244 ecx = ecx >> 2u; /* 0x36080264: shr ecx, 2 */ 7245 esi = 0x363033BCu; /* 0x36080267: mov esi, 0x363033bc */ 7246 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3608026C: 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; } 7247 ecx = edx; /* 0x3608026E: mov ecx, edx */ 7248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7249 ecx = ecx & 3; /* 0x36080270: and ecx, 3 */ 7250 _cf = 0; 7251 _flag_k = FK_TEST; 7252 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36080273: 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; } 7253 ecx = MEM32(ebx + 0x4); /* 0x36080275: mov ecx, dword ptr [ebx + 4] */ 7254 eax = edx; /* 0x36080278: mov eax, edx */ 7255 MEM32(ebx + 0x8) = eax; /* 0x3608027A: mov dword ptr [ebx + 8], eax */ 7256 MEM8(ecx + eax) = (uint8_t)(0); /* 0x3608027D: mov byte ptr [ecx + eax], 0 */ 7257 goto L_360803B7; /* 0x36080281: jmp 0x360803b7 */ 7258 L_36080286: 7259 /* cmp LO16(eax), 0x8000u */ /* 0x36080286: cmp ax, 0x8000 */ 7260 _flag_a = (uint32_t)(LO16(eax)) << 16; _flag_b = (uint32_t)(0x8000u) << 16; 7261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7262 _flag_k = FK_NARROW(FK_CMP, 16); 7263 if (CMP_AE(_flag_a, _flag_b)) goto L_36080314; /* 0x3608028A: jae 0x36080314 */ 7264 L_36080290: 7265 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 7266 eax = eax & 0xFFFFu; /* 0x36080290: and eax, 0xffff */ 7267 _cf = 0; 7268 _flag_k = FK_TEST; 7269 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7270 eax = eax + 1; /* 0x36080295: inc eax */ 7271 _flag_k = FK_INC; 7272 PUSH32(esp, eax); /* 0x36080296: push eax */ 7273 RECOMP_ICALL(0x3615FD6Au); /* 0x36080297: call 0x3615fd6a */ /* not lifted */ 7274 RECOMP_FLAGS_IN(); 7275 edx = MEM32(ebp + (-0x4)); /* 0x3608029C: mov edx, dword ptr [ebp - 4] */ 7276 ecx = MEM32(ebp + 0x8); /* 0x3608029F: mov ecx, dword ptr [ebp + 8] */ 7277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7279 esp = esp + 4; /* 0x360802A2: add esp, 4 */ 7280 _flag_k = FK_ADD; 7281 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu); 7282 edx = edx & 0xFFFFu; /* 0x360802A5: and edx, 0xffff */ 7283 _cf = 0; 7284 _flag_k = FK_TEST; 7285 esi = eax; /* 0x360802AB: mov esi, eax */ 7286 PUSH32(esp, edx); /* 0x360802AD: push edx */ 7287 PUSH32(esp, esi); /* 0x360802AE: push esi */ 7288 MEM32(ebp + (-0xC)) = esi; /* 0x360802AF: mov dword ptr [ebp - 0xc], esi */ 7289 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x360802B2: call dword ptr [0x3616fac4] */ 7290 RECOMP_FLAGS_IN(); 7291 eax = MEM32(ebp + (-0x4)); /* 0x360802B8: mov eax, dword ptr [ebp - 4] */ 7292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFu); 7293 eax = eax & 0xFFFFu; /* 0x360802BB: and eax, 0xffff */ 7294 _cf = 0; 7295 _flag_k = FK_TEST; 7296 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7297 ecx = ecx | 0xFFFFFFFFu; /* 0x360802C0: or ecx, 0xffffffff */ 7298 _cf = 0; 7299 _flag_k = FK_TEST; 7300 MEM8(eax + esi) = (uint8_t)(0); /* 0x360802C3: mov byte ptr [eax + esi], 0 */ 7301 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7302 eax = 0; /* 0x360802C7: xor eax, eax */ 7303 _cf = 0; 7304 _flag_k = FK_TEST; 7305 edi = esi; /* 0x360802C9: mov edi, esi */ 7306 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; } /* 0x360802CB: repne scasb al, byte ptr es:[edi] */ 7307 ecx = ~ecx; /* 0x360802CD: not ecx */ 7308 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7309 ecx = ecx - 1; /* 0x360802CF: dec ecx */ 7310 _flag_k = FK_DEC; 7311 edi = ecx; /* 0x360802D0: mov edi, ecx */ 7312 PUSH32(esp, 1); /* 0x360802D2: push 1 */ 7313 PUSH32(esp, edi); /* 0x360802D4: push edi */ 7314 ecx = ebx; /* 0x360802D5: mov ecx, ebx */ 7315 MEM32(ebp + (-0x8)) = edi; /* 0x360802D7: mov dword ptr [ebp - 8], edi */ 7316 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360802DA: call dword ptr [0x3616f00c] */ 7317 RECOMP_FLAGS_IN(); 7318 /* test LO8(eax), LO8(eax) */ /* 0x360802E0: test al, al */ 7319 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7320 _cf = 0; 7321 _flag_k = FK_NARROW(FK_TEST, 24); 7322 if (TEST_Z(_flag_a, _flag_b)) goto L_36080306; /* 0x360802E2: je 0x36080306 */ 7323 L_360802E4: 7324 ecx = edi; /* 0x360802E4: mov ecx, edi */ 7325 edi = MEM32(ebx + 0x4); /* 0x360802E6: mov edi, dword ptr [ebx + 4] */ 7326 edx = ecx; /* 0x360802E9: mov edx, ecx */ 7327 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360802EB: shr ecx, 2 */ 7328 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7329 ecx = ecx >> 2u; /* 0x360802EB: shr ecx, 2 */ 7330 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360802EE: 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; } 7331 ecx = edx; /* 0x360802F0: mov ecx, edx */ 7332 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7333 ecx = ecx & 3; /* 0x360802F2: and ecx, 3 */ 7334 _cf = 0; 7335 _flag_k = FK_TEST; 7336 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360802F5: 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; } 7337 ecx = MEM32(ebx + 0x4); /* 0x360802F7: mov ecx, dword ptr [ebx + 4] */ 7338 esi = MEM32(ebp + (-0xC)); /* 0x360802FA: mov esi, dword ptr [ebp - 0xc] */ 7339 eax = edx; /* 0x360802FD: mov eax, edx */ 7340 MEM32(ebx + 0x8) = eax; /* 0x360802FF: mov dword ptr [ebx + 8], eax */ 7341 MEM8(ecx + eax) = (uint8_t)(0); /* 0x36080302: mov byte ptr [ecx + eax], 0 */ 7342 L_36080306: 7343 PUSH32(esp, esi); /* 0x36080306: push esi */ 7344 RECOMP_ICALL(0x3615FCC4u); /* 0x36080307: call 0x3615fcc4 */ /* not lifted */ 7345 RECOMP_FLAGS_IN(); 7346 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7347 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7348 esp = esp + 4; /* 0x3608030C: add esp, 4 */ 7349 _flag_k = FK_ADD; 7350 goto L_360803B7; /* 0x3608030F: jmp 0x360803b7 */ 7351 L_36080314: 7352 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7353 ecx = ecx | 0xFFFFFFFFu; /* 0x36080314: or ecx, 0xffffffff */ 7354 _cf = 0; 7355 _flag_k = FK_TEST; 7356 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7357 eax = 0; /* 0x36080317: xor eax, eax */ 7358 _cf = 0; 7359 _flag_k = FK_TEST; 7360 edi = 0x363033BCu; /* 0x36080319: mov edi, 0x363033bc */ 7361 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; } /* 0x3608031E: repne scasb al, byte ptr es:[edi] */ 7362 ecx = ~ecx; /* 0x36080320: not ecx */ 7363 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7364 ecx = ecx - 1; /* 0x36080322: dec ecx */ 7365 _flag_k = FK_DEC; 7366 edi = ecx; /* 0x36080323: mov edi, ecx */ 7367 /* cmp edi, 0xFFFFFFFDu */ /* 0x36080325: cmp edi, -3 */ 7368 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFDu); 7369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7370 _flag_k = FK_CMP; 7371 MEM32(ebp + (-0xC)) = edi; /* 0x36080328: mov dword ptr [ebp - 0xc], edi */ 7372 if (CMP_BE(_flag_a, _flag_b)) goto L_36080333; /* 0x3608032B: jbe 0x36080333 */ 7373 L_3608032D: 7374 RECOMP_ICALL(MEM32(0x3616F104)); /* 0x3608032D: call dword ptr [0x3616f104] */ 7375 RECOMP_FLAGS_IN(); 7376 L_36080333: 7377 eax = MEM32(ebx + 0x4); /* 0x36080333: mov eax, dword ptr [ebx + 4] */ 7378 /* cmp eax, esi */ /* 0x36080336: cmp eax, esi */ 7379 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7381 _flag_k = FK_CMP; 7382 MEM32(ebx + 0x8) = esi; /* 0x36080338: mov dword ptr [ebx + 8], esi */ 7383 if (CMP_EQ(_flag_a, _flag_b)) goto L_36080358; /* 0x3608033B: je 0x36080358 */ 7384 L_3608033D: 7385 SET_LO8(eax, MEM8(eax + (-0x1))); /* 0x3608033D: mov al, byte ptr [eax - 1] */ 7386 /* test LO8(eax), LO8(eax) */ /* 0x36080340: test al, al */ 7387 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7388 _cf = 0; 7389 _flag_k = FK_NARROW(FK_TEST, 24); 7390 if (TEST_Z(_flag_a, _flag_b)) goto L_36080358; /* 0x36080342: je 0x36080358 */ 7391 L_36080344: 7392 /* cmp LO8(eax), 0xFFu */ /* 0x36080344: cmp al, 0xff */ 7393 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 7394 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7395 _flag_k = FK_NARROW(FK_CMP, 24); 7396 if (CMP_EQ(_flag_a, _flag_b)) goto L_36080358; /* 0x36080346: je 0x36080358 */ 7397 L_36080348: 7398 /* cmp edi, esi */ /* 0x36080348: cmp edi, esi */ 7399 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7401 _flag_k = FK_CMP; 7402 if (CMP_NE(_flag_a, _flag_b)) goto L_3608037E; /* 0x3608034A: jne 0x3608037e */ 7403 L_3608034C: 7404 PUSH32(esp, 1); /* 0x3608034C: push 1 */ 7405 ecx = ebx; /* 0x3608034E: mov ecx, ebx */ 7406 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36080350: call dword ptr [0x3616f100] */ 7407 RECOMP_FLAGS_IN(); 7408 goto L_360803AC; /* 0x36080356: jmp 0x360803ac */ 7409 L_36080358: 7410 /* cmp edi, esi */ /* 0x36080358: cmp edi, esi */ 7411 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 7412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7413 _flag_k = FK_CMP; 7414 if (CMP_NE(_flag_a, _flag_b)) goto L_36080368; /* 0x3608035A: jne 0x36080368 */ 7415 L_3608035C: 7416 PUSH32(esp, 1); /* 0x3608035C: push 1 */ 7417 ecx = ebx; /* 0x3608035E: mov ecx, ebx */ 7418 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36080360: call dword ptr [0x3616f100] */ 7419 RECOMP_FLAGS_IN(); 7420 goto L_360803AC; /* 0x36080366: jmp 0x360803ac */ 7421 L_36080368: 7422 eax = MEM32(ebx + 0xC); /* 0x36080368: mov eax, dword ptr [ebx + 0xc] */ 7423 /* cmp eax, 0x1Fu */ /* 0x3608036B: cmp eax, 0x1f */ 7424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 7425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7426 _flag_k = FK_CMP; 7427 if (CMP_A(_flag_a, _flag_b)) goto L_36080374; /* 0x3608036E: ja 0x36080374 */ 7428 L_36080370: 7429 /* cmp eax, edi */ /* 0x36080370: cmp eax, edi */ 7430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 7431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7432 _flag_k = FK_CMP; 7433 if (CMP_AE(_flag_a, _flag_b)) goto L_36080387; /* 0x36080372: jae 0x36080387 */ 7434 L_36080374: 7435 PUSH32(esp, 1); /* 0x36080374: push 1 */ 7436 ecx = ebx; /* 0x36080376: mov ecx, ebx */ 7437 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x36080378: call dword ptr [0x3616f100] */ 7438 RECOMP_FLAGS_IN(); 7439 L_3608037E: 7440 PUSH32(esp, edi); /* 0x3608037E: push edi */ 7441 ecx = ebx; /* 0x3608037F: mov ecx, ebx */ 7442 RECOMP_ICALL(MEM32(0x3616F048)); /* 0x36080381: call dword ptr [0x3616f048] */ 7443 RECOMP_FLAGS_IN(); 7444 L_36080387: 7445 eax = MEM32(ebp + (-0xC)); /* 0x36080387: mov eax, dword ptr [ebp - 0xc] */ 7446 ecx = edi; /* 0x3608038A: mov ecx, edi */ 7447 edi = MEM32(ebx + 0x4); /* 0x3608038C: mov edi, dword ptr [ebx + 4] */ 7448 edx = ecx; /* 0x3608038F: mov edx, ecx */ 7449 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36080391: shr ecx, 2 */ 7450 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7451 ecx = ecx >> 2u; /* 0x36080391: shr ecx, 2 */ 7452 esi = 0x363033BCu; /* 0x36080394: mov esi, 0x363033bc */ 7453 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36080399: 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; } 7454 ecx = edx; /* 0x3608039B: mov ecx, edx */ 7455 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7456 ecx = ecx & 3; /* 0x3608039D: and ecx, 3 */ 7457 _cf = 0; 7458 _flag_k = FK_TEST; 7459 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360803A0: 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; } 7460 ecx = MEM32(ebx + 0x4); /* 0x360803A2: mov ecx, dword ptr [ebx + 4] */ 7461 MEM32(ebx + 0x8) = eax; /* 0x360803A5: mov dword ptr [ebx + 8], eax */ 7462 MEM8(ecx + eax) = (uint8_t)(0); /* 0x360803A8: mov byte ptr [ecx + eax], 0 */ 7463 L_360803AC: 7464 ecx = MEM32(ebp + 0x8); /* 0x360803AC: mov ecx, dword ptr [ebp + 8] */ 7465 PUSH32(esp, 4); /* 0x360803AF: push 4 */ 7466 RECOMP_ICALL(MEM32(0x3616FAE4)); /* 0x360803B1: call dword ptr [0x3616fae4] */ 7467 RECOMP_FLAGS_IN(); 7468 L_360803B7: 7469 ecx = MEM32(ebp + 0x8); /* 0x360803B7: mov ecx, dword ptr [ebp + 8] */ 7470 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360803BA: call dword ptr [0x3616fadc] */ 7471 RECOMP_FLAGS_IN(); 7472 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 7473 _cf = (eax) != 0; 7474 eax = (uint32_t)(-(int32_t)eax); /* 0x360803C0: neg eax */ 7475 _flag_k = FK_CMP; 7476 edi = POP32_VAL(esp); /* 0x360803C2: pop edi */ 7477 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360803C3: sbb eax, eax */ 7478 eax = _sc ? 0xFFFFFFFFu : 0; 7479 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7480 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7481 esi = POP32_VAL(esp); /* 0x360803C5: pop esi */ 7482 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7483 eax = eax + 1; /* 0x360803C6: inc eax */ 7484 _flag_k = FK_INC; 7485 ebx = POP32_VAL(esp); /* 0x360803C7: pop ebx */ 7486 esp = ebp; /* 0x360803C8: mov esp, ebp */ 7487 ebp = POP32_VAL(esp); /* 0x360803CA: pop ebp */ 7488 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360803CB: ret 4 */ 7489 RECOMP_REGS_OUT(); 7490 } 7491 7492 void sub_360803B7(void) { 7493 int _fpu_cmp = 0; 7494 uint32_t _cf = 0; 7495 int _df = 1; 7496 uint32_t _flag_k = FK_NONE; 7497 uint32_t _flag_a = 0, _flag_b = 0; 7498 uint32_t _itail_tgt = 0; 7499 RECOMP_REGS_LOCALS 7500 RECOMP_ENTER(0x360803B7u); 7501 7502 L_360803B7: 7503 ecx = MEM32(ebp + 0x8); /* 0x360803B7: mov ecx, dword ptr [ebp + 8] */ 7504 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x360803BA: call dword ptr [0x3616fadc] */ 7505 RECOMP_FLAGS_IN(); 7506 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 7507 _cf = (eax) != 0; 7508 eax = (uint32_t)(-(int32_t)eax); /* 0x360803C0: neg eax */ 7509 _flag_k = FK_CMP; 7510 edi = POP32_VAL(esp); /* 0x360803C2: pop edi */ 7511 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x360803C3: sbb eax, eax */ 7512 eax = _sc ? 0xFFFFFFFFu : 0; 7513 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 7514 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 7515 esi = POP32_VAL(esp); /* 0x360803C5: pop esi */ 7516 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7517 eax = eax + 1; /* 0x360803C6: inc eax */ 7518 _flag_k = FK_INC; 7519 ebx = POP32_VAL(esp); /* 0x360803C7: pop ebx */ 7520 esp = ebp; /* 0x360803C8: mov esp, ebp */ 7521 ebp = POP32_VAL(esp); /* 0x360803CA: pop ebp */ 7522 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360803CB: ret 4 */ 7523 RECOMP_REGS_OUT(); 7524 } 7525 7526 void sub_360803D0(void) { 7527 int _fpu_cmp = 0; 7528 uint32_t _cf = 0; 7529 int _df = 1; 7530 uint32_t _flag_k = FK_NONE; 7531 uint32_t _flag_a = 0, _flag_b = 0; 7532 uint32_t _itail_tgt = 0; 7533 RECOMP_REGS_LOCALS 7534 RECOMP_ENTER(0x360803D0u); 7535 7536 L_360803D0: 7537 PUSH32(esp, ebp); /* 0x360803D0: push ebp */ 7538 ebp = esp; /* 0x360803D1: mov ebp, esp */ 7539 PUSH32(esp, ebx); /* 0x360803D3: push ebx */ 7540 PUSH32(esp, esi); /* 0x360803D4: push esi */ 7541 PUSH32(esp, edi); /* 0x360803D5: push edi */ 7542 edi = ecx; /* 0x360803D6: mov edi, ecx */ 7543 esi = MEM32(edi + 0x28); /* 0x360803D8: mov esi, dword ptr [edi + 0x28] */ 7544 /* cmp esi, 0xFFFFu */ /* 0x360803DB: cmp esi, 0xffff */ 7545 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFu); 7546 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7547 _flag_k = FK_CMP; 7548 if (CMP_B(_flag_a, _flag_b)) goto L_360803E8; /* 0x360803E1: jb 0x360803e8 */ 7549 L_360803E3: 7550 esi = 0xFFFFu; /* 0x360803E3: mov esi, 0xffff */ 7551 L_360803E8: 7552 ebx = MEM32(ebp + 0x8); /* 0x360803E8: mov ebx, dword ptr [ebp + 8] */ 7553 PUSH32(esp, esi); /* 0x360803EB: push esi */ 7554 ecx = ebx; /* 0x360803EC: mov ecx, ebx */ 7555 RECOMP_ICALL(MEM32(0x3616FACC)); /* 0x360803EE: call dword ptr [0x3616facc] */ 7556 RECOMP_FLAGS_IN(); 7557 /* test LO16(esi), LO16(esi) */ /* 0x360803F4: test si, si */ 7558 _flag_a = (uint32_t)(LO16(esi)) << 16; _flag_b = (uint32_t)(LO16(esi)) << 16; 7559 _cf = 0; 7560 _flag_k = FK_NARROW(FK_TEST, 16); 7561 if (TEST_Z(_flag_a, _flag_b)) goto L_36080415; /* 0x360803F7: je 0x36080415 */ 7562 L_360803F9: 7563 eax = MEM32(edi + 0x24); /* 0x360803F9: mov eax, dword ptr [edi + 0x24] */ 7564 /* test eax, eax */ /* 0x360803FC: test eax, eax */ 7565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7566 _cf = 0; 7567 _flag_k = FK_TEST; 7568 if (TEST_NZ(_flag_a, _flag_b)) goto L_36080405; /* 0x360803FE: jne 0x36080405 */ 7569 L_36080400: 7570 eax = MEM32(0x3616F10C); /* 0x36080400: mov eax, dword ptr [0x3616f10c] */ 7571 L_36080405: 7572 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFu); 7573 esi = esi & 0xFFFFu; /* 0x36080405: and esi, 0xffff */ 7574 _cf = 0; 7575 _flag_k = FK_TEST; 7576 PUSH32(esp, esi); /* 0x3608040B: push esi */ 7577 PUSH32(esp, eax); /* 0x3608040C: push eax */ 7578 ecx = ebx; /* 0x3608040D: mov ecx, ebx */ 7579 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x3608040F: call dword ptr [0x3616fab0] */ 7580 RECOMP_FLAGS_IN(); 7581 L_36080415: 7582 edi = POP32_VAL(esp); /* 0x36080415: pop edi */ 7583 esi = POP32_VAL(esp); /* 0x36080416: pop esi */ 7584 ebx = POP32_VAL(esp); /* 0x36080417: pop ebx */ 7585 ebp = POP32_VAL(esp); /* 0x36080418: pop ebp */ 7586 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080419: ret 4 */ 7587 RECOMP_REGS_OUT(); 7588 } 7589 7590 void sub_36080420(void) { 7591 int _fpu_cmp = 0; 7592 uint32_t _cf = 0; 7593 int _df = 1; 7594 uint32_t _flag_k = FK_NONE; 7595 uint32_t _flag_a = 0, _flag_b = 0; 7596 uint32_t _itail_tgt = 0; 7597 RECOMP_REGS_LOCALS 7598 RECOMP_ENTER(0x36080420u); 7599 7600 L_36080420: 7601 PUSH32(esp, esi); /* 0x36080420: push esi */ 7602 esi = ecx; /* 0x36080421: mov esi, ecx */ 7603 eax = esi + 0x4; /* 0x36080423: lea eax, [esi + 4] */ 7604 PUSH32(esp, eax); /* 0x36080426: push eax */ 7605 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36080427: call dword ptr [0x3616ff70] */ 7606 RECOMP_FLAGS_IN(); 7607 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7608 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7609 esp = esp + 4; /* 0x3608042D: add esp, 4 */ 7610 _flag_k = FK_ADD; 7611 /* test eax, eax */ /* 0x36080430: test eax, eax */ 7612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7613 _cf = 0; 7614 _flag_k = FK_TEST; 7615 if (TEST_Z(_flag_a, _flag_b)) goto L_36080446; /* 0x36080432: je 0x36080446 */ 7616 L_36080434: 7617 ecx = esi + 0x20; /* 0x36080434: lea ecx, [esi + 0x20] */ 7618 PUSH32(esp, ecx); /* 0x36080437: push ecx */ 7619 ecx = eax; /* 0x36080438: mov ecx, eax */ 7620 RECOMP_ICALL(0x36072000u); /* 0x3608043A: call 0x36072000 */ /* not lifted */ 7621 RECOMP_FLAGS_IN(); 7622 ecx = eax; /* 0x3608043F: mov ecx, eax */ 7623 RECOMP_ICALL(0x36058560u); /* 0x36080441: call 0x36058560 */ /* not lifted */ 7624 RECOMP_FLAGS_IN(); 7625 L_36080446: 7626 ecx = esi; /* 0x36080446: mov ecx, esi */ 7627 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36080448: call dword ptr [0x3616fc20] */ 7628 RECOMP_FLAGS_IN(); 7629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7630 eax = 0; /* 0x3608044E: xor eax, eax */ 7631 _cf = 0; 7632 _flag_k = FK_TEST; 7633 esi = POP32_VAL(esp); /* 0x36080450: pop esi */ 7634 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080451: ret */ 7635 RECOMP_REGS_OUT(); 7636 } 7637 7638 void sub_36080460(void) { 7639 int _fpu_cmp = 0; 7640 uint32_t _cf = 0; 7641 int _df = 1; 7642 uint32_t _flag_k = FK_NONE; 7643 uint32_t _flag_a = 0, _flag_b = 0; 7644 uint32_t _itail_tgt = 0; 7645 RECOMP_REGS_LOCALS 7646 RECOMP_ENTER(0x36080460u); 7647 7648 L_36080460: 7649 PUSH32(esp, ebp); /* 0x36080460: push ebp */ 7650 ebp = esp; /* 0x36080461: mov ebp, esp */ 7651 PUSH32(esp, 0xFFFFFFFFu); /* 0x36080463: push -1 */ 7652 PUSH32(esp, 0x3616568Fu); /* 0x36080465: push 0x3616568f */ 7653 eax = MEM32(FS_BASE + (0)); /* 0x3608046A: mov eax, dword ptr fs:[0] */ 7654 PUSH32(esp, eax); /* 0x36080470: push eax */ 7655 MEM32(FS_BASE + (0)) = esp; /* 0x36080471: mov dword ptr fs:[0], esp */ 7656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7657 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7658 esp = esp - 0xCu; /* 0x36080478: sub esp, 0xc */ 7659 _flag_k = FK_CMP; 7660 PUSH32(esp, esi); /* 0x3608047B: push esi */ 7661 esi = ecx; /* 0x3608047C: mov esi, ecx */ 7662 PUSH32(esp, edi); /* 0x3608047E: push edi */ 7663 MEM32(ebp + (-0x14)) = esi; /* 0x3608047F: mov dword ptr [ebp - 0x14], esi */ 7664 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36080482: call dword ptr [0x3616ffd0] */ 7665 RECOMP_FLAGS_IN(); 7666 ecx = esi + 0x20; /* 0x36080488: lea ecx, [esi + 0x20] */ 7667 MEM32(ebp + (-0x4)) = 0; /* 0x3608048B: mov dword ptr [ebp - 4], 0 */ 7668 RECOMP_ICALL(0x36068640u); /* 0x36080492: call 0x36068640 */ /* not lifted */ 7669 RECOMP_FLAGS_IN(); 7670 PUSH32(esp, 0xCu); /* 0x36080497: push 0xc */ 7671 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36080499: mov byte ptr [ebp - 4], 1 */ 7672 MEM32(esi) = 0x36171840u; /* 0x3608049D: mov dword ptr [esi], 0x36171840 */ 7673 RECOMP_ICALL(0x3615FD6Au); /* 0x360804A3: call 0x3615fd6a */ /* not lifted */ 7674 RECOMP_FLAGS_IN(); 7675 edi = eax; /* 0x360804A8: mov edi, eax */ 7676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7678 esp = esp + 4; /* 0x360804AA: add esp, 4 */ 7679 _flag_k = FK_ADD; 7680 MEM32(ebp + (-0x18)) = edi; /* 0x360804AD: mov dword ptr [ebp - 0x18], edi */ 7681 /* test edi, edi */ /* 0x360804B0: test edi, edi */ 7682 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 7683 _cf = 0; 7684 _flag_k = FK_TEST; 7685 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x360804B2: mov byte ptr [ebp - 4], 2 */ 7686 if (TEST_Z(_flag_a, _flag_b)) goto L_360804EB; /* 0x360804B6: je 0x360804eb */ 7687 L_360804B8: 7688 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x360804B8: mov al, byte ptr [ebp - 0xd] */ 7689 PUSH32(esp, 0x10u); /* 0x360804BB: push 0x10 */ 7690 MEM8(edi) = (uint8_t)(LO8(eax)); /* 0x360804BD: mov byte ptr [edi], al */ 7691 RECOMP_ICALL(0x3615FD6Au); /* 0x360804BF: call 0x3615fd6a */ /* not lifted */ 7692 RECOMP_FLAGS_IN(); 7693 MEM32(eax) = eax; /* 0x360804C4: mov dword ptr [eax], eax */ 7694 MEM32(eax + 0x4) = eax; /* 0x360804C6: mov dword ptr [eax + 4], eax */ 7695 MEM32(edi + 0x4) = eax; /* 0x360804C9: mov dword ptr [edi + 4], eax */ 7696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7698 esp = esp + 4; /* 0x360804CC: add esp, 4 */ 7699 _flag_k = FK_ADD; 7700 MEM32(edi + 0x8) = 0; /* 0x360804CF: mov dword ptr [edi + 8], 0 */ 7701 MEM32(esi + 0x2C) = edi; /* 0x360804D6: mov dword ptr [esi + 0x2c], edi */ 7702 edi = POP32_VAL(esp); /* 0x360804D9: pop edi */ 7703 eax = esi; /* 0x360804DA: mov eax, esi */ 7704 esi = POP32_VAL(esp); /* 0x360804DC: pop esi */ 7705 ecx = MEM32(ebp + (-0xC)); /* 0x360804DD: mov ecx, dword ptr [ebp - 0xc] */ 7706 MEM32(FS_BASE + (0)) = ecx; /* 0x360804E0: mov dword ptr fs:[0], ecx */ 7707 esp = ebp; /* 0x360804E7: mov esp, ebp */ 7708 ebp = POP32_VAL(esp); /* 0x360804E9: pop ebp */ 7709 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360804EA: ret */ 7710 L_360804EB: 7711 ecx = MEM32(ebp + (-0xC)); /* 0x360804EB: mov ecx, dword ptr [ebp - 0xc] */ 7712 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7713 eax = 0; /* 0x360804EE: xor eax, eax */ 7714 _cf = 0; 7715 _flag_k = FK_TEST; 7716 MEM32(esi + 0x2C) = eax; /* 0x360804F0: mov dword ptr [esi + 0x2c], eax */ 7717 edi = POP32_VAL(esp); /* 0x360804F3: pop edi */ 7718 eax = esi; /* 0x360804F4: mov eax, esi */ 7719 esi = POP32_VAL(esp); /* 0x360804F6: pop esi */ 7720 MEM32(FS_BASE + (0)) = ecx; /* 0x360804F7: mov dword ptr fs:[0], ecx */ 7721 esp = ebp; /* 0x360804FE: mov esp, ebp */ 7722 ebp = POP32_VAL(esp); /* 0x36080500: pop ebp */ 7723 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080501: ret */ 7724 RECOMP_REGS_OUT(); 7725 } 7726 7727 void sub_36080510(void) { 7728 int _fpu_cmp = 0; 7729 uint32_t _cf = 0; 7730 int _df = 1; 7731 uint32_t _flag_k = FK_NONE; 7732 uint32_t _flag_a = 0, _flag_b = 0; 7733 uint32_t _itail_tgt = 0; 7734 RECOMP_REGS_LOCALS 7735 RECOMP_ENTER(0x36080510u); 7736 7737 L_36080510: 7738 PUSH32(esp, ebp); /* 0x36080510: push ebp */ 7739 ebp = esp; /* 0x36080511: mov ebp, esp */ 7740 PUSH32(esp, esi); /* 0x36080513: push esi */ 7741 esi = ecx; /* 0x36080514: mov esi, ecx */ 7742 RECOMP_ICALL(0x360806E0u); /* 0x36080516: call 0x360806e0 */ /* not lifted */ 7743 RECOMP_FLAGS_IN(); 7744 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608051B: test byte ptr [ebp + 8], 1 */ 7745 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7746 _cf = 0; 7747 _flag_k = FK_NARROW(FK_TEST, 24); 7748 if (TEST_Z(_flag_a, _flag_b)) goto L_3608052A; /* 0x3608051F: je 0x3608052a */ 7749 L_36080521: 7750 PUSH32(esp, esi); /* 0x36080521: push esi */ 7751 RECOMP_ICALL(0x3615FCC4u); /* 0x36080522: call 0x3615fcc4 */ /* not lifted */ 7752 RECOMP_FLAGS_IN(); 7753 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7754 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7755 esp = esp + 4; /* 0x36080527: add esp, 4 */ 7756 _flag_k = FK_ADD; 7757 L_3608052A: 7758 eax = esi; /* 0x3608052A: mov eax, esi */ 7759 esi = POP32_VAL(esp); /* 0x3608052C: pop esi */ 7760 ebp = POP32_VAL(esp); /* 0x3608052D: pop ebp */ 7761 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608052E: ret 4 */ 7762 RECOMP_REGS_OUT(); 7763 } 7764 7765 void sub_36080540(void) { 7766 int _fpu_cmp = 0; 7767 uint32_t _cf = 0; 7768 int _df = 1; 7769 uint32_t _flag_k = FK_NONE; 7770 uint32_t _flag_a = 0, _flag_b = 0; 7771 uint32_t _itail_tgt = 0; 7772 RECOMP_REGS_LOCALS 7773 RECOMP_ENTER(0x36080540u); 7774 7775 L_36080540: 7776 PUSH32(esp, ebp); /* 0x36080540: push ebp */ 7777 ebp = esp; /* 0x36080541: mov ebp, esp */ 7778 PUSH32(esp, 0xFFFFFFFFu); /* 0x36080543: push -1 */ 7779 PUSH32(esp, 0x361656C8u); /* 0x36080545: push 0x361656c8 */ 7780 eax = MEM32(FS_BASE + (0)); /* 0x3608054A: mov eax, dword ptr fs:[0] */ 7781 PUSH32(esp, eax); /* 0x36080550: push eax */ 7782 MEM32(FS_BASE + (0)) = esp; /* 0x36080551: mov dword ptr fs:[0], esp */ 7783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 7784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7785 esp = esp - 0x18u; /* 0x36080558: sub esp, 0x18 */ 7786 _flag_k = FK_CMP; 7787 SET_LO8(eax, MEM8(ebp + 0x17)); /* 0x3608055B: mov al, byte ptr [ebp + 0x17] */ 7788 PUSH32(esp, ebx); /* 0x3608055E: push ebx */ 7789 PUSH32(esp, esi); /* 0x3608055F: push esi */ 7790 PUSH32(esp, edi); /* 0x36080560: push edi */ 7791 ebx = ecx; /* 0x36080561: mov ebx, ecx */ 7792 PUSH32(esp, 0); /* 0x36080563: push 0 */ 7793 ecx = ebp + (-0x24); /* 0x36080565: lea ecx, [ebp - 0x24] */ 7794 MEM32(ebp + (-0x14)) = ebx; /* 0x36080568: mov dword ptr [ebp - 0x14], ebx */ 7795 MEM8(ebp + (-0x24)) = (uint8_t)(LO8(eax)); /* 0x3608056B: mov byte ptr [ebp - 0x24], al */ 7796 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x3608056E: call dword ptr [0x3616f100] */ 7797 RECOMP_FLAGS_IN(); 7798 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 7799 ecx = ecx | 0xFFFFFFFFu; /* 0x36080574: or ecx, 0xffffffff */ 7800 _cf = 0; 7801 _flag_k = FK_TEST; 7802 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7803 eax = 0; /* 0x36080577: xor eax, eax */ 7804 _cf = 0; 7805 _flag_k = FK_TEST; 7806 edi = 0x361B4320u; /* 0x36080579: mov edi, 0x361b4320 */ 7807 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; } /* 0x3608057E: repne scasb al, byte ptr es:[edi] */ 7808 ecx = ~ecx; /* 0x36080580: not ecx */ 7809 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 7810 ecx = ecx - 1; /* 0x36080582: dec ecx */ 7811 _flag_k = FK_DEC; 7812 esi = ecx; /* 0x36080583: mov esi, ecx */ 7813 PUSH32(esp, 1); /* 0x36080585: push 1 */ 7814 PUSH32(esp, esi); /* 0x36080587: push esi */ 7815 ecx = ebp + (-0x24); /* 0x36080588: lea ecx, [ebp - 0x24] */ 7816 MEM32(ebp + (-0x10)) = esi; /* 0x3608058B: mov dword ptr [ebp - 0x10], esi */ 7817 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3608058E: call dword ptr [0x3616f00c] */ 7818 RECOMP_FLAGS_IN(); 7819 /* test LO8(eax), LO8(eax) */ /* 0x36080594: test al, al */ 7820 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7821 _cf = 0; 7822 _flag_k = FK_NARROW(FK_TEST, 24); 7823 if (TEST_Z(_flag_a, _flag_b)) goto L_360805BC; /* 0x36080596: je 0x360805bc */ 7824 L_36080598: 7825 edi = MEM32(ebp + (-0x20)); /* 0x36080598: mov edi, dword ptr [ebp - 0x20] */ 7826 ecx = esi; /* 0x3608059B: mov ecx, esi */ 7827 edx = ecx; /* 0x3608059D: mov edx, ecx */ 7828 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3608059F: shr ecx, 2 */ 7829 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7830 ecx = ecx >> 2u; /* 0x3608059F: shr ecx, 2 */ 7831 esi = 0x361B4320u; /* 0x360805A2: mov esi, 0x361b4320 */ 7832 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360805A7: 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; } 7833 ecx = edx; /* 0x360805A9: mov ecx, edx */ 7834 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 7835 ecx = ecx & 3; /* 0x360805AB: and ecx, 3 */ 7836 _cf = 0; 7837 _flag_k = FK_TEST; 7838 eax = edx; /* 0x360805AE: mov eax, edx */ 7839 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360805B0: 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; } 7840 PUSH32(esp, eax); /* 0x360805B2: push eax */ 7841 ecx = ebp + (-0x24); /* 0x360805B3: lea ecx, [ebp - 0x24] */ 7842 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x360805B6: call dword ptr [0x3616f044] */ 7843 RECOMP_FLAGS_IN(); 7844 L_360805BC: 7845 edx = MEM32(ebp + 0x8); /* 0x360805BC: mov edx, dword ptr [ebp + 8] */ 7846 ecx = ebp + (-0x24); /* 0x360805BF: lea ecx, [ebp - 0x24] */ 7847 PUSH32(esp, ecx); /* 0x360805C2: push ecx */ 7848 PUSH32(esp, edx); /* 0x360805C3: push edx */ 7849 ecx = ebx; /* 0x360805C4: mov ecx, ebx */ 7850 MEM32(ebp + (-0x4)) = 0; /* 0x360805C6: mov dword ptr [ebp - 4], 0 */ 7851 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x360805CD: call dword ptr [0x3616fc0c] */ 7852 RECOMP_FLAGS_IN(); 7853 PUSH32(esp, 1); /* 0x360805D3: push 1 */ 7854 ecx = ebp + (-0x24); /* 0x360805D5: lea ecx, [ebp - 0x24] */ 7855 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x360805D8: mov byte ptr [ebp - 4], 2 */ 7856 RECOMP_ICALL(MEM32(0x3616F100)); /* 0x360805DC: call dword ptr [0x3616f100] */ 7857 RECOMP_FLAGS_IN(); 7858 eax = MEM32(ebp + 0xC); /* 0x360805E2: mov eax, dword ptr [ebp + 0xc] */ 7859 PUSH32(esp, eax); /* 0x360805E5: push eax */ 7860 ecx = ebx + 0x20; /* 0x360805E6: lea ecx, [ebx + 0x20] */ 7861 RECOMP_ICALL(0x36068680u); /* 0x360805E9: call 0x36068680 */ /* not lifted */ 7862 RECOMP_FLAGS_IN(); 7863 SET_LO8(ecx, MEM8(ebp + 0x14)); /* 0x360805EE: mov cl, byte ptr [ebp + 0x14] */ 7864 PUSH32(esp, 0xCu); /* 0x360805F1: push 0xc */ 7865 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x360805F3: mov byte ptr [ebp - 4], 3 */ 7866 MEM8(ebx + 0x30) = (uint8_t)(LO8(ecx)); /* 0x360805F7: mov byte ptr [ebx + 0x30], cl */ 7867 MEM32(ebx) = 0x36171840u; /* 0x360805FA: mov dword ptr [ebx], 0x36171840 */ 7868 RECOMP_ICALL(0x3615FD6Au); /* 0x36080600: call 0x3615fd6a */ /* not lifted */ 7869 RECOMP_FLAGS_IN(); 7870 esi = eax; /* 0x36080605: mov esi, eax */ 7871 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7872 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7873 esp = esp + 4; /* 0x36080607: add esp, 4 */ 7874 _flag_k = FK_ADD; 7875 MEM32(ebp + 0x14) = esi; /* 0x3608060A: mov dword ptr [ebp + 0x14], esi */ 7876 /* test esi, esi */ /* 0x3608060D: test esi, esi */ 7877 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7878 _cf = 0; 7879 _flag_k = FK_TEST; 7880 MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3608060F: mov byte ptr [ebp - 4], 4 */ 7881 if (TEST_Z(_flag_a, _flag_b)) goto L_36080635; /* 0x36080613: je 0x36080635 */ 7882 L_36080615: 7883 SET_LO8(edx, MEM8(ebp + 0x17)); /* 0x36080615: mov dl, byte ptr [ebp + 0x17] */ 7884 PUSH32(esp, 0x10u); /* 0x36080618: push 0x10 */ 7885 MEM8(esi) = (uint8_t)(LO8(edx)); /* 0x3608061A: mov byte ptr [esi], dl */ 7886 RECOMP_ICALL(0x3615FD6Au); /* 0x3608061C: call 0x3615fd6a */ /* not lifted */ 7887 RECOMP_FLAGS_IN(); 7888 MEM32(eax) = eax; /* 0x36080621: mov dword ptr [eax], eax */ 7889 MEM32(eax + 0x4) = eax; /* 0x36080623: mov dword ptr [eax + 4], eax */ 7890 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7891 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7892 esp = esp + 4; /* 0x36080626: add esp, 4 */ 7893 _flag_k = FK_ADD; 7894 MEM32(esi + 0x4) = eax; /* 0x36080629: mov dword ptr [esi + 4], eax */ 7895 MEM32(esi + 0x8) = 0; /* 0x3608062C: mov dword ptr [esi + 8], 0 */ 7896 goto L_36080637; /* 0x36080633: jmp 0x36080637 */ 7897 L_36080635: 7898 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7899 esi = 0; /* 0x36080635: xor esi, esi */ 7900 _cf = 0; 7901 _flag_k = FK_TEST; 7902 L_36080637: 7903 eax = MEM32(ebp + 0x10); /* 0x36080637: mov eax, dword ptr [ebp + 0x10] */ 7904 /* test eax, eax */ /* 0x3608063A: test eax, eax */ 7905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7906 _cf = 0; 7907 _flag_k = FK_TEST; 7908 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x3608063C: mov byte ptr [ebp - 4], 3 */ 7909 MEM32(ebx + 0x2C) = esi; /* 0x36080640: mov dword ptr [ebx + 0x2c], esi */ 7910 if (TEST_Z(_flag_a, _flag_b)) goto L_360806B9; /* 0x36080643: je 0x360806b9 */ 7911 L_36080645: 7912 eax = MEM32(eax + 0x4); /* 0x36080645: mov eax, dword ptr [eax + 4] */ 7913 ecx = MEM32(eax); /* 0x36080648: mov ecx, dword ptr [eax] */ 7914 /* cmp ecx, eax */ /* 0x3608064A: cmp ecx, eax */ 7915 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7917 _flag_k = FK_CMP; 7918 MEM32(ebp + 0xC) = eax; /* 0x3608064C: mov dword ptr [ebp + 0xc], eax */ 7919 MEM32(ebp + 0x14) = ecx; /* 0x3608064F: mov dword ptr [ebp + 0x14], ecx */ 7920 if (CMP_EQ(_flag_a, _flag_b)) goto L_360806B9; /* 0x36080652: je 0x360806b9 */ 7921 L_36080654: 7922 edi = MEM32(ebx + 0x2C); /* 0x36080654: mov edi, dword ptr [ebx + 0x2c] */ 7923 esi = MEM32(edi + 0x4); /* 0x36080657: mov esi, dword ptr [edi + 4] */ 7924 eax = MEM32(esi + 0x4); /* 0x3608065A: mov eax, dword ptr [esi + 4] */ 7925 PUSH32(esp, 0x10u); /* 0x3608065D: push 0x10 */ 7926 MEM32(ebp + 0x8) = eax; /* 0x3608065F: mov dword ptr [ebp + 8], eax */ 7927 RECOMP_ICALL(0x3615FD6Au); /* 0x36080662: call 0x3615fd6a */ /* not lifted */ 7928 RECOMP_FLAGS_IN(); 7929 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7930 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7931 esp = esp + 4; /* 0x36080667: add esp, 4 */ 7932 _flag_k = FK_ADD; 7933 /* test esi, esi */ /* 0x3608066A: test esi, esi */ 7934 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 7935 _cf = 0; 7936 _flag_k = FK_TEST; 7937 ecx = esi; /* 0x3608066C: mov ecx, esi */ 7938 if (TEST_NZ(_flag_a, _flag_b)) goto L_36080672; /* 0x3608066E: jne 0x36080672 */ 7939 L_36080670: 7940 ecx = eax; /* 0x36080670: mov ecx, eax */ 7941 L_36080672: 7942 MEM32(eax) = ecx; /* 0x36080672: mov dword ptr [eax], ecx */ 7943 ecx = MEM32(ebp + 0x8); /* 0x36080674: mov ecx, dword ptr [ebp + 8] */ 7944 /* test ecx, ecx */ /* 0x36080677: test ecx, ecx */ 7945 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7946 _cf = 0; 7947 _flag_k = FK_TEST; 7948 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608067D; /* 0x36080679: jne 0x3608067d */ 7949 L_3608067B: 7950 ecx = eax; /* 0x3608067B: mov ecx, eax */ 7951 L_3608067D: 7952 MEM32(eax + 0x4) = ecx; /* 0x3608067D: mov dword ptr [eax + 4], ecx */ 7953 MEM32(esi + 0x4) = eax; /* 0x36080680: mov dword ptr [esi + 4], eax */ 7954 ecx = MEM32(eax + 0x4); /* 0x36080683: mov ecx, dword ptr [eax + 4] */ 7955 MEM32(ecx) = eax; /* 0x36080686: mov dword ptr [ecx], eax */ 7956 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7957 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7958 eax = eax + 8; /* 0x36080688: add eax, 8 */ 7959 _flag_k = FK_ADD; 7960 /* test eax, eax */ /* 0x3608068B: test eax, eax */ 7961 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7962 _cf = 0; 7963 _flag_k = FK_TEST; 7964 if (TEST_Z(_flag_a, _flag_b)) goto L_360806A3; /* 0x3608068D: je 0x360806a3 */ 7965 L_3608068F: 7966 edx = MEM32(ebp + 0x14); /* 0x3608068F: mov edx, dword ptr [ebp + 0x14] */ 7967 ecx = edx + 0x8; /* 0x36080692: lea ecx, [edx + 8] */ 7968 /* cmp eax, ecx */ /* 0x36080695: cmp eax, ecx */ 7969 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7970 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7971 _flag_k = FK_CMP; 7972 if (CMP_EQ(_flag_a, _flag_b)) goto L_360806A3; /* 0x36080697: je 0x360806a3 */ 7973 L_36080699: 7974 edx = MEM32(ecx); /* 0x36080699: mov edx, dword ptr [ecx] */ 7975 MEM32(eax) = edx; /* 0x3608069B: mov dword ptr [eax], edx */ 7976 ecx = MEM32(ecx + 0x4); /* 0x3608069D: mov ecx, dword ptr [ecx + 4] */ 7977 MEM32(eax + 0x4) = ecx; /* 0x360806A0: mov dword ptr [eax + 4], ecx */ 7978 L_360806A3: 7979 edx = MEM32(edi + 0x8); /* 0x360806A3: mov edx, dword ptr [edi + 8] */ 7980 ecx = MEM32(ebp + 0xC); /* 0x360806A6: mov ecx, dword ptr [ebp + 0xc] */ 7981 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 7982 edx = edx + 1; /* 0x360806A9: inc edx */ 7983 _flag_k = FK_INC; 7984 MEM32(edi + 0x8) = edx; /* 0x360806AA: mov dword ptr [edi + 8], edx */ 7985 edx = MEM32(ebp + 0x14); /* 0x360806AD: mov edx, dword ptr [ebp + 0x14] */ 7986 eax = MEM32(edx); /* 0x360806B0: mov eax, dword ptr [edx] */ 7987 /* cmp eax, ecx */ /* 0x360806B2: cmp eax, ecx */ 7988 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7989 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7990 _flag_k = FK_CMP; 7991 MEM32(ebp + 0x14) = eax; /* 0x360806B4: mov dword ptr [ebp + 0x14], eax */ 7992 RECOMP_BACKEDGE(); 7993 if (CMP_NE(_flag_a, _flag_b)) goto L_36080654; /* 0x360806B7: jne 0x36080654 */ 7994 L_360806B9: 7995 ecx = MEM32(ebp + (-0xC)); /* 0x360806B9: mov ecx, dword ptr [ebp - 0xc] */ 7996 edi = POP32_VAL(esp); /* 0x360806BC: pop edi */ 7997 MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x360806BD: mov byte ptr [ebx + 0xc], 0 */ 7998 esi = POP32_VAL(esp); /* 0x360806C1: pop esi */ 7999 eax = ebx; /* 0x360806C2: mov eax, ebx */ 8000 ebx = POP32_VAL(esp); /* 0x360806C4: pop ebx */ 8001 MEM32(FS_BASE + (0)) = ecx; /* 0x360806C5: mov dword ptr fs:[0], ecx */ 8002 esp = ebp; /* 0x360806CC: mov esp, ebp */ 8003 ebp = POP32_VAL(esp); /* 0x360806CE: pop ebp */ 8004 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360806CF: ret 0x10 */ 8005 RECOMP_REGS_OUT(); 8006 } 8007 8008 void sub_360806E0(void) { 8009 int _fpu_cmp = 0; 8010 uint32_t _cf = 0; 8011 int _df = 1; 8012 uint32_t _flag_k = FK_NONE; 8013 uint32_t _flag_a = 0, _flag_b = 0; 8014 uint32_t _itail_tgt = 0; 8015 RECOMP_REGS_LOCALS 8016 RECOMP_ENTER(0x360806E0u); 8017 8018 L_360806E0: 8019 PUSH32(esp, ebp); /* 0x360806E0: push ebp */ 8020 ebp = esp; /* 0x360806E1: mov ebp, esp */ 8021 PUSH32(esp, 0xFFFFFFFFu); /* 0x360806E3: push -1 */ 8022 PUSH32(esp, 0x361656E9u); /* 0x360806E5: push 0x361656e9 */ 8023 eax = MEM32(FS_BASE + (0)); /* 0x360806EA: mov eax, dword ptr fs:[0] */ 8024 PUSH32(esp, eax); /* 0x360806F0: push eax */ 8025 MEM32(FS_BASE + (0)) = esp; /* 0x360806F1: mov dword ptr fs:[0], esp */ 8026 PUSH32(esp, ecx); /* 0x360806F8: push ecx */ 8027 PUSH32(esp, edi); /* 0x360806F9: push edi */ 8028 MEM32(ebp + (-0x10)) = ecx; /* 0x360806FA: mov dword ptr [ebp - 0x10], ecx */ 8029 MEM32(ecx) = 0x36171840u; /* 0x360806FD: mov dword ptr [ecx], 0x36171840 */ 8030 edi = MEM32(ecx + 0x2C); /* 0x36080703: mov edi, dword ptr [ecx + 0x2c] */ 8031 /* test edi, edi */ /* 0x36080706: test edi, edi */ 8032 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 8033 _cf = 0; 8034 _flag_k = FK_TEST; 8035 MEM32(ebp + (-0x4)) = 0; /* 0x36080708: mov dword ptr [ebp - 4], 0 */ 8036 if (TEST_Z(_flag_a, _flag_b)) goto L_36080762; /* 0x3608070F: je 0x36080762 */ 8037 L_36080711: 8038 PUSH32(esp, ebx); /* 0x36080711: push ebx */ 8039 ebx = MEM32(edi + 0x4); /* 0x36080712: mov ebx, dword ptr [edi + 4] */ 8040 PUSH32(esp, esi); /* 0x36080715: push esi */ 8041 esi = MEM32(ebx); /* 0x36080716: mov esi, dword ptr [ebx] */ 8042 /* cmp esi, ebx */ /* 0x36080718: cmp esi, ebx */ 8043 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8045 _flag_k = FK_CMP; 8046 if (CMP_EQ(_flag_a, _flag_b)) goto L_36080743; /* 0x3608071A: je 0x36080743 */ 8047 L_3608071C: 8048 eax = esi; /* 0x3608071C: mov eax, esi */ 8049 ecx = MEM32(eax + 0x4); /* 0x3608071E: mov ecx, dword ptr [eax + 4] */ 8050 edx = MEM32(eax); /* 0x36080721: mov edx, dword ptr [eax] */ 8051 esi = MEM32(esi); /* 0x36080723: mov esi, dword ptr [esi] */ 8052 MEM32(ecx) = edx; /* 0x36080725: mov dword ptr [ecx], edx */ 8053 ecx = MEM32(eax); /* 0x36080727: mov ecx, dword ptr [eax] */ 8054 edx = MEM32(eax + 0x4); /* 0x36080729: mov edx, dword ptr [eax + 4] */ 8055 PUSH32(esp, eax); /* 0x3608072C: push eax */ 8056 MEM32(ecx + 0x4) = edx; /* 0x3608072D: mov dword ptr [ecx + 4], edx */ 8057 RECOMP_ICALL(0x3615FCC4u); /* 0x36080730: call 0x3615fcc4 */ /* not lifted */ 8058 RECOMP_FLAGS_IN(); 8059 ecx = MEM32(edi + 0x8); /* 0x36080735: mov ecx, dword ptr [edi + 8] */ 8060 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8061 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8062 esp = esp + 4; /* 0x36080738: add esp, 4 */ 8063 _flag_k = FK_ADD; 8064 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8065 ecx = ecx - 1; /* 0x3608073B: dec ecx */ 8066 _flag_k = FK_DEC; 8067 /* cmp esi, ebx */ /* 0x3608073C: cmp esi, ebx */ 8068 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 8069 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8070 _flag_k = FK_CMP; 8071 MEM32(edi + 0x8) = ecx; /* 0x3608073E: mov dword ptr [edi + 8], ecx */ 8072 RECOMP_BACKEDGE(); 8073 if (CMP_NE(_flag_a, _flag_b)) goto L_3608071C; /* 0x36080741: jne 0x3608071c */ 8074 L_36080743: 8075 eax = MEM32(edi + 0x4); /* 0x36080743: mov eax, dword ptr [edi + 4] */ 8076 PUSH32(esp, eax); /* 0x36080746: push eax */ 8077 RECOMP_ICALL(0x3615FCC4u); /* 0x36080747: call 0x3615fcc4 */ /* not lifted */ 8078 RECOMP_FLAGS_IN(); 8079 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8080 eax = 0; /* 0x3608074C: xor eax, eax */ 8081 _cf = 0; 8082 _flag_k = FK_TEST; 8083 PUSH32(esp, edi); /* 0x3608074E: push edi */ 8084 MEM32(edi + 0x4) = eax; /* 0x3608074F: mov dword ptr [edi + 4], eax */ 8085 MEM32(edi + 0x8) = eax; /* 0x36080752: mov dword ptr [edi + 8], eax */ 8086 RECOMP_ICALL(0x3615FCC4u); /* 0x36080755: call 0x3615fcc4 */ /* not lifted */ 8087 RECOMP_FLAGS_IN(); 8088 ecx = MEM32(ebp + (-0x10)); /* 0x3608075A: mov ecx, dword ptr [ebp - 0x10] */ 8089 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8090 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8091 esp = esp + 8; /* 0x3608075D: add esp, 8 */ 8092 _flag_k = FK_ADD; 8093 esi = POP32_VAL(esp); /* 0x36080760: pop esi */ 8094 ebx = POP32_VAL(esp); /* 0x36080761: pop ebx */ 8095 L_36080762: 8096 /* test ecx, ecx */ /* 0x36080762: test ecx, ecx */ 8097 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8098 _cf = 0; 8099 _flag_k = FK_TEST; 8100 edi = POP32_VAL(esp); /* 0x36080764: pop edi */ 8101 if (TEST_Z(_flag_a, _flag_b)) goto L_3608076C; /* 0x36080765: je 0x3608076c */ 8102 L_36080767: 8103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 8104 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8105 ecx = ecx + 0x20u; /* 0x36080767: add ecx, 0x20 */ 8106 _flag_k = FK_ADD; 8107 goto L_3608076E; /* 0x3608076A: jmp 0x3608076e */ 8108 L_3608076C: 8109 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8110 ecx = 0; /* 0x3608076C: xor ecx, ecx */ 8111 _cf = 0; 8112 _flag_k = FK_TEST; 8113 L_3608076E: 8114 RECOMP_ICALL(0x360686B0u); /* 0x3608076E: call 0x360686b0 */ /* not lifted */ 8115 RECOMP_FLAGS_IN(); 8116 ecx = MEM32(ebp + (-0x10)); /* 0x36080773: mov ecx, dword ptr [ebp - 0x10] */ 8117 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36080776: mov dword ptr [ebp - 4], 0xffffffff */ 8118 RECOMP_ICALL(MEM32(0x3616FFD4)); /* 0x3608077D: call dword ptr [0x3616ffd4] */ 8119 RECOMP_FLAGS_IN(); 8120 ecx = MEM32(ebp + (-0xC)); /* 0x36080783: mov ecx, dword ptr [ebp - 0xc] */ 8121 MEM32(FS_BASE + (0)) = ecx; /* 0x36080786: mov dword ptr fs:[0], ecx */ 8122 esp = ebp; /* 0x3608078D: mov esp, ebp */ 8123 ebp = POP32_VAL(esp); /* 0x3608078F: pop ebp */ 8124 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080790: ret */ 8125 RECOMP_REGS_OUT(); 8126 } 8127 8128 void sub_360807A0(void) { 8129 int _fpu_cmp = 0; 8130 uint32_t _cf = 0; 8131 int _df = 1; 8132 uint32_t _flag_k = FK_NONE; 8133 uint32_t _flag_a = 0, _flag_b = 0; 8134 uint32_t _itail_tgt = 0; 8135 RECOMP_REGS_LOCALS 8136 RECOMP_ENTER(0x360807A0u); 8137 8138 L_360807A0: 8139 PUSH32(esp, ebp); /* 0x360807A0: push ebp */ 8140 ebp = esp; /* 0x360807A1: mov ebp, esp */ 8141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8142 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8143 esp = esp - 8; /* 0x360807A3: sub esp, 8 */ 8144 _flag_k = FK_CMP; 8145 PUSH32(esp, ebx); /* 0x360807A6: push ebx */ 8146 ebx = MEM32(0x3616FA8C); /* 0x360807A7: mov ebx, dword ptr [0x3616fa8c] */ 8147 PUSH32(esp, esi); /* 0x360807AD: push esi */ 8148 PUSH32(esp, edi); /* 0x360807AE: push edi */ 8149 edi = MEM32(ebp + 0x8); /* 0x360807AF: mov edi, dword ptr [ebp + 8] */ 8150 eax = ebp + (-0x4); /* 0x360807B2: lea eax, [ebp - 4] */ 8151 esi = ecx; /* 0x360807B5: mov esi, ecx */ 8152 PUSH32(esp, eax); /* 0x360807B7: push eax */ 8153 ecx = edi; /* 0x360807B8: mov ecx, edi */ 8154 RECOMP_ICALL(ebx); /* 0x360807BA: call ebx */ 8155 RECOMP_FLAGS_IN(); 8156 eax = MEM32(ebp + (-0x4)); /* 0x360807BC: mov eax, dword ptr [ebp - 4] */ 8157 /* test eax, eax */ /* 0x360807BF: test eax, eax */ 8158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8159 _cf = 0; 8160 _flag_k = FK_TEST; 8161 MEM32(esi + 0x20) = eax; /* 0x360807C1: mov dword ptr [esi + 0x20], eax */ 8162 if (TEST_LE(_flag_a, _flag_b)) goto L_3608086E; /* 0x360807C4: jle 0x3608086e */ 8163 L_360807CA: 8164 /* cmp eax, 0x12u */ /* 0x360807CA: cmp eax, 0x12 */ 8165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x12u); 8166 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8167 _flag_k = FK_CMP; 8168 if (CMP_GE(_flag_a, _flag_b)) goto L_3608086E; /* 0x360807CD: jge 0x3608086e */ 8169 L_360807D3: 8170 /* cmp eax, 0x11u */ /* 0x360807D3: cmp eax, 0x11 */ 8171 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x11u); 8172 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8173 _flag_k = FK_CMP; 8174 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608086E; /* 0x360807D6: je 0x3608086e */ 8175 L_360807DC: 8176 ecx = esi + 0x24; /* 0x360807DC: lea ecx, [esi + 0x24] */ 8177 PUSH32(esp, ecx); /* 0x360807DF: push ecx */ 8178 ecx = edi; /* 0x360807E0: mov ecx, edi */ 8179 RECOMP_ICALL(ebx); /* 0x360807E2: call ebx */ 8180 RECOMP_FLAGS_IN(); 8181 edx = MEM32(esi + 0x2C); /* 0x360807E4: mov edx, dword ptr [esi + 0x2c] */ 8182 PUSH32(esp, edx); /* 0x360807E7: push edx */ 8183 PUSH32(esp, edi); /* 0x360807E8: push edi */ 8184 RECOMP_ICALL(0x3601DD60u); /* 0x360807E9: call 0x3601dd60 */ /* not lifted */ 8185 RECOMP_FLAGS_IN(); 8186 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8187 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8188 esp = esp + 8; /* 0x360807EE: add esp, 8 */ 8189 _flag_k = FK_ADD; 8190 eax = ebp + (-0x8); /* 0x360807F1: lea eax, [ebp - 8] */ 8191 PUSH32(esp, eax); /* 0x360807F4: push eax */ 8192 ecx = edi; /* 0x360807F5: mov ecx, edi */ 8193 RECOMP_ICALL(ebx); /* 0x360807F7: call ebx */ 8194 RECOMP_FLAGS_IN(); 8195 edx = MEM32(ebp + (-0x8)); /* 0x360807F9: mov edx, dword ptr [ebp - 8] */ 8196 /* test edx, edx */ /* 0x360807FC: test edx, edx */ 8197 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 8198 _cf = 0; 8199 _flag_k = FK_TEST; 8200 SET_LO8(ecx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x360807FE: setne cl */ 8201 MEM8(esi + 0x30) = (uint8_t)(LO8(ecx)); /* 0x36080801: mov byte ptr [esi + 0x30], cl */ 8202 ecx = edi; /* 0x36080804: mov ecx, edi */ 8203 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36080806: call dword ptr [0x3616fadc] */ 8204 RECOMP_FLAGS_IN(); 8205 /* test eax, eax */ /* 0x3608080C: test eax, eax */ 8206 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8207 _cf = 0; 8208 _flag_k = FK_TEST; 8209 if (TEST_Z(_flag_a, _flag_b)) goto L_3608086E; /* 0x3608080E: je 0x3608086e */ 8210 L_36080810: 8211 edx = ebp + 0x8; /* 0x36080810: lea edx, [ebp + 8] */ 8212 PUSH32(esp, edx); /* 0x36080813: push edx */ 8213 ecx = edi; /* 0x36080814: mov ecx, edi */ 8214 RECOMP_ICALL(ebx); /* 0x36080816: call ebx */ 8215 RECOMP_FLAGS_IN(); 8216 /* cmp MEM32(ebp + 0x8), 0xFAu */ /* 0x36080818: cmp dword ptr [ebp + 8], 0xfa */ 8217 _flag_a = (uint32_t)(MEM32(ebp + 0x8)); _flag_b = (uint32_t)(0xFAu); 8218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8219 _flag_k = FK_CMP; 8220 if (CMP_A(_flag_a, _flag_b)) goto L_3608086E; /* 0x3608081F: ja 0x3608086e */ 8221 L_36080821: 8222 eax = MEM32(esi + 0x28); /* 0x36080821: mov eax, dword ptr [esi + 0x28] */ 8223 /* test eax, eax */ /* 0x36080824: test eax, eax */ 8224 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8225 _cf = 0; 8226 _flag_k = FK_TEST; 8227 if (TEST_Z(_flag_a, _flag_b)) goto L_36080831; /* 0x36080826: je 0x36080831 */ 8228 L_36080828: 8229 PUSH32(esp, eax); /* 0x36080828: push eax */ 8230 RECOMP_ICALL(0x3615FCC4u); /* 0x36080829: call 0x3615fcc4 */ /* not lifted */ 8231 RECOMP_FLAGS_IN(); 8232 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8233 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8234 esp = esp + 4; /* 0x3608082E: add esp, 4 */ 8235 _flag_k = FK_ADD; 8236 L_36080831: 8237 eax = MEM32(ebp + 0x8); /* 0x36080831: mov eax, dword ptr [ebp + 8] */ 8238 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8239 eax = eax + 1; /* 0x36080834: inc eax */ 8240 _flag_k = FK_INC; 8241 PUSH32(esp, eax); /* 0x36080835: push eax */ 8242 RECOMP_ICALL(0x3615FD6Au); /* 0x36080836: call 0x3615fd6a */ /* not lifted */ 8243 RECOMP_FLAGS_IN(); 8244 ecx = MEM32(ebp + 0x8); /* 0x3608083B: mov ecx, dword ptr [ebp + 8] */ 8245 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8246 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8247 esp = esp + 4; /* 0x3608083E: add esp, 4 */ 8248 _flag_k = FK_ADD; 8249 PUSH32(esp, ecx); /* 0x36080841: push ecx */ 8250 PUSH32(esp, eax); /* 0x36080842: push eax */ 8251 ecx = edi; /* 0x36080843: mov ecx, edi */ 8252 MEM32(esi + 0x28) = eax; /* 0x36080845: mov dword ptr [esi + 0x28], eax */ 8253 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x36080848: call dword ptr [0x3616fac4] */ 8254 RECOMP_FLAGS_IN(); 8255 edx = MEM32(esi + 0x28); /* 0x3608084E: mov edx, dword ptr [esi + 0x28] */ 8256 eax = MEM32(ebp + 0x8); /* 0x36080851: mov eax, dword ptr [ebp + 8] */ 8257 ecx = edi; /* 0x36080854: mov ecx, edi */ 8258 MEM8(edx + eax) = (uint8_t)(0); /* 0x36080856: mov byte ptr [edx + eax], 0 */ 8259 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x3608085A: call dword ptr [0x3616fadc] */ 8260 RECOMP_FLAGS_IN(); 8261 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8262 _cf = (eax) != 0; 8263 eax = (uint32_t)(-(int32_t)eax); /* 0x36080860: neg eax */ 8264 _flag_k = FK_CMP; 8265 edi = POP32_VAL(esp); /* 0x36080862: pop edi */ 8266 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36080863: sbb eax, eax */ 8267 eax = _sc ? 0xFFFFFFFFu : 0; 8268 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8269 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8270 esi = POP32_VAL(esp); /* 0x36080865: pop esi */ 8271 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8272 eax = eax + 1; /* 0x36080866: inc eax */ 8273 _flag_k = FK_INC; 8274 ebx = POP32_VAL(esp); /* 0x36080867: pop ebx */ 8275 esp = ebp; /* 0x36080868: mov esp, ebp */ 8276 ebp = POP32_VAL(esp); /* 0x3608086A: pop ebp */ 8277 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608086B: ret 4 */ 8278 L_3608086E: 8279 edi = POP32_VAL(esp); /* 0x3608086E: pop edi */ 8280 esi = POP32_VAL(esp); /* 0x3608086F: pop esi */ 8281 eax = 1; /* 0x36080870: mov eax, 1 */ 8282 ebx = POP32_VAL(esp); /* 0x36080875: pop ebx */ 8283 esp = ebp; /* 0x36080876: mov esp, ebp */ 8284 ebp = POP32_VAL(esp); /* 0x36080878: pop ebp */ 8285 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080879: ret 4 */ 8286 RECOMP_REGS_OUT(); 8287 } 8288 8289 void sub_36080880(void) { 8290 int _fpu_cmp = 0; 8291 uint32_t _cf = 0; 8292 int _df = 1; 8293 uint32_t _flag_k = FK_NONE; 8294 uint32_t _flag_a = 0, _flag_b = 0; 8295 uint32_t _itail_tgt = 0; 8296 RECOMP_REGS_LOCALS 8297 RECOMP_ENTER(0x36080880u); 8298 8299 L_36080880: 8300 PUSH32(esp, ebp); /* 0x36080880: push ebp */ 8301 ebp = esp; /* 0x36080881: mov ebp, esp */ 8302 PUSH32(esp, ebx); /* 0x36080883: push ebx */ 8303 ebx = MEM32(ebp + 0x8); /* 0x36080884: mov ebx, dword ptr [ebp + 8] */ 8304 PUSH32(esp, esi); /* 0x36080887: push esi */ 8305 esi = ecx; /* 0x36080888: mov esi, ecx */ 8306 eax = MEM32(esi + 0x20); /* 0x3608088A: mov eax, dword ptr [esi + 0x20] */ 8307 PUSH32(esp, edi); /* 0x3608088D: push edi */ 8308 edi = MEM32(0x3616FAEC); /* 0x3608088E: mov edi, dword ptr [0x3616faec] */ 8309 PUSH32(esp, eax); /* 0x36080894: push eax */ 8310 ecx = ebx; /* 0x36080895: mov ecx, ebx */ 8311 RECOMP_ICALL(edi); /* 0x36080897: call edi */ 8312 RECOMP_FLAGS_IN(); 8313 ecx = MEM32(esi + 0x24); /* 0x36080899: mov ecx, dword ptr [esi + 0x24] */ 8314 PUSH32(esp, ecx); /* 0x3608089C: push ecx */ 8315 ecx = ebx; /* 0x3608089D: mov ecx, ebx */ 8316 RECOMP_ICALL(edi); /* 0x3608089F: call edi */ 8317 RECOMP_FLAGS_IN(); 8318 edx = MEM32(esi + 0x2C); /* 0x360808A1: mov edx, dword ptr [esi + 0x2c] */ 8319 PUSH32(esp, edx); /* 0x360808A4: push edx */ 8320 PUSH32(esp, ebx); /* 0x360808A5: push ebx */ 8321 RECOMP_ICALL(0x3601DD10u); /* 0x360808A6: call 0x3601dd10 */ /* not lifted */ 8322 RECOMP_FLAGS_IN(); 8323 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8324 eax = 0; /* 0x360808AB: xor eax, eax */ 8325 _cf = 0; 8326 _flag_k = FK_TEST; 8327 SET_LO8(eax, MEM8(esi + 0x30)); /* 0x360808AD: mov al, byte ptr [esi + 0x30] */ 8328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8329 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8330 esp = esp + 8; /* 0x360808B0: add esp, 8 */ 8331 _flag_k = FK_ADD; 8332 ecx = ebx; /* 0x360808B3: mov ecx, ebx */ 8333 PUSH32(esp, eax); /* 0x360808B5: push eax */ 8334 RECOMP_ICALL(edi); /* 0x360808B6: call edi */ 8335 RECOMP_FLAGS_IN(); 8336 eax = MEM32(esi + 0x28); /* 0x360808B8: mov eax, dword ptr [esi + 0x28] */ 8337 /* test eax, eax */ /* 0x360808BB: test eax, eax */ 8338 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8339 _cf = 0; 8340 _flag_k = FK_TEST; 8341 if (TEST_Z(_flag_a, _flag_b)) goto L_360808D6; /* 0x360808BD: je 0x360808d6 */ 8342 L_360808BF: 8343 edi = eax; /* 0x360808BF: mov edi, eax */ 8344 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8345 ecx = ecx | 0xFFFFFFFFu; /* 0x360808C1: or ecx, 0xffffffff */ 8346 _cf = 0; 8347 _flag_k = FK_TEST; 8348 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8349 eax = 0; /* 0x360808C4: xor eax, eax */ 8350 _cf = 0; 8351 _flag_k = FK_TEST; 8352 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; } /* 0x360808C6: repne scasb al, byte ptr es:[edi] */ 8353 edi = MEM32(0x3616FAEC); /* 0x360808C8: mov edi, dword ptr [0x3616faec] */ 8354 ecx = ~ecx; /* 0x360808CE: not ecx */ 8355 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8356 ecx = ecx - 1; /* 0x360808D0: dec ecx */ 8357 _flag_k = FK_DEC; 8358 MEM32(ebp + 0x8) = ecx; /* 0x360808D1: mov dword ptr [ebp + 8], ecx */ 8359 goto L_360808DD; /* 0x360808D4: jmp 0x360808dd */ 8360 L_360808D6: 8361 MEM32(ebp + 0x8) = 0; /* 0x360808D6: mov dword ptr [ebp + 8], 0 */ 8362 L_360808DD: 8363 ecx = MEM32(ebp + 0x8); /* 0x360808DD: mov ecx, dword ptr [ebp + 8] */ 8364 PUSH32(esp, ecx); /* 0x360808E0: push ecx */ 8365 ecx = ebx; /* 0x360808E1: mov ecx, ebx */ 8366 RECOMP_ICALL(edi); /* 0x360808E3: call edi */ 8367 RECOMP_FLAGS_IN(); 8368 eax = MEM32(ebp + 0x8); /* 0x360808E5: mov eax, dword ptr [ebp + 8] */ 8369 /* test eax, eax */ /* 0x360808E8: test eax, eax */ 8370 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8371 _cf = 0; 8372 _flag_k = FK_TEST; 8373 if (TEST_Z(_flag_a, _flag_b)) goto L_360808F9; /* 0x360808EA: jbe 0x360808f9 */ 8374 L_360808EC: 8375 edx = MEM32(esi + 0x28); /* 0x360808EC: mov edx, dword ptr [esi + 0x28] */ 8376 PUSH32(esp, eax); /* 0x360808EF: push eax */ 8377 PUSH32(esp, edx); /* 0x360808F0: push edx */ 8378 ecx = ebx; /* 0x360808F1: mov ecx, ebx */ 8379 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x360808F3: call dword ptr [0x3616fab0] */ 8380 RECOMP_FLAGS_IN(); 8381 L_360808F9: 8382 edi = POP32_VAL(esp); /* 0x360808F9: pop edi */ 8383 esi = POP32_VAL(esp); /* 0x360808FA: pop esi */ 8384 ebx = POP32_VAL(esp); /* 0x360808FB: pop ebx */ 8385 ebp = POP32_VAL(esp); /* 0x360808FC: pop ebp */ 8386 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360808FD: ret 4 */ 8387 RECOMP_REGS_OUT(); 8388 } 8389 8390 void sub_36080900(void) { 8391 int _fpu_cmp = 0; 8392 uint32_t _cf = 0; 8393 int _df = 1; 8394 uint32_t _flag_k = FK_NONE; 8395 uint32_t _flag_a = 0, _flag_b = 0; 8396 uint32_t _itail_tgt = 0; 8397 RECOMP_REGS_LOCALS 8398 RECOMP_ENTER(0x36080900u); 8399 8400 L_36080900: 8401 PUSH32(esp, esi); /* 0x36080900: push esi */ 8402 esi = ecx; /* 0x36080901: mov esi, ecx */ 8403 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36080903: call dword ptr [0x3616ffd0] */ 8404 RECOMP_FLAGS_IN(); 8405 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8406 eax = 0; /* 0x36080909: xor eax, eax */ 8407 _cf = 0; 8408 _flag_k = FK_TEST; 8409 MEM32(esi + 0x24) = eax; /* 0x3608090B: mov dword ptr [esi + 0x24], eax */ 8410 MEM32(esi + 0x28) = eax; /* 0x3608090E: mov dword ptr [esi + 0x28], eax */ 8411 MEM32(esi + 0x2C) = eax; /* 0x36080911: mov dword ptr [esi + 0x2c], eax */ 8412 MEM32(esi + 0x30) = eax; /* 0x36080914: mov dword ptr [esi + 0x30], eax */ 8413 MEM32(esi + 0x20) = eax; /* 0x36080917: mov dword ptr [esi + 0x20], eax */ 8414 MEM32(esi) = 0x36171864u; /* 0x3608091A: mov dword ptr [esi], 0x36171864 */ 8415 eax = esi; /* 0x36080920: mov eax, esi */ 8416 esi = POP32_VAL(esp); /* 0x36080922: pop esi */ 8417 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080923: ret */ 8418 RECOMP_REGS_OUT(); 8419 } 8420 8421 void sub_36080930(void) { 8422 int _fpu_cmp = 0; 8423 uint32_t _cf = 0; 8424 int _df = 1; 8425 uint32_t _flag_k = FK_NONE; 8426 uint32_t _flag_a = 0, _flag_b = 0; 8427 uint32_t _itail_tgt = 0; 8428 RECOMP_REGS_LOCALS 8429 RECOMP_ENTER(0x36080930u); 8430 8431 L_36080930: 8432 PUSH32(esp, ebp); /* 0x36080930: push ebp */ 8433 ebp = esp; /* 0x36080931: mov ebp, esp */ 8434 PUSH32(esp, esi); /* 0x36080933: push esi */ 8435 esi = ecx; /* 0x36080934: mov esi, ecx */ 8436 RECOMP_ICALL(0x36080A60u); /* 0x36080936: call 0x36080a60 */ /* not lifted */ 8437 RECOMP_FLAGS_IN(); 8438 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608093B: test byte ptr [ebp + 8], 1 */ 8439 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8440 _cf = 0; 8441 _flag_k = FK_NARROW(FK_TEST, 24); 8442 if (TEST_Z(_flag_a, _flag_b)) goto L_3608094A; /* 0x3608093F: je 0x3608094a */ 8443 L_36080941: 8444 PUSH32(esp, esi); /* 0x36080941: push esi */ 8445 RECOMP_ICALL(0x3615FCC4u); /* 0x36080942: call 0x3615fcc4 */ /* not lifted */ 8446 RECOMP_FLAGS_IN(); 8447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8449 esp = esp + 4; /* 0x36080947: add esp, 4 */ 8450 _flag_k = FK_ADD; 8451 L_3608094A: 8452 eax = esi; /* 0x3608094A: mov eax, esi */ 8453 esi = POP32_VAL(esp); /* 0x3608094C: pop esi */ 8454 ebp = POP32_VAL(esp); /* 0x3608094D: pop ebp */ 8455 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608094E: ret 4 */ 8456 RECOMP_REGS_OUT(); 8457 } 8458 8459 void sub_36080960(void) { 8460 int _fpu_cmp = 0; 8461 uint32_t _cf = 0; 8462 int _df = 1; 8463 uint32_t _flag_k = FK_NONE; 8464 uint32_t _flag_a = 0, _flag_b = 0; 8465 uint32_t _itail_tgt = 0; 8466 RECOMP_REGS_LOCALS 8467 RECOMP_ENTER(0x36080960u); 8468 8469 L_36080960: 8470 PUSH32(esp, ebp); /* 0x36080960: push ebp */ 8471 ebp = esp; /* 0x36080961: mov ebp, esp */ 8472 PUSH32(esp, 0xFFFFFFFFu); /* 0x36080963: push -1 */ 8473 PUSH32(esp, 0x36165709u); /* 0x36080965: push 0x36165709 */ 8474 eax = MEM32(FS_BASE + (0)); /* 0x3608096A: mov eax, dword ptr fs:[0] */ 8475 PUSH32(esp, eax); /* 0x36080970: push eax */ 8476 MEM32(FS_BASE + (0)) = esp; /* 0x36080971: mov dword ptr fs:[0], esp */ 8477 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 8478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8479 esp = esp - 0x14u; /* 0x36080978: sub esp, 0x14 */ 8480 _flag_k = FK_CMP; 8481 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3608097B: mov al, byte ptr [ebp + 0xb] */ 8482 PUSH32(esp, ebx); /* 0x3608097E: push ebx */ 8483 PUSH32(esp, esi); /* 0x3608097F: push esi */ 8484 ebx = ecx; /* 0x36080980: mov ebx, ecx */ 8485 PUSH32(esp, edi); /* 0x36080982: push edi */ 8486 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8487 ecx = ecx | 0xFFFFFFFFu; /* 0x36080983: or ecx, 0xffffffff */ 8488 _cf = 0; 8489 _flag_k = FK_TEST; 8490 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8491 esi = 0; /* 0x36080986: xor esi, esi */ 8492 _cf = 0; 8493 _flag_k = FK_TEST; 8494 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36080988: mov byte ptr [ebp - 0x20], al */ 8495 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8496 eax = 0; /* 0x3608098B: xor eax, eax */ 8497 _cf = 0; 8498 _flag_k = FK_TEST; 8499 edi = 0x361B4228u; /* 0x3608098D: mov edi, 0x361b4228 */ 8500 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; } /* 0x36080992: repne scasb al, byte ptr es:[edi] */ 8501 ecx = ~ecx; /* 0x36080994: not ecx */ 8502 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8503 ecx = ecx - 1; /* 0x36080996: dec ecx */ 8504 _flag_k = FK_DEC; 8505 edi = ecx; /* 0x36080997: mov edi, ecx */ 8506 PUSH32(esp, 1); /* 0x36080999: push 1 */ 8507 PUSH32(esp, edi); /* 0x3608099B: push edi */ 8508 ecx = ebp + (-0x20); /* 0x3608099C: lea ecx, [ebp - 0x20] */ 8509 MEM32(ebp + (-0x1C)) = esi; /* 0x3608099F: mov dword ptr [ebp - 0x1c], esi */ 8510 MEM32(ebp + (-0x18)) = esi; /* 0x360809A2: mov dword ptr [ebp - 0x18], esi */ 8511 MEM32(ebp + (-0x14)) = esi; /* 0x360809A5: mov dword ptr [ebp - 0x14], esi */ 8512 MEM32(ebp + (-0x10)) = edi; /* 0x360809A8: mov dword ptr [ebp - 0x10], edi */ 8513 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360809AB: call dword ptr [0x3616f00c] */ 8514 RECOMP_FLAGS_IN(); 8515 /* test LO8(eax), LO8(eax) */ /* 0x360809B1: test al, al */ 8516 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8517 _cf = 0; 8518 _flag_k = FK_NARROW(FK_TEST, 24); 8519 if (TEST_Z(_flag_a, _flag_b)) goto L_360809DB; /* 0x360809B3: je 0x360809db */ 8520 L_360809B5: 8521 ecx = edi; /* 0x360809B5: mov ecx, edi */ 8522 edi = MEM32(ebp + (-0x1C)); /* 0x360809B7: mov edi, dword ptr [ebp - 0x1c] */ 8523 edx = ecx; /* 0x360809BA: mov edx, ecx */ 8524 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360809BC: shr ecx, 2 */ 8525 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8526 ecx = ecx >> 2u; /* 0x360809BC: shr ecx, 2 */ 8527 esi = 0x361B4228u; /* 0x360809BF: mov esi, 0x361b4228 */ 8528 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360809C4: 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; } 8529 ecx = edx; /* 0x360809C6: mov ecx, edx */ 8530 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8531 ecx = ecx & 3; /* 0x360809C8: and ecx, 3 */ 8532 _cf = 0; 8533 _flag_k = FK_TEST; 8534 eax = edx; /* 0x360809CB: mov eax, edx */ 8535 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360809CD: 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; } 8536 PUSH32(esp, eax); /* 0x360809CF: push eax */ 8537 ecx = ebp + (-0x20); /* 0x360809D0: lea ecx, [ebp - 0x20] */ 8538 RECOMP_ICALL(MEM32(0x3616F044)); /* 0x360809D3: call dword ptr [0x3616f044] */ 8539 RECOMP_FLAGS_IN(); 8540 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8541 esi = 0; /* 0x360809D9: xor esi, esi */ 8542 _cf = 0; 8543 _flag_k = FK_TEST; 8544 L_360809DB: 8545 edx = MEM32(ebp + 0x8); /* 0x360809DB: mov edx, dword ptr [ebp + 8] */ 8546 ecx = ebp + (-0x20); /* 0x360809DE: lea ecx, [ebp - 0x20] */ 8547 PUSH32(esp, ecx); /* 0x360809E1: push ecx */ 8548 PUSH32(esp, edx); /* 0x360809E2: push edx */ 8549 ecx = ebx; /* 0x360809E3: mov ecx, ebx */ 8550 MEM32(ebp + (-0x4)) = esi; /* 0x360809E5: mov dword ptr [ebp - 4], esi */ 8551 RECOMP_ICALL(MEM32(0x3616FC0C)); /* 0x360809E8: call dword ptr [0x3616fc0c] */ 8552 RECOMP_FLAGS_IN(); 8553 eax = MEM32(ebp + (-0x1C)); /* 0x360809EE: mov eax, dword ptr [ebp - 0x1c] */ 8554 /* cmp eax, esi */ /* 0x360809F1: cmp eax, esi */ 8555 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 8556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8557 _flag_k = FK_CMP; 8558 if (CMP_EQ(_flag_a, _flag_b)) goto L_36080A11; /* 0x360809F3: je 0x36080a11 */ 8559 L_360809F5: 8560 ecx = eax + (-0x1); /* 0x360809F5: lea ecx, [eax - 1] */ 8561 SET_LO8(eax, MEM8(ecx)); /* 0x360809F8: mov al, byte ptr [ecx] */ 8562 /* test LO8(eax), LO8(eax) */ /* 0x360809FA: test al, al */ 8563 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8564 _cf = 0; 8565 _flag_k = FK_NARROW(FK_TEST, 24); 8566 if (TEST_Z(_flag_a, _flag_b)) goto L_36080A08; /* 0x360809FC: je 0x36080a08 */ 8567 L_360809FE: 8568 /* cmp LO8(eax), 0xFFu */ /* 0x360809FE: cmp al, 0xff */ 8569 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8571 _flag_k = FK_NARROW(FK_CMP, 24); 8572 if (CMP_EQ(_flag_a, _flag_b)) goto L_36080A08; /* 0x36080A00: je 0x36080a08 */ 8573 L_36080A02: 8574 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8575 SET_LO8(eax, LO8(eax) - 1); /* 0x36080A02: dec al */ 8576 _flag_k = FK_NARROW(FK_DEC, 24); 8577 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36080A04: mov byte ptr [ecx], al */ 8578 goto L_36080A11; /* 0x36080A06: jmp 0x36080a11 */ 8579 L_36080A08: 8580 PUSH32(esp, ecx); /* 0x36080A08: push ecx */ 8581 RECOMP_ICALL(0x3615FCC4u); /* 0x36080A09: call 0x3615fcc4 */ /* not lifted */ 8582 RECOMP_FLAGS_IN(); 8583 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8584 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8585 esp = esp + 4; /* 0x36080A0E: add esp, 4 */ 8586 _flag_k = FK_ADD; 8587 L_36080A11: 8588 eax = MEM32(ebp + 0xC); /* 0x36080A11: mov eax, dword ptr [ebp + 0xc] */ 8589 MEM32(ebx + 0x24) = esi; /* 0x36080A14: mov dword ptr [ebx + 0x24], esi */ 8590 MEM32(ebx + 0x28) = esi; /* 0x36080A17: mov dword ptr [ebx + 0x28], esi */ 8591 MEM32(ebx + 0x2C) = esi; /* 0x36080A1A: mov dword ptr [ebx + 0x2c], esi */ 8592 MEM32(ebx + 0x30) = esi; /* 0x36080A1D: mov dword ptr [ebx + 0x30], esi */ 8593 MEM32(ebx + 0x20) = eax; /* 0x36080A20: mov dword ptr [ebx + 0x20], eax */ 8594 eax = MEM32(ebp + 0x10); /* 0x36080A23: mov eax, dword ptr [ebp + 0x10] */ 8595 MEM32(ebx) = 0x36171864u; /* 0x36080A26: mov dword ptr [ebx], 0x36171864 */ 8596 ecx = MEM32(eax); /* 0x36080A2C: mov ecx, dword ptr [eax] */ 8597 MEM32(ebx + 0x24) = ecx; /* 0x36080A2E: mov dword ptr [ebx + 0x24], ecx */ 8598 edx = MEM32(eax + 0x4); /* 0x36080A31: mov edx, dword ptr [eax + 4] */ 8599 eax = MEM32(ebp + 0x14); /* 0x36080A34: mov eax, dword ptr [ebp + 0x14] */ 8600 MEM32(ebx + 0x28) = edx; /* 0x36080A37: mov dword ptr [ebx + 0x28], edx */ 8601 ecx = MEM32(eax); /* 0x36080A3A: mov ecx, dword ptr [eax] */ 8602 MEM32(ebx + 0x2C) = ecx; /* 0x36080A3C: mov dword ptr [ebx + 0x2c], ecx */ 8603 edx = MEM32(eax + 0x4); /* 0x36080A3F: mov edx, dword ptr [eax + 4] */ 8604 ecx = MEM32(ebp + (-0xC)); /* 0x36080A42: mov ecx, dword ptr [ebp - 0xc] */ 8605 edi = POP32_VAL(esp); /* 0x36080A45: pop edi */ 8606 MEM32(ebx + 0x30) = edx; /* 0x36080A46: mov dword ptr [ebx + 0x30], edx */ 8607 MEM8(ebx + 0xC) = (uint8_t)(0); /* 0x36080A49: mov byte ptr [ebx + 0xc], 0 */ 8608 esi = POP32_VAL(esp); /* 0x36080A4D: pop esi */ 8609 eax = ebx; /* 0x36080A4E: mov eax, ebx */ 8610 ebx = POP32_VAL(esp); /* 0x36080A50: pop ebx */ 8611 MEM32(FS_BASE + (0)) = ecx; /* 0x36080A51: mov dword ptr fs:[0], ecx */ 8612 esp = ebp; /* 0x36080A58: mov esp, ebp */ 8613 ebp = POP32_VAL(esp); /* 0x36080A5A: pop ebp */ 8614 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x36080A5B: ret 0x10 */ 8615 RECOMP_REGS_OUT(); 8616 } 8617 8618 void sub_36080A60(void) { 8619 int _fpu_cmp = 0; 8620 uint32_t _cf = 0; 8621 int _df = 1; 8622 uint32_t _flag_k = FK_NONE; 8623 uint32_t _flag_a = 0, _flag_b = 0; 8624 uint32_t _itail_tgt = 0; 8625 RECOMP_REGS_LOCALS 8626 RECOMP_ENTER(0x36080A60u); 8627 8628 L_36080A60: 8629 MEM32(ecx) = 0x36171864u; /* 0x36080A60: mov dword ptr [ecx], 0x36171864 */ 8630 L_36080A66: 8631 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 8632 { RECOMP_REGS_OUT(); return; } /* end of function */ 8633 _ljump: 8634 switch (_itail_tgt) { 8635 case 0x36080A60u: goto L_36080A60; 8636 case 0x36080A66u: goto L_36080A66; 8637 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8638 } 8639 RECOMP_REGS_OUT(); 8640 } 8641 8642 void sub_36080A70(void) { 8643 int _fpu_cmp = 0; 8644 uint32_t _cf = 0; 8645 int _df = 1; 8646 uint32_t _flag_k = FK_NONE; 8647 uint32_t _flag_a = 0, _flag_b = 0; 8648 uint32_t _itail_tgt = 0; 8649 RECOMP_REGS_LOCALS 8650 RECOMP_ENTER(0x36080A70u); 8651 8652 L_36080A70: 8653 PUSH32(esp, ebp); /* 0x36080A70: push ebp */ 8654 ebp = esp; /* 0x36080A71: mov ebp, esp */ 8655 PUSH32(esp, ebx); /* 0x36080A73: push ebx */ 8656 ebx = MEM32(0x3616FA8C); /* 0x36080A74: mov ebx, dword ptr [0x3616fa8c] */ 8657 PUSH32(esp, esi); /* 0x36080A7A: push esi */ 8658 esi = MEM32(ebp + 0x8); /* 0x36080A7B: mov esi, dword ptr [ebp + 8] */ 8659 PUSH32(esp, edi); /* 0x36080A7E: push edi */ 8660 eax = ebp + 0x8; /* 0x36080A7F: lea eax, [ebp + 8] */ 8661 edi = ecx; /* 0x36080A82: mov edi, ecx */ 8662 PUSH32(esp, eax); /* 0x36080A84: push eax */ 8663 ecx = esi; /* 0x36080A85: mov ecx, esi */ 8664 RECOMP_ICALL(ebx); /* 0x36080A87: call ebx */ 8665 RECOMP_FLAGS_IN(); 8666 ecx = MEM32(ebp + 0x8); /* 0x36080A89: mov ecx, dword ptr [ebp + 8] */ 8667 /* cmp ecx, MEM32(0x361C5058) */ /* 0x36080A8C: cmp ecx, dword ptr [0x361c5058] */ 8668 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(0x361C5058)); 8669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8670 _flag_k = FK_CMP; 8671 if (CMP_EQ(_flag_a, _flag_b)) goto L_36080AA0; /* 0x36080A92: je 0x36080aa0 */ 8672 L_36080A94: 8673 edi = POP32_VAL(esp); /* 0x36080A94: pop edi */ 8674 esi = POP32_VAL(esp); /* 0x36080A95: pop esi */ 8675 eax = 1; /* 0x36080A96: mov eax, 1 */ 8676 ebx = POP32_VAL(esp); /* 0x36080A9B: pop ebx */ 8677 ebp = POP32_VAL(esp); /* 0x36080A9C: pop ebp */ 8678 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080A9D: ret 4 */ 8679 L_36080AA0: 8680 edx = edi + 0x20; /* 0x36080AA0: lea edx, [edi + 0x20] */ 8681 PUSH32(esp, edx); /* 0x36080AA3: push edx */ 8682 ecx = esi; /* 0x36080AA4: mov ecx, esi */ 8683 RECOMP_ICALL(ebx); /* 0x36080AA6: call ebx */ 8684 RECOMP_FLAGS_IN(); 8685 eax = edi + 0x24; /* 0x36080AA8: lea eax, [edi + 0x24] */ 8686 PUSH32(esp, eax); /* 0x36080AAB: push eax */ 8687 PUSH32(esp, esi); /* 0x36080AAC: push esi */ 8688 RECOMP_ICALL(0x3615B870u); /* 0x36080AAD: call 0x3615b870 */ /* not lifted */ 8689 RECOMP_FLAGS_IN(); 8690 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x2Cu); 8691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8692 edi = edi + 0x2Cu; /* 0x36080AB2: add edi, 0x2c */ 8693 _flag_k = FK_ADD; 8694 PUSH32(esp, edi); /* 0x36080AB5: push edi */ 8695 PUSH32(esp, esi); /* 0x36080AB6: push esi */ 8696 RECOMP_ICALL(0x3615B870u); /* 0x36080AB7: call 0x3615b870 */ /* not lifted */ 8697 RECOMP_FLAGS_IN(); 8698 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8699 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8700 esp = esp + 0x10u; /* 0x36080ABC: add esp, 0x10 */ 8701 _flag_k = FK_ADD; 8702 ecx = esi; /* 0x36080ABF: mov ecx, esi */ 8703 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36080AC1: call dword ptr [0x3616fadc] */ 8704 RECOMP_FLAGS_IN(); 8705 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8706 _cf = (eax) != 0; 8707 eax = (uint32_t)(-(int32_t)eax); /* 0x36080AC7: neg eax */ 8708 _flag_k = FK_CMP; 8709 edi = POP32_VAL(esp); /* 0x36080AC9: pop edi */ 8710 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36080ACA: sbb eax, eax */ 8711 eax = _sc ? 0xFFFFFFFFu : 0; 8712 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8713 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8714 esi = POP32_VAL(esp); /* 0x36080ACC: pop esi */ 8715 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8716 eax = eax + 1; /* 0x36080ACD: inc eax */ 8717 _flag_k = FK_INC; 8718 ebx = POP32_VAL(esp); /* 0x36080ACE: pop ebx */ 8719 ebp = POP32_VAL(esp); /* 0x36080ACF: pop ebp */ 8720 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080AD0: ret 4 */ 8721 RECOMP_REGS_OUT(); 8722 } 8723 8724 void sub_36080AE0(void) { 8725 int _fpu_cmp = 0; 8726 uint32_t _cf = 0; 8727 int _df = 1; 8728 uint32_t _flag_k = FK_NONE; 8729 uint32_t _flag_a = 0, _flag_b = 0; 8730 uint32_t _itail_tgt = 0; 8731 RECOMP_REGS_LOCALS 8732 RECOMP_ENTER(0x36080AE0u); 8733 8734 L_36080AE0: 8735 PUSH32(esp, ebp); /* 0x36080AE0: push ebp */ 8736 ebp = esp; /* 0x36080AE1: mov ebp, esp */ 8737 eax = MEM32(0x361C5058); /* 0x36080AE3: mov eax, dword ptr [0x361c5058] */ 8738 PUSH32(esp, ebx); /* 0x36080AE8: push ebx */ 8739 ebx = MEM32(0x3616FAEC); /* 0x36080AE9: mov ebx, dword ptr [0x3616faec] */ 8740 PUSH32(esp, esi); /* 0x36080AEF: push esi */ 8741 PUSH32(esp, edi); /* 0x36080AF0: push edi */ 8742 edi = MEM32(ebp + 0x8); /* 0x36080AF1: mov edi, dword ptr [ebp + 8] */ 8743 esi = ecx; /* 0x36080AF4: mov esi, ecx */ 8744 PUSH32(esp, eax); /* 0x36080AF6: push eax */ 8745 ecx = edi; /* 0x36080AF7: mov ecx, edi */ 8746 RECOMP_ICALL(ebx); /* 0x36080AF9: call ebx */ 8747 RECOMP_FLAGS_IN(); 8748 ecx = MEM32(esi + 0x20); /* 0x36080AFB: mov ecx, dword ptr [esi + 0x20] */ 8749 PUSH32(esp, ecx); /* 0x36080AFE: push ecx */ 8750 ecx = edi; /* 0x36080AFF: mov ecx, edi */ 8751 RECOMP_ICALL(ebx); /* 0x36080B01: call ebx */ 8752 RECOMP_FLAGS_IN(); 8753 edx = esi + 0x24; /* 0x36080B03: lea edx, [esi + 0x24] */ 8754 PUSH32(esp, edx); /* 0x36080B06: push edx */ 8755 PUSH32(esp, edi); /* 0x36080B07: push edi */ 8756 RECOMP_ICALL(0x3615B840u); /* 0x36080B08: call 0x3615b840 */ /* not lifted */ 8757 RECOMP_FLAGS_IN(); 8758 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu); 8759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8760 esi = esi + 0x2Cu; /* 0x36080B0D: add esi, 0x2c */ 8761 _flag_k = FK_ADD; 8762 PUSH32(esp, esi); /* 0x36080B10: push esi */ 8763 PUSH32(esp, edi); /* 0x36080B11: push edi */ 8764 RECOMP_ICALL(0x3615B840u); /* 0x36080B12: call 0x3615b840 */ /* not lifted */ 8765 RECOMP_FLAGS_IN(); 8766 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8768 esp = esp + 0x10u; /* 0x36080B17: add esp, 0x10 */ 8769 _flag_k = FK_ADD; 8770 edi = POP32_VAL(esp); /* 0x36080B1A: pop edi */ 8771 esi = POP32_VAL(esp); /* 0x36080B1B: pop esi */ 8772 ebx = POP32_VAL(esp); /* 0x36080B1C: pop ebx */ 8773 ebp = POP32_VAL(esp); /* 0x36080B1D: pop ebp */ 8774 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080B1E: ret 4 */ 8775 RECOMP_REGS_OUT(); 8776 } 8777 8778 void sub_36080B30(void) { 8779 int _fpu_cmp = 0; 8780 uint32_t _cf = 0; 8781 int _df = 1; 8782 uint32_t _flag_k = FK_NONE; 8783 uint32_t _flag_a = 0, _flag_b = 0; 8784 uint32_t _itail_tgt = 0; 8785 RECOMP_REGS_LOCALS 8786 RECOMP_ENTER(0x36080B30u); 8787 8788 L_36080B30: 8789 PUSH32(esp, esi); /* 0x36080B30: push esi */ 8790 esi = ecx; /* 0x36080B31: mov esi, ecx */ 8791 PUSH32(esp, edi); /* 0x36080B33: push edi */ 8792 edi = esi + 0x4; /* 0x36080B34: lea edi, [esi + 4] */ 8793 PUSH32(esp, edi); /* 0x36080B37: push edi */ 8794 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36080B38: call dword ptr [0x3616ff70] */ 8795 RECOMP_FLAGS_IN(); 8796 PUSH32(esp, 0); /* 0x36080B3E: push 0 */ 8797 PUSH32(esp, 0x361B2CD8u); /* 0x36080B40: push 0x361b2cd8 */ 8798 PUSH32(esp, 0x361B2CC0u); /* 0x36080B45: push 0x361b2cc0 */ 8799 PUSH32(esp, 0); /* 0x36080B4A: push 0 */ 8800 PUSH32(esp, eax); /* 0x36080B4C: push eax */ 8801 RECOMP_ICALL(0x3615FD86u); /* 0x36080B4D: call 0x3615fd86 */ /* not lifted */ 8802 RECOMP_FLAGS_IN(); 8803 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8804 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8805 esp = esp + 0x18u; /* 0x36080B52: add esp, 0x18 */ 8806 _flag_k = FK_ADD; 8807 /* test eax, eax */ /* 0x36080B55: test eax, eax */ 8808 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8809 _cf = 0; 8810 _flag_k = FK_TEST; 8811 if (TEST_Z(_flag_a, _flag_b)) goto L_36080B74; /* 0x36080B57: je 0x36080b74 */ 8812 L_36080B59: 8813 PUSH32(esp, edi); /* 0x36080B59: push edi */ 8814 ecx = esi + 0x2C; /* 0x36080B5A: lea ecx, [esi + 0x2c] */ 8815 PUSH32(esp, ecx); /* 0x36080B5D: push ecx */ 8816 ecx = MEM32(esi + 0x20); /* 0x36080B5E: mov ecx, dword ptr [esi + 0x20] */ 8817 edx = esi + 0x24; /* 0x36080B61: lea edx, [esi + 0x24] */ 8818 PUSH32(esp, edx); /* 0x36080B64: push edx */ 8819 PUSH32(esp, ecx); /* 0x36080B65: push ecx */ 8820 ecx = eax; /* 0x36080B66: mov ecx, eax */ 8821 RECOMP_ICALL(0x36071F20u); /* 0x36080B68: call 0x36071f20 */ /* not lifted */ 8822 RECOMP_FLAGS_IN(); 8823 ecx = eax; /* 0x36080B6D: mov ecx, eax */ 8824 RECOMP_ICALL(0x3606C180u); /* 0x36080B6F: call 0x3606c180 */ /* not lifted */ 8825 RECOMP_FLAGS_IN(); 8826 L_36080B74: 8827 edi = POP32_VAL(esp); /* 0x36080B74: pop edi */ 8828 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8829 eax = 0; /* 0x36080B75: xor eax, eax */ 8830 _cf = 0; 8831 _flag_k = FK_TEST; 8832 esi = POP32_VAL(esp); /* 0x36080B77: pop esi */ 8833 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080B78: ret */ 8834 RECOMP_REGS_OUT(); 8835 } 8836 8837 void sub_36080B80(void) { 8838 int _fpu_cmp = 0; 8839 uint32_t _cf = 0; 8840 int _df = 1; 8841 uint32_t _flag_k = FK_NONE; 8842 uint32_t _flag_a = 0, _flag_b = 0; 8843 uint32_t _itail_tgt = 0; 8844 RECOMP_REGS_LOCALS 8845 RECOMP_ENTER(0x36080B80u); 8846 8847 L_36080B80: 8848 PUSH32(esp, esi); /* 0x36080B80: push esi */ 8849 esi = ecx; /* 0x36080B81: mov esi, ecx */ 8850 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36080B83: call dword ptr [0x3616ffd0] */ 8851 RECOMP_FLAGS_IN(); 8852 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8853 eax = 0; /* 0x36080B89: xor eax, eax */ 8854 _cf = 0; 8855 _flag_k = FK_TEST; 8856 MEM32(esi + 0x20) = eax; /* 0x36080B8B: mov dword ptr [esi + 0x20], eax */ 8857 MEM32(esi + 0x24) = eax; /* 0x36080B8E: mov dword ptr [esi + 0x24], eax */ 8858 MEM32(esi + 0x28) = eax; /* 0x36080B91: mov dword ptr [esi + 0x28], eax */ 8859 MEM32(esi + 0x2C) = eax; /* 0x36080B94: mov dword ptr [esi + 0x2c], eax */ 8860 MEM32(esi) = 0x36171888u; /* 0x36080B97: mov dword ptr [esi], 0x36171888 */ 8861 eax = esi; /* 0x36080B9D: mov eax, esi */ 8862 esi = POP32_VAL(esp); /* 0x36080B9F: pop esi */ 8863 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080BA0: ret */ 8864 RECOMP_REGS_OUT(); 8865 } 8866 8867 void sub_36080BB0(void) { 8868 int _fpu_cmp = 0; 8869 uint32_t _cf = 0; 8870 int _df = 1; 8871 uint32_t _flag_k = FK_NONE; 8872 uint32_t _flag_a = 0, _flag_b = 0; 8873 uint32_t _itail_tgt = 0; 8874 RECOMP_REGS_LOCALS 8875 RECOMP_ENTER(0x36080BB0u); 8876 8877 L_36080BB0: 8878 PUSH32(esp, ebp); /* 0x36080BB0: push ebp */ 8879 ebp = esp; /* 0x36080BB1: mov ebp, esp */ 8880 PUSH32(esp, esi); /* 0x36080BB3: push esi */ 8881 esi = ecx; /* 0x36080BB4: mov esi, ecx */ 8882 RECOMP_ICALL(0x36080BE0u); /* 0x36080BB6: call 0x36080be0 */ /* not lifted */ 8883 RECOMP_FLAGS_IN(); 8884 /* test MEM8(ebp + 0x8), 1 */ /* 0x36080BBB: test byte ptr [ebp + 8], 1 */ 8885 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8886 _cf = 0; 8887 _flag_k = FK_NARROW(FK_TEST, 24); 8888 if (TEST_Z(_flag_a, _flag_b)) goto L_36080BCA; /* 0x36080BBF: je 0x36080bca */ 8889 L_36080BC1: 8890 PUSH32(esp, esi); /* 0x36080BC1: push esi */ 8891 RECOMP_ICALL(0x3615FCC4u); /* 0x36080BC2: call 0x3615fcc4 */ /* not lifted */ 8892 RECOMP_FLAGS_IN(); 8893 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8894 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8895 esp = esp + 4; /* 0x36080BC7: add esp, 4 */ 8896 _flag_k = FK_ADD; 8897 L_36080BCA: 8898 eax = esi; /* 0x36080BCA: mov eax, esi */ 8899 esi = POP32_VAL(esp); /* 0x36080BCC: pop esi */ 8900 ebp = POP32_VAL(esp); /* 0x36080BCD: pop ebp */ 8901 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080BCE: ret 4 */ 8902 RECOMP_REGS_OUT(); 8903 } 8904 8905 void sub_36080BE0(void) { 8906 int _fpu_cmp = 0; 8907 uint32_t _cf = 0; 8908 int _df = 1; 8909 uint32_t _flag_k = FK_NONE; 8910 uint32_t _flag_a = 0, _flag_b = 0; 8911 uint32_t _itail_tgt = 0; 8912 RECOMP_REGS_LOCALS 8913 RECOMP_ENTER(0x36080BE0u); 8914 8915 L_36080BE0: 8916 MEM32(ecx) = 0x36171888u; /* 0x36080BE0: mov dword ptr [ecx], 0x36171888 */ 8917 L_36080BE6: 8918 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 8919 { RECOMP_REGS_OUT(); return; } /* end of function */ 8920 _ljump: 8921 switch (_itail_tgt) { 8922 case 0x36080BE0u: goto L_36080BE0; 8923 case 0x36080BE6u: goto L_36080BE6; 8924 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 8925 } 8926 RECOMP_REGS_OUT(); 8927 } 8928 8929 void sub_36080BF0(void) { 8930 int _fpu_cmp = 0; 8931 uint32_t _cf = 0; 8932 int _df = 1; 8933 uint32_t _flag_k = FK_NONE; 8934 uint32_t _flag_a = 0, _flag_b = 0; 8935 uint32_t _itail_tgt = 0; 8936 RECOMP_REGS_LOCALS 8937 RECOMP_ENTER(0x36080BF0u); 8938 8939 L_36080BF0: 8940 PUSH32(esp, ebp); /* 0x36080BF0: push ebp */ 8941 ebp = esp; /* 0x36080BF1: mov ebp, esp */ 8942 PUSH32(esp, ebx); /* 0x36080BF3: push ebx */ 8943 PUSH32(esp, esi); /* 0x36080BF4: push esi */ 8944 esi = ecx; /* 0x36080BF5: mov esi, ecx */ 8945 PUSH32(esp, edi); /* 0x36080BF7: push edi */ 8946 edi = MEM32(ebp + 0x8); /* 0x36080BF8: mov edi, dword ptr [ebp + 8] */ 8947 eax = esi + 0x20; /* 0x36080BFB: lea eax, [esi + 0x20] */ 8948 PUSH32(esp, eax); /* 0x36080BFE: push eax */ 8949 PUSH32(esp, edi); /* 0x36080BFF: push edi */ 8950 RECOMP_ICALL(0x3615B870u); /* 0x36080C00: call 0x3615b870 */ /* not lifted */ 8951 RECOMP_FLAGS_IN(); 8952 ecx = esi + 0x28; /* 0x36080C05: lea ecx, [esi + 0x28] */ 8953 PUSH32(esp, ecx); /* 0x36080C08: push ecx */ 8954 PUSH32(esp, edi); /* 0x36080C09: push edi */ 8955 RECOMP_ICALL(0x3615B870u); /* 0x36080C0A: call 0x3615b870 */ /* not lifted */ 8956 RECOMP_FLAGS_IN(); 8957 ebx = MEM32(0x3616FA8C); /* 0x36080C0F: mov ebx, dword ptr [0x3616fa8c] */ 8958 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8960 esp = esp + 0x10u; /* 0x36080C15: add esp, 0x10 */ 8961 _flag_k = FK_ADD; 8962 edx = esi + 0x30; /* 0x36080C18: lea edx, [esi + 0x30] */ 8963 PUSH32(esp, edx); /* 0x36080C1B: push edx */ 8964 ecx = edi; /* 0x36080C1C: mov ecx, edi */ 8965 RECOMP_ICALL(ebx); /* 0x36080C1E: call ebx */ 8966 RECOMP_FLAGS_IN(); 8967 eax = esi + 0x34; /* 0x36080C20: lea eax, [esi + 0x34] */ 8968 PUSH32(esp, eax); /* 0x36080C23: push eax */ 8969 ecx = edi; /* 0x36080C24: mov ecx, edi */ 8970 RECOMP_ICALL(ebx); /* 0x36080C26: call ebx */ 8971 RECOMP_FLAGS_IN(); 8972 ecx = ebp + 0x8; /* 0x36080C28: lea ecx, [ebp + 8] */ 8973 PUSH32(esp, ecx); /* 0x36080C2B: push ecx */ 8974 ecx = edi; /* 0x36080C2C: mov ecx, edi */ 8975 RECOMP_ICALL(ebx); /* 0x36080C2E: call ebx */ 8976 RECOMP_FLAGS_IN(); 8977 ebx = MEM32(ebp + 0x8); /* 0x36080C30: mov ebx, dword ptr [ebp + 8] */ 8978 /* test ebx, ebx */ /* 0x36080C33: test ebx, ebx */ 8979 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8980 _cf = 0; 8981 _flag_k = FK_TEST; 8982 SET_LO8(edx, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x36080C35: setne dl */ 8983 ecx = edi; /* 0x36080C38: mov ecx, edi */ 8984 MEM8(esi + 0x38) = (uint8_t)(LO8(edx)); /* 0x36080C3A: mov byte ptr [esi + 0x38], dl */ 8985 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36080C3D: call dword ptr [0x3616fadc] */ 8986 RECOMP_FLAGS_IN(); 8987 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 8988 _cf = (eax) != 0; 8989 eax = (uint32_t)(-(int32_t)eax); /* 0x36080C43: neg eax */ 8990 _flag_k = FK_CMP; 8991 edi = POP32_VAL(esp); /* 0x36080C45: pop edi */ 8992 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36080C46: sbb eax, eax */ 8993 eax = _sc ? 0xFFFFFFFFu : 0; 8994 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8995 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8996 esi = POP32_VAL(esp); /* 0x36080C48: pop esi */ 8997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 8998 eax = eax + 1; /* 0x36080C49: inc eax */ 8999 _flag_k = FK_INC; 9000 ebx = POP32_VAL(esp); /* 0x36080C4A: pop ebx */ 9001 ebp = POP32_VAL(esp); /* 0x36080C4B: pop ebp */ 9002 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080C4C: ret 4 */ 9003 RECOMP_REGS_OUT(); 9004 } 9005 9006 void sub_36080C50(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(0x36080C50u); 9015 9016 L_36080C50: 9017 PUSH32(esp, ebp); /* 0x36080C50: push ebp */ 9018 ebp = esp; /* 0x36080C51: mov ebp, esp */ 9019 PUSH32(esp, ebx); /* 0x36080C53: push ebx */ 9020 PUSH32(esp, esi); /* 0x36080C54: push esi */ 9021 esi = ecx; /* 0x36080C55: mov esi, ecx */ 9022 PUSH32(esp, edi); /* 0x36080C57: push edi */ 9023 edi = MEM32(ebp + 0x8); /* 0x36080C58: mov edi, dword ptr [ebp + 8] */ 9024 eax = esi + 0x20; /* 0x36080C5B: lea eax, [esi + 0x20] */ 9025 PUSH32(esp, eax); /* 0x36080C5E: push eax */ 9026 PUSH32(esp, edi); /* 0x36080C5F: push edi */ 9027 RECOMP_ICALL(0x3615B840u); /* 0x36080C60: call 0x3615b840 */ /* not lifted */ 9028 RECOMP_FLAGS_IN(); 9029 ecx = esi + 0x28; /* 0x36080C65: lea ecx, [esi + 0x28] */ 9030 PUSH32(esp, ecx); /* 0x36080C68: push ecx */ 9031 PUSH32(esp, edi); /* 0x36080C69: push edi */ 9032 RECOMP_ICALL(0x3615B840u); /* 0x36080C6A: call 0x3615b840 */ /* not lifted */ 9033 RECOMP_FLAGS_IN(); 9034 edx = MEM32(esi + 0x30); /* 0x36080C6F: mov edx, dword ptr [esi + 0x30] */ 9035 ebx = MEM32(0x3616FAEC); /* 0x36080C72: mov ebx, dword ptr [0x3616faec] */ 9036 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 9037 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9038 esp = esp + 0x10u; /* 0x36080C78: add esp, 0x10 */ 9039 _flag_k = FK_ADD; 9040 PUSH32(esp, edx); /* 0x36080C7B: push edx */ 9041 ecx = edi; /* 0x36080C7C: mov ecx, edi */ 9042 RECOMP_ICALL(ebx); /* 0x36080C7E: call ebx */ 9043 RECOMP_FLAGS_IN(); 9044 eax = MEM32(esi + 0x34); /* 0x36080C80: mov eax, dword ptr [esi + 0x34] */ 9045 PUSH32(esp, eax); /* 0x36080C83: push eax */ 9046 ecx = edi; /* 0x36080C84: mov ecx, edi */ 9047 RECOMP_ICALL(ebx); /* 0x36080C86: call ebx */ 9048 RECOMP_FLAGS_IN(); 9049 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9050 ecx = 0; /* 0x36080C88: xor ecx, ecx */ 9051 _cf = 0; 9052 _flag_k = FK_TEST; 9053 SET_LO8(ecx, MEM8(esi + 0x38)); /* 0x36080C8A: mov cl, byte ptr [esi + 0x38] */ 9054 PUSH32(esp, ecx); /* 0x36080C8D: push ecx */ 9055 ecx = edi; /* 0x36080C8E: mov ecx, edi */ 9056 RECOMP_ICALL(ebx); /* 0x36080C90: call ebx */ 9057 RECOMP_FLAGS_IN(); 9058 edi = POP32_VAL(esp); /* 0x36080C92: pop edi */ 9059 esi = POP32_VAL(esp); /* 0x36080C93: pop esi */ 9060 ebx = POP32_VAL(esp); /* 0x36080C94: pop ebx */ 9061 ebp = POP32_VAL(esp); /* 0x36080C95: pop ebp */ 9062 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080C96: ret 4 */ 9063 RECOMP_REGS_OUT(); 9064 } 9065 9066 void sub_36080CA0(void) { 9067 int _fpu_cmp = 0; 9068 uint32_t _cf = 0; 9069 int _df = 1; 9070 uint32_t _flag_k = FK_NONE; 9071 uint32_t _flag_a = 0, _flag_b = 0; 9072 uint32_t _itail_tgt = 0; 9073 RECOMP_REGS_LOCALS 9074 RECOMP_ENTER(0x36080CA0u); 9075 9076 L_36080CA0: 9077 PUSH32(esp, esi); /* 0x36080CA0: push esi */ 9078 esi = ecx; /* 0x36080CA1: mov esi, ecx */ 9079 eax = esi + 0x4; /* 0x36080CA3: lea eax, [esi + 4] */ 9080 PUSH32(esp, eax); /* 0x36080CA6: push eax */ 9081 RECOMP_ICALL(MEM32(0x3616FF70)); /* 0x36080CA7: call dword ptr [0x3616ff70] */ 9082 RECOMP_FLAGS_IN(); 9083 PUSH32(esp, 0); /* 0x36080CAD: push 0 */ 9084 PUSH32(esp, 0x361B2CD8u); /* 0x36080CAF: push 0x361b2cd8 */ 9085 PUSH32(esp, 0x361B2CC0u); /* 0x36080CB4: push 0x361b2cc0 */ 9086 PUSH32(esp, 0); /* 0x36080CB9: push 0 */ 9087 PUSH32(esp, eax); /* 0x36080CBB: push eax */ 9088 RECOMP_ICALL(0x3615FD86u); /* 0x36080CBC: call 0x3615fd86 */ /* not lifted */ 9089 RECOMP_FLAGS_IN(); 9090 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9091 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9092 esp = esp + 0x18u; /* 0x36080CC1: add esp, 0x18 */ 9093 _flag_k = FK_ADD; 9094 /* test eax, eax */ /* 0x36080CC4: test eax, eax */ 9095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9096 _cf = 0; 9097 _flag_k = FK_TEST; 9098 if (TEST_Z(_flag_a, _flag_b)) goto L_36080CE9; /* 0x36080CC6: je 0x36080ce9 */ 9099 L_36080CC8: 9100 edx = MEM32(esi + 0x34); /* 0x36080CC8: mov edx, dword ptr [esi + 0x34] */ 9101 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9102 ecx = 0; /* 0x36080CCB: xor ecx, ecx */ 9103 _cf = 0; 9104 _flag_k = FK_TEST; 9105 SET_LO8(ecx, MEM8(esi + 0x38)); /* 0x36080CCD: mov cl, byte ptr [esi + 0x38] */ 9106 PUSH32(esp, ecx); /* 0x36080CD0: push ecx */ 9107 ecx = MEM32(esi + 0x30); /* 0x36080CD1: mov ecx, dword ptr [esi + 0x30] */ 9108 PUSH32(esp, edx); /* 0x36080CD4: push edx */ 9109 PUSH32(esp, ecx); /* 0x36080CD5: push ecx */ 9110 ecx = MEM32(eax + 0x16C); /* 0x36080CD6: mov ecx, dword ptr [eax + 0x16c] */ 9111 edx = esi + 0x28; /* 0x36080CDC: lea edx, [esi + 0x28] */ 9112 PUSH32(esp, edx); /* 0x36080CDF: push edx */ 9113 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x20u); 9114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9115 esi = esi + 0x20u; /* 0x36080CE0: add esi, 0x20 */ 9116 _flag_k = FK_ADD; 9117 PUSH32(esp, esi); /* 0x36080CE3: push esi */ 9118 RECOMP_ICALL(0x3607BCA0u); /* 0x36080CE4: call 0x3607bca0 */ /* not lifted */ 9119 RECOMP_FLAGS_IN(); 9120 L_36080CE9: 9121 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9122 eax = 0; /* 0x36080CE9: xor eax, eax */ 9123 _cf = 0; 9124 _flag_k = FK_TEST; 9125 esi = POP32_VAL(esp); /* 0x36080CEB: pop esi */ 9126 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080CEC: ret */ 9127 RECOMP_REGS_OUT(); 9128 } 9129 9130 void sub_36080CF0(void) { 9131 int _fpu_cmp = 0; 9132 uint32_t _cf = 0; 9133 int _df = 1; 9134 uint32_t _flag_k = FK_NONE; 9135 uint32_t _flag_a = 0, _flag_b = 0; 9136 uint32_t _itail_tgt = 0; 9137 RECOMP_REGS_LOCALS 9138 RECOMP_ENTER(0x36080CF0u); 9139 9140 L_36080CF0: 9141 PUSH32(esp, esi); /* 0x36080CF0: push esi */ 9142 esi = ecx; /* 0x36080CF1: mov esi, ecx */ 9143 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36080CF3: call dword ptr [0x3616ffd0] */ 9144 RECOMP_FLAGS_IN(); 9145 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9146 eax = 0; /* 0x36080CF9: xor eax, eax */ 9147 _cf = 0; 9148 _flag_k = FK_TEST; 9149 MEM32(esi + 0x20) = eax; /* 0x36080CFB: mov dword ptr [esi + 0x20], eax */ 9150 MEM32(esi + 0x24) = eax; /* 0x36080CFE: mov dword ptr [esi + 0x24], eax */ 9151 MEM32(esi) = 0x361718ACu; /* 0x36080D01: mov dword ptr [esi], 0x361718ac */ 9152 eax = esi; /* 0x36080D07: mov eax, esi */ 9153 esi = POP32_VAL(esp); /* 0x36080D09: pop esi */ 9154 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080D0A: ret */ 9155 RECOMP_REGS_OUT(); 9156 } 9157 9158 void sub_36080D10(void) { 9159 int _fpu_cmp = 0; 9160 uint32_t _cf = 0; 9161 int _df = 1; 9162 uint32_t _flag_k = FK_NONE; 9163 uint32_t _flag_a = 0, _flag_b = 0; 9164 uint32_t _itail_tgt = 0; 9165 RECOMP_REGS_LOCALS 9166 RECOMP_ENTER(0x36080D10u); 9167 9168 L_36080D10: 9169 PUSH32(esp, ebp); /* 0x36080D10: push ebp */ 9170 ebp = esp; /* 0x36080D11: mov ebp, esp */ 9171 PUSH32(esp, esi); /* 0x36080D13: push esi */ 9172 esi = ecx; /* 0x36080D14: mov esi, ecx */ 9173 RECOMP_ICALL(0x36080D40u); /* 0x36080D16: call 0x36080d40 */ /* not lifted */ 9174 RECOMP_FLAGS_IN(); 9175 /* test MEM8(ebp + 0x8), 1 */ /* 0x36080D1B: test byte ptr [ebp + 8], 1 */ 9176 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9177 _cf = 0; 9178 _flag_k = FK_NARROW(FK_TEST, 24); 9179 if (TEST_Z(_flag_a, _flag_b)) goto L_36080D2A; /* 0x36080D1F: je 0x36080d2a */ 9180 L_36080D21: 9181 PUSH32(esp, esi); /* 0x36080D21: push esi */ 9182 RECOMP_ICALL(0x3615FCC4u); /* 0x36080D22: call 0x3615fcc4 */ /* not lifted */ 9183 RECOMP_FLAGS_IN(); 9184 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9185 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9186 esp = esp + 4; /* 0x36080D27: add esp, 4 */ 9187 _flag_k = FK_ADD; 9188 L_36080D2A: 9189 eax = esi; /* 0x36080D2A: mov eax, esi */ 9190 esi = POP32_VAL(esp); /* 0x36080D2C: pop esi */ 9191 ebp = POP32_VAL(esp); /* 0x36080D2D: pop ebp */ 9192 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080D2E: ret 4 */ 9193 RECOMP_REGS_OUT(); 9194 } 9195 9196 void sub_36080D40(void) { 9197 int _fpu_cmp = 0; 9198 uint32_t _cf = 0; 9199 int _df = 1; 9200 uint32_t _flag_k = FK_NONE; 9201 uint32_t _flag_a = 0, _flag_b = 0; 9202 uint32_t _itail_tgt = 0; 9203 RECOMP_REGS_LOCALS 9204 RECOMP_ENTER(0x36080D40u); 9205 9206 L_36080D40: 9207 MEM32(ecx) = 0x361718ACu; /* 0x36080D40: mov dword ptr [ecx], 0x361718ac */ 9208 L_36080D46: 9209 { _itail_tgt = (uint32_t)(MEM32(0x3616FFD4)); goto _ljump; } 9210 { RECOMP_REGS_OUT(); return; } /* end of function */ 9211 _ljump: 9212 switch (_itail_tgt) { 9213 case 0x36080D40u: goto L_36080D40; 9214 case 0x36080D46u: goto L_36080D46; 9215 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 9216 } 9217 RECOMP_REGS_OUT(); 9218 } 9219 9220 void sub_36080D50(void) { 9221 int _fpu_cmp = 0; 9222 uint32_t _cf = 0; 9223 int _df = 1; 9224 uint32_t _flag_k = FK_NONE; 9225 uint32_t _flag_a = 0, _flag_b = 0; 9226 uint32_t _itail_tgt = 0; 9227 RECOMP_REGS_LOCALS 9228 RECOMP_ENTER(0x36080D50u); 9229 9230 L_36080D50: 9231 PUSH32(esp, ebp); /* 0x36080D50: push ebp */ 9232 ebp = esp; /* 0x36080D51: mov ebp, esp */ 9233 PUSH32(esp, esi); /* 0x36080D53: push esi */ 9234 esi = MEM32(ebp + 0x8); /* 0x36080D54: mov esi, dword ptr [ebp + 8] */ 9235 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x20u); 9236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9237 ecx = ecx + 0x20u; /* 0x36080D57: add ecx, 0x20 */ 9238 _flag_k = FK_ADD; 9239 PUSH32(esp, ecx); /* 0x36080D5A: push ecx */ 9240 PUSH32(esp, esi); /* 0x36080D5B: push esi */ 9241 RECOMP_ICALL(0x3615B870u); /* 0x36080D5C: call 0x3615b870 */ /* not lifted */ 9242 RECOMP_FLAGS_IN(); 9243 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9245 esp = esp + 8; /* 0x36080D61: add esp, 8 */ 9246 _flag_k = FK_ADD; 9247 ecx = esi; /* 0x36080D64: mov ecx, esi */ 9248 RECOMP_ICALL(MEM32(0x3616FADC)); /* 0x36080D66: call dword ptr [0x3616fadc] */ 9249 RECOMP_FLAGS_IN(); 9250 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax); 9251 _cf = (eax) != 0; 9252 eax = (uint32_t)(-(int32_t)eax); /* 0x36080D6C: neg eax */ 9253 _flag_k = FK_CMP; 9254 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36080D6E: sbb eax, eax */ 9255 eax = _sc ? 0xFFFFFFFFu : 0; 9256 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9257 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9258 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 9259 eax = eax + 1; /* 0x36080D70: inc eax */ 9260 _flag_k = FK_INC; 9261 esi = POP32_VAL(esp); /* 0x36080D71: pop esi */ 9262 ebp = POP32_VAL(esp); /* 0x36080D72: pop ebp */ 9263 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080D73: ret 4 */ 9264 RECOMP_REGS_OUT(); 9265 } 9266 9267 void sub_36080D80(void) { 9268 int _fpu_cmp = 0; 9269 uint32_t _cf = 0; 9270 int _df = 1; 9271 uint32_t _flag_k = FK_NONE; 9272 uint32_t _flag_a = 0, _flag_b = 0; 9273 uint32_t _itail_tgt = 0; 9274 RECOMP_REGS_LOCALS 9275 RECOMP_ENTER(0x36080D80u); 9276 9277 L_36080D80: 9278 PUSH32(esp, ebx); /* 0x36080D80: push ebx */ 9279 PUSH32(esp, esi); /* 0x36080D81: push esi */ 9280 esi = ecx; /* 0x36080D82: mov esi, ecx */ 9281 eax = esi + 0x4; /* 0x36080D84: lea eax, [esi + 4] */ 9282 PUSH32(esp, edi); /* 0x36080D87: push edi */ 9283 PUSH32(esp, eax); /* 0x36080D88: push eax */ 9284 RECOMP_ICALL(0x3606DA90u); /* 0x36080D89: call 0x3606da90 */ /* not lifted */ 9285 RECOMP_FLAGS_IN(); 9286 ebx = esi + 0x20; /* 0x36080D8E: lea ebx, [esi + 0x20] */ 9287 PUSH32(esp, ebx); /* 0x36080D91: push ebx */ 9288 edi = eax; /* 0x36080D92: mov edi, eax */ 9289 RECOMP_ICALL(0x3606DA90u); /* 0x36080D94: call 0x3606da90 */ /* not lifted */ 9290 RECOMP_FLAGS_IN(); 9291 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9293 esp = esp + 8; /* 0x36080D99: add esp, 8 */ 9294 _flag_k = FK_ADD; 9295 /* test edi, edi */ /* 0x36080D9C: test edi, edi */ 9296 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 9297 _cf = 0; 9298 _flag_k = FK_TEST; 9299 if (TEST_Z(_flag_a, _flag_b)) goto L_36080DAC; /* 0x36080D9E: je 0x36080dac */ 9300 L_36080DA0: 9301 ecx = MEM32(edi + 0x170); /* 0x36080DA0: mov ecx, dword ptr [edi + 0x170] */ 9302 PUSH32(esp, ebx); /* 0x36080DA6: push ebx */ 9303 RECOMP_ICALL(0x36067990u); /* 0x36080DA7: call 0x36067990 */ /* not lifted */ 9304 RECOMP_FLAGS_IN(); 9305 L_36080DAC: 9306 ecx = esi; /* 0x36080DAC: mov ecx, esi */ 9307 RECOMP_ICALL(MEM32(0x3616FC20)); /* 0x36080DAE: call dword ptr [0x3616fc20] */ 9308 RECOMP_FLAGS_IN(); 9309 edi = POP32_VAL(esp); /* 0x36080DB4: pop edi */ 9310 esi = POP32_VAL(esp); /* 0x36080DB5: pop esi */ 9311 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9312 eax = 0; /* 0x36080DB6: xor eax, eax */ 9313 _cf = 0; 9314 _flag_k = FK_TEST; 9315 ebx = POP32_VAL(esp); /* 0x36080DB8: pop ebx */ 9316 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080DB9: ret */ 9317 RECOMP_REGS_OUT(); 9318 } 9319 9320 void sub_36080DC0(void) { 9321 int _fpu_cmp = 0; 9322 uint32_t _cf = 0; 9323 int _df = 1; 9324 uint32_t _flag_k = FK_NONE; 9325 uint32_t _flag_a = 0, _flag_b = 0; 9326 uint32_t _itail_tgt = 0; 9327 RECOMP_REGS_LOCALS 9328 RECOMP_ENTER(0x36080DC0u); 9329 9330 L_36080DC0: 9331 PUSH32(esp, esi); /* 0x36080DC0: push esi */ 9332 esi = ecx; /* 0x36080DC1: mov esi, ecx */ 9333 RECOMP_ICALL(MEM32(0x3616FFD0)); /* 0x36080DC3: call dword ptr [0x3616ffd0] */ 9334 RECOMP_FLAGS_IN(); 9335 MEM32(esi) = 0x361718D0u; /* 0x36080DC9: mov dword ptr [esi], 0x361718d0 */ 9336 eax = esi; /* 0x36080DCF: mov eax, esi */ 9337 esi = POP32_VAL(esp); /* 0x36080DD1: pop esi */ 9338 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36080DD2: ret */ 9339 RECOMP_REGS_OUT(); 9340 } 9341 9342 void sub_36080DE0(void) { 9343 int _fpu_cmp = 0; 9344 uint32_t _cf = 0; 9345 int _df = 1; 9346 uint32_t _flag_k = FK_NONE; 9347 uint32_t _flag_a = 0, _flag_b = 0; 9348 uint32_t _itail_tgt = 0; 9349 RECOMP_REGS_LOCALS 9350 RECOMP_ENTER(0x36080DE0u); 9351 9352 L_36080DE0: 9353 PUSH32(esp, ebp); /* 0x36080DE0: push ebp */ 9354 ebp = esp; /* 0x36080DE1: mov ebp, esp */ 9355 PUSH32(esp, esi); /* 0x36080DE3: push esi */ 9356 esi = ecx; /* 0x36080DE4: mov esi, ecx */ 9357 RECOMP_ICALL(0x36080E10u); /* 0x36080DE6: call 0x36080e10 */ /* not lifted */ 9358 RECOMP_FLAGS_IN(); 9359 /* test MEM8(ebp + 0x8), 1 */ /* 0x36080DEB: test byte ptr [ebp + 8], 1 */ 9360 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9361 _cf = 0; 9362 _flag_k = FK_NARROW(FK_TEST, 24); 9363 if (TEST_Z(_flag_a, _flag_b)) goto L_36080DFA; /* 0x36080DEF: je 0x36080dfa */ 9364 L_36080DF1: 9365 PUSH32(esp, esi); /* 0x36080DF1: push esi */ 9366 RECOMP_ICALL(0x3615FCC4u); /* 0x36080DF2: call 0x3615fcc4 */ /* not lifted */ 9367 RECOMP_FLAGS_IN(); 9368 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9369 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9370 esp = esp + 4; /* 0x36080DF7: add esp, 4 */ 9371 _flag_k = FK_ADD; 9372 L_36080DFA: 9373 eax = esi; /* 0x36080DFA: mov eax, esi */ 9374 esi = POP32_VAL(esp); /* 0x36080DFC: pop esi */ 9375 ebp = POP32_VAL(esp); /* 0x36080DFD: pop ebp */ 9376 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36080DFE: ret 4 */ 9377 RECOMP_REGS_OUT(); 9378 }