client/game/kkr.dll/lifted-0043.c (686866B)
1 #define RECOMP_GENERATED_CODE 2 #include "recomp_types.h" 3 #include <math.h> 4 #include <stdio.h> 5 #include <stdlib.h> 6 #include <string.h> 7 8 void sub_36090FE0(void) { 9 int _fpu_cmp = 0; 10 uint32_t _cf = 0; 11 int _df = 1; 12 uint32_t _flag_k = FK_NONE; 13 uint32_t _flag_a = 0, _flag_b = 0; 14 uint32_t _itail_tgt = 0; 15 RECOMP_REGS_LOCALS 16 RECOMP_ENTER(0x36090FE0u); 17 18 L_36090FE0: 19 PUSH32(esp, ebp); /* 0x36090FE0: push ebp */ 20 ebp = esp; /* 0x36090FE1: mov ebp, esp */ 21 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 22 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 23 esp = esp - 8; /* 0x36090FE3: sub esp, 8 */ 24 _flag_k = FK_CMP; 25 PUSH32(esp, esi); /* 0x36090FE6: push esi */ 26 PUSH32(esp, edi); /* 0x36090FE7: push edi */ 27 PUSH32(esp, 0x88u); /* 0x36090FE8: push 0x88 */ 28 RECOMP_ICALL(0x3608F990u); /* 0x36090FED: call 0x3608f990 */ /* not lifted */ 29 RECOMP_FLAGS_IN(); 30 esi = eax; /* 0x36090FF2: mov esi, eax */ 31 /* test esi, esi */ /* 0x36090FF4: test esi, esi */ 32 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 33 _cf = 0; 34 _flag_k = FK_TEST; 35 if (TEST_Z(_flag_a, _flag_b)) goto L_3609104F; /* 0x36090FF6: je 0x3609104f */ 36 L_36090FF8: 37 ecx = esi; /* 0x36090FF8: mov ecx, esi */ 38 RECOMP_ICALL(0x36008320u); /* 0x36090FFA: call 0x36008320 */ /* not lifted */ 39 RECOMP_FLAGS_IN(); 40 eax = MEM32(eax); /* 0x36090FFF: mov eax, dword ptr [eax] */ 41 ecx = MEM32(eax + 0x8); /* 0x36091001: mov ecx, dword ptr [eax + 8] */ 42 /* test ecx, ecx */ /* 0x36091004: test ecx, ecx */ 43 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 44 _cf = 0; 45 _flag_k = FK_TEST; 46 if (TEST_Z(_flag_a, _flag_b)) goto L_3609104F; /* 0x36091006: je 0x3609104f */ 47 L_36091008: 48 eax = MEM32(ebp + 0x8); /* 0x36091008: mov eax, dword ptr [ebp + 8] */ 49 /* test eax, eax */ /* 0x3609100B: test eax, eax */ 50 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 51 _cf = 0; 52 _flag_k = FK_TEST; 53 if (TEST_Z(_flag_a, _flag_b)) goto L_36091017; /* 0x3609100D: je 0x36091017 */ 54 L_3609100F: 55 edi = eax + 0xE4; /* 0x3609100F: lea edi, [eax + 0xe4] */ 56 goto L_36091019; /* 0x36091015: jmp 0x36091019 */ 57 L_36091017: 58 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 59 edi = 0; /* 0x36091017: xor edi, edi */ 60 _cf = 0; 61 _flag_k = FK_TEST; 62 L_36091019: 63 PUSH32(esp, 0xFFFFFFFFu); /* 0x36091019: push -1 */ 64 PUSH32(esp, 0); /* 0x3609101B: push 0 */ 65 PUSH32(esp, 0); /* 0x3609101D: push 0 */ 66 ecx = ebp + (-0x8); /* 0x3609101F: lea ecx, [ebp - 8] */ 67 RECOMP_ICALL(0x36090B50u); /* 0x36091022: call 0x36090b50 */ /* not lifted */ 68 RECOMP_FLAGS_IN(); 69 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 70 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 71 esp = esp - 8; /* 0x36091027: sub esp, 8 */ 72 _flag_k = FK_CMP; 73 ecx = esp; /* 0x3609102A: mov ecx, esp */ 74 PUSH32(esp, eax); /* 0x3609102C: push eax */ 75 RECOMP_ICALL(0x360056C0u); /* 0x3609102D: call 0x360056c0 */ /* not lifted */ 76 RECOMP_FLAGS_IN(); 77 eax = MEM32(ebp + 0xC); /* 0x36091032: mov eax, dword ptr [ebp + 0xc] */ 78 PUSH32(esp, 0); /* 0x36091035: push 0 */ 79 PUSH32(esp, eax); /* 0x36091037: push eax */ 80 PUSH32(esp, edi); /* 0x36091038: push edi */ 81 ecx = esi; /* 0x36091039: mov ecx, esi */ 82 RECOMP_ICALL(0x36005680u); /* 0x3609103B: call 0x36005680 */ /* not lifted */ 83 RECOMP_FLAGS_IN(); 84 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 85 _cf = (LO8(eax)) != 0; 86 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36091040: neg al */ 87 _flag_k = FK_NARROW(FK_CMP, 24); 88 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36091042: sbb eax, eax */ 89 eax = _sc ? 0xFFFFFFFFu : 0; 90 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 91 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 92 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 93 eax = eax & 2; /* 0x36091044: and eax, 2 */ 94 _cf = 0; 95 _flag_k = FK_TEST; 96 edi = POP32_VAL(esp); /* 0x36091047: pop edi */ 97 esi = POP32_VAL(esp); /* 0x36091048: pop esi */ 98 esp = ebp; /* 0x36091049: mov esp, ebp */ 99 ebp = POP32_VAL(esp); /* 0x3609104B: pop ebp */ 100 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609104C: ret 8 */ 101 L_3609104F: 102 edi = POP32_VAL(esp); /* 0x3609104F: pop edi */ 103 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 104 eax = 0; /* 0x36091050: xor eax, eax */ 105 _cf = 0; 106 _flag_k = FK_TEST; 107 esi = POP32_VAL(esp); /* 0x36091052: pop esi */ 108 esp = ebp; /* 0x36091053: mov esp, ebp */ 109 ebp = POP32_VAL(esp); /* 0x36091055: pop ebp */ 110 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36091056: ret 8 */ 111 RECOMP_REGS_OUT(); 112 } 113 114 void sub_36091060(void) { 115 int _fpu_cmp = 0; 116 uint32_t _cf = 0; 117 int _df = 1; 118 uint32_t _flag_k = FK_NONE; 119 uint32_t _flag_a = 0, _flag_b = 0; 120 uint32_t _itail_tgt = 0; 121 RECOMP_REGS_LOCALS 122 RECOMP_ENTER(0x36091060u); 123 124 L_36091060: 125 eax = MEM32(ecx); /* 0x36091060: mov eax, dword ptr [ecx] */ 126 PUSH32(esp, 2); /* 0x36091062: push 2 */ 127 PUSH32(esp, 0x161u); /* 0x36091064: push 0x161 */ 128 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36091069: call dword ptr [eax + 4] */ 129 RECOMP_FLAGS_IN(); 130 /* cmp eax, 2 */ /* 0x3609106C: cmp eax, 2 */ 131 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 133 _flag_k = FK_CMP; 134 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609107E; /* 0x3609106F: je 0x3609107e */ 135 L_36091071: 136 /* cmp eax, 3 */ /* 0x36091071: cmp eax, 3 */ 137 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 138 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 139 _flag_k = FK_CMP; 140 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609107E; /* 0x36091074: je 0x3609107e */ 141 L_36091076: 142 /* cmp eax, 6 */ /* 0x36091076: cmp eax, 6 */ 143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 145 _flag_k = FK_CMP; 146 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609107E; /* 0x36091079: je 0x3609107e */ 147 L_3609107B: 148 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 149 SET_LO8(eax, 0); /* 0x3609107B: xor al, al */ 150 _cf = 0; 151 _flag_k = FK_NARROW(FK_TEST, 24); 152 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609107D: ret */ 153 L_3609107E: 154 SET_LO8(eax, 1); /* 0x3609107E: mov al, 1 */ 155 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36091080: ret */ 156 RECOMP_REGS_OUT(); 157 } 158 159 void sub_36091090(void) { 160 int _fpu_cmp = 0; 161 uint32_t _cf = 0; 162 int _df = 1; 163 uint32_t _flag_k = FK_NONE; 164 uint32_t _flag_a = 0, _flag_b = 0; 165 uint32_t _itail_tgt = 0; 166 RECOMP_REGS_LOCALS 167 RECOMP_ENTER(0x36091090u); 168 169 L_36091090: 170 eax = MEM32(ecx); /* 0x36091090: mov eax, dword ptr [ecx] */ 171 PUSH32(esp, 2); /* 0x36091092: push 2 */ 172 PUSH32(esp, 0x1A4u); /* 0x36091094: push 0x1a4 */ 173 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x36091099: call dword ptr [eax + 4] */ 174 RECOMP_FLAGS_IN(); 175 /* cmp eax, 1 */ /* 0x3609109C: cmp eax, 1 */ 176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 178 _flag_k = FK_CMP; 179 SET_LO8(eax, (CMP_L(_flag_a, _flag_b)) ? 1 : 0); /* 0x3609109F: setl al */ 180 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360910A2: ret */ 181 RECOMP_REGS_OUT(); 182 } 183 184 void sub_360910B0(void) { 185 int _fpu_cmp = 0; 186 uint32_t _cf = 0; 187 int _df = 1; 188 uint32_t _flag_k = FK_NONE; 189 uint32_t _flag_a = 0, _flag_b = 0; 190 uint32_t _itail_tgt = 0; 191 RECOMP_REGS_LOCALS 192 RECOMP_ENTER(0x360910B0u); 193 194 L_360910B0: 195 eax = MEM32(ecx); /* 0x360910B0: mov eax, dword ptr [ecx] */ 196 PUSH32(esp, 2); /* 0x360910B2: push 2 */ 197 PUSH32(esp, 0x1A4u); /* 0x360910B4: push 0x1a4 */ 198 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360910B9: call dword ptr [eax + 4] */ 199 RECOMP_FLAGS_IN(); 200 /* test eax, eax */ /* 0x360910BC: test eax, eax */ 201 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 202 _cf = 0; 203 _flag_k = FK_TEST; 204 SET_LO8(eax, (TEST_G(_flag_a, _flag_b)) ? 1 : 0); /* 0x360910BE: setg al */ 205 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360910C1: ret */ 206 RECOMP_REGS_OUT(); 207 } 208 209 void sub_360910D0(void) { 210 int _fpu_cmp = 0; 211 uint32_t _cf = 0; 212 int _df = 1; 213 uint32_t _flag_k = FK_NONE; 214 uint32_t _flag_a = 0, _flag_b = 0; 215 uint32_t _itail_tgt = 0; 216 RECOMP_REGS_LOCALS 217 RECOMP_ENTER(0x360910D0u); 218 219 L_360910D0: 220 PUSH32(esp, ebp); /* 0x360910D0: push ebp */ 221 ebp = esp; /* 0x360910D1: mov ebp, esp */ 222 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 224 esp = esp - 8; /* 0x360910D3: sub esp, 8 */ 225 _flag_k = FK_CMP; 226 PUSH32(esp, ebx); /* 0x360910D6: push ebx */ 227 PUSH32(esp, esi); /* 0x360910D7: push esi */ 228 esi = ecx; /* 0x360910D8: mov esi, ecx */ 229 ecx = MEM32(esi + 0x10); /* 0x360910DA: mov ecx, dword ptr [esi + 0x10] */ 230 /* test ecx, ecx */ /* 0x360910DD: test ecx, ecx */ 231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 232 _cf = 0; 233 _flag_k = FK_TEST; 234 PUSH32(esp, edi); /* 0x360910DF: push edi */ 235 edi = MEM32(esi + 0x4); /* 0x360910E0: mov edi, dword ptr [esi + 4] */ 236 eax = MEM32(edi); /* 0x360910E3: mov eax, dword ptr [edi] */ 237 MEM32(ebp + (-0x4)) = eax; /* 0x360910E5: mov dword ptr [ebp - 4], eax */ 238 if (TEST_Z(_flag_a, _flag_b)) goto L_3609113A; /* 0x360910E8: je 0x3609113a */ 239 L_360910EA: 240 ecx = eax; /* 0x360910EA: mov ecx, eax */ 241 /* cmp eax, ecx */ /* 0x360910EC: cmp eax, ecx */ 242 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 243 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 244 _flag_k = FK_CMP; 245 if (CMP_NE(_flag_a, _flag_b)) goto L_3609113A; /* 0x360910EE: jne 0x3609113a */ 246 L_360910F0: 247 /* cmp edi, edi */ /* 0x360910F0: cmp edi, edi */ 248 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 250 _flag_k = FK_CMP; 251 if (CMP_NE(_flag_a, _flag_b)) goto L_3609113A; /* 0x360910F2: jne 0x3609113a */ 252 L_360910F4: 253 ebx = MEM32(edi + 0x4); /* 0x360910F4: mov ebx, dword ptr [edi + 4] */ 254 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360910F7: cmp ebx, dword ptr [esi + 8] */ 255 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 257 _flag_k = FK_CMP; 258 edi = ebx; /* 0x360910FA: mov edi, ebx */ 259 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609111D; /* 0x360910FC: je 0x3609111d */ 260 L_360910FE: 261 eax = MEM32(edi + 0x8); /* 0x360910FE: mov eax, dword ptr [edi + 8] */ 262 PUSH32(esp, eax); /* 0x36091101: push eax */ 263 ecx = esi; /* 0x36091102: mov ecx, esi */ 264 RECOMP_ICALL(0x36091240u); /* 0x36091104: call 0x36091240 */ /* not lifted */ 265 RECOMP_FLAGS_IN(); 266 edi = MEM32(edi); /* 0x36091109: mov edi, dword ptr [edi] */ 267 PUSH32(esp, ebx); /* 0x3609110B: push ebx */ 268 RECOMP_ICALL(0x3615FCC4u); /* 0x3609110C: call 0x3615fcc4 */ /* not lifted */ 269 RECOMP_FLAGS_IN(); 270 eax = MEM32(esi + 0x8); /* 0x36091111: mov eax, dword ptr [esi + 8] */ 271 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 272 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 273 esp = esp + 4; /* 0x36091114: add esp, 4 */ 274 _flag_k = FK_ADD; 275 /* cmp edi, eax */ /* 0x36091117: cmp edi, eax */ 276 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 277 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 278 _flag_k = FK_CMP; 279 ebx = edi; /* 0x36091119: mov ebx, edi */ 280 RECOMP_BACKEDGE(); 281 if (CMP_NE(_flag_a, _flag_b)) goto L_360910FE; /* 0x3609111B: jne 0x360910fe */ 282 L_3609111D: 283 ecx = MEM32(esi + 0x4); /* 0x3609111D: mov ecx, dword ptr [esi + 4] */ 284 edx = MEM32(esi + 0x8); /* 0x36091120: mov edx, dword ptr [esi + 8] */ 285 MEM32(ecx + 0x4) = edx; /* 0x36091123: mov dword ptr [ecx + 4], edx */ 286 eax = MEM32(esi + 0x4); /* 0x36091126: mov eax, dword ptr [esi + 4] */ 287 MEM32(esi + 0x10) = 0; /* 0x36091129: mov dword ptr [esi + 0x10], 0 */ 288 MEM32(eax) = eax; /* 0x36091130: mov dword ptr [eax], eax */ 289 eax = MEM32(esi + 0x4); /* 0x36091132: mov eax, dword ptr [esi + 4] */ 290 MEM32(eax + 0x8) = eax; /* 0x36091135: mov dword ptr [eax + 8], eax */ 291 goto L_3609115B; /* 0x36091138: jmp 0x3609115b */ 292 L_3609113A: 293 /* cmp eax, edi */ /* 0x3609113A: cmp eax, edi */ 294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 296 _flag_k = FK_CMP; 297 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609115B; /* 0x3609113C: je 0x3609115b */ 298 L_3609113E: 299 ecx = ebp + (-0x4); /* 0x3609113E: lea ecx, [ebp - 4] */ 300 ebx = eax; /* 0x36091141: mov ebx, eax */ 301 RECOMP_ICALL(0x36064140u); /* 0x36091143: call 0x36064140 */ /* not lifted */ 302 RECOMP_FLAGS_IN(); 303 PUSH32(esp, ebx); /* 0x36091148: push ebx */ 304 eax = ebp + (-0x8); /* 0x36091149: lea eax, [ebp - 8] */ 305 PUSH32(esp, eax); /* 0x3609114C: push eax */ 306 ecx = esi; /* 0x3609114D: mov ecx, esi */ 307 RECOMP_ICALL(0x360588E0u); /* 0x3609114F: call 0x360588e0 */ /* not lifted */ 308 RECOMP_FLAGS_IN(); 309 eax = MEM32(ebp + (-0x4)); /* 0x36091154: mov eax, dword ptr [ebp - 4] */ 310 /* cmp eax, edi */ /* 0x36091157: cmp eax, edi */ 311 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 313 _flag_k = FK_CMP; 314 RECOMP_BACKEDGE(); 315 if (CMP_NE(_flag_a, _flag_b)) goto L_3609113E; /* 0x36091159: jne 0x3609113e */ 316 L_3609115B: 317 ecx = MEM32(esi + 0x4); /* 0x3609115B: mov ecx, dword ptr [esi + 4] */ 318 PUSH32(esp, ecx); /* 0x3609115E: push ecx */ 319 RECOMP_ICALL(0x3615FCC4u); /* 0x3609115F: call 0x3615fcc4 */ /* not lifted */ 320 RECOMP_FLAGS_IN(); 321 edx = MEM32(esi + 0x8); /* 0x36091164: mov edx, dword ptr [esi + 8] */ 322 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 323 edi = 0; /* 0x36091167: xor edi, edi */ 324 _cf = 0; 325 _flag_k = FK_TEST; 326 PUSH32(esp, edx); /* 0x36091169: push edx */ 327 MEM32(esi + 0x4) = edi; /* 0x3609116A: mov dword ptr [esi + 4], edi */ 328 MEM32(esi + 0x10) = edi; /* 0x3609116D: mov dword ptr [esi + 0x10], edi */ 329 RECOMP_ICALL(0x3615FCC4u); /* 0x36091170: call 0x3615fcc4 */ /* not lifted */ 330 RECOMP_FLAGS_IN(); 331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 332 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 333 esp = esp + 8; /* 0x36091175: add esp, 8 */ 334 _flag_k = FK_ADD; 335 MEM32(esi + 0x8) = edi; /* 0x36091178: mov dword ptr [esi + 8], edi */ 336 edi = POP32_VAL(esp); /* 0x3609117B: pop edi */ 337 esi = POP32_VAL(esp); /* 0x3609117C: pop esi */ 338 ebx = POP32_VAL(esp); /* 0x3609117D: pop ebx */ 339 esp = ebp; /* 0x3609117E: mov esp, ebp */ 340 ebp = POP32_VAL(esp); /* 0x36091180: pop ebp */ 341 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36091181: ret */ 342 RECOMP_REGS_OUT(); 343 } 344 345 void sub_36091190(void) { 346 int _fpu_cmp = 0; 347 uint32_t _cf = 0; 348 int _df = 1; 349 uint32_t _flag_k = FK_NONE; 350 uint32_t _flag_a = 0, _flag_b = 0; 351 uint32_t _itail_tgt = 0; 352 RECOMP_REGS_LOCALS 353 RECOMP_ENTER(0x36091190u); 354 355 L_36091190: 356 PUSH32(esp, ebp); /* 0x36091190: push ebp */ 357 ebp = esp; /* 0x36091191: mov ebp, esp */ 358 PUSH32(esp, ebx); /* 0x36091193: push ebx */ 359 ebx = MEM32(ebp + 0x10); /* 0x36091194: mov ebx, dword ptr [ebp + 0x10] */ 360 PUSH32(esp, esi); /* 0x36091197: push esi */ 361 esi = ecx; /* 0x36091198: mov esi, ecx */ 362 eax = MEM32(esi + 0x10); /* 0x3609119A: mov eax, dword ptr [esi + 0x10] */ 363 /* test eax, eax */ /* 0x3609119D: test eax, eax */ 364 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 365 _cf = 0; 366 _flag_k = FK_TEST; 367 ecx = MEM32(ebp + 0xC); /* 0x3609119F: mov ecx, dword ptr [ebp + 0xc] */ 368 PUSH32(esp, edi); /* 0x360911A2: push edi */ 369 if (TEST_Z(_flag_a, _flag_b)) goto L_36091205; /* 0x360911A3: je 0x36091205 */ 370 L_360911A5: 371 eax = MEM32(esi + 0x4); /* 0x360911A5: mov eax, dword ptr [esi + 4] */ 372 /* cmp ecx, MEM32(eax) */ /* 0x360911A8: cmp ecx, dword ptr [eax] */ 373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 375 _flag_k = FK_CMP; 376 if (CMP_NE(_flag_a, _flag_b)) goto L_36091205; /* 0x360911AA: jne 0x36091205 */ 377 L_360911AC: 378 /* cmp ebx, eax */ /* 0x360911AC: cmp ebx, eax */ 379 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 381 _flag_k = FK_CMP; 382 if (CMP_NE(_flag_a, _flag_b)) goto L_36091205; /* 0x360911AE: jne 0x36091205 */ 383 L_360911B0: 384 ebx = MEM32(eax + 0x4); /* 0x360911B0: mov ebx, dword ptr [eax + 4] */ 385 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x360911B3: cmp ebx, dword ptr [esi + 8] */ 386 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 387 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 388 _flag_k = FK_CMP; 389 edi = ebx; /* 0x360911B6: mov edi, ebx */ 390 if (CMP_EQ(_flag_a, _flag_b)) goto L_360911D9; /* 0x360911B8: je 0x360911d9 */ 391 L_360911BA: 392 eax = MEM32(edi + 0x8); /* 0x360911BA: mov eax, dword ptr [edi + 8] */ 393 PUSH32(esp, eax); /* 0x360911BD: push eax */ 394 ecx = esi; /* 0x360911BE: mov ecx, esi */ 395 RECOMP_ICALL(0x36091280u); /* 0x360911C0: call 0x36091280 */ /* not lifted */ 396 RECOMP_FLAGS_IN(); 397 edi = MEM32(edi); /* 0x360911C5: mov edi, dword ptr [edi] */ 398 PUSH32(esp, ebx); /* 0x360911C7: push ebx */ 399 RECOMP_ICALL(0x3615FCC4u); /* 0x360911C8: call 0x3615fcc4 */ /* not lifted */ 400 RECOMP_FLAGS_IN(); 401 eax = MEM32(esi + 0x8); /* 0x360911CD: mov eax, dword ptr [esi + 8] */ 402 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 403 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 404 esp = esp + 4; /* 0x360911D0: add esp, 4 */ 405 _flag_k = FK_ADD; 406 /* cmp edi, eax */ /* 0x360911D3: cmp edi, eax */ 407 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 408 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 409 _flag_k = FK_CMP; 410 ebx = edi; /* 0x360911D5: mov ebx, edi */ 411 RECOMP_BACKEDGE(); 412 if (CMP_NE(_flag_a, _flag_b)) goto L_360911BA; /* 0x360911D7: jne 0x360911ba */ 413 L_360911D9: 414 ecx = MEM32(esi + 0x4); /* 0x360911D9: mov ecx, dword ptr [esi + 4] */ 415 edx = MEM32(esi + 0x8); /* 0x360911DC: mov edx, dword ptr [esi + 8] */ 416 MEM32(ecx + 0x4) = edx; /* 0x360911DF: mov dword ptr [ecx + 4], edx */ 417 eax = MEM32(esi + 0x4); /* 0x360911E2: mov eax, dword ptr [esi + 4] */ 418 MEM32(esi + 0x10) = 0; /* 0x360911E5: mov dword ptr [esi + 0x10], 0 */ 419 MEM32(eax) = eax; /* 0x360911EC: mov dword ptr [eax], eax */ 420 eax = MEM32(esi + 0x4); /* 0x360911EE: mov eax, dword ptr [esi + 4] */ 421 MEM32(eax + 0x8) = eax; /* 0x360911F1: mov dword ptr [eax + 8], eax */ 422 eax = MEM32(esi + 0x4); /* 0x360911F4: mov eax, dword ptr [esi + 4] */ 423 ecx = MEM32(eax); /* 0x360911F7: mov ecx, dword ptr [eax] */ 424 eax = MEM32(ebp + 0x8); /* 0x360911F9: mov eax, dword ptr [ebp + 8] */ 425 edi = POP32_VAL(esp); /* 0x360911FC: pop edi */ 426 esi = POP32_VAL(esp); /* 0x360911FD: pop esi */ 427 MEM32(eax) = ecx; /* 0x360911FE: mov dword ptr [eax], ecx */ 428 ebx = POP32_VAL(esp); /* 0x36091200: pop ebx */ 429 ebp = POP32_VAL(esp); /* 0x36091201: pop ebp */ 430 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091202: ret 0xc */ 431 L_36091205: 432 /* cmp ecx, ebx */ /* 0x36091205: cmp ecx, ebx */ 433 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 435 _flag_k = FK_CMP; 436 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091226; /* 0x36091207: je 0x36091226 */ 437 L_36091209: 438 edi = ecx; /* 0x36091209: mov edi, ecx */ 439 ecx = ebp + 0xC; /* 0x3609120B: lea ecx, [ebp + 0xc] */ 440 RECOMP_ICALL(0x36064140u); /* 0x3609120E: call 0x36064140 */ /* not lifted */ 441 RECOMP_FLAGS_IN(); 442 PUSH32(esp, edi); /* 0x36091213: push edi */ 443 ecx = ebp + 0x10; /* 0x36091214: lea ecx, [ebp + 0x10] */ 444 PUSH32(esp, ecx); /* 0x36091217: push ecx */ 445 ecx = esi; /* 0x36091218: mov ecx, esi */ 446 RECOMP_ICALL(0x360588E0u); /* 0x3609121A: call 0x360588e0 */ /* not lifted */ 447 RECOMP_FLAGS_IN(); 448 ecx = MEM32(ebp + 0xC); /* 0x3609121F: mov ecx, dword ptr [ebp + 0xc] */ 449 /* cmp ecx, ebx */ /* 0x36091222: cmp ecx, ebx */ 450 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 452 _flag_k = FK_CMP; 453 RECOMP_BACKEDGE(); 454 if (CMP_NE(_flag_a, _flag_b)) goto L_36091209; /* 0x36091224: jne 0x36091209 */ 455 L_36091226: 456 eax = MEM32(ebp + 0x8); /* 0x36091226: mov eax, dword ptr [ebp + 8] */ 457 edi = POP32_VAL(esp); /* 0x36091229: pop edi */ 458 esi = POP32_VAL(esp); /* 0x3609122A: pop esi */ 459 MEM32(eax) = ecx; /* 0x3609122B: mov dword ptr [eax], ecx */ 460 ebx = POP32_VAL(esp); /* 0x3609122D: pop ebx */ 461 ebp = POP32_VAL(esp); /* 0x3609122E: pop ebp */ 462 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3609122F: ret 0xc */ 463 RECOMP_REGS_OUT(); 464 } 465 466 void sub_36091240(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(0x36091240u); 475 476 L_36091240: 477 PUSH32(esp, ebp); /* 0x36091240: push ebp */ 478 ebp = esp; /* 0x36091241: mov ebp, esp */ 479 PUSH32(esp, ebx); /* 0x36091243: push ebx */ 480 PUSH32(esp, esi); /* 0x36091244: push esi */ 481 ebx = ecx; /* 0x36091245: mov ebx, ecx */ 482 eax = MEM32(ebx + 0x8); /* 0x36091247: mov eax, dword ptr [ebx + 8] */ 483 PUSH32(esp, edi); /* 0x3609124A: push edi */ 484 edi = MEM32(ebp + 0x8); /* 0x3609124B: mov edi, dword ptr [ebp + 8] */ 485 /* cmp edi, eax */ /* 0x3609124E: cmp edi, eax */ 486 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 488 _flag_k = FK_CMP; 489 esi = edi; /* 0x36091250: mov esi, edi */ 490 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091273; /* 0x36091252: je 0x36091273 */ 491 L_36091254: 492 eax = MEM32(esi + 0x8); /* 0x36091254: mov eax, dword ptr [esi + 8] */ 493 PUSH32(esp, eax); /* 0x36091257: push eax */ 494 ecx = ebx; /* 0x36091258: mov ecx, ebx */ 495 RECOMP_ICALL(0x36091240u); /* 0x3609125A: call 0x36091240 */ /* not lifted */ 496 RECOMP_FLAGS_IN(); 497 esi = MEM32(esi); /* 0x3609125F: mov esi, dword ptr [esi] */ 498 PUSH32(esp, edi); /* 0x36091261: push edi */ 499 RECOMP_ICALL(0x3615FCC4u); /* 0x36091262: call 0x3615fcc4 */ /* not lifted */ 500 RECOMP_FLAGS_IN(); 501 eax = MEM32(ebx + 0x8); /* 0x36091267: mov eax, dword ptr [ebx + 8] */ 502 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 503 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 504 esp = esp + 4; /* 0x3609126A: add esp, 4 */ 505 _flag_k = FK_ADD; 506 /* cmp esi, eax */ /* 0x3609126D: cmp esi, eax */ 507 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 508 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 509 _flag_k = FK_CMP; 510 edi = esi; /* 0x3609126F: mov edi, esi */ 511 RECOMP_BACKEDGE(); 512 if (CMP_NE(_flag_a, _flag_b)) goto L_36091254; /* 0x36091271: jne 0x36091254 */ 513 L_36091273: 514 edi = POP32_VAL(esp); /* 0x36091273: pop edi */ 515 esi = POP32_VAL(esp); /* 0x36091274: pop esi */ 516 ebx = POP32_VAL(esp); /* 0x36091275: pop ebx */ 517 ebp = POP32_VAL(esp); /* 0x36091276: pop ebp */ 518 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36091277: ret 4 */ 519 RECOMP_REGS_OUT(); 520 } 521 522 void sub_36091280(void) { 523 int _fpu_cmp = 0; 524 uint32_t _cf = 0; 525 int _df = 1; 526 uint32_t _flag_k = FK_NONE; 527 uint32_t _flag_a = 0, _flag_b = 0; 528 uint32_t _itail_tgt = 0; 529 RECOMP_REGS_LOCALS 530 RECOMP_ENTER(0x36091280u); 531 532 L_36091280: 533 PUSH32(esp, ebp); /* 0x36091280: push ebp */ 534 ebp = esp; /* 0x36091281: mov ebp, esp */ 535 PUSH32(esp, ebx); /* 0x36091283: push ebx */ 536 PUSH32(esp, esi); /* 0x36091284: push esi */ 537 ebx = ecx; /* 0x36091285: mov ebx, ecx */ 538 eax = MEM32(ebx + 0x8); /* 0x36091287: mov eax, dword ptr [ebx + 8] */ 539 PUSH32(esp, edi); /* 0x3609128A: push edi */ 540 edi = MEM32(ebp + 0x8); /* 0x3609128B: mov edi, dword ptr [ebp + 8] */ 541 /* cmp edi, eax */ /* 0x3609128E: cmp edi, eax */ 542 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 544 _flag_k = FK_CMP; 545 esi = edi; /* 0x36091290: mov esi, edi */ 546 if (CMP_EQ(_flag_a, _flag_b)) goto L_360912B3; /* 0x36091292: je 0x360912b3 */ 547 L_36091294: 548 eax = MEM32(esi + 0x8); /* 0x36091294: mov eax, dword ptr [esi + 8] */ 549 PUSH32(esp, eax); /* 0x36091297: push eax */ 550 ecx = ebx; /* 0x36091298: mov ecx, ebx */ 551 RECOMP_ICALL(0x36091280u); /* 0x3609129A: call 0x36091280 */ /* not lifted */ 552 RECOMP_FLAGS_IN(); 553 esi = MEM32(esi); /* 0x3609129F: mov esi, dword ptr [esi] */ 554 PUSH32(esp, edi); /* 0x360912A1: push edi */ 555 RECOMP_ICALL(0x3615FCC4u); /* 0x360912A2: call 0x3615fcc4 */ /* not lifted */ 556 RECOMP_FLAGS_IN(); 557 eax = MEM32(ebx + 0x8); /* 0x360912A7: mov eax, dword ptr [ebx + 8] */ 558 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 559 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 560 esp = esp + 4; /* 0x360912AA: add esp, 4 */ 561 _flag_k = FK_ADD; 562 /* cmp esi, eax */ /* 0x360912AD: cmp esi, eax */ 563 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 565 _flag_k = FK_CMP; 566 edi = esi; /* 0x360912AF: mov edi, esi */ 567 RECOMP_BACKEDGE(); 568 if (CMP_NE(_flag_a, _flag_b)) goto L_36091294; /* 0x360912B1: jne 0x36091294 */ 569 L_360912B3: 570 edi = POP32_VAL(esp); /* 0x360912B3: pop edi */ 571 esi = POP32_VAL(esp); /* 0x360912B4: pop esi */ 572 ebx = POP32_VAL(esp); /* 0x360912B5: pop ebx */ 573 ebp = POP32_VAL(esp); /* 0x360912B6: pop ebp */ 574 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360912B7: ret 4 */ 575 RECOMP_REGS_OUT(); 576 } 577 578 void sub_360912C0(void) { 579 int _fpu_cmp = 0; 580 uint32_t _cf = 0; 581 int _df = 1; 582 uint32_t _flag_k = FK_NONE; 583 uint32_t _flag_a = 0, _flag_b = 0; 584 uint32_t _itail_tgt = 0; 585 RECOMP_REGS_LOCALS 586 RECOMP_ENTER(0x360912C0u); 587 588 L_360912C0: 589 PUSH32(esp, ebp); /* 0x360912C0: push ebp */ 590 ebp = esp; /* 0x360912C1: mov ebp, esp */ 591 PUSH32(esp, ecx); /* 0x360912C3: push ecx */ 592 PUSH32(esp, ebx); /* 0x360912C4: push ebx */ 593 PUSH32(esp, esi); /* 0x360912C5: push esi */ 594 PUSH32(esp, edi); /* 0x360912C6: push edi */ 595 PUSH32(esp, 0x18u); /* 0x360912C7: push 0x18 */ 596 esi = ecx; /* 0x360912C9: mov esi, ecx */ 597 RECOMP_ICALL(0x3615FD6Au); /* 0x360912CB: call 0x3615fd6a */ /* not lifted */ 598 RECOMP_FLAGS_IN(); 599 edi = MEM32(ebp + 0x10); /* 0x360912D0: mov edi, dword ptr [ebp + 0x10] */ 600 ebx = MEM32(ebp + 0x14); /* 0x360912D3: mov ebx, dword ptr [ebp + 0x14] */ 601 MEM32(eax + 0x4) = edi; /* 0x360912D6: mov dword ptr [eax + 4], edi */ 602 MEM8(eax + 0x14) = (uint8_t)(0); /* 0x360912D9: mov byte ptr [eax + 0x14], 0 */ 603 MEM8(eax + 0x15) = (uint8_t)(0); /* 0x360912DD: mov byte ptr [eax + 0x15], 0 */ 604 ecx = MEM32(esi + 0x8); /* 0x360912E1: mov ecx, dword ptr [esi + 8] */ 605 MEM32(eax) = ecx; /* 0x360912E4: mov dword ptr [eax], ecx */ 606 edx = MEM32(esi + 0x8); /* 0x360912E6: mov edx, dword ptr [esi + 8] */ 607 MEM32(ebp + (-0x4)) = eax; /* 0x360912E9: mov dword ptr [ebp - 4], eax */ 608 MEM32(eax + 0x8) = edx; /* 0x360912EC: mov dword ptr [eax + 8], edx */ 609 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 610 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 611 eax = eax + 0xCu; /* 0x360912EF: add eax, 0xc */ 612 _flag_k = FK_ADD; 613 PUSH32(esp, ebx); /* 0x360912F2: push ebx */ 614 PUSH32(esp, eax); /* 0x360912F3: push eax */ 615 RECOMP_ICALL(0x36059750u); /* 0x360912F4: call 0x36059750 */ /* not lifted */ 616 RECOMP_FLAGS_IN(); 617 ecx = MEM32(esi + 0x10); /* 0x360912F9: mov ecx, dword ptr [esi + 0x10] */ 618 eax = MEM32(esi + 0x4); /* 0x360912FC: mov eax, dword ptr [esi + 4] */ 619 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 620 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 621 esp = esp + 0xCu; /* 0x360912FF: add esp, 0xc */ 622 _flag_k = FK_ADD; 623 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 624 ecx = ecx + 1; /* 0x36091302: inc ecx */ 625 _flag_k = FK_INC; 626 /* cmp edi, eax */ /* 0x36091303: cmp edi, eax */ 627 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 629 _flag_k = FK_CMP; 630 MEM32(esi + 0x10) = ecx; /* 0x36091305: mov dword ptr [esi + 0x10], ecx */ 631 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609132C; /* 0x36091308: je 0x3609132c */ 632 L_3609130A: 633 eax = MEM32(ebp + 0xC); /* 0x3609130A: mov eax, dword ptr [ebp + 0xc] */ 634 /* cmp eax, MEM32(esi + 0x8) */ /* 0x3609130D: cmp eax, dword ptr [esi + 8] */ 635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 637 _flag_k = FK_CMP; 638 if (CMP_NE(_flag_a, _flag_b)) goto L_3609132C; /* 0x36091310: jne 0x3609132c */ 639 L_36091312: 640 ecx = MEM32(ebx); /* 0x36091312: mov ecx, dword ptr [ebx] */ 641 /* cmp ecx, MEM32(edi + 0xC) */ /* 0x36091314: cmp ecx, dword ptr [edi + 0xc] */ 642 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0xC)); 643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 644 _flag_k = FK_CMP; 645 if (CMP_L(_flag_a, _flag_b)) goto L_3609132C; /* 0x36091317: jl 0x3609132c */ 646 L_36091319: 647 ecx = MEM32(ebp + (-0x4)); /* 0x36091319: mov ecx, dword ptr [ebp - 4] */ 648 MEM32(edi + 0x8) = ecx; /* 0x3609131C: mov dword ptr [edi + 8], ecx */ 649 eax = MEM32(esi + 0x4); /* 0x3609131F: mov eax, dword ptr [esi + 4] */ 650 /* cmp edi, MEM32(eax + 0x8) */ /* 0x36091322: cmp edi, dword ptr [eax + 8] */ 651 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 652 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 653 _flag_k = FK_CMP; 654 if (CMP_NE(_flag_a, _flag_b)) goto L_3609134C; /* 0x36091325: jne 0x3609134c */ 655 L_36091327: 656 MEM32(eax + 0x8) = ecx; /* 0x36091327: mov dword ptr [eax + 8], ecx */ 657 goto L_3609134C; /* 0x3609132A: jmp 0x3609134c */ 658 L_3609132C: 659 ecx = MEM32(ebp + (-0x4)); /* 0x3609132C: mov ecx, dword ptr [ebp - 4] */ 660 MEM32(edi) = ecx; /* 0x3609132F: mov dword ptr [edi], ecx */ 661 eax = MEM32(esi + 0x4); /* 0x36091331: mov eax, dword ptr [esi + 4] */ 662 /* cmp edi, eax */ /* 0x36091334: cmp edi, eax */ 663 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 664 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 665 _flag_k = FK_CMP; 666 if (CMP_NE(_flag_a, _flag_b)) goto L_36091343; /* 0x36091336: jne 0x36091343 */ 667 L_36091338: 668 MEM32(eax + 0x4) = ecx; /* 0x36091338: mov dword ptr [eax + 4], ecx */ 669 edx = MEM32(esi + 0x4); /* 0x3609133B: mov edx, dword ptr [esi + 4] */ 670 MEM32(edx + 0x8) = ecx; /* 0x3609133E: mov dword ptr [edx + 8], ecx */ 671 goto L_3609134C; /* 0x36091341: jmp 0x3609134c */ 672 L_36091343: 673 /* cmp edi, MEM32(eax) */ /* 0x36091343: cmp edi, dword ptr [eax] */ 674 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(eax)); 675 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 676 _flag_k = FK_CMP; 677 if (CMP_NE(_flag_a, _flag_b)) goto L_3609134C; /* 0x36091345: jne 0x3609134c */ 678 L_36091347: 679 ecx = MEM32(ebp + (-0x4)); /* 0x36091347: mov ecx, dword ptr [ebp - 4] */ 680 MEM32(eax) = ecx; /* 0x3609134A: mov dword ptr [eax], ecx */ 681 L_3609134C: 682 edx = MEM32(esi + 0x4); /* 0x3609134C: mov edx, dword ptr [esi + 4] */ 683 eax = MEM32(ebp + (-0x4)); /* 0x3609134F: mov eax, dword ptr [ebp - 4] */ 684 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091352: cmp eax, dword ptr [edx + 4] */ 685 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 686 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 687 _flag_k = FK_CMP; 688 SET_LO8(ebx, 1); /* 0x36091355: mov bl, 1 */ 689 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091357: je 0x360914dd */ 690 L_3609135D: 691 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 692 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 693 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 694 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 695 _cf = 0; 696 _flag_k = FK_NARROW(FK_TEST, 24); 697 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 698 L_3609136B: 699 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 700 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 701 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 702 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 704 _flag_k = FK_CMP; 705 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 706 L_36091378: 707 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 708 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 709 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 710 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 711 _flag_k = FK_NARROW(FK_CMP, 24); 712 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 713 L_36091381: 714 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 715 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 716 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 717 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 718 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 719 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 720 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 721 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 722 L_3609139C: 723 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 724 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 725 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 726 _flag_k = FK_CMP; 727 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 728 L_360913A1: 729 eax = ecx; /* 0x360913A1: mov eax, ecx */ 730 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 731 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 732 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 733 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 734 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 735 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 737 _flag_k = FK_CMP; 738 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 739 L_360913B2: 740 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 741 L_360913B5: 742 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 743 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 744 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 745 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 746 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 748 _flag_k = FK_CMP; 749 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 750 L_360913C3: 751 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 752 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 753 L_360913C8: 754 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 755 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 756 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 757 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 758 _flag_k = FK_CMP; 759 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 760 L_360913CF: 761 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 762 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 763 L_360913D3: 764 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 765 L_360913D6: 766 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 767 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 768 L_360913DB: 769 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 770 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 771 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 772 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 773 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 774 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 775 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 776 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 777 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 778 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 779 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 780 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 781 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 783 _flag_k = FK_CMP; 784 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 785 L_36091400: 786 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 787 L_36091403: 788 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 789 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 790 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 791 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 792 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 793 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 794 _flag_k = FK_CMP; 795 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 796 L_36091411: 797 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 798 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 799 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 800 L_3609141C: 801 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 802 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 803 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 805 _flag_k = FK_CMP; 806 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 807 L_36091424: 808 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 809 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 810 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 811 L_3609142F: 812 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 813 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 814 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 815 L_36091439: 816 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 817 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 818 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 819 _flag_k = FK_NARROW(FK_CMP, 24); 820 RECOMP_BACKEDGE(); 821 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 822 L_36091443: 823 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 826 _flag_k = FK_CMP; 827 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 828 L_36091447: 829 eax = ecx; /* 0x36091447: mov eax, ecx */ 830 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 831 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 832 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 833 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 834 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 835 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 837 _flag_k = FK_CMP; 838 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 839 L_36091458: 840 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 841 L_3609145B: 842 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 843 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 844 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 845 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 846 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 847 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 848 _flag_k = FK_CMP; 849 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 850 L_36091469: 851 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 852 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 853 L_3609146E: 854 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 855 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 856 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 858 _flag_k = FK_CMP; 859 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 860 L_36091476: 861 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 862 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 863 L_3609147B: 864 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 865 L_3609147D: 866 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 867 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 868 L_36091483: 869 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 870 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 871 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 872 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 873 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 874 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 875 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 876 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 877 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 878 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 879 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 880 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 881 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 882 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 883 _flag_k = FK_CMP; 884 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 885 L_360914A8: 886 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 887 L_360914AB: 888 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 889 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 890 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 891 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 892 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 893 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 894 _flag_k = FK_CMP; 895 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 896 L_360914B9: 897 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 898 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 899 L_360914BE: 900 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 901 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 902 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 903 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 904 _flag_k = FK_CMP; 905 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 906 L_360914C5: 907 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 908 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 909 L_360914C9: 910 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 911 L_360914CC: 912 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 913 L_360914CE: 914 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 915 L_360914D1: 916 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 917 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 918 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 919 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 920 _flag_k = FK_CMP; 921 RECOMP_BACKEDGE(); 922 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 923 L_360914DD: 924 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 925 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 926 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 927 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 928 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 929 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 930 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 931 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 932 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 933 esp = ebp; /* 0x360914F1: mov esp, ebp */ 934 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 935 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 936 RECOMP_REGS_OUT(); 937 } 938 939 void sub_3609135D(void) { 940 int _fpu_cmp = 0; 941 uint32_t _cf = 0; 942 int _df = 1; 943 uint32_t _flag_k = FK_NONE; 944 uint32_t _flag_a = 0, _flag_b = 0; 945 uint32_t _itail_tgt = 0; 946 RECOMP_REGS_LOCALS 947 RECOMP_ENTER(0x3609135Du); 948 949 L_3609135D: 950 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 951 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 952 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 953 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 954 _cf = 0; 955 _flag_k = FK_NARROW(FK_TEST, 24); 956 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 957 L_3609136B: 958 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 959 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 960 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 961 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 962 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 963 _flag_k = FK_CMP; 964 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 965 L_36091378: 966 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 967 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 968 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 970 _flag_k = FK_NARROW(FK_CMP, 24); 971 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 972 L_36091381: 973 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 974 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 975 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 976 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 977 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 978 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 979 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 980 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 981 L_3609139C: 982 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 985 _flag_k = FK_CMP; 986 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 987 L_360913A1: 988 eax = ecx; /* 0x360913A1: mov eax, ecx */ 989 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 990 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 991 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 992 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 993 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 994 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 995 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 996 _flag_k = FK_CMP; 997 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 998 L_360913B2: 999 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 1000 L_360913B5: 1001 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 1002 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 1003 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 1004 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 1005 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1007 _flag_k = FK_CMP; 1008 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 1009 L_360913C3: 1010 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 1011 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 1012 L_360913C8: 1013 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 1014 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 1015 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1017 _flag_k = FK_CMP; 1018 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 1019 L_360913CF: 1020 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 1021 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 1022 L_360913D3: 1023 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 1024 L_360913D6: 1025 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 1026 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 1027 L_360913DB: 1028 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 1029 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 1030 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 1031 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 1032 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 1033 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 1034 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 1035 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 1036 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 1037 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 1038 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 1039 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 1040 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1041 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1042 _flag_k = FK_CMP; 1043 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 1044 L_36091400: 1045 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 1046 L_36091403: 1047 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 1048 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 1049 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 1050 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 1051 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1053 _flag_k = FK_CMP; 1054 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 1055 L_36091411: 1056 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 1057 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 1058 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 1059 L_3609141C: 1060 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 1061 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 1062 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1063 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1064 _flag_k = FK_CMP; 1065 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 1066 L_36091424: 1067 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 1068 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 1069 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 1070 L_3609142F: 1071 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 1072 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 1073 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 1074 L_36091439: 1075 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 1076 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 1077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1078 _flag_k = FK_NARROW(FK_CMP, 24); 1079 RECOMP_BACKEDGE(); 1080 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 1081 L_36091443: 1082 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 1083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1085 _flag_k = FK_CMP; 1086 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 1087 L_36091447: 1088 eax = ecx; /* 0x36091447: mov eax, ecx */ 1089 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 1090 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 1091 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 1092 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 1093 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 1094 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1095 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1096 _flag_k = FK_CMP; 1097 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 1098 L_36091458: 1099 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 1100 L_3609145B: 1101 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 1102 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 1103 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 1104 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 1105 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1106 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1107 _flag_k = FK_CMP; 1108 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 1109 L_36091469: 1110 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 1111 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 1112 L_3609146E: 1113 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 1114 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 1115 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1116 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1117 _flag_k = FK_CMP; 1118 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 1119 L_36091476: 1120 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 1121 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 1122 L_3609147B: 1123 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 1124 L_3609147D: 1125 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 1126 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 1127 L_36091483: 1128 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 1129 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 1130 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 1131 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 1132 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 1133 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 1134 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 1135 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 1136 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 1137 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 1138 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 1139 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 1140 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1142 _flag_k = FK_CMP; 1143 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 1144 L_360914A8: 1145 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 1146 L_360914AB: 1147 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 1148 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 1149 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 1150 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 1151 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1153 _flag_k = FK_CMP; 1154 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 1155 L_360914B9: 1156 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 1157 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 1158 L_360914BE: 1159 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 1160 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 1161 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1163 _flag_k = FK_CMP; 1164 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 1165 L_360914C5: 1166 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 1167 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 1168 L_360914C9: 1169 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 1170 L_360914CC: 1171 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 1172 L_360914CE: 1173 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 1174 L_360914D1: 1175 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 1176 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 1177 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1178 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1179 _flag_k = FK_CMP; 1180 RECOMP_BACKEDGE(); 1181 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 1182 L_360914DD: 1183 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 1184 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 1185 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 1186 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 1187 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 1188 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 1189 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 1190 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 1191 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 1192 esp = ebp; /* 0x360914F1: mov esp, ebp */ 1193 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 1194 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 1195 RECOMP_REGS_OUT(); 1196 } 1197 1198 void sub_36091381(void) { 1199 int _fpu_cmp = 0; 1200 uint32_t _cf = 0; 1201 int _df = 1; 1202 uint32_t _flag_k = FK_NONE; 1203 uint32_t _flag_a = 0, _flag_b = 0; 1204 uint32_t _itail_tgt = 0; 1205 RECOMP_REGS_LOCALS 1206 RECOMP_ENTER(0x36091381u); 1207 1208 goto L_36091381; 1209 L_3609135D: 1210 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 1211 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 1212 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 1213 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1214 _cf = 0; 1215 _flag_k = FK_NARROW(FK_TEST, 24); 1216 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 1217 L_3609136B: 1218 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 1219 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 1220 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 1221 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1222 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1223 _flag_k = FK_CMP; 1224 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 1225 L_36091378: 1226 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 1227 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 1228 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 1229 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1230 _flag_k = FK_NARROW(FK_CMP, 24); 1231 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 1232 L_36091381: 1233 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 1234 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 1235 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 1236 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 1237 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 1238 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 1239 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 1240 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 1241 L_3609139C: 1242 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 1243 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1245 _flag_k = FK_CMP; 1246 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 1247 L_360913A1: 1248 eax = ecx; /* 0x360913A1: mov eax, ecx */ 1249 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 1250 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 1251 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 1252 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 1253 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 1254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1255 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1256 _flag_k = FK_CMP; 1257 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 1258 L_360913B2: 1259 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 1260 L_360913B5: 1261 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 1262 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 1263 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 1264 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 1265 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1266 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1267 _flag_k = FK_CMP; 1268 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 1269 L_360913C3: 1270 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 1271 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 1272 L_360913C8: 1273 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 1274 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 1275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1276 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1277 _flag_k = FK_CMP; 1278 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 1279 L_360913CF: 1280 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 1281 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 1282 L_360913D3: 1283 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 1284 L_360913D6: 1285 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 1286 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 1287 L_360913DB: 1288 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 1289 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 1290 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 1291 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 1292 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 1293 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 1294 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 1295 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 1296 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 1297 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 1298 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 1299 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 1300 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1301 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1302 _flag_k = FK_CMP; 1303 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 1304 L_36091400: 1305 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 1306 L_36091403: 1307 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 1308 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 1309 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 1310 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 1311 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1312 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1313 _flag_k = FK_CMP; 1314 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 1315 L_36091411: 1316 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 1317 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 1318 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 1319 L_3609141C: 1320 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 1321 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 1322 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1324 _flag_k = FK_CMP; 1325 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 1326 L_36091424: 1327 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 1328 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 1329 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 1330 L_3609142F: 1331 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 1332 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 1333 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 1334 L_36091439: 1335 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 1336 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 1337 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1338 _flag_k = FK_NARROW(FK_CMP, 24); 1339 RECOMP_BACKEDGE(); 1340 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 1341 L_36091443: 1342 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 1343 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1344 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1345 _flag_k = FK_CMP; 1346 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 1347 L_36091447: 1348 eax = ecx; /* 0x36091447: mov eax, ecx */ 1349 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 1350 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 1351 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 1352 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 1353 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 1354 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1355 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1356 _flag_k = FK_CMP; 1357 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 1358 L_36091458: 1359 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 1360 L_3609145B: 1361 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 1362 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 1363 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 1364 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 1365 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1367 _flag_k = FK_CMP; 1368 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 1369 L_36091469: 1370 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 1371 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 1372 L_3609146E: 1373 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 1374 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 1375 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1376 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1377 _flag_k = FK_CMP; 1378 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 1379 L_36091476: 1380 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 1381 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 1382 L_3609147B: 1383 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 1384 L_3609147D: 1385 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 1386 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 1387 L_36091483: 1388 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 1389 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 1390 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 1391 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 1392 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 1393 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 1394 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 1395 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 1396 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 1397 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 1398 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 1399 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 1400 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1401 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1402 _flag_k = FK_CMP; 1403 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 1404 L_360914A8: 1405 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 1406 L_360914AB: 1407 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 1408 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 1409 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 1410 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 1411 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1413 _flag_k = FK_CMP; 1414 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 1415 L_360914B9: 1416 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 1417 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 1418 L_360914BE: 1419 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 1420 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 1421 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1422 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1423 _flag_k = FK_CMP; 1424 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 1425 L_360914C5: 1426 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 1427 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 1428 L_360914C9: 1429 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 1430 L_360914CC: 1431 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 1432 L_360914CE: 1433 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 1434 L_360914D1: 1435 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 1436 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 1437 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1438 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1439 _flag_k = FK_CMP; 1440 RECOMP_BACKEDGE(); 1441 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 1442 L_360914DD: 1443 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 1444 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 1445 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 1446 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 1447 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 1448 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 1449 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 1450 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 1451 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 1452 esp = ebp; /* 0x360914F1: mov esp, ebp */ 1453 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 1454 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 1455 RECOMP_REGS_OUT(); 1456 } 1457 1458 void sub_360913D6(void) { 1459 int _fpu_cmp = 0; 1460 uint32_t _cf = 0; 1461 int _df = 1; 1462 uint32_t _flag_k = FK_NONE; 1463 uint32_t _flag_a = 0, _flag_b = 0; 1464 uint32_t _itail_tgt = 0; 1465 RECOMP_REGS_LOCALS 1466 RECOMP_ENTER(0x360913D6u); 1467 1468 goto L_360913D6; 1469 L_3609135D: 1470 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 1471 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 1472 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 1473 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1474 _cf = 0; 1475 _flag_k = FK_NARROW(FK_TEST, 24); 1476 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 1477 L_3609136B: 1478 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 1479 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 1480 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 1481 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1482 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1483 _flag_k = FK_CMP; 1484 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 1485 L_36091378: 1486 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 1487 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 1488 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 1489 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1490 _flag_k = FK_NARROW(FK_CMP, 24); 1491 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 1492 L_36091381: 1493 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 1494 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 1495 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 1496 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 1497 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 1498 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 1499 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 1500 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 1501 L_3609139C: 1502 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 1503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1505 _flag_k = FK_CMP; 1506 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 1507 L_360913A1: 1508 eax = ecx; /* 0x360913A1: mov eax, ecx */ 1509 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 1510 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 1511 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 1512 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 1513 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 1514 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1516 _flag_k = FK_CMP; 1517 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 1518 L_360913B2: 1519 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 1520 L_360913B5: 1521 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 1522 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 1523 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 1524 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 1525 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1526 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1527 _flag_k = FK_CMP; 1528 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 1529 L_360913C3: 1530 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 1531 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 1532 L_360913C8: 1533 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 1534 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 1535 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1537 _flag_k = FK_CMP; 1538 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 1539 L_360913CF: 1540 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 1541 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 1542 L_360913D3: 1543 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 1544 L_360913D6: 1545 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 1546 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 1547 L_360913DB: 1548 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 1549 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 1550 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 1551 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 1552 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 1553 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 1554 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 1555 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 1556 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 1557 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 1558 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 1559 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 1560 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1562 _flag_k = FK_CMP; 1563 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 1564 L_36091400: 1565 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 1566 L_36091403: 1567 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 1568 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 1569 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 1570 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 1571 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1572 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1573 _flag_k = FK_CMP; 1574 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 1575 L_36091411: 1576 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 1577 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 1578 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 1579 L_3609141C: 1580 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 1581 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 1582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1584 _flag_k = FK_CMP; 1585 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 1586 L_36091424: 1587 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 1588 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 1589 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 1590 L_3609142F: 1591 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 1592 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 1593 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 1594 L_36091439: 1595 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 1596 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 1597 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1598 _flag_k = FK_NARROW(FK_CMP, 24); 1599 RECOMP_BACKEDGE(); 1600 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 1601 L_36091443: 1602 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 1603 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1605 _flag_k = FK_CMP; 1606 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 1607 L_36091447: 1608 eax = ecx; /* 0x36091447: mov eax, ecx */ 1609 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 1610 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 1611 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 1612 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 1613 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 1614 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1616 _flag_k = FK_CMP; 1617 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 1618 L_36091458: 1619 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 1620 L_3609145B: 1621 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 1622 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 1623 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 1624 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 1625 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1627 _flag_k = FK_CMP; 1628 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 1629 L_36091469: 1630 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 1631 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 1632 L_3609146E: 1633 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 1634 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 1635 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1637 _flag_k = FK_CMP; 1638 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 1639 L_36091476: 1640 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 1641 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 1642 L_3609147B: 1643 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 1644 L_3609147D: 1645 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 1646 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 1647 L_36091483: 1648 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 1649 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 1650 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 1651 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 1652 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 1653 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 1654 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 1655 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 1656 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 1657 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 1658 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 1659 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 1660 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1661 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1662 _flag_k = FK_CMP; 1663 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 1664 L_360914A8: 1665 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 1666 L_360914AB: 1667 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 1668 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 1669 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 1670 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 1671 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1672 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1673 _flag_k = FK_CMP; 1674 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 1675 L_360914B9: 1676 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 1677 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 1678 L_360914BE: 1679 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 1680 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 1681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1682 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1683 _flag_k = FK_CMP; 1684 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 1685 L_360914C5: 1686 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 1687 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 1688 L_360914C9: 1689 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 1690 L_360914CC: 1691 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 1692 L_360914CE: 1693 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 1694 L_360914D1: 1695 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 1696 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 1697 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1698 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1699 _flag_k = FK_CMP; 1700 RECOMP_BACKEDGE(); 1701 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 1702 L_360914DD: 1703 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 1704 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 1705 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 1706 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 1707 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 1708 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 1709 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 1710 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 1711 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 1712 esp = ebp; /* 0x360914F1: mov esp, ebp */ 1713 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 1714 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 1715 RECOMP_REGS_OUT(); 1716 } 1717 1718 void sub_360913DB(void) { 1719 int _fpu_cmp = 0; 1720 uint32_t _cf = 0; 1721 int _df = 1; 1722 uint32_t _flag_k = FK_NONE; 1723 uint32_t _flag_a = 0, _flag_b = 0; 1724 uint32_t _itail_tgt = 0; 1725 RECOMP_REGS_LOCALS 1726 RECOMP_ENTER(0x360913DBu); 1727 1728 goto L_360913DB; 1729 L_3609135D: 1730 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 1731 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 1732 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 1733 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1734 _cf = 0; 1735 _flag_k = FK_NARROW(FK_TEST, 24); 1736 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 1737 L_3609136B: 1738 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 1739 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 1740 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 1741 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1742 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1743 _flag_k = FK_CMP; 1744 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 1745 L_36091378: 1746 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 1747 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 1748 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 1749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1750 _flag_k = FK_NARROW(FK_CMP, 24); 1751 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 1752 L_36091381: 1753 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 1754 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 1755 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 1756 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 1757 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 1758 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 1759 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 1760 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 1761 L_3609139C: 1762 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 1763 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 1764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1765 _flag_k = FK_CMP; 1766 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 1767 L_360913A1: 1768 eax = ecx; /* 0x360913A1: mov eax, ecx */ 1769 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 1770 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 1771 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 1772 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 1773 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 1774 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1776 _flag_k = FK_CMP; 1777 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 1778 L_360913B2: 1779 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 1780 L_360913B5: 1781 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 1782 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 1783 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 1784 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 1785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1787 _flag_k = FK_CMP; 1788 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 1789 L_360913C3: 1790 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 1791 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 1792 L_360913C8: 1793 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 1794 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 1795 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 1796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1797 _flag_k = FK_CMP; 1798 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 1799 L_360913CF: 1800 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 1801 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 1802 L_360913D3: 1803 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 1804 L_360913D6: 1805 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 1806 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 1807 L_360913DB: 1808 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 1809 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 1810 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 1811 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 1812 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 1813 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 1814 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 1815 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 1816 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 1817 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 1818 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 1819 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 1820 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1821 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1822 _flag_k = FK_CMP; 1823 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 1824 L_36091400: 1825 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 1826 L_36091403: 1827 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 1828 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 1829 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 1830 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 1831 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1832 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1833 _flag_k = FK_CMP; 1834 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 1835 L_36091411: 1836 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 1837 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 1838 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 1839 L_3609141C: 1840 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 1841 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 1842 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 1843 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1844 _flag_k = FK_CMP; 1845 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 1846 L_36091424: 1847 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 1848 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 1849 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 1850 L_3609142F: 1851 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 1852 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 1853 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 1854 L_36091439: 1855 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 1856 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 1857 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1858 _flag_k = FK_NARROW(FK_CMP, 24); 1859 RECOMP_BACKEDGE(); 1860 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 1861 L_36091443: 1862 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 1863 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 1864 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1865 _flag_k = FK_CMP; 1866 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 1867 L_36091447: 1868 eax = ecx; /* 0x36091447: mov eax, ecx */ 1869 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 1870 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 1871 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 1872 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 1873 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 1874 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1876 _flag_k = FK_CMP; 1877 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 1878 L_36091458: 1879 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 1880 L_3609145B: 1881 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 1882 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 1883 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 1884 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 1885 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 1886 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1887 _flag_k = FK_CMP; 1888 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 1889 L_36091469: 1890 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 1891 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 1892 L_3609146E: 1893 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 1894 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 1895 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 1896 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1897 _flag_k = FK_CMP; 1898 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 1899 L_36091476: 1900 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 1901 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 1902 L_3609147B: 1903 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 1904 L_3609147D: 1905 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 1906 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 1907 L_36091483: 1908 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 1909 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 1910 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 1911 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 1912 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 1913 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 1914 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 1915 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 1916 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 1917 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 1918 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 1919 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 1920 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 1921 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1922 _flag_k = FK_CMP; 1923 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 1924 L_360914A8: 1925 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 1926 L_360914AB: 1927 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 1928 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 1929 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 1930 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 1931 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 1932 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1933 _flag_k = FK_CMP; 1934 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 1935 L_360914B9: 1936 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 1937 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 1938 L_360914BE: 1939 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 1940 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 1941 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 1942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1943 _flag_k = FK_CMP; 1944 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 1945 L_360914C5: 1946 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 1947 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 1948 L_360914C9: 1949 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 1950 L_360914CC: 1951 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 1952 L_360914CE: 1953 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 1954 L_360914D1: 1955 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 1956 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 1957 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1958 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1959 _flag_k = FK_CMP; 1960 RECOMP_BACKEDGE(); 1961 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 1962 L_360914DD: 1963 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 1964 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 1965 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 1966 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 1967 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 1968 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 1969 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 1970 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 1971 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 1972 esp = ebp; /* 0x360914F1: mov esp, ebp */ 1973 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 1974 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 1975 RECOMP_REGS_OUT(); 1976 } 1977 1978 void sub_36091439(void) { 1979 int _fpu_cmp = 0; 1980 uint32_t _cf = 0; 1981 int _df = 1; 1982 uint32_t _flag_k = FK_NONE; 1983 uint32_t _flag_a = 0, _flag_b = 0; 1984 uint32_t _itail_tgt = 0; 1985 RECOMP_REGS_LOCALS 1986 RECOMP_ENTER(0x36091439u); 1987 1988 goto L_36091439; 1989 L_3609135D: 1990 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 1991 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 1992 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 1993 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 1994 _cf = 0; 1995 _flag_k = FK_NARROW(FK_TEST, 24); 1996 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 1997 L_3609136B: 1998 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 1999 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 2000 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 2001 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2002 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2003 _flag_k = FK_CMP; 2004 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 2005 L_36091378: 2006 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 2007 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 2008 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2010 _flag_k = FK_NARROW(FK_CMP, 24); 2011 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 2012 L_36091381: 2013 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 2014 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 2015 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 2016 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 2017 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 2018 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 2019 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 2020 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 2021 L_3609139C: 2022 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 2023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2024 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2025 _flag_k = FK_CMP; 2026 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 2027 L_360913A1: 2028 eax = ecx; /* 0x360913A1: mov eax, ecx */ 2029 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 2030 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 2031 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 2032 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 2033 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 2034 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2036 _flag_k = FK_CMP; 2037 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 2038 L_360913B2: 2039 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 2040 L_360913B5: 2041 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 2042 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 2043 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 2044 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 2045 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2046 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2047 _flag_k = FK_CMP; 2048 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 2049 L_360913C3: 2050 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 2051 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 2052 L_360913C8: 2053 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 2054 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 2055 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2057 _flag_k = FK_CMP; 2058 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 2059 L_360913CF: 2060 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 2061 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 2062 L_360913D3: 2063 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 2064 L_360913D6: 2065 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 2066 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 2067 L_360913DB: 2068 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 2069 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 2070 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 2071 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 2072 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 2073 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 2074 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 2075 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 2076 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 2077 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 2078 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 2079 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 2080 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2082 _flag_k = FK_CMP; 2083 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 2084 L_36091400: 2085 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 2086 L_36091403: 2087 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 2088 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 2089 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 2090 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 2091 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2093 _flag_k = FK_CMP; 2094 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 2095 L_36091411: 2096 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 2097 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 2098 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 2099 L_3609141C: 2100 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 2101 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 2102 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2104 _flag_k = FK_CMP; 2105 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 2106 L_36091424: 2107 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 2108 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 2109 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 2110 L_3609142F: 2111 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 2112 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 2113 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 2114 L_36091439: 2115 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 2116 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2117 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2118 _flag_k = FK_NARROW(FK_CMP, 24); 2119 RECOMP_BACKEDGE(); 2120 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 2121 L_36091443: 2122 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 2123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2124 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2125 _flag_k = FK_CMP; 2126 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 2127 L_36091447: 2128 eax = ecx; /* 0x36091447: mov eax, ecx */ 2129 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 2130 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 2131 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 2132 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 2133 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 2134 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2135 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2136 _flag_k = FK_CMP; 2137 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 2138 L_36091458: 2139 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 2140 L_3609145B: 2141 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 2142 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 2143 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 2144 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 2145 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2146 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2147 _flag_k = FK_CMP; 2148 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 2149 L_36091469: 2150 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 2151 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 2152 L_3609146E: 2153 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 2154 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 2155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2157 _flag_k = FK_CMP; 2158 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 2159 L_36091476: 2160 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 2161 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 2162 L_3609147B: 2163 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 2164 L_3609147D: 2165 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 2166 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 2167 L_36091483: 2168 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 2169 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 2170 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 2171 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 2172 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 2173 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 2174 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 2175 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 2176 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 2177 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 2178 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 2179 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 2180 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2182 _flag_k = FK_CMP; 2183 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 2184 L_360914A8: 2185 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 2186 L_360914AB: 2187 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 2188 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 2189 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 2190 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 2191 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2192 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2193 _flag_k = FK_CMP; 2194 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 2195 L_360914B9: 2196 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 2197 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 2198 L_360914BE: 2199 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 2200 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 2201 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2202 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2203 _flag_k = FK_CMP; 2204 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 2205 L_360914C5: 2206 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 2207 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 2208 L_360914C9: 2209 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 2210 L_360914CC: 2211 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 2212 L_360914CE: 2213 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 2214 L_360914D1: 2215 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 2216 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 2217 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2218 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2219 _flag_k = FK_CMP; 2220 RECOMP_BACKEDGE(); 2221 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 2222 L_360914DD: 2223 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 2224 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 2225 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 2226 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 2227 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 2228 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 2229 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 2230 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 2231 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 2232 esp = ebp; /* 0x360914F1: mov esp, ebp */ 2233 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 2234 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 2235 RECOMP_REGS_OUT(); 2236 } 2237 2238 void sub_3609147D(void) { 2239 int _fpu_cmp = 0; 2240 uint32_t _cf = 0; 2241 int _df = 1; 2242 uint32_t _flag_k = FK_NONE; 2243 uint32_t _flag_a = 0, _flag_b = 0; 2244 uint32_t _itail_tgt = 0; 2245 RECOMP_REGS_LOCALS 2246 RECOMP_ENTER(0x3609147Du); 2247 2248 goto L_3609147D; 2249 L_3609135D: 2250 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 2251 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 2252 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 2253 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2254 _cf = 0; 2255 _flag_k = FK_NARROW(FK_TEST, 24); 2256 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 2257 L_3609136B: 2258 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 2259 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 2260 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 2261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2263 _flag_k = FK_CMP; 2264 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 2265 L_36091378: 2266 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 2267 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 2268 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2270 _flag_k = FK_NARROW(FK_CMP, 24); 2271 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 2272 L_36091381: 2273 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 2274 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 2275 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 2276 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 2277 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 2278 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 2279 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 2280 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 2281 L_3609139C: 2282 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 2283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2285 _flag_k = FK_CMP; 2286 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 2287 L_360913A1: 2288 eax = ecx; /* 0x360913A1: mov eax, ecx */ 2289 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 2290 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 2291 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 2292 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 2293 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 2294 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2296 _flag_k = FK_CMP; 2297 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 2298 L_360913B2: 2299 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 2300 L_360913B5: 2301 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 2302 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 2303 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 2304 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 2305 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2307 _flag_k = FK_CMP; 2308 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 2309 L_360913C3: 2310 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 2311 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 2312 L_360913C8: 2313 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 2314 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 2315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2316 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2317 _flag_k = FK_CMP; 2318 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 2319 L_360913CF: 2320 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 2321 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 2322 L_360913D3: 2323 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 2324 L_360913D6: 2325 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 2326 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 2327 L_360913DB: 2328 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 2329 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 2330 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 2331 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 2332 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 2333 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 2334 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 2335 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 2336 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 2337 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 2338 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 2339 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 2340 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2341 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2342 _flag_k = FK_CMP; 2343 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 2344 L_36091400: 2345 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 2346 L_36091403: 2347 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 2348 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 2349 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 2350 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 2351 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2353 _flag_k = FK_CMP; 2354 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 2355 L_36091411: 2356 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 2357 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 2358 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 2359 L_3609141C: 2360 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 2361 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 2362 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2363 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2364 _flag_k = FK_CMP; 2365 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 2366 L_36091424: 2367 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 2368 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 2369 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 2370 L_3609142F: 2371 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 2372 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 2373 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 2374 L_36091439: 2375 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 2376 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2378 _flag_k = FK_NARROW(FK_CMP, 24); 2379 RECOMP_BACKEDGE(); 2380 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 2381 L_36091443: 2382 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 2383 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2384 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2385 _flag_k = FK_CMP; 2386 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 2387 L_36091447: 2388 eax = ecx; /* 0x36091447: mov eax, ecx */ 2389 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 2390 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 2391 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 2392 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 2393 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 2394 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2395 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2396 _flag_k = FK_CMP; 2397 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 2398 L_36091458: 2399 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 2400 L_3609145B: 2401 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 2402 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 2403 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 2404 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 2405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2407 _flag_k = FK_CMP; 2408 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 2409 L_36091469: 2410 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 2411 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 2412 L_3609146E: 2413 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 2414 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 2415 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2416 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2417 _flag_k = FK_CMP; 2418 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 2419 L_36091476: 2420 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 2421 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 2422 L_3609147B: 2423 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 2424 L_3609147D: 2425 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 2426 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 2427 L_36091483: 2428 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 2429 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 2430 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 2431 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 2432 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 2433 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 2434 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 2435 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 2436 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 2437 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 2438 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 2439 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 2440 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2441 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2442 _flag_k = FK_CMP; 2443 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 2444 L_360914A8: 2445 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 2446 L_360914AB: 2447 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 2448 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 2449 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 2450 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 2451 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2452 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2453 _flag_k = FK_CMP; 2454 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 2455 L_360914B9: 2456 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 2457 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 2458 L_360914BE: 2459 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 2460 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 2461 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2463 _flag_k = FK_CMP; 2464 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 2465 L_360914C5: 2466 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 2467 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 2468 L_360914C9: 2469 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 2470 L_360914CC: 2471 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 2472 L_360914CE: 2473 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 2474 L_360914D1: 2475 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 2476 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 2477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2479 _flag_k = FK_CMP; 2480 RECOMP_BACKEDGE(); 2481 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 2482 L_360914DD: 2483 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 2484 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 2485 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 2486 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 2487 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 2488 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 2489 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 2490 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 2491 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 2492 esp = ebp; /* 0x360914F1: mov esp, ebp */ 2493 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 2494 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 2495 RECOMP_REGS_OUT(); 2496 } 2497 2498 void sub_36091483(void) { 2499 int _fpu_cmp = 0; 2500 uint32_t _cf = 0; 2501 int _df = 1; 2502 uint32_t _flag_k = FK_NONE; 2503 uint32_t _flag_a = 0, _flag_b = 0; 2504 uint32_t _itail_tgt = 0; 2505 RECOMP_REGS_LOCALS 2506 RECOMP_ENTER(0x36091483u); 2507 2508 goto L_36091483; 2509 L_3609135D: 2510 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 2511 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 2512 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 2513 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2514 _cf = 0; 2515 _flag_k = FK_NARROW(FK_TEST, 24); 2516 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 2517 L_3609136B: 2518 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 2519 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 2520 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 2521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2523 _flag_k = FK_CMP; 2524 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 2525 L_36091378: 2526 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 2527 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 2528 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2529 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2530 _flag_k = FK_NARROW(FK_CMP, 24); 2531 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 2532 L_36091381: 2533 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 2534 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 2535 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 2536 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 2537 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 2538 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 2539 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 2540 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 2541 L_3609139C: 2542 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 2543 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2545 _flag_k = FK_CMP; 2546 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 2547 L_360913A1: 2548 eax = ecx; /* 0x360913A1: mov eax, ecx */ 2549 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 2550 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 2551 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 2552 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 2553 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 2554 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2556 _flag_k = FK_CMP; 2557 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 2558 L_360913B2: 2559 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 2560 L_360913B5: 2561 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 2562 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 2563 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 2564 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 2565 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2566 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2567 _flag_k = FK_CMP; 2568 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 2569 L_360913C3: 2570 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 2571 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 2572 L_360913C8: 2573 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 2574 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 2575 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2577 _flag_k = FK_CMP; 2578 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 2579 L_360913CF: 2580 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 2581 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 2582 L_360913D3: 2583 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 2584 L_360913D6: 2585 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 2586 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 2587 L_360913DB: 2588 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 2589 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 2590 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 2591 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 2592 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 2593 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 2594 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 2595 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 2596 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 2597 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 2598 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 2599 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 2600 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2602 _flag_k = FK_CMP; 2603 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 2604 L_36091400: 2605 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 2606 L_36091403: 2607 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 2608 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 2609 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 2610 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 2611 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2612 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2613 _flag_k = FK_CMP; 2614 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 2615 L_36091411: 2616 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 2617 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 2618 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 2619 L_3609141C: 2620 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 2621 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 2622 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2624 _flag_k = FK_CMP; 2625 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 2626 L_36091424: 2627 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 2628 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 2629 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 2630 L_3609142F: 2631 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 2632 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 2633 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 2634 L_36091439: 2635 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 2636 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2637 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2638 _flag_k = FK_NARROW(FK_CMP, 24); 2639 RECOMP_BACKEDGE(); 2640 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 2641 L_36091443: 2642 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 2643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2644 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2645 _flag_k = FK_CMP; 2646 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 2647 L_36091447: 2648 eax = ecx; /* 0x36091447: mov eax, ecx */ 2649 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 2650 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 2651 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 2652 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 2653 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 2654 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2656 _flag_k = FK_CMP; 2657 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 2658 L_36091458: 2659 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 2660 L_3609145B: 2661 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 2662 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 2663 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 2664 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 2665 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2667 _flag_k = FK_CMP; 2668 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 2669 L_36091469: 2670 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 2671 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 2672 L_3609146E: 2673 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 2674 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 2675 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2676 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2677 _flag_k = FK_CMP; 2678 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 2679 L_36091476: 2680 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 2681 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 2682 L_3609147B: 2683 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 2684 L_3609147D: 2685 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 2686 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 2687 L_36091483: 2688 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 2689 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 2690 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 2691 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 2692 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 2693 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 2694 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 2695 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 2696 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 2697 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 2698 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 2699 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 2700 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2702 _flag_k = FK_CMP; 2703 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 2704 L_360914A8: 2705 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 2706 L_360914AB: 2707 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 2708 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 2709 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 2710 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 2711 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2713 _flag_k = FK_CMP; 2714 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 2715 L_360914B9: 2716 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 2717 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 2718 L_360914BE: 2719 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 2720 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 2721 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2723 _flag_k = FK_CMP; 2724 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 2725 L_360914C5: 2726 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 2727 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 2728 L_360914C9: 2729 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 2730 L_360914CC: 2731 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 2732 L_360914CE: 2733 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 2734 L_360914D1: 2735 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 2736 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 2737 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2739 _flag_k = FK_CMP; 2740 RECOMP_BACKEDGE(); 2741 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 2742 L_360914DD: 2743 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 2744 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 2745 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 2746 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 2747 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 2748 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 2749 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 2750 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 2751 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 2752 esp = ebp; /* 0x360914F1: mov esp, ebp */ 2753 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 2754 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 2755 RECOMP_REGS_OUT(); 2756 } 2757 2758 void sub_360914CC(void) { 2759 int _fpu_cmp = 0; 2760 uint32_t _cf = 0; 2761 int _df = 1; 2762 uint32_t _flag_k = FK_NONE; 2763 uint32_t _flag_a = 0, _flag_b = 0; 2764 uint32_t _itail_tgt = 0; 2765 RECOMP_REGS_LOCALS 2766 RECOMP_ENTER(0x360914CCu); 2767 2768 goto L_360914CC; 2769 L_3609135D: 2770 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 2771 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 2772 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 2773 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 2774 _cf = 0; 2775 _flag_k = FK_NARROW(FK_TEST, 24); 2776 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 2777 L_3609136B: 2778 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 2779 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 2780 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 2781 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2783 _flag_k = FK_CMP; 2784 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 2785 L_36091378: 2786 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 2787 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 2788 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2790 _flag_k = FK_NARROW(FK_CMP, 24); 2791 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 2792 L_36091381: 2793 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 2794 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 2795 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 2796 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 2797 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 2798 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 2799 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 2800 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 2801 L_3609139C: 2802 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 2803 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 2804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2805 _flag_k = FK_CMP; 2806 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 2807 L_360913A1: 2808 eax = ecx; /* 0x360913A1: mov eax, ecx */ 2809 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 2810 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 2811 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 2812 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 2813 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 2814 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2816 _flag_k = FK_CMP; 2817 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 2818 L_360913B2: 2819 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 2820 L_360913B5: 2821 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 2822 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 2823 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 2824 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 2825 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2826 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2827 _flag_k = FK_CMP; 2828 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 2829 L_360913C3: 2830 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 2831 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 2832 L_360913C8: 2833 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 2834 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 2835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 2836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2837 _flag_k = FK_CMP; 2838 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 2839 L_360913CF: 2840 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 2841 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 2842 L_360913D3: 2843 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 2844 L_360913D6: 2845 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 2846 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 2847 L_360913DB: 2848 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 2849 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 2850 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 2851 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 2852 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 2853 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 2854 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 2855 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 2856 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 2857 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 2858 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 2859 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 2860 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2861 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2862 _flag_k = FK_CMP; 2863 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 2864 L_36091400: 2865 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 2866 L_36091403: 2867 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 2868 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 2869 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 2870 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 2871 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2873 _flag_k = FK_CMP; 2874 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 2875 L_36091411: 2876 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 2877 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 2878 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 2879 L_3609141C: 2880 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 2881 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 2882 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 2883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2884 _flag_k = FK_CMP; 2885 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 2886 L_36091424: 2887 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 2888 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 2889 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 2890 L_3609142F: 2891 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 2892 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 2893 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 2894 L_36091439: 2895 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 2896 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 2897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2898 _flag_k = FK_NARROW(FK_CMP, 24); 2899 RECOMP_BACKEDGE(); 2900 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 2901 L_36091443: 2902 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 2903 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 2904 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2905 _flag_k = FK_CMP; 2906 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 2907 L_36091447: 2908 eax = ecx; /* 0x36091447: mov eax, ecx */ 2909 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 2910 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 2911 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 2912 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 2913 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 2914 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2915 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2916 _flag_k = FK_CMP; 2917 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 2918 L_36091458: 2919 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 2920 L_3609145B: 2921 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 2922 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 2923 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 2924 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 2925 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 2926 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2927 _flag_k = FK_CMP; 2928 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 2929 L_36091469: 2930 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 2931 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 2932 L_3609146E: 2933 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 2934 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 2935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 2936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2937 _flag_k = FK_CMP; 2938 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 2939 L_36091476: 2940 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 2941 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 2942 L_3609147B: 2943 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 2944 L_3609147D: 2945 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 2946 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 2947 L_36091483: 2948 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 2949 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 2950 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 2951 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 2952 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 2953 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 2954 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 2955 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 2956 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 2957 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 2958 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 2959 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 2960 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 2961 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2962 _flag_k = FK_CMP; 2963 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 2964 L_360914A8: 2965 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 2966 L_360914AB: 2967 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 2968 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 2969 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 2970 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 2971 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 2972 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2973 _flag_k = FK_CMP; 2974 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 2975 L_360914B9: 2976 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 2977 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 2978 L_360914BE: 2979 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 2980 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 2981 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 2982 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2983 _flag_k = FK_CMP; 2984 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 2985 L_360914C5: 2986 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 2987 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 2988 L_360914C9: 2989 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 2990 L_360914CC: 2991 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 2992 L_360914CE: 2993 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 2994 L_360914D1: 2995 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 2996 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 2997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 2998 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2999 _flag_k = FK_CMP; 3000 RECOMP_BACKEDGE(); 3001 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 3002 L_360914DD: 3003 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 3004 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 3005 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 3006 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 3007 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 3008 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 3009 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 3010 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 3011 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 3012 esp = ebp; /* 0x360914F1: mov esp, ebp */ 3013 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 3014 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 3015 RECOMP_REGS_OUT(); 3016 } 3017 3018 void sub_360914CE(void) { 3019 int _fpu_cmp = 0; 3020 uint32_t _cf = 0; 3021 int _df = 1; 3022 uint32_t _flag_k = FK_NONE; 3023 uint32_t _flag_a = 0, _flag_b = 0; 3024 uint32_t _itail_tgt = 0; 3025 RECOMP_REGS_LOCALS 3026 RECOMP_ENTER(0x360914CEu); 3027 3028 goto L_360914CE; 3029 L_3609135D: 3030 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 3031 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 3032 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 3033 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3034 _cf = 0; 3035 _flag_k = FK_NARROW(FK_TEST, 24); 3036 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 3037 L_3609136B: 3038 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 3039 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 3040 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 3041 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3042 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3043 _flag_k = FK_CMP; 3044 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 3045 L_36091378: 3046 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 3047 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 3048 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3049 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3050 _flag_k = FK_NARROW(FK_CMP, 24); 3051 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 3052 L_36091381: 3053 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 3054 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 3055 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 3056 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 3057 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 3058 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 3059 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 3060 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 3061 L_3609139C: 3062 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 3063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3065 _flag_k = FK_CMP; 3066 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 3067 L_360913A1: 3068 eax = ecx; /* 0x360913A1: mov eax, ecx */ 3069 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 3070 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 3071 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 3072 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 3073 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 3074 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3076 _flag_k = FK_CMP; 3077 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 3078 L_360913B2: 3079 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 3080 L_360913B5: 3081 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 3082 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 3083 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 3084 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 3085 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3086 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3087 _flag_k = FK_CMP; 3088 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 3089 L_360913C3: 3090 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 3091 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 3092 L_360913C8: 3093 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 3094 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 3095 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3096 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3097 _flag_k = FK_CMP; 3098 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 3099 L_360913CF: 3100 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 3101 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 3102 L_360913D3: 3103 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 3104 L_360913D6: 3105 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 3106 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 3107 L_360913DB: 3108 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 3109 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 3110 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 3111 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 3112 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 3113 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 3114 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 3115 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 3116 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 3117 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 3118 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 3119 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 3120 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3121 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3122 _flag_k = FK_CMP; 3123 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 3124 L_36091400: 3125 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 3126 L_36091403: 3127 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 3128 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 3129 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 3130 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 3131 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3133 _flag_k = FK_CMP; 3134 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 3135 L_36091411: 3136 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 3137 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 3138 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 3139 L_3609141C: 3140 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 3141 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 3142 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3143 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3144 _flag_k = FK_CMP; 3145 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 3146 L_36091424: 3147 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 3148 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 3149 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 3150 L_3609142F: 3151 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 3152 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 3153 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 3154 L_36091439: 3155 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 3156 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3158 _flag_k = FK_NARROW(FK_CMP, 24); 3159 RECOMP_BACKEDGE(); 3160 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 3161 L_36091443: 3162 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 3163 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3165 _flag_k = FK_CMP; 3166 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 3167 L_36091447: 3168 eax = ecx; /* 0x36091447: mov eax, ecx */ 3169 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 3170 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 3171 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 3172 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 3173 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 3174 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3175 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3176 _flag_k = FK_CMP; 3177 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 3178 L_36091458: 3179 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 3180 L_3609145B: 3181 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 3182 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 3183 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 3184 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 3185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3187 _flag_k = FK_CMP; 3188 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 3189 L_36091469: 3190 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 3191 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 3192 L_3609146E: 3193 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 3194 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 3195 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3197 _flag_k = FK_CMP; 3198 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 3199 L_36091476: 3200 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 3201 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 3202 L_3609147B: 3203 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 3204 L_3609147D: 3205 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 3206 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 3207 L_36091483: 3208 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 3209 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 3210 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 3211 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 3212 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 3213 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 3214 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 3215 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 3216 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 3217 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 3218 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 3219 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 3220 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3221 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3222 _flag_k = FK_CMP; 3223 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 3224 L_360914A8: 3225 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 3226 L_360914AB: 3227 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 3228 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 3229 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 3230 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 3231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3233 _flag_k = FK_CMP; 3234 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 3235 L_360914B9: 3236 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 3237 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 3238 L_360914BE: 3239 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 3240 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 3241 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3242 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3243 _flag_k = FK_CMP; 3244 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 3245 L_360914C5: 3246 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 3247 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 3248 L_360914C9: 3249 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 3250 L_360914CC: 3251 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 3252 L_360914CE: 3253 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 3254 L_360914D1: 3255 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 3256 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 3257 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3258 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3259 _flag_k = FK_CMP; 3260 RECOMP_BACKEDGE(); 3261 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 3262 L_360914DD: 3263 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 3264 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 3265 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 3266 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 3267 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 3268 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 3269 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 3270 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 3271 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 3272 esp = ebp; /* 0x360914F1: mov esp, ebp */ 3273 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 3274 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 3275 RECOMP_REGS_OUT(); 3276 } 3277 3278 void sub_360914D1(void) { 3279 int _fpu_cmp = 0; 3280 uint32_t _cf = 0; 3281 int _df = 1; 3282 uint32_t _flag_k = FK_NONE; 3283 uint32_t _flag_a = 0, _flag_b = 0; 3284 uint32_t _itail_tgt = 0; 3285 RECOMP_REGS_LOCALS 3286 RECOMP_ENTER(0x360914D1u); 3287 3288 goto L_360914D1; 3289 L_3609135D: 3290 ecx = MEM32(eax + 0x4); /* 0x3609135D: mov ecx, dword ptr [eax + 4] */ 3291 SET_LO8(edx, MEM8(ecx + 0x14)); /* 0x36091360: mov dl, byte ptr [ecx + 0x14] */ 3292 /* test LO8(edx), LO8(edx) */ /* 0x36091363: test dl, dl */ 3293 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 3294 _cf = 0; 3295 _flag_k = FK_NARROW(FK_TEST, 24); 3296 if (TEST_NZ(_flag_a, _flag_b)) goto L_360914DD; /* 0x36091365: jne 0x360914dd */ 3297 L_3609136B: 3298 edi = MEM32(ecx + 0x4); /* 0x3609136B: mov edi, dword ptr [ecx + 4] */ 3299 edx = MEM32(edi); /* 0x3609136E: mov edx, dword ptr [edi] */ 3300 /* cmp ecx, edx */ /* 0x36091370: cmp ecx, edx */ 3301 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3302 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3303 _flag_k = FK_CMP; 3304 if (CMP_NE(_flag_a, _flag_b)) goto L_36091439; /* 0x36091372: jne 0x36091439 */ 3305 L_36091378: 3306 edx = MEM32(edi + 0x8); /* 0x36091378: mov edx, dword ptr [edi + 8] */ 3307 /* cmp MEM8(edx + 0x14), 0 */ /* 0x3609137B: cmp byte ptr [edx + 0x14], 0 */ 3308 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3309 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3310 _flag_k = FK_NARROW(FK_CMP, 24); 3311 if (CMP_NE(_flag_a, _flag_b)) goto L_3609139C; /* 0x3609137F: jne 0x3609139c */ 3312 L_36091381: 3313 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091381: mov byte ptr [ecx + 0x14], bl */ 3314 MEM8(edx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091384: mov byte ptr [edx + 0x14], bl */ 3315 ecx = MEM32(eax + 0x4); /* 0x36091387: mov ecx, dword ptr [eax + 4] */ 3316 edx = MEM32(ecx + 0x4); /* 0x3609138A: mov edx, dword ptr [ecx + 4] */ 3317 MEM8(edx + 0x14) = (uint8_t)(0); /* 0x3609138D: mov byte ptr [edx + 0x14], 0 */ 3318 eax = MEM32(eax + 0x4); /* 0x36091391: mov eax, dword ptr [eax + 4] */ 3319 eax = MEM32(eax + 0x4); /* 0x36091394: mov eax, dword ptr [eax + 4] */ 3320 goto L_360914D1; /* 0x36091397: jmp 0x360914d1 */ 3321 L_3609139C: 3322 /* cmp eax, MEM32(ecx + 0x8) */ /* 0x3609139C: cmp eax, dword ptr [ecx + 8] */ 3323 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x8)); 3324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3325 _flag_k = FK_CMP; 3326 if (CMP_NE(_flag_a, _flag_b)) goto L_360913DB; /* 0x3609139F: jne 0x360913db */ 3327 L_360913A1: 3328 eax = ecx; /* 0x360913A1: mov eax, ecx */ 3329 ecx = MEM32(eax + 0x8); /* 0x360913A3: mov ecx, dword ptr [eax + 8] */ 3330 edx = MEM32(ecx); /* 0x360913A6: mov edx, dword ptr [ecx] */ 3331 MEM32(eax + 0x8) = edx; /* 0x360913A8: mov dword ptr [eax + 8], edx */ 3332 edx = MEM32(ecx); /* 0x360913AB: mov edx, dword ptr [ecx] */ 3333 /* cmp edx, MEM32(esi + 0x8) */ /* 0x360913AD: cmp edx, dword ptr [esi + 8] */ 3334 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3335 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3336 _flag_k = FK_CMP; 3337 if (CMP_EQ(_flag_a, _flag_b)) goto L_360913B5; /* 0x360913B0: je 0x360913b5 */ 3338 L_360913B2: 3339 MEM32(edx + 0x4) = eax; /* 0x360913B2: mov dword ptr [edx + 4], eax */ 3340 L_360913B5: 3341 edx = MEM32(eax + 0x4); /* 0x360913B5: mov edx, dword ptr [eax + 4] */ 3342 MEM32(ecx + 0x4) = edx; /* 0x360913B8: mov dword ptr [ecx + 4], edx */ 3343 edx = MEM32(esi + 0x4); /* 0x360913BB: mov edx, dword ptr [esi + 4] */ 3344 /* cmp eax, MEM32(edx + 0x4) */ /* 0x360913BE: cmp eax, dword ptr [edx + 4] */ 3345 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3347 _flag_k = FK_CMP; 3348 if (CMP_NE(_flag_a, _flag_b)) goto L_360913C8; /* 0x360913C1: jne 0x360913c8 */ 3349 L_360913C3: 3350 MEM32(edx + 0x4) = ecx; /* 0x360913C3: mov dword ptr [edx + 4], ecx */ 3351 goto L_360913D6; /* 0x360913C6: jmp 0x360913d6 */ 3352 L_360913C8: 3353 edx = MEM32(eax + 0x4); /* 0x360913C8: mov edx, dword ptr [eax + 4] */ 3354 /* cmp eax, MEM32(edx) */ /* 0x360913CB: cmp eax, dword ptr [edx] */ 3355 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx)); 3356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3357 _flag_k = FK_CMP; 3358 if (CMP_NE(_flag_a, _flag_b)) goto L_360913D3; /* 0x360913CD: jne 0x360913d3 */ 3359 L_360913CF: 3360 MEM32(edx) = ecx; /* 0x360913CF: mov dword ptr [edx], ecx */ 3361 goto L_360913D6; /* 0x360913D1: jmp 0x360913d6 */ 3362 L_360913D3: 3363 MEM32(edx + 0x8) = ecx; /* 0x360913D3: mov dword ptr [edx + 8], ecx */ 3364 L_360913D6: 3365 MEM32(ecx) = eax; /* 0x360913D6: mov dword ptr [ecx], eax */ 3366 MEM32(eax + 0x4) = ecx; /* 0x360913D8: mov dword ptr [eax + 4], ecx */ 3367 L_360913DB: 3368 ecx = MEM32(eax + 0x4); /* 0x360913DB: mov ecx, dword ptr [eax + 4] */ 3369 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360913DE: mov byte ptr [ecx + 0x14], bl */ 3370 edx = MEM32(eax + 0x4); /* 0x360913E1: mov edx, dword ptr [eax + 4] */ 3371 ecx = MEM32(edx + 0x4); /* 0x360913E4: mov ecx, dword ptr [edx + 4] */ 3372 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x360913E7: mov byte ptr [ecx + 0x14], 0 */ 3373 edx = MEM32(eax + 0x4); /* 0x360913EB: mov edx, dword ptr [eax + 4] */ 3374 ecx = MEM32(edx + 0x4); /* 0x360913EE: mov ecx, dword ptr [edx + 4] */ 3375 edx = MEM32(ecx); /* 0x360913F1: mov edx, dword ptr [ecx] */ 3376 edi = MEM32(edx + 0x8); /* 0x360913F3: mov edi, dword ptr [edx + 8] */ 3377 MEM32(ecx) = edi; /* 0x360913F6: mov dword ptr [ecx], edi */ 3378 edi = MEM32(edx + 0x8); /* 0x360913F8: mov edi, dword ptr [edx + 8] */ 3379 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360913FB: cmp edi, dword ptr [esi + 8] */ 3380 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3381 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3382 _flag_k = FK_CMP; 3383 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091403; /* 0x360913FE: je 0x36091403 */ 3384 L_36091400: 3385 MEM32(edi + 0x4) = ecx; /* 0x36091400: mov dword ptr [edi + 4], ecx */ 3386 L_36091403: 3387 edi = MEM32(ecx + 0x4); /* 0x36091403: mov edi, dword ptr [ecx + 4] */ 3388 MEM32(edx + 0x4) = edi; /* 0x36091406: mov dword ptr [edx + 4], edi */ 3389 edi = MEM32(esi + 0x4); /* 0x36091409: mov edi, dword ptr [esi + 4] */ 3390 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x3609140C: cmp ecx, dword ptr [edi + 4] */ 3391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3393 _flag_k = FK_CMP; 3394 if (CMP_NE(_flag_a, _flag_b)) goto L_3609141C; /* 0x3609140F: jne 0x3609141c */ 3395 L_36091411: 3396 MEM32(edi + 0x4) = edx; /* 0x36091411: mov dword ptr [edi + 4], edx */ 3397 MEM32(edx + 0x8) = ecx; /* 0x36091414: mov dword ptr [edx + 8], ecx */ 3398 goto L_360914CE; /* 0x36091417: jmp 0x360914ce */ 3399 L_3609141C: 3400 edi = MEM32(ecx + 0x4); /* 0x3609141C: mov edi, dword ptr [ecx + 4] */ 3401 /* cmp ecx, MEM32(edi + 0x8) */ /* 0x3609141F: cmp ecx, dword ptr [edi + 8] */ 3402 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 3403 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3404 _flag_k = FK_CMP; 3405 if (CMP_NE(_flag_a, _flag_b)) goto L_3609142F; /* 0x36091422: jne 0x3609142f */ 3406 L_36091424: 3407 MEM32(edi + 0x8) = edx; /* 0x36091424: mov dword ptr [edi + 8], edx */ 3408 MEM32(edx + 0x8) = ecx; /* 0x36091427: mov dword ptr [edx + 8], ecx */ 3409 goto L_360914CE; /* 0x3609142A: jmp 0x360914ce */ 3410 L_3609142F: 3411 MEM32(edi) = edx; /* 0x3609142F: mov dword ptr [edi], edx */ 3412 MEM32(edx + 0x8) = ecx; /* 0x36091431: mov dword ptr [edx + 8], ecx */ 3413 goto L_360914CE; /* 0x36091434: jmp 0x360914ce */ 3414 L_36091439: 3415 /* cmp MEM8(edx + 0x14), 0 */ /* 0x36091439: cmp byte ptr [edx + 0x14], 0 */ 3416 _flag_a = (uint32_t)(MEM8(edx + 0x14)) << 24; _flag_b = (uint32_t)(0) << 24; 3417 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3418 _flag_k = FK_NARROW(FK_CMP, 24); 3419 RECOMP_BACKEDGE(); 3420 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091381; /* 0x3609143D: je 0x36091381 */ 3421 L_36091443: 3422 /* cmp eax, MEM32(ecx) */ /* 0x36091443: cmp eax, dword ptr [ecx] */ 3423 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx)); 3424 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3425 _flag_k = FK_CMP; 3426 if (CMP_NE(_flag_a, _flag_b)) goto L_36091483; /* 0x36091445: jne 0x36091483 */ 3427 L_36091447: 3428 eax = ecx; /* 0x36091447: mov eax, ecx */ 3429 ecx = MEM32(eax); /* 0x36091449: mov ecx, dword ptr [eax] */ 3430 edx = MEM32(ecx + 0x8); /* 0x3609144B: mov edx, dword ptr [ecx + 8] */ 3431 MEM32(eax) = edx; /* 0x3609144E: mov dword ptr [eax], edx */ 3432 edx = MEM32(ecx + 0x8); /* 0x36091450: mov edx, dword ptr [ecx + 8] */ 3433 /* cmp edx, MEM32(esi + 0x8) */ /* 0x36091453: cmp edx, dword ptr [esi + 8] */ 3434 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3435 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3436 _flag_k = FK_CMP; 3437 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609145B; /* 0x36091456: je 0x3609145b */ 3438 L_36091458: 3439 MEM32(edx + 0x4) = eax; /* 0x36091458: mov dword ptr [edx + 4], eax */ 3440 L_3609145B: 3441 edx = MEM32(eax + 0x4); /* 0x3609145B: mov edx, dword ptr [eax + 4] */ 3442 MEM32(ecx + 0x4) = edx; /* 0x3609145E: mov dword ptr [ecx + 4], edx */ 3443 edx = MEM32(esi + 0x4); /* 0x36091461: mov edx, dword ptr [esi + 4] */ 3444 /* cmp eax, MEM32(edx + 0x4) */ /* 0x36091464: cmp eax, dword ptr [edx + 4] */ 3445 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 3446 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3447 _flag_k = FK_CMP; 3448 if (CMP_NE(_flag_a, _flag_b)) goto L_3609146E; /* 0x36091467: jne 0x3609146e */ 3449 L_36091469: 3450 MEM32(edx + 0x4) = ecx; /* 0x36091469: mov dword ptr [edx + 4], ecx */ 3451 goto L_3609147D; /* 0x3609146C: jmp 0x3609147d */ 3452 L_3609146E: 3453 edx = MEM32(eax + 0x4); /* 0x3609146E: mov edx, dword ptr [eax + 4] */ 3454 /* cmp eax, MEM32(edx + 0x8) */ /* 0x36091471: cmp eax, dword ptr [edx + 8] */ 3455 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x8)); 3456 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3457 _flag_k = FK_CMP; 3458 if (CMP_NE(_flag_a, _flag_b)) goto L_3609147B; /* 0x36091474: jne 0x3609147b */ 3459 L_36091476: 3460 MEM32(edx + 0x8) = ecx; /* 0x36091476: mov dword ptr [edx + 8], ecx */ 3461 goto L_3609147D; /* 0x36091479: jmp 0x3609147d */ 3462 L_3609147B: 3463 MEM32(edx) = ecx; /* 0x3609147B: mov dword ptr [edx], ecx */ 3464 L_3609147D: 3465 MEM32(ecx + 0x8) = eax; /* 0x3609147D: mov dword ptr [ecx + 8], eax */ 3466 MEM32(eax + 0x4) = ecx; /* 0x36091480: mov dword ptr [eax + 4], ecx */ 3467 L_36091483: 3468 ecx = MEM32(eax + 0x4); /* 0x36091483: mov ecx, dword ptr [eax + 4] */ 3469 MEM8(ecx + 0x14) = (uint8_t)(LO8(ebx)); /* 0x36091486: mov byte ptr [ecx + 0x14], bl */ 3470 edx = MEM32(eax + 0x4); /* 0x36091489: mov edx, dword ptr [eax + 4] */ 3471 ecx = MEM32(edx + 0x4); /* 0x3609148C: mov ecx, dword ptr [edx + 4] */ 3472 MEM8(ecx + 0x14) = (uint8_t)(0); /* 0x3609148F: mov byte ptr [ecx + 0x14], 0 */ 3473 edx = MEM32(eax + 0x4); /* 0x36091493: mov edx, dword ptr [eax + 4] */ 3474 ecx = MEM32(edx + 0x4); /* 0x36091496: mov ecx, dword ptr [edx + 4] */ 3475 edx = MEM32(ecx + 0x8); /* 0x36091499: mov edx, dword ptr [ecx + 8] */ 3476 edi = MEM32(edx); /* 0x3609149C: mov edi, dword ptr [edx] */ 3477 MEM32(ecx + 0x8) = edi; /* 0x3609149E: mov dword ptr [ecx + 8], edi */ 3478 edi = MEM32(edx); /* 0x360914A1: mov edi, dword ptr [edx] */ 3479 /* cmp edi, MEM32(esi + 0x8) */ /* 0x360914A3: cmp edi, dword ptr [esi + 8] */ 3480 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3482 _flag_k = FK_CMP; 3483 if (CMP_EQ(_flag_a, _flag_b)) goto L_360914AB; /* 0x360914A6: je 0x360914ab */ 3484 L_360914A8: 3485 MEM32(edi + 0x4) = ecx; /* 0x360914A8: mov dword ptr [edi + 4], ecx */ 3486 L_360914AB: 3487 edi = MEM32(ecx + 0x4); /* 0x360914AB: mov edi, dword ptr [ecx + 4] */ 3488 MEM32(edx + 0x4) = edi; /* 0x360914AE: mov dword ptr [edx + 4], edi */ 3489 edi = MEM32(esi + 0x4); /* 0x360914B1: mov edi, dword ptr [esi + 4] */ 3490 /* cmp ecx, MEM32(edi + 0x4) */ /* 0x360914B4: cmp ecx, dword ptr [edi + 4] */ 3491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi + 0x4)); 3492 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3493 _flag_k = FK_CMP; 3494 if (CMP_NE(_flag_a, _flag_b)) goto L_360914BE; /* 0x360914B7: jne 0x360914be */ 3495 L_360914B9: 3496 MEM32(edi + 0x4) = edx; /* 0x360914B9: mov dword ptr [edi + 4], edx */ 3497 goto L_360914CC; /* 0x360914BC: jmp 0x360914cc */ 3498 L_360914BE: 3499 edi = MEM32(ecx + 0x4); /* 0x360914BE: mov edi, dword ptr [ecx + 4] */ 3500 /* cmp ecx, MEM32(edi) */ /* 0x360914C1: cmp ecx, dword ptr [edi] */ 3501 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(edi)); 3502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3503 _flag_k = FK_CMP; 3504 if (CMP_NE(_flag_a, _flag_b)) goto L_360914C9; /* 0x360914C3: jne 0x360914c9 */ 3505 L_360914C5: 3506 MEM32(edi) = edx; /* 0x360914C5: mov dword ptr [edi], edx */ 3507 goto L_360914CC; /* 0x360914C7: jmp 0x360914cc */ 3508 L_360914C9: 3509 MEM32(edi + 0x8) = edx; /* 0x360914C9: mov dword ptr [edi + 8], edx */ 3510 L_360914CC: 3511 MEM32(edx) = ecx; /* 0x360914CC: mov dword ptr [edx], ecx */ 3512 L_360914CE: 3513 MEM32(ecx + 0x4) = edx; /* 0x360914CE: mov dword ptr [ecx + 4], edx */ 3514 L_360914D1: 3515 ecx = MEM32(esi + 0x4); /* 0x360914D1: mov ecx, dword ptr [esi + 4] */ 3516 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x360914D4: cmp eax, dword ptr [ecx + 4] */ 3517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 3518 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3519 _flag_k = FK_CMP; 3520 RECOMP_BACKEDGE(); 3521 if (CMP_NE(_flag_a, _flag_b)) goto L_3609135D; /* 0x360914D7: jne 0x3609135d */ 3522 L_360914DD: 3523 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 3524 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 3525 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 3526 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 3527 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 3528 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 3529 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 3530 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 3531 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 3532 esp = ebp; /* 0x360914F1: mov esp, ebp */ 3533 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 3534 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 3535 RECOMP_REGS_OUT(); 3536 } 3537 3538 void sub_360914DD(void) { 3539 int _fpu_cmp = 0; 3540 uint32_t _cf = 0; 3541 int _df = 1; 3542 uint32_t _flag_k = FK_NONE; 3543 uint32_t _flag_a = 0, _flag_b = 0; 3544 uint32_t _itail_tgt = 0; 3545 RECOMP_REGS_LOCALS 3546 RECOMP_ENTER(0x360914DDu); 3547 3548 L_360914DD: 3549 edx = MEM32(esi + 0x4); /* 0x360914DD: mov edx, dword ptr [esi + 4] */ 3550 eax = MEM32(edx + 0x4); /* 0x360914E0: mov eax, dword ptr [edx + 4] */ 3551 ecx = MEM32(ebp + (-0x4)); /* 0x360914E3: mov ecx, dword ptr [ebp - 4] */ 3552 MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x360914E6: mov byte ptr [eax + 0x14], bl */ 3553 eax = MEM32(ebp + 0x8); /* 0x360914E9: mov eax, dword ptr [ebp + 8] */ 3554 edi = POP32_VAL(esp); /* 0x360914EC: pop edi */ 3555 esi = POP32_VAL(esp); /* 0x360914ED: pop esi */ 3556 MEM32(eax) = ecx; /* 0x360914EE: mov dword ptr [eax], ecx */ 3557 ebx = POP32_VAL(esp); /* 0x360914F0: pop ebx */ 3558 esp = ebp; /* 0x360914F1: mov esp, ebp */ 3559 ebp = POP32_VAL(esp); /* 0x360914F3: pop ebp */ 3560 RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x360914F4: ret 0x10 */ 3561 RECOMP_REGS_OUT(); 3562 } 3563 3564 void sub_36091500(void) { 3565 int _fpu_cmp = 0; 3566 uint32_t _cf = 0; 3567 int _df = 1; 3568 uint32_t _flag_k = FK_NONE; 3569 uint32_t _flag_a = 0, _flag_b = 0; 3570 uint32_t _itail_tgt = 0; 3571 RECOMP_REGS_LOCALS 3572 RECOMP_ENTER(0x36091500u); 3573 3574 L_36091500: 3575 PUSH32(esp, ebp); /* 0x36091500: push ebp */ 3576 ebp = esp; /* 0x36091501: mov ebp, esp */ 3577 PUSH32(esp, esi); /* 0x36091503: push esi */ 3578 esi = ecx; /* 0x36091504: mov esi, ecx */ 3579 RECOMP_ICALL(0x360E2940u); /* 0x36091506: call 0x360e2940 */ /* not lifted */ 3580 RECOMP_FLAGS_IN(); 3581 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609150B: test byte ptr [ebp + 8], 1 */ 3582 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3583 _cf = 0; 3584 _flag_k = FK_NARROW(FK_TEST, 24); 3585 if (TEST_Z(_flag_a, _flag_b)) goto L_3609151A; /* 0x3609150F: je 0x3609151a */ 3586 L_36091511: 3587 PUSH32(esp, esi); /* 0x36091511: push esi */ 3588 RECOMP_ICALL(0x3615FCC4u); /* 0x36091512: call 0x3615fcc4 */ /* not lifted */ 3589 RECOMP_FLAGS_IN(); 3590 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3591 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3592 esp = esp + 4; /* 0x36091517: add esp, 4 */ 3593 _flag_k = FK_ADD; 3594 L_3609151A: 3595 eax = esi; /* 0x3609151A: mov eax, esi */ 3596 esi = POP32_VAL(esp); /* 0x3609151C: pop esi */ 3597 ebp = POP32_VAL(esp); /* 0x3609151D: pop ebp */ 3598 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609151E: ret 4 */ 3599 RECOMP_REGS_OUT(); 3600 } 3601 3602 void sub_36091530(void) { 3603 int _fpu_cmp = 0; 3604 uint32_t _cf = 0; 3605 int _df = 1; 3606 uint32_t _flag_k = FK_NONE; 3607 uint32_t _flag_a = 0, _flag_b = 0; 3608 uint32_t _itail_tgt = 0; 3609 RECOMP_REGS_LOCALS 3610 RECOMP_ENTER(0x36091530u); 3611 3612 goto L_36091530; 3613 L_3608E810: 3614 PUSH32(esp, ebp); /* 0x3608E810: push ebp */ 3615 ebp = esp; /* 0x3608E811: mov ebp, esp */ 3616 PUSH32(esp, esi); /* 0x3608E813: push esi */ 3617 esi = ecx; /* 0x3608E814: mov esi, ecx */ 3618 RECOMP_ICALL(0x3608EA50u); /* 0x3608E816: call 0x3608ea50 */ /* not lifted */ 3619 RECOMP_FLAGS_IN(); 3620 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608E81B: test byte ptr [ebp + 8], 1 */ 3621 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3622 _cf = 0; 3623 _flag_k = FK_NARROW(FK_TEST, 24); 3624 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E82A; /* 0x3608E81F: je 0x3608e82a */ 3625 L_3608E821: 3626 PUSH32(esp, esi); /* 0x3608E821: push esi */ 3627 RECOMP_ICALL(0x3615FCC4u); /* 0x3608E822: call 0x3615fcc4 */ /* not lifted */ 3628 RECOMP_FLAGS_IN(); 3629 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3630 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3631 esp = esp + 4; /* 0x3608E827: add esp, 4 */ 3632 _flag_k = FK_ADD; 3633 L_3608E82A: 3634 eax = esi; /* 0x3608E82A: mov eax, esi */ 3635 esi = POP32_VAL(esp); /* 0x3608E82C: pop esi */ 3636 ebp = POP32_VAL(esp); /* 0x3608E82D: pop ebp */ 3637 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608E82E: ret 4 */ 3638 L_36091530: 3639 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 3640 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3641 ecx = ecx - 8; /* 0x36091530: sub ecx, 8 */ 3642 _flag_k = FK_CMP; 3643 RECOMP_BACKEDGE(); 3644 goto L_3608E810; /* 0x36091533: jmp 0x3608e810 */ 3645 { RECOMP_REGS_OUT(); return; } /* end of function */ 3646 RECOMP_REGS_OUT(); 3647 } 3648 3649 void sub_36091540(void) { 3650 int _fpu_cmp = 0; 3651 uint32_t _cf = 0; 3652 int _df = 1; 3653 uint32_t _flag_k = FK_NONE; 3654 uint32_t _flag_a = 0, _flag_b = 0; 3655 uint32_t _itail_tgt = 0; 3656 RECOMP_REGS_LOCALS 3657 RECOMP_ENTER(0x36091540u); 3658 3659 goto L_36091540; 3660 L_3608E810: 3661 PUSH32(esp, ebp); /* 0x3608E810: push ebp */ 3662 ebp = esp; /* 0x3608E811: mov ebp, esp */ 3663 PUSH32(esp, esi); /* 0x3608E813: push esi */ 3664 esi = ecx; /* 0x3608E814: mov esi, ecx */ 3665 RECOMP_ICALL(0x3608EA50u); /* 0x3608E816: call 0x3608ea50 */ /* not lifted */ 3666 RECOMP_FLAGS_IN(); 3667 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608E81B: test byte ptr [ebp + 8], 1 */ 3668 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3669 _cf = 0; 3670 _flag_k = FK_NARROW(FK_TEST, 24); 3671 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E82A; /* 0x3608E81F: je 0x3608e82a */ 3672 L_3608E821: 3673 PUSH32(esp, esi); /* 0x3608E821: push esi */ 3674 RECOMP_ICALL(0x3615FCC4u); /* 0x3608E822: call 0x3615fcc4 */ /* not lifted */ 3675 RECOMP_FLAGS_IN(); 3676 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3677 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3678 esp = esp + 4; /* 0x3608E827: add esp, 4 */ 3679 _flag_k = FK_ADD; 3680 L_3608E82A: 3681 eax = esi; /* 0x3608E82A: mov eax, esi */ 3682 esi = POP32_VAL(esp); /* 0x3608E82C: pop esi */ 3683 ebp = POP32_VAL(esp); /* 0x3608E82D: pop ebp */ 3684 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608E82E: ret 4 */ 3685 L_36091540: 3686 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 3687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3688 ecx = ecx - 0x40u; /* 0x36091540: sub ecx, 0x40 */ 3689 _flag_k = FK_CMP; 3690 RECOMP_BACKEDGE(); 3691 goto L_3608E810; /* 0x36091543: jmp 0x3608e810 */ 3692 { RECOMP_REGS_OUT(); return; } /* end of function */ 3693 RECOMP_REGS_OUT(); 3694 } 3695 3696 void sub_36091550(void) { 3697 int _fpu_cmp = 0; 3698 uint32_t _cf = 0; 3699 int _df = 1; 3700 uint32_t _flag_k = FK_NONE; 3701 uint32_t _flag_a = 0, _flag_b = 0; 3702 uint32_t _itail_tgt = 0; 3703 RECOMP_REGS_LOCALS 3704 RECOMP_ENTER(0x36091550u); 3705 3706 goto L_36091550; 3707 L_3608E810: 3708 PUSH32(esp, ebp); /* 0x3608E810: push ebp */ 3709 ebp = esp; /* 0x3608E811: mov ebp, esp */ 3710 PUSH32(esp, esi); /* 0x3608E813: push esi */ 3711 esi = ecx; /* 0x3608E814: mov esi, ecx */ 3712 RECOMP_ICALL(0x3608EA50u); /* 0x3608E816: call 0x3608ea50 */ /* not lifted */ 3713 RECOMP_FLAGS_IN(); 3714 /* test MEM8(ebp + 0x8), 1 */ /* 0x3608E81B: test byte ptr [ebp + 8], 1 */ 3715 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 3716 _cf = 0; 3717 _flag_k = FK_NARROW(FK_TEST, 24); 3718 if (TEST_Z(_flag_a, _flag_b)) goto L_3608E82A; /* 0x3608E81F: je 0x3608e82a */ 3719 L_3608E821: 3720 PUSH32(esp, esi); /* 0x3608E821: push esi */ 3721 RECOMP_ICALL(0x3615FCC4u); /* 0x3608E822: call 0x3615fcc4 */ /* not lifted */ 3722 RECOMP_FLAGS_IN(); 3723 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3724 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3725 esp = esp + 4; /* 0x3608E827: add esp, 4 */ 3726 _flag_k = FK_ADD; 3727 L_3608E82A: 3728 eax = esi; /* 0x3608E82A: mov eax, esi */ 3729 esi = POP32_VAL(esp); /* 0x3608E82C: pop esi */ 3730 ebp = POP32_VAL(esp); /* 0x3608E82D: pop ebp */ 3731 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3608E82E: ret 4 */ 3732 L_36091550: 3733 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 3734 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3735 ecx = ecx - 0x4Cu; /* 0x36091550: sub ecx, 0x4c */ 3736 _flag_k = FK_CMP; 3737 RECOMP_BACKEDGE(); 3738 goto L_3608E810; /* 0x36091553: jmp 0x3608e810 */ 3739 { RECOMP_REGS_OUT(); return; } /* end of function */ 3740 RECOMP_REGS_OUT(); 3741 } 3742 3743 void sub_36091560(void) { 3744 int _fpu_cmp = 0; 3745 uint32_t _cf = 0; 3746 int _df = 1; 3747 uint32_t _flag_k = FK_NONE; 3748 uint32_t _flag_a = 0, _flag_b = 0; 3749 uint32_t _itail_tgt = 0; 3750 RECOMP_REGS_LOCALS 3751 RECOMP_ENTER(0x36091560u); 3752 3753 L_36091560: 3754 PUSH32(esp, ebp); /* 0x36091560: push ebp */ 3755 ebp = esp; /* 0x36091561: mov ebp, esp */ 3756 PUSH32(esp, 0xFFFFFFFFu); /* 0x36091563: push -1 */ 3757 PUSH32(esp, 0x36166213u); /* 0x36091565: push 0x36166213 */ 3758 eax = MEM32(FS_BASE + (0)); /* 0x3609156A: mov eax, dword ptr fs:[0] */ 3759 PUSH32(esp, eax); /* 0x36091570: push eax */ 3760 MEM32(FS_BASE + (0)) = esp; /* 0x36091571: mov dword ptr fs:[0], esp */ 3761 PUSH32(esp, ecx); /* 0x36091578: push ecx */ 3762 eax = MEM32(ebp + 0x8); /* 0x36091579: mov eax, dword ptr [ebp + 8] */ 3763 PUSH32(esp, ebx); /* 0x3609157C: push ebx */ 3764 PUSH32(esp, esi); /* 0x3609157D: push esi */ 3765 esi = ecx; /* 0x3609157E: mov esi, ecx */ 3766 ecx = MEM32(ebp + 0xC); /* 0x36091580: mov ecx, dword ptr [ebp + 0xc] */ 3767 MEM32(esi + 0x84) = ecx; /* 0x36091583: mov dword ptr [esi + 0x84], ecx */ 3768 ecx = esi; /* 0x36091589: mov ecx, esi */ 3769 MEM32(ebp + (-0x10)) = esi; /* 0x3609158B: mov dword ptr [ebp - 0x10], esi */ 3770 MEM32(esi + 0x80) = eax; /* 0x3609158E: mov dword ptr [esi + 0x80], eax */ 3771 RECOMP_ICALL(0x3608E780u); /* 0x36091594: call 0x3608e780 */ /* not lifted */ 3772 RECOMP_FLAGS_IN(); 3773 PUSH32(esp, 0xAu); /* 0x36091599: push 0xa */ 3774 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3775 ebx = 0; /* 0x3609159B: xor ebx, ebx */ 3776 _cf = 0; 3777 _flag_k = FK_TEST; 3778 PUSH32(esp, 1); /* 0x3609159D: push 1 */ 3779 ecx = esi; /* 0x3609159F: mov ecx, esi */ 3780 MEM32(ebp + (-0x4)) = ebx; /* 0x360915A1: mov dword ptr [ebp - 4], ebx */ 3781 MEM32(esi) = 0x36172AC0u; /* 0x360915A4: mov dword ptr [esi], 0x36172ac0 */ 3782 MEM32(esi + 0x8) = 0x36172AB0u; /* 0x360915AA: mov dword ptr [esi + 8], 0x36172ab0 */ 3783 MEM32(esi + 0x40) = 0x36172AA8u; /* 0x360915B1: mov dword ptr [esi + 0x40], 0x36172aa8 */ 3784 MEM32(esi + 0x4C) = 0x36172AA0u; /* 0x360915B8: mov dword ptr [esi + 0x4c], 0x36172aa0 */ 3785 RECOMP_ICALL(0x3602FE10u); /* 0x360915BF: call 0x3602fe10 */ /* not lifted */ 3786 RECOMP_FLAGS_IN(); 3787 PUSH32(esp, 0xFFFFFFFFu); /* 0x360915C4: push -1 */ 3788 PUSH32(esp, 8); /* 0x360915C6: push 8 */ 3789 ecx = esi; /* 0x360915C8: mov ecx, esi */ 3790 RECOMP_ICALL(0x3602FE10u); /* 0x360915CA: call 0x3602fe10 */ /* not lifted */ 3791 RECOMP_FLAGS_IN(); 3792 PUSH32(esp, ebx); /* 0x360915CF: push ebx */ 3793 PUSH32(esp, 0x38u); /* 0x360915D0: push 0x38 */ 3794 ecx = esi; /* 0x360915D2: mov ecx, esi */ 3795 RECOMP_ICALL(0x3602FE10u); /* 0x360915D4: call 0x3602fe10 */ /* not lifted */ 3796 RECOMP_FLAGS_IN(); 3797 PUSH32(esp, ebx); /* 0x360915D9: push ebx */ 3798 PUSH32(esp, 0x9Cu); /* 0x360915DA: push 0x9c */ 3799 ecx = esi; /* 0x360915DF: mov ecx, esi */ 3800 RECOMP_ICALL(0x3602FE10u); /* 0x360915E1: call 0x3602fe10 */ /* not lifted */ 3801 RECOMP_FLAGS_IN(); 3802 PUSH32(esp, ebx); /* 0x360915E6: push ebx */ 3803 PUSH32(esp, 0x19u); /* 0x360915E7: push 0x19 */ 3804 ecx = esi; /* 0x360915E9: mov ecx, esi */ 3805 RECOMP_ICALL(0x3602FE10u); /* 0x360915EB: call 0x3602fe10 */ /* not lifted */ 3806 RECOMP_FLAGS_IN(); 3807 PUSH32(esp, ebx); /* 0x360915F0: push ebx */ 3808 PUSH32(esp, 0x17u); /* 0x360915F1: push 0x17 */ 3809 ecx = esi; /* 0x360915F3: mov ecx, esi */ 3810 RECOMP_ICALL(0x3602FE10u); /* 0x360915F5: call 0x3602fe10 */ /* not lifted */ 3811 RECOMP_FLAGS_IN(); 3812 PUSH32(esp, ebx); /* 0x360915FA: push ebx */ 3813 PUSH32(esp, 0x160u); /* 0x360915FB: push 0x160 */ 3814 ecx = esi; /* 0x36091600: mov ecx, esi */ 3815 RECOMP_ICALL(0x3602FE10u); /* 0x36091602: call 0x3602fe10 */ /* not lifted */ 3816 RECOMP_FLAGS_IN(); 3817 PUSH32(esp, ebx); /* 0x36091607: push ebx */ 3818 PUSH32(esp, 0xEu); /* 0x36091608: push 0xe */ 3819 ecx = esi; /* 0x3609160A: mov ecx, esi */ 3820 RECOMP_ICALL(0x3602FE10u); /* 0x3609160C: call 0x3602fe10 */ /* not lifted */ 3821 RECOMP_FLAGS_IN(); 3822 PUSH32(esp, ebx); /* 0x36091611: push ebx */ 3823 PUSH32(esp, 0xFu); /* 0x36091612: push 0xf */ 3824 ecx = esi; /* 0x36091614: mov ecx, esi */ 3825 RECOMP_ICALL(0x3602FE10u); /* 0x36091616: call 0x3602fe10 */ /* not lifted */ 3826 RECOMP_FLAGS_IN(); 3827 PUSH32(esp, 1); /* 0x3609161B: push 1 */ 3828 PUSH32(esp, ebx); /* 0x3609161D: push ebx */ 3829 ecx = esi; /* 0x3609161E: mov ecx, esi */ 3830 RECOMP_ICALL(0x3602FE10u); /* 0x36091620: call 0x3602fe10 */ /* not lifted */ 3831 RECOMP_FLAGS_IN(); 3832 PUSH32(esp, 0xAu); /* 0x36091625: push 0xa */ 3833 PUSH32(esp, 0x1Bu); /* 0x36091627: push 0x1b */ 3834 ecx = esi; /* 0x36091629: mov ecx, esi */ 3835 RECOMP_ICALL(0x3602FE10u); /* 0x3609162B: call 0x3602fe10 */ /* not lifted */ 3836 RECOMP_FLAGS_IN(); 3837 PUSH32(esp, ebx); /* 0x36091630: push ebx */ 3838 PUSH32(esp, 0x48u); /* 0x36091631: push 0x48 */ 3839 ecx = esi; /* 0x36091633: mov ecx, esi */ 3840 RECOMP_ICALL(0x3602FE10u); /* 0x36091635: call 0x3602fe10 */ /* not lifted */ 3841 RECOMP_FLAGS_IN(); 3842 PUSH32(esp, ebx); /* 0x3609163A: push ebx */ 3843 PUSH32(esp, 0x4Bu); /* 0x3609163B: push 0x4b */ 3844 ecx = esi; /* 0x3609163D: mov ecx, esi */ 3845 RECOMP_ICALL(0x3602FE10u); /* 0x3609163F: call 0x3602fe10 */ /* not lifted */ 3846 RECOMP_FLAGS_IN(); 3847 PUSH32(esp, ebx); /* 0x36091644: push ebx */ 3848 PUSH32(esp, 0x3E7u); /* 0x36091645: push 0x3e7 */ 3849 ecx = esi; /* 0x3609164A: mov ecx, esi */ 3850 RECOMP_ICALL(0x3602FE10u); /* 0x3609164C: call 0x3602fe10 */ /* not lifted */ 3851 RECOMP_FLAGS_IN(); 3852 PUSH32(esp, ebx); /* 0x36091651: push ebx */ 3853 PUSH32(esp, 0x4Fu); /* 0x36091652: push 0x4f */ 3854 ecx = esi; /* 0x36091654: mov ecx, esi */ 3855 RECOMP_ICALL(0x3602FE10u); /* 0x36091656: call 0x3602fe10 */ /* not lifted */ 3856 RECOMP_FLAGS_IN(); 3857 PUSH32(esp, ebx); /* 0x3609165B: push ebx */ 3858 PUSH32(esp, 0x125u); /* 0x3609165C: push 0x125 */ 3859 ecx = esi; /* 0x36091661: mov ecx, esi */ 3860 RECOMP_ICALL(0x3602FE10u); /* 0x36091663: call 0x3602fe10 */ /* not lifted */ 3861 RECOMP_FLAGS_IN(); 3862 PUSH32(esp, 0xC8u); /* 0x36091668: push 0xc8 */ 3863 PUSH32(esp, 0x126u); /* 0x3609166D: push 0x126 */ 3864 ecx = esi; /* 0x36091672: mov ecx, esi */ 3865 RECOMP_ICALL(0x3602FE10u); /* 0x36091674: call 0x3602fe10 */ /* not lifted */ 3866 RECOMP_FLAGS_IN(); 3867 PUSH32(esp, 0xC8u); /* 0x36091679: push 0xc8 */ 3868 PUSH32(esp, 0xD2u); /* 0x3609167E: push 0xd2 */ 3869 ecx = esi; /* 0x36091683: mov ecx, esi */ 3870 RECOMP_ICALL(0x3602FE10u); /* 0x36091685: call 0x3602fe10 */ /* not lifted */ 3871 RECOMP_FLAGS_IN(); 3872 PUSH32(esp, 0xC8u); /* 0x3609168A: push 0xc8 */ 3873 PUSH32(esp, 0xD3u); /* 0x3609168F: push 0xd3 */ 3874 ecx = esi; /* 0x36091694: mov ecx, esi */ 3875 RECOMP_ICALL(0x3602FE10u); /* 0x36091696: call 0x3602fe10 */ /* not lifted */ 3876 RECOMP_FLAGS_IN(); 3877 PUSH32(esp, 0x19u); /* 0x3609169B: push 0x19 */ 3878 ecx = esi; /* 0x3609169D: mov ecx, esi */ 3879 RECOMP_ICALL(0x3608ED30u); /* 0x3609169F: call 0x3608ed30 */ /* not lifted */ 3880 RECOMP_FLAGS_IN(); 3881 PUSH32(esp, 0x17u); /* 0x360916A4: push 0x17 */ 3882 ecx = esi; /* 0x360916A6: mov ecx, esi */ 3883 RECOMP_ICALL(0x3608ED30u); /* 0x360916A8: call 0x3608ed30 */ /* not lifted */ 3884 RECOMP_FLAGS_IN(); 3885 PUSH32(esp, ebx); /* 0x360916AD: push ebx */ 3886 ecx = esi; /* 0x360916AE: mov ecx, esi */ 3887 RECOMP_ICALL(0x3608ED30u); /* 0x360916B0: call 0x3608ed30 */ /* not lifted */ 3888 RECOMP_FLAGS_IN(); 3889 PUSH32(esp, 2); /* 0x360916B5: push 2 */ 3890 PUSH32(esp, 0x11Fu); /* 0x360916B7: push 0x11f */ 3891 ecx = esi; /* 0x360916BC: mov ecx, esi */ 3892 RECOMP_ICALL(0x3602FE10u); /* 0x360916BE: call 0x3602fe10 */ /* not lifted */ 3893 RECOMP_FLAGS_IN(); 3894 PUSH32(esp, 2); /* 0x360916C3: push 2 */ 3895 PUSH32(esp, 0x11Eu); /* 0x360916C5: push 0x11e */ 3896 ecx = esi; /* 0x360916CA: mov ecx, esi */ 3897 RECOMP_ICALL(0x3602FE10u); /* 0x360916CC: call 0x3602fe10 */ /* not lifted */ 3898 RECOMP_FLAGS_IN(); 3899 PUSH32(esp, 2); /* 0x360916D1: push 2 */ 3900 PUSH32(esp, 0x11Du); /* 0x360916D3: push 0x11d */ 3901 ecx = esi; /* 0x360916D8: mov ecx, esi */ 3902 RECOMP_ICALL(0x3602FE10u); /* 0x360916DA: call 0x3602fe10 */ /* not lifted */ 3903 RECOMP_FLAGS_IN(); 3904 PUSH32(esp, ebx); /* 0x360916DF: push ebx */ 3905 PUSH32(esp, 0x11Cu); /* 0x360916E0: push 0x11c */ 3906 ecx = esi; /* 0x360916E5: mov ecx, esi */ 3907 RECOMP_ICALL(0x3602FE10u); /* 0x360916E7: call 0x3602fe10 */ /* not lifted */ 3908 RECOMP_FLAGS_IN(); 3909 PUSH32(esp, 0xFFFFFFFFu); /* 0x360916EC: push -1 */ 3910 PUSH32(esp, 0x1Au); /* 0x360916EE: push 0x1a */ 3911 ecx = esi; /* 0x360916F0: mov ecx, esi */ 3912 RECOMP_ICALL(0x3602FE10u); /* 0x360916F2: call 0x3602fe10 */ /* not lifted */ 3913 RECOMP_FLAGS_IN(); 3914 PUSH32(esp, 0x76u); /* 0x360916F7: push 0x76 */ 3915 PUSH32(esp, 0x1B8u); /* 0x360916F9: push 0x1b8 */ 3916 ecx = esi; /* 0x360916FE: mov ecx, esi */ 3917 RECOMP_ICALL(0x3602FE10u); /* 0x36091700: call 0x3602fe10 */ /* not lifted */ 3918 RECOMP_FLAGS_IN(); 3919 PUSH32(esp, 0x5Bu); /* 0x36091705: push 0x5b */ 3920 PUSH32(esp, 0x1B4u); /* 0x36091707: push 0x1b4 */ 3921 ecx = esi; /* 0x3609170C: mov ecx, esi */ 3922 RECOMP_ICALL(0x3602FE10u); /* 0x3609170E: call 0x3602fe10 */ /* not lifted */ 3923 RECOMP_FLAGS_IN(); 3924 PUSH32(esp, 0x5Bu); /* 0x36091713: push 0x5b */ 3925 PUSH32(esp, 0x162u); /* 0x36091715: push 0x162 */ 3926 ecx = esi; /* 0x3609171A: mov ecx, esi */ 3927 RECOMP_ICALL(0x3602FE10u); /* 0x3609171C: call 0x3602fe10 */ /* not lifted */ 3928 RECOMP_FLAGS_IN(); 3929 PUSH32(esp, 0x38u); /* 0x36091721: push 0x38 */ 3930 RECOMP_ICALL(0x3615FD6Au); /* 0x36091723: call 0x3615fd6a */ /* not lifted */ 3931 RECOMP_FLAGS_IN(); 3932 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3933 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3934 esp = esp + 4; /* 0x36091728: add esp, 4 */ 3935 _flag_k = FK_ADD; 3936 MEM32(ebp + 0x8) = eax; /* 0x3609172B: mov dword ptr [ebp + 8], eax */ 3937 /* cmp eax, ebx */ /* 0x3609172E: cmp eax, ebx */ 3938 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3939 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3940 _flag_k = FK_CMP; 3941 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x36091730: mov byte ptr [ebp - 4], 1 */ 3942 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091740; /* 0x36091734: je 0x36091740 */ 3943 L_36091736: 3944 PUSH32(esp, esi); /* 0x36091736: push esi */ 3945 ecx = eax; /* 0x36091737: mov ecx, eax */ 3946 RECOMP_ICALL(0x360AAC50u); /* 0x36091739: call 0x360aac50 */ /* not lifted */ 3947 RECOMP_FLAGS_IN(); 3948 goto L_36091742; /* 0x3609173E: jmp 0x36091742 */ 3949 L_36091740: 3950 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3951 eax = 0; /* 0x36091740: xor eax, eax */ 3952 _cf = 0; 3953 _flag_k = FK_TEST; 3954 L_36091742: 3955 PUSH32(esp, 0x361C384Cu); /* 0x36091742: push 0x361c384c */ 3956 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36091747: mov byte ptr [ebp - 4], bl */ 3957 MEM32(esi + 0x68) = eax; /* 0x3609174A: mov dword ptr [esi + 0x68], eax */ 3958 RECOMP_ICALL(0x3601C590u); /* 0x3609174D: call 0x3601c590 */ /* not lifted */ 3959 RECOMP_FLAGS_IN(); 3960 ecx = eax; /* 0x36091752: mov ecx, eax */ 3961 RECOMP_ICALL(0x3601CBC0u); /* 0x36091754: call 0x3601cbc0 */ /* not lifted */ 3962 RECOMP_FLAGS_IN(); 3963 PUSH32(esp, 0x361C3830u); /* 0x36091759: push 0x361c3830 */ 3964 MEM32(esi + 0x88) = eax; /* 0x3609175E: mov dword ptr [esi + 0x88], eax */ 3965 RECOMP_ICALL(0x3601C590u); /* 0x36091764: call 0x3601c590 */ /* not lifted */ 3966 RECOMP_FLAGS_IN(); 3967 ecx = eax; /* 0x36091769: mov ecx, eax */ 3968 RECOMP_ICALL(0x3601CBC0u); /* 0x3609176B: call 0x3601cbc0 */ /* not lifted */ 3969 RECOMP_FLAGS_IN(); 3970 PUSH32(esp, 0x10u); /* 0x36091770: push 0x10 */ 3971 MEM32(esi + 0x8C) = eax; /* 0x36091772: mov dword ptr [esi + 0x8c], eax */ 3972 RECOMP_ICALL(0x3615FD6Au); /* 0x36091778: call 0x3615fd6a */ /* not lifted */ 3973 RECOMP_FLAGS_IN(); 3974 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3975 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3976 esp = esp + 4; /* 0x3609177D: add esp, 4 */ 3977 _flag_k = FK_ADD; 3978 /* cmp eax, ebx */ /* 0x36091780: cmp eax, ebx */ 3979 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 3980 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3981 _flag_k = FK_CMP; 3982 if (CMP_EQ(_flag_a, _flag_b)) goto L_36091795; /* 0x36091782: je 0x36091795 */ 3983 L_36091784: 3984 MEM32(eax) = ebx; /* 0x36091784: mov dword ptr [eax], ebx */ 3985 MEM32(eax + 0x4) = 0xF232u; /* 0x36091786: mov dword ptr [eax + 4], 0xf232 */ 3986 MEM32(eax + 0x8) = ebx; /* 0x3609178D: mov dword ptr [eax + 8], ebx */ 3987 MEM32(eax + 0xC) = ebx; /* 0x36091790: mov dword ptr [eax + 0xc], ebx */ 3988 goto L_36091797; /* 0x36091793: jmp 0x36091797 */ 3989 L_36091795: 3990 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3991 eax = 0; /* 0x36091795: xor eax, eax */ 3992 _cf = 0; 3993 _flag_k = FK_TEST; 3994 L_36091797: 3995 ecx = MEM32(ebp + (-0xC)); /* 0x36091797: mov ecx, dword ptr [ebp - 0xc] */ 3996 MEM32(esi + 0x98) = eax; /* 0x3609179A: mov dword ptr [esi + 0x98], eax */ 3997 MEM32(esi + 0x94) = ebx; /* 0x360917A0: mov dword ptr [esi + 0x94], ebx */ 3998 MEM32(esi + 0x90) = ebx; /* 0x360917A6: mov dword ptr [esi + 0x90], ebx */ 3999 eax = esi; /* 0x360917AC: mov eax, esi */ 4000 esi = POP32_VAL(esp); /* 0x360917AE: pop esi */ 4001 ebx = POP32_VAL(esp); /* 0x360917AF: pop ebx */ 4002 MEM32(FS_BASE + (0)) = ecx; /* 0x360917B0: mov dword ptr fs:[0], ecx */ 4003 esp = ebp; /* 0x360917B7: mov esp, ebp */ 4004 ebp = POP32_VAL(esp); /* 0x360917B9: pop ebp */ 4005 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360917BA: ret 8 */ 4006 RECOMP_REGS_OUT(); 4007 } 4008 4009 void sub_360917C0(void) { 4010 int _fpu_cmp = 0; 4011 uint32_t _cf = 0; 4012 int _df = 1; 4013 uint32_t _flag_k = FK_NONE; 4014 uint32_t _flag_a = 0, _flag_b = 0; 4015 uint32_t _itail_tgt = 0; 4016 RECOMP_REGS_LOCALS 4017 RECOMP_ENTER(0x360917C0u); 4018 4019 L_360917C0: 4020 PUSH32(esp, ebp); /* 0x360917C0: push ebp */ 4021 ebp = esp; /* 0x360917C1: mov ebp, esp */ 4022 PUSH32(esp, esi); /* 0x360917C3: push esi */ 4023 esi = ecx; /* 0x360917C4: mov esi, ecx */ 4024 RECOMP_ICALL(0x360917F0u); /* 0x360917C6: call 0x360917f0 */ /* not lifted */ 4025 RECOMP_FLAGS_IN(); 4026 /* test MEM8(ebp + 0x8), 1 */ /* 0x360917CB: test byte ptr [ebp + 8], 1 */ 4027 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 4028 _cf = 0; 4029 _flag_k = FK_NARROW(FK_TEST, 24); 4030 if (TEST_Z(_flag_a, _flag_b)) goto L_360917DA; /* 0x360917CF: je 0x360917da */ 4031 L_360917D1: 4032 PUSH32(esp, esi); /* 0x360917D1: push esi */ 4033 RECOMP_ICALL(0x3615FCC4u); /* 0x360917D2: call 0x3615fcc4 */ /* not lifted */ 4034 RECOMP_FLAGS_IN(); 4035 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4036 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4037 esp = esp + 4; /* 0x360917D7: add esp, 4 */ 4038 _flag_k = FK_ADD; 4039 L_360917DA: 4040 eax = esi; /* 0x360917DA: mov eax, esi */ 4041 esi = POP32_VAL(esp); /* 0x360917DC: pop esi */ 4042 ebp = POP32_VAL(esp); /* 0x360917DD: pop ebp */ 4043 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360917DE: ret 4 */ 4044 RECOMP_REGS_OUT(); 4045 } 4046 4047 void sub_360917F0(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(0x360917F0u); 4056 4057 L_360917F0: 4058 PUSH32(esp, ebp); /* 0x360917F0: push ebp */ 4059 ebp = esp; /* 0x360917F1: mov ebp, esp */ 4060 PUSH32(esp, 0xFFFFFFFFu); /* 0x360917F3: push -1 */ 4061 PUSH32(esp, 0x36166228u); /* 0x360917F5: push 0x36166228 */ 4062 eax = MEM32(FS_BASE + (0)); /* 0x360917FA: mov eax, dword ptr fs:[0] */ 4063 PUSH32(esp, eax); /* 0x36091800: push eax */ 4064 MEM32(FS_BASE + (0)) = esp; /* 0x36091801: mov dword ptr fs:[0], esp */ 4065 PUSH32(esp, ecx); /* 0x36091808: push ecx */ 4066 PUSH32(esp, esi); /* 0x36091809: push esi */ 4067 esi = ecx; /* 0x3609180A: mov esi, ecx */ 4068 PUSH32(esp, edi); /* 0x3609180C: push edi */ 4069 MEM32(ebp + (-0x10)) = esi; /* 0x3609180D: mov dword ptr [ebp - 0x10], esi */ 4070 MEM32(esi) = 0x36172AC0u; /* 0x36091810: mov dword ptr [esi], 0x36172ac0 */ 4071 MEM32(esi + 0x8) = 0x36172AB0u; /* 0x36091816: mov dword ptr [esi + 8], 0x36172ab0 */ 4072 MEM32(esi + 0x40) = 0x36172AA8u; /* 0x3609181D: mov dword ptr [esi + 0x40], 0x36172aa8 */ 4073 MEM32(esi + 0x4C) = 0x36172AA0u; /* 0x36091824: mov dword ptr [esi + 0x4c], 0x36172aa0 */ 4074 ecx = MEM32(esi + 0x68); /* 0x3609182B: mov ecx, dword ptr [esi + 0x68] */ 4075 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4076 edi = 0; /* 0x3609182E: xor edi, edi */ 4077 _cf = 0; 4078 _flag_k = FK_TEST; 4079 /* cmp ecx, edi */ /* 0x36091830: cmp ecx, edi */ 4080 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4081 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4082 _flag_k = FK_CMP; 4083 MEM32(ebp + (-0x4)) = edi; /* 0x36091832: mov dword ptr [ebp - 4], edi */ 4084 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609183D; /* 0x36091835: je 0x3609183d */ 4085 L_36091837: 4086 eax = MEM32(ecx); /* 0x36091837: mov eax, dword ptr [ecx] */ 4087 PUSH32(esp, 1); /* 0x36091839: push 1 */ 4088 RECOMP_ICALL(MEM32(eax)); /* 0x3609183B: call dword ptr [eax] */ 4089 RECOMP_FLAGS_IN(); 4090 L_3609183D: 4091 eax = MEM32(esi + 0x98); /* 0x3609183D: mov eax, dword ptr [esi + 0x98] */ 4092 PUSH32(esp, eax); /* 0x36091843: push eax */ 4093 MEM32(esi + 0x68) = edi; /* 0x36091844: mov dword ptr [esi + 0x68], edi */ 4094 RECOMP_ICALL(0x3615FCC4u); /* 0x36091847: call 0x3615fcc4 */ /* not lifted */ 4095 RECOMP_FLAGS_IN(); 4096 eax = MEM32(esi + 0x90); /* 0x3609184C: mov eax, dword ptr [esi + 0x90] */ 4097 PUSH32(esp, eax); /* 0x36091852: push eax */ 4098 MEM32(esi + 0x98) = edi; /* 0x36091853: mov dword ptr [esi + 0x98], edi */ 4099 RECOMP_ICALL(0x3615FCC4u); /* 0x36091859: call 0x3615fcc4 */ /* not lifted */ 4100 RECOMP_FLAGS_IN(); 4101 eax = MEM32(esi + 0x94); /* 0x3609185E: mov eax, dword ptr [esi + 0x94] */ 4102 PUSH32(esp, eax); /* 0x36091864: push eax */ 4103 MEM32(esi + 0x90) = edi; /* 0x36091865: mov dword ptr [esi + 0x90], edi */ 4104 RECOMP_ICALL(0x3615FCC4u); /* 0x3609186B: call 0x3615fcc4 */ /* not lifted */ 4105 RECOMP_FLAGS_IN(); 4106 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4107 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4108 esp = esp + 0xCu; /* 0x36091870: add esp, 0xc */ 4109 _flag_k = FK_ADD; 4110 ecx = esi; /* 0x36091873: mov ecx, esi */ 4111 MEM32(esi + 0x94) = edi; /* 0x36091875: mov dword ptr [esi + 0x94], edi */ 4112 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609187B: mov dword ptr [ebp - 4], 0xffffffff */ 4113 RECOMP_ICALL(0x3608EA50u); /* 0x36091882: call 0x3608ea50 */ /* not lifted */ 4114 RECOMP_FLAGS_IN(); 4115 ecx = MEM32(ebp + (-0xC)); /* 0x36091887: mov ecx, dword ptr [ebp - 0xc] */ 4116 edi = POP32_VAL(esp); /* 0x3609188A: pop edi */ 4117 esi = POP32_VAL(esp); /* 0x3609188B: pop esi */ 4118 MEM32(FS_BASE + (0)) = ecx; /* 0x3609188C: mov dword ptr fs:[0], ecx */ 4119 esp = ebp; /* 0x36091893: mov esp, ebp */ 4120 ebp = POP32_VAL(esp); /* 0x36091895: pop ebp */ 4121 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36091896: ret */ 4122 RECOMP_REGS_OUT(); 4123 } 4124 4125 void sub_360918A0(void) { 4126 int _fpu_cmp = 0; 4127 uint32_t _cf = 0; 4128 int _df = 1; 4129 uint32_t _flag_k = FK_NONE; 4130 uint32_t _flag_a = 0, _flag_b = 0; 4131 uint32_t _itail_tgt = 0; 4132 RECOMP_REGS_LOCALS 4133 RECOMP_ENTER(0x360918A0u); 4134 4135 L_360918A0: 4136 PUSH32(esp, ebp); /* 0x360918A0: push ebp */ 4137 L_360918A1: 4138 ebp = esp; /* 0x360918A1: mov ebp, esp */ 4139 L_360918A3: 4140 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 4141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4142 esp = esp - 0x20u; /* 0x360918A3: sub esp, 0x20 */ 4143 _flag_k = FK_CMP; 4144 L_360918A6: 4145 PUSH32(esp, ebx); /* 0x360918A6: push ebx */ 4146 L_360918A7: 4147 PUSH32(esp, esi); /* 0x360918A7: push esi */ 4148 L_360918A8: 4149 esi = MEM32(ebp + 0xC); /* 0x360918A8: mov esi, dword ptr [ebp + 0xc] */ 4150 L_360918AB: 4151 /* test esi, esi */ /* 0x360918AB: test esi, esi */ 4152 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4153 _cf = 0; 4154 _flag_k = FK_TEST; 4155 L_360918AD: 4156 PUSH32(esp, edi); /* 0x360918AD: push edi */ 4157 L_360918AE: 4158 edi = ecx; /* 0x360918AE: mov edi, ecx */ 4159 L_360918B0: 4160 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091F9C; /* 0x360918B0: je 0x36091f9c */ 4161 L_360918B6: 4162 eax = MEM32(ebp + 0x10); /* 0x360918B6: mov eax, dword ptr [ebp + 0x10] */ 4163 L_360918B9: 4164 /* test eax, eax */ /* 0x360918B9: test eax, eax */ 4165 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4166 _cf = 0; 4167 _flag_k = FK_TEST; 4168 L_360918BB: 4169 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091F9C; /* 0x360918BB: je 0x36091f9c */ 4170 L_360918C1: 4171 RECOMP_ICALL(0x360F7B00u); /* 0x360918C1: call 0x360f7b00 */ /* not lifted */ 4172 RECOMP_FLAGS_IN(); 4173 L_360918C6: 4174 ebx = eax; /* 0x360918C6: mov ebx, eax */ 4175 L_360918C8: 4176 eax = MEM32(edi + 0x90); /* 0x360918C8: mov eax, dword ptr [edi + 0x90] */ 4177 L_360918CE: 4178 /* test eax, eax */ /* 0x360918CE: test eax, eax */ 4179 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4180 _cf = 0; 4181 _flag_k = FK_TEST; 4182 L_360918D0: 4183 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091904; /* 0x360918D0: je 0x36091904 */ 4184 L_360918D2: 4185 MEM32(ebx + 0x54) = 0x20u; /* 0x360918D2: mov dword ptr [ebx + 0x54], 0x20 */ 4186 L_360918D9: 4187 eax = MEM32(edi + 0x90); /* 0x360918D9: mov eax, dword ptr [edi + 0x90] */ 4188 L_360918DF: 4189 ecx = MEM32(eax); /* 0x360918DF: mov ecx, dword ptr [eax] */ 4190 L_360918E1: 4191 edx = MEM32(eax + 0x4); /* 0x360918E1: mov edx, dword ptr [eax + 4] */ 4192 L_360918E4: 4193 PUSH32(esp, ecx); /* 0x360918E4: push ecx */ 4194 L_360918E5: 4195 PUSH32(esp, esi); /* 0x360918E5: push esi */ 4196 L_360918E6: 4197 PUSH32(esp, edx); /* 0x360918E6: push edx */ 4198 L_360918E7: 4199 ecx = ebx; /* 0x360918E7: mov ecx, ebx */ 4200 L_360918E9: 4201 RECOMP_ICALL(0x360F81E0u); /* 0x360918E9: call 0x360f81e0 */ /* not lifted */ 4202 RECOMP_FLAGS_IN(); 4203 L_360918EE: 4204 ecx = MEM32(edi + 0x90); /* 0x360918EE: mov ecx, dword ptr [edi + 0x90] */ 4205 L_360918F4: 4206 ecx = MEM32(ecx + 0xC); /* 0x360918F4: mov ecx, dword ptr [ecx + 0xc] */ 4207 L_360918F7: 4208 /* test ecx, ecx */ /* 0x360918F7: test ecx, ecx */ 4209 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4210 _cf = 0; 4211 _flag_k = FK_TEST; 4212 L_360918F9: 4213 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091904; /* 0x360918F9: je 0x36091904 */ 4214 L_360918FB: 4215 PUSH32(esp, ecx); /* 0x360918FB: push ecx */ 4216 L_360918FC: 4217 PUSH32(esp, eax); /* 0x360918FC: push eax */ 4218 L_360918FD: 4219 ecx = ebx; /* 0x360918FD: mov ecx, ebx */ 4220 L_360918FF: 4221 RECOMP_ICALL(0x360FB800u); /* 0x360918FF: call 0x360fb800 */ /* not lifted */ 4222 RECOMP_FLAGS_IN(); 4223 L_36091904: 4224 edx = MEM32(ebp + 0x10); /* 0x36091904: mov edx, dword ptr [ebp + 0x10] */ 4225 L_36091907: 4226 PUSH32(esp, 0); /* 0x36091907: push 0 */ 4227 L_36091909: 4228 PUSH32(esp, 0x361B2CD8u); /* 0x36091909: push 0x361b2cd8 */ 4229 L_3609190E: 4230 PUSH32(esp, 0x361B2CC0u); /* 0x3609190E: push 0x361b2cc0 */ 4231 L_36091913: 4232 PUSH32(esp, 0); /* 0x36091913: push 0 */ 4233 L_36091915: 4234 PUSH32(esp, edx); /* 0x36091915: push edx */ 4235 L_36091916: 4236 RECOMP_ICALL(0x3615FD86u); /* 0x36091916: call 0x3615fd86 */ /* not lifted */ 4237 RECOMP_FLAGS_IN(); 4238 L_3609191B: 4239 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 4240 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4241 esp = esp + 0x14u; /* 0x3609191B: add esp, 0x14 */ 4242 _flag_k = FK_ADD; 4243 L_3609191E: 4244 esi = eax; /* 0x3609191E: mov esi, eax */ 4245 L_36091920: 4246 RECOMP_ICALL(0x360AB9D0u); /* 0x36091920: call 0x360ab9d0 */ /* not lifted */ 4247 RECOMP_FLAGS_IN(); 4248 L_36091925: 4249 ecx = MEM32(edi + 0x98); /* 0x36091925: mov ecx, dword ptr [edi + 0x98] */ 4250 L_3609192B: 4251 /* test ecx, ecx */ /* 0x3609192B: test ecx, ecx */ 4252 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4253 _cf = 0; 4254 _flag_k = FK_TEST; 4255 L_3609192D: 4256 MEM32(ebp + (-0x4)) = eax; /* 0x3609192D: mov dword ptr [ebp - 4], eax */ 4257 L_36091930: 4258 MEM32(ebp + (-0x8)) = 0; /* 0x36091930: mov dword ptr [ebp - 8], 0 */ 4259 L_36091937: 4260 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091A10; /* 0x36091937: je 0x36091a10 */ 4261 L_3609193D: 4262 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFF81u); 4263 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4264 eax = eax + 0xFFFFFF81u; /* 0x3609193D: add eax, -0x7f */ 4265 _flag_k = FK_ADD; 4266 L_36091940: 4267 /* cmp eax, 5 */ /* 0x36091940: cmp eax, 5 */ 4268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5); 4269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4270 _flag_k = FK_CMP; 4271 L_36091943: 4272 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_A, _cf)) goto L_36091977; /* 0x36091943: ja 0x36091977 */ 4273 L_36091945: 4274 { _itail_tgt = (uint32_t)(MEM32(eax * 4 + 0x36091FA8)); goto _ljump; } 4275 L_3609194C: 4276 MEM32(ebp + (-0xC)) = 0x3EFu; /* 0x3609194C: mov dword ptr [ebp - 0xc], 0x3ef */ 4277 L_36091953: 4278 goto L_36091977; /* 0x36091953: jmp 0x36091977 */ 4279 L_36091955: 4280 MEM32(ebp + (-0xC)) = 0x3F0u; /* 0x36091955: mov dword ptr [ebp - 0xc], 0x3f0 */ 4281 L_3609195C: 4282 goto L_36091977; /* 0x3609195C: jmp 0x36091977 */ 4283 L_3609195E: 4284 MEM32(ebp + (-0xC)) = 0x3E8u; /* 0x3609195E: mov dword ptr [ebp - 0xc], 0x3e8 */ 4285 L_36091965: 4286 goto L_36091977; /* 0x36091965: jmp 0x36091977 */ 4287 L_36091967: 4288 MEM32(ebp + (-0xC)) = 0x3E9u; /* 0x36091967: mov dword ptr [ebp - 0xc], 0x3e9 */ 4289 L_3609196E: 4290 goto L_36091977; /* 0x3609196E: jmp 0x36091977 */ 4291 L_36091970: 4292 MEM32(ebp + (-0xC)) = 0x3EEu; /* 0x36091970: mov dword ptr [ebp - 0xc], 0x3ee */ 4293 L_36091977: 4294 /* test esi, esi */ /* 0x36091977: test esi, esi */ 4295 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4296 _cf = 0; 4297 _flag_k = FK_TEST; 4298 L_36091979: 4299 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3609198F; /* 0x36091979: je 0x3609198f */ 4300 L_3609197B: 4301 eax = MEM32(esi + 0x170); /* 0x3609197B: mov eax, dword ptr [esi + 0x170] */ 4302 L_36091981: 4303 ecx = MEM32(eax + 0x8); /* 0x36091981: mov ecx, dword ptr [eax + 8] */ 4304 L_36091984: 4305 /* test ecx, ecx */ /* 0x36091984: test ecx, ecx */ 4306 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4307 _cf = 0; 4308 _flag_k = FK_TEST; 4309 L_36091986: 4310 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3609198F; /* 0x36091986: je 0x3609198f */ 4311 L_36091988: 4312 PUSH32(esp, 0x29u); /* 0x36091988: push 0x29 */ 4313 L_3609198A: 4314 RECOMP_ICALL(0x36063E80u); /* 0x3609198A: call 0x36063e80 */ /* not lifted */ 4315 RECOMP_FLAGS_IN(); 4316 L_3609198F: 4317 eax = MEM32(edi + 0x98); /* 0x3609198F: mov eax, dword ptr [edi + 0x98] */ 4318 L_36091995: 4319 /* cmp MEM32(eax + 0x4), 0xA96u */ /* 0x36091995: cmp dword ptr [eax + 4], 0xa96 */ 4320 _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(0xA96u); 4321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4322 _flag_k = FK_CMP; 4323 L_3609199C: 4324 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_360919B2; /* 0x3609199C: jne 0x360919b2 */ 4325 L_3609199E: 4326 MEM32(eax + 0x4) = 0xF232u; /* 0x3609199E: mov dword ptr [eax + 4], 0xf232 */ 4327 L_360919A5: 4328 ecx = MEM32(edi + 0x98); /* 0x360919A5: mov ecx, dword ptr [edi + 0x98] */ 4329 L_360919AB: 4330 MEM32(ecx + 0xC) = 0; /* 0x360919AB: mov dword ptr [ecx + 0xc], 0 */ 4331 L_360919B2: 4332 edx = MEM32(ebp + (-0xC)); /* 0x360919B2: mov edx, dword ptr [ebp - 0xc] */ 4333 L_360919B5: 4334 eax = MEM32(ebp + 0x10); /* 0x360919B5: mov eax, dword ptr [ebp + 0x10] */ 4335 L_360919B8: 4336 PUSH32(esp, 0); /* 0x360919B8: push 0 */ 4337 L_360919BA: 4338 PUSH32(esp, edx); /* 0x360919BA: push edx */ 4339 L_360919BB: 4340 PUSH32(esp, eax); /* 0x360919BB: push eax */ 4341 L_360919BC: 4342 PUSH32(esp, 0x7D2u); /* 0x360919BC: push 0x7d2 */ 4343 L_360919C1: 4344 PUSH32(esp, eax); /* 0x360919C1: push eax */ 4345 L_360919C2: 4346 ecx = ebx; /* 0x360919C2: mov ecx, ebx */ 4347 L_360919C4: 4348 RECOMP_ICALL(0x360FBF60u); /* 0x360919C4: call 0x360fbf60 */ /* not lifted */ 4349 RECOMP_FLAGS_IN(); 4350 L_360919C9: 4351 ecx = edi; /* 0x360919C9: mov ecx, edi */ 4352 L_360919CB: 4353 MEM32(ebp + (-0x14)) = eax; /* 0x360919CB: mov dword ptr [ebp - 0x14], eax */ 4354 L_360919CE: 4355 RECOMP_ICALL(0x3608F980u); /* 0x360919CE: call 0x3608f980 */ /* not lifted */ 4356 RECOMP_FLAGS_IN(); 4357 L_360919D3: 4358 ecx = eax; /* 0x360919D3: mov ecx, eax */ 4359 L_360919D5: 4360 RECOMP_ICALL(0x360AB580u); /* 0x360919D5: call 0x360ab580 */ /* not lifted */ 4361 RECOMP_FLAGS_IN(); 4362 L_360919DA: 4363 /* test LO8(eax), LO8(eax) */ /* 0x360919DA: test al, al */ 4364 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4365 _cf = 0; 4366 _flag_k = FK_NARROW(FK_TEST, 24); 4367 L_360919DC: 4368 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091A10; /* 0x360919DC: je 0x36091a10 */ 4369 L_360919DE: 4370 eax = MEM32(ebp + (-0x14)); /* 0x360919DE: mov eax, dword ptr [ebp - 0x14] */ 4371 L_360919E1: 4372 MEM32(ebx + 0x54) = 0x20u; /* 0x360919E1: mov dword ptr [ebx + 0x54], 0x20 */ 4373 L_360919E8: 4374 ecx = MEM32(edi + 0x98); /* 0x360919E8: mov ecx, dword ptr [edi + 0x98] */ 4375 L_360919EE: 4376 edx = MEM32(ecx + 0x4); /* 0x360919EE: mov edx, dword ptr [ecx + 4] */ 4377 L_360919F1: 4378 PUSH32(esp, eax); /* 0x360919F1: push eax */ 4379 L_360919F2: 4380 PUSH32(esp, edx); /* 0x360919F2: push edx */ 4381 L_360919F3: 4382 ecx = ebx; /* 0x360919F3: mov ecx, ebx */ 4383 L_360919F5: 4384 RECOMP_ICALL(0x360F8580u); /* 0x360919F5: call 0x360f8580 */ /* not lifted */ 4385 RECOMP_FLAGS_IN(); 4386 L_360919FA: 4387 ecx = MEM32(edi + 0x98); /* 0x360919FA: mov ecx, dword ptr [edi + 0x98] */ 4388 L_36091A00: 4389 ecx = MEM32(ecx + 0xC); /* 0x36091A00: mov ecx, dword ptr [ecx + 0xc] */ 4390 L_36091A03: 4391 /* test ecx, ecx */ /* 0x36091A03: test ecx, ecx */ 4392 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4393 _cf = 0; 4394 _flag_k = FK_TEST; 4395 L_36091A05: 4396 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091A10; /* 0x36091A05: je 0x36091a10 */ 4397 L_36091A07: 4398 PUSH32(esp, ecx); /* 0x36091A07: push ecx */ 4399 L_36091A08: 4400 PUSH32(esp, eax); /* 0x36091A08: push eax */ 4401 L_36091A09: 4402 ecx = ebx; /* 0x36091A09: mov ecx, ebx */ 4403 L_36091A0B: 4404 RECOMP_ICALL(0x360FB800u); /* 0x36091A0B: call 0x360fb800 */ /* not lifted */ 4405 RECOMP_FLAGS_IN(); 4406 L_36091A10: 4407 eax = MEM32(edi + 0x94); /* 0x36091A10: mov eax, dword ptr [edi + 0x94] */ 4408 L_36091A16: 4409 /* test eax, eax */ /* 0x36091A16: test eax, eax */ 4410 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4411 _cf = 0; 4412 _flag_k = FK_TEST; 4413 L_36091A18: 4414 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091A86; /* 0x36091A18: je 0x36091a86 */ 4415 L_36091A1A: 4416 ecx = edi; /* 0x36091A1A: mov ecx, edi */ 4417 L_36091A1C: 4418 RECOMP_ICALL(0x3608F980u); /* 0x36091A1C: call 0x3608f980 */ /* not lifted */ 4419 RECOMP_FLAGS_IN(); 4420 L_36091A21: 4421 ecx = eax; /* 0x36091A21: mov ecx, eax */ 4422 L_36091A23: 4423 RECOMP_ICALL(0x360AB580u); /* 0x36091A23: call 0x360ab580 */ /* not lifted */ 4424 RECOMP_FLAGS_IN(); 4425 L_36091A28: 4426 edx = MEM32(ebp + 0x10); /* 0x36091A28: mov edx, dword ptr [ebp + 0x10] */ 4427 L_36091A2B: 4428 PUSH32(esp, eax); /* 0x36091A2B: push eax */ 4429 L_36091A2C: 4430 eax = MEM32(edi + 0x94); /* 0x36091A2C: mov eax, dword ptr [edi + 0x94] */ 4431 L_36091A32: 4432 ecx = MEM32(eax); /* 0x36091A32: mov ecx, dword ptr [eax] */ 4433 L_36091A34: 4434 PUSH32(esp, 0x3E9u); /* 0x36091A34: push 0x3e9 */ 4435 L_36091A39: 4436 PUSH32(esp, edx); /* 0x36091A39: push edx */ 4437 L_36091A3A: 4438 edx = MEM32(ebp + 0xC); /* 0x36091A3A: mov edx, dword ptr [ebp + 0xc] */ 4439 L_36091A3D: 4440 PUSH32(esp, ecx); /* 0x36091A3D: push ecx */ 4441 L_36091A3E: 4442 PUSH32(esp, edx); /* 0x36091A3E: push edx */ 4443 L_36091A3F: 4444 ecx = ebx; /* 0x36091A3F: mov ecx, ebx */ 4445 L_36091A41: 4446 RECOMP_ICALL(0x360FBF60u); /* 0x36091A41: call 0x360fbf60 */ /* not lifted */ 4447 RECOMP_FLAGS_IN(); 4448 L_36091A46: 4449 MEM32(ebx + 0x54) = 2; /* 0x36091A46: mov dword ptr [ebx + 0x54], 2 */ 4450 L_36091A4D: 4451 PUSH32(esp, eax); /* 0x36091A4D: push eax */ 4452 L_36091A4E: 4453 eax = MEM32(edi + 0x94); /* 0x36091A4E: mov eax, dword ptr [edi + 0x94] */ 4454 L_36091A54: 4455 ecx = MEM32(eax + 0x4); /* 0x36091A54: mov ecx, dword ptr [eax + 4] */ 4456 L_36091A57: 4457 PUSH32(esp, ecx); /* 0x36091A57: push ecx */ 4458 L_36091A58: 4459 ecx = ebx; /* 0x36091A58: mov ecx, ebx */ 4460 L_36091A5A: 4461 RECOMP_ICALL(0x360F8580u); /* 0x36091A5A: call 0x360f8580 */ /* not lifted */ 4462 RECOMP_FLAGS_IN(); 4463 L_36091A5F: 4464 edx = MEM32(edi + 0x94); /* 0x36091A5F: mov edx, dword ptr [edi + 0x94] */ 4465 L_36091A65: 4466 ecx = MEM32(edx + 0xC); /* 0x36091A65: mov ecx, dword ptr [edx + 0xc] */ 4467 L_36091A68: 4468 /* test ecx, ecx */ /* 0x36091A68: test ecx, ecx */ 4469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4470 _cf = 0; 4471 _flag_k = FK_TEST; 4472 L_36091A6A: 4473 MEM32(ebp + (-0x14)) = eax; /* 0x36091A6A: mov dword ptr [ebp - 0x14], eax */ 4474 L_36091A6D: 4475 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091A7B; /* 0x36091A6D: je 0x36091a7b */ 4476 L_36091A6F: 4477 PUSH32(esp, ecx); /* 0x36091A6F: push ecx */ 4478 L_36091A70: 4479 PUSH32(esp, eax); /* 0x36091A70: push eax */ 4480 L_36091A71: 4481 ecx = ebx; /* 0x36091A71: mov ecx, ebx */ 4482 L_36091A73: 4483 RECOMP_ICALL(0x360FB800u); /* 0x36091A73: call 0x360fb800 */ /* not lifted */ 4484 RECOMP_FLAGS_IN(); 4485 L_36091A78: 4486 eax = MEM32(ebp + (-0x14)); /* 0x36091A78: mov eax, dword ptr [ebp - 0x14] */ 4487 L_36091A7B: 4488 PUSH32(esp, eax); /* 0x36091A7B: push eax */ 4489 L_36091A7C: 4490 ecx = ebx; /* 0x36091A7C: mov ecx, ebx */ 4491 L_36091A7E: 4492 RECOMP_ICALL(0x360FB920u); /* 0x36091A7E: call 0x360fb920 */ /* not lifted */ 4493 RECOMP_FLAGS_IN(); 4494 L_36091A83: 4495 { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x36091A83: fstp dword ptr [ebp - 8] */ 4496 L_36091A86: 4497 ecx = edi; /* 0x36091A86: mov ecx, edi */ 4498 L_36091A88: 4499 RECOMP_ICALL(0x3608F980u); /* 0x36091A88: call 0x3608f980 */ /* not lifted */ 4500 RECOMP_FLAGS_IN(); 4501 L_36091A8D: 4502 ecx = eax; /* 0x36091A8D: mov ecx, eax */ 4503 L_36091A8F: 4504 RECOMP_ICALL(0x360AB580u); /* 0x36091A8F: call 0x360ab580 */ /* not lifted */ 4505 RECOMP_FLAGS_IN(); 4506 L_36091A94: 4507 /* test LO8(eax), LO8(eax) */ /* 0x36091A94: test al, al */ 4508 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4509 _cf = 0; 4510 _flag_k = FK_NARROW(FK_TEST, 24); 4511 L_36091A96: 4512 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091AAE; /* 0x36091A96: je 0x36091aae */ 4513 L_36091A98: 4514 eax = MEM32(ebp + 0xC); /* 0x36091A98: mov eax, dword ptr [ebp + 0xc] */ 4515 L_36091A9B: 4516 ecx = MEM32(ebp + 0x10); /* 0x36091A9B: mov ecx, dword ptr [ebp + 0x10] */ 4517 L_36091A9E: 4518 PUSH32(esp, eax); /* 0x36091A9E: push eax */ 4519 L_36091A9F: 4520 PUSH32(esp, ecx); /* 0x36091A9F: push ecx */ 4521 L_36091AA0: 4522 ecx = edi; /* 0x36091AA0: mov ecx, edi */ 4523 L_36091AA2: 4524 RECOMP_ICALL(0x3608F980u); /* 0x36091AA2: call 0x3608f980 */ /* not lifted */ 4525 RECOMP_FLAGS_IN(); 4526 L_36091AA7: 4527 ecx = eax; /* 0x36091AA7: mov ecx, eax */ 4528 L_36091AA9: 4529 RECOMP_ICALL(0x360AB5A0u); /* 0x36091AA9: call 0x360ab5a0 */ /* not lifted */ 4530 RECOMP_FLAGS_IN(); 4531 L_36091AAE: 4532 /* test esi, esi */ /* 0x36091AAE: test esi, esi */ 4533 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 4534 _cf = 0; 4535 _flag_k = FK_TEST; 4536 L_36091AB0: 4537 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091F9C; /* 0x36091AB0: je 0x36091f9c */ 4538 L_36091AB6: 4539 ebx = MEM32(ebp + (-0x4)); /* 0x36091AB6: mov ebx, dword ptr [ebp - 4] */ 4540 L_36091AB9: 4541 ecx = MEM32(esi + 0x174); /* 0x36091AB9: mov ecx, dword ptr [esi + 0x174] */ 4542 L_36091ABF: 4543 edx = ebp + 0x13; /* 0x36091ABF: lea edx, [ebp + 0x13] */ 4544 L_36091AC2: 4545 PUSH32(esp, edx); /* 0x36091AC2: push edx */ 4546 L_36091AC3: 4547 PUSH32(esp, ebx); /* 0x36091AC3: push ebx */ 4548 L_36091AC4: 4549 RECOMP_ICALL(0x36050850u); /* 0x36091AC4: call 0x36050850 */ /* not lifted */ 4550 RECOMP_FLAGS_IN(); 4551 L_36091AC9: 4552 /* test eax, eax */ /* 0x36091AC9: test eax, eax */ 4553 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4554 _cf = 0; 4555 _flag_k = FK_TEST; 4556 L_36091ACB: 4557 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36091AD7; /* 0x36091ACB: jne 0x36091ad7 */ 4558 L_36091ACD: 4559 MEM32(ebp + (-0x4)) = 0x7Fu; /* 0x36091ACD: mov dword ptr [ebp - 4], 0x7f */ 4560 L_36091AD4: 4561 ebx = MEM32(ebp + (-0x4)); /* 0x36091AD4: mov ebx, dword ptr [ebp - 4] */ 4562 L_36091AD7: 4563 eax = MEM32(esi + 0x174); /* 0x36091AD7: mov eax, dword ptr [esi + 0x174] */ 4564 L_36091ADD: 4565 ecx = MEM32(eax + 0x74); /* 0x36091ADD: mov ecx, dword ptr [eax + 0x74] */ 4566 L_36091AE0: 4567 edx = MEM32(0x361710C8); /* 0x36091AE0: mov edx, dword ptr [0x361710c8] */ 4568 L_36091AE6: 4569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x54u); 4570 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4571 eax = eax + 0x54u; /* 0x36091AE6: add eax, 0x54 */ 4572 _flag_k = FK_ADD; 4573 L_36091AE9: 4574 /* cmp ecx, edx */ /* 0x36091AE9: cmp ecx, edx */ 4575 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4576 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4577 _flag_k = FK_CMP; 4578 L_36091AEB: 4579 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091B72; /* 0x36091AEB: je 0x36091b72 */ 4580 L_36091AF1: 4581 /* cmp ecx, MEM32(eax + 0x4) */ /* 0x36091AF1: cmp ecx, dword ptr [eax + 4] */ 4582 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 4583 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4584 _flag_k = FK_CMP; 4585 L_36091AF4: 4586 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36091B72; /* 0x36091AF4: jne 0x36091b72 */ 4587 L_36091AF6: 4588 ecx = esi; /* 0x36091AF6: mov ecx, esi */ 4589 L_36091AF8: 4590 RECOMP_ICALL(0x3606D5A0u); /* 0x36091AF8: call 0x3606d5a0 */ /* not lifted */ 4591 RECOMP_FLAGS_IN(); 4592 L_36091AFD: 4593 ecx = eax; /* 0x36091AFD: mov ecx, eax */ 4594 L_36091AFF: 4595 RECOMP_ICALL(0x36047900u); /* 0x36091AFF: call 0x36047900 */ /* not lifted */ 4596 RECOMP_FLAGS_IN(); 4597 L_36091B04: 4598 ecx = eax; /* 0x36091B04: mov ecx, eax */ 4599 L_36091B06: 4600 RECOMP_ICALL(0x36008320u); /* 0x36091B06: call 0x36008320 */ /* not lifted */ 4601 RECOMP_FLAGS_IN(); 4602 L_36091B0B: 4603 /* cmp eax, 4 */ /* 0x36091B0B: cmp eax, 4 */ 4604 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4606 _flag_k = FK_CMP; 4607 L_36091B0E: 4608 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091B72; /* 0x36091B0E: je 0x36091b72 */ 4609 L_36091B10: 4610 ecx = esi; /* 0x36091B10: mov ecx, esi */ 4611 L_36091B12: 4612 RECOMP_ICALL(0x3606D5A0u); /* 0x36091B12: call 0x3606d5a0 */ /* not lifted */ 4613 RECOMP_FLAGS_IN(); 4614 L_36091B17: 4615 ecx = eax; /* 0x36091B17: mov ecx, eax */ 4616 L_36091B19: 4617 RECOMP_ICALL(0x36047900u); /* 0x36091B19: call 0x36047900 */ /* not lifted */ 4618 RECOMP_FLAGS_IN(); 4619 L_36091B1E: 4620 ecx = eax; /* 0x36091B1E: mov ecx, eax */ 4621 L_36091B20: 4622 RECOMP_ICALL(0x36008320u); /* 0x36091B20: call 0x36008320 */ /* not lifted */ 4623 RECOMP_FLAGS_IN(); 4624 L_36091B25: 4625 /* cmp eax, 8 */ /* 0x36091B25: cmp eax, 8 */ 4626 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 4627 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4628 _flag_k = FK_CMP; 4629 L_36091B28: 4630 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091B72; /* 0x36091B28: je 0x36091b72 */ 4631 L_36091B2A: 4632 SET_LO8(eax, MEM8(esi + 0x1B4)); /* 0x36091B2A: mov al, byte ptr [esi + 0x1b4] */ 4633 L_36091B30: 4634 /* test LO8(eax), LO8(eax) */ /* 0x36091B30: test al, al */ 4635 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4636 _cf = 0; 4637 _flag_k = FK_NARROW(FK_TEST, 24); 4638 L_36091B32: 4639 ecx = MEM32(esi + 0x174); /* 0x36091B32: mov ecx, dword ptr [esi + 0x174] */ 4640 L_36091B38: 4641 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091B57; /* 0x36091B38: je 0x36091b57 */ 4642 L_36091B3A: 4643 eax = MEM32(ecx); /* 0x36091B3A: mov eax, dword ptr [ecx] */ 4644 L_36091B3C: 4645 PUSH32(esp, 0xFFFFFFFFu); /* 0x36091B3C: push -1 */ 4646 L_36091B3E: 4647 PUSH32(esp, 0); /* 0x36091B3E: push 0 */ 4648 L_36091B40: 4649 PUSH32(esp, 1); /* 0x36091B40: push 1 */ 4650 L_36091B42: 4651 PUSH32(esp, 1); /* 0x36091B42: push 1 */ 4652 L_36091B44: 4653 PUSH32(esp, 0); /* 0x36091B44: push 0 */ 4654 L_36091B46: 4655 PUSH32(esp, 1); /* 0x36091B46: push 1 */ 4656 L_36091B48: 4657 PUSH32(esp, 0); /* 0x36091B48: push 0 */ 4658 L_36091B4A: 4659 PUSH32(esp, 0); /* 0x36091B4A: push 0 */ 4660 L_36091B4C: 4661 PUSH32(esp, 0x3F800000u); /* 0x36091B4C: push 0x3f800000 */ 4662 L_36091B51: 4663 PUSH32(esp, ebx); /* 0x36091B51: push ebx */ 4664 L_36091B52: 4665 RECOMP_ICALL(MEM32(eax + 0x14)); /* 0x36091B52: call dword ptr [eax + 0x14] */ 4666 RECOMP_FLAGS_IN(); 4667 L_36091B55: 4668 goto L_36091B72; /* 0x36091B55: jmp 0x36091b72 */ 4669 L_36091B57: 4670 edx = MEM32(ecx); /* 0x36091B57: mov edx, dword ptr [ecx] */ 4671 L_36091B59: 4672 PUSH32(esp, 0xFFFFFFFFu); /* 0x36091B59: push -1 */ 4673 L_36091B5B: 4674 PUSH32(esp, 0); /* 0x36091B5B: push 0 */ 4675 L_36091B5D: 4676 PUSH32(esp, 1); /* 0x36091B5D: push 1 */ 4677 L_36091B5F: 4678 PUSH32(esp, 1); /* 0x36091B5F: push 1 */ 4679 L_36091B61: 4680 PUSH32(esp, 0); /* 0x36091B61: push 0 */ 4681 L_36091B63: 4682 PUSH32(esp, 1); /* 0x36091B63: push 1 */ 4683 L_36091B65: 4684 PUSH32(esp, 0); /* 0x36091B65: push 0 */ 4685 L_36091B67: 4686 PUSH32(esp, 0); /* 0x36091B67: push 0 */ 4687 L_36091B69: 4688 PUSH32(esp, 0x3F000000u); /* 0x36091B69: push 0x3f000000 */ 4689 L_36091B6E: 4690 PUSH32(esp, ebx); /* 0x36091B6E: push ebx */ 4691 L_36091B6F: 4692 RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x36091B6F: call dword ptr [edx + 0x14] */ 4693 RECOMP_FLAGS_IN(); 4694 L_36091B72: 4695 SET_LO8(eax, MEM8(esi + 0x1B4)); /* 0x36091B72: mov al, byte ptr [esi + 0x1b4] */ 4696 L_36091B78: 4697 /* test LO8(eax), LO8(eax) */ /* 0x36091B78: test al, al */ 4698 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4699 _cf = 0; 4700 _flag_k = FK_NARROW(FK_TEST, 24); 4701 L_36091B7A: 4702 ebx = MEM32(0x3616FFB0); /* 0x36091B7A: mov ebx, dword ptr [0x3616ffb0] */ 4703 L_36091B80: 4704 MEM32(ebp + (-0xC)) = 0; /* 0x36091B80: mov dword ptr [ebp - 0xc], 0 */ 4705 L_36091B87: 4706 MEM32(ebp + (-0x4)) = 0x3F800000u; /* 0x36091B87: mov dword ptr [ebp - 4], 0x3f800000 */ 4707 L_36091B8E: 4708 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091C99; /* 0x36091B8E: je 0x36091c99 */ 4709 L_36091B94: 4710 eax = MEM32(esi + 0x170); /* 0x36091B94: mov eax, dword ptr [esi + 0x170] */ 4711 L_36091B9A: 4712 ecx = MEM32(eax + 0x8); /* 0x36091B9A: mov ecx, dword ptr [eax + 8] */ 4713 L_36091B9D: 4714 /* test ecx, ecx */ /* 0x36091B9D: test ecx, ecx */ 4715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4716 _cf = 0; 4717 _flag_k = FK_TEST; 4718 L_36091B9F: 4719 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091C99; /* 0x36091B9F: je 0x36091c99 */ 4720 L_36091BA5: 4721 /* test eax, eax */ /* 0x36091BA5: test eax, eax */ 4722 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4723 _cf = 0; 4724 _flag_k = FK_TEST; 4725 L_36091BA7: 4726 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091DCF; /* 0x36091BA7: je 0x36091dcf */ 4727 L_36091BAD: 4728 PUSH32(esp, 0x29u); /* 0x36091BAD: push 0x29 */ 4729 L_36091BAF: 4730 RECOMP_ICALL(0x36063E80u); /* 0x36091BAF: call 0x36063e80 */ /* not lifted */ 4731 RECOMP_FLAGS_IN(); 4732 L_36091BB4: 4733 MEM32(ebp + (-0xC)) = eax; /* 0x36091BB4: mov dword ptr [ebp - 0xc], eax */ 4734 L_36091BB7: 4735 eax = MEM32(esi + 0x170); /* 0x36091BB7: mov eax, dword ptr [esi + 0x170] */ 4736 L_36091BBD: 4737 eax = MEM32(eax + 0x8); /* 0x36091BBD: mov eax, dword ptr [eax + 8] */ 4738 L_36091BC0: 4739 PUSH32(esp, 0x1Fu); /* 0x36091BC0: push 0x1f */ 4740 L_36091BC2: 4741 ecx = eax + 0xC; /* 0x36091BC2: lea ecx, [eax + 0xc] */ 4742 L_36091BC5: 4743 RECOMP_ICALL(0x3608ABF0u); /* 0x36091BC5: call 0x3608abf0 */ /* not lifted */ 4744 RECOMP_FLAGS_IN(); 4745 L_36091BCA: 4746 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4747 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4748 esp = esp - 0xCu; /* 0x36091BCA: sub esp, 0xc */ 4749 _flag_k = FK_CMP; 4750 L_36091BCD: 4751 ecx = esp; /* 0x36091BCD: mov ecx, esp */ 4752 L_36091BCF: 4753 PUSH32(esp, 1); /* 0x36091BCF: push 1 */ 4754 L_36091BD1: 4755 MEM32(ebp + (-0x14)) = eax; /* 0x36091BD1: mov dword ptr [ebp - 0x14], eax */ 4756 L_36091BD4: 4757 MEM32(ebp + (-0x20)) = 0; /* 0x36091BD4: mov dword ptr [ebp - 0x20], 0 */ 4758 L_36091BDB: 4759 edx = MEM32(ebp + (-0x20)); /* 0x36091BDB: mov edx, dword ptr [ebp - 0x20] */ 4760 L_36091BDE: 4761 MEM32(ecx) = edx; /* 0x36091BDE: mov dword ptr [ecx], edx */ 4762 L_36091BE0: 4763 MEM32(ebp + (-0x1C)) = 0; /* 0x36091BE0: mov dword ptr [ebp - 0x1c], 0 */ 4764 L_36091BE7: 4765 eax = MEM32(ebp + (-0x1C)); /* 0x36091BE7: mov eax, dword ptr [ebp - 0x1c] */ 4766 L_36091BEA: 4767 MEM32(ecx + 0x4) = eax; /* 0x36091BEA: mov dword ptr [ecx + 4], eax */ 4768 L_36091BED: 4769 eax = MEM32(ebp + (-0x8)); /* 0x36091BED: mov eax, dword ptr [ebp - 8] */ 4770 L_36091BF0: 4771 PUSH32(esp, 0x64u); /* 0x36091BF0: push 0x64 */ 4772 L_36091BF2: 4773 PUSH32(esp, eax); /* 0x36091BF2: push eax */ 4774 L_36091BF3: 4775 PUSH32(esp, 0); /* 0x36091BF3: push 0 */ 4776 L_36091BF5: 4777 MEM32(ebp + (-0x18)) = 0; /* 0x36091BF5: mov dword ptr [ebp - 0x18], 0 */ 4778 L_36091BFC: 4779 edx = MEM32(ebp + (-0x18)); /* 0x36091BFC: mov edx, dword ptr [ebp - 0x18] */ 4780 L_36091BFF: 4781 PUSH32(esp, 0x3F800000u); /* 0x36091BFF: push 0x3f800000 */ 4782 L_36091C04: 4783 MEM32(ecx + 0x8) = edx; /* 0x36091C04: mov dword ptr [ecx + 8], edx */ 4784 L_36091C07: 4785 PUSH32(esp, 0); /* 0x36091C07: push 0 */ 4786 L_36091C09: 4787 ecx = esi; /* 0x36091C09: mov ecx, esi */ 4788 L_36091C0B: 4789 RECOMP_ICALL(ebx); /* 0x36091C0B: call ebx */ 4790 RECOMP_FLAGS_IN(); 4791 L_36091C0D: 4792 edx = MEM32(eax); /* 0x36091C0D: mov edx, dword ptr [eax] */ 4793 L_36091C0F: 4794 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4796 esp = esp - 0xCu; /* 0x36091C0F: sub esp, 0xc */ 4797 _flag_k = FK_CMP; 4798 L_36091C12: 4799 ecx = esp; /* 0x36091C12: mov ecx, esp */ 4800 L_36091C14: 4801 MEM32(ecx) = edx; /* 0x36091C14: mov dword ptr [ecx], edx */ 4802 L_36091C16: 4803 edx = MEM32(eax + 0x4); /* 0x36091C16: mov edx, dword ptr [eax + 4] */ 4804 L_36091C19: 4805 eax = MEM32(eax + 0x8); /* 0x36091C19: mov eax, dword ptr [eax + 8] */ 4806 L_36091C1C: 4807 MEM32(ecx + 0x4) = edx; /* 0x36091C1C: mov dword ptr [ecx + 4], edx */ 4808 L_36091C1F: 4809 MEM32(ecx + 0x8) = eax; /* 0x36091C1F: mov dword ptr [ecx + 8], eax */ 4810 L_36091C22: 4811 ecx = MEM32(ebp + (-0x14)); /* 0x36091C22: mov ecx, dword ptr [ebp - 0x14] */ 4812 L_36091C25: 4813 PUSH32(esp, ecx); /* 0x36091C25: push ecx */ 4814 L_36091C26: 4815 RECOMP_ICALL(0x3601C590u); /* 0x36091C26: call 0x3601c590 */ /* not lifted */ 4816 RECOMP_FLAGS_IN(); 4817 L_36091C2B: 4818 ecx = eax; /* 0x36091C2B: mov ecx, eax */ 4819 L_36091C2D: 4820 RECOMP_ICALL(0x3601CBF0u); /* 0x36091C2D: call 0x3601cbf0 */ /* not lifted */ 4821 RECOMP_FLAGS_IN(); 4822 L_36091C32: 4823 ecx = esi; /* 0x36091C32: mov ecx, esi */ 4824 L_36091C34: 4825 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091C34: call dword ptr [0x3616fc54] */ 4826 RECOMP_FLAGS_IN(); 4827 L_36091C3A: 4828 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170854)); /* 0x36091C3A: fcomp dword ptr [0x36170854] */ 4829 fp_pop(); 4830 L_36091C40: 4831 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091C40: fnstsw ax */ 4832 L_36091C42: 4833 /* test HI8(eax), 1 */ /* 0x36091C42: test ah, 1 */ 4834 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4835 _cf = 0; 4836 _flag_k = FK_NARROW(FK_TEST, 24); 4837 L_36091C45: 4838 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091C53; /* 0x36091C45: je 0x36091c53 */ 4839 L_36091C47: 4840 MEM32(ebp + (-0x4)) = 0x3E99999Au; /* 0x36091C47: mov dword ptr [ebp - 4], 0x3e99999a */ 4841 L_36091C4E: 4842 goto L_36091DCF; /* 0x36091C4E: jmp 0x36091dcf */ 4843 L_36091C53: 4844 ecx = esi; /* 0x36091C53: mov ecx, esi */ 4845 L_36091C55: 4846 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091C55: call dword ptr [0x3616fc54] */ 4847 RECOMP_FLAGS_IN(); 4848 L_36091C5B: 4849 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361714E0)); /* 0x36091C5B: fcomp dword ptr [0x361714e0] */ 4850 fp_pop(); 4851 L_36091C61: 4852 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091C61: fnstsw ax */ 4853 L_36091C63: 4854 /* test HI8(eax), 1 */ /* 0x36091C63: test ah, 1 */ 4855 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4856 _cf = 0; 4857 _flag_k = FK_NARROW(FK_TEST, 24); 4858 L_36091C66: 4859 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091C74; /* 0x36091C66: je 0x36091c74 */ 4860 L_36091C68: 4861 MEM32(ebp + (-0x4)) = 0x3ECCCCCDu; /* 0x36091C68: mov dword ptr [ebp - 4], 0x3ecccccd */ 4862 L_36091C6F: 4863 goto L_36091DCF; /* 0x36091C6F: jmp 0x36091dcf */ 4864 L_36091C74: 4865 ecx = esi; /* 0x36091C74: mov ecx, esi */ 4866 L_36091C76: 4867 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091C76: call dword ptr [0x3616fc54] */ 4868 RECOMP_FLAGS_IN(); 4869 L_36091C7C: 4870 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36172B6C)); /* 0x36091C7C: fcomp dword ptr [0x36172b6c] */ 4871 fp_pop(); 4872 L_36091C82: 4873 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091C82: fnstsw ax */ 4874 L_36091C84: 4875 /* test HI8(eax), 1 */ /* 0x36091C84: test ah, 1 */ 4876 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4877 _cf = 0; 4878 _flag_k = FK_NARROW(FK_TEST, 24); 4879 L_36091C87: 4880 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091DCF; /* 0x36091C87: je 0x36091dcf */ 4881 L_36091C8D: 4882 MEM32(ebp + (-0x4)) = 0x3F000000u; /* 0x36091C8D: mov dword ptr [ebp - 4], 0x3f000000 */ 4883 L_36091C94: 4884 goto L_36091DCF; /* 0x36091C94: jmp 0x36091dcf */ 4885 L_36091C99: 4886 ecx = MEM32(ebp + 0xC); /* 0x36091C99: mov ecx, dword ptr [ebp + 0xc] */ 4887 L_36091C9C: 4888 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091C9C: call dword ptr [0x3616fc54] */ 4889 RECOMP_FLAGS_IN(); 4890 L_36091CA2: 4891 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170854)); /* 0x36091CA2: fcomp dword ptr [0x36170854] */ 4892 fp_pop(); 4893 L_36091CA8: 4894 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091CA8: fnstsw ax */ 4895 L_36091CAA: 4896 /* test HI8(eax), 1 */ /* 0x36091CAA: test ah, 1 */ 4897 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4898 _cf = 0; 4899 _flag_k = FK_NARROW(FK_TEST, 24); 4900 L_36091CAD: 4901 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091CB8; /* 0x36091CAD: je 0x36091cb8 */ 4902 L_36091CAF: 4903 MEM32(ebp + (-0x4)) = 0x3E99999Au; /* 0x36091CAF: mov dword ptr [ebp - 4], 0x3e99999a */ 4904 L_36091CB6: 4905 goto L_36091CF4; /* 0x36091CB6: jmp 0x36091cf4 */ 4906 L_36091CB8: 4907 ecx = MEM32(ebp + 0xC); /* 0x36091CB8: mov ecx, dword ptr [ebp + 0xc] */ 4908 L_36091CBB: 4909 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091CBB: call dword ptr [0x3616fc54] */ 4910 RECOMP_FLAGS_IN(); 4911 L_36091CC1: 4912 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361714E0)); /* 0x36091CC1: fcomp dword ptr [0x361714e0] */ 4913 fp_pop(); 4914 L_36091CC7: 4915 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091CC7: fnstsw ax */ 4916 L_36091CC9: 4917 /* test HI8(eax), 1 */ /* 0x36091CC9: test ah, 1 */ 4918 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4919 _cf = 0; 4920 _flag_k = FK_NARROW(FK_TEST, 24); 4921 L_36091CCC: 4922 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091CD7; /* 0x36091CCC: je 0x36091cd7 */ 4923 L_36091CCE: 4924 MEM32(ebp + (-0x4)) = 0x3ECCCCCDu; /* 0x36091CCE: mov dword ptr [ebp - 4], 0x3ecccccd */ 4925 L_36091CD5: 4926 goto L_36091CF4; /* 0x36091CD5: jmp 0x36091cf4 */ 4927 L_36091CD7: 4928 ecx = MEM32(ebp + 0xC); /* 0x36091CD7: mov ecx, dword ptr [ebp + 0xc] */ 4929 L_36091CDA: 4930 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091CDA: call dword ptr [0x3616fc54] */ 4931 RECOMP_FLAGS_IN(); 4932 L_36091CE0: 4933 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36172B6C)); /* 0x36091CE0: fcomp dword ptr [0x36172b6c] */ 4934 fp_pop(); 4935 L_36091CE6: 4936 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091CE6: fnstsw ax */ 4937 L_36091CE8: 4938 /* test HI8(eax), 1 */ /* 0x36091CE8: test ah, 1 */ 4939 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4940 _cf = 0; 4941 _flag_k = FK_NARROW(FK_TEST, 24); 4942 L_36091CEB: 4943 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36091CF4; /* 0x36091CEB: je 0x36091cf4 */ 4944 L_36091CED: 4945 MEM32(ebp + (-0x4)) = 0x3F000000u; /* 0x36091CED: mov dword ptr [ebp - 4], 0x3f000000 */ 4946 L_36091CF4: 4947 edx = MEM32(esi + 0xE4); /* 0x36091CF4: mov edx, dword ptr [esi + 0xe4] */ 4948 L_36091CFA: 4949 ecx = esi + 0xE4; /* 0x36091CFA: lea ecx, [esi + 0xe4] */ 4950 L_36091D00: 4951 PUSH32(esp, 2); /* 0x36091D00: push 2 */ 4952 L_36091D02: 4953 PUSH32(esp, 0x3Bu); /* 0x36091D02: push 0x3b */ 4954 L_36091D04: 4955 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36091D04: call dword ptr [edx + 4] */ 4956 RECOMP_FLAGS_IN(); 4957 L_36091D07: 4958 /* cmp eax, 3 */ /* 0x36091D07: cmp eax, 3 */ 4959 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 4960 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4961 _flag_k = FK_CMP; 4962 L_36091D0A: 4963 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_NE, _cf)) goto L_36091D68; /* 0x36091D0A: jne 0x36091d68 */ 4964 L_36091D0C: 4965 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4966 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4967 esp = esp - 0xCu; /* 0x36091D0C: sub esp, 0xc */ 4968 _flag_k = FK_CMP; 4969 L_36091D0F: 4970 eax = esp; /* 0x36091D0F: mov eax, esp */ 4971 L_36091D11: 4972 PUSH32(esp, 1); /* 0x36091D11: push 1 */ 4973 L_36091D13: 4974 MEM32(ebp + (-0x20)) = 0; /* 0x36091D13: mov dword ptr [ebp - 0x20], 0 */ 4975 L_36091D1A: 4976 ecx = MEM32(ebp + (-0x20)); /* 0x36091D1A: mov ecx, dword ptr [ebp - 0x20] */ 4977 L_36091D1D: 4978 MEM32(eax) = ecx; /* 0x36091D1D: mov dword ptr [eax], ecx */ 4979 L_36091D1F: 4980 MEM32(ebp + (-0x1C)) = 0; /* 0x36091D1F: mov dword ptr [ebp - 0x1c], 0 */ 4981 L_36091D26: 4982 edx = MEM32(ebp + (-0x1C)); /* 0x36091D26: mov edx, dword ptr [ebp - 0x1c] */ 4983 L_36091D29: 4984 MEM32(eax + 0x4) = edx; /* 0x36091D29: mov dword ptr [eax + 4], edx */ 4985 L_36091D2C: 4986 edx = MEM32(ebp + (-0x8)); /* 0x36091D2C: mov edx, dword ptr [ebp - 8] */ 4987 L_36091D2F: 4988 PUSH32(esp, 0x64u); /* 0x36091D2F: push 0x64 */ 4989 L_36091D31: 4990 PUSH32(esp, edx); /* 0x36091D31: push edx */ 4991 L_36091D32: 4992 MEM32(ebp + (-0x18)) = 0; /* 0x36091D32: mov dword ptr [ebp - 0x18], 0 */ 4993 L_36091D39: 4994 ecx = MEM32(ebp + (-0x18)); /* 0x36091D39: mov ecx, dword ptr [ebp - 0x18] */ 4995 L_36091D3C: 4996 MEM32(eax + 0x8) = ecx; /* 0x36091D3C: mov dword ptr [eax + 8], ecx */ 4997 L_36091D3F: 4998 eax = MEM32(ebp + (-0x4)); /* 0x36091D3F: mov eax, dword ptr [ebp - 4] */ 4999 L_36091D42: 5000 PUSH32(esp, 0); /* 0x36091D42: push 0 */ 5001 L_36091D44: 5002 PUSH32(esp, eax); /* 0x36091D44: push eax */ 5003 L_36091D45: 5004 PUSH32(esp, 0); /* 0x36091D45: push 0 */ 5005 L_36091D47: 5006 ecx = esi; /* 0x36091D47: mov ecx, esi */ 5007 L_36091D49: 5008 RECOMP_ICALL(ebx); /* 0x36091D49: call ebx */ 5009 RECOMP_FLAGS_IN(); 5010 L_36091D4B: 5011 edx = MEM32(eax); /* 0x36091D4B: mov edx, dword ptr [eax] */ 5012 L_36091D4D: 5013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5015 esp = esp - 0xCu; /* 0x36091D4D: sub esp, 0xc */ 5016 _flag_k = FK_CMP; 5017 L_36091D50: 5018 ecx = esp; /* 0x36091D50: mov ecx, esp */ 5019 L_36091D52: 5020 MEM32(ecx) = edx; /* 0x36091D52: mov dword ptr [ecx], edx */ 5021 L_36091D54: 5022 edx = MEM32(eax + 0x4); /* 0x36091D54: mov edx, dword ptr [eax + 4] */ 5023 L_36091D57: 5024 eax = MEM32(eax + 0x8); /* 0x36091D57: mov eax, dword ptr [eax + 8] */ 5025 L_36091D5A: 5026 MEM32(ecx + 0x4) = edx; /* 0x36091D5A: mov dword ptr [ecx + 4], edx */ 5027 L_36091D5D: 5028 MEM32(ecx + 0x8) = eax; /* 0x36091D5D: mov dword ptr [ecx + 8], eax */ 5029 L_36091D60: 5030 ecx = MEM32(edi + 0x88); /* 0x36091D60: mov ecx, dword ptr [edi + 0x88] */ 5031 L_36091D66: 5032 goto L_36091DC2; /* 0x36091D66: jmp 0x36091dc2 */ 5033 L_36091D68: 5034 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5035 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5036 esp = esp - 0xCu; /* 0x36091D68: sub esp, 0xc */ 5037 _flag_k = FK_CMP; 5038 L_36091D6B: 5039 edx = esp; /* 0x36091D6B: mov edx, esp */ 5040 L_36091D6D: 5041 PUSH32(esp, 1); /* 0x36091D6D: push 1 */ 5042 L_36091D6F: 5043 MEM32(ebp + (-0x20)) = 0; /* 0x36091D6F: mov dword ptr [ebp - 0x20], 0 */ 5044 L_36091D76: 5045 eax = MEM32(ebp + (-0x20)); /* 0x36091D76: mov eax, dword ptr [ebp - 0x20] */ 5046 L_36091D79: 5047 MEM32(edx) = eax; /* 0x36091D79: mov dword ptr [edx], eax */ 5048 L_36091D7B: 5049 MEM32(ebp + (-0x1C)) = 0; /* 0x36091D7B: mov dword ptr [ebp - 0x1c], 0 */ 5050 L_36091D82: 5051 ecx = MEM32(ebp + (-0x1C)); /* 0x36091D82: mov ecx, dword ptr [ebp - 0x1c] */ 5052 L_36091D85: 5053 MEM32(edx + 0x4) = ecx; /* 0x36091D85: mov dword ptr [edx + 4], ecx */ 5054 L_36091D88: 5055 ecx = MEM32(ebp + (-0x8)); /* 0x36091D88: mov ecx, dword ptr [ebp - 8] */ 5056 L_36091D8B: 5057 PUSH32(esp, 0x64u); /* 0x36091D8B: push 0x64 */ 5058 L_36091D8D: 5059 PUSH32(esp, ecx); /* 0x36091D8D: push ecx */ 5060 L_36091D8E: 5061 MEM32(ebp + (-0x18)) = 0; /* 0x36091D8E: mov dword ptr [ebp - 0x18], 0 */ 5062 L_36091D95: 5063 eax = MEM32(ebp + (-0x18)); /* 0x36091D95: mov eax, dword ptr [ebp - 0x18] */ 5064 L_36091D98: 5065 MEM32(edx + 0x8) = eax; /* 0x36091D98: mov dword ptr [edx + 8], eax */ 5066 L_36091D9B: 5067 edx = MEM32(ebp + (-0x4)); /* 0x36091D9B: mov edx, dword ptr [ebp - 4] */ 5068 L_36091D9E: 5069 PUSH32(esp, 0); /* 0x36091D9E: push 0 */ 5070 L_36091DA0: 5071 PUSH32(esp, edx); /* 0x36091DA0: push edx */ 5072 L_36091DA1: 5073 PUSH32(esp, 0); /* 0x36091DA1: push 0 */ 5074 L_36091DA3: 5075 ecx = esi; /* 0x36091DA3: mov ecx, esi */ 5076 L_36091DA5: 5077 RECOMP_ICALL(ebx); /* 0x36091DA5: call ebx */ 5078 RECOMP_FLAGS_IN(); 5079 L_36091DA7: 5080 edx = MEM32(eax); /* 0x36091DA7: mov edx, dword ptr [eax] */ 5081 L_36091DA9: 5082 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5084 esp = esp - 0xCu; /* 0x36091DA9: sub esp, 0xc */ 5085 _flag_k = FK_CMP; 5086 L_36091DAC: 5087 ecx = esp; /* 0x36091DAC: mov ecx, esp */ 5088 L_36091DAE: 5089 MEM32(ecx) = edx; /* 0x36091DAE: mov dword ptr [ecx], edx */ 5090 L_36091DB0: 5091 edx = MEM32(eax + 0x4); /* 0x36091DB0: mov edx, dword ptr [eax + 4] */ 5092 L_36091DB3: 5093 eax = MEM32(eax + 0x8); /* 0x36091DB3: mov eax, dword ptr [eax + 8] */ 5094 L_36091DB6: 5095 MEM32(ecx + 0x4) = edx; /* 0x36091DB6: mov dword ptr [ecx + 4], edx */ 5096 L_36091DB9: 5097 MEM32(ecx + 0x8) = eax; /* 0x36091DB9: mov dword ptr [ecx + 8], eax */ 5098 L_36091DBC: 5099 ecx = MEM32(edi + 0x8C); /* 0x36091DBC: mov ecx, dword ptr [edi + 0x8c] */ 5100 L_36091DC2: 5101 PUSH32(esp, ecx); /* 0x36091DC2: push ecx */ 5102 L_36091DC3: 5103 RECOMP_ICALL(0x3601C590u); /* 0x36091DC3: call 0x3601c590 */ /* not lifted */ 5104 RECOMP_FLAGS_IN(); 5105 L_36091DC8: 5106 ecx = eax; /* 0x36091DC8: mov ecx, eax */ 5107 L_36091DCA: 5108 RECOMP_ICALL(0x3601CBF0u); /* 0x36091DCA: call 0x3601cbf0 */ /* not lifted */ 5109 RECOMP_FLAGS_IN(); 5110 L_36091DCF: 5111 ecx = edi; /* 0x36091DCF: mov ecx, edi */ 5112 L_36091DD1: 5113 RECOMP_ICALL(0x3608F980u); /* 0x36091DD1: call 0x3608f980 */ /* not lifted */ 5114 RECOMP_FLAGS_IN(); 5115 L_36091DD6: 5116 eax = MEM32(eax + 0x1C); /* 0x36091DD6: mov eax, dword ptr [eax + 0x1c] */ 5117 L_36091DD9: 5118 PUSH32(esp, 0x1Fu); /* 0x36091DD9: push 0x1f */ 5119 L_36091DDB: 5120 ecx = eax + 0x4C; /* 0x36091DDB: lea ecx, [eax + 0x4c] */ 5121 L_36091DDE: 5122 RECOMP_ICALL(0x3608ABF0u); /* 0x36091DDE: call 0x3608abf0 */ /* not lifted */ 5123 RECOMP_FLAGS_IN(); 5124 L_36091DE3: 5125 ecx = edi; /* 0x36091DE3: mov ecx, edi */ 5126 L_36091DE5: 5127 MEM32(ebp + (-0x10)) = eax; /* 0x36091DE5: mov dword ptr [ebp - 0x10], eax */ 5128 L_36091DE8: 5129 RECOMP_ICALL(0x3608F980u); /* 0x36091DE8: call 0x3608f980 */ /* not lifted */ 5130 RECOMP_FLAGS_IN(); 5131 L_36091DED: 5132 ecx = eax; /* 0x36091DED: mov ecx, eax */ 5133 L_36091DEF: 5134 RECOMP_ICALL(0x360AB540u); /* 0x36091DEF: call 0x360ab540 */ /* not lifted */ 5135 RECOMP_FLAGS_IN(); 5136 L_36091DF4: 5137 ecx = MEM32(esi + 0x1B0); /* 0x36091DF4: mov ecx, dword ptr [esi + 0x1b0] */ 5138 L_36091DFA: 5139 MEM32(ebp + (-0x14)) = eax; /* 0x36091DFA: mov dword ptr [ebp - 0x14], eax */ 5140 L_36091DFD: 5141 eax = MEM32(ebp + (-0xC)); /* 0x36091DFD: mov eax, dword ptr [ebp - 0xc] */ 5142 L_36091E00: 5143 /* test eax, eax */ /* 0x36091E00: test eax, eax */ 5144 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5145 _cf = 0; 5146 _flag_k = FK_TEST; 5147 L_36091E02: 5148 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_LE, _cf)) goto L_36091E09; /* 0x36091E02: jle 0x36091e09 */ 5149 L_36091E04: 5150 /* cmp eax, 0x11u */ /* 0x36091E04: cmp eax, 0x11 */ 5151 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x11u); 5152 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5153 _flag_k = FK_CMP; 5154 L_36091E07: 5155 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36091E10; /* 0x36091E07: jl 0x36091e10 */ 5156 L_36091E09: 5157 MEM32(ebp + (-0xC)) = 7; /* 0x36091E09: mov dword ptr [ebp - 0xc], 7 */ 5158 L_36091E10: 5159 edx = ecx + ecx * 4; /* 0x36091E10: lea edx, [ecx + ecx*4] */ 5160 L_36091E13: 5161 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x36091E13: shl edx, 1 */ 5162 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5163 edx = edx << 1u; /* 0x36091E13: shl edx, 1 */ 5164 L_36091E15: 5165 eax = 0x51EB851Fu; /* 0x36091E15: mov eax, 0x51eb851f */ 5166 L_36091E1A: 5167 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36091E1A: imul edx */ 5168 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5169 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5170 L_36091E1C: 5171 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E1C: sar edx, 5 */ 5172 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5173 edx = (uint32_t)((int32_t)edx >> 5u); 5174 L_36091E1F: 5175 eax = edx; /* 0x36091E1F: mov eax, edx */ 5176 L_36091E21: 5177 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E21: shr eax, 0x1f */ 5178 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5179 eax = eax >> 31u; /* 0x36091E21: shr eax, 0x1f */ 5180 L_36091E24: 5181 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5182 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5183 edx = edx + eax; /* 0x36091E24: add edx, eax */ 5184 _flag_k = FK_ADD; 5185 L_36091E26: 5186 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E26: cmp dword ptr [ebp - 0x14], edx */ 5187 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 5188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5189 _flag_k = FK_CMP; 5190 L_36091E29: 5191 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36091E6B; /* 0x36091E29: jl 0x36091e6b */ 5192 L_36091E2B: 5193 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5195 esp = esp - 0xCu; /* 0x36091E2B: sub esp, 0xc */ 5196 _flag_k = FK_CMP; 5197 L_36091E2E: 5198 ecx = esp; /* 0x36091E2E: mov ecx, esp */ 5199 L_36091E30: 5200 MEM32(ebp + (-0x20)) = 0; /* 0x36091E30: mov dword ptr [ebp - 0x20], 0 */ 5201 L_36091E37: 5202 edx = MEM32(ebp + (-0x20)); /* 0x36091E37: mov edx, dword ptr [ebp - 0x20] */ 5203 L_36091E3A: 5204 MEM32(ecx) = edx; /* 0x36091E3A: mov dword ptr [ecx], edx */ 5205 L_36091E3C: 5206 PUSH32(esp, 2); /* 0x36091E3C: push 2 */ 5207 L_36091E3E: 5208 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E3E: mov dword ptr [ebp - 0x1c], 0 */ 5209 L_36091E45: 5210 eax = MEM32(ebp + (-0x1C)); /* 0x36091E45: mov eax, dword ptr [ebp - 0x1c] */ 5211 L_36091E48: 5212 MEM32(ecx + 0x4) = eax; /* 0x36091E48: mov dword ptr [ecx + 4], eax */ 5213 L_36091E4B: 5214 eax = MEM32(ebp + (-0x8)); /* 0x36091E4B: mov eax, dword ptr [ebp - 8] */ 5215 L_36091E4E: 5216 MEM32(ebp + (-0x18)) = 0; /* 0x36091E4E: mov dword ptr [ebp - 0x18], 0 */ 5217 L_36091E55: 5218 edx = MEM32(ebp + (-0x18)); /* 0x36091E55: mov edx, dword ptr [ebp - 0x18] */ 5219 L_36091E58: 5220 PUSH32(esp, 0x64u); /* 0x36091E58: push 0x64 */ 5221 L_36091E5A: 5222 MEM32(ecx + 0x8) = edx; /* 0x36091E5A: mov dword ptr [ecx + 8], edx */ 5223 L_36091E5D: 5224 ecx = MEM32(ebp + (-0xC)); /* 0x36091E5D: mov ecx, dword ptr [ebp - 0xc] */ 5225 L_36091E60: 5226 edx = MEM32(ebp + (-0x4)); /* 0x36091E60: mov edx, dword ptr [ebp - 4] */ 5227 L_36091E63: 5228 PUSH32(esp, eax); /* 0x36091E63: push eax */ 5229 L_36091E64: 5230 PUSH32(esp, ecx); /* 0x36091E64: push ecx */ 5231 L_36091E65: 5232 PUSH32(esp, edx); /* 0x36091E65: push edx */ 5233 L_36091E66: 5234 goto L_36091EFC; /* 0x36091E66: jmp 0x36091efc */ 5235 L_36091E6B: 5236 ecx = ecx + ecx * 4; /* 0x36091E6B: lea ecx, [ecx + ecx*4] */ 5237 L_36091E6E: 5238 eax = 0x51EB851Fu; /* 0x36091E6E: mov eax, 0x51eb851f */ 5239 L_36091E73: 5240 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36091E73: imul ecx */ 5241 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 5242 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 5243 L_36091E75: 5244 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E75: sar edx, 5 */ 5245 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5246 edx = (uint32_t)((int32_t)edx >> 5u); 5247 L_36091E78: 5248 eax = edx; /* 0x36091E78: mov eax, edx */ 5249 L_36091E7A: 5250 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E7A: shr eax, 0x1f */ 5251 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5252 eax = eax >> 31u; /* 0x36091E7A: shr eax, 0x1f */ 5253 L_36091E7D: 5254 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 5255 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5256 edx = edx + eax; /* 0x36091E7D: add edx, eax */ 5257 _flag_k = FK_ADD; 5258 L_36091E7F: 5259 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E7F: cmp dword ptr [ebp - 0x14], edx */ 5260 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 5261 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5262 _flag_k = FK_CMP; 5263 L_36091E82: 5264 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_L, _cf)) goto L_36091EC1; /* 0x36091E82: jl 0x36091ec1 */ 5265 L_36091E84: 5266 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5267 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5268 esp = esp - 0xCu; /* 0x36091E84: sub esp, 0xc */ 5269 _flag_k = FK_CMP; 5270 L_36091E87: 5271 ecx = esp; /* 0x36091E87: mov ecx, esp */ 5272 L_36091E89: 5273 MEM32(ebp + (-0x20)) = 0; /* 0x36091E89: mov dword ptr [ebp - 0x20], 0 */ 5274 L_36091E90: 5275 edx = MEM32(ebp + (-0x20)); /* 0x36091E90: mov edx, dword ptr [ebp - 0x20] */ 5276 L_36091E93: 5277 MEM32(ecx) = edx; /* 0x36091E93: mov dword ptr [ecx], edx */ 5278 L_36091E95: 5279 PUSH32(esp, 1); /* 0x36091E95: push 1 */ 5280 L_36091E97: 5281 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E97: mov dword ptr [ebp - 0x1c], 0 */ 5282 L_36091E9E: 5283 eax = MEM32(ebp + (-0x1C)); /* 0x36091E9E: mov eax, dword ptr [ebp - 0x1c] */ 5284 L_36091EA1: 5285 MEM32(ecx + 0x4) = eax; /* 0x36091EA1: mov dword ptr [ecx + 4], eax */ 5286 L_36091EA4: 5287 eax = MEM32(ebp + (-0x8)); /* 0x36091EA4: mov eax, dword ptr [ebp - 8] */ 5288 L_36091EA7: 5289 MEM32(ebp + (-0x18)) = 0; /* 0x36091EA7: mov dword ptr [ebp - 0x18], 0 */ 5290 L_36091EAE: 5291 edx = MEM32(ebp + (-0x18)); /* 0x36091EAE: mov edx, dword ptr [ebp - 0x18] */ 5292 L_36091EB1: 5293 PUSH32(esp, 0x64u); /* 0x36091EB1: push 0x64 */ 5294 L_36091EB3: 5295 MEM32(ecx + 0x8) = edx; /* 0x36091EB3: mov dword ptr [ecx + 8], edx */ 5296 L_36091EB6: 5297 ecx = MEM32(ebp + (-0xC)); /* 0x36091EB6: mov ecx, dword ptr [ebp - 0xc] */ 5298 L_36091EB9: 5299 edx = MEM32(ebp + (-0x4)); /* 0x36091EB9: mov edx, dword ptr [ebp - 4] */ 5300 L_36091EBC: 5301 PUSH32(esp, eax); /* 0x36091EBC: push eax */ 5302 L_36091EBD: 5303 PUSH32(esp, ecx); /* 0x36091EBD: push ecx */ 5304 L_36091EBE: 5305 PUSH32(esp, edx); /* 0x36091EBE: push edx */ 5306 L_36091EBF: 5307 goto L_36091EFC; /* 0x36091EBF: jmp 0x36091efc */ 5308 L_36091EC1: 5309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5311 esp = esp - 0xCu; /* 0x36091EC1: sub esp, 0xc */ 5312 _flag_k = FK_CMP; 5313 L_36091EC4: 5314 edx = esp; /* 0x36091EC4: mov edx, esp */ 5315 L_36091EC6: 5316 MEM32(ebp + (-0x20)) = 0; /* 0x36091EC6: mov dword ptr [ebp - 0x20], 0 */ 5317 L_36091ECD: 5318 eax = MEM32(ebp + (-0x20)); /* 0x36091ECD: mov eax, dword ptr [ebp - 0x20] */ 5319 L_36091ED0: 5320 MEM32(edx) = eax; /* 0x36091ED0: mov dword ptr [edx], eax */ 5321 L_36091ED2: 5322 PUSH32(esp, 0); /* 0x36091ED2: push 0 */ 5323 L_36091ED4: 5324 MEM32(ebp + (-0x1C)) = 0; /* 0x36091ED4: mov dword ptr [ebp - 0x1c], 0 */ 5325 L_36091EDB: 5326 ecx = MEM32(ebp + (-0x1C)); /* 0x36091EDB: mov ecx, dword ptr [ebp - 0x1c] */ 5327 L_36091EDE: 5328 MEM32(edx + 0x4) = ecx; /* 0x36091EDE: mov dword ptr [edx + 4], ecx */ 5329 L_36091EE1: 5330 ecx = MEM32(ebp + (-0x8)); /* 0x36091EE1: mov ecx, dword ptr [ebp - 8] */ 5331 L_36091EE4: 5332 MEM32(ebp + (-0x18)) = 0; /* 0x36091EE4: mov dword ptr [ebp - 0x18], 0 */ 5333 L_36091EEB: 5334 eax = MEM32(ebp + (-0x18)); /* 0x36091EEB: mov eax, dword ptr [ebp - 0x18] */ 5335 L_36091EEE: 5336 PUSH32(esp, 0x64u); /* 0x36091EEE: push 0x64 */ 5337 L_36091EF0: 5338 MEM32(edx + 0x8) = eax; /* 0x36091EF0: mov dword ptr [edx + 8], eax */ 5339 L_36091EF3: 5340 edx = MEM32(ebp + (-0xC)); /* 0x36091EF3: mov edx, dword ptr [ebp - 0xc] */ 5341 L_36091EF6: 5342 eax = MEM32(ebp + (-0x4)); /* 0x36091EF6: mov eax, dword ptr [ebp - 4] */ 5343 L_36091EF9: 5344 PUSH32(esp, ecx); /* 0x36091EF9: push ecx */ 5345 L_36091EFA: 5346 PUSH32(esp, edx); /* 0x36091EFA: push edx */ 5347 L_36091EFB: 5348 PUSH32(esp, eax); /* 0x36091EFB: push eax */ 5349 L_36091EFC: 5350 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 5351 L_36091EFE: 5352 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 5353 L_36091F00: 5354 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 5355 RECOMP_FLAGS_IN(); 5356 L_36091F02: 5357 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 5358 L_36091F04: 5359 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5361 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 5362 _flag_k = FK_CMP; 5363 L_36091F07: 5364 ecx = esp; /* 0x36091F07: mov ecx, esp */ 5365 L_36091F09: 5366 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 5367 L_36091F0B: 5368 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 5369 L_36091F0E: 5370 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 5371 L_36091F11: 5372 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 5373 L_36091F14: 5374 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 5375 L_36091F17: 5376 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 5377 L_36091F1A: 5378 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 5379 L_36091F1B: 5380 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 5381 RECOMP_FLAGS_IN(); 5382 L_36091F20: 5383 ecx = eax; /* 0x36091F20: mov ecx, eax */ 5384 L_36091F22: 5385 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 5386 RECOMP_FLAGS_IN(); 5387 L_36091F27: 5388 ecx = edi; /* 0x36091F27: mov ecx, edi */ 5389 L_36091F29: 5390 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 5391 L_36091F30: 5392 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 5393 L_36091F37: 5394 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 5395 L_36091F3E: 5396 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 5397 RECOMP_FLAGS_IN(); 5398 L_36091F43: 5399 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 5400 L_36091F46: 5401 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 5402 L_36091F49: 5403 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 5404 L_36091F4C: 5405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5407 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 5408 _flag_k = FK_CMP; 5409 L_36091F4F: 5410 edx = esp; /* 0x36091F4F: mov edx, esp */ 5411 L_36091F51: 5412 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 5413 L_36091F53: 5414 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 5415 L_36091F55: 5416 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 5417 L_36091F57: 5418 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 5419 L_36091F59: 5420 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 5421 L_36091F5C: 5422 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 5423 L_36091F5E: 5424 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 5425 L_36091F61: 5426 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 5427 L_36091F64: 5428 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 5429 L_36091F69: 5430 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 5431 L_36091F6B: 5432 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 5433 L_36091F6E: 5434 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 5435 RECOMP_FLAGS_IN(); 5436 L_36091F70: 5437 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 5438 L_36091F72: 5439 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 5440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5441 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 5442 _flag_k = FK_CMP; 5443 L_36091F75: 5444 ecx = esp; /* 0x36091F75: mov ecx, esp */ 5445 L_36091F77: 5446 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 5447 L_36091F79: 5448 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 5449 L_36091F7C: 5450 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 5451 L_36091F7F: 5452 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 5453 L_36091F82: 5454 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 5455 L_36091F85: 5456 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 5457 L_36091F87: 5458 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 5459 L_36091F8A: 5460 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 5461 RECOMP_FLAGS_IN(); 5462 L_36091F8F: 5463 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 5464 L_36091F90: 5465 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 5466 RECOMP_FLAGS_IN(); 5467 L_36091F95: 5468 ecx = eax; /* 0x36091F95: mov ecx, eax */ 5469 L_36091F97: 5470 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 5471 RECOMP_FLAGS_IN(); 5472 L_36091F9C: 5473 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 5474 L_36091F9D: 5475 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 5476 L_36091F9E: 5477 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 5478 L_36091F9F: 5479 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 5480 L_36091FA1: 5481 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 5482 L_36091FA2: 5483 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 5484 _ljump: 5485 switch (_itail_tgt) { 5486 case 0x360918A0u: goto L_360918A0; 5487 case 0x360918A1u: goto L_360918A1; 5488 case 0x360918A3u: goto L_360918A3; 5489 case 0x360918A6u: goto L_360918A6; 5490 case 0x360918A7u: goto L_360918A7; 5491 case 0x360918A8u: goto L_360918A8; 5492 case 0x360918ABu: goto L_360918AB; 5493 case 0x360918ADu: goto L_360918AD; 5494 case 0x360918AEu: goto L_360918AE; 5495 case 0x360918B0u: goto L_360918B0; 5496 case 0x360918B6u: goto L_360918B6; 5497 case 0x360918B9u: goto L_360918B9; 5498 case 0x360918BBu: goto L_360918BB; 5499 case 0x360918C1u: goto L_360918C1; 5500 case 0x360918C6u: goto L_360918C6; 5501 case 0x360918C8u: goto L_360918C8; 5502 case 0x360918CEu: goto L_360918CE; 5503 case 0x360918D0u: goto L_360918D0; 5504 case 0x360918D2u: goto L_360918D2; 5505 case 0x360918D9u: goto L_360918D9; 5506 case 0x360918DFu: goto L_360918DF; 5507 case 0x360918E1u: goto L_360918E1; 5508 case 0x360918E4u: goto L_360918E4; 5509 case 0x360918E5u: goto L_360918E5; 5510 case 0x360918E6u: goto L_360918E6; 5511 case 0x360918E7u: goto L_360918E7; 5512 case 0x360918E9u: goto L_360918E9; 5513 case 0x360918EEu: goto L_360918EE; 5514 case 0x360918F4u: goto L_360918F4; 5515 case 0x360918F7u: goto L_360918F7; 5516 case 0x360918F9u: goto L_360918F9; 5517 case 0x360918FBu: goto L_360918FB; 5518 case 0x360918FCu: goto L_360918FC; 5519 case 0x360918FDu: goto L_360918FD; 5520 case 0x360918FFu: goto L_360918FF; 5521 case 0x36091904u: goto L_36091904; 5522 case 0x36091907u: goto L_36091907; 5523 case 0x36091909u: goto L_36091909; 5524 case 0x3609190Eu: goto L_3609190E; 5525 case 0x36091913u: goto L_36091913; 5526 case 0x36091915u: goto L_36091915; 5527 case 0x36091916u: goto L_36091916; 5528 case 0x3609191Bu: goto L_3609191B; 5529 case 0x3609191Eu: goto L_3609191E; 5530 case 0x36091920u: goto L_36091920; 5531 case 0x36091925u: goto L_36091925; 5532 case 0x3609192Bu: goto L_3609192B; 5533 case 0x3609192Du: goto L_3609192D; 5534 case 0x36091930u: goto L_36091930; 5535 case 0x36091937u: goto L_36091937; 5536 case 0x3609193Du: goto L_3609193D; 5537 case 0x36091940u: goto L_36091940; 5538 case 0x36091943u: goto L_36091943; 5539 case 0x36091945u: goto L_36091945; 5540 case 0x3609194Cu: goto L_3609194C; 5541 case 0x36091953u: goto L_36091953; 5542 case 0x36091955u: goto L_36091955; 5543 case 0x3609195Cu: goto L_3609195C; 5544 case 0x3609195Eu: goto L_3609195E; 5545 case 0x36091965u: goto L_36091965; 5546 case 0x36091967u: goto L_36091967; 5547 case 0x3609196Eu: goto L_3609196E; 5548 case 0x36091970u: goto L_36091970; 5549 case 0x36091977u: goto L_36091977; 5550 case 0x36091979u: goto L_36091979; 5551 case 0x3609197Bu: goto L_3609197B; 5552 case 0x36091981u: goto L_36091981; 5553 case 0x36091984u: goto L_36091984; 5554 case 0x36091986u: goto L_36091986; 5555 case 0x36091988u: goto L_36091988; 5556 case 0x3609198Au: goto L_3609198A; 5557 case 0x3609198Fu: goto L_3609198F; 5558 case 0x36091995u: goto L_36091995; 5559 case 0x3609199Cu: goto L_3609199C; 5560 case 0x3609199Eu: goto L_3609199E; 5561 case 0x360919A5u: goto L_360919A5; 5562 case 0x360919ABu: goto L_360919AB; 5563 case 0x360919B2u: goto L_360919B2; 5564 case 0x360919B5u: goto L_360919B5; 5565 case 0x360919B8u: goto L_360919B8; 5566 case 0x360919BAu: goto L_360919BA; 5567 case 0x360919BBu: goto L_360919BB; 5568 case 0x360919BCu: goto L_360919BC; 5569 case 0x360919C1u: goto L_360919C1; 5570 case 0x360919C2u: goto L_360919C2; 5571 case 0x360919C4u: goto L_360919C4; 5572 case 0x360919C9u: goto L_360919C9; 5573 case 0x360919CBu: goto L_360919CB; 5574 case 0x360919CEu: goto L_360919CE; 5575 case 0x360919D3u: goto L_360919D3; 5576 case 0x360919D5u: goto L_360919D5; 5577 case 0x360919DAu: goto L_360919DA; 5578 case 0x360919DCu: goto L_360919DC; 5579 case 0x360919DEu: goto L_360919DE; 5580 case 0x360919E1u: goto L_360919E1; 5581 case 0x360919E8u: goto L_360919E8; 5582 case 0x360919EEu: goto L_360919EE; 5583 case 0x360919F1u: goto L_360919F1; 5584 case 0x360919F2u: goto L_360919F2; 5585 case 0x360919F3u: goto L_360919F3; 5586 case 0x360919F5u: goto L_360919F5; 5587 case 0x360919FAu: goto L_360919FA; 5588 case 0x36091A00u: goto L_36091A00; 5589 case 0x36091A03u: goto L_36091A03; 5590 case 0x36091A05u: goto L_36091A05; 5591 case 0x36091A07u: goto L_36091A07; 5592 case 0x36091A08u: goto L_36091A08; 5593 case 0x36091A09u: goto L_36091A09; 5594 case 0x36091A0Bu: goto L_36091A0B; 5595 case 0x36091A10u: goto L_36091A10; 5596 case 0x36091A16u: goto L_36091A16; 5597 case 0x36091A18u: goto L_36091A18; 5598 case 0x36091A1Au: goto L_36091A1A; 5599 case 0x36091A1Cu: goto L_36091A1C; 5600 case 0x36091A21u: goto L_36091A21; 5601 case 0x36091A23u: goto L_36091A23; 5602 case 0x36091A28u: goto L_36091A28; 5603 case 0x36091A2Bu: goto L_36091A2B; 5604 case 0x36091A2Cu: goto L_36091A2C; 5605 case 0x36091A32u: goto L_36091A32; 5606 case 0x36091A34u: goto L_36091A34; 5607 case 0x36091A39u: goto L_36091A39; 5608 case 0x36091A3Au: goto L_36091A3A; 5609 case 0x36091A3Du: goto L_36091A3D; 5610 case 0x36091A3Eu: goto L_36091A3E; 5611 case 0x36091A3Fu: goto L_36091A3F; 5612 case 0x36091A41u: goto L_36091A41; 5613 case 0x36091A46u: goto L_36091A46; 5614 case 0x36091A4Du: goto L_36091A4D; 5615 case 0x36091A4Eu: goto L_36091A4E; 5616 case 0x36091A54u: goto L_36091A54; 5617 case 0x36091A57u: goto L_36091A57; 5618 case 0x36091A58u: goto L_36091A58; 5619 case 0x36091A5Au: goto L_36091A5A; 5620 case 0x36091A5Fu: goto L_36091A5F; 5621 case 0x36091A65u: goto L_36091A65; 5622 case 0x36091A68u: goto L_36091A68; 5623 case 0x36091A6Au: goto L_36091A6A; 5624 case 0x36091A6Du: goto L_36091A6D; 5625 case 0x36091A6Fu: goto L_36091A6F; 5626 case 0x36091A70u: goto L_36091A70; 5627 case 0x36091A71u: goto L_36091A71; 5628 case 0x36091A73u: goto L_36091A73; 5629 case 0x36091A78u: goto L_36091A78; 5630 case 0x36091A7Bu: goto L_36091A7B; 5631 case 0x36091A7Cu: goto L_36091A7C; 5632 case 0x36091A7Eu: goto L_36091A7E; 5633 case 0x36091A83u: goto L_36091A83; 5634 case 0x36091A86u: goto L_36091A86; 5635 case 0x36091A88u: goto L_36091A88; 5636 case 0x36091A8Du: goto L_36091A8D; 5637 case 0x36091A8Fu: goto L_36091A8F; 5638 case 0x36091A94u: goto L_36091A94; 5639 case 0x36091A96u: goto L_36091A96; 5640 case 0x36091A98u: goto L_36091A98; 5641 case 0x36091A9Bu: goto L_36091A9B; 5642 case 0x36091A9Eu: goto L_36091A9E; 5643 case 0x36091A9Fu: goto L_36091A9F; 5644 case 0x36091AA0u: goto L_36091AA0; 5645 case 0x36091AA2u: goto L_36091AA2; 5646 case 0x36091AA7u: goto L_36091AA7; 5647 case 0x36091AA9u: goto L_36091AA9; 5648 case 0x36091AAEu: goto L_36091AAE; 5649 case 0x36091AB0u: goto L_36091AB0; 5650 case 0x36091AB6u: goto L_36091AB6; 5651 case 0x36091AB9u: goto L_36091AB9; 5652 case 0x36091ABFu: goto L_36091ABF; 5653 case 0x36091AC2u: goto L_36091AC2; 5654 case 0x36091AC3u: goto L_36091AC3; 5655 case 0x36091AC4u: goto L_36091AC4; 5656 case 0x36091AC9u: goto L_36091AC9; 5657 case 0x36091ACBu: goto L_36091ACB; 5658 case 0x36091ACDu: goto L_36091ACD; 5659 case 0x36091AD4u: goto L_36091AD4; 5660 case 0x36091AD7u: goto L_36091AD7; 5661 case 0x36091ADDu: goto L_36091ADD; 5662 case 0x36091AE0u: goto L_36091AE0; 5663 case 0x36091AE6u: goto L_36091AE6; 5664 case 0x36091AE9u: goto L_36091AE9; 5665 case 0x36091AEBu: goto L_36091AEB; 5666 case 0x36091AF1u: goto L_36091AF1; 5667 case 0x36091AF4u: goto L_36091AF4; 5668 case 0x36091AF6u: goto L_36091AF6; 5669 case 0x36091AF8u: goto L_36091AF8; 5670 case 0x36091AFDu: goto L_36091AFD; 5671 case 0x36091AFFu: goto L_36091AFF; 5672 case 0x36091B04u: goto L_36091B04; 5673 case 0x36091B06u: goto L_36091B06; 5674 case 0x36091B0Bu: goto L_36091B0B; 5675 case 0x36091B0Eu: goto L_36091B0E; 5676 case 0x36091B10u: goto L_36091B10; 5677 case 0x36091B12u: goto L_36091B12; 5678 case 0x36091B17u: goto L_36091B17; 5679 case 0x36091B19u: goto L_36091B19; 5680 case 0x36091B1Eu: goto L_36091B1E; 5681 case 0x36091B20u: goto L_36091B20; 5682 case 0x36091B25u: goto L_36091B25; 5683 case 0x36091B28u: goto L_36091B28; 5684 case 0x36091B2Au: goto L_36091B2A; 5685 case 0x36091B30u: goto L_36091B30; 5686 case 0x36091B32u: goto L_36091B32; 5687 case 0x36091B38u: goto L_36091B38; 5688 case 0x36091B3Au: goto L_36091B3A; 5689 case 0x36091B3Cu: goto L_36091B3C; 5690 case 0x36091B3Eu: goto L_36091B3E; 5691 case 0x36091B40u: goto L_36091B40; 5692 case 0x36091B42u: goto L_36091B42; 5693 case 0x36091B44u: goto L_36091B44; 5694 case 0x36091B46u: goto L_36091B46; 5695 case 0x36091B48u: goto L_36091B48; 5696 case 0x36091B4Au: goto L_36091B4A; 5697 case 0x36091B4Cu: goto L_36091B4C; 5698 case 0x36091B51u: goto L_36091B51; 5699 case 0x36091B52u: goto L_36091B52; 5700 case 0x36091B55u: goto L_36091B55; 5701 case 0x36091B57u: goto L_36091B57; 5702 case 0x36091B59u: goto L_36091B59; 5703 case 0x36091B5Bu: goto L_36091B5B; 5704 case 0x36091B5Du: goto L_36091B5D; 5705 case 0x36091B5Fu: goto L_36091B5F; 5706 case 0x36091B61u: goto L_36091B61; 5707 case 0x36091B63u: goto L_36091B63; 5708 case 0x36091B65u: goto L_36091B65; 5709 case 0x36091B67u: goto L_36091B67; 5710 case 0x36091B69u: goto L_36091B69; 5711 case 0x36091B6Eu: goto L_36091B6E; 5712 case 0x36091B6Fu: goto L_36091B6F; 5713 case 0x36091B72u: goto L_36091B72; 5714 case 0x36091B78u: goto L_36091B78; 5715 case 0x36091B7Au: goto L_36091B7A; 5716 case 0x36091B80u: goto L_36091B80; 5717 case 0x36091B87u: goto L_36091B87; 5718 case 0x36091B8Eu: goto L_36091B8E; 5719 case 0x36091B94u: goto L_36091B94; 5720 case 0x36091B9Au: goto L_36091B9A; 5721 case 0x36091B9Du: goto L_36091B9D; 5722 case 0x36091B9Fu: goto L_36091B9F; 5723 case 0x36091BA5u: goto L_36091BA5; 5724 case 0x36091BA7u: goto L_36091BA7; 5725 case 0x36091BADu: goto L_36091BAD; 5726 case 0x36091BAFu: goto L_36091BAF; 5727 case 0x36091BB4u: goto L_36091BB4; 5728 case 0x36091BB7u: goto L_36091BB7; 5729 case 0x36091BBDu: goto L_36091BBD; 5730 case 0x36091BC0u: goto L_36091BC0; 5731 case 0x36091BC2u: goto L_36091BC2; 5732 case 0x36091BC5u: goto L_36091BC5; 5733 case 0x36091BCAu: goto L_36091BCA; 5734 case 0x36091BCDu: goto L_36091BCD; 5735 case 0x36091BCFu: goto L_36091BCF; 5736 case 0x36091BD1u: goto L_36091BD1; 5737 case 0x36091BD4u: goto L_36091BD4; 5738 case 0x36091BDBu: goto L_36091BDB; 5739 case 0x36091BDEu: goto L_36091BDE; 5740 case 0x36091BE0u: goto L_36091BE0; 5741 case 0x36091BE7u: goto L_36091BE7; 5742 case 0x36091BEAu: goto L_36091BEA; 5743 case 0x36091BEDu: goto L_36091BED; 5744 case 0x36091BF0u: goto L_36091BF0; 5745 case 0x36091BF2u: goto L_36091BF2; 5746 case 0x36091BF3u: goto L_36091BF3; 5747 case 0x36091BF5u: goto L_36091BF5; 5748 case 0x36091BFCu: goto L_36091BFC; 5749 case 0x36091BFFu: goto L_36091BFF; 5750 case 0x36091C04u: goto L_36091C04; 5751 case 0x36091C07u: goto L_36091C07; 5752 case 0x36091C09u: goto L_36091C09; 5753 case 0x36091C0Bu: goto L_36091C0B; 5754 case 0x36091C0Du: goto L_36091C0D; 5755 case 0x36091C0Fu: goto L_36091C0F; 5756 case 0x36091C12u: goto L_36091C12; 5757 case 0x36091C14u: goto L_36091C14; 5758 case 0x36091C16u: goto L_36091C16; 5759 case 0x36091C19u: goto L_36091C19; 5760 case 0x36091C1Cu: goto L_36091C1C; 5761 case 0x36091C1Fu: goto L_36091C1F; 5762 case 0x36091C22u: goto L_36091C22; 5763 case 0x36091C25u: goto L_36091C25; 5764 case 0x36091C26u: goto L_36091C26; 5765 case 0x36091C2Bu: goto L_36091C2B; 5766 case 0x36091C2Du: goto L_36091C2D; 5767 case 0x36091C32u: goto L_36091C32; 5768 case 0x36091C34u: goto L_36091C34; 5769 case 0x36091C3Au: goto L_36091C3A; 5770 case 0x36091C40u: goto L_36091C40; 5771 case 0x36091C42u: goto L_36091C42; 5772 case 0x36091C45u: goto L_36091C45; 5773 case 0x36091C47u: goto L_36091C47; 5774 case 0x36091C4Eu: goto L_36091C4E; 5775 case 0x36091C53u: goto L_36091C53; 5776 case 0x36091C55u: goto L_36091C55; 5777 case 0x36091C5Bu: goto L_36091C5B; 5778 case 0x36091C61u: goto L_36091C61; 5779 case 0x36091C63u: goto L_36091C63; 5780 case 0x36091C66u: goto L_36091C66; 5781 case 0x36091C68u: goto L_36091C68; 5782 case 0x36091C6Fu: goto L_36091C6F; 5783 case 0x36091C74u: goto L_36091C74; 5784 case 0x36091C76u: goto L_36091C76; 5785 case 0x36091C7Cu: goto L_36091C7C; 5786 case 0x36091C82u: goto L_36091C82; 5787 case 0x36091C84u: goto L_36091C84; 5788 case 0x36091C87u: goto L_36091C87; 5789 case 0x36091C8Du: goto L_36091C8D; 5790 case 0x36091C94u: goto L_36091C94; 5791 case 0x36091C99u: goto L_36091C99; 5792 case 0x36091C9Cu: goto L_36091C9C; 5793 case 0x36091CA2u: goto L_36091CA2; 5794 case 0x36091CA8u: goto L_36091CA8; 5795 case 0x36091CAAu: goto L_36091CAA; 5796 case 0x36091CADu: goto L_36091CAD; 5797 case 0x36091CAFu: goto L_36091CAF; 5798 case 0x36091CB6u: goto L_36091CB6; 5799 case 0x36091CB8u: goto L_36091CB8; 5800 case 0x36091CBBu: goto L_36091CBB; 5801 case 0x36091CC1u: goto L_36091CC1; 5802 case 0x36091CC7u: goto L_36091CC7; 5803 case 0x36091CC9u: goto L_36091CC9; 5804 case 0x36091CCCu: goto L_36091CCC; 5805 case 0x36091CCEu: goto L_36091CCE; 5806 case 0x36091CD5u: goto L_36091CD5; 5807 case 0x36091CD7u: goto L_36091CD7; 5808 case 0x36091CDAu: goto L_36091CDA; 5809 case 0x36091CE0u: goto L_36091CE0; 5810 case 0x36091CE6u: goto L_36091CE6; 5811 case 0x36091CE8u: goto L_36091CE8; 5812 case 0x36091CEBu: goto L_36091CEB; 5813 case 0x36091CEDu: goto L_36091CED; 5814 case 0x36091CF4u: goto L_36091CF4; 5815 case 0x36091CFAu: goto L_36091CFA; 5816 case 0x36091D00u: goto L_36091D00; 5817 case 0x36091D02u: goto L_36091D02; 5818 case 0x36091D04u: goto L_36091D04; 5819 case 0x36091D07u: goto L_36091D07; 5820 case 0x36091D0Au: goto L_36091D0A; 5821 case 0x36091D0Cu: goto L_36091D0C; 5822 case 0x36091D0Fu: goto L_36091D0F; 5823 case 0x36091D11u: goto L_36091D11; 5824 case 0x36091D13u: goto L_36091D13; 5825 case 0x36091D1Au: goto L_36091D1A; 5826 case 0x36091D1Du: goto L_36091D1D; 5827 case 0x36091D1Fu: goto L_36091D1F; 5828 case 0x36091D26u: goto L_36091D26; 5829 case 0x36091D29u: goto L_36091D29; 5830 case 0x36091D2Cu: goto L_36091D2C; 5831 case 0x36091D2Fu: goto L_36091D2F; 5832 case 0x36091D31u: goto L_36091D31; 5833 case 0x36091D32u: goto L_36091D32; 5834 case 0x36091D39u: goto L_36091D39; 5835 case 0x36091D3Cu: goto L_36091D3C; 5836 case 0x36091D3Fu: goto L_36091D3F; 5837 case 0x36091D42u: goto L_36091D42; 5838 case 0x36091D44u: goto L_36091D44; 5839 case 0x36091D45u: goto L_36091D45; 5840 case 0x36091D47u: goto L_36091D47; 5841 case 0x36091D49u: goto L_36091D49; 5842 case 0x36091D4Bu: goto L_36091D4B; 5843 case 0x36091D4Du: goto L_36091D4D; 5844 case 0x36091D50u: goto L_36091D50; 5845 case 0x36091D52u: goto L_36091D52; 5846 case 0x36091D54u: goto L_36091D54; 5847 case 0x36091D57u: goto L_36091D57; 5848 case 0x36091D5Au: goto L_36091D5A; 5849 case 0x36091D5Du: goto L_36091D5D; 5850 case 0x36091D60u: goto L_36091D60; 5851 case 0x36091D66u: goto L_36091D66; 5852 case 0x36091D68u: goto L_36091D68; 5853 case 0x36091D6Bu: goto L_36091D6B; 5854 case 0x36091D6Du: goto L_36091D6D; 5855 case 0x36091D6Fu: goto L_36091D6F; 5856 case 0x36091D76u: goto L_36091D76; 5857 case 0x36091D79u: goto L_36091D79; 5858 case 0x36091D7Bu: goto L_36091D7B; 5859 case 0x36091D82u: goto L_36091D82; 5860 case 0x36091D85u: goto L_36091D85; 5861 case 0x36091D88u: goto L_36091D88; 5862 case 0x36091D8Bu: goto L_36091D8B; 5863 case 0x36091D8Du: goto L_36091D8D; 5864 case 0x36091D8Eu: goto L_36091D8E; 5865 case 0x36091D95u: goto L_36091D95; 5866 case 0x36091D98u: goto L_36091D98; 5867 case 0x36091D9Bu: goto L_36091D9B; 5868 case 0x36091D9Eu: goto L_36091D9E; 5869 case 0x36091DA0u: goto L_36091DA0; 5870 case 0x36091DA1u: goto L_36091DA1; 5871 case 0x36091DA3u: goto L_36091DA3; 5872 case 0x36091DA5u: goto L_36091DA5; 5873 case 0x36091DA7u: goto L_36091DA7; 5874 case 0x36091DA9u: goto L_36091DA9; 5875 case 0x36091DACu: goto L_36091DAC; 5876 case 0x36091DAEu: goto L_36091DAE; 5877 case 0x36091DB0u: goto L_36091DB0; 5878 case 0x36091DB3u: goto L_36091DB3; 5879 case 0x36091DB6u: goto L_36091DB6; 5880 case 0x36091DB9u: goto L_36091DB9; 5881 case 0x36091DBCu: goto L_36091DBC; 5882 case 0x36091DC2u: goto L_36091DC2; 5883 case 0x36091DC3u: goto L_36091DC3; 5884 case 0x36091DC8u: goto L_36091DC8; 5885 case 0x36091DCAu: goto L_36091DCA; 5886 case 0x36091DCFu: goto L_36091DCF; 5887 case 0x36091DD1u: goto L_36091DD1; 5888 case 0x36091DD6u: goto L_36091DD6; 5889 case 0x36091DD9u: goto L_36091DD9; 5890 case 0x36091DDBu: goto L_36091DDB; 5891 case 0x36091DDEu: goto L_36091DDE; 5892 case 0x36091DE3u: goto L_36091DE3; 5893 case 0x36091DE5u: goto L_36091DE5; 5894 case 0x36091DE8u: goto L_36091DE8; 5895 case 0x36091DEDu: goto L_36091DED; 5896 case 0x36091DEFu: goto L_36091DEF; 5897 case 0x36091DF4u: goto L_36091DF4; 5898 case 0x36091DFAu: goto L_36091DFA; 5899 case 0x36091DFDu: goto L_36091DFD; 5900 case 0x36091E00u: goto L_36091E00; 5901 case 0x36091E02u: goto L_36091E02; 5902 case 0x36091E04u: goto L_36091E04; 5903 case 0x36091E07u: goto L_36091E07; 5904 case 0x36091E09u: goto L_36091E09; 5905 case 0x36091E10u: goto L_36091E10; 5906 case 0x36091E13u: goto L_36091E13; 5907 case 0x36091E15u: goto L_36091E15; 5908 case 0x36091E1Au: goto L_36091E1A; 5909 case 0x36091E1Cu: goto L_36091E1C; 5910 case 0x36091E1Fu: goto L_36091E1F; 5911 case 0x36091E21u: goto L_36091E21; 5912 case 0x36091E24u: goto L_36091E24; 5913 case 0x36091E26u: goto L_36091E26; 5914 case 0x36091E29u: goto L_36091E29; 5915 case 0x36091E2Bu: goto L_36091E2B; 5916 case 0x36091E2Eu: goto L_36091E2E; 5917 case 0x36091E30u: goto L_36091E30; 5918 case 0x36091E37u: goto L_36091E37; 5919 case 0x36091E3Au: goto L_36091E3A; 5920 case 0x36091E3Cu: goto L_36091E3C; 5921 case 0x36091E3Eu: goto L_36091E3E; 5922 case 0x36091E45u: goto L_36091E45; 5923 case 0x36091E48u: goto L_36091E48; 5924 case 0x36091E4Bu: goto L_36091E4B; 5925 case 0x36091E4Eu: goto L_36091E4E; 5926 case 0x36091E55u: goto L_36091E55; 5927 case 0x36091E58u: goto L_36091E58; 5928 case 0x36091E5Au: goto L_36091E5A; 5929 case 0x36091E5Du: goto L_36091E5D; 5930 case 0x36091E60u: goto L_36091E60; 5931 case 0x36091E63u: goto L_36091E63; 5932 case 0x36091E64u: goto L_36091E64; 5933 case 0x36091E65u: goto L_36091E65; 5934 case 0x36091E66u: goto L_36091E66; 5935 case 0x36091E6Bu: goto L_36091E6B; 5936 case 0x36091E6Eu: goto L_36091E6E; 5937 case 0x36091E73u: goto L_36091E73; 5938 case 0x36091E75u: goto L_36091E75; 5939 case 0x36091E78u: goto L_36091E78; 5940 case 0x36091E7Au: goto L_36091E7A; 5941 case 0x36091E7Du: goto L_36091E7D; 5942 case 0x36091E7Fu: goto L_36091E7F; 5943 case 0x36091E82u: goto L_36091E82; 5944 case 0x36091E84u: goto L_36091E84; 5945 case 0x36091E87u: goto L_36091E87; 5946 case 0x36091E89u: goto L_36091E89; 5947 case 0x36091E90u: goto L_36091E90; 5948 case 0x36091E93u: goto L_36091E93; 5949 case 0x36091E95u: goto L_36091E95; 5950 case 0x36091E97u: goto L_36091E97; 5951 case 0x36091E9Eu: goto L_36091E9E; 5952 case 0x36091EA1u: goto L_36091EA1; 5953 case 0x36091EA4u: goto L_36091EA4; 5954 case 0x36091EA7u: goto L_36091EA7; 5955 case 0x36091EAEu: goto L_36091EAE; 5956 case 0x36091EB1u: goto L_36091EB1; 5957 case 0x36091EB3u: goto L_36091EB3; 5958 case 0x36091EB6u: goto L_36091EB6; 5959 case 0x36091EB9u: goto L_36091EB9; 5960 case 0x36091EBCu: goto L_36091EBC; 5961 case 0x36091EBDu: goto L_36091EBD; 5962 case 0x36091EBEu: goto L_36091EBE; 5963 case 0x36091EBFu: goto L_36091EBF; 5964 case 0x36091EC1u: goto L_36091EC1; 5965 case 0x36091EC4u: goto L_36091EC4; 5966 case 0x36091EC6u: goto L_36091EC6; 5967 case 0x36091ECDu: goto L_36091ECD; 5968 case 0x36091ED0u: goto L_36091ED0; 5969 case 0x36091ED2u: goto L_36091ED2; 5970 case 0x36091ED4u: goto L_36091ED4; 5971 case 0x36091EDBu: goto L_36091EDB; 5972 case 0x36091EDEu: goto L_36091EDE; 5973 case 0x36091EE1u: goto L_36091EE1; 5974 case 0x36091EE4u: goto L_36091EE4; 5975 case 0x36091EEBu: goto L_36091EEB; 5976 case 0x36091EEEu: goto L_36091EEE; 5977 case 0x36091EF0u: goto L_36091EF0; 5978 case 0x36091EF3u: goto L_36091EF3; 5979 case 0x36091EF6u: goto L_36091EF6; 5980 case 0x36091EF9u: goto L_36091EF9; 5981 case 0x36091EFAu: goto L_36091EFA; 5982 case 0x36091EFBu: goto L_36091EFB; 5983 case 0x36091EFCu: goto L_36091EFC; 5984 case 0x36091EFEu: goto L_36091EFE; 5985 case 0x36091F00u: goto L_36091F00; 5986 case 0x36091F02u: goto L_36091F02; 5987 case 0x36091F04u: goto L_36091F04; 5988 case 0x36091F07u: goto L_36091F07; 5989 case 0x36091F09u: goto L_36091F09; 5990 case 0x36091F0Bu: goto L_36091F0B; 5991 case 0x36091F0Eu: goto L_36091F0E; 5992 case 0x36091F11u: goto L_36091F11; 5993 case 0x36091F14u: goto L_36091F14; 5994 case 0x36091F17u: goto L_36091F17; 5995 case 0x36091F1Au: goto L_36091F1A; 5996 case 0x36091F1Bu: goto L_36091F1B; 5997 case 0x36091F20u: goto L_36091F20; 5998 case 0x36091F22u: goto L_36091F22; 5999 case 0x36091F27u: goto L_36091F27; 6000 case 0x36091F29u: goto L_36091F29; 6001 case 0x36091F30u: goto L_36091F30; 6002 case 0x36091F37u: goto L_36091F37; 6003 case 0x36091F3Eu: goto L_36091F3E; 6004 case 0x36091F43u: goto L_36091F43; 6005 case 0x36091F46u: goto L_36091F46; 6006 case 0x36091F49u: goto L_36091F49; 6007 case 0x36091F4Cu: goto L_36091F4C; 6008 case 0x36091F4Fu: goto L_36091F4F; 6009 case 0x36091F51u: goto L_36091F51; 6010 case 0x36091F53u: goto L_36091F53; 6011 case 0x36091F55u: goto L_36091F55; 6012 case 0x36091F57u: goto L_36091F57; 6013 case 0x36091F59u: goto L_36091F59; 6014 case 0x36091F5Cu: goto L_36091F5C; 6015 case 0x36091F5Eu: goto L_36091F5E; 6016 case 0x36091F61u: goto L_36091F61; 6017 case 0x36091F64u: goto L_36091F64; 6018 case 0x36091F69u: goto L_36091F69; 6019 case 0x36091F6Bu: goto L_36091F6B; 6020 case 0x36091F6Eu: goto L_36091F6E; 6021 case 0x36091F70u: goto L_36091F70; 6022 case 0x36091F72u: goto L_36091F72; 6023 case 0x36091F75u: goto L_36091F75; 6024 case 0x36091F77u: goto L_36091F77; 6025 case 0x36091F79u: goto L_36091F79; 6026 case 0x36091F7Cu: goto L_36091F7C; 6027 case 0x36091F7Fu: goto L_36091F7F; 6028 case 0x36091F82u: goto L_36091F82; 6029 case 0x36091F85u: goto L_36091F85; 6030 case 0x36091F87u: goto L_36091F87; 6031 case 0x36091F8Au: goto L_36091F8A; 6032 case 0x36091F8Fu: goto L_36091F8F; 6033 case 0x36091F90u: goto L_36091F90; 6034 case 0x36091F95u: goto L_36091F95; 6035 case 0x36091F97u: goto L_36091F97; 6036 case 0x36091F9Cu: goto L_36091F9C; 6037 case 0x36091F9Du: goto L_36091F9D; 6038 case 0x36091F9Eu: goto L_36091F9E; 6039 case 0x36091F9Fu: goto L_36091F9F; 6040 case 0x36091FA1u: goto L_36091FA1; 6041 case 0x36091FA2u: goto L_36091FA2; 6042 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 6043 } 6044 RECOMP_REGS_OUT(); 6045 } 6046 6047 void sub_36091BFC(void) { 6048 int _fpu_cmp = 0; 6049 uint32_t _cf = 0; 6050 int _df = 1; 6051 uint32_t _flag_k = FK_NONE; 6052 uint32_t _flag_a = 0, _flag_b = 0; 6053 uint32_t _itail_tgt = 0; 6054 RECOMP_REGS_LOCALS 6055 RECOMP_ENTER(0x36091BFCu); 6056 6057 L_36091BFC: 6058 edx = MEM32(ebp + (-0x18)); /* 0x36091BFC: mov edx, dword ptr [ebp - 0x18] */ 6059 PUSH32(esp, 0x3F800000u); /* 0x36091BFF: push 0x3f800000 */ 6060 MEM32(ecx + 0x8) = edx; /* 0x36091C04: mov dword ptr [ecx + 8], edx */ 6061 PUSH32(esp, 0); /* 0x36091C07: push 0 */ 6062 ecx = esi; /* 0x36091C09: mov ecx, esi */ 6063 RECOMP_ICALL(ebx); /* 0x36091C0B: call ebx */ 6064 RECOMP_FLAGS_IN(); 6065 edx = MEM32(eax); /* 0x36091C0D: mov edx, dword ptr [eax] */ 6066 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6068 esp = esp - 0xCu; /* 0x36091C0F: sub esp, 0xc */ 6069 _flag_k = FK_CMP; 6070 ecx = esp; /* 0x36091C12: mov ecx, esp */ 6071 MEM32(ecx) = edx; /* 0x36091C14: mov dword ptr [ecx], edx */ 6072 edx = MEM32(eax + 0x4); /* 0x36091C16: mov edx, dword ptr [eax + 4] */ 6073 eax = MEM32(eax + 0x8); /* 0x36091C19: mov eax, dword ptr [eax + 8] */ 6074 MEM32(ecx + 0x4) = edx; /* 0x36091C1C: mov dword ptr [ecx + 4], edx */ 6075 MEM32(ecx + 0x8) = eax; /* 0x36091C1F: mov dword ptr [ecx + 8], eax */ 6076 ecx = MEM32(ebp + (-0x14)); /* 0x36091C22: mov ecx, dword ptr [ebp - 0x14] */ 6077 PUSH32(esp, ecx); /* 0x36091C25: push ecx */ 6078 RECOMP_ICALL(0x3601C590u); /* 0x36091C26: call 0x3601c590 */ /* not lifted */ 6079 RECOMP_FLAGS_IN(); 6080 ecx = eax; /* 0x36091C2B: mov ecx, eax */ 6081 RECOMP_ICALL(0x3601CBF0u); /* 0x36091C2D: call 0x3601cbf0 */ /* not lifted */ 6082 RECOMP_FLAGS_IN(); 6083 ecx = esi; /* 0x36091C32: mov ecx, esi */ 6084 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091C34: call dword ptr [0x3616fc54] */ 6085 RECOMP_FLAGS_IN(); 6086 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36170854)); /* 0x36091C3A: fcomp dword ptr [0x36170854] */ 6087 fp_pop(); 6088 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091C40: fnstsw ax */ 6089 /* test HI8(eax), 1 */ /* 0x36091C42: test ah, 1 */ 6090 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6091 _cf = 0; 6092 _flag_k = FK_NARROW(FK_TEST, 24); 6093 if (TEST_Z(_flag_a, _flag_b)) goto L_36091C53; /* 0x36091C45: je 0x36091c53 */ 6094 L_36091C47: 6095 MEM32(ebp + (-0x4)) = 0x3E99999Au; /* 0x36091C47: mov dword ptr [ebp - 4], 0x3e99999a */ 6096 goto L_36091DCF; /* 0x36091C4E: jmp 0x36091dcf */ 6097 L_36091C53: 6098 ecx = esi; /* 0x36091C53: mov ecx, esi */ 6099 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091C55: call dword ptr [0x3616fc54] */ 6100 RECOMP_FLAGS_IN(); 6101 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x361714E0)); /* 0x36091C5B: fcomp dword ptr [0x361714e0] */ 6102 fp_pop(); 6103 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091C61: fnstsw ax */ 6104 /* test HI8(eax), 1 */ /* 0x36091C63: test ah, 1 */ 6105 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6106 _cf = 0; 6107 _flag_k = FK_NARROW(FK_TEST, 24); 6108 if (TEST_Z(_flag_a, _flag_b)) goto L_36091C74; /* 0x36091C66: je 0x36091c74 */ 6109 L_36091C68: 6110 MEM32(ebp + (-0x4)) = 0x3ECCCCCDu; /* 0x36091C68: mov dword ptr [ebp - 4], 0x3ecccccd */ 6111 goto L_36091DCF; /* 0x36091C6F: jmp 0x36091dcf */ 6112 L_36091C74: 6113 ecx = esi; /* 0x36091C74: mov ecx, esi */ 6114 RECOMP_ICALL(MEM32(0x3616FC54)); /* 0x36091C76: call dword ptr [0x3616fc54] */ 6115 RECOMP_FLAGS_IN(); 6116 _fpu_cmp = FPU_CMP(_st[0], (double)*(float*)ADDR(0x36172B6C)); /* 0x36091C7C: fcomp dword ptr [0x36172b6c] */ 6117 fp_pop(); 6118 eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x36091C82: fnstsw ax */ 6119 /* test HI8(eax), 1 */ /* 0x36091C84: test ah, 1 */ 6120 _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 6121 _cf = 0; 6122 _flag_k = FK_NARROW(FK_TEST, 24); 6123 if (TEST_Z(_flag_a, _flag_b)) goto L_36091DCF; /* 0x36091C87: je 0x36091dcf */ 6124 L_36091C8D: 6125 MEM32(ebp + (-0x4)) = 0x3F000000u; /* 0x36091C8D: mov dword ptr [ebp - 4], 0x3f000000 */ 6126 goto L_36091DCF; /* 0x36091C94: jmp 0x36091dcf */ 6127 L_36091DCF: 6128 ecx = edi; /* 0x36091DCF: mov ecx, edi */ 6129 RECOMP_ICALL(0x3608F980u); /* 0x36091DD1: call 0x3608f980 */ /* not lifted */ 6130 RECOMP_FLAGS_IN(); 6131 eax = MEM32(eax + 0x1C); /* 0x36091DD6: mov eax, dword ptr [eax + 0x1c] */ 6132 PUSH32(esp, 0x1Fu); /* 0x36091DD9: push 0x1f */ 6133 ecx = eax + 0x4C; /* 0x36091DDB: lea ecx, [eax + 0x4c] */ 6134 RECOMP_ICALL(0x3608ABF0u); /* 0x36091DDE: call 0x3608abf0 */ /* not lifted */ 6135 RECOMP_FLAGS_IN(); 6136 ecx = edi; /* 0x36091DE3: mov ecx, edi */ 6137 MEM32(ebp + (-0x10)) = eax; /* 0x36091DE5: mov dword ptr [ebp - 0x10], eax */ 6138 RECOMP_ICALL(0x3608F980u); /* 0x36091DE8: call 0x3608f980 */ /* not lifted */ 6139 RECOMP_FLAGS_IN(); 6140 ecx = eax; /* 0x36091DED: mov ecx, eax */ 6141 RECOMP_ICALL(0x360AB540u); /* 0x36091DEF: call 0x360ab540 */ /* not lifted */ 6142 RECOMP_FLAGS_IN(); 6143 ecx = MEM32(esi + 0x1B0); /* 0x36091DF4: mov ecx, dword ptr [esi + 0x1b0] */ 6144 MEM32(ebp + (-0x14)) = eax; /* 0x36091DFA: mov dword ptr [ebp - 0x14], eax */ 6145 eax = MEM32(ebp + (-0xC)); /* 0x36091DFD: mov eax, dword ptr [ebp - 0xc] */ 6146 /* test eax, eax */ /* 0x36091E00: test eax, eax */ 6147 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6148 _cf = 0; 6149 _flag_k = FK_TEST; 6150 if (TEST_LE(_flag_a, _flag_b)) goto L_36091E09; /* 0x36091E02: jle 0x36091e09 */ 6151 L_36091E04: 6152 /* cmp eax, 0x11u */ /* 0x36091E04: cmp eax, 0x11 */ 6153 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x11u); 6154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6155 _flag_k = FK_CMP; 6156 if (CMP_L(_flag_a, _flag_b)) goto L_36091E10; /* 0x36091E07: jl 0x36091e10 */ 6157 L_36091E09: 6158 MEM32(ebp + (-0xC)) = 7; /* 0x36091E09: mov dword ptr [ebp - 0xc], 7 */ 6159 L_36091E10: 6160 edx = ecx + ecx * 4; /* 0x36091E10: lea edx, [ecx + ecx*4] */ 6161 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x36091E13: shl edx, 1 */ 6162 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6163 edx = edx << 1u; /* 0x36091E13: shl edx, 1 */ 6164 eax = 0x51EB851Fu; /* 0x36091E15: mov eax, 0x51eb851f */ 6165 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36091E1A: imul edx */ 6166 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6167 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6168 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E1C: sar edx, 5 */ 6169 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6170 edx = (uint32_t)((int32_t)edx >> 5u); 6171 eax = edx; /* 0x36091E1F: mov eax, edx */ 6172 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E21: shr eax, 0x1f */ 6173 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6174 eax = eax >> 31u; /* 0x36091E21: shr eax, 0x1f */ 6175 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6176 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6177 edx = edx + eax; /* 0x36091E24: add edx, eax */ 6178 _flag_k = FK_ADD; 6179 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E26: cmp dword ptr [ebp - 0x14], edx */ 6180 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 6181 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6182 _flag_k = FK_CMP; 6183 if (CMP_L(_flag_a, _flag_b)) goto L_36091E6B; /* 0x36091E29: jl 0x36091e6b */ 6184 L_36091E2B: 6185 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6187 esp = esp - 0xCu; /* 0x36091E2B: sub esp, 0xc */ 6188 _flag_k = FK_CMP; 6189 ecx = esp; /* 0x36091E2E: mov ecx, esp */ 6190 MEM32(ebp + (-0x20)) = 0; /* 0x36091E30: mov dword ptr [ebp - 0x20], 0 */ 6191 edx = MEM32(ebp + (-0x20)); /* 0x36091E37: mov edx, dword ptr [ebp - 0x20] */ 6192 MEM32(ecx) = edx; /* 0x36091E3A: mov dword ptr [ecx], edx */ 6193 PUSH32(esp, 2); /* 0x36091E3C: push 2 */ 6194 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E3E: mov dword ptr [ebp - 0x1c], 0 */ 6195 eax = MEM32(ebp + (-0x1C)); /* 0x36091E45: mov eax, dword ptr [ebp - 0x1c] */ 6196 MEM32(ecx + 0x4) = eax; /* 0x36091E48: mov dword ptr [ecx + 4], eax */ 6197 eax = MEM32(ebp + (-0x8)); /* 0x36091E4B: mov eax, dword ptr [ebp - 8] */ 6198 MEM32(ebp + (-0x18)) = 0; /* 0x36091E4E: mov dword ptr [ebp - 0x18], 0 */ 6199 edx = MEM32(ebp + (-0x18)); /* 0x36091E55: mov edx, dword ptr [ebp - 0x18] */ 6200 PUSH32(esp, 0x64u); /* 0x36091E58: push 0x64 */ 6201 MEM32(ecx + 0x8) = edx; /* 0x36091E5A: mov dword ptr [ecx + 8], edx */ 6202 ecx = MEM32(ebp + (-0xC)); /* 0x36091E5D: mov ecx, dword ptr [ebp - 0xc] */ 6203 edx = MEM32(ebp + (-0x4)); /* 0x36091E60: mov edx, dword ptr [ebp - 4] */ 6204 PUSH32(esp, eax); /* 0x36091E63: push eax */ 6205 PUSH32(esp, ecx); /* 0x36091E64: push ecx */ 6206 PUSH32(esp, edx); /* 0x36091E65: push edx */ 6207 goto L_36091EFC; /* 0x36091E66: jmp 0x36091efc */ 6208 L_36091E6B: 6209 ecx = ecx + ecx * 4; /* 0x36091E6B: lea ecx, [ecx + ecx*4] */ 6210 eax = 0x51EB851Fu; /* 0x36091E6E: mov eax, 0x51eb851f */ 6211 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36091E73: imul ecx */ 6212 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6213 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6214 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E75: sar edx, 5 */ 6215 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6216 edx = (uint32_t)((int32_t)edx >> 5u); 6217 eax = edx; /* 0x36091E78: mov eax, edx */ 6218 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E7A: shr eax, 0x1f */ 6219 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6220 eax = eax >> 31u; /* 0x36091E7A: shr eax, 0x1f */ 6221 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6222 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6223 edx = edx + eax; /* 0x36091E7D: add edx, eax */ 6224 _flag_k = FK_ADD; 6225 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E7F: cmp dword ptr [ebp - 0x14], edx */ 6226 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 6227 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6228 _flag_k = FK_CMP; 6229 if (CMP_L(_flag_a, _flag_b)) goto L_36091EC1; /* 0x36091E82: jl 0x36091ec1 */ 6230 L_36091E84: 6231 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6233 esp = esp - 0xCu; /* 0x36091E84: sub esp, 0xc */ 6234 _flag_k = FK_CMP; 6235 ecx = esp; /* 0x36091E87: mov ecx, esp */ 6236 MEM32(ebp + (-0x20)) = 0; /* 0x36091E89: mov dword ptr [ebp - 0x20], 0 */ 6237 edx = MEM32(ebp + (-0x20)); /* 0x36091E90: mov edx, dword ptr [ebp - 0x20] */ 6238 MEM32(ecx) = edx; /* 0x36091E93: mov dword ptr [ecx], edx */ 6239 PUSH32(esp, 1); /* 0x36091E95: push 1 */ 6240 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E97: mov dword ptr [ebp - 0x1c], 0 */ 6241 eax = MEM32(ebp + (-0x1C)); /* 0x36091E9E: mov eax, dword ptr [ebp - 0x1c] */ 6242 MEM32(ecx + 0x4) = eax; /* 0x36091EA1: mov dword ptr [ecx + 4], eax */ 6243 eax = MEM32(ebp + (-0x8)); /* 0x36091EA4: mov eax, dword ptr [ebp - 8] */ 6244 MEM32(ebp + (-0x18)) = 0; /* 0x36091EA7: mov dword ptr [ebp - 0x18], 0 */ 6245 edx = MEM32(ebp + (-0x18)); /* 0x36091EAE: mov edx, dword ptr [ebp - 0x18] */ 6246 PUSH32(esp, 0x64u); /* 0x36091EB1: push 0x64 */ 6247 MEM32(ecx + 0x8) = edx; /* 0x36091EB3: mov dword ptr [ecx + 8], edx */ 6248 ecx = MEM32(ebp + (-0xC)); /* 0x36091EB6: mov ecx, dword ptr [ebp - 0xc] */ 6249 edx = MEM32(ebp + (-0x4)); /* 0x36091EB9: mov edx, dword ptr [ebp - 4] */ 6250 PUSH32(esp, eax); /* 0x36091EBC: push eax */ 6251 PUSH32(esp, ecx); /* 0x36091EBD: push ecx */ 6252 PUSH32(esp, edx); /* 0x36091EBE: push edx */ 6253 goto L_36091EFC; /* 0x36091EBF: jmp 0x36091efc */ 6254 L_36091EC1: 6255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6257 esp = esp - 0xCu; /* 0x36091EC1: sub esp, 0xc */ 6258 _flag_k = FK_CMP; 6259 edx = esp; /* 0x36091EC4: mov edx, esp */ 6260 MEM32(ebp + (-0x20)) = 0; /* 0x36091EC6: mov dword ptr [ebp - 0x20], 0 */ 6261 eax = MEM32(ebp + (-0x20)); /* 0x36091ECD: mov eax, dword ptr [ebp - 0x20] */ 6262 MEM32(edx) = eax; /* 0x36091ED0: mov dword ptr [edx], eax */ 6263 PUSH32(esp, 0); /* 0x36091ED2: push 0 */ 6264 MEM32(ebp + (-0x1C)) = 0; /* 0x36091ED4: mov dword ptr [ebp - 0x1c], 0 */ 6265 ecx = MEM32(ebp + (-0x1C)); /* 0x36091EDB: mov ecx, dword ptr [ebp - 0x1c] */ 6266 MEM32(edx + 0x4) = ecx; /* 0x36091EDE: mov dword ptr [edx + 4], ecx */ 6267 ecx = MEM32(ebp + (-0x8)); /* 0x36091EE1: mov ecx, dword ptr [ebp - 8] */ 6268 MEM32(ebp + (-0x18)) = 0; /* 0x36091EE4: mov dword ptr [ebp - 0x18], 0 */ 6269 eax = MEM32(ebp + (-0x18)); /* 0x36091EEB: mov eax, dword ptr [ebp - 0x18] */ 6270 PUSH32(esp, 0x64u); /* 0x36091EEE: push 0x64 */ 6271 MEM32(edx + 0x8) = eax; /* 0x36091EF0: mov dword ptr [edx + 8], eax */ 6272 edx = MEM32(ebp + (-0xC)); /* 0x36091EF3: mov edx, dword ptr [ebp - 0xc] */ 6273 eax = MEM32(ebp + (-0x4)); /* 0x36091EF6: mov eax, dword ptr [ebp - 4] */ 6274 PUSH32(esp, ecx); /* 0x36091EF9: push ecx */ 6275 PUSH32(esp, edx); /* 0x36091EFA: push edx */ 6276 PUSH32(esp, eax); /* 0x36091EFB: push eax */ 6277 L_36091EFC: 6278 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 6279 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 6280 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 6281 RECOMP_FLAGS_IN(); 6282 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 6283 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6285 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 6286 _flag_k = FK_CMP; 6287 ecx = esp; /* 0x36091F07: mov ecx, esp */ 6288 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 6289 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 6290 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 6291 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 6292 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 6293 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 6294 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 6295 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 6296 RECOMP_FLAGS_IN(); 6297 ecx = eax; /* 0x36091F20: mov ecx, eax */ 6298 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 6299 RECOMP_FLAGS_IN(); 6300 ecx = edi; /* 0x36091F27: mov ecx, edi */ 6301 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 6302 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 6303 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 6304 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 6305 RECOMP_FLAGS_IN(); 6306 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 6307 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 6308 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 6309 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6310 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6311 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 6312 _flag_k = FK_CMP; 6313 edx = esp; /* 0x36091F4F: mov edx, esp */ 6314 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 6315 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 6316 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 6317 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 6318 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 6319 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 6320 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 6321 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 6322 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 6323 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 6324 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 6325 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 6326 RECOMP_FLAGS_IN(); 6327 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 6328 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6329 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6330 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 6331 _flag_k = FK_CMP; 6332 ecx = esp; /* 0x36091F75: mov ecx, esp */ 6333 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 6334 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 6335 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 6336 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 6337 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 6338 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 6339 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 6340 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 6341 RECOMP_FLAGS_IN(); 6342 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 6343 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 6344 RECOMP_FLAGS_IN(); 6345 ecx = eax; /* 0x36091F95: mov ecx, eax */ 6346 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 6347 RECOMP_FLAGS_IN(); 6348 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 6349 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 6350 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 6351 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 6352 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 6353 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 6354 RECOMP_REGS_OUT(); 6355 } 6356 6357 void sub_36091D39(void) { 6358 int _fpu_cmp = 0; 6359 uint32_t _cf = 0; 6360 int _df = 1; 6361 uint32_t _flag_k = FK_NONE; 6362 uint32_t _flag_a = 0, _flag_b = 0; 6363 uint32_t _itail_tgt = 0; 6364 RECOMP_REGS_LOCALS 6365 RECOMP_ENTER(0x36091D39u); 6366 6367 L_36091D39: 6368 ecx = MEM32(ebp + (-0x18)); /* 0x36091D39: mov ecx, dword ptr [ebp - 0x18] */ 6369 MEM32(eax + 0x8) = ecx; /* 0x36091D3C: mov dword ptr [eax + 8], ecx */ 6370 eax = MEM32(ebp + (-0x4)); /* 0x36091D3F: mov eax, dword ptr [ebp - 4] */ 6371 PUSH32(esp, 0); /* 0x36091D42: push 0 */ 6372 PUSH32(esp, eax); /* 0x36091D44: push eax */ 6373 PUSH32(esp, 0); /* 0x36091D45: push 0 */ 6374 ecx = esi; /* 0x36091D47: mov ecx, esi */ 6375 RECOMP_ICALL(ebx); /* 0x36091D49: call ebx */ 6376 RECOMP_FLAGS_IN(); 6377 edx = MEM32(eax); /* 0x36091D4B: mov edx, dword ptr [eax] */ 6378 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6379 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6380 esp = esp - 0xCu; /* 0x36091D4D: sub esp, 0xc */ 6381 _flag_k = FK_CMP; 6382 ecx = esp; /* 0x36091D50: mov ecx, esp */ 6383 MEM32(ecx) = edx; /* 0x36091D52: mov dword ptr [ecx], edx */ 6384 edx = MEM32(eax + 0x4); /* 0x36091D54: mov edx, dword ptr [eax + 4] */ 6385 eax = MEM32(eax + 0x8); /* 0x36091D57: mov eax, dword ptr [eax + 8] */ 6386 MEM32(ecx + 0x4) = edx; /* 0x36091D5A: mov dword ptr [ecx + 4], edx */ 6387 MEM32(ecx + 0x8) = eax; /* 0x36091D5D: mov dword ptr [ecx + 8], eax */ 6388 ecx = MEM32(edi + 0x88); /* 0x36091D60: mov ecx, dword ptr [edi + 0x88] */ 6389 goto L_36091DC2; /* 0x36091D66: jmp 0x36091dc2 */ 6390 L_36091DC2: 6391 PUSH32(esp, ecx); /* 0x36091DC2: push ecx */ 6392 RECOMP_ICALL(0x3601C590u); /* 0x36091DC3: call 0x3601c590 */ /* not lifted */ 6393 RECOMP_FLAGS_IN(); 6394 ecx = eax; /* 0x36091DC8: mov ecx, eax */ 6395 RECOMP_ICALL(0x3601CBF0u); /* 0x36091DCA: call 0x3601cbf0 */ /* not lifted */ 6396 RECOMP_FLAGS_IN(); 6397 ecx = edi; /* 0x36091DCF: mov ecx, edi */ 6398 RECOMP_ICALL(0x3608F980u); /* 0x36091DD1: call 0x3608f980 */ /* not lifted */ 6399 RECOMP_FLAGS_IN(); 6400 eax = MEM32(eax + 0x1C); /* 0x36091DD6: mov eax, dword ptr [eax + 0x1c] */ 6401 PUSH32(esp, 0x1Fu); /* 0x36091DD9: push 0x1f */ 6402 ecx = eax + 0x4C; /* 0x36091DDB: lea ecx, [eax + 0x4c] */ 6403 RECOMP_ICALL(0x3608ABF0u); /* 0x36091DDE: call 0x3608abf0 */ /* not lifted */ 6404 RECOMP_FLAGS_IN(); 6405 ecx = edi; /* 0x36091DE3: mov ecx, edi */ 6406 MEM32(ebp + (-0x10)) = eax; /* 0x36091DE5: mov dword ptr [ebp - 0x10], eax */ 6407 RECOMP_ICALL(0x3608F980u); /* 0x36091DE8: call 0x3608f980 */ /* not lifted */ 6408 RECOMP_FLAGS_IN(); 6409 ecx = eax; /* 0x36091DED: mov ecx, eax */ 6410 RECOMP_ICALL(0x360AB540u); /* 0x36091DEF: call 0x360ab540 */ /* not lifted */ 6411 RECOMP_FLAGS_IN(); 6412 ecx = MEM32(esi + 0x1B0); /* 0x36091DF4: mov ecx, dword ptr [esi + 0x1b0] */ 6413 MEM32(ebp + (-0x14)) = eax; /* 0x36091DFA: mov dword ptr [ebp - 0x14], eax */ 6414 eax = MEM32(ebp + (-0xC)); /* 0x36091DFD: mov eax, dword ptr [ebp - 0xc] */ 6415 /* test eax, eax */ /* 0x36091E00: test eax, eax */ 6416 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6417 _cf = 0; 6418 _flag_k = FK_TEST; 6419 if (TEST_LE(_flag_a, _flag_b)) goto L_36091E09; /* 0x36091E02: jle 0x36091e09 */ 6420 L_36091E04: 6421 /* cmp eax, 0x11u */ /* 0x36091E04: cmp eax, 0x11 */ 6422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x11u); 6423 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6424 _flag_k = FK_CMP; 6425 if (CMP_L(_flag_a, _flag_b)) goto L_36091E10; /* 0x36091E07: jl 0x36091e10 */ 6426 L_36091E09: 6427 MEM32(ebp + (-0xC)) = 7; /* 0x36091E09: mov dword ptr [ebp - 0xc], 7 */ 6428 L_36091E10: 6429 edx = ecx + ecx * 4; /* 0x36091E10: lea edx, [ecx + ecx*4] */ 6430 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x36091E13: shl edx, 1 */ 6431 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6432 edx = edx << 1u; /* 0x36091E13: shl edx, 1 */ 6433 eax = 0x51EB851Fu; /* 0x36091E15: mov eax, 0x51eb851f */ 6434 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36091E1A: imul edx */ 6435 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6436 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6437 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E1C: sar edx, 5 */ 6438 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6439 edx = (uint32_t)((int32_t)edx >> 5u); 6440 eax = edx; /* 0x36091E1F: mov eax, edx */ 6441 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E21: shr eax, 0x1f */ 6442 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6443 eax = eax >> 31u; /* 0x36091E21: shr eax, 0x1f */ 6444 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6445 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6446 edx = edx + eax; /* 0x36091E24: add edx, eax */ 6447 _flag_k = FK_ADD; 6448 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E26: cmp dword ptr [ebp - 0x14], edx */ 6449 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 6450 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6451 _flag_k = FK_CMP; 6452 if (CMP_L(_flag_a, _flag_b)) goto L_36091E6B; /* 0x36091E29: jl 0x36091e6b */ 6453 L_36091E2B: 6454 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6456 esp = esp - 0xCu; /* 0x36091E2B: sub esp, 0xc */ 6457 _flag_k = FK_CMP; 6458 ecx = esp; /* 0x36091E2E: mov ecx, esp */ 6459 MEM32(ebp + (-0x20)) = 0; /* 0x36091E30: mov dword ptr [ebp - 0x20], 0 */ 6460 edx = MEM32(ebp + (-0x20)); /* 0x36091E37: mov edx, dword ptr [ebp - 0x20] */ 6461 MEM32(ecx) = edx; /* 0x36091E3A: mov dword ptr [ecx], edx */ 6462 PUSH32(esp, 2); /* 0x36091E3C: push 2 */ 6463 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E3E: mov dword ptr [ebp - 0x1c], 0 */ 6464 eax = MEM32(ebp + (-0x1C)); /* 0x36091E45: mov eax, dword ptr [ebp - 0x1c] */ 6465 MEM32(ecx + 0x4) = eax; /* 0x36091E48: mov dword ptr [ecx + 4], eax */ 6466 eax = MEM32(ebp + (-0x8)); /* 0x36091E4B: mov eax, dword ptr [ebp - 8] */ 6467 MEM32(ebp + (-0x18)) = 0; /* 0x36091E4E: mov dword ptr [ebp - 0x18], 0 */ 6468 edx = MEM32(ebp + (-0x18)); /* 0x36091E55: mov edx, dword ptr [ebp - 0x18] */ 6469 PUSH32(esp, 0x64u); /* 0x36091E58: push 0x64 */ 6470 MEM32(ecx + 0x8) = edx; /* 0x36091E5A: mov dword ptr [ecx + 8], edx */ 6471 ecx = MEM32(ebp + (-0xC)); /* 0x36091E5D: mov ecx, dword ptr [ebp - 0xc] */ 6472 edx = MEM32(ebp + (-0x4)); /* 0x36091E60: mov edx, dword ptr [ebp - 4] */ 6473 PUSH32(esp, eax); /* 0x36091E63: push eax */ 6474 PUSH32(esp, ecx); /* 0x36091E64: push ecx */ 6475 PUSH32(esp, edx); /* 0x36091E65: push edx */ 6476 goto L_36091EFC; /* 0x36091E66: jmp 0x36091efc */ 6477 L_36091E6B: 6478 ecx = ecx + ecx * 4; /* 0x36091E6B: lea ecx, [ecx + ecx*4] */ 6479 eax = 0x51EB851Fu; /* 0x36091E6E: mov eax, 0x51eb851f */ 6480 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36091E73: imul ecx */ 6481 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6482 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6483 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E75: sar edx, 5 */ 6484 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6485 edx = (uint32_t)((int32_t)edx >> 5u); 6486 eax = edx; /* 0x36091E78: mov eax, edx */ 6487 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E7A: shr eax, 0x1f */ 6488 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6489 eax = eax >> 31u; /* 0x36091E7A: shr eax, 0x1f */ 6490 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6491 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6492 edx = edx + eax; /* 0x36091E7D: add edx, eax */ 6493 _flag_k = FK_ADD; 6494 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E7F: cmp dword ptr [ebp - 0x14], edx */ 6495 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 6496 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6497 _flag_k = FK_CMP; 6498 if (CMP_L(_flag_a, _flag_b)) goto L_36091EC1; /* 0x36091E82: jl 0x36091ec1 */ 6499 L_36091E84: 6500 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6502 esp = esp - 0xCu; /* 0x36091E84: sub esp, 0xc */ 6503 _flag_k = FK_CMP; 6504 ecx = esp; /* 0x36091E87: mov ecx, esp */ 6505 MEM32(ebp + (-0x20)) = 0; /* 0x36091E89: mov dword ptr [ebp - 0x20], 0 */ 6506 edx = MEM32(ebp + (-0x20)); /* 0x36091E90: mov edx, dword ptr [ebp - 0x20] */ 6507 MEM32(ecx) = edx; /* 0x36091E93: mov dword ptr [ecx], edx */ 6508 PUSH32(esp, 1); /* 0x36091E95: push 1 */ 6509 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E97: mov dword ptr [ebp - 0x1c], 0 */ 6510 eax = MEM32(ebp + (-0x1C)); /* 0x36091E9E: mov eax, dword ptr [ebp - 0x1c] */ 6511 MEM32(ecx + 0x4) = eax; /* 0x36091EA1: mov dword ptr [ecx + 4], eax */ 6512 eax = MEM32(ebp + (-0x8)); /* 0x36091EA4: mov eax, dword ptr [ebp - 8] */ 6513 MEM32(ebp + (-0x18)) = 0; /* 0x36091EA7: mov dword ptr [ebp - 0x18], 0 */ 6514 edx = MEM32(ebp + (-0x18)); /* 0x36091EAE: mov edx, dword ptr [ebp - 0x18] */ 6515 PUSH32(esp, 0x64u); /* 0x36091EB1: push 0x64 */ 6516 MEM32(ecx + 0x8) = edx; /* 0x36091EB3: mov dword ptr [ecx + 8], edx */ 6517 ecx = MEM32(ebp + (-0xC)); /* 0x36091EB6: mov ecx, dword ptr [ebp - 0xc] */ 6518 edx = MEM32(ebp + (-0x4)); /* 0x36091EB9: mov edx, dword ptr [ebp - 4] */ 6519 PUSH32(esp, eax); /* 0x36091EBC: push eax */ 6520 PUSH32(esp, ecx); /* 0x36091EBD: push ecx */ 6521 PUSH32(esp, edx); /* 0x36091EBE: push edx */ 6522 goto L_36091EFC; /* 0x36091EBF: jmp 0x36091efc */ 6523 L_36091EC1: 6524 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6525 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6526 esp = esp - 0xCu; /* 0x36091EC1: sub esp, 0xc */ 6527 _flag_k = FK_CMP; 6528 edx = esp; /* 0x36091EC4: mov edx, esp */ 6529 MEM32(ebp + (-0x20)) = 0; /* 0x36091EC6: mov dword ptr [ebp - 0x20], 0 */ 6530 eax = MEM32(ebp + (-0x20)); /* 0x36091ECD: mov eax, dword ptr [ebp - 0x20] */ 6531 MEM32(edx) = eax; /* 0x36091ED0: mov dword ptr [edx], eax */ 6532 PUSH32(esp, 0); /* 0x36091ED2: push 0 */ 6533 MEM32(ebp + (-0x1C)) = 0; /* 0x36091ED4: mov dword ptr [ebp - 0x1c], 0 */ 6534 ecx = MEM32(ebp + (-0x1C)); /* 0x36091EDB: mov ecx, dword ptr [ebp - 0x1c] */ 6535 MEM32(edx + 0x4) = ecx; /* 0x36091EDE: mov dword ptr [edx + 4], ecx */ 6536 ecx = MEM32(ebp + (-0x8)); /* 0x36091EE1: mov ecx, dword ptr [ebp - 8] */ 6537 MEM32(ebp + (-0x18)) = 0; /* 0x36091EE4: mov dword ptr [ebp - 0x18], 0 */ 6538 eax = MEM32(ebp + (-0x18)); /* 0x36091EEB: mov eax, dword ptr [ebp - 0x18] */ 6539 PUSH32(esp, 0x64u); /* 0x36091EEE: push 0x64 */ 6540 MEM32(edx + 0x8) = eax; /* 0x36091EF0: mov dword ptr [edx + 8], eax */ 6541 edx = MEM32(ebp + (-0xC)); /* 0x36091EF3: mov edx, dword ptr [ebp - 0xc] */ 6542 eax = MEM32(ebp + (-0x4)); /* 0x36091EF6: mov eax, dword ptr [ebp - 4] */ 6543 PUSH32(esp, ecx); /* 0x36091EF9: push ecx */ 6544 PUSH32(esp, edx); /* 0x36091EFA: push edx */ 6545 PUSH32(esp, eax); /* 0x36091EFB: push eax */ 6546 L_36091EFC: 6547 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 6548 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 6549 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 6550 RECOMP_FLAGS_IN(); 6551 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 6552 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6553 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6554 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 6555 _flag_k = FK_CMP; 6556 ecx = esp; /* 0x36091F07: mov ecx, esp */ 6557 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 6558 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 6559 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 6560 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 6561 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 6562 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 6563 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 6564 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 6565 RECOMP_FLAGS_IN(); 6566 ecx = eax; /* 0x36091F20: mov ecx, eax */ 6567 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 6568 RECOMP_FLAGS_IN(); 6569 ecx = edi; /* 0x36091F27: mov ecx, edi */ 6570 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 6571 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 6572 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 6573 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 6574 RECOMP_FLAGS_IN(); 6575 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 6576 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 6577 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 6578 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6579 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6580 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 6581 _flag_k = FK_CMP; 6582 edx = esp; /* 0x36091F4F: mov edx, esp */ 6583 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 6584 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 6585 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 6586 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 6587 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 6588 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 6589 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 6590 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 6591 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 6592 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 6593 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 6594 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 6595 RECOMP_FLAGS_IN(); 6596 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 6597 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6599 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 6600 _flag_k = FK_CMP; 6601 ecx = esp; /* 0x36091F75: mov ecx, esp */ 6602 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 6603 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 6604 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 6605 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 6606 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 6607 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 6608 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 6609 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 6610 RECOMP_FLAGS_IN(); 6611 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 6612 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 6613 RECOMP_FLAGS_IN(); 6614 ecx = eax; /* 0x36091F95: mov ecx, eax */ 6615 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 6616 RECOMP_FLAGS_IN(); 6617 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 6618 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 6619 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 6620 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 6621 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 6622 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 6623 RECOMP_REGS_OUT(); 6624 } 6625 6626 void sub_36091D95(void) { 6627 int _fpu_cmp = 0; 6628 uint32_t _cf = 0; 6629 int _df = 1; 6630 uint32_t _flag_k = FK_NONE; 6631 uint32_t _flag_a = 0, _flag_b = 0; 6632 uint32_t _itail_tgt = 0; 6633 RECOMP_REGS_LOCALS 6634 RECOMP_ENTER(0x36091D95u); 6635 6636 L_36091D95: 6637 eax = MEM32(ebp + (-0x18)); /* 0x36091D95: mov eax, dword ptr [ebp - 0x18] */ 6638 MEM32(edx + 0x8) = eax; /* 0x36091D98: mov dword ptr [edx + 8], eax */ 6639 edx = MEM32(ebp + (-0x4)); /* 0x36091D9B: mov edx, dword ptr [ebp - 4] */ 6640 PUSH32(esp, 0); /* 0x36091D9E: push 0 */ 6641 PUSH32(esp, edx); /* 0x36091DA0: push edx */ 6642 PUSH32(esp, 0); /* 0x36091DA1: push 0 */ 6643 ecx = esi; /* 0x36091DA3: mov ecx, esi */ 6644 RECOMP_ICALL(ebx); /* 0x36091DA5: call ebx */ 6645 RECOMP_FLAGS_IN(); 6646 edx = MEM32(eax); /* 0x36091DA7: mov edx, dword ptr [eax] */ 6647 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6648 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6649 esp = esp - 0xCu; /* 0x36091DA9: sub esp, 0xc */ 6650 _flag_k = FK_CMP; 6651 ecx = esp; /* 0x36091DAC: mov ecx, esp */ 6652 MEM32(ecx) = edx; /* 0x36091DAE: mov dword ptr [ecx], edx */ 6653 edx = MEM32(eax + 0x4); /* 0x36091DB0: mov edx, dword ptr [eax + 4] */ 6654 eax = MEM32(eax + 0x8); /* 0x36091DB3: mov eax, dword ptr [eax + 8] */ 6655 MEM32(ecx + 0x4) = edx; /* 0x36091DB6: mov dword ptr [ecx + 4], edx */ 6656 MEM32(ecx + 0x8) = eax; /* 0x36091DB9: mov dword ptr [ecx + 8], eax */ 6657 ecx = MEM32(edi + 0x8C); /* 0x36091DBC: mov ecx, dword ptr [edi + 0x8c] */ 6658 PUSH32(esp, ecx); /* 0x36091DC2: push ecx */ 6659 RECOMP_ICALL(0x3601C590u); /* 0x36091DC3: call 0x3601c590 */ /* not lifted */ 6660 RECOMP_FLAGS_IN(); 6661 ecx = eax; /* 0x36091DC8: mov ecx, eax */ 6662 RECOMP_ICALL(0x3601CBF0u); /* 0x36091DCA: call 0x3601cbf0 */ /* not lifted */ 6663 RECOMP_FLAGS_IN(); 6664 ecx = edi; /* 0x36091DCF: mov ecx, edi */ 6665 RECOMP_ICALL(0x3608F980u); /* 0x36091DD1: call 0x3608f980 */ /* not lifted */ 6666 RECOMP_FLAGS_IN(); 6667 eax = MEM32(eax + 0x1C); /* 0x36091DD6: mov eax, dword ptr [eax + 0x1c] */ 6668 PUSH32(esp, 0x1Fu); /* 0x36091DD9: push 0x1f */ 6669 ecx = eax + 0x4C; /* 0x36091DDB: lea ecx, [eax + 0x4c] */ 6670 RECOMP_ICALL(0x3608ABF0u); /* 0x36091DDE: call 0x3608abf0 */ /* not lifted */ 6671 RECOMP_FLAGS_IN(); 6672 ecx = edi; /* 0x36091DE3: mov ecx, edi */ 6673 MEM32(ebp + (-0x10)) = eax; /* 0x36091DE5: mov dword ptr [ebp - 0x10], eax */ 6674 RECOMP_ICALL(0x3608F980u); /* 0x36091DE8: call 0x3608f980 */ /* not lifted */ 6675 RECOMP_FLAGS_IN(); 6676 ecx = eax; /* 0x36091DED: mov ecx, eax */ 6677 RECOMP_ICALL(0x360AB540u); /* 0x36091DEF: call 0x360ab540 */ /* not lifted */ 6678 RECOMP_FLAGS_IN(); 6679 ecx = MEM32(esi + 0x1B0); /* 0x36091DF4: mov ecx, dword ptr [esi + 0x1b0] */ 6680 MEM32(ebp + (-0x14)) = eax; /* 0x36091DFA: mov dword ptr [ebp - 0x14], eax */ 6681 eax = MEM32(ebp + (-0xC)); /* 0x36091DFD: mov eax, dword ptr [ebp - 0xc] */ 6682 /* test eax, eax */ /* 0x36091E00: test eax, eax */ 6683 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6684 _cf = 0; 6685 _flag_k = FK_TEST; 6686 if (TEST_LE(_flag_a, _flag_b)) goto L_36091E09; /* 0x36091E02: jle 0x36091e09 */ 6687 L_36091E04: 6688 /* cmp eax, 0x11u */ /* 0x36091E04: cmp eax, 0x11 */ 6689 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x11u); 6690 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6691 _flag_k = FK_CMP; 6692 if (CMP_L(_flag_a, _flag_b)) goto L_36091E10; /* 0x36091E07: jl 0x36091e10 */ 6693 L_36091E09: 6694 MEM32(ebp + (-0xC)) = 7; /* 0x36091E09: mov dword ptr [ebp - 0xc], 7 */ 6695 L_36091E10: 6696 edx = ecx + ecx * 4; /* 0x36091E10: lea edx, [ecx + ecx*4] */ 6697 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x36091E13: shl edx, 1 */ 6698 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6699 edx = edx << 1u; /* 0x36091E13: shl edx, 1 */ 6700 eax = 0x51EB851Fu; /* 0x36091E15: mov eax, 0x51eb851f */ 6701 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36091E1A: imul edx */ 6702 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6703 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6704 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E1C: sar edx, 5 */ 6705 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6706 edx = (uint32_t)((int32_t)edx >> 5u); 6707 eax = edx; /* 0x36091E1F: mov eax, edx */ 6708 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E21: shr eax, 0x1f */ 6709 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6710 eax = eax >> 31u; /* 0x36091E21: shr eax, 0x1f */ 6711 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6713 edx = edx + eax; /* 0x36091E24: add edx, eax */ 6714 _flag_k = FK_ADD; 6715 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E26: cmp dword ptr [ebp - 0x14], edx */ 6716 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 6717 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6718 _flag_k = FK_CMP; 6719 if (CMP_L(_flag_a, _flag_b)) goto L_36091E6B; /* 0x36091E29: jl 0x36091e6b */ 6720 L_36091E2B: 6721 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6722 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6723 esp = esp - 0xCu; /* 0x36091E2B: sub esp, 0xc */ 6724 _flag_k = FK_CMP; 6725 ecx = esp; /* 0x36091E2E: mov ecx, esp */ 6726 MEM32(ebp + (-0x20)) = 0; /* 0x36091E30: mov dword ptr [ebp - 0x20], 0 */ 6727 edx = MEM32(ebp + (-0x20)); /* 0x36091E37: mov edx, dword ptr [ebp - 0x20] */ 6728 MEM32(ecx) = edx; /* 0x36091E3A: mov dword ptr [ecx], edx */ 6729 PUSH32(esp, 2); /* 0x36091E3C: push 2 */ 6730 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E3E: mov dword ptr [ebp - 0x1c], 0 */ 6731 eax = MEM32(ebp + (-0x1C)); /* 0x36091E45: mov eax, dword ptr [ebp - 0x1c] */ 6732 MEM32(ecx + 0x4) = eax; /* 0x36091E48: mov dword ptr [ecx + 4], eax */ 6733 eax = MEM32(ebp + (-0x8)); /* 0x36091E4B: mov eax, dword ptr [ebp - 8] */ 6734 MEM32(ebp + (-0x18)) = 0; /* 0x36091E4E: mov dword ptr [ebp - 0x18], 0 */ 6735 edx = MEM32(ebp + (-0x18)); /* 0x36091E55: mov edx, dword ptr [ebp - 0x18] */ 6736 PUSH32(esp, 0x64u); /* 0x36091E58: push 0x64 */ 6737 MEM32(ecx + 0x8) = edx; /* 0x36091E5A: mov dword ptr [ecx + 8], edx */ 6738 ecx = MEM32(ebp + (-0xC)); /* 0x36091E5D: mov ecx, dword ptr [ebp - 0xc] */ 6739 edx = MEM32(ebp + (-0x4)); /* 0x36091E60: mov edx, dword ptr [ebp - 4] */ 6740 PUSH32(esp, eax); /* 0x36091E63: push eax */ 6741 PUSH32(esp, ecx); /* 0x36091E64: push ecx */ 6742 PUSH32(esp, edx); /* 0x36091E65: push edx */ 6743 goto L_36091EFC; /* 0x36091E66: jmp 0x36091efc */ 6744 L_36091E6B: 6745 ecx = ecx + ecx * 4; /* 0x36091E6B: lea ecx, [ecx + ecx*4] */ 6746 eax = 0x51EB851Fu; /* 0x36091E6E: mov eax, 0x51eb851f */ 6747 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36091E73: imul ecx */ 6748 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6749 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6750 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E75: sar edx, 5 */ 6751 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6752 edx = (uint32_t)((int32_t)edx >> 5u); 6753 eax = edx; /* 0x36091E78: mov eax, edx */ 6754 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E7A: shr eax, 0x1f */ 6755 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6756 eax = eax >> 31u; /* 0x36091E7A: shr eax, 0x1f */ 6757 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6758 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6759 edx = edx + eax; /* 0x36091E7D: add edx, eax */ 6760 _flag_k = FK_ADD; 6761 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E7F: cmp dword ptr [ebp - 0x14], edx */ 6762 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 6763 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6764 _flag_k = FK_CMP; 6765 if (CMP_L(_flag_a, _flag_b)) goto L_36091EC1; /* 0x36091E82: jl 0x36091ec1 */ 6766 L_36091E84: 6767 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6768 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6769 esp = esp - 0xCu; /* 0x36091E84: sub esp, 0xc */ 6770 _flag_k = FK_CMP; 6771 ecx = esp; /* 0x36091E87: mov ecx, esp */ 6772 MEM32(ebp + (-0x20)) = 0; /* 0x36091E89: mov dword ptr [ebp - 0x20], 0 */ 6773 edx = MEM32(ebp + (-0x20)); /* 0x36091E90: mov edx, dword ptr [ebp - 0x20] */ 6774 MEM32(ecx) = edx; /* 0x36091E93: mov dword ptr [ecx], edx */ 6775 PUSH32(esp, 1); /* 0x36091E95: push 1 */ 6776 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E97: mov dword ptr [ebp - 0x1c], 0 */ 6777 eax = MEM32(ebp + (-0x1C)); /* 0x36091E9E: mov eax, dword ptr [ebp - 0x1c] */ 6778 MEM32(ecx + 0x4) = eax; /* 0x36091EA1: mov dword ptr [ecx + 4], eax */ 6779 eax = MEM32(ebp + (-0x8)); /* 0x36091EA4: mov eax, dword ptr [ebp - 8] */ 6780 MEM32(ebp + (-0x18)) = 0; /* 0x36091EA7: mov dword ptr [ebp - 0x18], 0 */ 6781 edx = MEM32(ebp + (-0x18)); /* 0x36091EAE: mov edx, dword ptr [ebp - 0x18] */ 6782 PUSH32(esp, 0x64u); /* 0x36091EB1: push 0x64 */ 6783 MEM32(ecx + 0x8) = edx; /* 0x36091EB3: mov dword ptr [ecx + 8], edx */ 6784 ecx = MEM32(ebp + (-0xC)); /* 0x36091EB6: mov ecx, dword ptr [ebp - 0xc] */ 6785 edx = MEM32(ebp + (-0x4)); /* 0x36091EB9: mov edx, dword ptr [ebp - 4] */ 6786 PUSH32(esp, eax); /* 0x36091EBC: push eax */ 6787 PUSH32(esp, ecx); /* 0x36091EBD: push ecx */ 6788 PUSH32(esp, edx); /* 0x36091EBE: push edx */ 6789 goto L_36091EFC; /* 0x36091EBF: jmp 0x36091efc */ 6790 L_36091EC1: 6791 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6793 esp = esp - 0xCu; /* 0x36091EC1: sub esp, 0xc */ 6794 _flag_k = FK_CMP; 6795 edx = esp; /* 0x36091EC4: mov edx, esp */ 6796 MEM32(ebp + (-0x20)) = 0; /* 0x36091EC6: mov dword ptr [ebp - 0x20], 0 */ 6797 eax = MEM32(ebp + (-0x20)); /* 0x36091ECD: mov eax, dword ptr [ebp - 0x20] */ 6798 MEM32(edx) = eax; /* 0x36091ED0: mov dword ptr [edx], eax */ 6799 PUSH32(esp, 0); /* 0x36091ED2: push 0 */ 6800 MEM32(ebp + (-0x1C)) = 0; /* 0x36091ED4: mov dword ptr [ebp - 0x1c], 0 */ 6801 ecx = MEM32(ebp + (-0x1C)); /* 0x36091EDB: mov ecx, dword ptr [ebp - 0x1c] */ 6802 MEM32(edx + 0x4) = ecx; /* 0x36091EDE: mov dword ptr [edx + 4], ecx */ 6803 ecx = MEM32(ebp + (-0x8)); /* 0x36091EE1: mov ecx, dword ptr [ebp - 8] */ 6804 MEM32(ebp + (-0x18)) = 0; /* 0x36091EE4: mov dword ptr [ebp - 0x18], 0 */ 6805 eax = MEM32(ebp + (-0x18)); /* 0x36091EEB: mov eax, dword ptr [ebp - 0x18] */ 6806 PUSH32(esp, 0x64u); /* 0x36091EEE: push 0x64 */ 6807 MEM32(edx + 0x8) = eax; /* 0x36091EF0: mov dword ptr [edx + 8], eax */ 6808 edx = MEM32(ebp + (-0xC)); /* 0x36091EF3: mov edx, dword ptr [ebp - 0xc] */ 6809 eax = MEM32(ebp + (-0x4)); /* 0x36091EF6: mov eax, dword ptr [ebp - 4] */ 6810 PUSH32(esp, ecx); /* 0x36091EF9: push ecx */ 6811 PUSH32(esp, edx); /* 0x36091EFA: push edx */ 6812 PUSH32(esp, eax); /* 0x36091EFB: push eax */ 6813 L_36091EFC: 6814 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 6815 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 6816 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 6817 RECOMP_FLAGS_IN(); 6818 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 6819 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6820 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6821 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 6822 _flag_k = FK_CMP; 6823 ecx = esp; /* 0x36091F07: mov ecx, esp */ 6824 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 6825 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 6826 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 6827 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 6828 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 6829 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 6830 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 6831 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 6832 RECOMP_FLAGS_IN(); 6833 ecx = eax; /* 0x36091F20: mov ecx, eax */ 6834 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 6835 RECOMP_FLAGS_IN(); 6836 ecx = edi; /* 0x36091F27: mov ecx, edi */ 6837 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 6838 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 6839 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 6840 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 6841 RECOMP_FLAGS_IN(); 6842 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 6843 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 6844 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 6845 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6846 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6847 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 6848 _flag_k = FK_CMP; 6849 edx = esp; /* 0x36091F4F: mov edx, esp */ 6850 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 6851 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 6852 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 6853 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 6854 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 6855 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 6856 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 6857 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 6858 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 6859 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 6860 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 6861 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 6862 RECOMP_FLAGS_IN(); 6863 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 6864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6865 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6866 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 6867 _flag_k = FK_CMP; 6868 ecx = esp; /* 0x36091F75: mov ecx, esp */ 6869 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 6870 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 6871 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 6872 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 6873 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 6874 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 6875 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 6876 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 6877 RECOMP_FLAGS_IN(); 6878 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 6879 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 6880 RECOMP_FLAGS_IN(); 6881 ecx = eax; /* 0x36091F95: mov ecx, eax */ 6882 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 6883 RECOMP_FLAGS_IN(); 6884 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 6885 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 6886 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 6887 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 6888 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 6889 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 6890 RECOMP_REGS_OUT(); 6891 } 6892 6893 void sub_36091DC2(void) { 6894 int _fpu_cmp = 0; 6895 uint32_t _cf = 0; 6896 int _df = 1; 6897 uint32_t _flag_k = FK_NONE; 6898 uint32_t _flag_a = 0, _flag_b = 0; 6899 uint32_t _itail_tgt = 0; 6900 RECOMP_REGS_LOCALS 6901 RECOMP_ENTER(0x36091DC2u); 6902 6903 L_36091DC2: 6904 PUSH32(esp, ecx); /* 0x36091DC2: push ecx */ 6905 RECOMP_ICALL(0x3601C590u); /* 0x36091DC3: call 0x3601c590 */ /* not lifted */ 6906 RECOMP_FLAGS_IN(); 6907 ecx = eax; /* 0x36091DC8: mov ecx, eax */ 6908 RECOMP_ICALL(0x3601CBF0u); /* 0x36091DCA: call 0x3601cbf0 */ /* not lifted */ 6909 RECOMP_FLAGS_IN(); 6910 ecx = edi; /* 0x36091DCF: mov ecx, edi */ 6911 RECOMP_ICALL(0x3608F980u); /* 0x36091DD1: call 0x3608f980 */ /* not lifted */ 6912 RECOMP_FLAGS_IN(); 6913 eax = MEM32(eax + 0x1C); /* 0x36091DD6: mov eax, dword ptr [eax + 0x1c] */ 6914 PUSH32(esp, 0x1Fu); /* 0x36091DD9: push 0x1f */ 6915 ecx = eax + 0x4C; /* 0x36091DDB: lea ecx, [eax + 0x4c] */ 6916 RECOMP_ICALL(0x3608ABF0u); /* 0x36091DDE: call 0x3608abf0 */ /* not lifted */ 6917 RECOMP_FLAGS_IN(); 6918 ecx = edi; /* 0x36091DE3: mov ecx, edi */ 6919 MEM32(ebp + (-0x10)) = eax; /* 0x36091DE5: mov dword ptr [ebp - 0x10], eax */ 6920 RECOMP_ICALL(0x3608F980u); /* 0x36091DE8: call 0x3608f980 */ /* not lifted */ 6921 RECOMP_FLAGS_IN(); 6922 ecx = eax; /* 0x36091DED: mov ecx, eax */ 6923 RECOMP_ICALL(0x360AB540u); /* 0x36091DEF: call 0x360ab540 */ /* not lifted */ 6924 RECOMP_FLAGS_IN(); 6925 ecx = MEM32(esi + 0x1B0); /* 0x36091DF4: mov ecx, dword ptr [esi + 0x1b0] */ 6926 MEM32(ebp + (-0x14)) = eax; /* 0x36091DFA: mov dword ptr [ebp - 0x14], eax */ 6927 eax = MEM32(ebp + (-0xC)); /* 0x36091DFD: mov eax, dword ptr [ebp - 0xc] */ 6928 /* test eax, eax */ /* 0x36091E00: test eax, eax */ 6929 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6930 _cf = 0; 6931 _flag_k = FK_TEST; 6932 if (TEST_LE(_flag_a, _flag_b)) goto L_36091E09; /* 0x36091E02: jle 0x36091e09 */ 6933 L_36091E04: 6934 /* cmp eax, 0x11u */ /* 0x36091E04: cmp eax, 0x11 */ 6935 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x11u); 6936 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6937 _flag_k = FK_CMP; 6938 if (CMP_L(_flag_a, _flag_b)) goto L_36091E10; /* 0x36091E07: jl 0x36091e10 */ 6939 L_36091E09: 6940 MEM32(ebp + (-0xC)) = 7; /* 0x36091E09: mov dword ptr [ebp - 0xc], 7 */ 6941 L_36091E10: 6942 edx = ecx + ecx * 4; /* 0x36091E10: lea edx, [ecx + ecx*4] */ 6943 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x36091E13: shl edx, 1 */ 6944 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6945 edx = edx << 1u; /* 0x36091E13: shl edx, 1 */ 6946 eax = 0x51EB851Fu; /* 0x36091E15: mov eax, 0x51eb851f */ 6947 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36091E1A: imul edx */ 6948 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6949 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6950 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E1C: sar edx, 5 */ 6951 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6952 edx = (uint32_t)((int32_t)edx >> 5u); 6953 eax = edx; /* 0x36091E1F: mov eax, edx */ 6954 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E21: shr eax, 0x1f */ 6955 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6956 eax = eax >> 31u; /* 0x36091E21: shr eax, 0x1f */ 6957 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 6958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6959 edx = edx + eax; /* 0x36091E24: add edx, eax */ 6960 _flag_k = FK_ADD; 6961 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E26: cmp dword ptr [ebp - 0x14], edx */ 6962 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 6963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6964 _flag_k = FK_CMP; 6965 if (CMP_L(_flag_a, _flag_b)) goto L_36091E6B; /* 0x36091E29: jl 0x36091e6b */ 6966 L_36091E2B: 6967 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6968 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6969 esp = esp - 0xCu; /* 0x36091E2B: sub esp, 0xc */ 6970 _flag_k = FK_CMP; 6971 ecx = esp; /* 0x36091E2E: mov ecx, esp */ 6972 MEM32(ebp + (-0x20)) = 0; /* 0x36091E30: mov dword ptr [ebp - 0x20], 0 */ 6973 edx = MEM32(ebp + (-0x20)); /* 0x36091E37: mov edx, dword ptr [ebp - 0x20] */ 6974 MEM32(ecx) = edx; /* 0x36091E3A: mov dword ptr [ecx], edx */ 6975 PUSH32(esp, 2); /* 0x36091E3C: push 2 */ 6976 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E3E: mov dword ptr [ebp - 0x1c], 0 */ 6977 eax = MEM32(ebp + (-0x1C)); /* 0x36091E45: mov eax, dword ptr [ebp - 0x1c] */ 6978 MEM32(ecx + 0x4) = eax; /* 0x36091E48: mov dword ptr [ecx + 4], eax */ 6979 eax = MEM32(ebp + (-0x8)); /* 0x36091E4B: mov eax, dword ptr [ebp - 8] */ 6980 MEM32(ebp + (-0x18)) = 0; /* 0x36091E4E: mov dword ptr [ebp - 0x18], 0 */ 6981 edx = MEM32(ebp + (-0x18)); /* 0x36091E55: mov edx, dword ptr [ebp - 0x18] */ 6982 PUSH32(esp, 0x64u); /* 0x36091E58: push 0x64 */ 6983 MEM32(ecx + 0x8) = edx; /* 0x36091E5A: mov dword ptr [ecx + 8], edx */ 6984 ecx = MEM32(ebp + (-0xC)); /* 0x36091E5D: mov ecx, dword ptr [ebp - 0xc] */ 6985 edx = MEM32(ebp + (-0x4)); /* 0x36091E60: mov edx, dword ptr [ebp - 4] */ 6986 PUSH32(esp, eax); /* 0x36091E63: push eax */ 6987 PUSH32(esp, ecx); /* 0x36091E64: push ecx */ 6988 PUSH32(esp, edx); /* 0x36091E65: push edx */ 6989 goto L_36091EFC; /* 0x36091E66: jmp 0x36091efc */ 6990 L_36091E6B: 6991 ecx = ecx + ecx * 4; /* 0x36091E6B: lea ecx, [ecx + ecx*4] */ 6992 eax = 0x51EB851Fu; /* 0x36091E6E: mov eax, 0x51eb851f */ 6993 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36091E73: imul ecx */ 6994 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 6995 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 6996 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E75: sar edx, 5 */ 6997 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6998 edx = (uint32_t)((int32_t)edx >> 5u); 6999 eax = edx; /* 0x36091E78: mov eax, edx */ 7000 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E7A: shr eax, 0x1f */ 7001 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7002 eax = eax >> 31u; /* 0x36091E7A: shr eax, 0x1f */ 7003 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7004 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7005 edx = edx + eax; /* 0x36091E7D: add edx, eax */ 7006 _flag_k = FK_ADD; 7007 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E7F: cmp dword ptr [ebp - 0x14], edx */ 7008 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 7009 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7010 _flag_k = FK_CMP; 7011 if (CMP_L(_flag_a, _flag_b)) goto L_36091EC1; /* 0x36091E82: jl 0x36091ec1 */ 7012 L_36091E84: 7013 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7014 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7015 esp = esp - 0xCu; /* 0x36091E84: sub esp, 0xc */ 7016 _flag_k = FK_CMP; 7017 ecx = esp; /* 0x36091E87: mov ecx, esp */ 7018 MEM32(ebp + (-0x20)) = 0; /* 0x36091E89: mov dword ptr [ebp - 0x20], 0 */ 7019 edx = MEM32(ebp + (-0x20)); /* 0x36091E90: mov edx, dword ptr [ebp - 0x20] */ 7020 MEM32(ecx) = edx; /* 0x36091E93: mov dword ptr [ecx], edx */ 7021 PUSH32(esp, 1); /* 0x36091E95: push 1 */ 7022 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E97: mov dword ptr [ebp - 0x1c], 0 */ 7023 eax = MEM32(ebp + (-0x1C)); /* 0x36091E9E: mov eax, dword ptr [ebp - 0x1c] */ 7024 MEM32(ecx + 0x4) = eax; /* 0x36091EA1: mov dword ptr [ecx + 4], eax */ 7025 eax = MEM32(ebp + (-0x8)); /* 0x36091EA4: mov eax, dword ptr [ebp - 8] */ 7026 MEM32(ebp + (-0x18)) = 0; /* 0x36091EA7: mov dword ptr [ebp - 0x18], 0 */ 7027 edx = MEM32(ebp + (-0x18)); /* 0x36091EAE: mov edx, dword ptr [ebp - 0x18] */ 7028 PUSH32(esp, 0x64u); /* 0x36091EB1: push 0x64 */ 7029 MEM32(ecx + 0x8) = edx; /* 0x36091EB3: mov dword ptr [ecx + 8], edx */ 7030 ecx = MEM32(ebp + (-0xC)); /* 0x36091EB6: mov ecx, dword ptr [ebp - 0xc] */ 7031 edx = MEM32(ebp + (-0x4)); /* 0x36091EB9: mov edx, dword ptr [ebp - 4] */ 7032 PUSH32(esp, eax); /* 0x36091EBC: push eax */ 7033 PUSH32(esp, ecx); /* 0x36091EBD: push ecx */ 7034 PUSH32(esp, edx); /* 0x36091EBE: push edx */ 7035 goto L_36091EFC; /* 0x36091EBF: jmp 0x36091efc */ 7036 L_36091EC1: 7037 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7038 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7039 esp = esp - 0xCu; /* 0x36091EC1: sub esp, 0xc */ 7040 _flag_k = FK_CMP; 7041 edx = esp; /* 0x36091EC4: mov edx, esp */ 7042 MEM32(ebp + (-0x20)) = 0; /* 0x36091EC6: mov dword ptr [ebp - 0x20], 0 */ 7043 eax = MEM32(ebp + (-0x20)); /* 0x36091ECD: mov eax, dword ptr [ebp - 0x20] */ 7044 MEM32(edx) = eax; /* 0x36091ED0: mov dword ptr [edx], eax */ 7045 PUSH32(esp, 0); /* 0x36091ED2: push 0 */ 7046 MEM32(ebp + (-0x1C)) = 0; /* 0x36091ED4: mov dword ptr [ebp - 0x1c], 0 */ 7047 ecx = MEM32(ebp + (-0x1C)); /* 0x36091EDB: mov ecx, dword ptr [ebp - 0x1c] */ 7048 MEM32(edx + 0x4) = ecx; /* 0x36091EDE: mov dword ptr [edx + 4], ecx */ 7049 ecx = MEM32(ebp + (-0x8)); /* 0x36091EE1: mov ecx, dword ptr [ebp - 8] */ 7050 MEM32(ebp + (-0x18)) = 0; /* 0x36091EE4: mov dword ptr [ebp - 0x18], 0 */ 7051 eax = MEM32(ebp + (-0x18)); /* 0x36091EEB: mov eax, dword ptr [ebp - 0x18] */ 7052 PUSH32(esp, 0x64u); /* 0x36091EEE: push 0x64 */ 7053 MEM32(edx + 0x8) = eax; /* 0x36091EF0: mov dword ptr [edx + 8], eax */ 7054 edx = MEM32(ebp + (-0xC)); /* 0x36091EF3: mov edx, dword ptr [ebp - 0xc] */ 7055 eax = MEM32(ebp + (-0x4)); /* 0x36091EF6: mov eax, dword ptr [ebp - 4] */ 7056 PUSH32(esp, ecx); /* 0x36091EF9: push ecx */ 7057 PUSH32(esp, edx); /* 0x36091EFA: push edx */ 7058 PUSH32(esp, eax); /* 0x36091EFB: push eax */ 7059 L_36091EFC: 7060 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 7061 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 7062 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 7063 RECOMP_FLAGS_IN(); 7064 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 7065 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7067 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 7068 _flag_k = FK_CMP; 7069 ecx = esp; /* 0x36091F07: mov ecx, esp */ 7070 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 7071 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 7072 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 7073 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 7074 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 7075 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 7076 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 7077 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 7078 RECOMP_FLAGS_IN(); 7079 ecx = eax; /* 0x36091F20: mov ecx, eax */ 7080 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 7081 RECOMP_FLAGS_IN(); 7082 ecx = edi; /* 0x36091F27: mov ecx, edi */ 7083 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 7084 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 7085 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 7086 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 7087 RECOMP_FLAGS_IN(); 7088 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 7089 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 7090 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 7091 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7092 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7093 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 7094 _flag_k = FK_CMP; 7095 edx = esp; /* 0x36091F4F: mov edx, esp */ 7096 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 7097 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 7098 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 7099 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 7100 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 7101 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 7102 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 7103 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 7104 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 7105 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 7106 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 7107 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 7108 RECOMP_FLAGS_IN(); 7109 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 7110 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7112 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 7113 _flag_k = FK_CMP; 7114 ecx = esp; /* 0x36091F75: mov ecx, esp */ 7115 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 7116 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 7117 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 7118 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 7119 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 7120 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 7121 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 7122 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 7123 RECOMP_FLAGS_IN(); 7124 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 7125 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 7126 RECOMP_FLAGS_IN(); 7127 ecx = eax; /* 0x36091F95: mov ecx, eax */ 7128 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 7129 RECOMP_FLAGS_IN(); 7130 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 7131 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 7132 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 7133 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 7134 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 7135 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 7136 RECOMP_REGS_OUT(); 7137 } 7138 7139 void sub_36091DCF(void) { 7140 int _fpu_cmp = 0; 7141 uint32_t _cf = 0; 7142 int _df = 1; 7143 uint32_t _flag_k = FK_NONE; 7144 uint32_t _flag_a = 0, _flag_b = 0; 7145 uint32_t _itail_tgt = 0; 7146 RECOMP_REGS_LOCALS 7147 RECOMP_ENTER(0x36091DCFu); 7148 7149 L_36091DCF: 7150 ecx = edi; /* 0x36091DCF: mov ecx, edi */ 7151 RECOMP_ICALL(0x3608F980u); /* 0x36091DD1: call 0x3608f980 */ /* not lifted */ 7152 RECOMP_FLAGS_IN(); 7153 eax = MEM32(eax + 0x1C); /* 0x36091DD6: mov eax, dword ptr [eax + 0x1c] */ 7154 PUSH32(esp, 0x1Fu); /* 0x36091DD9: push 0x1f */ 7155 ecx = eax + 0x4C; /* 0x36091DDB: lea ecx, [eax + 0x4c] */ 7156 RECOMP_ICALL(0x3608ABF0u); /* 0x36091DDE: call 0x3608abf0 */ /* not lifted */ 7157 RECOMP_FLAGS_IN(); 7158 ecx = edi; /* 0x36091DE3: mov ecx, edi */ 7159 MEM32(ebp + (-0x10)) = eax; /* 0x36091DE5: mov dword ptr [ebp - 0x10], eax */ 7160 RECOMP_ICALL(0x3608F980u); /* 0x36091DE8: call 0x3608f980 */ /* not lifted */ 7161 RECOMP_FLAGS_IN(); 7162 ecx = eax; /* 0x36091DED: mov ecx, eax */ 7163 RECOMP_ICALL(0x360AB540u); /* 0x36091DEF: call 0x360ab540 */ /* not lifted */ 7164 RECOMP_FLAGS_IN(); 7165 ecx = MEM32(esi + 0x1B0); /* 0x36091DF4: mov ecx, dword ptr [esi + 0x1b0] */ 7166 MEM32(ebp + (-0x14)) = eax; /* 0x36091DFA: mov dword ptr [ebp - 0x14], eax */ 7167 eax = MEM32(ebp + (-0xC)); /* 0x36091DFD: mov eax, dword ptr [ebp - 0xc] */ 7168 /* test eax, eax */ /* 0x36091E00: test eax, eax */ 7169 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7170 _cf = 0; 7171 _flag_k = FK_TEST; 7172 if (TEST_LE(_flag_a, _flag_b)) goto L_36091E09; /* 0x36091E02: jle 0x36091e09 */ 7173 L_36091E04: 7174 /* cmp eax, 0x11u */ /* 0x36091E04: cmp eax, 0x11 */ 7175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x11u); 7176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7177 _flag_k = FK_CMP; 7178 if (CMP_L(_flag_a, _flag_b)) goto L_36091E10; /* 0x36091E07: jl 0x36091e10 */ 7179 L_36091E09: 7180 MEM32(ebp + (-0xC)) = 7; /* 0x36091E09: mov dword ptr [ebp - 0xc], 7 */ 7181 L_36091E10: 7182 edx = ecx + ecx * 4; /* 0x36091E10: lea edx, [ecx + ecx*4] */ 7183 if (1u) _cf = (((edx) >> 31) & 1u); /* 0x36091E13: shl edx, 1 */ 7184 if (1u) { _flag_a = recomp_flags_pack((edx << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7185 edx = edx << 1u; /* 0x36091E13: shl edx, 1 */ 7186 eax = 0x51EB851Fu; /* 0x36091E15: mov eax, 0x51eb851f */ 7187 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x36091E1A: imul edx */ 7188 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7189 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7190 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E1C: sar edx, 5 */ 7191 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7192 edx = (uint32_t)((int32_t)edx >> 5u); 7193 eax = edx; /* 0x36091E1F: mov eax, edx */ 7194 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E21: shr eax, 0x1f */ 7195 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7196 eax = eax >> 31u; /* 0x36091E21: shr eax, 0x1f */ 7197 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7198 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7199 edx = edx + eax; /* 0x36091E24: add edx, eax */ 7200 _flag_k = FK_ADD; 7201 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E26: cmp dword ptr [ebp - 0x14], edx */ 7202 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 7203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7204 _flag_k = FK_CMP; 7205 if (CMP_L(_flag_a, _flag_b)) goto L_36091E6B; /* 0x36091E29: jl 0x36091e6b */ 7206 L_36091E2B: 7207 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7208 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7209 esp = esp - 0xCu; /* 0x36091E2B: sub esp, 0xc */ 7210 _flag_k = FK_CMP; 7211 ecx = esp; /* 0x36091E2E: mov ecx, esp */ 7212 MEM32(ebp + (-0x20)) = 0; /* 0x36091E30: mov dword ptr [ebp - 0x20], 0 */ 7213 edx = MEM32(ebp + (-0x20)); /* 0x36091E37: mov edx, dword ptr [ebp - 0x20] */ 7214 MEM32(ecx) = edx; /* 0x36091E3A: mov dword ptr [ecx], edx */ 7215 PUSH32(esp, 2); /* 0x36091E3C: push 2 */ 7216 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E3E: mov dword ptr [ebp - 0x1c], 0 */ 7217 eax = MEM32(ebp + (-0x1C)); /* 0x36091E45: mov eax, dword ptr [ebp - 0x1c] */ 7218 MEM32(ecx + 0x4) = eax; /* 0x36091E48: mov dword ptr [ecx + 4], eax */ 7219 eax = MEM32(ebp + (-0x8)); /* 0x36091E4B: mov eax, dword ptr [ebp - 8] */ 7220 MEM32(ebp + (-0x18)) = 0; /* 0x36091E4E: mov dword ptr [ebp - 0x18], 0 */ 7221 edx = MEM32(ebp + (-0x18)); /* 0x36091E55: mov edx, dword ptr [ebp - 0x18] */ 7222 PUSH32(esp, 0x64u); /* 0x36091E58: push 0x64 */ 7223 MEM32(ecx + 0x8) = edx; /* 0x36091E5A: mov dword ptr [ecx + 8], edx */ 7224 ecx = MEM32(ebp + (-0xC)); /* 0x36091E5D: mov ecx, dword ptr [ebp - 0xc] */ 7225 edx = MEM32(ebp + (-0x4)); /* 0x36091E60: mov edx, dword ptr [ebp - 4] */ 7226 PUSH32(esp, eax); /* 0x36091E63: push eax */ 7227 PUSH32(esp, ecx); /* 0x36091E64: push ecx */ 7228 PUSH32(esp, edx); /* 0x36091E65: push edx */ 7229 goto L_36091EFC; /* 0x36091E66: jmp 0x36091efc */ 7230 L_36091E6B: 7231 ecx = ecx + ecx * 4; /* 0x36091E6B: lea ecx, [ecx + ecx*4] */ 7232 eax = 0x51EB851Fu; /* 0x36091E6E: mov eax, 0x51eb851f */ 7233 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x36091E73: imul ecx */ 7234 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7235 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7236 if (5u) _cf = (((edx) >> 4) & 1u); /* 0x36091E75: sar edx, 5 */ 7237 if (5u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 5u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7238 edx = (uint32_t)((int32_t)edx >> 5u); 7239 eax = edx; /* 0x36091E78: mov eax, edx */ 7240 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x36091E7A: shr eax, 0x1f */ 7241 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7242 eax = eax >> 31u; /* 0x36091E7A: shr eax, 0x1f */ 7243 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7244 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7245 edx = edx + eax; /* 0x36091E7D: add edx, eax */ 7246 _flag_k = FK_ADD; 7247 /* cmp MEM32(ebp + (-0x14)), edx */ /* 0x36091E7F: cmp dword ptr [ebp - 0x14], edx */ 7248 _flag_a = (uint32_t)(MEM32(ebp + (-0x14))); _flag_b = (uint32_t)(edx); 7249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7250 _flag_k = FK_CMP; 7251 if (CMP_L(_flag_a, _flag_b)) goto L_36091EC1; /* 0x36091E82: jl 0x36091ec1 */ 7252 L_36091E84: 7253 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7254 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7255 esp = esp - 0xCu; /* 0x36091E84: sub esp, 0xc */ 7256 _flag_k = FK_CMP; 7257 ecx = esp; /* 0x36091E87: mov ecx, esp */ 7258 MEM32(ebp + (-0x20)) = 0; /* 0x36091E89: mov dword ptr [ebp - 0x20], 0 */ 7259 edx = MEM32(ebp + (-0x20)); /* 0x36091E90: mov edx, dword ptr [ebp - 0x20] */ 7260 MEM32(ecx) = edx; /* 0x36091E93: mov dword ptr [ecx], edx */ 7261 PUSH32(esp, 1); /* 0x36091E95: push 1 */ 7262 MEM32(ebp + (-0x1C)) = 0; /* 0x36091E97: mov dword ptr [ebp - 0x1c], 0 */ 7263 eax = MEM32(ebp + (-0x1C)); /* 0x36091E9E: mov eax, dword ptr [ebp - 0x1c] */ 7264 MEM32(ecx + 0x4) = eax; /* 0x36091EA1: mov dword ptr [ecx + 4], eax */ 7265 eax = MEM32(ebp + (-0x8)); /* 0x36091EA4: mov eax, dword ptr [ebp - 8] */ 7266 MEM32(ebp + (-0x18)) = 0; /* 0x36091EA7: mov dword ptr [ebp - 0x18], 0 */ 7267 edx = MEM32(ebp + (-0x18)); /* 0x36091EAE: mov edx, dword ptr [ebp - 0x18] */ 7268 PUSH32(esp, 0x64u); /* 0x36091EB1: push 0x64 */ 7269 MEM32(ecx + 0x8) = edx; /* 0x36091EB3: mov dword ptr [ecx + 8], edx */ 7270 ecx = MEM32(ebp + (-0xC)); /* 0x36091EB6: mov ecx, dword ptr [ebp - 0xc] */ 7271 edx = MEM32(ebp + (-0x4)); /* 0x36091EB9: mov edx, dword ptr [ebp - 4] */ 7272 PUSH32(esp, eax); /* 0x36091EBC: push eax */ 7273 PUSH32(esp, ecx); /* 0x36091EBD: push ecx */ 7274 PUSH32(esp, edx); /* 0x36091EBE: push edx */ 7275 goto L_36091EFC; /* 0x36091EBF: jmp 0x36091efc */ 7276 L_36091EC1: 7277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7279 esp = esp - 0xCu; /* 0x36091EC1: sub esp, 0xc */ 7280 _flag_k = FK_CMP; 7281 edx = esp; /* 0x36091EC4: mov edx, esp */ 7282 MEM32(ebp + (-0x20)) = 0; /* 0x36091EC6: mov dword ptr [ebp - 0x20], 0 */ 7283 eax = MEM32(ebp + (-0x20)); /* 0x36091ECD: mov eax, dword ptr [ebp - 0x20] */ 7284 MEM32(edx) = eax; /* 0x36091ED0: mov dword ptr [edx], eax */ 7285 PUSH32(esp, 0); /* 0x36091ED2: push 0 */ 7286 MEM32(ebp + (-0x1C)) = 0; /* 0x36091ED4: mov dword ptr [ebp - 0x1c], 0 */ 7287 ecx = MEM32(ebp + (-0x1C)); /* 0x36091EDB: mov ecx, dword ptr [ebp - 0x1c] */ 7288 MEM32(edx + 0x4) = ecx; /* 0x36091EDE: mov dword ptr [edx + 4], ecx */ 7289 ecx = MEM32(ebp + (-0x8)); /* 0x36091EE1: mov ecx, dword ptr [ebp - 8] */ 7290 MEM32(ebp + (-0x18)) = 0; /* 0x36091EE4: mov dword ptr [ebp - 0x18], 0 */ 7291 eax = MEM32(ebp + (-0x18)); /* 0x36091EEB: mov eax, dword ptr [ebp - 0x18] */ 7292 PUSH32(esp, 0x64u); /* 0x36091EEE: push 0x64 */ 7293 MEM32(edx + 0x8) = eax; /* 0x36091EF0: mov dword ptr [edx + 8], eax */ 7294 edx = MEM32(ebp + (-0xC)); /* 0x36091EF3: mov edx, dword ptr [ebp - 0xc] */ 7295 eax = MEM32(ebp + (-0x4)); /* 0x36091EF6: mov eax, dword ptr [ebp - 4] */ 7296 PUSH32(esp, ecx); /* 0x36091EF9: push ecx */ 7297 PUSH32(esp, edx); /* 0x36091EFA: push edx */ 7298 PUSH32(esp, eax); /* 0x36091EFB: push eax */ 7299 L_36091EFC: 7300 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 7301 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 7302 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 7303 RECOMP_FLAGS_IN(); 7304 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 7305 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7307 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 7308 _flag_k = FK_CMP; 7309 ecx = esp; /* 0x36091F07: mov ecx, esp */ 7310 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 7311 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 7312 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 7313 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 7314 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 7315 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 7316 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 7317 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 7318 RECOMP_FLAGS_IN(); 7319 ecx = eax; /* 0x36091F20: mov ecx, eax */ 7320 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 7321 RECOMP_FLAGS_IN(); 7322 ecx = edi; /* 0x36091F27: mov ecx, edi */ 7323 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 7324 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 7325 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 7326 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 7327 RECOMP_FLAGS_IN(); 7328 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 7329 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 7330 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 7331 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7333 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 7334 _flag_k = FK_CMP; 7335 edx = esp; /* 0x36091F4F: mov edx, esp */ 7336 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 7337 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 7338 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 7339 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 7340 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 7341 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 7342 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 7343 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 7344 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 7345 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 7346 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 7347 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 7348 RECOMP_FLAGS_IN(); 7349 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 7350 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7352 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 7353 _flag_k = FK_CMP; 7354 ecx = esp; /* 0x36091F75: mov ecx, esp */ 7355 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 7356 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 7357 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 7358 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 7359 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 7360 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 7361 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 7362 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 7363 RECOMP_FLAGS_IN(); 7364 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 7365 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 7366 RECOMP_FLAGS_IN(); 7367 ecx = eax; /* 0x36091F95: mov ecx, eax */ 7368 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 7369 RECOMP_FLAGS_IN(); 7370 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 7371 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 7372 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 7373 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 7374 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 7375 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 7376 RECOMP_REGS_OUT(); 7377 } 7378 7379 void sub_36091E55(void) { 7380 int _fpu_cmp = 0; 7381 uint32_t _cf = 0; 7382 int _df = 1; 7383 uint32_t _flag_k = FK_NONE; 7384 uint32_t _flag_a = 0, _flag_b = 0; 7385 uint32_t _itail_tgt = 0; 7386 RECOMP_REGS_LOCALS 7387 RECOMP_ENTER(0x36091E55u); 7388 7389 L_36091E55: 7390 edx = MEM32(ebp + (-0x18)); /* 0x36091E55: mov edx, dword ptr [ebp - 0x18] */ 7391 PUSH32(esp, 0x64u); /* 0x36091E58: push 0x64 */ 7392 MEM32(ecx + 0x8) = edx; /* 0x36091E5A: mov dword ptr [ecx + 8], edx */ 7393 ecx = MEM32(ebp + (-0xC)); /* 0x36091E5D: mov ecx, dword ptr [ebp - 0xc] */ 7394 edx = MEM32(ebp + (-0x4)); /* 0x36091E60: mov edx, dword ptr [ebp - 4] */ 7395 PUSH32(esp, eax); /* 0x36091E63: push eax */ 7396 PUSH32(esp, ecx); /* 0x36091E64: push ecx */ 7397 PUSH32(esp, edx); /* 0x36091E65: push edx */ 7398 goto L_36091EFC; /* 0x36091E66: jmp 0x36091efc */ 7399 L_36091EFC: 7400 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 7401 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 7402 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 7403 RECOMP_FLAGS_IN(); 7404 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 7405 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7406 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7407 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 7408 _flag_k = FK_CMP; 7409 ecx = esp; /* 0x36091F07: mov ecx, esp */ 7410 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 7411 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 7412 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 7413 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 7414 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 7415 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 7416 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 7417 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 7418 RECOMP_FLAGS_IN(); 7419 ecx = eax; /* 0x36091F20: mov ecx, eax */ 7420 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 7421 RECOMP_FLAGS_IN(); 7422 ecx = edi; /* 0x36091F27: mov ecx, edi */ 7423 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 7424 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 7425 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 7426 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 7427 RECOMP_FLAGS_IN(); 7428 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 7429 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 7430 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 7431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7432 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7433 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 7434 _flag_k = FK_CMP; 7435 edx = esp; /* 0x36091F4F: mov edx, esp */ 7436 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 7437 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 7438 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 7439 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 7440 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 7441 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 7442 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 7443 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 7444 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 7445 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 7446 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 7447 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 7448 RECOMP_FLAGS_IN(); 7449 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 7450 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7451 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7452 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 7453 _flag_k = FK_CMP; 7454 ecx = esp; /* 0x36091F75: mov ecx, esp */ 7455 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 7456 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 7457 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 7458 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 7459 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 7460 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 7461 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 7462 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 7463 RECOMP_FLAGS_IN(); 7464 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 7465 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 7466 RECOMP_FLAGS_IN(); 7467 ecx = eax; /* 0x36091F95: mov ecx, eax */ 7468 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 7469 RECOMP_FLAGS_IN(); 7470 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 7471 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 7472 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 7473 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 7474 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 7475 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 7476 RECOMP_REGS_OUT(); 7477 } 7478 7479 void sub_36091EAE(void) { 7480 int _fpu_cmp = 0; 7481 uint32_t _cf = 0; 7482 int _df = 1; 7483 uint32_t _flag_k = FK_NONE; 7484 uint32_t _flag_a = 0, _flag_b = 0; 7485 uint32_t _itail_tgt = 0; 7486 RECOMP_REGS_LOCALS 7487 RECOMP_ENTER(0x36091EAEu); 7488 7489 L_36091EAE: 7490 edx = MEM32(ebp + (-0x18)); /* 0x36091EAE: mov edx, dword ptr [ebp - 0x18] */ 7491 PUSH32(esp, 0x64u); /* 0x36091EB1: push 0x64 */ 7492 MEM32(ecx + 0x8) = edx; /* 0x36091EB3: mov dword ptr [ecx + 8], edx */ 7493 ecx = MEM32(ebp + (-0xC)); /* 0x36091EB6: mov ecx, dword ptr [ebp - 0xc] */ 7494 edx = MEM32(ebp + (-0x4)); /* 0x36091EB9: mov edx, dword ptr [ebp - 4] */ 7495 PUSH32(esp, eax); /* 0x36091EBC: push eax */ 7496 PUSH32(esp, ecx); /* 0x36091EBD: push ecx */ 7497 PUSH32(esp, edx); /* 0x36091EBE: push edx */ 7498 goto L_36091EFC; /* 0x36091EBF: jmp 0x36091efc */ 7499 L_36091EFC: 7500 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 7501 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 7502 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 7503 RECOMP_FLAGS_IN(); 7504 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 7505 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7507 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 7508 _flag_k = FK_CMP; 7509 ecx = esp; /* 0x36091F07: mov ecx, esp */ 7510 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 7511 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 7512 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 7513 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 7514 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 7515 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 7516 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 7517 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 7518 RECOMP_FLAGS_IN(); 7519 ecx = eax; /* 0x36091F20: mov ecx, eax */ 7520 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 7521 RECOMP_FLAGS_IN(); 7522 ecx = edi; /* 0x36091F27: mov ecx, edi */ 7523 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 7524 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 7525 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 7526 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 7527 RECOMP_FLAGS_IN(); 7528 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 7529 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 7530 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 7531 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7532 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7533 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 7534 _flag_k = FK_CMP; 7535 edx = esp; /* 0x36091F4F: mov edx, esp */ 7536 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 7537 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 7538 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 7539 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 7540 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 7541 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 7542 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 7543 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 7544 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 7545 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 7546 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 7547 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 7548 RECOMP_FLAGS_IN(); 7549 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 7550 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7552 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 7553 _flag_k = FK_CMP; 7554 ecx = esp; /* 0x36091F75: mov ecx, esp */ 7555 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 7556 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 7557 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 7558 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 7559 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 7560 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 7561 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 7562 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 7563 RECOMP_FLAGS_IN(); 7564 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 7565 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 7566 RECOMP_FLAGS_IN(); 7567 ecx = eax; /* 0x36091F95: mov ecx, eax */ 7568 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 7569 RECOMP_FLAGS_IN(); 7570 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 7571 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 7572 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 7573 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 7574 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 7575 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 7576 RECOMP_REGS_OUT(); 7577 } 7578 7579 void sub_36091EEB(void) { 7580 int _fpu_cmp = 0; 7581 uint32_t _cf = 0; 7582 int _df = 1; 7583 uint32_t _flag_k = FK_NONE; 7584 uint32_t _flag_a = 0, _flag_b = 0; 7585 uint32_t _itail_tgt = 0; 7586 RECOMP_REGS_LOCALS 7587 RECOMP_ENTER(0x36091EEBu); 7588 7589 L_36091EEB: 7590 eax = MEM32(ebp + (-0x18)); /* 0x36091EEB: mov eax, dword ptr [ebp - 0x18] */ 7591 PUSH32(esp, 0x64u); /* 0x36091EEE: push 0x64 */ 7592 MEM32(edx + 0x8) = eax; /* 0x36091EF0: mov dword ptr [edx + 8], eax */ 7593 edx = MEM32(ebp + (-0xC)); /* 0x36091EF3: mov edx, dword ptr [ebp - 0xc] */ 7594 eax = MEM32(ebp + (-0x4)); /* 0x36091EF6: mov eax, dword ptr [ebp - 4] */ 7595 PUSH32(esp, ecx); /* 0x36091EF9: push ecx */ 7596 PUSH32(esp, edx); /* 0x36091EFA: push edx */ 7597 PUSH32(esp, eax); /* 0x36091EFB: push eax */ 7598 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 7599 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 7600 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 7601 RECOMP_FLAGS_IN(); 7602 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 7603 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7605 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 7606 _flag_k = FK_CMP; 7607 ecx = esp; /* 0x36091F07: mov ecx, esp */ 7608 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 7609 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 7610 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 7611 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 7612 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 7613 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 7614 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 7615 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 7616 RECOMP_FLAGS_IN(); 7617 ecx = eax; /* 0x36091F20: mov ecx, eax */ 7618 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 7619 RECOMP_FLAGS_IN(); 7620 ecx = edi; /* 0x36091F27: mov ecx, edi */ 7621 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 7622 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 7623 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 7624 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 7625 RECOMP_FLAGS_IN(); 7626 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 7627 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 7628 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 7629 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7631 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 7632 _flag_k = FK_CMP; 7633 edx = esp; /* 0x36091F4F: mov edx, esp */ 7634 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 7635 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 7636 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 7637 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 7638 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 7639 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 7640 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 7641 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 7642 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 7643 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 7644 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 7645 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 7646 RECOMP_FLAGS_IN(); 7647 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 7648 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7649 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7650 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 7651 _flag_k = FK_CMP; 7652 ecx = esp; /* 0x36091F75: mov ecx, esp */ 7653 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 7654 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 7655 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 7656 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 7657 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 7658 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 7659 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 7660 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 7661 RECOMP_FLAGS_IN(); 7662 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 7663 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 7664 RECOMP_FLAGS_IN(); 7665 ecx = eax; /* 0x36091F95: mov ecx, eax */ 7666 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 7667 RECOMP_FLAGS_IN(); 7668 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 7669 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 7670 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 7671 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 7672 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 7673 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 7674 RECOMP_REGS_OUT(); 7675 } 7676 7677 void sub_36091EFC(void) { 7678 int _fpu_cmp = 0; 7679 uint32_t _cf = 0; 7680 int _df = 1; 7681 uint32_t _flag_k = FK_NONE; 7682 uint32_t _flag_a = 0, _flag_b = 0; 7683 uint32_t _itail_tgt = 0; 7684 RECOMP_REGS_LOCALS 7685 RECOMP_ENTER(0x36091EFCu); 7686 7687 L_36091EFC: 7688 PUSH32(esp, 0); /* 0x36091EFC: push 0 */ 7689 ecx = esi; /* 0x36091EFE: mov ecx, esi */ 7690 RECOMP_ICALL(ebx); /* 0x36091F00: call ebx */ 7691 RECOMP_FLAGS_IN(); 7692 edx = MEM32(eax); /* 0x36091F02: mov edx, dword ptr [eax] */ 7693 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7694 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7695 esp = esp - 0xCu; /* 0x36091F04: sub esp, 0xc */ 7696 _flag_k = FK_CMP; 7697 ecx = esp; /* 0x36091F07: mov ecx, esp */ 7698 MEM32(ecx) = edx; /* 0x36091F09: mov dword ptr [ecx], edx */ 7699 edx = MEM32(eax + 0x4); /* 0x36091F0B: mov edx, dword ptr [eax + 4] */ 7700 eax = MEM32(eax + 0x8); /* 0x36091F0E: mov eax, dword ptr [eax + 8] */ 7701 MEM32(ecx + 0x4) = edx; /* 0x36091F11: mov dword ptr [ecx + 4], edx */ 7702 MEM32(ecx + 0x8) = eax; /* 0x36091F14: mov dword ptr [ecx + 8], eax */ 7703 ecx = MEM32(ebp + (-0x10)); /* 0x36091F17: mov ecx, dword ptr [ebp - 0x10] */ 7704 PUSH32(esp, ecx); /* 0x36091F1A: push ecx */ 7705 RECOMP_ICALL(0x3601C590u); /* 0x36091F1B: call 0x3601c590 */ /* not lifted */ 7706 RECOMP_FLAGS_IN(); 7707 ecx = eax; /* 0x36091F20: mov ecx, eax */ 7708 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F22: call 0x3601cbf0 */ /* not lifted */ 7709 RECOMP_FLAGS_IN(); 7710 ecx = edi; /* 0x36091F27: mov ecx, edi */ 7711 MEM32(ebp + (-0x20)) = 0; /* 0x36091F29: mov dword ptr [ebp - 0x20], 0 */ 7712 MEM32(ebp + (-0x1C)) = 0; /* 0x36091F30: mov dword ptr [ebp - 0x1c], 0 */ 7713 MEM32(ebp + (-0x18)) = 0; /* 0x36091F37: mov dword ptr [ebp - 0x18], 0 */ 7714 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 7715 RECOMP_FLAGS_IN(); 7716 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 7717 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 7718 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 7719 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7720 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7721 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 7722 _flag_k = FK_CMP; 7723 edx = esp; /* 0x36091F4F: mov edx, esp */ 7724 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 7725 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 7726 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 7727 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 7728 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 7729 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 7730 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 7731 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 7732 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 7733 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 7734 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 7735 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 7736 RECOMP_FLAGS_IN(); 7737 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 7738 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7739 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7740 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 7741 _flag_k = FK_CMP; 7742 ecx = esp; /* 0x36091F75: mov ecx, esp */ 7743 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 7744 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 7745 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 7746 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 7747 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 7748 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 7749 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 7750 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 7751 RECOMP_FLAGS_IN(); 7752 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 7753 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 7754 RECOMP_FLAGS_IN(); 7755 ecx = eax; /* 0x36091F95: mov ecx, eax */ 7756 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 7757 RECOMP_FLAGS_IN(); 7758 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 7759 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 7760 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 7761 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 7762 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 7763 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 7764 RECOMP_REGS_OUT(); 7765 } 7766 7767 void sub_36091F3E(void) { 7768 int _fpu_cmp = 0; 7769 uint32_t _cf = 0; 7770 int _df = 1; 7771 uint32_t _flag_k = FK_NONE; 7772 uint32_t _flag_a = 0, _flag_b = 0; 7773 uint32_t _itail_tgt = 0; 7774 RECOMP_REGS_LOCALS 7775 RECOMP_ENTER(0x36091F3Eu); 7776 7777 L_36091F3E: 7778 RECOMP_ICALL(0x3608F980u); /* 0x36091F3E: call 0x3608f980 */ /* not lifted */ 7779 RECOMP_FLAGS_IN(); 7780 esi = MEM32(eax + 0x1C); /* 0x36091F43: mov esi, dword ptr [eax + 0x1c] */ 7781 eax = MEM32(ebp + (-0x20)); /* 0x36091F46: mov eax, dword ptr [ebp - 0x20] */ 7782 ecx = MEM32(ebp + (-0x1C)); /* 0x36091F49: mov ecx, dword ptr [ebp - 0x1c] */ 7783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7784 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7785 esp = esp - 0xCu; /* 0x36091F4C: sub esp, 0xc */ 7786 _flag_k = FK_CMP; 7787 edx = esp; /* 0x36091F4F: mov edx, esp */ 7788 PUSH32(esp, 1); /* 0x36091F51: push 1 */ 7789 PUSH32(esp, 0x64u); /* 0x36091F53: push 0x64 */ 7790 PUSH32(esp, 0); /* 0x36091F55: push 0 */ 7791 MEM32(edx) = eax; /* 0x36091F57: mov dword ptr [edx], eax */ 7792 eax = MEM32(ebp + (-0x18)); /* 0x36091F59: mov eax, dword ptr [ebp - 0x18] */ 7793 PUSH32(esp, 0); /* 0x36091F5C: push 0 */ 7794 MEM32(edx + 0x4) = ecx; /* 0x36091F5E: mov dword ptr [edx + 4], ecx */ 7795 ecx = MEM32(ebp + 0xC); /* 0x36091F61: mov ecx, dword ptr [ebp + 0xc] */ 7796 PUSH32(esp, 0x3F800000u); /* 0x36091F64: push 0x3f800000 */ 7797 PUSH32(esp, 0); /* 0x36091F69: push 0 */ 7798 MEM32(edx + 0x8) = eax; /* 0x36091F6B: mov dword ptr [edx + 8], eax */ 7799 RECOMP_ICALL(ebx); /* 0x36091F6E: call ebx */ 7800 RECOMP_FLAGS_IN(); 7801 edx = MEM32(eax); /* 0x36091F70: mov edx, dword ptr [eax] */ 7802 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 7803 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7804 esp = esp - 0xCu; /* 0x36091F72: sub esp, 0xc */ 7805 _flag_k = FK_CMP; 7806 ecx = esp; /* 0x36091F75: mov ecx, esp */ 7807 MEM32(ecx) = edx; /* 0x36091F77: mov dword ptr [ecx], edx */ 7808 edx = MEM32(eax + 0x4); /* 0x36091F79: mov edx, dword ptr [eax + 4] */ 7809 eax = MEM32(eax + 0x8); /* 0x36091F7C: mov eax, dword ptr [eax + 8] */ 7810 MEM32(ecx + 0x4) = edx; /* 0x36091F7F: mov dword ptr [ecx + 4], edx */ 7811 MEM32(ecx + 0x8) = eax; /* 0x36091F82: mov dword ptr [ecx + 8], eax */ 7812 PUSH32(esp, 0xBu); /* 0x36091F85: push 0xb */ 7813 ecx = esi + 0x4C; /* 0x36091F87: lea ecx, [esi + 0x4c] */ 7814 RECOMP_ICALL(0x3608ABF0u); /* 0x36091F8A: call 0x3608abf0 */ /* not lifted */ 7815 RECOMP_FLAGS_IN(); 7816 PUSH32(esp, eax); /* 0x36091F8F: push eax */ 7817 RECOMP_ICALL(0x3601C590u); /* 0x36091F90: call 0x3601c590 */ /* not lifted */ 7818 RECOMP_FLAGS_IN(); 7819 ecx = eax; /* 0x36091F95: mov ecx, eax */ 7820 RECOMP_ICALL(0x3601CBF0u); /* 0x36091F97: call 0x3601cbf0 */ /* not lifted */ 7821 RECOMP_FLAGS_IN(); 7822 edi = POP32_VAL(esp); /* 0x36091F9C: pop edi */ 7823 esi = POP32_VAL(esp); /* 0x36091F9D: pop esi */ 7824 ebx = POP32_VAL(esp); /* 0x36091F9E: pop ebx */ 7825 esp = ebp; /* 0x36091F9F: mov esp, ebp */ 7826 ebp = POP32_VAL(esp); /* 0x36091FA1: pop ebp */ 7827 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36091FA2: ret 0xc */ 7828 RECOMP_REGS_OUT(); 7829 } 7830 7831 void sub_36091FC0(void) { 7832 int _fpu_cmp = 0; 7833 uint32_t _cf = 0; 7834 int _df = 1; 7835 uint32_t _flag_k = FK_NONE; 7836 uint32_t _flag_a = 0, _flag_b = 0; 7837 uint32_t _itail_tgt = 0; 7838 RECOMP_REGS_LOCALS 7839 RECOMP_ENTER(0x36091FC0u); 7840 7841 L_36091FC0: 7842 PUSH32(esp, ebp); /* 0x36091FC0: push ebp */ 7843 ebp = esp; /* 0x36091FC1: mov ebp, esp */ 7844 eax = MEM32(ebp + 0x8); /* 0x36091FC3: mov eax, dword ptr [ebp + 8] */ 7845 PUSH32(esp, eax); /* 0x36091FC6: push eax */ 7846 RECOMP_ICALL(0x3608EDE0u); /* 0x36091FC7: call 0x3608ede0 */ /* not lifted */ 7847 RECOMP_FLAGS_IN(); 7848 ebp = POP32_VAL(esp); /* 0x36091FCC: pop ebp */ 7849 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36091FCD: ret 4 */ 7850 RECOMP_REGS_OUT(); 7851 } 7852 7853 void sub_36091FD0(void) { 7854 int _fpu_cmp = 0; 7855 uint32_t _cf = 0; 7856 int _df = 1; 7857 uint32_t _flag_k = FK_NONE; 7858 uint32_t _flag_a = 0, _flag_b = 0; 7859 uint32_t _itail_tgt = 0; 7860 RECOMP_REGS_LOCALS 7861 RECOMP_ENTER(0x36091FD0u); 7862 7863 L_36091FD0: 7864 eax = MEM32(ecx); /* 0x36091FD0: mov eax, dword ptr [ecx] */ 7865 PUSH32(esp, 0x362EA510u); /* 0x36091FD2: push 0x362ea510 */ 7866 PUSH32(esp, 0); /* 0x36091FD7: push 0 */ 7867 PUSH32(esp, ecx); /* 0x36091FD9: push ecx */ 7868 PUSH32(esp, 5); /* 0x36091FDA: push 5 */ 7869 RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x36091FDC: call dword ptr [eax + 0x30] */ 7870 RECOMP_FLAGS_IN(); 7871 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36091FDF: ret */ 7872 RECOMP_REGS_OUT(); 7873 } 7874 7875 void sub_36091FE0(void) { 7876 int _fpu_cmp = 0; 7877 uint32_t _cf = 0; 7878 int _df = 1; 7879 uint32_t _flag_k = FK_NONE; 7880 uint32_t _flag_a = 0, _flag_b = 0; 7881 uint32_t _itail_tgt = 0; 7882 RECOMP_REGS_LOCALS 7883 RECOMP_ENTER(0x36091FE0u); 7884 7885 L_36091FE0: 7886 PUSH32(esp, ebp); /* 0x36091FE0: push ebp */ 7887 ebp = esp; /* 0x36091FE1: mov ebp, esp */ 7888 PUSH32(esp, ebx); /* 0x36091FE3: push ebx */ 7889 ebx = MEM32(ebp + 0x18); /* 0x36091FE4: mov ebx, dword ptr [ebp + 0x18] */ 7890 PUSH32(esp, esi); /* 0x36091FE7: push esi */ 7891 PUSH32(esp, edi); /* 0x36091FE8: push edi */ 7892 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7893 edi = 0; /* 0x36091FE9: xor edi, edi */ 7894 _cf = 0; 7895 _flag_k = FK_TEST; 7896 /* cmp ebx, 2 */ /* 0x36091FEB: cmp ebx, 2 */ 7897 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(2); 7898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7899 _flag_k = FK_CMP; 7900 esi = ecx; /* 0x36091FEE: mov esi, ecx */ 7901 if (CMP_A(_flag_a, _flag_b)) goto L_3609201D; /* 0x36091FF0: ja 0x3609201d */ 7902 L_36091FF2: 7903 PUSH32(esp, 0x10u); /* 0x36091FF2: push 0x10 */ 7904 RECOMP_ICALL(0x3615FD6Au); /* 0x36091FF4: call 0x3615fd6a */ /* not lifted */ 7905 RECOMP_FLAGS_IN(); 7906 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7907 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7908 esp = esp + 4; /* 0x36091FF9: add esp, 4 */ 7909 _flag_k = FK_ADD; 7910 /* test eax, eax */ /* 0x36091FFC: test eax, eax */ 7911 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7912 _cf = 0; 7913 _flag_k = FK_TEST; 7914 if (TEST_Z(_flag_a, _flag_b)) goto L_36092019; /* 0x36091FFE: je 0x36092019 */ 7915 L_36092000: 7916 ecx = MEM32(ebp + 0x8); /* 0x36092000: mov ecx, dword ptr [ebp + 8] */ 7917 edx = MEM32(ebp + 0xC); /* 0x36092003: mov edx, dword ptr [ebp + 0xc] */ 7918 MEM32(eax) = ecx; /* 0x36092006: mov dword ptr [eax], ecx */ 7919 ecx = MEM32(ebp + 0x10); /* 0x36092008: mov ecx, dword ptr [ebp + 0x10] */ 7920 MEM32(eax + 0x4) = edx; /* 0x3609200B: mov dword ptr [eax + 4], edx */ 7921 edx = MEM32(ebp + 0x14); /* 0x3609200E: mov edx, dword ptr [ebp + 0x14] */ 7922 MEM32(eax + 0x8) = ecx; /* 0x36092011: mov dword ptr [eax + 8], ecx */ 7923 MEM32(eax + 0xC) = edx; /* 0x36092014: mov dword ptr [eax + 0xc], edx */ 7924 goto L_3609201B; /* 0x36092017: jmp 0x3609201b */ 7925 L_36092019: 7926 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7927 eax = 0; /* 0x36092019: xor eax, eax */ 7928 _cf = 0; 7929 _flag_k = FK_TEST; 7930 L_3609201B: 7931 edi = eax; /* 0x3609201B: mov edi, eax */ 7932 L_3609201D: 7933 eax = ebx; /* 0x3609201D: mov eax, ebx */ 7934 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0); 7935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7936 eax = eax - 0; /* 0x3609201F: sub eax, 0 */ 7937 _flag_k = FK_CMP; 7938 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3609206A; /* 0x36092022: je 0x3609206a */ 7939 L_36092024: 7940 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7941 eax = eax - 1; /* 0x36092024: dec eax */ 7942 _flag_k = FK_DEC; 7943 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3609204A; /* 0x36092025: je 0x3609204a */ 7944 L_36092027: 7945 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 7946 eax = eax - 1; /* 0x36092027: dec eax */ 7947 _flag_k = FK_DEC; 7948 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_36092083; /* 0x36092028: jne 0x36092083 */ 7949 L_3609202A: 7950 eax = MEM32(esi + 0x98); /* 0x3609202A: mov eax, dword ptr [esi + 0x98] */ 7951 /* test eax, eax */ /* 0x36092030: test eax, eax */ 7952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7953 _cf = 0; 7954 _flag_k = FK_TEST; 7955 if (TEST_Z(_flag_a, _flag_b)) goto L_3609203D; /* 0x36092032: je 0x3609203d */ 7956 L_36092034: 7957 PUSH32(esp, eax); /* 0x36092034: push eax */ 7958 RECOMP_ICALL(0x3615FCC4u); /* 0x36092035: call 0x3615fcc4 */ /* not lifted */ 7959 RECOMP_FLAGS_IN(); 7960 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7961 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7962 esp = esp + 4; /* 0x3609203A: add esp, 4 */ 7963 _flag_k = FK_ADD; 7964 L_3609203D: 7965 MEM32(esi + 0x98) = edi; /* 0x3609203D: mov dword ptr [esi + 0x98], edi */ 7966 edi = POP32_VAL(esp); /* 0x36092043: pop edi */ 7967 esi = POP32_VAL(esp); /* 0x36092044: pop esi */ 7968 ebx = POP32_VAL(esp); /* 0x36092045: pop ebx */ 7969 ebp = POP32_VAL(esp); /* 0x36092046: pop ebp */ 7970 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36092047: ret 0x14 */ 7971 L_3609204A: 7972 eax = MEM32(esi + 0x94); /* 0x3609204A: mov eax, dword ptr [esi + 0x94] */ 7973 /* test eax, eax */ /* 0x36092050: test eax, eax */ 7974 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7975 _cf = 0; 7976 _flag_k = FK_TEST; 7977 if (TEST_Z(_flag_a, _flag_b)) goto L_3609205D; /* 0x36092052: je 0x3609205d */ 7978 L_36092054: 7979 PUSH32(esp, eax); /* 0x36092054: push eax */ 7980 RECOMP_ICALL(0x3615FCC4u); /* 0x36092055: call 0x3615fcc4 */ /* not lifted */ 7981 RECOMP_FLAGS_IN(); 7982 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7983 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7984 esp = esp + 4; /* 0x3609205A: add esp, 4 */ 7985 _flag_k = FK_ADD; 7986 L_3609205D: 7987 MEM32(esi + 0x94) = edi; /* 0x3609205D: mov dword ptr [esi + 0x94], edi */ 7988 edi = POP32_VAL(esp); /* 0x36092063: pop edi */ 7989 esi = POP32_VAL(esp); /* 0x36092064: pop esi */ 7990 ebx = POP32_VAL(esp); /* 0x36092065: pop ebx */ 7991 ebp = POP32_VAL(esp); /* 0x36092066: pop ebp */ 7992 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36092067: ret 0x14 */ 7993 L_3609206A: 7994 eax = MEM32(esi + 0x90); /* 0x3609206A: mov eax, dword ptr [esi + 0x90] */ 7995 /* test eax, eax */ /* 0x36092070: test eax, eax */ 7996 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7997 _cf = 0; 7998 _flag_k = FK_TEST; 7999 if (TEST_Z(_flag_a, _flag_b)) goto L_3609207D; /* 0x36092072: je 0x3609207d */ 8000 L_36092074: 8001 PUSH32(esp, eax); /* 0x36092074: push eax */ 8002 RECOMP_ICALL(0x3615FCC4u); /* 0x36092075: call 0x3615fcc4 */ /* not lifted */ 8003 RECOMP_FLAGS_IN(); 8004 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8005 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8006 esp = esp + 4; /* 0x3609207A: add esp, 4 */ 8007 _flag_k = FK_ADD; 8008 L_3609207D: 8009 MEM32(esi + 0x90) = edi; /* 0x3609207D: mov dword ptr [esi + 0x90], edi */ 8010 L_36092083: 8011 edi = POP32_VAL(esp); /* 0x36092083: pop edi */ 8012 esi = POP32_VAL(esp); /* 0x36092084: pop esi */ 8013 ebx = POP32_VAL(esp); /* 0x36092085: pop ebx */ 8014 ebp = POP32_VAL(esp); /* 0x36092086: pop ebp */ 8015 RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x36092087: ret 0x14 */ 8016 RECOMP_REGS_OUT(); 8017 } 8018 8019 void sub_36092090(void) { 8020 int _fpu_cmp = 0; 8021 uint32_t _cf = 0; 8022 int _df = 1; 8023 uint32_t _flag_k = FK_NONE; 8024 uint32_t _flag_a = 0, _flag_b = 0; 8025 uint32_t _itail_tgt = 0; 8026 RECOMP_REGS_LOCALS 8027 RECOMP_ENTER(0x36092090u); 8028 8029 goto L_36092090; 8030 L_360917C0: 8031 PUSH32(esp, ebp); /* 0x360917C0: push ebp */ 8032 ebp = esp; /* 0x360917C1: mov ebp, esp */ 8033 PUSH32(esp, esi); /* 0x360917C3: push esi */ 8034 esi = ecx; /* 0x360917C4: mov esi, ecx */ 8035 RECOMP_ICALL(0x360917F0u); /* 0x360917C6: call 0x360917f0 */ /* not lifted */ 8036 RECOMP_FLAGS_IN(); 8037 /* test MEM8(ebp + 0x8), 1 */ /* 0x360917CB: test byte ptr [ebp + 8], 1 */ 8038 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8039 _cf = 0; 8040 _flag_k = FK_NARROW(FK_TEST, 24); 8041 if (TEST_Z(_flag_a, _flag_b)) goto L_360917DA; /* 0x360917CF: je 0x360917da */ 8042 L_360917D1: 8043 PUSH32(esp, esi); /* 0x360917D1: push esi */ 8044 RECOMP_ICALL(0x3615FCC4u); /* 0x360917D2: call 0x3615fcc4 */ /* not lifted */ 8045 RECOMP_FLAGS_IN(); 8046 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8047 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8048 esp = esp + 4; /* 0x360917D7: add esp, 4 */ 8049 _flag_k = FK_ADD; 8050 L_360917DA: 8051 eax = esi; /* 0x360917DA: mov eax, esi */ 8052 esi = POP32_VAL(esp); /* 0x360917DC: pop esi */ 8053 ebp = POP32_VAL(esp); /* 0x360917DD: pop ebp */ 8054 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360917DE: ret 4 */ 8055 L_36092090: 8056 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 8057 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8058 ecx = ecx - 8; /* 0x36092090: sub ecx, 8 */ 8059 _flag_k = FK_CMP; 8060 RECOMP_BACKEDGE(); 8061 goto L_360917C0; /* 0x36092093: jmp 0x360917c0 */ 8062 { RECOMP_REGS_OUT(); return; } /* end of function */ 8063 RECOMP_REGS_OUT(); 8064 } 8065 8066 void sub_360920A0(void) { 8067 int _fpu_cmp = 0; 8068 uint32_t _cf = 0; 8069 int _df = 1; 8070 uint32_t _flag_k = FK_NONE; 8071 uint32_t _flag_a = 0, _flag_b = 0; 8072 uint32_t _itail_tgt = 0; 8073 RECOMP_REGS_LOCALS 8074 RECOMP_ENTER(0x360920A0u); 8075 8076 goto L_360920A0; 8077 L_360917C0: 8078 PUSH32(esp, ebp); /* 0x360917C0: push ebp */ 8079 ebp = esp; /* 0x360917C1: mov ebp, esp */ 8080 PUSH32(esp, esi); /* 0x360917C3: push esi */ 8081 esi = ecx; /* 0x360917C4: mov esi, ecx */ 8082 RECOMP_ICALL(0x360917F0u); /* 0x360917C6: call 0x360917f0 */ /* not lifted */ 8083 RECOMP_FLAGS_IN(); 8084 /* test MEM8(ebp + 0x8), 1 */ /* 0x360917CB: test byte ptr [ebp + 8], 1 */ 8085 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8086 _cf = 0; 8087 _flag_k = FK_NARROW(FK_TEST, 24); 8088 if (TEST_Z(_flag_a, _flag_b)) goto L_360917DA; /* 0x360917CF: je 0x360917da */ 8089 L_360917D1: 8090 PUSH32(esp, esi); /* 0x360917D1: push esi */ 8091 RECOMP_ICALL(0x3615FCC4u); /* 0x360917D2: call 0x3615fcc4 */ /* not lifted */ 8092 RECOMP_FLAGS_IN(); 8093 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8094 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8095 esp = esp + 4; /* 0x360917D7: add esp, 4 */ 8096 _flag_k = FK_ADD; 8097 L_360917DA: 8098 eax = esi; /* 0x360917DA: mov eax, esi */ 8099 esi = POP32_VAL(esp); /* 0x360917DC: pop esi */ 8100 ebp = POP32_VAL(esp); /* 0x360917DD: pop ebp */ 8101 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360917DE: ret 4 */ 8102 L_360920A0: 8103 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 8104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8105 ecx = ecx - 0x40u; /* 0x360920A0: sub ecx, 0x40 */ 8106 _flag_k = FK_CMP; 8107 RECOMP_BACKEDGE(); 8108 goto L_360917C0; /* 0x360920A3: jmp 0x360917c0 */ 8109 { RECOMP_REGS_OUT(); return; } /* end of function */ 8110 RECOMP_REGS_OUT(); 8111 } 8112 8113 void sub_360920B0(void) { 8114 int _fpu_cmp = 0; 8115 uint32_t _cf = 0; 8116 int _df = 1; 8117 uint32_t _flag_k = FK_NONE; 8118 uint32_t _flag_a = 0, _flag_b = 0; 8119 uint32_t _itail_tgt = 0; 8120 RECOMP_REGS_LOCALS 8121 RECOMP_ENTER(0x360920B0u); 8122 8123 goto L_360920B0; 8124 L_360917C0: 8125 PUSH32(esp, ebp); /* 0x360917C0: push ebp */ 8126 ebp = esp; /* 0x360917C1: mov ebp, esp */ 8127 PUSH32(esp, esi); /* 0x360917C3: push esi */ 8128 esi = ecx; /* 0x360917C4: mov esi, ecx */ 8129 RECOMP_ICALL(0x360917F0u); /* 0x360917C6: call 0x360917f0 */ /* not lifted */ 8130 RECOMP_FLAGS_IN(); 8131 /* test MEM8(ebp + 0x8), 1 */ /* 0x360917CB: test byte ptr [ebp + 8], 1 */ 8132 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8133 _cf = 0; 8134 _flag_k = FK_NARROW(FK_TEST, 24); 8135 if (TEST_Z(_flag_a, _flag_b)) goto L_360917DA; /* 0x360917CF: je 0x360917da */ 8136 L_360917D1: 8137 PUSH32(esp, esi); /* 0x360917D1: push esi */ 8138 RECOMP_ICALL(0x3615FCC4u); /* 0x360917D2: call 0x3615fcc4 */ /* not lifted */ 8139 RECOMP_FLAGS_IN(); 8140 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8141 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8142 esp = esp + 4; /* 0x360917D7: add esp, 4 */ 8143 _flag_k = FK_ADD; 8144 L_360917DA: 8145 eax = esi; /* 0x360917DA: mov eax, esi */ 8146 esi = POP32_VAL(esp); /* 0x360917DC: pop esi */ 8147 ebp = POP32_VAL(esp); /* 0x360917DD: pop ebp */ 8148 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360917DE: ret 4 */ 8149 L_360920B0: 8150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 8151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8152 ecx = ecx - 0x4Cu; /* 0x360920B0: sub ecx, 0x4c */ 8153 _flag_k = FK_CMP; 8154 RECOMP_BACKEDGE(); 8155 goto L_360917C0; /* 0x360920B3: jmp 0x360917c0 */ 8156 { RECOMP_REGS_OUT(); return; } /* end of function */ 8157 RECOMP_REGS_OUT(); 8158 } 8159 8160 void sub_360920C0(void) { 8161 int _fpu_cmp = 0; 8162 uint32_t _cf = 0; 8163 int _df = 1; 8164 uint32_t _flag_k = FK_NONE; 8165 uint32_t _flag_a = 0, _flag_b = 0; 8166 uint32_t _itail_tgt = 0; 8167 RECOMP_REGS_LOCALS 8168 RECOMP_ENTER(0x360920C0u); 8169 8170 L_360920C0: 8171 PUSH32(esp, ebp); /* 0x360920C0: push ebp */ 8172 ebp = esp; /* 0x360920C1: mov ebp, esp */ 8173 PUSH32(esp, 0xFFFFFFFFu); /* 0x360920C3: push -1 */ 8174 PUSH32(esp, 0x36166248u); /* 0x360920C5: push 0x36166248 */ 8175 eax = MEM32(FS_BASE + (0)); /* 0x360920CA: mov eax, dword ptr fs:[0] */ 8176 PUSH32(esp, eax); /* 0x360920D0: push eax */ 8177 MEM32(FS_BASE + (0)) = esp; /* 0x360920D1: mov dword ptr fs:[0], esp */ 8178 PUSH32(esp, ecx); /* 0x360920D8: push ecx */ 8179 eax = MEM32(ebp + 0xC); /* 0x360920D9: mov eax, dword ptr [ebp + 0xc] */ 8180 PUSH32(esp, esi); /* 0x360920DC: push esi */ 8181 esi = ecx; /* 0x360920DD: mov esi, ecx */ 8182 ecx = MEM32(ebp + 0x8); /* 0x360920DF: mov ecx, dword ptr [ebp + 8] */ 8183 PUSH32(esp, eax); /* 0x360920E2: push eax */ 8184 PUSH32(esp, ecx); /* 0x360920E3: push ecx */ 8185 ecx = esi; /* 0x360920E4: mov ecx, esi */ 8186 MEM32(ebp + (-0x10)) = esi; /* 0x360920E6: mov dword ptr [ebp - 0x10], esi */ 8187 RECOMP_ICALL(0x3609C3C0u); /* 0x360920E9: call 0x3609c3c0 */ /* not lifted */ 8188 RECOMP_FLAGS_IN(); 8189 ecx = esi; /* 0x360920EE: mov ecx, esi */ 8190 MEM32(ebp + (-0x4)) = 0; /* 0x360920F0: mov dword ptr [ebp - 4], 0 */ 8191 MEM32(esi) = 0x36172C6Cu; /* 0x360920F7: mov dword ptr [esi], 0x36172c6c */ 8192 MEM32(esi + 0x8) = 0x36172C5Cu; /* 0x360920FD: mov dword ptr [esi + 8], 0x36172c5c */ 8193 MEM32(esi + 0x40) = 0x36172C54u; /* 0x36092104: mov dword ptr [esi + 0x40], 0x36172c54 */ 8194 MEM32(esi + 0x4C) = 0x36172C4Cu; /* 0x3609210B: mov dword ptr [esi + 0x4c], 0x36172c4c */ 8195 MEM32(esi + 0x80) = 0x36172C38u; /* 0x36092112: mov dword ptr [esi + 0x80], 0x36172c38 */ 8196 MEM32(esi + 0x8C) = 0x36172B94u; /* 0x3609211C: mov dword ptr [esi + 0x8c], 0x36172b94 */ 8197 MEM32(esi + 0xA8) = 0x36172B7Cu; /* 0x36092126: mov dword ptr [esi + 0xa8], 0x36172b7c */ 8198 MEM32(esi + 0xAC) = 0x36172B74u; /* 0x36092130: mov dword ptr [esi + 0xac], 0x36172b74 */ 8199 RECOMP_ICALL(0x360E2940u); /* 0x3609213A: call 0x360e2940 */ /* not lifted */ 8200 RECOMP_FLAGS_IN(); 8201 ecx = MEM32(ebp + (-0xC)); /* 0x3609213F: mov ecx, dword ptr [ebp - 0xc] */ 8202 eax = esi; /* 0x36092142: mov eax, esi */ 8203 esi = POP32_VAL(esp); /* 0x36092144: pop esi */ 8204 MEM32(FS_BASE + (0)) = ecx; /* 0x36092145: mov dword ptr fs:[0], ecx */ 8205 esp = ebp; /* 0x3609214C: mov esp, ebp */ 8206 ebp = POP32_VAL(esp); /* 0x3609214E: pop ebp */ 8207 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3609214F: ret 8 */ 8208 RECOMP_REGS_OUT(); 8209 } 8210 8211 void sub_36092160(void) { 8212 int _fpu_cmp = 0; 8213 uint32_t _cf = 0; 8214 int _df = 1; 8215 uint32_t _flag_k = FK_NONE; 8216 uint32_t _flag_a = 0, _flag_b = 0; 8217 uint32_t _itail_tgt = 0; 8218 RECOMP_REGS_LOCALS 8219 RECOMP_ENTER(0x36092160u); 8220 8221 L_36092160: 8222 PUSH32(esp, ebp); /* 0x36092160: push ebp */ 8223 ebp = esp; /* 0x36092161: mov ebp, esp */ 8224 PUSH32(esp, esi); /* 0x36092163: push esi */ 8225 esi = ecx; /* 0x36092164: mov esi, ecx */ 8226 RECOMP_ICALL(0x36092190u); /* 0x36092166: call 0x36092190 */ /* not lifted */ 8227 RECOMP_FLAGS_IN(); 8228 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609216B: test byte ptr [ebp + 8], 1 */ 8229 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 8230 _cf = 0; 8231 _flag_k = FK_NARROW(FK_TEST, 24); 8232 if (TEST_Z(_flag_a, _flag_b)) goto L_3609217A; /* 0x3609216F: je 0x3609217a */ 8233 L_36092171: 8234 PUSH32(esp, esi); /* 0x36092171: push esi */ 8235 RECOMP_ICALL(0x3615FCC4u); /* 0x36092172: call 0x3615fcc4 */ /* not lifted */ 8236 RECOMP_FLAGS_IN(); 8237 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8238 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8239 esp = esp + 4; /* 0x36092177: add esp, 4 */ 8240 _flag_k = FK_ADD; 8241 L_3609217A: 8242 eax = esi; /* 0x3609217A: mov eax, esi */ 8243 esi = POP32_VAL(esp); /* 0x3609217C: pop esi */ 8244 ebp = POP32_VAL(esp); /* 0x3609217D: pop ebp */ 8245 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609217E: ret 4 */ 8246 RECOMP_REGS_OUT(); 8247 } 8248 8249 void sub_36092190(void) { 8250 int _fpu_cmp = 0; 8251 uint32_t _cf = 0; 8252 int _df = 1; 8253 uint32_t _flag_k = FK_NONE; 8254 uint32_t _flag_a = 0, _flag_b = 0; 8255 uint32_t _itail_tgt = 0; 8256 RECOMP_REGS_LOCALS 8257 RECOMP_ENTER(0x36092190u); 8258 8259 L_36092190: 8260 MEM32(ecx) = 0x36172C6Cu; /* 0x36092190: mov dword ptr [ecx], 0x36172c6c */ 8261 MEM32(ecx + 0x8) = 0x36172C5Cu; /* 0x36092196: mov dword ptr [ecx + 8], 0x36172c5c */ 8262 MEM32(ecx + 0x40) = 0x36172C54u; /* 0x3609219D: mov dword ptr [ecx + 0x40], 0x36172c54 */ 8263 MEM32(ecx + 0x4C) = 0x36172C4Cu; /* 0x360921A4: mov dword ptr [ecx + 0x4c], 0x36172c4c */ 8264 MEM32(ecx + 0x80) = 0x36172C38u; /* 0x360921AB: mov dword ptr [ecx + 0x80], 0x36172c38 */ 8265 MEM32(ecx + 0x8C) = 0x36172B94u; /* 0x360921B5: mov dword ptr [ecx + 0x8c], 0x36172b94 */ 8266 MEM32(ecx + 0xA8) = 0x36172B7Cu; /* 0x360921BF: mov dword ptr [ecx + 0xa8], 0x36172b7c */ 8267 MEM32(ecx + 0xAC) = 0x36172B74u; /* 0x360921C9: mov dword ptr [ecx + 0xac], 0x36172b74 */ 8268 goto L_3609CC20; /* 0x360921D3: jmp 0x3609cc20 */ 8269 L_3609CC20: 8270 PUSH32(esp, ebp); /* 0x3609CC20: push ebp */ 8271 ebp = esp; /* 0x3609CC21: mov ebp, esp */ 8272 PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */ 8273 PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */ 8274 eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */ 8275 PUSH32(esp, eax); /* 0x3609CC30: push eax */ 8276 MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */ 8277 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 8278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8279 esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */ 8280 _flag_k = FK_CMP; 8281 PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */ 8282 PUSH32(esp, esi); /* 0x3609CC3C: push esi */ 8283 esi = ecx; /* 0x3609CC3D: mov esi, ecx */ 8284 PUSH32(esp, edi); /* 0x3609CC3F: push edi */ 8285 MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */ 8286 MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */ 8287 MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */ 8288 MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */ 8289 MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */ 8290 MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */ 8291 MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */ 8292 MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */ 8293 MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */ 8294 ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */ 8295 /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */ 8296 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8297 _cf = 0; 8298 _flag_k = FK_TEST; 8299 MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */ 8300 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */ 8301 L_3609CC97: 8302 eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */ 8303 edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */ 8304 /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */ 8305 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8307 _flag_k = FK_CMP; 8308 MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */ 8309 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */ 8310 L_3609CCA3: 8311 eax = edi; /* 0x3609CCA3: mov eax, edi */ 8312 edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */ 8313 PUSH32(esp, eax); /* 0x3609CCA7: push eax */ 8314 eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */ 8315 PUSH32(esp, eax); /* 0x3609CCAB: push eax */ 8316 ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */ 8317 RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */ 8318 RECOMP_FLAGS_IN(); 8319 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */ 8320 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 8321 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8322 _flag_k = FK_CMP; 8323 RECOMP_BACKEDGE(); 8324 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */ 8325 L_3609CCB8: 8326 eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */ 8327 PUSH32(esp, eax); /* 0x3609CCBB: push eax */ 8328 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */ 8329 RECOMP_FLAGS_IN(); 8330 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8331 eax = 0; /* 0x3609CCC1: xor eax, eax */ 8332 _cf = 0; 8333 _flag_k = FK_TEST; 8334 PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */ 8335 MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */ 8336 MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */ 8337 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */ 8338 RECOMP_FLAGS_IN(); 8339 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8341 esp = esp + 8; /* 0x3609CCCF: add esp, 8 */ 8342 _flag_k = FK_ADD; 8343 L_3609CCD2: 8344 ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */ 8345 /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */ 8346 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 8347 _cf = 0; 8348 _flag_k = FK_TEST; 8349 MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */ 8350 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */ 8351 L_3609CCE6: 8352 eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */ 8353 edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */ 8354 /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */ 8355 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8356 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8357 _flag_k = FK_CMP; 8358 MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */ 8359 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */ 8360 L_3609CCF2: 8361 PUSH32(esp, 0); /* 0x3609CCF2: push 0 */ 8362 ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */ 8363 eax = edi; /* 0x3609CCF7: mov eax, edi */ 8364 edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */ 8365 PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */ 8366 ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */ 8367 MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */ 8368 RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */ 8369 RECOMP_FLAGS_IN(); 8370 eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */ 8371 ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */ 8372 edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */ 8373 MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */ 8374 ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */ 8375 edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */ 8376 PUSH32(esp, eax); /* 0x3609CD15: push eax */ 8377 MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */ 8378 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */ 8379 RECOMP_FLAGS_IN(); 8380 ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */ 8381 eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */ 8382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8384 esp = esp + 4; /* 0x3609CD24: add esp, 4 */ 8385 _flag_k = FK_ADD; 8386 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8387 ecx = ecx - 1; /* 0x3609CD27: dec ecx */ 8388 _flag_k = FK_DEC; 8389 /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */ 8390 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 8391 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8392 _flag_k = FK_CMP; 8393 MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */ 8394 RECOMP_BACKEDGE(); 8395 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */ 8396 L_3609CD2F: 8397 eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */ 8398 PUSH32(esp, eax); /* 0x3609CD32: push eax */ 8399 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */ 8400 RECOMP_FLAGS_IN(); 8401 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8402 eax = 0; /* 0x3609CD38: xor eax, eax */ 8403 _cf = 0; 8404 _flag_k = FK_TEST; 8405 PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */ 8406 MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */ 8407 MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */ 8408 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */ 8409 RECOMP_FLAGS_IN(); 8410 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 8411 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8412 esp = esp + 8; /* 0x3609CD46: add esp, 8 */ 8413 _flag_k = FK_ADD; 8414 L_3609CD49: 8415 eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */ 8416 /* test eax, eax */ /* 0x3609CD4F: test eax, eax */ 8417 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8418 _cf = 0; 8419 _flag_k = FK_TEST; 8420 MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */ 8421 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */ 8422 L_3609CD5D: 8423 PUSH32(esp, eax); /* 0x3609CD5D: push eax */ 8424 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */ 8425 RECOMP_FLAGS_IN(); 8426 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8427 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8428 esp = esp + 4; /* 0x3609CD63: add esp, 4 */ 8429 _flag_k = FK_ADD; 8430 L_3609CD66: 8431 eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */ 8432 /* test eax, eax */ /* 0x3609CD6C: test eax, eax */ 8433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8434 _cf = 0; 8435 _flag_k = FK_TEST; 8436 MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */ 8437 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */ 8438 L_3609CD7A: 8439 PUSH32(esp, eax); /* 0x3609CD7A: push eax */ 8440 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */ 8441 RECOMP_FLAGS_IN(); 8442 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8443 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8444 esp = esp + 4; /* 0x3609CD80: add esp, 4 */ 8445 _flag_k = FK_ADD; 8446 L_3609CD83: 8447 ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */ 8448 /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */ 8449 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 8450 _cf = 0; 8451 _flag_k = FK_TEST; 8452 MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */ 8453 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */ 8454 L_3609CD97: 8455 RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */ 8456 RECOMP_FLAGS_IN(); 8457 MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */ 8458 L_3609CDA6: 8459 ecx = esi; /* 0x3609CDA6: mov ecx, esi */ 8460 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 8461 _cf = (ecx) != 0; 8462 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */ 8463 _flag_k = FK_CMP; 8464 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */ 8465 ecx = _sc ? 0xFFFFFFFFu : 0; 8466 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8467 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8468 eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */ 8469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8470 ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */ 8471 _cf = 0; 8472 _flag_k = FK_TEST; 8473 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */ 8474 RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */ 8475 RECOMP_FLAGS_IN(); 8476 ecx = esi; /* 0x3609CDBE: mov ecx, esi */ 8477 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 8478 _cf = (ecx) != 0; 8479 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */ 8480 _flag_k = FK_CMP; 8481 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */ 8482 ecx = _sc ? 0xFFFFFFFFu : 0; 8483 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 8484 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 8485 eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */ 8486 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 8487 ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */ 8488 _cf = 0; 8489 _flag_k = FK_TEST; 8490 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */ 8491 RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */ 8492 RECOMP_FLAGS_IN(); 8493 ecx = esi; /* 0x3609CDD5: mov ecx, esi */ 8494 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */ 8495 RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */ 8496 RECOMP_FLAGS_IN(); 8497 ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */ 8498 edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */ 8499 esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */ 8500 ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */ 8501 MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */ 8502 esp = ebp; /* 0x3609CDF0: mov esp, ebp */ 8503 ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */ 8504 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret */ 8505 RECOMP_REGS_OUT(); 8506 } 8507 8508 void sub_360921E0(void) { 8509 int _fpu_cmp = 0; 8510 uint32_t _cf = 0; 8511 int _df = 1; 8512 uint32_t _flag_k = FK_NONE; 8513 uint32_t _flag_a = 0, _flag_b = 0; 8514 uint32_t _itail_tgt = 0; 8515 RECOMP_REGS_LOCALS 8516 RECOMP_ENTER(0x360921E0u); 8517 8518 L_360921E0: 8519 PUSH32(esp, ebp); /* 0x360921E0: push ebp */ 8520 ebp = esp; /* 0x360921E1: mov ebp, esp */ 8521 eax = MEM32(ebp + 0x8); /* 0x360921E3: mov eax, dword ptr [ebp + 8] */ 8522 PUSH32(esp, eax); /* 0x360921E6: push eax */ 8523 RECOMP_ICALL(0x3609FCD0u); /* 0x360921E7: call 0x3609fcd0 */ /* not lifted */ 8524 RECOMP_FLAGS_IN(); 8525 ebp = POP32_VAL(esp); /* 0x360921EC: pop ebp */ 8526 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360921ED: ret 4 */ 8527 RECOMP_REGS_OUT(); 8528 } 8529 8530 void sub_360921F0(void) { 8531 int _fpu_cmp = 0; 8532 uint32_t _cf = 0; 8533 int _df = 1; 8534 uint32_t _flag_k = FK_NONE; 8535 uint32_t _flag_a = 0, _flag_b = 0; 8536 uint32_t _itail_tgt = 0; 8537 RECOMP_REGS_LOCALS 8538 RECOMP_ENTER(0x360921F0u); 8539 8540 L_360921F0: 8541 PUSH32(esp, ebp); /* 0x360921F0: push ebp */ 8542 ebp = esp; /* 0x360921F1: mov ebp, esp */ 8543 PUSH32(esp, 0xFFFFFFFFu); /* 0x360921F3: push -1 */ 8544 PUSH32(esp, 0x36166269u); /* 0x360921F5: push 0x36166269 */ 8545 eax = MEM32(FS_BASE + (0)); /* 0x360921FA: mov eax, dword ptr fs:[0] */ 8546 PUSH32(esp, eax); /* 0x36092200: push eax */ 8547 MEM32(FS_BASE + (0)) = esp; /* 0x36092201: mov dword ptr fs:[0], esp */ 8548 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 8549 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8550 esp = esp - 0x14u; /* 0x36092208: sub esp, 0x14 */ 8551 _flag_k = FK_CMP; 8552 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3609220B: mov al, byte ptr [ebp + 0xb] */ 8553 PUSH32(esp, ebx); /* 0x3609220E: push ebx */ 8554 PUSH32(esp, esi); /* 0x3609220F: push esi */ 8555 MEM32(ebp + (-0x10)) = ecx; /* 0x36092210: mov dword ptr [ebp - 0x10], ecx */ 8556 PUSH32(esp, edi); /* 0x36092213: push edi */ 8557 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8558 ecx = ecx | 0xFFFFFFFFu; /* 0x36092214: or ecx, 0xffffffff */ 8559 _cf = 0; 8560 _flag_k = FK_TEST; 8561 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8562 esi = 0; /* 0x36092217: xor esi, esi */ 8563 _cf = 0; 8564 _flag_k = FK_TEST; 8565 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36092219: mov byte ptr [ebp - 0x20], al */ 8566 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8567 eax = 0; /* 0x3609221C: xor eax, eax */ 8568 _cf = 0; 8569 _flag_k = FK_TEST; 8570 edi = 0x361C5638u; /* 0x3609221E: mov edi, 0x361c5638 */ 8571 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; } /* 0x36092223: repne scasb al, byte ptr es:[edi] */ 8572 ecx = ~ecx; /* 0x36092225: not ecx */ 8573 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8574 ecx = ecx - 1; /* 0x36092227: dec ecx */ 8575 _flag_k = FK_DEC; 8576 ebx = ecx; /* 0x36092228: mov ebx, ecx */ 8577 PUSH32(esp, 1); /* 0x3609222A: push 1 */ 8578 PUSH32(esp, ebx); /* 0x3609222C: push ebx */ 8579 ecx = ebp + (-0x20); /* 0x3609222D: lea ecx, [ebp - 0x20] */ 8580 MEM32(ebp + (-0x1C)) = esi; /* 0x36092230: mov dword ptr [ebp - 0x1c], esi */ 8581 MEM32(ebp + (-0x18)) = esi; /* 0x36092233: mov dword ptr [ebp - 0x18], esi */ 8582 MEM32(ebp + (-0x14)) = esi; /* 0x36092236: mov dword ptr [ebp - 0x14], esi */ 8583 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36092239: call dword ptr [0x3616f00c] */ 8584 RECOMP_FLAGS_IN(); 8585 /* test LO8(eax), LO8(eax) */ /* 0x3609223F: test al, al */ 8586 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8587 _cf = 0; 8588 _flag_k = FK_NARROW(FK_TEST, 24); 8589 if (TEST_Z(_flag_a, _flag_b)) goto L_36092267; /* 0x36092241: je 0x36092267 */ 8590 L_36092243: 8591 edi = MEM32(ebp + (-0x1C)); /* 0x36092243: mov edi, dword ptr [ebp - 0x1c] */ 8592 ecx = ebx; /* 0x36092246: mov ecx, ebx */ 8593 edx = ecx; /* 0x36092248: mov edx, ecx */ 8594 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3609224A: shr ecx, 2 */ 8595 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8596 ecx = ecx >> 2u; /* 0x3609224A: shr ecx, 2 */ 8597 esi = 0x361C5638u; /* 0x3609224D: mov esi, 0x361c5638 */ 8598 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36092252: 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; } 8599 ecx = edx; /* 0x36092254: mov ecx, edx */ 8600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8601 ecx = ecx & 3; /* 0x36092256: and ecx, 3 */ 8602 _cf = 0; 8603 _flag_k = FK_TEST; 8604 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36092259: 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; } 8605 eax = MEM32(ebp + (-0x1C)); /* 0x3609225B: mov eax, dword ptr [ebp - 0x1c] */ 8606 MEM32(ebp + (-0x18)) = ebx; /* 0x3609225E: mov dword ptr [ebp - 0x18], ebx */ 8607 MEM8(eax + ebx) = (uint8_t)(0); /* 0x36092261: mov byte ptr [eax + ebx], 0 */ 8608 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8609 esi = 0; /* 0x36092265: xor esi, esi */ 8610 _cf = 0; 8611 _flag_k = FK_TEST; 8612 L_36092267: 8613 edi = MEM32(ebp + 0x8); /* 0x36092267: mov edi, dword ptr [ebp + 8] */ 8614 edx = MEM32(edi); /* 0x3609226A: mov edx, dword ptr [edi] */ 8615 eax = ebp + (-0x20); /* 0x3609226C: lea eax, [ebp - 0x20] */ 8616 PUSH32(esp, eax); /* 0x3609226F: push eax */ 8617 ecx = edi; /* 0x36092270: mov ecx, edi */ 8618 MEM32(ebp + (-0x4)) = esi; /* 0x36092272: mov dword ptr [ebp - 4], esi */ 8619 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36092275: call dword ptr [edx + 8] */ 8620 RECOMP_FLAGS_IN(); 8621 eax = MEM32(ebp + (-0x1C)); /* 0x36092278: mov eax, dword ptr [ebp - 0x1c] */ 8622 /* cmp eax, esi */ /* 0x3609227B: cmp eax, esi */ 8623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 8624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8625 _flag_k = FK_CMP; 8626 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609227D: mov dword ptr [ebp - 4], 0xffffffff */ 8627 if (CMP_EQ(_flag_a, _flag_b)) goto L_360922A2; /* 0x36092284: je 0x360922a2 */ 8628 L_36092286: 8629 ecx = eax + (-0x1); /* 0x36092286: lea ecx, [eax - 1] */ 8630 SET_LO8(eax, MEM8(ecx)); /* 0x36092289: mov al, byte ptr [ecx] */ 8631 /* test LO8(eax), LO8(eax) */ /* 0x3609228B: test al, al */ 8632 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8633 _cf = 0; 8634 _flag_k = FK_NARROW(FK_TEST, 24); 8635 if (TEST_Z(_flag_a, _flag_b)) goto L_36092299; /* 0x3609228D: je 0x36092299 */ 8636 L_3609228F: 8637 /* cmp LO8(eax), 0xFFu */ /* 0x3609228F: cmp al, 0xff */ 8638 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8639 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8640 _flag_k = FK_NARROW(FK_CMP, 24); 8641 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092299; /* 0x36092291: je 0x36092299 */ 8642 L_36092293: 8643 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8644 SET_LO8(eax, LO8(eax) - 1); /* 0x36092293: dec al */ 8645 _flag_k = FK_NARROW(FK_DEC, 24); 8646 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36092295: mov byte ptr [ecx], al */ 8647 goto L_360922A2; /* 0x36092297: jmp 0x360922a2 */ 8648 L_36092299: 8649 PUSH32(esp, ecx); /* 0x36092299: push ecx */ 8650 RECOMP_ICALL(0x3615FCC4u); /* 0x3609229A: call 0x3615fcc4 */ /* not lifted */ 8651 RECOMP_FLAGS_IN(); 8652 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8653 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8654 esp = esp + 4; /* 0x3609229F: add esp, 4 */ 8655 _flag_k = FK_ADD; 8656 L_360922A2: 8657 ecx = MEM32(ebp + (-0x10)); /* 0x360922A2: mov ecx, dword ptr [ebp - 0x10] */ 8658 edx = MEM32(ecx); /* 0x360922A5: mov edx, dword ptr [ecx] */ 8659 PUSH32(esp, edi); /* 0x360922A7: push edi */ 8660 MEM32(ebp + (-0x1C)) = esi; /* 0x360922A8: mov dword ptr [ebp - 0x1c], esi */ 8661 MEM32(ebp + (-0x18)) = esi; /* 0x360922AB: mov dword ptr [ebp - 0x18], esi */ 8662 MEM32(ebp + (-0x14)) = esi; /* 0x360922AE: mov dword ptr [ebp - 0x14], esi */ 8663 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360922B1: call dword ptr [edx + 4] */ 8664 RECOMP_FLAGS_IN(); 8665 ecx = MEM32(ebp + (-0xC)); /* 0x360922B4: mov ecx, dword ptr [ebp - 0xc] */ 8666 edi = POP32_VAL(esp); /* 0x360922B7: pop edi */ 8667 esi = POP32_VAL(esp); /* 0x360922B8: pop esi */ 8668 ebx = POP32_VAL(esp); /* 0x360922B9: pop ebx */ 8669 MEM32(FS_BASE + (0)) = ecx; /* 0x360922BA: mov dword ptr fs:[0], ecx */ 8670 esp = ebp; /* 0x360922C1: mov esp, ebp */ 8671 ebp = POP32_VAL(esp); /* 0x360922C3: pop ebp */ 8672 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360922C4: ret 4 */ 8673 RECOMP_REGS_OUT(); 8674 } 8675 8676 void sub_360922D0(void) { 8677 int _fpu_cmp = 0; 8678 uint32_t _cf = 0; 8679 int _df = 1; 8680 uint32_t _flag_k = FK_NONE; 8681 uint32_t _flag_a = 0, _flag_b = 0; 8682 uint32_t _itail_tgt = 0; 8683 RECOMP_REGS_LOCALS 8684 RECOMP_ENTER(0x360922D0u); 8685 8686 L_360922D0: 8687 PUSH32(esp, ebp); /* 0x360922D0: push ebp */ 8688 ebp = esp; /* 0x360922D1: mov ebp, esp */ 8689 PUSH32(esp, 0xFFFFFFFFu); /* 0x360922D3: push -1 */ 8690 PUSH32(esp, 0x36166289u); /* 0x360922D5: push 0x36166289 */ 8691 eax = MEM32(FS_BASE + (0)); /* 0x360922DA: mov eax, dword ptr fs:[0] */ 8692 PUSH32(esp, eax); /* 0x360922E0: push eax */ 8693 MEM32(FS_BASE + (0)) = esp; /* 0x360922E1: mov dword ptr fs:[0], esp */ 8694 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 8695 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8696 esp = esp - 0x10u; /* 0x360922E8: sub esp, 0x10 */ 8697 _flag_k = FK_CMP; 8698 PUSH32(esp, ebx); /* 0x360922EB: push ebx */ 8699 PUSH32(esp, esi); /* 0x360922EC: push esi */ 8700 esi = MEM32(ebp + 0x8); /* 0x360922ED: mov esi, dword ptr [ebp + 8] */ 8701 PUSH32(esp, edi); /* 0x360922F0: push edi */ 8702 PUSH32(esp, esi); /* 0x360922F1: push esi */ 8703 RECOMP_ICALL(0x3610DEF0u); /* 0x360922F2: call 0x3610def0 */ /* not lifted */ 8704 RECOMP_FLAGS_IN(); 8705 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x360922F7: mov al, byte ptr [ebp + 0xb] */ 8706 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8707 ecx = ecx | 0xFFFFFFFFu; /* 0x360922FA: or ecx, 0xffffffff */ 8708 _cf = 0; 8709 _flag_k = FK_TEST; 8710 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x360922FD: mov byte ptr [ebp - 0x1c], al */ 8711 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8712 eax = 0; /* 0x36092300: xor eax, eax */ 8713 _cf = 0; 8714 _flag_k = FK_TEST; 8715 edi = 0x361C5648u; /* 0x36092302: mov edi, 0x361c5648 */ 8716 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; } /* 0x36092307: repne scasb al, byte ptr es:[edi] */ 8717 ecx = ~ecx; /* 0x36092309: not ecx */ 8718 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8719 ecx = ecx - 1; /* 0x3609230B: dec ecx */ 8720 _flag_k = FK_DEC; 8721 ebx = ecx; /* 0x3609230C: mov ebx, ecx */ 8722 PUSH32(esp, 1); /* 0x3609230E: push 1 */ 8723 PUSH32(esp, ebx); /* 0x36092310: push ebx */ 8724 ecx = ebp + (-0x1C); /* 0x36092311: lea ecx, [ebp - 0x1c] */ 8725 MEM32(ebp + (-0x18)) = eax; /* 0x36092314: mov dword ptr [ebp - 0x18], eax */ 8726 MEM32(ebp + (-0x14)) = eax; /* 0x36092317: mov dword ptr [ebp - 0x14], eax */ 8727 MEM32(ebp + (-0x10)) = eax; /* 0x3609231A: mov dword ptr [ebp - 0x10], eax */ 8728 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3609231D: call dword ptr [0x3616f00c] */ 8729 RECOMP_FLAGS_IN(); 8730 /* test LO8(eax), LO8(eax) */ /* 0x36092323: test al, al */ 8731 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8732 _cf = 0; 8733 _flag_k = FK_NARROW(FK_TEST, 24); 8734 if (TEST_Z(_flag_a, _flag_b)) goto L_3609234C; /* 0x36092325: je 0x3609234c */ 8735 L_36092327: 8736 edi = MEM32(ebp + (-0x18)); /* 0x36092327: mov edi, dword ptr [ebp - 0x18] */ 8737 ecx = ebx; /* 0x3609232A: mov ecx, ebx */ 8738 edx = ecx; /* 0x3609232C: mov edx, ecx */ 8739 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3609232E: shr ecx, 2 */ 8740 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8741 ecx = ecx >> 2u; /* 0x3609232E: shr ecx, 2 */ 8742 esi = 0x361C5648u; /* 0x36092331: mov esi, 0x361c5648 */ 8743 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36092336: 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; } 8744 ecx = edx; /* 0x36092338: mov ecx, edx */ 8745 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8746 ecx = ecx & 3; /* 0x3609233A: and ecx, 3 */ 8747 _cf = 0; 8748 _flag_k = FK_TEST; 8749 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3609233D: 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; } 8750 eax = MEM32(ebp + (-0x18)); /* 0x3609233F: mov eax, dword ptr [ebp - 0x18] */ 8751 esi = MEM32(ebp + 0x8); /* 0x36092342: mov esi, dword ptr [ebp + 8] */ 8752 MEM32(ebp + (-0x14)) = ebx; /* 0x36092345: mov dword ptr [ebp - 0x14], ebx */ 8753 MEM8(eax + ebx) = (uint8_t)(0); /* 0x36092348: mov byte ptr [eax + ebx], 0 */ 8754 L_3609234C: 8755 edx = MEM32(esi); /* 0x3609234C: mov edx, dword ptr [esi] */ 8756 eax = ebp + (-0x1C); /* 0x3609234E: lea eax, [ebp - 0x1c] */ 8757 PUSH32(esp, eax); /* 0x36092351: push eax */ 8758 ecx = esi; /* 0x36092352: mov ecx, esi */ 8759 MEM32(ebp + (-0x4)) = 0; /* 0x36092354: mov dword ptr [ebp - 4], 0 */ 8760 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x3609235B: call dword ptr [edx + 0x20] */ 8761 RECOMP_FLAGS_IN(); 8762 eax = MEM32(ebp + (-0x18)); /* 0x3609235E: mov eax, dword ptr [ebp - 0x18] */ 8763 /* test eax, eax */ /* 0x36092361: test eax, eax */ 8764 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 8765 _cf = 0; 8766 _flag_k = FK_TEST; 8767 edi = POP32_VAL(esp); /* 0x36092363: pop edi */ 8768 esi = POP32_VAL(esp); /* 0x36092364: pop esi */ 8769 ebx = POP32_VAL(esp); /* 0x36092365: pop ebx */ 8770 if (TEST_Z(_flag_a, _flag_b)) goto L_36092392; /* 0x36092366: je 0x36092392 */ 8771 L_36092368: 8772 ecx = eax + (-0x1); /* 0x36092368: lea ecx, [eax - 1] */ 8773 SET_LO8(eax, MEM8(ecx)); /* 0x3609236B: mov al, byte ptr [ecx] */ 8774 /* test LO8(eax), LO8(eax) */ /* 0x3609236D: test al, al */ 8775 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8776 _cf = 0; 8777 _flag_k = FK_NARROW(FK_TEST, 24); 8778 if (TEST_Z(_flag_a, _flag_b)) goto L_36092389; /* 0x3609236F: je 0x36092389 */ 8779 L_36092371: 8780 /* cmp LO8(eax), 0xFFu */ /* 0x36092371: cmp al, 0xff */ 8781 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 8782 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8783 _flag_k = FK_NARROW(FK_CMP, 24); 8784 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092389; /* 0x36092373: je 0x36092389 */ 8785 L_36092375: 8786 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 8787 SET_LO8(eax, LO8(eax) - 1); /* 0x36092375: dec al */ 8788 _flag_k = FK_NARROW(FK_DEC, 24); 8789 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36092377: mov byte ptr [ecx], al */ 8790 ecx = MEM32(ebp + (-0xC)); /* 0x36092379: mov ecx, dword ptr [ebp - 0xc] */ 8791 MEM32(FS_BASE + (0)) = ecx; /* 0x3609237C: mov dword ptr fs:[0], ecx */ 8792 esp = ebp; /* 0x36092383: mov esp, ebp */ 8793 ebp = POP32_VAL(esp); /* 0x36092385: pop ebp */ 8794 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36092386: ret 4 */ 8795 L_36092389: 8796 PUSH32(esp, ecx); /* 0x36092389: push ecx */ 8797 RECOMP_ICALL(0x3615FCC4u); /* 0x3609238A: call 0x3615fcc4 */ /* not lifted */ 8798 RECOMP_FLAGS_IN(); 8799 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8801 esp = esp + 4; /* 0x3609238F: add esp, 4 */ 8802 _flag_k = FK_ADD; 8803 L_36092392: 8804 ecx = MEM32(ebp + (-0xC)); /* 0x36092392: mov ecx, dword ptr [ebp - 0xc] */ 8805 MEM32(FS_BASE + (0)) = ecx; /* 0x36092395: mov dword ptr fs:[0], ecx */ 8806 esp = ebp; /* 0x3609239C: mov esp, ebp */ 8807 ebp = POP32_VAL(esp); /* 0x3609239E: pop ebp */ 8808 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609239F: ret 4 */ 8809 RECOMP_REGS_OUT(); 8810 } 8811 8812 void sub_360923B0(void) { 8813 int _fpu_cmp = 0; 8814 uint32_t _cf = 0; 8815 int _df = 1; 8816 uint32_t _flag_k = FK_NONE; 8817 uint32_t _flag_a = 0, _flag_b = 0; 8818 uint32_t _itail_tgt = 0; 8819 RECOMP_REGS_LOCALS 8820 RECOMP_ENTER(0x360923B0u); 8821 8822 L_360923B0: 8823 PUSH32(esp, ebp); /* 0x360923B0: push ebp */ 8824 ebp = esp; /* 0x360923B1: mov ebp, esp */ 8825 eax = MEM32(ebp + 0x8); /* 0x360923B3: mov eax, dword ptr [ebp + 8] */ 8826 PUSH32(esp, eax); /* 0x360923B6: push eax */ 8827 RECOMP_ICALL(0x3610DEF0u); /* 0x360923B7: call 0x3610def0 */ /* not lifted */ 8828 RECOMP_FLAGS_IN(); 8829 ebp = POP32_VAL(esp); /* 0x360923BC: pop ebp */ 8830 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360923BD: ret 4 */ 8831 RECOMP_REGS_OUT(); 8832 } 8833 8834 void sub_360923C0(void) { 8835 int _fpu_cmp = 0; 8836 uint32_t _cf = 0; 8837 int _df = 1; 8838 uint32_t _flag_k = FK_NONE; 8839 uint32_t _flag_a = 0, _flag_b = 0; 8840 uint32_t _itail_tgt = 0; 8841 RECOMP_REGS_LOCALS 8842 RECOMP_ENTER(0x360923C0u); 8843 8844 L_360923C0: 8845 PUSH32(esp, ebp); /* 0x360923C0: push ebp */ 8846 ebp = esp; /* 0x360923C1: mov ebp, esp */ 8847 eax = MEM32(ebp + 0x8); /* 0x360923C3: mov eax, dword ptr [ebp + 8] */ 8848 PUSH32(esp, eax); /* 0x360923C6: push eax */ 8849 RECOMP_ICALL(0x3609D970u); /* 0x360923C7: call 0x3609d970 */ /* not lifted */ 8850 RECOMP_FLAGS_IN(); 8851 ebp = POP32_VAL(esp); /* 0x360923CC: pop ebp */ 8852 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360923CD: ret 4 */ 8853 RECOMP_REGS_OUT(); 8854 } 8855 8856 void sub_360923D0(void) { 8857 int _fpu_cmp = 0; 8858 uint32_t _cf = 0; 8859 int _df = 1; 8860 uint32_t _flag_k = FK_NONE; 8861 uint32_t _flag_a = 0, _flag_b = 0; 8862 uint32_t _itail_tgt = 0; 8863 RECOMP_REGS_LOCALS 8864 RECOMP_ENTER(0x360923D0u); 8865 8866 L_360923D0: 8867 PUSH32(esp, ebp); /* 0x360923D0: push ebp */ 8868 ebp = esp; /* 0x360923D1: mov ebp, esp */ 8869 PUSH32(esp, 0xFFFFFFFFu); /* 0x360923D3: push -1 */ 8870 PUSH32(esp, 0x361662C3u); /* 0x360923D5: push 0x361662c3 */ 8871 eax = MEM32(FS_BASE + (0)); /* 0x360923DA: mov eax, dword ptr fs:[0] */ 8872 PUSH32(esp, eax); /* 0x360923E0: push eax */ 8873 MEM32(FS_BASE + (0)) = esp; /* 0x360923E1: mov dword ptr fs:[0], esp */ 8874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x20u); 8875 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8876 esp = esp - 0x20u; /* 0x360923E8: sub esp, 0x20 */ 8877 _flag_k = FK_CMP; 8878 PUSH32(esp, ebx); /* 0x360923EB: push ebx */ 8879 PUSH32(esp, esi); /* 0x360923EC: push esi */ 8880 PUSH32(esp, edi); /* 0x360923ED: push edi */ 8881 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8882 ebx = 0; /* 0x360923EE: xor ebx, ebx */ 8883 _cf = 0; 8884 _flag_k = FK_TEST; 8885 PUSH32(esp, 0x7Cu); /* 0x360923F0: push 0x7c */ 8886 MEM32(ebp + (-0x1C)) = ecx; /* 0x360923F2: mov dword ptr [ebp - 0x1c], ecx */ 8887 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8888 edi = 0; /* 0x360923F5: xor edi, edi */ 8889 _cf = 0; 8890 _flag_k = FK_TEST; 8891 MEM32(ebp + (-0x18)) = ebx; /* 0x360923F7: mov dword ptr [ebp - 0x18], ebx */ 8892 RECOMP_ICALL(0x3615FD6Au); /* 0x360923FA: call 0x3615fd6a */ /* not lifted */ 8893 RECOMP_FLAGS_IN(); 8894 esi = eax; /* 0x360923FF: mov esi, eax */ 8895 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 8896 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8897 esp = esp + 4; /* 0x36092401: add esp, 4 */ 8898 _flag_k = FK_ADD; 8899 MEM32(ebp + (-0x14)) = esi; /* 0x36092404: mov dword ptr [ebp - 0x14], esi */ 8900 /* cmp esi, edi */ /* 0x36092407: cmp esi, edi */ 8901 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 8902 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8903 _flag_k = FK_CMP; 8904 MEM32(ebp + (-0x4)) = edi; /* 0x36092409: mov dword ptr [ebp - 4], edi */ 8905 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092489; /* 0x3609240C: je 0x36092489 */ 8906 L_3609240E: 8907 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x3609240E: mov al, byte ptr [ebp - 0xd] */ 8908 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 8909 ecx = ecx | 0xFFFFFFFFu; /* 0x36092411: or ecx, 0xffffffff */ 8910 _cf = 0; 8911 _flag_k = FK_TEST; 8912 MEM32(ebp + (-0x28)) = edi; /* 0x36092414: mov dword ptr [ebp - 0x28], edi */ 8913 MEM32(ebp + (-0x24)) = edi; /* 0x36092417: mov dword ptr [ebp - 0x24], edi */ 8914 MEM32(ebp + (-0x20)) = edi; /* 0x3609241A: mov dword ptr [ebp - 0x20], edi */ 8915 MEM8(ebp + (-0x2C)) = (uint8_t)(LO8(eax)); /* 0x3609241D: mov byte ptr [ebp - 0x2c], al */ 8916 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8917 eax = 0; /* 0x36092420: xor eax, eax */ 8918 _cf = 0; 8919 _flag_k = FK_TEST; 8920 edi = 0x361B3CD0u; /* 0x36092422: mov edi, 0x361b3cd0 */ 8921 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; } /* 0x36092427: repne scasb al, byte ptr es:[edi] */ 8922 ecx = ~ecx; /* 0x36092429: not ecx */ 8923 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 8924 ecx = ecx - 1; /* 0x3609242B: dec ecx */ 8925 _flag_k = FK_DEC; 8926 ebx = ecx; /* 0x3609242C: mov ebx, ecx */ 8927 PUSH32(esp, 1); /* 0x3609242E: push 1 */ 8928 PUSH32(esp, ebx); /* 0x36092430: push ebx */ 8929 ecx = ebp + (-0x2C); /* 0x36092431: lea ecx, [ebp - 0x2c] */ 8930 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x36092434: call dword ptr [0x3616f00c] */ 8931 RECOMP_FLAGS_IN(); 8932 /* test LO8(eax), LO8(eax) */ /* 0x3609243A: test al, al */ 8933 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 8934 _cf = 0; 8935 _flag_k = FK_NARROW(FK_TEST, 24); 8936 if (TEST_Z(_flag_a, _flag_b)) goto L_36092463; /* 0x3609243C: je 0x36092463 */ 8937 L_3609243E: 8938 edi = MEM32(ebp + (-0x28)); /* 0x3609243E: mov edi, dword ptr [ebp - 0x28] */ 8939 ecx = ebx; /* 0x36092441: mov ecx, ebx */ 8940 edx = ecx; /* 0x36092443: mov edx, ecx */ 8941 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x36092445: shr ecx, 2 */ 8942 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 8943 ecx = ecx >> 2u; /* 0x36092445: shr ecx, 2 */ 8944 esi = 0x361B3CD0u; /* 0x36092448: mov esi, 0x361b3cd0 */ 8945 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3609244D: 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; } 8946 ecx = edx; /* 0x3609244F: mov ecx, edx */ 8947 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 8948 ecx = ecx & 3; /* 0x36092451: and ecx, 3 */ 8949 _cf = 0; 8950 _flag_k = FK_TEST; 8951 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x36092454: 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; } 8952 eax = MEM32(ebp + (-0x28)); /* 0x36092456: mov eax, dword ptr [ebp - 0x28] */ 8953 esi = MEM32(ebp + (-0x14)); /* 0x36092459: mov esi, dword ptr [ebp - 0x14] */ 8954 MEM32(ebp + (-0x24)) = ebx; /* 0x3609245C: mov dword ptr [ebp - 0x24], ebx */ 8955 MEM8(ebx + eax) = (uint8_t)(0); /* 0x3609245F: mov byte ptr [ebx + eax], 0 */ 8956 L_36092463: 8957 ebx = 1; /* 0x36092463: mov ebx, 1 */ 8958 MEM32(ebp + (-0x18)) = ebx; /* 0x36092468: mov dword ptr [ebp - 0x18], ebx */ 8959 edx = MEM32(ebp + (-0x1C)); /* 0x3609246B: mov edx, dword ptr [ebp - 0x1c] */ 8960 ecx = ebp + (-0x2C); /* 0x3609246E: lea ecx, [ebp - 0x2c] */ 8961 PUSH32(esp, ecx); /* 0x36092471: push ecx */ 8962 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFFF74u); 8963 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 8964 edx = edx + 0xFFFFFF74u; /* 0x36092472: add edx, 0xffffff74 */ 8965 _flag_k = FK_ADD; 8966 PUSH32(esp, edx); /* 0x36092478: push edx */ 8967 ecx = esi; /* 0x36092479: mov ecx, esi */ 8968 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x3609247B: mov byte ptr [ebp - 4], bl */ 8969 RECOMP_ICALL(0x360B22D0u); /* 0x3609247E: call 0x360b22d0 */ /* not lifted */ 8970 RECOMP_FLAGS_IN(); 8971 esi = eax; /* 0x36092483: mov esi, eax */ 8972 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8973 edi = 0; /* 0x36092485: xor edi, edi */ 8974 _cf = 0; 8975 _flag_k = FK_TEST; 8976 goto L_3609248B; /* 0x36092487: jmp 0x3609248b */ 8977 L_36092489: 8978 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 8979 esi = 0; /* 0x36092489: xor esi, esi */ 8980 _cf = 0; 8981 _flag_k = FK_TEST; 8982 L_3609248B: 8983 /* test LO8(ebx), 1 */ /* 0x3609248B: test bl, 1 */ 8984 _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24; 8985 _cf = 0; 8986 _flag_k = FK_NARROW(FK_TEST, 24); 8987 if (TEST_Z(_flag_a, _flag_b)) goto L_360924C4; /* 0x3609248E: je 0x360924c4 */ 8988 L_36092490: 8989 eax = MEM32(ebp + (-0x28)); /* 0x36092490: mov eax, dword ptr [ebp - 0x28] */ 8990 /* cmp eax, edi */ /* 0x36092493: cmp eax, edi */ 8991 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 8992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 8993 _flag_k = FK_CMP; 8994 if (CMP_EQ(_flag_a, _flag_b)) goto L_360924C4; /* 0x36092495: je 0x360924c4 */ 8995 L_36092497: 8996 ecx = eax + (-0x1); /* 0x36092497: lea ecx, [eax - 1] */ 8997 SET_LO8(eax, MEM8(ecx)); /* 0x3609249A: mov al, byte ptr [ecx] */ 8998 /* test LO8(eax), LO8(eax) */ /* 0x3609249C: test al, al */ 8999 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9000 _cf = 0; 9001 _flag_k = FK_NARROW(FK_TEST, 24); 9002 if (TEST_Z(_flag_a, _flag_b)) goto L_360924BB; /* 0x3609249E: je 0x360924bb */ 9003 L_360924A0: 9004 /* cmp LO8(eax), 0xFFu */ /* 0x360924A0: cmp al, 0xff */ 9005 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 9006 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9007 _flag_k = FK_NARROW(FK_CMP, 24); 9008 if (CMP_EQ(_flag_a, _flag_b)) goto L_360924BB; /* 0x360924A2: je 0x360924bb */ 9009 L_360924A4: 9010 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 9011 SET_LO8(eax, LO8(eax) - 1); /* 0x360924A4: dec al */ 9012 _flag_k = FK_NARROW(FK_DEC, 24); 9013 edi = POP32_VAL(esp); /* 0x360924A6: pop edi */ 9014 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360924A7: mov byte ptr [ecx], al */ 9015 eax = esi; /* 0x360924A9: mov eax, esi */ 9016 esi = POP32_VAL(esp); /* 0x360924AB: pop esi */ 9017 ebx = POP32_VAL(esp); /* 0x360924AC: pop ebx */ 9018 ecx = MEM32(ebp + (-0xC)); /* 0x360924AD: mov ecx, dword ptr [ebp - 0xc] */ 9019 MEM32(FS_BASE + (0)) = ecx; /* 0x360924B0: mov dword ptr fs:[0], ecx */ 9020 esp = ebp; /* 0x360924B7: mov esp, ebp */ 9021 ebp = POP32_VAL(esp); /* 0x360924B9: pop ebp */ 9022 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360924BA: ret */ 9023 L_360924BB: 9024 PUSH32(esp, ecx); /* 0x360924BB: push ecx */ 9025 RECOMP_ICALL(0x3615FCC4u); /* 0x360924BC: call 0x3615fcc4 */ /* not lifted */ 9026 RECOMP_FLAGS_IN(); 9027 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9028 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9029 esp = esp + 4; /* 0x360924C1: add esp, 4 */ 9030 _flag_k = FK_ADD; 9031 L_360924C4: 9032 ecx = MEM32(ebp + (-0xC)); /* 0x360924C4: mov ecx, dword ptr [ebp - 0xc] */ 9033 edi = POP32_VAL(esp); /* 0x360924C7: pop edi */ 9034 eax = esi; /* 0x360924C8: mov eax, esi */ 9035 esi = POP32_VAL(esp); /* 0x360924CA: pop esi */ 9036 ebx = POP32_VAL(esp); /* 0x360924CB: pop ebx */ 9037 MEM32(FS_BASE + (0)) = ecx; /* 0x360924CC: mov dword ptr fs:[0], ecx */ 9038 esp = ebp; /* 0x360924D3: mov esp, ebp */ 9039 ebp = POP32_VAL(esp); /* 0x360924D5: pop ebp */ 9040 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360924D6: ret */ 9041 RECOMP_REGS_OUT(); 9042 } 9043 9044 void sub_360924E0(void) { 9045 int _fpu_cmp = 0; 9046 uint32_t _cf = 0; 9047 int _df = 1; 9048 uint32_t _flag_k = FK_NONE; 9049 uint32_t _flag_a = 0, _flag_b = 0; 9050 uint32_t _itail_tgt = 0; 9051 RECOMP_REGS_LOCALS 9052 RECOMP_ENTER(0x360924E0u); 9053 9054 goto L_360924E0; 9055 L_36092160: 9056 PUSH32(esp, ebp); /* 0x36092160: push ebp */ 9057 ebp = esp; /* 0x36092161: mov ebp, esp */ 9058 PUSH32(esp, esi); /* 0x36092163: push esi */ 9059 esi = ecx; /* 0x36092164: mov esi, ecx */ 9060 RECOMP_ICALL(0x36092190u); /* 0x36092166: call 0x36092190 */ /* not lifted */ 9061 RECOMP_FLAGS_IN(); 9062 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609216B: test byte ptr [ebp + 8], 1 */ 9063 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9064 _cf = 0; 9065 _flag_k = FK_NARROW(FK_TEST, 24); 9066 if (TEST_Z(_flag_a, _flag_b)) goto L_3609217A; /* 0x3609216F: je 0x3609217a */ 9067 L_36092171: 9068 PUSH32(esp, esi); /* 0x36092171: push esi */ 9069 RECOMP_ICALL(0x3615FCC4u); /* 0x36092172: call 0x3615fcc4 */ /* not lifted */ 9070 RECOMP_FLAGS_IN(); 9071 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9072 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9073 esp = esp + 4; /* 0x36092177: add esp, 4 */ 9074 _flag_k = FK_ADD; 9075 L_3609217A: 9076 eax = esi; /* 0x3609217A: mov eax, esi */ 9077 esi = POP32_VAL(esp); /* 0x3609217C: pop esi */ 9078 ebp = POP32_VAL(esp); /* 0x3609217D: pop ebp */ 9079 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609217E: ret 4 */ 9080 L_360924E0: 9081 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 9082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9083 ecx = ecx - 8; /* 0x360924E0: sub ecx, 8 */ 9084 _flag_k = FK_CMP; 9085 RECOMP_BACKEDGE(); 9086 goto L_36092160; /* 0x360924E3: jmp 0x36092160 */ 9087 { RECOMP_REGS_OUT(); return; } /* end of function */ 9088 RECOMP_REGS_OUT(); 9089 } 9090 9091 void sub_360924F0(void) { 9092 int _fpu_cmp = 0; 9093 uint32_t _cf = 0; 9094 int _df = 1; 9095 uint32_t _flag_k = FK_NONE; 9096 uint32_t _flag_a = 0, _flag_b = 0; 9097 uint32_t _itail_tgt = 0; 9098 RECOMP_REGS_LOCALS 9099 RECOMP_ENTER(0x360924F0u); 9100 9101 goto L_360924F0; 9102 L_36092160: 9103 PUSH32(esp, ebp); /* 0x36092160: push ebp */ 9104 ebp = esp; /* 0x36092161: mov ebp, esp */ 9105 PUSH32(esp, esi); /* 0x36092163: push esi */ 9106 esi = ecx; /* 0x36092164: mov esi, ecx */ 9107 RECOMP_ICALL(0x36092190u); /* 0x36092166: call 0x36092190 */ /* not lifted */ 9108 RECOMP_FLAGS_IN(); 9109 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609216B: test byte ptr [ebp + 8], 1 */ 9110 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9111 _cf = 0; 9112 _flag_k = FK_NARROW(FK_TEST, 24); 9113 if (TEST_Z(_flag_a, _flag_b)) goto L_3609217A; /* 0x3609216F: je 0x3609217a */ 9114 L_36092171: 9115 PUSH32(esp, esi); /* 0x36092171: push esi */ 9116 RECOMP_ICALL(0x3615FCC4u); /* 0x36092172: call 0x3615fcc4 */ /* not lifted */ 9117 RECOMP_FLAGS_IN(); 9118 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9119 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9120 esp = esp + 4; /* 0x36092177: add esp, 4 */ 9121 _flag_k = FK_ADD; 9122 L_3609217A: 9123 eax = esi; /* 0x3609217A: mov eax, esi */ 9124 esi = POP32_VAL(esp); /* 0x3609217C: pop esi */ 9125 ebp = POP32_VAL(esp); /* 0x3609217D: pop ebp */ 9126 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609217E: ret 4 */ 9127 L_360924F0: 9128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 9129 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9130 ecx = ecx - 0x40u; /* 0x360924F0: sub ecx, 0x40 */ 9131 _flag_k = FK_CMP; 9132 RECOMP_BACKEDGE(); 9133 goto L_36092160; /* 0x360924F3: jmp 0x36092160 */ 9134 { RECOMP_REGS_OUT(); return; } /* end of function */ 9135 RECOMP_REGS_OUT(); 9136 } 9137 9138 void sub_36092500(void) { 9139 int _fpu_cmp = 0; 9140 uint32_t _cf = 0; 9141 int _df = 1; 9142 uint32_t _flag_k = FK_NONE; 9143 uint32_t _flag_a = 0, _flag_b = 0; 9144 uint32_t _itail_tgt = 0; 9145 RECOMP_REGS_LOCALS 9146 RECOMP_ENTER(0x36092500u); 9147 9148 goto L_36092500; 9149 L_36092160: 9150 PUSH32(esp, ebp); /* 0x36092160: push ebp */ 9151 ebp = esp; /* 0x36092161: mov ebp, esp */ 9152 PUSH32(esp, esi); /* 0x36092163: push esi */ 9153 esi = ecx; /* 0x36092164: mov esi, ecx */ 9154 RECOMP_ICALL(0x36092190u); /* 0x36092166: call 0x36092190 */ /* not lifted */ 9155 RECOMP_FLAGS_IN(); 9156 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609216B: test byte ptr [ebp + 8], 1 */ 9157 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9158 _cf = 0; 9159 _flag_k = FK_NARROW(FK_TEST, 24); 9160 if (TEST_Z(_flag_a, _flag_b)) goto L_3609217A; /* 0x3609216F: je 0x3609217a */ 9161 L_36092171: 9162 PUSH32(esp, esi); /* 0x36092171: push esi */ 9163 RECOMP_ICALL(0x3615FCC4u); /* 0x36092172: call 0x3615fcc4 */ /* not lifted */ 9164 RECOMP_FLAGS_IN(); 9165 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9166 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9167 esp = esp + 4; /* 0x36092177: add esp, 4 */ 9168 _flag_k = FK_ADD; 9169 L_3609217A: 9170 eax = esi; /* 0x3609217A: mov eax, esi */ 9171 esi = POP32_VAL(esp); /* 0x3609217C: pop esi */ 9172 ebp = POP32_VAL(esp); /* 0x3609217D: pop ebp */ 9173 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609217E: ret 4 */ 9174 L_36092500: 9175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 9176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9177 ecx = ecx - 0x4Cu; /* 0x36092500: sub ecx, 0x4c */ 9178 _flag_k = FK_CMP; 9179 RECOMP_BACKEDGE(); 9180 goto L_36092160; /* 0x36092503: jmp 0x36092160 */ 9181 { RECOMP_REGS_OUT(); return; } /* end of function */ 9182 RECOMP_REGS_OUT(); 9183 } 9184 9185 void sub_36092510(void) { 9186 int _fpu_cmp = 0; 9187 uint32_t _cf = 0; 9188 int _df = 1; 9189 uint32_t _flag_k = FK_NONE; 9190 uint32_t _flag_a = 0, _flag_b = 0; 9191 uint32_t _itail_tgt = 0; 9192 RECOMP_REGS_LOCALS 9193 RECOMP_ENTER(0x36092510u); 9194 9195 goto L_36092510; 9196 L_36092160: 9197 PUSH32(esp, ebp); /* 0x36092160: push ebp */ 9198 ebp = esp; /* 0x36092161: mov ebp, esp */ 9199 PUSH32(esp, esi); /* 0x36092163: push esi */ 9200 esi = ecx; /* 0x36092164: mov esi, ecx */ 9201 RECOMP_ICALL(0x36092190u); /* 0x36092166: call 0x36092190 */ /* not lifted */ 9202 RECOMP_FLAGS_IN(); 9203 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609216B: test byte ptr [ebp + 8], 1 */ 9204 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9205 _cf = 0; 9206 _flag_k = FK_NARROW(FK_TEST, 24); 9207 if (TEST_Z(_flag_a, _flag_b)) goto L_3609217A; /* 0x3609216F: je 0x3609217a */ 9208 L_36092171: 9209 PUSH32(esp, esi); /* 0x36092171: push esi */ 9210 RECOMP_ICALL(0x3615FCC4u); /* 0x36092172: call 0x3615fcc4 */ /* not lifted */ 9211 RECOMP_FLAGS_IN(); 9212 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9213 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9214 esp = esp + 4; /* 0x36092177: add esp, 4 */ 9215 _flag_k = FK_ADD; 9216 L_3609217A: 9217 eax = esi; /* 0x3609217A: mov eax, esi */ 9218 esi = POP32_VAL(esp); /* 0x3609217C: pop esi */ 9219 ebp = POP32_VAL(esp); /* 0x3609217D: pop ebp */ 9220 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609217E: ret 4 */ 9221 L_36092510: 9222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u); 9223 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9224 ecx = ecx - 0x80u; /* 0x36092510: sub ecx, 0x80 */ 9225 _flag_k = FK_CMP; 9226 RECOMP_BACKEDGE(); 9227 goto L_36092160; /* 0x36092516: jmp 0x36092160 */ 9228 { RECOMP_REGS_OUT(); return; } /* end of function */ 9229 RECOMP_REGS_OUT(); 9230 } 9231 9232 void sub_36092520(void) { 9233 int _fpu_cmp = 0; 9234 uint32_t _cf = 0; 9235 int _df = 1; 9236 uint32_t _flag_k = FK_NONE; 9237 uint32_t _flag_a = 0, _flag_b = 0; 9238 uint32_t _itail_tgt = 0; 9239 RECOMP_REGS_LOCALS 9240 RECOMP_ENTER(0x36092520u); 9241 9242 goto L_36092520; 9243 L_36092160: 9244 PUSH32(esp, ebp); /* 0x36092160: push ebp */ 9245 ebp = esp; /* 0x36092161: mov ebp, esp */ 9246 PUSH32(esp, esi); /* 0x36092163: push esi */ 9247 esi = ecx; /* 0x36092164: mov esi, ecx */ 9248 RECOMP_ICALL(0x36092190u); /* 0x36092166: call 0x36092190 */ /* not lifted */ 9249 RECOMP_FLAGS_IN(); 9250 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609216B: test byte ptr [ebp + 8], 1 */ 9251 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9252 _cf = 0; 9253 _flag_k = FK_NARROW(FK_TEST, 24); 9254 if (TEST_Z(_flag_a, _flag_b)) goto L_3609217A; /* 0x3609216F: je 0x3609217a */ 9255 L_36092171: 9256 PUSH32(esp, esi); /* 0x36092171: push esi */ 9257 RECOMP_ICALL(0x3615FCC4u); /* 0x36092172: call 0x3615fcc4 */ /* not lifted */ 9258 RECOMP_FLAGS_IN(); 9259 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9261 esp = esp + 4; /* 0x36092177: add esp, 4 */ 9262 _flag_k = FK_ADD; 9263 L_3609217A: 9264 eax = esi; /* 0x3609217A: mov eax, esi */ 9265 esi = POP32_VAL(esp); /* 0x3609217C: pop esi */ 9266 ebp = POP32_VAL(esp); /* 0x3609217D: pop ebp */ 9267 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609217E: ret 4 */ 9268 L_36092520: 9269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu); 9270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9271 ecx = ecx - 0x8Cu; /* 0x36092520: sub ecx, 0x8c */ 9272 _flag_k = FK_CMP; 9273 RECOMP_BACKEDGE(); 9274 goto L_36092160; /* 0x36092526: jmp 0x36092160 */ 9275 { RECOMP_REGS_OUT(); return; } /* end of function */ 9276 RECOMP_REGS_OUT(); 9277 } 9278 9279 void sub_36092530(void) { 9280 int _fpu_cmp = 0; 9281 uint32_t _cf = 0; 9282 int _df = 1; 9283 uint32_t _flag_k = FK_NONE; 9284 uint32_t _flag_a = 0, _flag_b = 0; 9285 uint32_t _itail_tgt = 0; 9286 RECOMP_REGS_LOCALS 9287 RECOMP_ENTER(0x36092530u); 9288 9289 goto L_36092530; 9290 L_36092160: 9291 PUSH32(esp, ebp); /* 0x36092160: push ebp */ 9292 ebp = esp; /* 0x36092161: mov ebp, esp */ 9293 PUSH32(esp, esi); /* 0x36092163: push esi */ 9294 esi = ecx; /* 0x36092164: mov esi, ecx */ 9295 RECOMP_ICALL(0x36092190u); /* 0x36092166: call 0x36092190 */ /* not lifted */ 9296 RECOMP_FLAGS_IN(); 9297 /* test MEM8(ebp + 0x8), 1 */ /* 0x3609216B: test byte ptr [ebp + 8], 1 */ 9298 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9299 _cf = 0; 9300 _flag_k = FK_NARROW(FK_TEST, 24); 9301 if (TEST_Z(_flag_a, _flag_b)) goto L_3609217A; /* 0x3609216F: je 0x3609217a */ 9302 L_36092171: 9303 PUSH32(esp, esi); /* 0x36092171: push esi */ 9304 RECOMP_ICALL(0x3615FCC4u); /* 0x36092172: call 0x3615fcc4 */ /* not lifted */ 9305 RECOMP_FLAGS_IN(); 9306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9308 esp = esp + 4; /* 0x36092177: add esp, 4 */ 9309 _flag_k = FK_ADD; 9310 L_3609217A: 9311 eax = esi; /* 0x3609217A: mov eax, esi */ 9312 esi = POP32_VAL(esp); /* 0x3609217C: pop esi */ 9313 ebp = POP32_VAL(esp); /* 0x3609217D: pop ebp */ 9314 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609217E: ret 4 */ 9315 L_36092530: 9316 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xACu); 9317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9318 ecx = ecx - 0xACu; /* 0x36092530: sub ecx, 0xac */ 9319 _flag_k = FK_CMP; 9320 RECOMP_BACKEDGE(); 9321 goto L_36092160; /* 0x36092536: jmp 0x36092160 */ 9322 { RECOMP_REGS_OUT(); return; } /* end of function */ 9323 RECOMP_REGS_OUT(); 9324 } 9325 9326 void sub_36092540(void) { 9327 int _fpu_cmp = 0; 9328 uint32_t _cf = 0; 9329 int _df = 1; 9330 uint32_t _flag_k = FK_NONE; 9331 uint32_t _flag_a = 0, _flag_b = 0; 9332 uint32_t _itail_tgt = 0; 9333 RECOMP_REGS_LOCALS 9334 RECOMP_ENTER(0x36092540u); 9335 9336 L_36092540: 9337 PUSH32(esp, ebp); /* 0x36092540: push ebp */ 9338 ebp = esp; /* 0x36092541: mov ebp, esp */ 9339 PUSH32(esp, 0xFFFFFFFFu); /* 0x36092543: push -1 */ 9340 PUSH32(esp, 0x361662D8u); /* 0x36092545: push 0x361662d8 */ 9341 eax = MEM32(FS_BASE + (0)); /* 0x3609254A: mov eax, dword ptr fs:[0] */ 9342 PUSH32(esp, eax); /* 0x36092550: push eax */ 9343 MEM32(FS_BASE + (0)) = esp; /* 0x36092551: mov dword ptr fs:[0], esp */ 9344 PUSH32(esp, ecx); /* 0x36092558: push ecx */ 9345 eax = MEM32(ebp + 0xC); /* 0x36092559: mov eax, dword ptr [ebp + 0xc] */ 9346 PUSH32(esp, esi); /* 0x3609255C: push esi */ 9347 esi = ecx; /* 0x3609255D: mov esi, ecx */ 9348 ecx = MEM32(ebp + 0x8); /* 0x3609255F: mov ecx, dword ptr [ebp + 8] */ 9349 PUSH32(esp, eax); /* 0x36092562: push eax */ 9350 PUSH32(esp, ecx); /* 0x36092563: push ecx */ 9351 ecx = esi; /* 0x36092564: mov ecx, esi */ 9352 MEM32(ebp + (-0x10)) = esi; /* 0x36092566: mov dword ptr [ebp - 0x10], esi */ 9353 RECOMP_ICALL(0x3609C3C0u); /* 0x36092569: call 0x3609c3c0 */ /* not lifted */ 9354 RECOMP_FLAGS_IN(); 9355 ecx = esi; /* 0x3609256E: mov ecx, esi */ 9356 MEM32(ebp + (-0x4)) = 0; /* 0x36092570: mov dword ptr [ebp - 4], 0 */ 9357 MEM32(esi) = 0x36172E88u; /* 0x36092577: mov dword ptr [esi], 0x36172e88 */ 9358 MEM32(esi + 0x8) = 0x36172E78u; /* 0x3609257D: mov dword ptr [esi + 8], 0x36172e78 */ 9359 MEM32(esi + 0x40) = 0x36172E70u; /* 0x36092584: mov dword ptr [esi + 0x40], 0x36172e70 */ 9360 MEM32(esi + 0x4C) = 0x36172E68u; /* 0x3609258B: mov dword ptr [esi + 0x4c], 0x36172e68 */ 9361 MEM32(esi + 0x80) = 0x36172E54u; /* 0x36092592: mov dword ptr [esi + 0x80], 0x36172e54 */ 9362 MEM32(esi + 0x8C) = 0x36172DB0u; /* 0x3609259C: mov dword ptr [esi + 0x8c], 0x36172db0 */ 9363 MEM32(esi + 0xA8) = 0x36172D98u; /* 0x360925A6: mov dword ptr [esi + 0xa8], 0x36172d98 */ 9364 MEM32(esi + 0xAC) = 0x36172D90u; /* 0x360925B0: mov dword ptr [esi + 0xac], 0x36172d90 */ 9365 RECOMP_ICALL(0x36092610u); /* 0x360925BA: call 0x36092610 */ /* not lifted */ 9366 RECOMP_FLAGS_IN(); 9367 ecx = MEM32(ebp + (-0xC)); /* 0x360925BF: mov ecx, dword ptr [ebp - 0xc] */ 9368 eax = esi; /* 0x360925C2: mov eax, esi */ 9369 esi = POP32_VAL(esp); /* 0x360925C4: pop esi */ 9370 MEM32(FS_BASE + (0)) = ecx; /* 0x360925C5: mov dword ptr fs:[0], ecx */ 9371 esp = ebp; /* 0x360925CC: mov esp, ebp */ 9372 ebp = POP32_VAL(esp); /* 0x360925CE: pop ebp */ 9373 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360925CF: ret 8 */ 9374 RECOMP_REGS_OUT(); 9375 } 9376 9377 void sub_360925E0(void) { 9378 int _fpu_cmp = 0; 9379 uint32_t _cf = 0; 9380 int _df = 1; 9381 uint32_t _flag_k = FK_NONE; 9382 uint32_t _flag_a = 0, _flag_b = 0; 9383 uint32_t _itail_tgt = 0; 9384 RECOMP_REGS_LOCALS 9385 RECOMP_ENTER(0x360925E0u); 9386 9387 L_360925E0: 9388 PUSH32(esp, ebp); /* 0x360925E0: push ebp */ 9389 ebp = esp; /* 0x360925E1: mov ebp, esp */ 9390 PUSH32(esp, esi); /* 0x360925E3: push esi */ 9391 esi = ecx; /* 0x360925E4: mov esi, ecx */ 9392 RECOMP_ICALL(0x36092640u); /* 0x360925E6: call 0x36092640 */ /* not lifted */ 9393 RECOMP_FLAGS_IN(); 9394 /* test MEM8(ebp + 0x8), 1 */ /* 0x360925EB: test byte ptr [ebp + 8], 1 */ 9395 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 9396 _cf = 0; 9397 _flag_k = FK_NARROW(FK_TEST, 24); 9398 if (TEST_Z(_flag_a, _flag_b)) goto L_360925FA; /* 0x360925EF: je 0x360925fa */ 9399 L_360925F1: 9400 PUSH32(esp, esi); /* 0x360925F1: push esi */ 9401 RECOMP_ICALL(0x3615FCC4u); /* 0x360925F2: call 0x3615fcc4 */ /* not lifted */ 9402 RECOMP_FLAGS_IN(); 9403 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9404 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9405 esp = esp + 4; /* 0x360925F7: add esp, 4 */ 9406 _flag_k = FK_ADD; 9407 L_360925FA: 9408 eax = esi; /* 0x360925FA: mov eax, esi */ 9409 esi = POP32_VAL(esp); /* 0x360925FC: pop esi */ 9410 ebp = POP32_VAL(esp); /* 0x360925FD: pop ebp */ 9411 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360925FE: ret 4 */ 9412 RECOMP_REGS_OUT(); 9413 } 9414 9415 void sub_36092610(void) { 9416 int _fpu_cmp = 0; 9417 uint32_t _cf = 0; 9418 int _df = 1; 9419 uint32_t _flag_k = FK_NONE; 9420 uint32_t _flag_a = 0, _flag_b = 0; 9421 uint32_t _itail_tgt = 0; 9422 RECOMP_REGS_LOCALS 9423 RECOMP_ENTER(0x36092610u); 9424 9425 L_36092610: 9426 PUSH32(esp, esi); /* 0x36092610: push esi */ 9427 esi = ecx; /* 0x36092611: mov esi, ecx */ 9428 eax = MEM32(esi); /* 0x36092613: mov eax, dword ptr [esi] */ 9429 PUSH32(esp, 0); /* 0x36092615: push 0 */ 9430 PUSH32(esp, 0xD1u); /* 0x36092617: push 0xd1 */ 9431 RECOMP_ICALL(MEM32(eax + 0xC)); /* 0x3609261C: call dword ptr [eax + 0xc] */ 9432 RECOMP_FLAGS_IN(); 9433 PUSH32(esp, 8); /* 0x3609261F: push 8 */ 9434 ecx = esi; /* 0x36092621: mov ecx, esi */ 9435 RECOMP_ICALL(0x3608FAC0u); /* 0x36092623: call 0x3608fac0 */ /* not lifted */ 9436 RECOMP_FLAGS_IN(); 9437 MEM8(esi + 0x1A8) = (uint8_t)(0); /* 0x36092628: mov byte ptr [esi + 0x1a8], 0 */ 9438 MEM8(esi + 0x1A9) = (uint8_t)(0); /* 0x3609262F: mov byte ptr [esi + 0x1a9], 0 */ 9439 esi = POP32_VAL(esp); /* 0x36092636: pop esi */ 9440 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092637: ret */ 9441 RECOMP_REGS_OUT(); 9442 } 9443 9444 void sub_36092640(void) { 9445 int _fpu_cmp = 0; 9446 uint32_t _cf = 0; 9447 int _df = 1; 9448 uint32_t _flag_k = FK_NONE; 9449 uint32_t _flag_a = 0, _flag_b = 0; 9450 uint32_t _itail_tgt = 0; 9451 RECOMP_REGS_LOCALS 9452 RECOMP_ENTER(0x36092640u); 9453 9454 L_36092640: 9455 MEM32(ecx) = 0x36172E88u; /* 0x36092640: mov dword ptr [ecx], 0x36172e88 */ 9456 MEM32(ecx + 0x8) = 0x36172E78u; /* 0x36092646: mov dword ptr [ecx + 8], 0x36172e78 */ 9457 MEM32(ecx + 0x40) = 0x36172E70u; /* 0x3609264D: mov dword ptr [ecx + 0x40], 0x36172e70 */ 9458 MEM32(ecx + 0x4C) = 0x36172E68u; /* 0x36092654: mov dword ptr [ecx + 0x4c], 0x36172e68 */ 9459 MEM32(ecx + 0x80) = 0x36172E54u; /* 0x3609265B: mov dword ptr [ecx + 0x80], 0x36172e54 */ 9460 MEM32(ecx + 0x8C) = 0x36172DB0u; /* 0x36092665: mov dword ptr [ecx + 0x8c], 0x36172db0 */ 9461 MEM32(ecx + 0xA8) = 0x36172D98u; /* 0x3609266F: mov dword ptr [ecx + 0xa8], 0x36172d98 */ 9462 MEM32(ecx + 0xAC) = 0x36172D90u; /* 0x36092679: mov dword ptr [ecx + 0xac], 0x36172d90 */ 9463 goto L_3609CC20; /* 0x36092683: jmp 0x3609cc20 */ 9464 L_3609CC20: 9465 PUSH32(esp, ebp); /* 0x3609CC20: push ebp */ 9466 ebp = esp; /* 0x3609CC21: mov ebp, esp */ 9467 PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */ 9468 PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */ 9469 eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */ 9470 PUSH32(esp, eax); /* 0x3609CC30: push eax */ 9471 MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */ 9472 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 9473 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9474 esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */ 9475 _flag_k = FK_CMP; 9476 PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */ 9477 PUSH32(esp, esi); /* 0x3609CC3C: push esi */ 9478 esi = ecx; /* 0x3609CC3D: mov esi, ecx */ 9479 PUSH32(esp, edi); /* 0x3609CC3F: push edi */ 9480 MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */ 9481 MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */ 9482 MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */ 9483 MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */ 9484 MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */ 9485 MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */ 9486 MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */ 9487 MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */ 9488 MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */ 9489 ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */ 9490 /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */ 9491 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9492 _cf = 0; 9493 _flag_k = FK_TEST; 9494 MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */ 9495 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */ 9496 L_3609CC97: 9497 eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */ 9498 edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */ 9499 /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */ 9500 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9501 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9502 _flag_k = FK_CMP; 9503 MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */ 9504 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */ 9505 L_3609CCA3: 9506 eax = edi; /* 0x3609CCA3: mov eax, edi */ 9507 edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */ 9508 PUSH32(esp, eax); /* 0x3609CCA7: push eax */ 9509 eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */ 9510 PUSH32(esp, eax); /* 0x3609CCAB: push eax */ 9511 ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */ 9512 RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */ 9513 RECOMP_FLAGS_IN(); 9514 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */ 9515 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 9516 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9517 _flag_k = FK_CMP; 9518 RECOMP_BACKEDGE(); 9519 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */ 9520 L_3609CCB8: 9521 eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */ 9522 PUSH32(esp, eax); /* 0x3609CCBB: push eax */ 9523 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */ 9524 RECOMP_FLAGS_IN(); 9525 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9526 eax = 0; /* 0x3609CCC1: xor eax, eax */ 9527 _cf = 0; 9528 _flag_k = FK_TEST; 9529 PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */ 9530 MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */ 9531 MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */ 9532 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */ 9533 RECOMP_FLAGS_IN(); 9534 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9535 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9536 esp = esp + 8; /* 0x3609CCCF: add esp, 8 */ 9537 _flag_k = FK_ADD; 9538 L_3609CCD2: 9539 ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */ 9540 /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */ 9541 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 9542 _cf = 0; 9543 _flag_k = FK_TEST; 9544 MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */ 9545 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */ 9546 L_3609CCE6: 9547 eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */ 9548 edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */ 9549 /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */ 9550 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9551 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9552 _flag_k = FK_CMP; 9553 MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */ 9554 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */ 9555 L_3609CCF2: 9556 PUSH32(esp, 0); /* 0x3609CCF2: push 0 */ 9557 ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */ 9558 eax = edi; /* 0x3609CCF7: mov eax, edi */ 9559 edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */ 9560 PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */ 9561 ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */ 9562 MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */ 9563 RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */ 9564 RECOMP_FLAGS_IN(); 9565 eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */ 9566 ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */ 9567 edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */ 9568 MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */ 9569 ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */ 9570 edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */ 9571 PUSH32(esp, eax); /* 0x3609CD15: push eax */ 9572 MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */ 9573 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */ 9574 RECOMP_FLAGS_IN(); 9575 ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */ 9576 eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */ 9577 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9578 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9579 esp = esp + 4; /* 0x3609CD24: add esp, 4 */ 9580 _flag_k = FK_ADD; 9581 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 9582 ecx = ecx - 1; /* 0x3609CD27: dec ecx */ 9583 _flag_k = FK_DEC; 9584 /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */ 9585 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 9586 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9587 _flag_k = FK_CMP; 9588 MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */ 9589 RECOMP_BACKEDGE(); 9590 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */ 9591 L_3609CD2F: 9592 eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */ 9593 PUSH32(esp, eax); /* 0x3609CD32: push eax */ 9594 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */ 9595 RECOMP_FLAGS_IN(); 9596 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 9597 eax = 0; /* 0x3609CD38: xor eax, eax */ 9598 _cf = 0; 9599 _flag_k = FK_TEST; 9600 PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */ 9601 MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */ 9602 MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */ 9603 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */ 9604 RECOMP_FLAGS_IN(); 9605 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9606 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9607 esp = esp + 8; /* 0x3609CD46: add esp, 8 */ 9608 _flag_k = FK_ADD; 9609 L_3609CD49: 9610 eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */ 9611 /* test eax, eax */ /* 0x3609CD4F: test eax, eax */ 9612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9613 _cf = 0; 9614 _flag_k = FK_TEST; 9615 MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */ 9616 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */ 9617 L_3609CD5D: 9618 PUSH32(esp, eax); /* 0x3609CD5D: push eax */ 9619 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */ 9620 RECOMP_FLAGS_IN(); 9621 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9622 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9623 esp = esp + 4; /* 0x3609CD63: add esp, 4 */ 9624 _flag_k = FK_ADD; 9625 L_3609CD66: 9626 eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */ 9627 /* test eax, eax */ /* 0x3609CD6C: test eax, eax */ 9628 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9629 _cf = 0; 9630 _flag_k = FK_TEST; 9631 MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */ 9632 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */ 9633 L_3609CD7A: 9634 PUSH32(esp, eax); /* 0x3609CD7A: push eax */ 9635 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */ 9636 RECOMP_FLAGS_IN(); 9637 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 9638 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9639 esp = esp + 4; /* 0x3609CD80: add esp, 4 */ 9640 _flag_k = FK_ADD; 9641 L_3609CD83: 9642 ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */ 9643 /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */ 9644 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 9645 _cf = 0; 9646 _flag_k = FK_TEST; 9647 MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */ 9648 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */ 9649 L_3609CD97: 9650 RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */ 9651 RECOMP_FLAGS_IN(); 9652 MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */ 9653 L_3609CDA6: 9654 ecx = esi; /* 0x3609CDA6: mov ecx, esi */ 9655 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 9656 _cf = (ecx) != 0; 9657 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */ 9658 _flag_k = FK_CMP; 9659 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */ 9660 ecx = _sc ? 0xFFFFFFFFu : 0; 9661 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9662 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9663 eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */ 9664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9665 ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */ 9666 _cf = 0; 9667 _flag_k = FK_TEST; 9668 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */ 9669 RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */ 9670 RECOMP_FLAGS_IN(); 9671 ecx = esi; /* 0x3609CDBE: mov ecx, esi */ 9672 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 9673 _cf = (ecx) != 0; 9674 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */ 9675 _flag_k = FK_CMP; 9676 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */ 9677 ecx = _sc ? 0xFFFFFFFFu : 0; 9678 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 9679 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 9680 eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */ 9681 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 9682 ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */ 9683 _cf = 0; 9684 _flag_k = FK_TEST; 9685 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */ 9686 RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */ 9687 RECOMP_FLAGS_IN(); 9688 ecx = esi; /* 0x3609CDD5: mov ecx, esi */ 9689 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */ 9690 RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */ 9691 RECOMP_FLAGS_IN(); 9692 ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */ 9693 edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */ 9694 esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */ 9695 ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */ 9696 MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */ 9697 esp = ebp; /* 0x3609CDF0: mov esp, ebp */ 9698 ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */ 9699 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret */ 9700 RECOMP_REGS_OUT(); 9701 } 9702 9703 void sub_36092690(void) { 9704 int _fpu_cmp = 0; 9705 uint32_t _cf = 0; 9706 int _df = 1; 9707 uint32_t _flag_k = FK_NONE; 9708 uint32_t _flag_a = 0, _flag_b = 0; 9709 uint32_t _itail_tgt = 0; 9710 RECOMP_REGS_LOCALS 9711 RECOMP_ENTER(0x36092690u); 9712 9713 L_36092690: 9714 PUSH32(esp, esi); /* 0x36092690: push esi */ 9715 esi = ecx; /* 0x36092691: mov esi, ecx */ 9716 ecx = esi + (-0x8C); /* 0x36092693: lea ecx, [esi - 0x8c] */ 9717 RECOMP_ICALL(0x360021F0u); /* 0x36092699: call 0x360021f0 */ /* not lifted */ 9718 RECOMP_FLAGS_IN(); 9719 ecx = esi; /* 0x3609269E: mov ecx, esi */ 9720 RECOMP_ICALL(MEM32(0x3616FCE4)); /* 0x360926A0: call dword ptr [0x3616fce4] */ 9721 RECOMP_FLAGS_IN(); 9722 esi = POP32_VAL(esp); /* 0x360926A6: pop esi */ 9723 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360926A7: ret */ 9724 RECOMP_REGS_OUT(); 9725 } 9726 9727 void sub_360926B0(void) { 9728 int _fpu_cmp = 0; 9729 uint32_t _cf = 0; 9730 int _df = 1; 9731 uint32_t _flag_k = FK_NONE; 9732 uint32_t _flag_a = 0, _flag_b = 0; 9733 uint32_t _itail_tgt = 0; 9734 RECOMP_REGS_LOCALS 9735 RECOMP_ENTER(0x360926B0u); 9736 9737 L_360926B0: 9738 PUSH32(esp, ebp); /* 0x360926B0: push ebp */ 9739 ebp = esp; /* 0x360926B1: mov ebp, esp */ 9740 PUSH32(esp, esi); /* 0x360926B3: push esi */ 9741 esi = ecx; /* 0x360926B4: mov esi, ecx */ 9742 SET_LO8(ecx, MEM8(esi + 0x1A8)); /* 0x360926B6: mov cl, byte ptr [esi + 0x1a8] */ 9743 SET_LO8(eax, 1); /* 0x360926BC: mov al, 1 */ 9744 /* cmp LO8(ecx), LO8(eax) */ /* 0x360926BE: cmp cl, al */ 9745 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9746 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9747 _flag_k = FK_NARROW(FK_CMP, 24); 9748 PUSH32(esp, edi); /* 0x360926C0: push edi */ 9749 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609276E; /* 0x360926C1: je 0x3609276e */ 9750 L_360926C7: 9751 PUSH32(esp, 2); /* 0x360926C7: push 2 */ 9752 MEM8(esi + 0x1A8) = (uint8_t)(LO8(eax)); /* 0x360926C9: mov byte ptr [esi + 0x1a8], al */ 9753 eax = MEM32(esi); /* 0x360926CF: mov eax, dword ptr [esi] */ 9754 PUSH32(esp, 0xD1u); /* 0x360926D1: push 0xd1 */ 9755 ecx = esi; /* 0x360926D6: mov ecx, esi */ 9756 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360926D8: call dword ptr [eax + 4] */ 9757 RECOMP_FLAGS_IN(); 9758 /* test eax, eax */ /* 0x360926DB: test eax, eax */ 9759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9760 _cf = 0; 9761 _flag_k = FK_TEST; 9762 if (TEST_NZ(_flag_a, _flag_b)) goto L_360926FF; /* 0x360926DD: jne 0x360926ff */ 9763 L_360926DF: 9764 PUSH32(esp, 0x361C5EB0u); /* 0x360926DF: push 0x361c5eb0 */ 9765 PUSH32(esp, 0x000F6951u); /* 0x360926E4: push 0xf6951 */ 9766 RECOMP_ICALL(MEM32(0x36170110)); /* 0x360926E9: call dword ptr [0x36170110] */ 9767 RECOMP_FLAGS_IN(); 9768 edx = MEM32(esi); /* 0x360926EF: mov edx, dword ptr [esi] */ 9769 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 9770 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 9771 esp = esp + 8; /* 0x360926F1: add esp, 8 */ 9772 _flag_k = FK_ADD; 9773 PUSH32(esp, eax); /* 0x360926F4: push eax */ 9774 PUSH32(esp, 0xD1u); /* 0x360926F5: push 0xd1 */ 9775 ecx = esi; /* 0x360926FA: mov ecx, esi */ 9776 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360926FC: call dword ptr [edx + 8] */ 9777 RECOMP_FLAGS_IN(); 9778 L_360926FF: 9779 edi = MEM32(ebp + 0x8); /* 0x360926FF: mov edi, dword ptr [ebp + 8] */ 9780 ecx = edi; /* 0x36092702: mov ecx, edi */ 9781 RECOMP_ICALL(MEM32(0x3616FFE8)); /* 0x36092704: call dword ptr [0x3616ffe8] */ 9782 RECOMP_FLAGS_IN(); 9783 /* test eax, eax */ /* 0x3609270A: test eax, eax */ 9784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9785 _cf = 0; 9786 _flag_k = FK_TEST; 9787 if (TEST_Z(_flag_a, _flag_b)) goto L_3609276E; /* 0x3609270C: je 0x3609276e */ 9788 L_3609270E: 9789 eax = MEM32(ebp + 0xC); /* 0x3609270E: mov eax, dword ptr [ebp + 0xc] */ 9790 /* cmp eax, 6 */ /* 0x36092711: cmp eax, 6 */ 9791 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 9792 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9793 _flag_k = FK_CMP; 9794 if (CMP_NE(_flag_a, _flag_b)) goto L_3609273C; /* 0x36092714: jne 0x3609273c */ 9795 L_36092716: 9796 RECOMP_ICALL(0x360F7B00u); /* 0x36092716: call 0x360f7b00 */ /* not lifted */ 9797 RECOMP_FLAGS_IN(); 9798 PUSH32(esp, 0); /* 0x3609271B: push 0 */ 9799 PUSH32(esp, edi); /* 0x3609271D: push edi */ 9800 PUSH32(esp, 0x1772u); /* 0x3609271E: push 0x1772 */ 9801 MEM32(eax + 0x54) = 0x20u; /* 0x36092723: mov dword ptr [eax + 0x54], 0x20 */ 9802 RECOMP_ICALL(0x360F7B00u); /* 0x3609272A: call 0x360f7b00 */ /* not lifted */ 9803 RECOMP_FLAGS_IN(); 9804 ecx = eax; /* 0x3609272F: mov ecx, eax */ 9805 RECOMP_ICALL(0x360F81E0u); /* 0x36092731: call 0x360f81e0 */ /* not lifted */ 9806 RECOMP_FLAGS_IN(); 9807 edi = POP32_VAL(esp); /* 0x36092736: pop edi */ 9808 esi = POP32_VAL(esp); /* 0x36092737: pop esi */ 9809 ebp = POP32_VAL(esp); /* 0x36092738: pop ebp */ 9810 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092739: ret 8 */ 9811 L_3609273C: 9812 /* cmp eax, 8 */ /* 0x3609273C: cmp eax, 8 */ 9813 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 9814 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9815 _flag_k = FK_CMP; 9816 if (CMP_NE(_flag_a, _flag_b)) goto L_36092767; /* 0x3609273F: jne 0x36092767 */ 9817 L_36092741: 9818 RECOMP_ICALL(0x360F7B00u); /* 0x36092741: call 0x360f7b00 */ /* not lifted */ 9819 RECOMP_FLAGS_IN(); 9820 PUSH32(esp, 0); /* 0x36092746: push 0 */ 9821 PUSH32(esp, edi); /* 0x36092748: push edi */ 9822 PUSH32(esp, 0x1771u); /* 0x36092749: push 0x1771 */ 9823 MEM32(eax + 0x54) = 0x20u; /* 0x3609274E: mov dword ptr [eax + 0x54], 0x20 */ 9824 RECOMP_ICALL(0x360F7B00u); /* 0x36092755: call 0x360f7b00 */ /* not lifted */ 9825 RECOMP_FLAGS_IN(); 9826 ecx = eax; /* 0x3609275A: mov ecx, eax */ 9827 RECOMP_ICALL(0x360F81E0u); /* 0x3609275C: call 0x360f81e0 */ /* not lifted */ 9828 RECOMP_FLAGS_IN(); 9829 edi = POP32_VAL(esp); /* 0x36092761: pop edi */ 9830 esi = POP32_VAL(esp); /* 0x36092762: pop esi */ 9831 ebp = POP32_VAL(esp); /* 0x36092763: pop ebp */ 9832 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092764: ret 8 */ 9833 L_36092767: 9834 MEM8(esi + 0x1A8) = (uint8_t)(0); /* 0x36092767: mov byte ptr [esi + 0x1a8], 0 */ 9835 L_3609276E: 9836 edi = POP32_VAL(esp); /* 0x3609276E: pop edi */ 9837 esi = POP32_VAL(esp); /* 0x3609276F: pop esi */ 9838 ebp = POP32_VAL(esp); /* 0x36092770: pop ebp */ 9839 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092771: ret 8 */ 9840 RECOMP_REGS_OUT(); 9841 } 9842 9843 void sub_36092780(void) { 9844 int _fpu_cmp = 0; 9845 uint32_t _cf = 0; 9846 int _df = 1; 9847 uint32_t _flag_k = FK_NONE; 9848 uint32_t _flag_a = 0, _flag_b = 0; 9849 uint32_t _itail_tgt = 0; 9850 RECOMP_REGS_LOCALS 9851 RECOMP_ENTER(0x36092780u); 9852 9853 L_36092780: 9854 PUSH32(esp, ebp); /* 0x36092780: push ebp */ 9855 ebp = esp; /* 0x36092781: mov ebp, esp */ 9856 PUSH32(esp, esi); /* 0x36092783: push esi */ 9857 esi = ecx; /* 0x36092784: mov esi, ecx */ 9858 SET_LO8(eax, MEM8(esi + 0x1A8)); /* 0x36092786: mov al, byte ptr [esi + 0x1a8] */ 9859 /* test LO8(eax), LO8(eax) */ /* 0x3609278C: test al, al */ 9860 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9861 _cf = 0; 9862 _flag_k = FK_NARROW(FK_TEST, 24); 9863 PUSH32(esp, edi); /* 0x3609278E: push edi */ 9864 if (TEST_Z(_flag_a, _flag_b)) goto L_36092833; /* 0x3609278F: je 0x36092833 */ 9865 L_36092795: 9866 edi = MEM32(ebp + 0x8); /* 0x36092795: mov edi, dword ptr [ebp + 8] */ 9867 ecx = edi; /* 0x36092798: mov ecx, edi */ 9868 RECOMP_ICALL(MEM32(0x3616FFE8)); /* 0x3609279A: call dword ptr [0x3616ffe8] */ 9869 RECOMP_FLAGS_IN(); 9870 /* test eax, eax */ /* 0x360927A0: test eax, eax */ 9871 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 9872 _cf = 0; 9873 _flag_k = FK_TEST; 9874 if (TEST_Z(_flag_a, _flag_b)) goto L_36092833; /* 0x360927A2: je 0x36092833 */ 9875 L_360927A8: 9876 SET_LO8(eax, MEM8(esi + 0x1A9)); /* 0x360927A8: mov al, byte ptr [esi + 0x1a9] */ 9877 /* test LO8(eax), LO8(eax) */ /* 0x360927AE: test al, al */ 9878 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 9879 _cf = 0; 9880 _flag_k = FK_NARROW(FK_TEST, 24); 9881 if (TEST_Z(_flag_a, _flag_b)) goto L_360927BD; /* 0x360927B0: je 0x360927bd */ 9882 L_360927B2: 9883 eax = MEM32(esi); /* 0x360927B2: mov eax, dword ptr [esi] */ 9884 PUSH32(esp, edi); /* 0x360927B4: push edi */ 9885 ecx = esi; /* 0x360927B5: mov ecx, esi */ 9886 RECOMP_ICALL(MEM32(eax + 0x124)); /* 0x360927B7: call dword ptr [eax + 0x124] */ 9887 RECOMP_FLAGS_IN(); 9888 L_360927BD: 9889 edx = MEM32(esi); /* 0x360927BD: mov edx, dword ptr [esi] */ 9890 PUSH32(esp, 2); /* 0x360927BF: push 2 */ 9891 PUSH32(esp, 0xDCu); /* 0x360927C1: push 0xdc */ 9892 ecx = esi; /* 0x360927C6: mov ecx, esi */ 9893 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x360927C8: call dword ptr [edx + 4] */ 9894 RECOMP_FLAGS_IN(); 9895 /* cmp eax, 6 */ /* 0x360927CB: cmp eax, 6 */ 9896 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 9897 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9898 _flag_k = FK_CMP; 9899 if (CMP_NE(_flag_a, _flag_b)) goto L_360927FB; /* 0x360927CE: jne 0x360927fb */ 9900 L_360927D0: 9901 eax = MEM32(esi); /* 0x360927D0: mov eax, dword ptr [esi] */ 9902 edi = MEM32(edi + 0x150); /* 0x360927D2: mov edi, dword ptr [edi + 0x150] */ 9903 PUSH32(esp, 2); /* 0x360927D8: push 2 */ 9904 PUSH32(esp, 0xD1u); /* 0x360927DA: push 0xd1 */ 9905 ecx = esi; /* 0x360927DF: mov ecx, esi */ 9906 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x360927E1: call dword ptr [eax + 4] */ 9907 RECOMP_FLAGS_IN(); 9908 PUSH32(esp, eax); /* 0x360927E4: push eax */ 9909 PUSH32(esp, 1); /* 0x360927E5: push 1 */ 9910 ecx = edi; /* 0x360927E7: mov ecx, edi */ 9911 RECOMP_ICALL(0x3605D250u); /* 0x360927E9: call 0x3605d250 */ /* not lifted */ 9912 RECOMP_FLAGS_IN(); 9913 edi = POP32_VAL(esp); /* 0x360927EE: pop edi */ 9914 MEM8(esi + 0x1A8) = (uint8_t)(0); /* 0x360927EF: mov byte ptr [esi + 0x1a8], 0 */ 9915 esi = POP32_VAL(esp); /* 0x360927F6: pop esi */ 9916 ebp = POP32_VAL(esp); /* 0x360927F7: pop ebp */ 9917 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360927F8: ret 4 */ 9918 L_360927FB: 9919 edx = MEM32(esi); /* 0x360927FB: mov edx, dword ptr [esi] */ 9920 PUSH32(esp, 2); /* 0x360927FD: push 2 */ 9921 PUSH32(esp, 0xDCu); /* 0x360927FF: push 0xdc */ 9922 ecx = esi; /* 0x36092804: mov ecx, esi */ 9923 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36092806: call dword ptr [edx + 4] */ 9924 RECOMP_FLAGS_IN(); 9925 /* cmp eax, 8 */ /* 0x36092809: cmp eax, 8 */ 9926 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 9927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 9928 _flag_k = FK_CMP; 9929 if (CMP_NE(_flag_a, _flag_b)) goto L_3609282C; /* 0x3609280C: jne 0x3609282c */ 9930 L_3609280E: 9931 eax = MEM32(esi); /* 0x3609280E: mov eax, dword ptr [esi] */ 9932 edi = MEM32(edi + 0x150); /* 0x36092810: mov edi, dword ptr [edi + 0x150] */ 9933 PUSH32(esp, 2); /* 0x36092816: push 2 */ 9934 PUSH32(esp, 0xD1u); /* 0x36092818: push 0xd1 */ 9935 ecx = esi; /* 0x3609281D: mov ecx, esi */ 9936 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3609281F: call dword ptr [eax + 4] */ 9937 RECOMP_FLAGS_IN(); 9938 PUSH32(esp, eax); /* 0x36092822: push eax */ 9939 PUSH32(esp, 2); /* 0x36092823: push 2 */ 9940 ecx = edi; /* 0x36092825: mov ecx, edi */ 9941 RECOMP_ICALL(0x3605D250u); /* 0x36092827: call 0x3605d250 */ /* not lifted */ 9942 RECOMP_FLAGS_IN(); 9943 L_3609282C: 9944 MEM8(esi + 0x1A8) = (uint8_t)(0); /* 0x3609282C: mov byte ptr [esi + 0x1a8], 0 */ 9945 L_36092833: 9946 edi = POP32_VAL(esp); /* 0x36092833: pop edi */ 9947 esi = POP32_VAL(esp); /* 0x36092834: pop esi */ 9948 ebp = POP32_VAL(esp); /* 0x36092835: pop ebp */ 9949 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36092836: ret 4 */ 9950 RECOMP_REGS_OUT(); 9951 } 9952 9953 void sub_36092840(void) { 9954 int _fpu_cmp = 0; 9955 uint32_t _cf = 0; 9956 int _df = 1; 9957 uint32_t _flag_k = FK_NONE; 9958 uint32_t _flag_a = 0, _flag_b = 0; 9959 uint32_t _itail_tgt = 0; 9960 RECOMP_REGS_LOCALS 9961 RECOMP_ENTER(0x36092840u); 9962 9963 L_36092840: 9964 PUSH32(esp, ebp); /* 0x36092840: push ebp */ 9965 ebp = esp; /* 0x36092841: mov ebp, esp */ 9966 PUSH32(esp, esi); /* 0x36092843: push esi */ 9967 PUSH32(esp, edi); /* 0x36092844: push edi */ 9968 edi = MEM32(ebp + 0x8); /* 0x36092845: mov edi, dword ptr [ebp + 8] */ 9969 esi = ecx; /* 0x36092848: mov esi, ecx */ 9970 eax = MEM32(esi); /* 0x3609284A: mov eax, dword ptr [esi] */ 9971 ecx = edi + 0x4; /* 0x3609284C: lea ecx, [edi + 4] */ 9972 PUSH32(esp, ecx); /* 0x3609284F: push ecx */ 9973 ecx = esi; /* 0x36092850: mov ecx, esi */ 9974 RECOMP_ICALL(MEM32(eax + 0x24)); /* 0x36092852: call dword ptr [eax + 0x24] */ 9975 RECOMP_FLAGS_IN(); 9976 edx = MEM32(ebp + 0xC); /* 0x36092855: mov edx, dword ptr [ebp + 0xc] */ 9977 PUSH32(esp, edx); /* 0x36092858: push edx */ 9978 PUSH32(esp, edi); /* 0x36092859: push edi */ 9979 ecx = esi; /* 0x3609285A: mov ecx, esi */ 9980 RECOMP_ICALL(0x3609FA30u); /* 0x3609285C: call 0x3609fa30 */ /* not lifted */ 9981 RECOMP_FLAGS_IN(); 9982 edi = POP32_VAL(esp); /* 0x36092861: pop edi */ 9983 esi = POP32_VAL(esp); /* 0x36092862: pop esi */ 9984 ebp = POP32_VAL(esp); /* 0x36092863: pop ebp */ 9985 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092864: ret 8 */ 9986 RECOMP_REGS_OUT(); 9987 } 9988 9989 void sub_36092870(void) { 9990 int _fpu_cmp = 0; 9991 uint32_t _cf = 0; 9992 int _df = 1; 9993 uint32_t _flag_k = FK_NONE; 9994 uint32_t _flag_a = 0, _flag_b = 0; 9995 uint32_t _itail_tgt = 0; 9996 RECOMP_REGS_LOCALS 9997 RECOMP_ENTER(0x36092870u); 9998 9999 L_36092870: 10000 PUSH32(esp, ebp); /* 0x36092870: push ebp */ 10001 ebp = esp; /* 0x36092871: mov ebp, esp */ 10002 PUSH32(esp, 0xFFFFFFFFu); /* 0x36092873: push -1 */ 10003 PUSH32(esp, 0x361662F9u); /* 0x36092875: push 0x361662f9 */ 10004 eax = MEM32(FS_BASE + (0)); /* 0x3609287A: mov eax, dword ptr fs:[0] */ 10005 PUSH32(esp, eax); /* 0x36092880: push eax */ 10006 MEM32(FS_BASE + (0)) = esp; /* 0x36092881: mov dword ptr fs:[0], esp */ 10007 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 10008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10009 esp = esp - 0x14u; /* 0x36092888: sub esp, 0x14 */ 10010 _flag_k = FK_CMP; 10011 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3609288B: mov al, byte ptr [ebp + 0xb] */ 10012 PUSH32(esp, ebx); /* 0x3609288E: push ebx */ 10013 PUSH32(esp, esi); /* 0x3609288F: push esi */ 10014 MEM32(ebp + (-0x10)) = ecx; /* 0x36092890: mov dword ptr [ebp - 0x10], ecx */ 10015 PUSH32(esp, edi); /* 0x36092893: push edi */ 10016 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10017 ecx = ecx | 0xFFFFFFFFu; /* 0x36092894: or ecx, 0xffffffff */ 10018 _cf = 0; 10019 _flag_k = FK_TEST; 10020 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10021 esi = 0; /* 0x36092897: xor esi, esi */ 10022 _cf = 0; 10023 _flag_k = FK_TEST; 10024 MEM8(ebp + (-0x20)) = (uint8_t)(LO8(eax)); /* 0x36092899: mov byte ptr [ebp - 0x20], al */ 10025 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10026 eax = 0; /* 0x3609289C: xor eax, eax */ 10027 _cf = 0; 10028 _flag_k = FK_TEST; 10029 edi = 0x361C5638u; /* 0x3609289E: mov edi, 0x361c5638 */ 10030 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; } /* 0x360928A3: repne scasb al, byte ptr es:[edi] */ 10031 ecx = ~ecx; /* 0x360928A5: not ecx */ 10032 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10033 ecx = ecx - 1; /* 0x360928A7: dec ecx */ 10034 _flag_k = FK_DEC; 10035 ebx = ecx; /* 0x360928A8: mov ebx, ecx */ 10036 PUSH32(esp, 1); /* 0x360928AA: push 1 */ 10037 PUSH32(esp, ebx); /* 0x360928AC: push ebx */ 10038 ecx = ebp + (-0x20); /* 0x360928AD: lea ecx, [ebp - 0x20] */ 10039 MEM32(ebp + (-0x1C)) = esi; /* 0x360928B0: mov dword ptr [ebp - 0x1c], esi */ 10040 MEM32(ebp + (-0x18)) = esi; /* 0x360928B3: mov dword ptr [ebp - 0x18], esi */ 10041 MEM32(ebp + (-0x14)) = esi; /* 0x360928B6: mov dword ptr [ebp - 0x14], esi */ 10042 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x360928B9: call dword ptr [0x3616f00c] */ 10043 RECOMP_FLAGS_IN(); 10044 /* test LO8(eax), LO8(eax) */ /* 0x360928BF: test al, al */ 10045 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10046 _cf = 0; 10047 _flag_k = FK_NARROW(FK_TEST, 24); 10048 if (TEST_Z(_flag_a, _flag_b)) goto L_360928E7; /* 0x360928C1: je 0x360928e7 */ 10049 L_360928C3: 10050 edi = MEM32(ebp + (-0x1C)); /* 0x360928C3: mov edi, dword ptr [ebp - 0x1c] */ 10051 ecx = ebx; /* 0x360928C6: mov ecx, ebx */ 10052 edx = ecx; /* 0x360928C8: mov edx, ecx */ 10053 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360928CA: shr ecx, 2 */ 10054 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10055 ecx = ecx >> 2u; /* 0x360928CA: shr ecx, 2 */ 10056 esi = 0x361C5638u; /* 0x360928CD: mov esi, 0x361c5638 */ 10057 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360928D2: 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; } 10058 ecx = edx; /* 0x360928D4: mov ecx, edx */ 10059 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10060 ecx = ecx & 3; /* 0x360928D6: and ecx, 3 */ 10061 _cf = 0; 10062 _flag_k = FK_TEST; 10063 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360928D9: 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; } 10064 eax = MEM32(ebp + (-0x1C)); /* 0x360928DB: mov eax, dword ptr [ebp - 0x1c] */ 10065 MEM32(ebp + (-0x18)) = ebx; /* 0x360928DE: mov dword ptr [ebp - 0x18], ebx */ 10066 MEM8(eax + ebx) = (uint8_t)(0); /* 0x360928E1: mov byte ptr [eax + ebx], 0 */ 10067 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10068 esi = 0; /* 0x360928E5: xor esi, esi */ 10069 _cf = 0; 10070 _flag_k = FK_TEST; 10071 L_360928E7: 10072 edi = MEM32(ebp + 0x8); /* 0x360928E7: mov edi, dword ptr [ebp + 8] */ 10073 edx = MEM32(edi); /* 0x360928EA: mov edx, dword ptr [edi] */ 10074 eax = ebp + (-0x20); /* 0x360928EC: lea eax, [ebp - 0x20] */ 10075 PUSH32(esp, eax); /* 0x360928EF: push eax */ 10076 ecx = edi; /* 0x360928F0: mov ecx, edi */ 10077 MEM32(ebp + (-0x4)) = esi; /* 0x360928F2: mov dword ptr [ebp - 4], esi */ 10078 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360928F5: call dword ptr [edx + 8] */ 10079 RECOMP_FLAGS_IN(); 10080 eax = MEM32(ebp + (-0x1C)); /* 0x360928F8: mov eax, dword ptr [ebp - 0x1c] */ 10081 /* cmp eax, esi */ /* 0x360928FB: cmp eax, esi */ 10082 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 10083 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10084 _flag_k = FK_CMP; 10085 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360928FD: mov dword ptr [ebp - 4], 0xffffffff */ 10086 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092922; /* 0x36092904: je 0x36092922 */ 10087 L_36092906: 10088 ecx = eax + (-0x1); /* 0x36092906: lea ecx, [eax - 1] */ 10089 SET_LO8(eax, MEM8(ecx)); /* 0x36092909: mov al, byte ptr [ecx] */ 10090 /* test LO8(eax), LO8(eax) */ /* 0x3609290B: test al, al */ 10091 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10092 _cf = 0; 10093 _flag_k = FK_NARROW(FK_TEST, 24); 10094 if (TEST_Z(_flag_a, _flag_b)) goto L_36092919; /* 0x3609290D: je 0x36092919 */ 10095 L_3609290F: 10096 /* cmp LO8(eax), 0xFFu */ /* 0x3609290F: cmp al, 0xff */ 10097 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10098 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10099 _flag_k = FK_NARROW(FK_CMP, 24); 10100 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092919; /* 0x36092911: je 0x36092919 */ 10101 L_36092913: 10102 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10103 SET_LO8(eax, LO8(eax) - 1); /* 0x36092913: dec al */ 10104 _flag_k = FK_NARROW(FK_DEC, 24); 10105 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36092915: mov byte ptr [ecx], al */ 10106 goto L_36092922; /* 0x36092917: jmp 0x36092922 */ 10107 L_36092919: 10108 PUSH32(esp, ecx); /* 0x36092919: push ecx */ 10109 RECOMP_ICALL(0x3615FCC4u); /* 0x3609291A: call 0x3615fcc4 */ /* not lifted */ 10110 RECOMP_FLAGS_IN(); 10111 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10112 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10113 esp = esp + 4; /* 0x3609291F: add esp, 4 */ 10114 _flag_k = FK_ADD; 10115 L_36092922: 10116 ecx = MEM32(ebp + (-0x10)); /* 0x36092922: mov ecx, dword ptr [ebp - 0x10] */ 10117 edx = MEM32(ecx); /* 0x36092925: mov edx, dword ptr [ecx] */ 10118 PUSH32(esp, edi); /* 0x36092927: push edi */ 10119 MEM32(ebp + (-0x1C)) = esi; /* 0x36092928: mov dword ptr [ebp - 0x1c], esi */ 10120 MEM32(ebp + (-0x18)) = esi; /* 0x3609292B: mov dword ptr [ebp - 0x18], esi */ 10121 MEM32(ebp + (-0x14)) = esi; /* 0x3609292E: mov dword ptr [ebp - 0x14], esi */ 10122 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36092931: call dword ptr [edx + 4] */ 10123 RECOMP_FLAGS_IN(); 10124 ecx = MEM32(ebp + (-0xC)); /* 0x36092934: mov ecx, dword ptr [ebp - 0xc] */ 10125 edi = POP32_VAL(esp); /* 0x36092937: pop edi */ 10126 esi = POP32_VAL(esp); /* 0x36092938: pop esi */ 10127 ebx = POP32_VAL(esp); /* 0x36092939: pop ebx */ 10128 MEM32(FS_BASE + (0)) = ecx; /* 0x3609293A: mov dword ptr fs:[0], ecx */ 10129 esp = ebp; /* 0x36092941: mov esp, ebp */ 10130 ebp = POP32_VAL(esp); /* 0x36092943: pop ebp */ 10131 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36092944: ret 4 */ 10132 RECOMP_REGS_OUT(); 10133 } 10134 10135 void sub_36092950(void) { 10136 int _fpu_cmp = 0; 10137 uint32_t _cf = 0; 10138 int _df = 1; 10139 uint32_t _flag_k = FK_NONE; 10140 uint32_t _flag_a = 0, _flag_b = 0; 10141 uint32_t _itail_tgt = 0; 10142 RECOMP_REGS_LOCALS 10143 RECOMP_ENTER(0x36092950u); 10144 10145 L_36092950: 10146 PUSH32(esp, ebp); /* 0x36092950: push ebp */ 10147 ebp = esp; /* 0x36092951: mov ebp, esp */ 10148 PUSH32(esp, 0xFFFFFFFFu); /* 0x36092953: push -1 */ 10149 PUSH32(esp, 0x36166319u); /* 0x36092955: push 0x36166319 */ 10150 eax = MEM32(FS_BASE + (0)); /* 0x3609295A: mov eax, dword ptr fs:[0] */ 10151 PUSH32(esp, eax); /* 0x36092960: push eax */ 10152 MEM32(FS_BASE + (0)) = esp; /* 0x36092961: mov dword ptr fs:[0], esp */ 10153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 10154 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10155 esp = esp - 0x10u; /* 0x36092968: sub esp, 0x10 */ 10156 _flag_k = FK_CMP; 10157 PUSH32(esp, ebx); /* 0x3609296B: push ebx */ 10158 PUSH32(esp, esi); /* 0x3609296C: push esi */ 10159 esi = MEM32(ebp + 0x8); /* 0x3609296D: mov esi, dword ptr [ebp + 8] */ 10160 PUSH32(esp, edi); /* 0x36092970: push edi */ 10161 PUSH32(esp, esi); /* 0x36092971: push esi */ 10162 RECOMP_ICALL(0x3610DEF0u); /* 0x36092972: call 0x3610def0 */ /* not lifted */ 10163 RECOMP_FLAGS_IN(); 10164 SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x36092977: mov al, byte ptr [ebp + 0xb] */ 10165 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 10166 ecx = ecx | 0xFFFFFFFFu; /* 0x3609297A: or ecx, 0xffffffff */ 10167 _cf = 0; 10168 _flag_k = FK_TEST; 10169 MEM8(ebp + (-0x1C)) = (uint8_t)(LO8(eax)); /* 0x3609297D: mov byte ptr [ebp - 0x1c], al */ 10170 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10171 eax = 0; /* 0x36092980: xor eax, eax */ 10172 _cf = 0; 10173 _flag_k = FK_TEST; 10174 edi = 0x361C5648u; /* 0x36092982: mov edi, 0x361c5648 */ 10175 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; } /* 0x36092987: repne scasb al, byte ptr es:[edi] */ 10176 ecx = ~ecx; /* 0x36092989: not ecx */ 10177 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 10178 ecx = ecx - 1; /* 0x3609298B: dec ecx */ 10179 _flag_k = FK_DEC; 10180 ebx = ecx; /* 0x3609298C: mov ebx, ecx */ 10181 PUSH32(esp, 1); /* 0x3609298E: push 1 */ 10182 PUSH32(esp, ebx); /* 0x36092990: push ebx */ 10183 ecx = ebp + (-0x1C); /* 0x36092991: lea ecx, [ebp - 0x1c] */ 10184 MEM32(ebp + (-0x18)) = eax; /* 0x36092994: mov dword ptr [ebp - 0x18], eax */ 10185 MEM32(ebp + (-0x14)) = eax; /* 0x36092997: mov dword ptr [ebp - 0x14], eax */ 10186 MEM32(ebp + (-0x10)) = eax; /* 0x3609299A: mov dword ptr [ebp - 0x10], eax */ 10187 RECOMP_ICALL(MEM32(0x3616F00C)); /* 0x3609299D: call dword ptr [0x3616f00c] */ 10188 RECOMP_FLAGS_IN(); 10189 /* test LO8(eax), LO8(eax) */ /* 0x360929A3: test al, al */ 10190 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10191 _cf = 0; 10192 _flag_k = FK_NARROW(FK_TEST, 24); 10193 if (TEST_Z(_flag_a, _flag_b)) goto L_360929CC; /* 0x360929A5: je 0x360929cc */ 10194 L_360929A7: 10195 edi = MEM32(ebp + (-0x18)); /* 0x360929A7: mov edi, dword ptr [ebp - 0x18] */ 10196 ecx = ebx; /* 0x360929AA: mov ecx, ebx */ 10197 edx = ecx; /* 0x360929AC: mov edx, ecx */ 10198 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x360929AE: shr ecx, 2 */ 10199 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10200 ecx = ecx >> 2u; /* 0x360929AE: shr ecx, 2 */ 10201 esi = 0x361C5648u; /* 0x360929B1: mov esi, 0x361c5648 */ 10202 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x360929B6: 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; } 10203 ecx = edx; /* 0x360929B8: mov ecx, edx */ 10204 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 10205 ecx = ecx & 3; /* 0x360929BA: and ecx, 3 */ 10206 _cf = 0; 10207 _flag_k = FK_TEST; 10208 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x360929BD: 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; } 10209 eax = MEM32(ebp + (-0x18)); /* 0x360929BF: mov eax, dword ptr [ebp - 0x18] */ 10210 esi = MEM32(ebp + 0x8); /* 0x360929C2: mov esi, dword ptr [ebp + 8] */ 10211 MEM32(ebp + (-0x14)) = ebx; /* 0x360929C5: mov dword ptr [ebp - 0x14], ebx */ 10212 MEM8(eax + ebx) = (uint8_t)(0); /* 0x360929C8: mov byte ptr [eax + ebx], 0 */ 10213 L_360929CC: 10214 edx = MEM32(esi); /* 0x360929CC: mov edx, dword ptr [esi] */ 10215 eax = ebp + (-0x1C); /* 0x360929CE: lea eax, [ebp - 0x1c] */ 10216 PUSH32(esp, eax); /* 0x360929D1: push eax */ 10217 ecx = esi; /* 0x360929D2: mov ecx, esi */ 10218 MEM32(ebp + (-0x4)) = 0; /* 0x360929D4: mov dword ptr [ebp - 4], 0 */ 10219 RECOMP_ICALL(MEM32(edx + 0x20)); /* 0x360929DB: call dword ptr [edx + 0x20] */ 10220 RECOMP_FLAGS_IN(); 10221 eax = MEM32(ebp + (-0x18)); /* 0x360929DE: mov eax, dword ptr [ebp - 0x18] */ 10222 /* test eax, eax */ /* 0x360929E1: test eax, eax */ 10223 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10224 _cf = 0; 10225 _flag_k = FK_TEST; 10226 edi = POP32_VAL(esp); /* 0x360929E3: pop edi */ 10227 esi = POP32_VAL(esp); /* 0x360929E4: pop esi */ 10228 ebx = POP32_VAL(esp); /* 0x360929E5: pop ebx */ 10229 if (TEST_Z(_flag_a, _flag_b)) goto L_36092A12; /* 0x360929E6: je 0x36092a12 */ 10230 L_360929E8: 10231 ecx = eax + (-0x1); /* 0x360929E8: lea ecx, [eax - 1] */ 10232 SET_LO8(eax, MEM8(ecx)); /* 0x360929EB: mov al, byte ptr [ecx] */ 10233 /* test LO8(eax), LO8(eax) */ /* 0x360929ED: test al, al */ 10234 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10235 _cf = 0; 10236 _flag_k = FK_NARROW(FK_TEST, 24); 10237 if (TEST_Z(_flag_a, _flag_b)) goto L_36092A09; /* 0x360929EF: je 0x36092a09 */ 10238 L_360929F1: 10239 /* cmp LO8(eax), 0xFFu */ /* 0x360929F1: cmp al, 0xff */ 10240 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 10241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10242 _flag_k = FK_NARROW(FK_CMP, 24); 10243 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092A09; /* 0x360929F3: je 0x36092a09 */ 10244 L_360929F5: 10245 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 10246 SET_LO8(eax, LO8(eax) - 1); /* 0x360929F5: dec al */ 10247 _flag_k = FK_NARROW(FK_DEC, 24); 10248 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x360929F7: mov byte ptr [ecx], al */ 10249 ecx = MEM32(ebp + (-0xC)); /* 0x360929F9: mov ecx, dword ptr [ebp - 0xc] */ 10250 MEM32(FS_BASE + (0)) = ecx; /* 0x360929FC: mov dword ptr fs:[0], ecx */ 10251 esp = ebp; /* 0x36092A03: mov esp, ebp */ 10252 ebp = POP32_VAL(esp); /* 0x36092A05: pop ebp */ 10253 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36092A06: ret 4 */ 10254 L_36092A09: 10255 PUSH32(esp, ecx); /* 0x36092A09: push ecx */ 10256 RECOMP_ICALL(0x3615FCC4u); /* 0x36092A0A: call 0x3615fcc4 */ /* not lifted */ 10257 RECOMP_FLAGS_IN(); 10258 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10259 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10260 esp = esp + 4; /* 0x36092A0F: add esp, 4 */ 10261 _flag_k = FK_ADD; 10262 L_36092A12: 10263 ecx = MEM32(ebp + (-0xC)); /* 0x36092A12: mov ecx, dword ptr [ebp - 0xc] */ 10264 MEM32(FS_BASE + (0)) = ecx; /* 0x36092A15: mov dword ptr fs:[0], ecx */ 10265 esp = ebp; /* 0x36092A1C: mov esp, ebp */ 10266 ebp = POP32_VAL(esp); /* 0x36092A1E: pop ebp */ 10267 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36092A1F: ret 4 */ 10268 RECOMP_REGS_OUT(); 10269 } 10270 10271 void sub_36092A30(void) { 10272 int _fpu_cmp = 0; 10273 uint32_t _cf = 0; 10274 int _df = 1; 10275 uint32_t _flag_k = FK_NONE; 10276 uint32_t _flag_a = 0, _flag_b = 0; 10277 uint32_t _itail_tgt = 0; 10278 RECOMP_REGS_LOCALS 10279 RECOMP_ENTER(0x36092A30u); 10280 10281 L_36092A30: 10282 PUSH32(esp, ebp); /* 0x36092A30: push ebp */ 10283 ebp = esp; /* 0x36092A31: mov ebp, esp */ 10284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10285 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10286 esp = esp - 8; /* 0x36092A33: sub esp, 8 */ 10287 _flag_k = FK_CMP; 10288 PUSH32(esp, esi); /* 0x36092A36: push esi */ 10289 PUSH32(esp, edi); /* 0x36092A37: push edi */ 10290 edi = ecx; /* 0x36092A38: mov edi, ecx */ 10291 PUSH32(esp, 8); /* 0x36092A3A: push 8 */ 10292 RECOMP_ICALL(0x3608F990u); /* 0x36092A3C: call 0x3608f990 */ /* not lifted */ 10293 RECOMP_FLAGS_IN(); 10294 esi = eax; /* 0x36092A41: mov esi, eax */ 10295 /* test esi, esi */ /* 0x36092A43: test esi, esi */ 10296 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10297 _cf = 0; 10298 _flag_k = FK_TEST; 10299 if (TEST_Z(_flag_a, _flag_b)) goto L_36092AAB; /* 0x36092A45: je 0x36092aab */ 10300 L_36092A47: 10301 ecx = esi; /* 0x36092A47: mov ecx, esi */ 10302 RECOMP_ICALL(0x36008320u); /* 0x36092A49: call 0x36008320 */ /* not lifted */ 10303 RECOMP_FLAGS_IN(); 10304 eax = MEM32(eax); /* 0x36092A4E: mov eax, dword ptr [eax] */ 10305 ecx = MEM32(eax + 0x8); /* 0x36092A50: mov ecx, dword ptr [eax + 8] */ 10306 /* test ecx, ecx */ /* 0x36092A53: test ecx, ecx */ 10307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10308 _cf = 0; 10309 _flag_k = FK_TEST; 10310 if (TEST_Z(_flag_a, _flag_b)) goto L_36092A9E; /* 0x36092A55: je 0x36092a9e */ 10311 L_36092A57: 10312 eax = MEM32(ebp + 0x8); /* 0x36092A57: mov eax, dword ptr [ebp + 8] */ 10313 /* test eax, eax */ /* 0x36092A5A: test eax, eax */ 10314 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 10315 _cf = 0; 10316 _flag_k = FK_TEST; 10317 if (TEST_Z(_flag_a, _flag_b)) goto L_36092A66; /* 0x36092A5C: je 0x36092a66 */ 10318 L_36092A5E: 10319 edi = eax + 0xE4; /* 0x36092A5E: lea edi, [eax + 0xe4] */ 10320 goto L_36092A68; /* 0x36092A64: jmp 0x36092a68 */ 10321 L_36092A66: 10322 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10323 edi = 0; /* 0x36092A66: xor edi, edi */ 10324 _cf = 0; 10325 _flag_k = FK_TEST; 10326 L_36092A68: 10327 PUSH32(esp, 0xFFFFFFFFu); /* 0x36092A68: push -1 */ 10328 PUSH32(esp, 0); /* 0x36092A6A: push 0 */ 10329 PUSH32(esp, 0); /* 0x36092A6C: push 0 */ 10330 ecx = ebp + (-0x8); /* 0x36092A6E: lea ecx, [ebp - 8] */ 10331 RECOMP_ICALL(0x36090B50u); /* 0x36092A71: call 0x36090b50 */ /* not lifted */ 10332 RECOMP_FLAGS_IN(); 10333 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10334 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10335 esp = esp - 8; /* 0x36092A76: sub esp, 8 */ 10336 _flag_k = FK_CMP; 10337 ecx = esp; /* 0x36092A79: mov ecx, esp */ 10338 PUSH32(esp, eax); /* 0x36092A7B: push eax */ 10339 RECOMP_ICALL(0x360056C0u); /* 0x36092A7C: call 0x360056c0 */ /* not lifted */ 10340 RECOMP_FLAGS_IN(); 10341 eax = MEM32(ebp + 0xC); /* 0x36092A81: mov eax, dword ptr [ebp + 0xc] */ 10342 PUSH32(esp, 0); /* 0x36092A84: push 0 */ 10343 PUSH32(esp, eax); /* 0x36092A86: push eax */ 10344 PUSH32(esp, edi); /* 0x36092A87: push edi */ 10345 ecx = esi; /* 0x36092A88: mov ecx, esi */ 10346 RECOMP_ICALL(0x36005680u); /* 0x36092A8A: call 0x36005680 */ /* not lifted */ 10347 RECOMP_FLAGS_IN(); 10348 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10349 _cf = (LO8(eax)) != 0; 10350 SET_LO8(eax, (uint32_t)(-(int32_t)LO8(eax))); /* 0x36092A8F: neg al */ 10351 _flag_k = FK_NARROW(FK_CMP, 24); 10352 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x36092A91: sbb eax, eax */ 10353 eax = _sc ? 0xFFFFFFFFu : 0; 10354 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 10355 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 10356 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 10357 eax = eax & 2; /* 0x36092A93: and eax, 2 */ 10358 _cf = 0; 10359 _flag_k = FK_TEST; 10360 edi = POP32_VAL(esp); /* 0x36092A96: pop edi */ 10361 esi = POP32_VAL(esp); /* 0x36092A97: pop esi */ 10362 esp = ebp; /* 0x36092A98: mov esp, ebp */ 10363 ebp = POP32_VAL(esp); /* 0x36092A9A: pop ebp */ 10364 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092A9B: ret 8 */ 10365 L_36092A9E: 10366 eax = 2; /* 0x36092A9E: mov eax, 2 */ 10367 edi = POP32_VAL(esp); /* 0x36092AA3: pop edi */ 10368 esi = POP32_VAL(esp); /* 0x36092AA4: pop esi */ 10369 esp = ebp; /* 0x36092AA5: mov esp, ebp */ 10370 ebp = POP32_VAL(esp); /* 0x36092AA7: pop ebp */ 10371 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092AA8: ret 8 */ 10372 L_36092AAB: 10373 ecx = MEM32(ebp + 0xC); /* 0x36092AAB: mov ecx, dword ptr [ebp + 0xc] */ 10374 edx = MEM32(ebp + 0x8); /* 0x36092AAE: mov edx, dword ptr [ebp + 8] */ 10375 PUSH32(esp, ecx); /* 0x36092AB1: push ecx */ 10376 PUSH32(esp, edx); /* 0x36092AB2: push edx */ 10377 ecx = edi; /* 0x36092AB3: mov ecx, edi */ 10378 RECOMP_ICALL(0x3609D770u); /* 0x36092AB5: call 0x3609d770 */ /* not lifted */ 10379 RECOMP_FLAGS_IN(); 10380 edi = POP32_VAL(esp); /* 0x36092ABA: pop edi */ 10381 esi = POP32_VAL(esp); /* 0x36092ABB: pop esi */ 10382 esp = ebp; /* 0x36092ABC: mov esp, ebp */ 10383 ebp = POP32_VAL(esp); /* 0x36092ABE: pop ebp */ 10384 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092ABF: ret 8 */ 10385 RECOMP_REGS_OUT(); 10386 } 10387 10388 void sub_36092AD0(void) { 10389 int _fpu_cmp = 0; 10390 uint32_t _cf = 0; 10391 int _df = 1; 10392 uint32_t _flag_k = FK_NONE; 10393 uint32_t _flag_a = 0, _flag_b = 0; 10394 uint32_t _itail_tgt = 0; 10395 RECOMP_REGS_LOCALS 10396 RECOMP_ENTER(0x36092AD0u); 10397 10398 L_36092AD0: 10399 PUSH32(esp, ebp); /* 0x36092AD0: push ebp */ 10400 ebp = esp; /* 0x36092AD1: mov ebp, esp */ 10401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10402 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10403 esp = esp - 8; /* 0x36092AD3: sub esp, 8 */ 10404 _flag_k = FK_CMP; 10405 PUSH32(esp, ebx); /* 0x36092AD6: push ebx */ 10406 PUSH32(esp, esi); /* 0x36092AD7: push esi */ 10407 PUSH32(esp, edi); /* 0x36092AD8: push edi */ 10408 ebx = ecx; /* 0x36092AD9: mov ebx, ecx */ 10409 PUSH32(esp, 9); /* 0x36092ADB: push 9 */ 10410 RECOMP_ICALL(0x3608F990u); /* 0x36092ADD: call 0x3608f990 */ /* not lifted */ 10411 RECOMP_FLAGS_IN(); 10412 esi = eax; /* 0x36092AE2: mov esi, eax */ 10413 /* test esi, esi */ /* 0x36092AE4: test esi, esi */ 10414 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 10415 _cf = 0; 10416 _flag_k = FK_TEST; 10417 if (TEST_Z(_flag_a, _flag_b)) goto L_36092B3F; /* 0x36092AE6: je 0x36092b3f */ 10418 L_36092AE8: 10419 ecx = esi; /* 0x36092AE8: mov ecx, esi */ 10420 RECOMP_ICALL(0x36008320u); /* 0x36092AEA: call 0x36008320 */ /* not lifted */ 10421 RECOMP_FLAGS_IN(); 10422 eax = MEM32(eax); /* 0x36092AEF: mov eax, dword ptr [eax] */ 10423 ecx = MEM32(eax + 0x8); /* 0x36092AF1: mov ecx, dword ptr [eax + 8] */ 10424 /* test ecx, ecx */ /* 0x36092AF4: test ecx, ecx */ 10425 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 10426 _cf = 0; 10427 _flag_k = FK_TEST; 10428 if (TEST_Z(_flag_a, _flag_b)) goto L_36092B3F; /* 0x36092AF6: je 0x36092b3f */ 10429 L_36092AF8: 10430 edi = MEM32(ebp + 0x8); /* 0x36092AF8: mov edi, dword ptr [ebp + 8] */ 10431 /* test edi, edi */ /* 0x36092AFB: test edi, edi */ 10432 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 10433 _cf = 0; 10434 _flag_k = FK_TEST; 10435 if (TEST_Z(_flag_a, _flag_b)) goto L_36092B07; /* 0x36092AFD: je 0x36092b07 */ 10436 L_36092AFF: 10437 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xE4u); 10438 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10439 edi = edi + 0xE4u; /* 0x36092AFF: add edi, 0xe4 */ 10440 _flag_k = FK_ADD; 10441 goto L_36092B09; /* 0x36092B05: jmp 0x36092b09 */ 10442 L_36092B07: 10443 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10444 edi = 0; /* 0x36092B07: xor edi, edi */ 10445 _cf = 0; 10446 _flag_k = FK_TEST; 10447 L_36092B09: 10448 PUSH32(esp, 0xFFFFFFFFu); /* 0x36092B09: push -1 */ 10449 PUSH32(esp, 0); /* 0x36092B0B: push 0 */ 10450 PUSH32(esp, 0); /* 0x36092B0D: push 0 */ 10451 ecx = ebp + (-0x8); /* 0x36092B0F: lea ecx, [ebp - 8] */ 10452 RECOMP_ICALL(0x36090B50u); /* 0x36092B12: call 0x36090b50 */ /* not lifted */ 10453 RECOMP_FLAGS_IN(); 10454 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10456 esp = esp - 8; /* 0x36092B17: sub esp, 8 */ 10457 _flag_k = FK_CMP; 10458 ecx = esp; /* 0x36092B1A: mov ecx, esp */ 10459 PUSH32(esp, eax); /* 0x36092B1C: push eax */ 10460 RECOMP_ICALL(0x360056C0u); /* 0x36092B1D: call 0x360056c0 */ /* not lifted */ 10461 RECOMP_FLAGS_IN(); 10462 eax = MEM32(ebp + 0xC); /* 0x36092B22: mov eax, dword ptr [ebp + 0xc] */ 10463 PUSH32(esp, 0); /* 0x36092B25: push 0 */ 10464 PUSH32(esp, eax); /* 0x36092B27: push eax */ 10465 PUSH32(esp, edi); /* 0x36092B28: push edi */ 10466 ecx = esi; /* 0x36092B29: mov ecx, esi */ 10467 RECOMP_ICALL(0x36005680u); /* 0x36092B2B: call 0x36005680 */ /* not lifted */ 10468 RECOMP_FLAGS_IN(); 10469 /* test LO8(eax), LO8(eax) */ /* 0x36092B30: test al, al */ 10470 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 10471 _cf = 0; 10472 _flag_k = FK_NARROW(FK_TEST, 24); 10473 if (TEST_NZ(_flag_a, _flag_b)) goto L_36092B3F; /* 0x36092B32: jne 0x36092b3f */ 10474 L_36092B34: 10475 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10476 eax = 0; /* 0x36092B34: xor eax, eax */ 10477 _cf = 0; 10478 _flag_k = FK_TEST; 10479 edi = POP32_VAL(esp); /* 0x36092B36: pop edi */ 10480 esi = POP32_VAL(esp); /* 0x36092B37: pop esi */ 10481 ebx = POP32_VAL(esp); /* 0x36092B38: pop ebx */ 10482 esp = ebp; /* 0x36092B39: mov esp, ebp */ 10483 ebp = POP32_VAL(esp); /* 0x36092B3B: pop ebp */ 10484 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092B3C: ret 8 */ 10485 L_36092B3F: 10486 ecx = MEM32(ebp + 0xC); /* 0x36092B3F: mov ecx, dword ptr [ebp + 0xc] */ 10487 edx = MEM32(ebp + 0x8); /* 0x36092B42: mov edx, dword ptr [ebp + 8] */ 10488 PUSH32(esp, ecx); /* 0x36092B45: push ecx */ 10489 PUSH32(esp, edx); /* 0x36092B46: push edx */ 10490 ecx = ebx; /* 0x36092B47: mov ecx, ebx */ 10491 RECOMP_ICALL(0x3609D770u); /* 0x36092B49: call 0x3609d770 */ /* not lifted */ 10492 RECOMP_FLAGS_IN(); 10493 edi = POP32_VAL(esp); /* 0x36092B4E: pop edi */ 10494 esi = POP32_VAL(esp); /* 0x36092B4F: pop esi */ 10495 ebx = POP32_VAL(esp); /* 0x36092B50: pop ebx */ 10496 esp = ebp; /* 0x36092B51: mov esp, ebp */ 10497 ebp = POP32_VAL(esp); /* 0x36092B53: pop ebp */ 10498 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36092B54: ret 8 */ 10499 RECOMP_REGS_OUT(); 10500 } 10501 10502 void sub_36092B60(void) { 10503 int _fpu_cmp = 0; 10504 uint32_t _cf = 0; 10505 int _df = 1; 10506 uint32_t _flag_k = FK_NONE; 10507 uint32_t _flag_a = 0, _flag_b = 0; 10508 uint32_t _itail_tgt = 0; 10509 RECOMP_REGS_LOCALS 10510 RECOMP_ENTER(0x36092B60u); 10511 10512 L_36092B60: 10513 PUSH32(esp, ebp); /* 0x36092B60: push ebp */ 10514 ebp = esp; /* 0x36092B61: mov ebp, esp */ 10515 SET_LO8(eax, MEM8(ebp + 0xC)); /* 0x36092B63: mov al, byte ptr [ebp + 0xc] */ 10516 MEM8(ecx + 0x1A8) = (uint8_t)(LO8(eax)); /* 0x36092B66: mov byte ptr [ecx + 0x1a8], al */ 10517 ebp = POP32_VAL(esp); /* 0x36092B6C: pop ebp */ 10518 RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x36092B6D: ret 0xc */ 10519 RECOMP_REGS_OUT(); 10520 } 10521 10522 void sub_36092B70(void) { 10523 int _fpu_cmp = 0; 10524 uint32_t _cf = 0; 10525 int _df = 1; 10526 uint32_t _flag_k = FK_NONE; 10527 uint32_t _flag_a = 0, _flag_b = 0; 10528 uint32_t _itail_tgt = 0; 10529 RECOMP_REGS_LOCALS 10530 RECOMP_ENTER(0x36092B70u); 10531 10532 goto L_36092B70; 10533 L_360925E0: 10534 PUSH32(esp, ebp); /* 0x360925E0: push ebp */ 10535 ebp = esp; /* 0x360925E1: mov ebp, esp */ 10536 PUSH32(esp, esi); /* 0x360925E3: push esi */ 10537 esi = ecx; /* 0x360925E4: mov esi, ecx */ 10538 RECOMP_ICALL(0x36092640u); /* 0x360925E6: call 0x36092640 */ /* not lifted */ 10539 RECOMP_FLAGS_IN(); 10540 /* test MEM8(ebp + 0x8), 1 */ /* 0x360925EB: test byte ptr [ebp + 8], 1 */ 10541 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10542 _cf = 0; 10543 _flag_k = FK_NARROW(FK_TEST, 24); 10544 if (TEST_Z(_flag_a, _flag_b)) goto L_360925FA; /* 0x360925EF: je 0x360925fa */ 10545 L_360925F1: 10546 PUSH32(esp, esi); /* 0x360925F1: push esi */ 10547 RECOMP_ICALL(0x3615FCC4u); /* 0x360925F2: call 0x3615fcc4 */ /* not lifted */ 10548 RECOMP_FLAGS_IN(); 10549 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10550 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10551 esp = esp + 4; /* 0x360925F7: add esp, 4 */ 10552 _flag_k = FK_ADD; 10553 L_360925FA: 10554 eax = esi; /* 0x360925FA: mov eax, esi */ 10555 esi = POP32_VAL(esp); /* 0x360925FC: pop esi */ 10556 ebp = POP32_VAL(esp); /* 0x360925FD: pop ebp */ 10557 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360925FE: ret 4 */ 10558 L_36092B70: 10559 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8); 10560 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10561 ecx = ecx - 8; /* 0x36092B70: sub ecx, 8 */ 10562 _flag_k = FK_CMP; 10563 RECOMP_BACKEDGE(); 10564 goto L_360925E0; /* 0x36092B73: jmp 0x360925e0 */ 10565 { RECOMP_REGS_OUT(); return; } /* end of function */ 10566 RECOMP_REGS_OUT(); 10567 } 10568 10569 void sub_36092B80(void) { 10570 int _fpu_cmp = 0; 10571 uint32_t _cf = 0; 10572 int _df = 1; 10573 uint32_t _flag_k = FK_NONE; 10574 uint32_t _flag_a = 0, _flag_b = 0; 10575 uint32_t _itail_tgt = 0; 10576 RECOMP_REGS_LOCALS 10577 RECOMP_ENTER(0x36092B80u); 10578 10579 goto L_36092B80; 10580 L_360925E0: 10581 PUSH32(esp, ebp); /* 0x360925E0: push ebp */ 10582 ebp = esp; /* 0x360925E1: mov ebp, esp */ 10583 PUSH32(esp, esi); /* 0x360925E3: push esi */ 10584 esi = ecx; /* 0x360925E4: mov esi, ecx */ 10585 RECOMP_ICALL(0x36092640u); /* 0x360925E6: call 0x36092640 */ /* not lifted */ 10586 RECOMP_FLAGS_IN(); 10587 /* test MEM8(ebp + 0x8), 1 */ /* 0x360925EB: test byte ptr [ebp + 8], 1 */ 10588 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10589 _cf = 0; 10590 _flag_k = FK_NARROW(FK_TEST, 24); 10591 if (TEST_Z(_flag_a, _flag_b)) goto L_360925FA; /* 0x360925EF: je 0x360925fa */ 10592 L_360925F1: 10593 PUSH32(esp, esi); /* 0x360925F1: push esi */ 10594 RECOMP_ICALL(0x3615FCC4u); /* 0x360925F2: call 0x3615fcc4 */ /* not lifted */ 10595 RECOMP_FLAGS_IN(); 10596 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10598 esp = esp + 4; /* 0x360925F7: add esp, 4 */ 10599 _flag_k = FK_ADD; 10600 L_360925FA: 10601 eax = esi; /* 0x360925FA: mov eax, esi */ 10602 esi = POP32_VAL(esp); /* 0x360925FC: pop esi */ 10603 ebp = POP32_VAL(esp); /* 0x360925FD: pop ebp */ 10604 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360925FE: ret 4 */ 10605 L_36092B80: 10606 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 10607 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10608 ecx = ecx - 0x40u; /* 0x36092B80: sub ecx, 0x40 */ 10609 _flag_k = FK_CMP; 10610 RECOMP_BACKEDGE(); 10611 goto L_360925E0; /* 0x36092B83: jmp 0x360925e0 */ 10612 { RECOMP_REGS_OUT(); return; } /* end of function */ 10613 RECOMP_REGS_OUT(); 10614 } 10615 10616 void sub_36092B90(void) { 10617 int _fpu_cmp = 0; 10618 uint32_t _cf = 0; 10619 int _df = 1; 10620 uint32_t _flag_k = FK_NONE; 10621 uint32_t _flag_a = 0, _flag_b = 0; 10622 uint32_t _itail_tgt = 0; 10623 RECOMP_REGS_LOCALS 10624 RECOMP_ENTER(0x36092B90u); 10625 10626 goto L_36092B90; 10627 L_360925E0: 10628 PUSH32(esp, ebp); /* 0x360925E0: push ebp */ 10629 ebp = esp; /* 0x360925E1: mov ebp, esp */ 10630 PUSH32(esp, esi); /* 0x360925E3: push esi */ 10631 esi = ecx; /* 0x360925E4: mov esi, ecx */ 10632 RECOMP_ICALL(0x36092640u); /* 0x360925E6: call 0x36092640 */ /* not lifted */ 10633 RECOMP_FLAGS_IN(); 10634 /* test MEM8(ebp + 0x8), 1 */ /* 0x360925EB: test byte ptr [ebp + 8], 1 */ 10635 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10636 _cf = 0; 10637 _flag_k = FK_NARROW(FK_TEST, 24); 10638 if (TEST_Z(_flag_a, _flag_b)) goto L_360925FA; /* 0x360925EF: je 0x360925fa */ 10639 L_360925F1: 10640 PUSH32(esp, esi); /* 0x360925F1: push esi */ 10641 RECOMP_ICALL(0x3615FCC4u); /* 0x360925F2: call 0x3615fcc4 */ /* not lifted */ 10642 RECOMP_FLAGS_IN(); 10643 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10645 esp = esp + 4; /* 0x360925F7: add esp, 4 */ 10646 _flag_k = FK_ADD; 10647 L_360925FA: 10648 eax = esi; /* 0x360925FA: mov eax, esi */ 10649 esi = POP32_VAL(esp); /* 0x360925FC: pop esi */ 10650 ebp = POP32_VAL(esp); /* 0x360925FD: pop ebp */ 10651 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360925FE: ret 4 */ 10652 L_36092B90: 10653 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 10654 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10655 ecx = ecx - 0x4Cu; /* 0x36092B90: sub ecx, 0x4c */ 10656 _flag_k = FK_CMP; 10657 RECOMP_BACKEDGE(); 10658 goto L_360925E0; /* 0x36092B93: jmp 0x360925e0 */ 10659 { RECOMP_REGS_OUT(); return; } /* end of function */ 10660 RECOMP_REGS_OUT(); 10661 } 10662 10663 void sub_36092BA0(void) { 10664 int _fpu_cmp = 0; 10665 uint32_t _cf = 0; 10666 int _df = 1; 10667 uint32_t _flag_k = FK_NONE; 10668 uint32_t _flag_a = 0, _flag_b = 0; 10669 uint32_t _itail_tgt = 0; 10670 RECOMP_REGS_LOCALS 10671 RECOMP_ENTER(0x36092BA0u); 10672 10673 goto L_36092BA0; 10674 L_360925E0: 10675 PUSH32(esp, ebp); /* 0x360925E0: push ebp */ 10676 ebp = esp; /* 0x360925E1: mov ebp, esp */ 10677 PUSH32(esp, esi); /* 0x360925E3: push esi */ 10678 esi = ecx; /* 0x360925E4: mov esi, ecx */ 10679 RECOMP_ICALL(0x36092640u); /* 0x360925E6: call 0x36092640 */ /* not lifted */ 10680 RECOMP_FLAGS_IN(); 10681 /* test MEM8(ebp + 0x8), 1 */ /* 0x360925EB: test byte ptr [ebp + 8], 1 */ 10682 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10683 _cf = 0; 10684 _flag_k = FK_NARROW(FK_TEST, 24); 10685 if (TEST_Z(_flag_a, _flag_b)) goto L_360925FA; /* 0x360925EF: je 0x360925fa */ 10686 L_360925F1: 10687 PUSH32(esp, esi); /* 0x360925F1: push esi */ 10688 RECOMP_ICALL(0x3615FCC4u); /* 0x360925F2: call 0x3615fcc4 */ /* not lifted */ 10689 RECOMP_FLAGS_IN(); 10690 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10691 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10692 esp = esp + 4; /* 0x360925F7: add esp, 4 */ 10693 _flag_k = FK_ADD; 10694 L_360925FA: 10695 eax = esi; /* 0x360925FA: mov eax, esi */ 10696 esi = POP32_VAL(esp); /* 0x360925FC: pop esi */ 10697 ebp = POP32_VAL(esp); /* 0x360925FD: pop ebp */ 10698 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360925FE: ret 4 */ 10699 L_36092BA0: 10700 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x80u); 10701 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10702 ecx = ecx - 0x80u; /* 0x36092BA0: sub ecx, 0x80 */ 10703 _flag_k = FK_CMP; 10704 RECOMP_BACKEDGE(); 10705 goto L_360925E0; /* 0x36092BA6: jmp 0x360925e0 */ 10706 { RECOMP_REGS_OUT(); return; } /* end of function */ 10707 RECOMP_REGS_OUT(); 10708 } 10709 10710 void sub_36092BB0(void) { 10711 int _fpu_cmp = 0; 10712 uint32_t _cf = 0; 10713 int _df = 1; 10714 uint32_t _flag_k = FK_NONE; 10715 uint32_t _flag_a = 0, _flag_b = 0; 10716 uint32_t _itail_tgt = 0; 10717 RECOMP_REGS_LOCALS 10718 RECOMP_ENTER(0x36092BB0u); 10719 10720 goto L_36092BB0; 10721 L_360925E0: 10722 PUSH32(esp, ebp); /* 0x360925E0: push ebp */ 10723 ebp = esp; /* 0x360925E1: mov ebp, esp */ 10724 PUSH32(esp, esi); /* 0x360925E3: push esi */ 10725 esi = ecx; /* 0x360925E4: mov esi, ecx */ 10726 RECOMP_ICALL(0x36092640u); /* 0x360925E6: call 0x36092640 */ /* not lifted */ 10727 RECOMP_FLAGS_IN(); 10728 /* test MEM8(ebp + 0x8), 1 */ /* 0x360925EB: test byte ptr [ebp + 8], 1 */ 10729 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10730 _cf = 0; 10731 _flag_k = FK_NARROW(FK_TEST, 24); 10732 if (TEST_Z(_flag_a, _flag_b)) goto L_360925FA; /* 0x360925EF: je 0x360925fa */ 10733 L_360925F1: 10734 PUSH32(esp, esi); /* 0x360925F1: push esi */ 10735 RECOMP_ICALL(0x3615FCC4u); /* 0x360925F2: call 0x3615fcc4 */ /* not lifted */ 10736 RECOMP_FLAGS_IN(); 10737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10738 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10739 esp = esp + 4; /* 0x360925F7: add esp, 4 */ 10740 _flag_k = FK_ADD; 10741 L_360925FA: 10742 eax = esi; /* 0x360925FA: mov eax, esi */ 10743 esi = POP32_VAL(esp); /* 0x360925FC: pop esi */ 10744 ebp = POP32_VAL(esp); /* 0x360925FD: pop ebp */ 10745 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360925FE: ret 4 */ 10746 L_36092BB0: 10747 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x8Cu); 10748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10749 ecx = ecx - 0x8Cu; /* 0x36092BB0: sub ecx, 0x8c */ 10750 _flag_k = FK_CMP; 10751 RECOMP_BACKEDGE(); 10752 goto L_360925E0; /* 0x36092BB6: jmp 0x360925e0 */ 10753 { RECOMP_REGS_OUT(); return; } /* end of function */ 10754 RECOMP_REGS_OUT(); 10755 } 10756 10757 void sub_36092BC0(void) { 10758 int _fpu_cmp = 0; 10759 uint32_t _cf = 0; 10760 int _df = 1; 10761 uint32_t _flag_k = FK_NONE; 10762 uint32_t _flag_a = 0, _flag_b = 0; 10763 uint32_t _itail_tgt = 0; 10764 RECOMP_REGS_LOCALS 10765 RECOMP_ENTER(0x36092BC0u); 10766 10767 goto L_36092BC0; 10768 L_360925E0: 10769 PUSH32(esp, ebp); /* 0x360925E0: push ebp */ 10770 ebp = esp; /* 0x360925E1: mov ebp, esp */ 10771 PUSH32(esp, esi); /* 0x360925E3: push esi */ 10772 esi = ecx; /* 0x360925E4: mov esi, ecx */ 10773 RECOMP_ICALL(0x36092640u); /* 0x360925E6: call 0x36092640 */ /* not lifted */ 10774 RECOMP_FLAGS_IN(); 10775 /* test MEM8(ebp + 0x8), 1 */ /* 0x360925EB: test byte ptr [ebp + 8], 1 */ 10776 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 10777 _cf = 0; 10778 _flag_k = FK_NARROW(FK_TEST, 24); 10779 if (TEST_Z(_flag_a, _flag_b)) goto L_360925FA; /* 0x360925EF: je 0x360925fa */ 10780 L_360925F1: 10781 PUSH32(esp, esi); /* 0x360925F1: push esi */ 10782 RECOMP_ICALL(0x3615FCC4u); /* 0x360925F2: call 0x3615fcc4 */ /* not lifted */ 10783 RECOMP_FLAGS_IN(); 10784 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10785 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10786 esp = esp + 4; /* 0x360925F7: add esp, 4 */ 10787 _flag_k = FK_ADD; 10788 L_360925FA: 10789 eax = esi; /* 0x360925FA: mov eax, esi */ 10790 esi = POP32_VAL(esp); /* 0x360925FC: pop esi */ 10791 ebp = POP32_VAL(esp); /* 0x360925FD: pop ebp */ 10792 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360925FE: ret 4 */ 10793 L_36092BC0: 10794 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xACu); 10795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10796 ecx = ecx - 0xACu; /* 0x36092BC0: sub ecx, 0xac */ 10797 _flag_k = FK_CMP; 10798 RECOMP_BACKEDGE(); 10799 goto L_360925E0; /* 0x36092BC6: jmp 0x360925e0 */ 10800 { RECOMP_REGS_OUT(); return; } /* end of function */ 10801 RECOMP_REGS_OUT(); 10802 } 10803 10804 void sub_36092BD0(void) { 10805 int _fpu_cmp = 0; 10806 uint32_t _cf = 0; 10807 int _df = 1; 10808 uint32_t _flag_k = FK_NONE; 10809 uint32_t _flag_a = 0, _flag_b = 0; 10810 uint32_t _itail_tgt = 0; 10811 RECOMP_REGS_LOCALS 10812 RECOMP_ENTER(0x36092BD0u); 10813 10814 L_36092BD0: 10815 PUSH32(esp, ebp); /* 0x36092BD0: push ebp */ 10816 ebp = esp; /* 0x36092BD1: mov ebp, esp */ 10817 PUSH32(esp, 0xFFFFFFFFu); /* 0x36092BD3: push -1 */ 10818 PUSH32(esp, 0x36166359u); /* 0x36092BD5: push 0x36166359 */ 10819 eax = MEM32(FS_BASE + (0)); /* 0x36092BDA: mov eax, dword ptr fs:[0] */ 10820 PUSH32(esp, eax); /* 0x36092BE0: push eax */ 10821 MEM32(FS_BASE + (0)) = esp; /* 0x36092BE1: mov dword ptr fs:[0], esp */ 10822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 10823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10824 esp = esp - 0xCu; /* 0x36092BE8: sub esp, 0xc */ 10825 _flag_k = FK_CMP; 10826 PUSH32(esp, ebx); /* 0x36092BEB: push ebx */ 10827 PUSH32(esp, esi); /* 0x36092BEC: push esi */ 10828 PUSH32(esp, edi); /* 0x36092BED: push edi */ 10829 edi = ecx; /* 0x36092BEE: mov edi, ecx */ 10830 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10831 ebx = 0; /* 0x36092BF0: xor ebx, ebx */ 10832 _cf = 0; 10833 _flag_k = FK_TEST; 10834 PUSH32(esp, 0x14u); /* 0x36092BF2: push 0x14 */ 10835 MEM32(ebp + (-0x14)) = edi; /* 0x36092BF4: mov dword ptr [ebp - 0x14], edi */ 10836 MEM32(edi) = ebx; /* 0x36092BF7: mov dword ptr [edi], ebx */ 10837 MEM32(edi + 0x8) = 1; /* 0x36092BF9: mov dword ptr [edi + 8], 1 */ 10838 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C00: call 0x3615fd6a */ /* not lifted */ 10839 RECOMP_FLAGS_IN(); 10840 esi = eax; /* 0x36092C05: mov esi, eax */ 10841 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10842 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10843 esp = esp + 4; /* 0x36092C07: add esp, 4 */ 10844 _flag_k = FK_ADD; 10845 MEM32(ebp + (-0x18)) = esi; /* 0x36092C0A: mov dword ptr [ebp - 0x18], esi */ 10846 /* cmp esi, ebx */ /* 0x36092C0D: cmp esi, ebx */ 10847 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10848 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10849 _flag_k = FK_CMP; 10850 MEM32(ebp + (-0x4)) = ebx; /* 0x36092C0F: mov dword ptr [ebp - 4], ebx */ 10851 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092C6E; /* 0x36092C12: je 0x36092c6e */ 10852 L_36092C14: 10853 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092C14: mov al, byte ptr [ebp - 0xd] */ 10854 SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x36092C17: mov cl, byte ptr [ebp - 0xd] */ 10855 PUSH32(esp, 0x28u); /* 0x36092C1A: push 0x28 */ 10856 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36092C1C: mov byte ptr [esi], al */ 10857 MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x36092C1E: mov byte ptr [esi + 1], cl */ 10858 MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36092C21: mov byte ptr [esi + 0xc], bl */ 10859 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C24: call 0x3615fd6a */ /* not lifted */ 10860 RECOMP_FLAGS_IN(); 10861 MEM32(eax + 0x4) = ebx; /* 0x36092C29: mov dword ptr [eax + 4], ebx */ 10862 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x36092C2C: mov byte ptr [eax + 0x24], 1 */ 10863 MEM8(eax + 0x25) = (uint8_t)(LO8(ebx)); /* 0x36092C30: mov byte ptr [eax + 0x25], bl */ 10864 MEM32(esi + 0x8) = eax; /* 0x36092C33: mov dword ptr [esi + 8], eax */ 10865 MEM8(eax + 0x25) = (uint8_t)(1); /* 0x36092C36: mov byte ptr [eax + 0x25], 1 */ 10866 eax = MEM32(esi + 0x8); /* 0x36092C3A: mov eax, dword ptr [esi + 8] */ 10867 MEM32(eax) = ebx; /* 0x36092C3D: mov dword ptr [eax], ebx */ 10868 edx = MEM32(esi + 0x8); /* 0x36092C3F: mov edx, dword ptr [esi + 8] */ 10869 MEM32(edx + 0x8) = ebx; /* 0x36092C42: mov dword ptr [edx + 8], ebx */ 10870 edi = MEM32(esi + 0x8); /* 0x36092C45: mov edi, dword ptr [esi + 8] */ 10871 PUSH32(esp, 0x28u); /* 0x36092C48: push 0x28 */ 10872 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C4A: call 0x3615fd6a */ /* not lifted */ 10873 RECOMP_FLAGS_IN(); 10874 MEM32(eax + 0x4) = edi; /* 0x36092C4F: mov dword ptr [eax + 4], edi */ 10875 edi = MEM32(ebp + (-0x14)); /* 0x36092C52: mov edi, dword ptr [ebp - 0x14] */ 10876 MEM8(eax + 0x24) = (uint8_t)(LO8(ebx)); /* 0x36092C55: mov byte ptr [eax + 0x24], bl */ 10877 MEM8(eax + 0x25) = (uint8_t)(LO8(ebx)); /* 0x36092C58: mov byte ptr [eax + 0x25], bl */ 10878 MEM32(esi + 0x4) = eax; /* 0x36092C5B: mov dword ptr [esi + 4], eax */ 10879 MEM32(eax) = eax; /* 0x36092C5E: mov dword ptr [eax], eax */ 10880 eax = MEM32(esi + 0x4); /* 0x36092C60: mov eax, dword ptr [esi + 4] */ 10881 MEM32(eax + 0x8) = eax; /* 0x36092C63: mov dword ptr [eax + 8], eax */ 10882 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 10883 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10884 esp = esp + 8; /* 0x36092C66: add esp, 8 */ 10885 _flag_k = FK_ADD; 10886 MEM32(esi + 0x10) = ebx; /* 0x36092C69: mov dword ptr [esi + 0x10], ebx */ 10887 goto L_36092C70; /* 0x36092C6C: jmp 0x36092c70 */ 10888 L_36092C6E: 10889 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 10890 esi = 0; /* 0x36092C6E: xor esi, esi */ 10891 _cf = 0; 10892 _flag_k = FK_TEST; 10893 L_36092C70: 10894 PUSH32(esp, 0x3Cu); /* 0x36092C70: push 0x3c */ 10895 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36092C72: mov dword ptr [ebp - 4], 0xffffffff */ 10896 MEM32(edi + 0x4) = esi; /* 0x36092C79: mov dword ptr [edi + 4], esi */ 10897 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C7C: call 0x3615fd6a */ /* not lifted */ 10898 RECOMP_FLAGS_IN(); 10899 esi = eax; /* 0x36092C81: mov esi, eax */ 10900 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10901 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10902 esp = esp + 4; /* 0x36092C83: add esp, 4 */ 10903 _flag_k = FK_ADD; 10904 MEM32(ebp + (-0x18)) = esi; /* 0x36092C86: mov dword ptr [ebp - 0x18], esi */ 10905 /* cmp esi, ebx */ /* 0x36092C89: cmp esi, ebx */ 10906 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 10907 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10908 _flag_k = FK_CMP; 10909 MEM32(ebp + (-0x4)) = 1; /* 0x36092C8B: mov dword ptr [ebp - 4], 1 */ 10910 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092D4F; /* 0x36092C92: je 0x36092d4f */ 10911 L_36092C98: 10912 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092C98: mov al, byte ptr [ebp - 0xd] */ 10913 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36092C9B: mov byte ptr [esi], al */ 10914 MEM32(esi + 0x4) = ebx; /* 0x36092C9D: mov dword ptr [esi + 4], ebx */ 10915 MEM32(esi + 0x8) = ebx; /* 0x36092CA0: mov dword ptr [esi + 8], ebx */ 10916 MEM32(esi + 0xC) = ebx; /* 0x36092CA3: mov dword ptr [esi + 0xc], ebx */ 10917 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x36092CA6: mov dl, byte ptr [ebp - 0xd] */ 10918 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092CA9: mov al, byte ptr [ebp - 0xd] */ 10919 ecx = esi + 0x10; /* 0x36092CAC: lea ecx, [esi + 0x10] */ 10920 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36092CAF: mov byte ptr [ebp - 4], 2 */ 10921 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x36092CB3: mov byte ptr [ecx], dl */ 10922 MEM8(ecx + 0x1) = (uint8_t)(LO8(eax)); /* 0x36092CB5: mov byte ptr [ecx + 1], al */ 10923 MEM8(ecx + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36092CB8: mov byte ptr [ecx + 0xc], bl */ 10924 RECOMP_ICALL(0x36094760u); /* 0x36092CBB: call 0x36094760 */ /* not lifted */ 10925 RECOMP_FLAGS_IN(); 10926 eax = MEM32(esi + 0x4); /* 0x36092CC0: mov eax, dword ptr [esi + 4] */ 10927 /* cmp eax, ebx */ /* 0x36092CC3: cmp eax, ebx */ 10928 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10930 _flag_k = FK_CMP; 10931 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36092CC5: mov byte ptr [ebp - 4], 3 */ 10932 MEM32(esi + 0x24) = ebx; /* 0x36092CC9: mov dword ptr [esi + 0x24], ebx */ 10933 MEM32(esi + 0x28) = 0x190u; /* 0x36092CCC: mov dword ptr [esi + 0x28], 0x190 */ 10934 MEM32(esi + 0x2C) = ebx; /* 0x36092CD3: mov dword ptr [esi + 0x2c], ebx */ 10935 MEM32(esi + 0x30) = ebx; /* 0x36092CD6: mov dword ptr [esi + 0x30], ebx */ 10936 MEM32(esi + 0x34) = ebx; /* 0x36092CD9: mov dword ptr [esi + 0x34], ebx */ 10937 MEM32(esi + 0x38) = ebx; /* 0x36092CDC: mov dword ptr [esi + 0x38], ebx */ 10938 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092CF1; /* 0x36092CDF: je 0x36092cf1 */ 10939 L_36092CE1: 10940 ecx = MEM32(esi + 0xC); /* 0x36092CE1: mov ecx, dword ptr [esi + 0xc] */ 10941 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 10942 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10943 ecx = ecx - eax; /* 0x36092CE4: sub ecx, eax */ 10944 _flag_k = FK_CMP; 10945 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36092CE6: sar ecx, 4 */ 10946 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10947 ecx = (uint32_t)((int32_t)ecx >> 4u); 10948 /* cmp ecx, 0x190u */ /* 0x36092CE9: cmp ecx, 0x190 */ 10949 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x190u); 10950 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 10951 _flag_k = FK_CMP; 10952 if (CMP_AE(_flag_a, _flag_b)) goto L_36092D3A; /* 0x36092CEF: jae 0x36092d3a */ 10953 L_36092CF1: 10954 PUSH32(esp, 0x1900u); /* 0x36092CF1: push 0x1900 */ 10955 RECOMP_ICALL(0x3615FD6Au); /* 0x36092CF6: call 0x3615fd6a */ /* not lifted */ 10956 RECOMP_FLAGS_IN(); 10957 edx = MEM32(esi + 0x8); /* 0x36092CFB: mov edx, dword ptr [esi + 8] */ 10958 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10959 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10960 esp = esp + 4; /* 0x36092CFE: add esp, 4 */ 10961 _flag_k = FK_ADD; 10962 ebx = eax; /* 0x36092D01: mov ebx, eax */ 10963 eax = MEM32(esi + 0x4); /* 0x36092D03: mov eax, dword ptr [esi + 4] */ 10964 PUSH32(esp, ebx); /* 0x36092D06: push ebx */ 10965 PUSH32(esp, edx); /* 0x36092D07: push edx */ 10966 PUSH32(esp, eax); /* 0x36092D08: push eax */ 10967 ecx = esi; /* 0x36092D09: mov ecx, esi */ 10968 RECOMP_ICALL(0x36093CB0u); /* 0x36092D0B: call 0x36093cb0 */ /* not lifted */ 10969 RECOMP_FLAGS_IN(); 10970 eax = MEM32(esi + 0x4); /* 0x36092D10: mov eax, dword ptr [esi + 4] */ 10971 PUSH32(esp, eax); /* 0x36092D13: push eax */ 10972 MEM32(ebp + (-0x14)) = eax; /* 0x36092D14: mov dword ptr [ebp - 0x14], eax */ 10973 RECOMP_ICALL(0x3615FCC4u); /* 0x36092D17: call 0x3615fcc4 */ /* not lifted */ 10974 RECOMP_FLAGS_IN(); 10975 ecx = ebx + 0x1900; /* 0x36092D1C: lea ecx, [ebx + 0x1900] */ 10976 MEM32(esi + 0xC) = ecx; /* 0x36092D22: mov dword ptr [esi + 0xc], ecx */ 10977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 10978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10979 esp = esp + 4; /* 0x36092D25: add esp, 4 */ 10980 _flag_k = FK_ADD; 10981 ecx = esi; /* 0x36092D28: mov ecx, esi */ 10982 RECOMP_ICALL(0x36029B00u); /* 0x36092D2A: call 0x36029b00 */ /* not lifted */ 10983 RECOMP_FLAGS_IN(); 10984 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36092D2F: shl eax, 4 */ 10985 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 10986 eax = eax << 4u; /* 0x36092D2F: shl eax, 4 */ 10987 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 10988 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 10989 eax = eax + ebx; /* 0x36092D32: add eax, ebx */ 10990 _flag_k = FK_ADD; 10991 MEM32(esi + 0x8) = eax; /* 0x36092D34: mov dword ptr [esi + 8], eax */ 10992 MEM32(esi + 0x4) = ebx; /* 0x36092D37: mov dword ptr [esi + 4], ebx */ 10993 L_36092D3A: 10994 MEM32(edi) = esi; /* 0x36092D3A: mov dword ptr [edi], esi */ 10995 eax = edi; /* 0x36092D3C: mov eax, edi */ 10996 edi = POP32_VAL(esp); /* 0x36092D3E: pop edi */ 10997 esi = POP32_VAL(esp); /* 0x36092D3F: pop esi */ 10998 ebx = POP32_VAL(esp); /* 0x36092D40: pop ebx */ 10999 ecx = MEM32(ebp + (-0xC)); /* 0x36092D41: mov ecx, dword ptr [ebp - 0xc] */ 11000 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D44: mov dword ptr fs:[0], ecx */ 11001 esp = ebp; /* 0x36092D4B: mov esp, ebp */ 11002 ebp = POP32_VAL(esp); /* 0x36092D4D: pop ebp */ 11003 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D4E: ret */ 11004 L_36092D4F: 11005 ecx = MEM32(ebp + (-0xC)); /* 0x36092D4F: mov ecx, dword ptr [ebp - 0xc] */ 11006 MEM32(edi) = ebx; /* 0x36092D52: mov dword ptr [edi], ebx */ 11007 eax = edi; /* 0x36092D54: mov eax, edi */ 11008 edi = POP32_VAL(esp); /* 0x36092D56: pop edi */ 11009 esi = POP32_VAL(esp); /* 0x36092D57: pop esi */ 11010 ebx = POP32_VAL(esp); /* 0x36092D58: pop ebx */ 11011 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D59: mov dword ptr fs:[0], ecx */ 11012 esp = ebp; /* 0x36092D60: mov esp, ebp */ 11013 ebp = POP32_VAL(esp); /* 0x36092D62: pop ebp */ 11014 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D63: ret */ 11015 RECOMP_REGS_OUT(); 11016 } 11017 11018 void sub_36092C42(void) { 11019 int _fpu_cmp = 0; 11020 uint32_t _cf = 0; 11021 int _df = 1; 11022 uint32_t _flag_k = FK_NONE; 11023 uint32_t _flag_a = 0, _flag_b = 0; 11024 uint32_t _itail_tgt = 0; 11025 RECOMP_REGS_LOCALS 11026 RECOMP_ENTER(0x36092C42u); 11027 11028 L_36092C42: 11029 MEM32(edx + 0x8) = ebx; /* 0x36092C42: mov dword ptr [edx + 8], ebx */ 11030 edi = MEM32(esi + 0x8); /* 0x36092C45: mov edi, dword ptr [esi + 8] */ 11031 PUSH32(esp, 0x28u); /* 0x36092C48: push 0x28 */ 11032 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C4A: call 0x3615fd6a */ /* not lifted */ 11033 RECOMP_FLAGS_IN(); 11034 MEM32(eax + 0x4) = edi; /* 0x36092C4F: mov dword ptr [eax + 4], edi */ 11035 edi = MEM32(ebp + (-0x14)); /* 0x36092C52: mov edi, dword ptr [ebp - 0x14] */ 11036 MEM8(eax + 0x24) = (uint8_t)(LO8(ebx)); /* 0x36092C55: mov byte ptr [eax + 0x24], bl */ 11037 MEM8(eax + 0x25) = (uint8_t)(LO8(ebx)); /* 0x36092C58: mov byte ptr [eax + 0x25], bl */ 11038 MEM32(esi + 0x4) = eax; /* 0x36092C5B: mov dword ptr [esi + 4], eax */ 11039 MEM32(eax) = eax; /* 0x36092C5E: mov dword ptr [eax], eax */ 11040 eax = MEM32(esi + 0x4); /* 0x36092C60: mov eax, dword ptr [esi + 4] */ 11041 MEM32(eax + 0x8) = eax; /* 0x36092C63: mov dword ptr [eax + 8], eax */ 11042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11044 esp = esp + 8; /* 0x36092C66: add esp, 8 */ 11045 _flag_k = FK_ADD; 11046 MEM32(esi + 0x10) = ebx; /* 0x36092C69: mov dword ptr [esi + 0x10], ebx */ 11047 goto L_36092C70; /* 0x36092C6C: jmp 0x36092c70 */ 11048 L_36092C70: 11049 PUSH32(esp, 0x3Cu); /* 0x36092C70: push 0x3c */ 11050 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36092C72: mov dword ptr [ebp - 4], 0xffffffff */ 11051 MEM32(edi + 0x4) = esi; /* 0x36092C79: mov dword ptr [edi + 4], esi */ 11052 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C7C: call 0x3615fd6a */ /* not lifted */ 11053 RECOMP_FLAGS_IN(); 11054 esi = eax; /* 0x36092C81: mov esi, eax */ 11055 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11056 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11057 esp = esp + 4; /* 0x36092C83: add esp, 4 */ 11058 _flag_k = FK_ADD; 11059 MEM32(ebp + (-0x18)) = esi; /* 0x36092C86: mov dword ptr [ebp - 0x18], esi */ 11060 /* cmp esi, ebx */ /* 0x36092C89: cmp esi, ebx */ 11061 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 11062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11063 _flag_k = FK_CMP; 11064 MEM32(ebp + (-0x4)) = 1; /* 0x36092C8B: mov dword ptr [ebp - 4], 1 */ 11065 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092D4F; /* 0x36092C92: je 0x36092d4f */ 11066 L_36092C98: 11067 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092C98: mov al, byte ptr [ebp - 0xd] */ 11068 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36092C9B: mov byte ptr [esi], al */ 11069 MEM32(esi + 0x4) = ebx; /* 0x36092C9D: mov dword ptr [esi + 4], ebx */ 11070 MEM32(esi + 0x8) = ebx; /* 0x36092CA0: mov dword ptr [esi + 8], ebx */ 11071 MEM32(esi + 0xC) = ebx; /* 0x36092CA3: mov dword ptr [esi + 0xc], ebx */ 11072 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x36092CA6: mov dl, byte ptr [ebp - 0xd] */ 11073 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092CA9: mov al, byte ptr [ebp - 0xd] */ 11074 ecx = esi + 0x10; /* 0x36092CAC: lea ecx, [esi + 0x10] */ 11075 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36092CAF: mov byte ptr [ebp - 4], 2 */ 11076 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x36092CB3: mov byte ptr [ecx], dl */ 11077 MEM8(ecx + 0x1) = (uint8_t)(LO8(eax)); /* 0x36092CB5: mov byte ptr [ecx + 1], al */ 11078 MEM8(ecx + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36092CB8: mov byte ptr [ecx + 0xc], bl */ 11079 RECOMP_ICALL(0x36094760u); /* 0x36092CBB: call 0x36094760 */ /* not lifted */ 11080 RECOMP_FLAGS_IN(); 11081 eax = MEM32(esi + 0x4); /* 0x36092CC0: mov eax, dword ptr [esi + 4] */ 11082 /* cmp eax, ebx */ /* 0x36092CC3: cmp eax, ebx */ 11083 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11084 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11085 _flag_k = FK_CMP; 11086 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36092CC5: mov byte ptr [ebp - 4], 3 */ 11087 MEM32(esi + 0x24) = ebx; /* 0x36092CC9: mov dword ptr [esi + 0x24], ebx */ 11088 MEM32(esi + 0x28) = 0x190u; /* 0x36092CCC: mov dword ptr [esi + 0x28], 0x190 */ 11089 MEM32(esi + 0x2C) = ebx; /* 0x36092CD3: mov dword ptr [esi + 0x2c], ebx */ 11090 MEM32(esi + 0x30) = ebx; /* 0x36092CD6: mov dword ptr [esi + 0x30], ebx */ 11091 MEM32(esi + 0x34) = ebx; /* 0x36092CD9: mov dword ptr [esi + 0x34], ebx */ 11092 MEM32(esi + 0x38) = ebx; /* 0x36092CDC: mov dword ptr [esi + 0x38], ebx */ 11093 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092CF1; /* 0x36092CDF: je 0x36092cf1 */ 11094 L_36092CE1: 11095 ecx = MEM32(esi + 0xC); /* 0x36092CE1: mov ecx, dword ptr [esi + 0xc] */ 11096 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11097 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11098 ecx = ecx - eax; /* 0x36092CE4: sub ecx, eax */ 11099 _flag_k = FK_CMP; 11100 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36092CE6: sar ecx, 4 */ 11101 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11102 ecx = (uint32_t)((int32_t)ecx >> 4u); 11103 /* cmp ecx, 0x190u */ /* 0x36092CE9: cmp ecx, 0x190 */ 11104 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x190u); 11105 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11106 _flag_k = FK_CMP; 11107 if (CMP_AE(_flag_a, _flag_b)) goto L_36092D3A; /* 0x36092CEF: jae 0x36092d3a */ 11108 L_36092CF1: 11109 PUSH32(esp, 0x1900u); /* 0x36092CF1: push 0x1900 */ 11110 RECOMP_ICALL(0x3615FD6Au); /* 0x36092CF6: call 0x3615fd6a */ /* not lifted */ 11111 RECOMP_FLAGS_IN(); 11112 edx = MEM32(esi + 0x8); /* 0x36092CFB: mov edx, dword ptr [esi + 8] */ 11113 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11114 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11115 esp = esp + 4; /* 0x36092CFE: add esp, 4 */ 11116 _flag_k = FK_ADD; 11117 ebx = eax; /* 0x36092D01: mov ebx, eax */ 11118 eax = MEM32(esi + 0x4); /* 0x36092D03: mov eax, dword ptr [esi + 4] */ 11119 PUSH32(esp, ebx); /* 0x36092D06: push ebx */ 11120 PUSH32(esp, edx); /* 0x36092D07: push edx */ 11121 PUSH32(esp, eax); /* 0x36092D08: push eax */ 11122 ecx = esi; /* 0x36092D09: mov ecx, esi */ 11123 RECOMP_ICALL(0x36093CB0u); /* 0x36092D0B: call 0x36093cb0 */ /* not lifted */ 11124 RECOMP_FLAGS_IN(); 11125 eax = MEM32(esi + 0x4); /* 0x36092D10: mov eax, dword ptr [esi + 4] */ 11126 PUSH32(esp, eax); /* 0x36092D13: push eax */ 11127 MEM32(ebp + (-0x14)) = eax; /* 0x36092D14: mov dword ptr [ebp - 0x14], eax */ 11128 RECOMP_ICALL(0x3615FCC4u); /* 0x36092D17: call 0x3615fcc4 */ /* not lifted */ 11129 RECOMP_FLAGS_IN(); 11130 ecx = ebx + 0x1900; /* 0x36092D1C: lea ecx, [ebx + 0x1900] */ 11131 MEM32(esi + 0xC) = ecx; /* 0x36092D22: mov dword ptr [esi + 0xc], ecx */ 11132 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11134 esp = esp + 4; /* 0x36092D25: add esp, 4 */ 11135 _flag_k = FK_ADD; 11136 ecx = esi; /* 0x36092D28: mov ecx, esi */ 11137 RECOMP_ICALL(0x36029B00u); /* 0x36092D2A: call 0x36029b00 */ /* not lifted */ 11138 RECOMP_FLAGS_IN(); 11139 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36092D2F: shl eax, 4 */ 11140 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11141 eax = eax << 4u; /* 0x36092D2F: shl eax, 4 */ 11142 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11144 eax = eax + ebx; /* 0x36092D32: add eax, ebx */ 11145 _flag_k = FK_ADD; 11146 MEM32(esi + 0x8) = eax; /* 0x36092D34: mov dword ptr [esi + 8], eax */ 11147 MEM32(esi + 0x4) = ebx; /* 0x36092D37: mov dword ptr [esi + 4], ebx */ 11148 L_36092D3A: 11149 MEM32(edi) = esi; /* 0x36092D3A: mov dword ptr [edi], esi */ 11150 eax = edi; /* 0x36092D3C: mov eax, edi */ 11151 edi = POP32_VAL(esp); /* 0x36092D3E: pop edi */ 11152 esi = POP32_VAL(esp); /* 0x36092D3F: pop esi */ 11153 ebx = POP32_VAL(esp); /* 0x36092D40: pop ebx */ 11154 ecx = MEM32(ebp + (-0xC)); /* 0x36092D41: mov ecx, dword ptr [ebp - 0xc] */ 11155 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D44: mov dword ptr fs:[0], ecx */ 11156 esp = ebp; /* 0x36092D4B: mov esp, ebp */ 11157 ebp = POP32_VAL(esp); /* 0x36092D4D: pop ebp */ 11158 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D4E: ret */ 11159 L_36092D4F: 11160 ecx = MEM32(ebp + (-0xC)); /* 0x36092D4F: mov ecx, dword ptr [ebp - 0xc] */ 11161 MEM32(edi) = ebx; /* 0x36092D52: mov dword ptr [edi], ebx */ 11162 eax = edi; /* 0x36092D54: mov eax, edi */ 11163 edi = POP32_VAL(esp); /* 0x36092D56: pop edi */ 11164 esi = POP32_VAL(esp); /* 0x36092D57: pop esi */ 11165 ebx = POP32_VAL(esp); /* 0x36092D58: pop ebx */ 11166 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D59: mov dword ptr fs:[0], ecx */ 11167 esp = ebp; /* 0x36092D60: mov esp, ebp */ 11168 ebp = POP32_VAL(esp); /* 0x36092D62: pop ebp */ 11169 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D63: ret */ 11170 RECOMP_REGS_OUT(); 11171 } 11172 11173 void sub_36092C70(void) { 11174 int _fpu_cmp = 0; 11175 uint32_t _cf = 0; 11176 int _df = 1; 11177 uint32_t _flag_k = FK_NONE; 11178 uint32_t _flag_a = 0, _flag_b = 0; 11179 uint32_t _itail_tgt = 0; 11180 RECOMP_REGS_LOCALS 11181 RECOMP_ENTER(0x36092C70u); 11182 11183 L_36092C70: 11184 PUSH32(esp, 0x3Cu); /* 0x36092C70: push 0x3c */ 11185 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36092C72: mov dword ptr [ebp - 4], 0xffffffff */ 11186 MEM32(edi + 0x4) = esi; /* 0x36092C79: mov dword ptr [edi + 4], esi */ 11187 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C7C: call 0x3615fd6a */ /* not lifted */ 11188 RECOMP_FLAGS_IN(); 11189 esi = eax; /* 0x36092C81: mov esi, eax */ 11190 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11191 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11192 esp = esp + 4; /* 0x36092C83: add esp, 4 */ 11193 _flag_k = FK_ADD; 11194 MEM32(ebp + (-0x18)) = esi; /* 0x36092C86: mov dword ptr [ebp - 0x18], esi */ 11195 /* cmp esi, ebx */ /* 0x36092C89: cmp esi, ebx */ 11196 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 11197 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11198 _flag_k = FK_CMP; 11199 MEM32(ebp + (-0x4)) = 1; /* 0x36092C8B: mov dword ptr [ebp - 4], 1 */ 11200 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092D4F; /* 0x36092C92: je 0x36092d4f */ 11201 L_36092C98: 11202 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092C98: mov al, byte ptr [ebp - 0xd] */ 11203 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36092C9B: mov byte ptr [esi], al */ 11204 MEM32(esi + 0x4) = ebx; /* 0x36092C9D: mov dword ptr [esi + 4], ebx */ 11205 MEM32(esi + 0x8) = ebx; /* 0x36092CA0: mov dword ptr [esi + 8], ebx */ 11206 MEM32(esi + 0xC) = ebx; /* 0x36092CA3: mov dword ptr [esi + 0xc], ebx */ 11207 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x36092CA6: mov dl, byte ptr [ebp - 0xd] */ 11208 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092CA9: mov al, byte ptr [ebp - 0xd] */ 11209 ecx = esi + 0x10; /* 0x36092CAC: lea ecx, [esi + 0x10] */ 11210 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36092CAF: mov byte ptr [ebp - 4], 2 */ 11211 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x36092CB3: mov byte ptr [ecx], dl */ 11212 MEM8(ecx + 0x1) = (uint8_t)(LO8(eax)); /* 0x36092CB5: mov byte ptr [ecx + 1], al */ 11213 MEM8(ecx + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36092CB8: mov byte ptr [ecx + 0xc], bl */ 11214 RECOMP_ICALL(0x36094760u); /* 0x36092CBB: call 0x36094760 */ /* not lifted */ 11215 RECOMP_FLAGS_IN(); 11216 eax = MEM32(esi + 0x4); /* 0x36092CC0: mov eax, dword ptr [esi + 4] */ 11217 /* cmp eax, ebx */ /* 0x36092CC3: cmp eax, ebx */ 11218 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11219 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11220 _flag_k = FK_CMP; 11221 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36092CC5: mov byte ptr [ebp - 4], 3 */ 11222 MEM32(esi + 0x24) = ebx; /* 0x36092CC9: mov dword ptr [esi + 0x24], ebx */ 11223 MEM32(esi + 0x28) = 0x190u; /* 0x36092CCC: mov dword ptr [esi + 0x28], 0x190 */ 11224 MEM32(esi + 0x2C) = ebx; /* 0x36092CD3: mov dword ptr [esi + 0x2c], ebx */ 11225 MEM32(esi + 0x30) = ebx; /* 0x36092CD6: mov dword ptr [esi + 0x30], ebx */ 11226 MEM32(esi + 0x34) = ebx; /* 0x36092CD9: mov dword ptr [esi + 0x34], ebx */ 11227 MEM32(esi + 0x38) = ebx; /* 0x36092CDC: mov dword ptr [esi + 0x38], ebx */ 11228 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092CF1; /* 0x36092CDF: je 0x36092cf1 */ 11229 L_36092CE1: 11230 ecx = MEM32(esi + 0xC); /* 0x36092CE1: mov ecx, dword ptr [esi + 0xc] */ 11231 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11232 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11233 ecx = ecx - eax; /* 0x36092CE4: sub ecx, eax */ 11234 _flag_k = FK_CMP; 11235 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36092CE6: sar ecx, 4 */ 11236 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11237 ecx = (uint32_t)((int32_t)ecx >> 4u); 11238 /* cmp ecx, 0x190u */ /* 0x36092CE9: cmp ecx, 0x190 */ 11239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x190u); 11240 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11241 _flag_k = FK_CMP; 11242 if (CMP_AE(_flag_a, _flag_b)) goto L_36092D3A; /* 0x36092CEF: jae 0x36092d3a */ 11243 L_36092CF1: 11244 PUSH32(esp, 0x1900u); /* 0x36092CF1: push 0x1900 */ 11245 RECOMP_ICALL(0x3615FD6Au); /* 0x36092CF6: call 0x3615fd6a */ /* not lifted */ 11246 RECOMP_FLAGS_IN(); 11247 edx = MEM32(esi + 0x8); /* 0x36092CFB: mov edx, dword ptr [esi + 8] */ 11248 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11250 esp = esp + 4; /* 0x36092CFE: add esp, 4 */ 11251 _flag_k = FK_ADD; 11252 ebx = eax; /* 0x36092D01: mov ebx, eax */ 11253 eax = MEM32(esi + 0x4); /* 0x36092D03: mov eax, dword ptr [esi + 4] */ 11254 PUSH32(esp, ebx); /* 0x36092D06: push ebx */ 11255 PUSH32(esp, edx); /* 0x36092D07: push edx */ 11256 PUSH32(esp, eax); /* 0x36092D08: push eax */ 11257 ecx = esi; /* 0x36092D09: mov ecx, esi */ 11258 RECOMP_ICALL(0x36093CB0u); /* 0x36092D0B: call 0x36093cb0 */ /* not lifted */ 11259 RECOMP_FLAGS_IN(); 11260 eax = MEM32(esi + 0x4); /* 0x36092D10: mov eax, dword ptr [esi + 4] */ 11261 PUSH32(esp, eax); /* 0x36092D13: push eax */ 11262 MEM32(ebp + (-0x14)) = eax; /* 0x36092D14: mov dword ptr [ebp - 0x14], eax */ 11263 RECOMP_ICALL(0x3615FCC4u); /* 0x36092D17: call 0x3615fcc4 */ /* not lifted */ 11264 RECOMP_FLAGS_IN(); 11265 ecx = ebx + 0x1900; /* 0x36092D1C: lea ecx, [ebx + 0x1900] */ 11266 MEM32(esi + 0xC) = ecx; /* 0x36092D22: mov dword ptr [esi + 0xc], ecx */ 11267 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11268 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11269 esp = esp + 4; /* 0x36092D25: add esp, 4 */ 11270 _flag_k = FK_ADD; 11271 ecx = esi; /* 0x36092D28: mov ecx, esi */ 11272 RECOMP_ICALL(0x36029B00u); /* 0x36092D2A: call 0x36029b00 */ /* not lifted */ 11273 RECOMP_FLAGS_IN(); 11274 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36092D2F: shl eax, 4 */ 11275 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11276 eax = eax << 4u; /* 0x36092D2F: shl eax, 4 */ 11277 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11278 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11279 eax = eax + ebx; /* 0x36092D32: add eax, ebx */ 11280 _flag_k = FK_ADD; 11281 MEM32(esi + 0x8) = eax; /* 0x36092D34: mov dword ptr [esi + 8], eax */ 11282 MEM32(esi + 0x4) = ebx; /* 0x36092D37: mov dword ptr [esi + 4], ebx */ 11283 L_36092D3A: 11284 MEM32(edi) = esi; /* 0x36092D3A: mov dword ptr [edi], esi */ 11285 eax = edi; /* 0x36092D3C: mov eax, edi */ 11286 edi = POP32_VAL(esp); /* 0x36092D3E: pop edi */ 11287 esi = POP32_VAL(esp); /* 0x36092D3F: pop esi */ 11288 ebx = POP32_VAL(esp); /* 0x36092D40: pop ebx */ 11289 ecx = MEM32(ebp + (-0xC)); /* 0x36092D41: mov ecx, dword ptr [ebp - 0xc] */ 11290 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D44: mov dword ptr fs:[0], ecx */ 11291 esp = ebp; /* 0x36092D4B: mov esp, ebp */ 11292 ebp = POP32_VAL(esp); /* 0x36092D4D: pop ebp */ 11293 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D4E: ret */ 11294 L_36092D4F: 11295 ecx = MEM32(ebp + (-0xC)); /* 0x36092D4F: mov ecx, dword ptr [ebp - 0xc] */ 11296 MEM32(edi) = ebx; /* 0x36092D52: mov dword ptr [edi], ebx */ 11297 eax = edi; /* 0x36092D54: mov eax, edi */ 11298 edi = POP32_VAL(esp); /* 0x36092D56: pop edi */ 11299 esi = POP32_VAL(esp); /* 0x36092D57: pop esi */ 11300 ebx = POP32_VAL(esp); /* 0x36092D58: pop ebx */ 11301 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D59: mov dword ptr fs:[0], ecx */ 11302 esp = ebp; /* 0x36092D60: mov esp, ebp */ 11303 ebp = POP32_VAL(esp); /* 0x36092D62: pop ebp */ 11304 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D63: ret */ 11305 RECOMP_REGS_OUT(); 11306 } 11307 11308 void sub_36092C72(void) { 11309 int _fpu_cmp = 0; 11310 uint32_t _cf = 0; 11311 int _df = 1; 11312 uint32_t _flag_k = FK_NONE; 11313 uint32_t _flag_a = 0, _flag_b = 0; 11314 uint32_t _itail_tgt = 0; 11315 RECOMP_REGS_LOCALS 11316 RECOMP_ENTER(0x36092C72u); 11317 11318 L_36092C72: 11319 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36092C72: mov dword ptr [ebp - 4], 0xffffffff */ 11320 MEM32(edi + 0x4) = esi; /* 0x36092C79: mov dword ptr [edi + 4], esi */ 11321 RECOMP_ICALL(0x3615FD6Au); /* 0x36092C7C: call 0x3615fd6a */ /* not lifted */ 11322 RECOMP_FLAGS_IN(); 11323 esi = eax; /* 0x36092C81: mov esi, eax */ 11324 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11325 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11326 esp = esp + 4; /* 0x36092C83: add esp, 4 */ 11327 _flag_k = FK_ADD; 11328 MEM32(ebp + (-0x18)) = esi; /* 0x36092C86: mov dword ptr [ebp - 0x18], esi */ 11329 /* cmp esi, ebx */ /* 0x36092C89: cmp esi, ebx */ 11330 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 11331 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11332 _flag_k = FK_CMP; 11333 MEM32(ebp + (-0x4)) = 1; /* 0x36092C8B: mov dword ptr [ebp - 4], 1 */ 11334 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092D4F; /* 0x36092C92: je 0x36092d4f */ 11335 L_36092C98: 11336 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092C98: mov al, byte ptr [ebp - 0xd] */ 11337 MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x36092C9B: mov byte ptr [esi], al */ 11338 MEM32(esi + 0x4) = ebx; /* 0x36092C9D: mov dword ptr [esi + 4], ebx */ 11339 MEM32(esi + 0x8) = ebx; /* 0x36092CA0: mov dword ptr [esi + 8], ebx */ 11340 MEM32(esi + 0xC) = ebx; /* 0x36092CA3: mov dword ptr [esi + 0xc], ebx */ 11341 SET_LO8(edx, MEM8(ebp + (-0xD))); /* 0x36092CA6: mov dl, byte ptr [ebp - 0xd] */ 11342 SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x36092CA9: mov al, byte ptr [ebp - 0xd] */ 11343 ecx = esi + 0x10; /* 0x36092CAC: lea ecx, [esi + 0x10] */ 11344 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36092CAF: mov byte ptr [ebp - 4], 2 */ 11345 MEM8(ecx) = (uint8_t)(LO8(edx)); /* 0x36092CB3: mov byte ptr [ecx], dl */ 11346 MEM8(ecx + 0x1) = (uint8_t)(LO8(eax)); /* 0x36092CB5: mov byte ptr [ecx + 1], al */ 11347 MEM8(ecx + 0xC) = (uint8_t)(LO8(ebx)); /* 0x36092CB8: mov byte ptr [ecx + 0xc], bl */ 11348 RECOMP_ICALL(0x36094760u); /* 0x36092CBB: call 0x36094760 */ /* not lifted */ 11349 RECOMP_FLAGS_IN(); 11350 eax = MEM32(esi + 0x4); /* 0x36092CC0: mov eax, dword ptr [esi + 4] */ 11351 /* cmp eax, ebx */ /* 0x36092CC3: cmp eax, ebx */ 11352 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11354 _flag_k = FK_CMP; 11355 MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x36092CC5: mov byte ptr [ebp - 4], 3 */ 11356 MEM32(esi + 0x24) = ebx; /* 0x36092CC9: mov dword ptr [esi + 0x24], ebx */ 11357 MEM32(esi + 0x28) = 0x190u; /* 0x36092CCC: mov dword ptr [esi + 0x28], 0x190 */ 11358 MEM32(esi + 0x2C) = ebx; /* 0x36092CD3: mov dword ptr [esi + 0x2c], ebx */ 11359 MEM32(esi + 0x30) = ebx; /* 0x36092CD6: mov dword ptr [esi + 0x30], ebx */ 11360 MEM32(esi + 0x34) = ebx; /* 0x36092CD9: mov dword ptr [esi + 0x34], ebx */ 11361 MEM32(esi + 0x38) = ebx; /* 0x36092CDC: mov dword ptr [esi + 0x38], ebx */ 11362 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092CF1; /* 0x36092CDF: je 0x36092cf1 */ 11363 L_36092CE1: 11364 ecx = MEM32(esi + 0xC); /* 0x36092CE1: mov ecx, dword ptr [esi + 0xc] */ 11365 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 11366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11367 ecx = ecx - eax; /* 0x36092CE4: sub ecx, eax */ 11368 _flag_k = FK_CMP; 11369 if (4u) _cf = (((ecx) >> 3) & 1u); /* 0x36092CE6: sar ecx, 4 */ 11370 if (4u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 4u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11371 ecx = (uint32_t)((int32_t)ecx >> 4u); 11372 /* cmp ecx, 0x190u */ /* 0x36092CE9: cmp ecx, 0x190 */ 11373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x190u); 11374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11375 _flag_k = FK_CMP; 11376 if (CMP_AE(_flag_a, _flag_b)) goto L_36092D3A; /* 0x36092CEF: jae 0x36092d3a */ 11377 L_36092CF1: 11378 PUSH32(esp, 0x1900u); /* 0x36092CF1: push 0x1900 */ 11379 RECOMP_ICALL(0x3615FD6Au); /* 0x36092CF6: call 0x3615fd6a */ /* not lifted */ 11380 RECOMP_FLAGS_IN(); 11381 edx = MEM32(esi + 0x8); /* 0x36092CFB: mov edx, dword ptr [esi + 8] */ 11382 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11383 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11384 esp = esp + 4; /* 0x36092CFE: add esp, 4 */ 11385 _flag_k = FK_ADD; 11386 ebx = eax; /* 0x36092D01: mov ebx, eax */ 11387 eax = MEM32(esi + 0x4); /* 0x36092D03: mov eax, dword ptr [esi + 4] */ 11388 PUSH32(esp, ebx); /* 0x36092D06: push ebx */ 11389 PUSH32(esp, edx); /* 0x36092D07: push edx */ 11390 PUSH32(esp, eax); /* 0x36092D08: push eax */ 11391 ecx = esi; /* 0x36092D09: mov ecx, esi */ 11392 RECOMP_ICALL(0x36093CB0u); /* 0x36092D0B: call 0x36093cb0 */ /* not lifted */ 11393 RECOMP_FLAGS_IN(); 11394 eax = MEM32(esi + 0x4); /* 0x36092D10: mov eax, dword ptr [esi + 4] */ 11395 PUSH32(esp, eax); /* 0x36092D13: push eax */ 11396 MEM32(ebp + (-0x14)) = eax; /* 0x36092D14: mov dword ptr [ebp - 0x14], eax */ 11397 RECOMP_ICALL(0x3615FCC4u); /* 0x36092D17: call 0x3615fcc4 */ /* not lifted */ 11398 RECOMP_FLAGS_IN(); 11399 ecx = ebx + 0x1900; /* 0x36092D1C: lea ecx, [ebx + 0x1900] */ 11400 MEM32(esi + 0xC) = ecx; /* 0x36092D22: mov dword ptr [esi + 0xc], ecx */ 11401 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11402 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11403 esp = esp + 4; /* 0x36092D25: add esp, 4 */ 11404 _flag_k = FK_ADD; 11405 ecx = esi; /* 0x36092D28: mov ecx, esi */ 11406 RECOMP_ICALL(0x36029B00u); /* 0x36092D2A: call 0x36029b00 */ /* not lifted */ 11407 RECOMP_FLAGS_IN(); 11408 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36092D2F: shl eax, 4 */ 11409 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 11410 eax = eax << 4u; /* 0x36092D2F: shl eax, 4 */ 11411 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 11412 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11413 eax = eax + ebx; /* 0x36092D32: add eax, ebx */ 11414 _flag_k = FK_ADD; 11415 MEM32(esi + 0x8) = eax; /* 0x36092D34: mov dword ptr [esi + 8], eax */ 11416 MEM32(esi + 0x4) = ebx; /* 0x36092D37: mov dword ptr [esi + 4], ebx */ 11417 L_36092D3A: 11418 MEM32(edi) = esi; /* 0x36092D3A: mov dword ptr [edi], esi */ 11419 eax = edi; /* 0x36092D3C: mov eax, edi */ 11420 edi = POP32_VAL(esp); /* 0x36092D3E: pop edi */ 11421 esi = POP32_VAL(esp); /* 0x36092D3F: pop esi */ 11422 ebx = POP32_VAL(esp); /* 0x36092D40: pop ebx */ 11423 ecx = MEM32(ebp + (-0xC)); /* 0x36092D41: mov ecx, dword ptr [ebp - 0xc] */ 11424 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D44: mov dword ptr fs:[0], ecx */ 11425 esp = ebp; /* 0x36092D4B: mov esp, ebp */ 11426 ebp = POP32_VAL(esp); /* 0x36092D4D: pop ebp */ 11427 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D4E: ret */ 11428 L_36092D4F: 11429 ecx = MEM32(ebp + (-0xC)); /* 0x36092D4F: mov ecx, dword ptr [ebp - 0xc] */ 11430 MEM32(edi) = ebx; /* 0x36092D52: mov dword ptr [edi], ebx */ 11431 eax = edi; /* 0x36092D54: mov eax, edi */ 11432 edi = POP32_VAL(esp); /* 0x36092D56: pop edi */ 11433 esi = POP32_VAL(esp); /* 0x36092D57: pop esi */ 11434 ebx = POP32_VAL(esp); /* 0x36092D58: pop ebx */ 11435 MEM32(FS_BASE + (0)) = ecx; /* 0x36092D59: mov dword ptr fs:[0], ecx */ 11436 esp = ebp; /* 0x36092D60: mov esp, ebp */ 11437 ebp = POP32_VAL(esp); /* 0x36092D62: pop ebp */ 11438 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092D63: ret */ 11439 RECOMP_REGS_OUT(); 11440 } 11441 11442 void sub_36092D70(void) { 11443 int _fpu_cmp = 0; 11444 uint32_t _cf = 0; 11445 int _df = 1; 11446 uint32_t _flag_k = FK_NONE; 11447 uint32_t _flag_a = 0, _flag_b = 0; 11448 uint32_t _itail_tgt = 0; 11449 RECOMP_REGS_LOCALS 11450 RECOMP_ENTER(0x36092D70u); 11451 11452 L_36092D70: 11453 PUSH32(esp, esi); /* 0x36092D70: push esi */ 11454 PUSH32(esp, edi); /* 0x36092D71: push edi */ 11455 edi = ecx; /* 0x36092D72: mov edi, ecx */ 11456 esi = MEM32(edi); /* 0x36092D74: mov esi, dword ptr [edi] */ 11457 /* test esi, esi */ /* 0x36092D76: test esi, esi */ 11458 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11459 _cf = 0; 11460 _flag_k = FK_TEST; 11461 if (TEST_Z(_flag_a, _flag_b)) goto L_36092D8A; /* 0x36092D78: je 0x36092d8a */ 11462 L_36092D7A: 11463 ecx = esi; /* 0x36092D7A: mov ecx, esi */ 11464 RECOMP_ICALL(0x36092E10u); /* 0x36092D7C: call 0x36092e10 */ /* not lifted */ 11465 RECOMP_FLAGS_IN(); 11466 PUSH32(esp, esi); /* 0x36092D81: push esi */ 11467 RECOMP_ICALL(0x3615FCC4u); /* 0x36092D82: call 0x3615fcc4 */ /* not lifted */ 11468 RECOMP_FLAGS_IN(); 11469 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11470 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11471 esp = esp + 4; /* 0x36092D87: add esp, 4 */ 11472 _flag_k = FK_ADD; 11473 L_36092D8A: 11474 eax = MEM32(edi + 0x4); /* 0x36092D8A: mov eax, dword ptr [edi + 4] */ 11475 MEM32(edi) = 0; /* 0x36092D8D: mov dword ptr [edi], 0 */ 11476 eax = MEM32(eax + 0x4); /* 0x36092D93: mov eax, dword ptr [eax + 4] */ 11477 esi = MEM32(eax); /* 0x36092D96: mov esi, dword ptr [eax] */ 11478 /* cmp esi, eax */ /* 0x36092D98: cmp esi, eax */ 11479 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 11480 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11481 _flag_k = FK_CMP; 11482 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092DEC; /* 0x36092D9A: je 0x36092dec */ 11483 L_36092D9C: 11484 ecx = MEM32(esi + 0x10); /* 0x36092D9C: mov ecx, dword ptr [esi + 0x10] */ 11485 /* test ecx, ecx */ /* 0x36092D9F: test ecx, ecx */ 11486 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11487 _cf = 0; 11488 _flag_k = FK_TEST; 11489 if (TEST_Z(_flag_a, _flag_b)) goto L_36092DA9; /* 0x36092DA1: je 0x36092da9 */ 11490 L_36092DA3: 11491 edx = MEM32(ecx); /* 0x36092DA3: mov edx, dword ptr [ecx] */ 11492 PUSH32(esp, 1); /* 0x36092DA5: push 1 */ 11493 RECOMP_ICALL(MEM32(edx)); /* 0x36092DA7: call dword ptr [edx] */ 11494 RECOMP_FLAGS_IN(); 11495 L_36092DA9: 11496 eax = MEM32(esi + 0x8); /* 0x36092DA9: mov eax, dword ptr [esi + 8] */ 11497 SET_LO8(ecx, MEM8(eax + 0x25)); /* 0x36092DAC: mov cl, byte ptr [eax + 0x25] */ 11498 /* test LO8(ecx), LO8(ecx) */ /* 0x36092DAF: test cl, cl */ 11499 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11500 _cf = 0; 11501 _flag_k = FK_NARROW(FK_TEST, 24); 11502 if (TEST_NZ(_flag_a, _flag_b)) goto L_36092DCB; /* 0x36092DB1: jne 0x36092dcb */ 11503 L_36092DB3: 11504 esi = eax; /* 0x36092DB3: mov esi, eax */ 11505 eax = MEM32(esi); /* 0x36092DB5: mov eax, dword ptr [esi] */ 11506 SET_LO8(ecx, MEM8(eax + 0x25)); /* 0x36092DB7: mov cl, byte ptr [eax + 0x25] */ 11507 /* test LO8(ecx), LO8(ecx) */ /* 0x36092DBA: test cl, cl */ 11508 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11509 _cf = 0; 11510 _flag_k = FK_NARROW(FK_TEST, 24); 11511 if (TEST_NZ(_flag_a, _flag_b)) goto L_36092DE4; /* 0x36092DBC: jne 0x36092de4 */ 11512 L_36092DBE: 11513 esi = eax; /* 0x36092DBE: mov esi, eax */ 11514 eax = MEM32(esi); /* 0x36092DC0: mov eax, dword ptr [esi] */ 11515 SET_LO8(ecx, MEM8(eax + 0x25)); /* 0x36092DC2: mov cl, byte ptr [eax + 0x25] */ 11516 /* test LO8(ecx), LO8(ecx) */ /* 0x36092DC5: test cl, cl */ 11517 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 11518 _cf = 0; 11519 _flag_k = FK_NARROW(FK_TEST, 24); 11520 RECOMP_BACKEDGE(); 11521 if (TEST_Z(_flag_a, _flag_b)) goto L_36092DBE; /* 0x36092DC7: je 0x36092dbe */ 11522 L_36092DC9: 11523 goto L_36092DE4; /* 0x36092DC9: jmp 0x36092de4 */ 11524 L_36092DCB: 11525 eax = MEM32(esi + 0x4); /* 0x36092DCB: mov eax, dword ptr [esi + 4] */ 11526 /* cmp esi, MEM32(eax + 0x8) */ /* 0x36092DCE: cmp esi, dword ptr [eax + 8] */ 11527 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 11528 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11529 _flag_k = FK_CMP; 11530 if (CMP_NE(_flag_a, _flag_b)) goto L_36092DDD; /* 0x36092DD1: jne 0x36092ddd */ 11531 L_36092DD3: 11532 esi = eax; /* 0x36092DD3: mov esi, eax */ 11533 eax = MEM32(eax + 0x4); /* 0x36092DD5: mov eax, dword ptr [eax + 4] */ 11534 /* cmp esi, MEM32(eax + 0x8) */ /* 0x36092DD8: cmp esi, dword ptr [eax + 8] */ 11535 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 11536 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11537 _flag_k = FK_CMP; 11538 RECOMP_BACKEDGE(); 11539 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092DD3; /* 0x36092DDB: je 0x36092dd3 */ 11540 L_36092DDD: 11541 /* cmp MEM32(esi + 0x8), eax */ /* 0x36092DDD: cmp dword ptr [esi + 8], eax */ 11542 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 11543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11544 _flag_k = FK_CMP; 11545 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092DE4; /* 0x36092DE0: je 0x36092de4 */ 11546 L_36092DE2: 11547 esi = eax; /* 0x36092DE2: mov esi, eax */ 11548 L_36092DE4: 11549 eax = MEM32(edi + 0x4); /* 0x36092DE4: mov eax, dword ptr [edi + 4] */ 11550 /* cmp esi, MEM32(eax + 0x4) */ /* 0x36092DE7: cmp esi, dword ptr [eax + 4] */ 11551 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4)); 11552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11553 _flag_k = FK_CMP; 11554 RECOMP_BACKEDGE(); 11555 if (CMP_NE(_flag_a, _flag_b)) goto L_36092D9C; /* 0x36092DEA: jne 0x36092d9c */ 11556 L_36092DEC: 11557 esi = MEM32(edi + 0x4); /* 0x36092DEC: mov esi, dword ptr [edi + 4] */ 11558 /* test esi, esi */ /* 0x36092DEF: test esi, esi */ 11559 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 11560 _cf = 0; 11561 _flag_k = FK_TEST; 11562 if (TEST_Z(_flag_a, _flag_b)) goto L_36092E03; /* 0x36092DF1: je 0x36092e03 */ 11563 L_36092DF3: 11564 ecx = esi; /* 0x36092DF3: mov ecx, esi */ 11565 RECOMP_ICALL(0x36092F00u); /* 0x36092DF5: call 0x36092f00 */ /* not lifted */ 11566 RECOMP_FLAGS_IN(); 11567 PUSH32(esp, esi); /* 0x36092DFA: push esi */ 11568 RECOMP_ICALL(0x3615FCC4u); /* 0x36092DFB: call 0x3615fcc4 */ /* not lifted */ 11569 RECOMP_FLAGS_IN(); 11570 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11571 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11572 esp = esp + 4; /* 0x36092E00: add esp, 4 */ 11573 _flag_k = FK_ADD; 11574 L_36092E03: 11575 MEM32(edi + 0x4) = 0; /* 0x36092E03: mov dword ptr [edi + 4], 0 */ 11576 edi = POP32_VAL(esp); /* 0x36092E0A: pop edi */ 11577 esi = POP32_VAL(esp); /* 0x36092E0B: pop esi */ 11578 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092E0C: ret */ 11579 RECOMP_REGS_OUT(); 11580 } 11581 11582 void sub_36092E10(void) { 11583 int _fpu_cmp = 0; 11584 uint32_t _cf = 0; 11585 int _df = 1; 11586 uint32_t _flag_k = FK_NONE; 11587 uint32_t _flag_a = 0, _flag_b = 0; 11588 uint32_t _itail_tgt = 0; 11589 RECOMP_REGS_LOCALS 11590 RECOMP_ENTER(0x36092E10u); 11591 11592 L_36092E10: 11593 PUSH32(esp, ebp); /* 0x36092E10: push ebp */ 11594 ebp = esp; /* 0x36092E11: mov ebp, esp */ 11595 PUSH32(esp, 0xFFFFFFFFu); /* 0x36092E13: push -1 */ 11596 PUSH32(esp, 0x36166383u); /* 0x36092E15: push 0x36166383 */ 11597 eax = MEM32(FS_BASE + (0)); /* 0x36092E1A: mov eax, dword ptr fs:[0] */ 11598 PUSH32(esp, eax); /* 0x36092E20: push eax */ 11599 MEM32(FS_BASE + (0)) = esp; /* 0x36092E21: mov dword ptr fs:[0], esp */ 11600 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11601 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11602 esp = esp - 8; /* 0x36092E28: sub esp, 8 */ 11603 _flag_k = FK_CMP; 11604 PUSH32(esp, ebx); /* 0x36092E2B: push ebx */ 11605 PUSH32(esp, esi); /* 0x36092E2C: push esi */ 11606 esi = ecx; /* 0x36092E2D: mov esi, ecx */ 11607 PUSH32(esp, edi); /* 0x36092E2F: push edi */ 11608 MEM32(ebp + (-0x14)) = esi; /* 0x36092E30: mov dword ptr [ebp - 0x14], esi */ 11609 eax = MEM32(esi + 0x8); /* 0x36092E33: mov eax, dword ptr [esi + 8] */ 11610 edi = MEM32(esi + 0x4); /* 0x36092E36: mov edi, dword ptr [esi + 4] */ 11611 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11612 ebx = 0; /* 0x36092E39: xor ebx, ebx */ 11613 _cf = 0; 11614 _flag_k = FK_TEST; 11615 /* cmp eax, edi */ /* 0x36092E3B: cmp eax, edi */ 11616 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11618 _flag_k = FK_CMP; 11619 MEM32(ebp + (-0x4)) = 1; /* 0x36092E3D: mov dword ptr [ebp - 4], 1 */ 11620 MEM32(ebp + (-0x10)) = eax; /* 0x36092E44: mov dword ptr [ebp - 0x10], eax */ 11621 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092E60; /* 0x36092E47: je 0x36092e60 */ 11622 L_36092E49: 11623 ecx = MEM32(edi + 0x8); /* 0x36092E49: mov ecx, dword ptr [edi + 8] */ 11624 /* cmp ecx, ebx */ /* 0x36092E4C: cmp ecx, ebx */ 11625 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 11626 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11627 _flag_k = FK_CMP; 11628 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092E59; /* 0x36092E4E: je 0x36092e59 */ 11629 L_36092E50: 11630 eax = MEM32(ecx); /* 0x36092E50: mov eax, dword ptr [ecx] */ 11631 PUSH32(esp, 1); /* 0x36092E52: push 1 */ 11632 RECOMP_ICALL(MEM32(eax)); /* 0x36092E54: call dword ptr [eax] */ 11633 RECOMP_FLAGS_IN(); 11634 eax = MEM32(ebp + (-0x10)); /* 0x36092E56: mov eax, dword ptr [ebp - 0x10] */ 11635 L_36092E59: 11636 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x10u); 11637 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11638 edi = edi + 0x10u; /* 0x36092E59: add edi, 0x10 */ 11639 _flag_k = FK_ADD; 11640 /* cmp edi, eax */ /* 0x36092E5C: cmp edi, eax */ 11641 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11643 _flag_k = FK_CMP; 11644 RECOMP_BACKEDGE(); 11645 if (CMP_NE(_flag_a, _flag_b)) goto L_36092E49; /* 0x36092E5E: jne 0x36092e49 */ 11646 L_36092E60: 11647 ecx = MEM32(esi + 0x4); /* 0x36092E60: mov ecx, dword ptr [esi + 4] */ 11648 eax = MEM32(esi + 0x8); /* 0x36092E63: mov eax, dword ptr [esi + 8] */ 11649 PUSH32(esp, ecx); /* 0x36092E66: push ecx */ 11650 PUSH32(esp, eax); /* 0x36092E67: push eax */ 11651 PUSH32(esp, eax); /* 0x36092E68: push eax */ 11652 RECOMP_ICALL(0x360948B0u); /* 0x36092E69: call 0x360948b0 */ /* not lifted */ 11653 RECOMP_FLAGS_IN(); 11654 edi = eax; /* 0x36092E6E: mov edi, eax */ 11655 eax = MEM32(esi + 0x8); /* 0x36092E70: mov eax, dword ptr [esi + 8] */ 11656 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11657 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11658 esp = esp + 0xCu; /* 0x36092E73: add esp, 0xc */ 11659 _flag_k = FK_ADD; 11660 PUSH32(esp, eax); /* 0x36092E76: push eax */ 11661 PUSH32(esp, edi); /* 0x36092E77: push edi */ 11662 ecx = esi; /* 0x36092E78: mov ecx, esi */ 11663 RECOMP_ICALL(0x3610ED60u); /* 0x36092E7A: call 0x3610ed60 */ /* not lifted */ 11664 RECOMP_FLAGS_IN(); 11665 MEM32(esi + 0x8) = edi; /* 0x36092E7F: mov dword ptr [esi + 8], edi */ 11666 eax = MEM32(esi + 0x14); /* 0x36092E82: mov eax, dword ptr [esi + 0x14] */ 11667 ecx = MEM32(eax); /* 0x36092E85: mov ecx, dword ptr [eax] */ 11668 edi = esi + 0x10; /* 0x36092E87: lea edi, [esi + 0x10] */ 11669 PUSH32(esp, eax); /* 0x36092E8A: push eax */ 11670 PUSH32(esp, ecx); /* 0x36092E8B: push ecx */ 11671 ecx = ebp + (-0x10); /* 0x36092E8C: lea ecx, [ebp - 0x10] */ 11672 PUSH32(esp, ecx); /* 0x36092E8F: push ecx */ 11673 ecx = edi; /* 0x36092E90: mov ecx, edi */ 11674 RECOMP_ICALL(0x36093F50u); /* 0x36092E92: call 0x36093f50 */ /* not lifted */ 11675 RECOMP_FLAGS_IN(); 11676 MEM32(esi + 0x2C) = ebx; /* 0x36092E97: mov dword ptr [esi + 0x2c], ebx */ 11677 MEM32(esi + 0x30) = ebx; /* 0x36092E9A: mov dword ptr [esi + 0x30], ebx */ 11678 MEM32(esi + 0x34) = ebx; /* 0x36092E9D: mov dword ptr [esi + 0x34], ebx */ 11679 MEM32(esi + 0x38) = ebx; /* 0x36092EA0: mov dword ptr [esi + 0x38], ebx */ 11680 eax = MEM32(edi + 0x4); /* 0x36092EA3: mov eax, dword ptr [edi + 4] */ 11681 ecx = MEM32(eax); /* 0x36092EA6: mov ecx, dword ptr [eax] */ 11682 PUSH32(esp, eax); /* 0x36092EA8: push eax */ 11683 PUSH32(esp, ecx); /* 0x36092EA9: push ecx */ 11684 edx = ebp + (-0x10); /* 0x36092EAA: lea edx, [ebp - 0x10] */ 11685 PUSH32(esp, edx); /* 0x36092EAD: push edx */ 11686 ecx = edi; /* 0x36092EAE: mov ecx, edi */ 11687 MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x36092EB0: mov byte ptr [ebp - 4], bl */ 11688 RECOMP_ICALL(0x36093F50u); /* 0x36092EB3: call 0x36093f50 */ /* not lifted */ 11689 RECOMP_FLAGS_IN(); 11690 eax = MEM32(edi + 0x4); /* 0x36092EB8: mov eax, dword ptr [edi + 4] */ 11691 PUSH32(esp, eax); /* 0x36092EBB: push eax */ 11692 RECOMP_ICALL(0x3615FCC4u); /* 0x36092EBC: call 0x3615fcc4 */ /* not lifted */ 11693 RECOMP_FLAGS_IN(); 11694 ecx = MEM32(edi + 0x8); /* 0x36092EC1: mov ecx, dword ptr [edi + 8] */ 11695 PUSH32(esp, ecx); /* 0x36092EC4: push ecx */ 11696 MEM32(edi + 0x4) = ebx; /* 0x36092EC5: mov dword ptr [edi + 4], ebx */ 11697 MEM32(edi + 0x10) = ebx; /* 0x36092EC8: mov dword ptr [edi + 0x10], ebx */ 11698 RECOMP_ICALL(0x3615FCC4u); /* 0x36092ECB: call 0x3615fcc4 */ /* not lifted */ 11699 RECOMP_FLAGS_IN(); 11700 MEM32(edi + 0x8) = ebx; /* 0x36092ED0: mov dword ptr [edi + 8], ebx */ 11701 eax = MEM32(esi + 0x4); /* 0x36092ED3: mov eax, dword ptr [esi + 4] */ 11702 PUSH32(esp, eax); /* 0x36092ED6: push eax */ 11703 MEM32(ebp + (-0x14)) = eax; /* 0x36092ED7: mov dword ptr [ebp - 0x14], eax */ 11704 RECOMP_ICALL(0x3615FCC4u); /* 0x36092EDA: call 0x3615fcc4 */ /* not lifted */ 11705 RECOMP_FLAGS_IN(); 11706 ecx = MEM32(ebp + (-0xC)); /* 0x36092EDF: mov ecx, dword ptr [ebp - 0xc] */ 11707 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11708 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11709 esp = esp + 0xCu; /* 0x36092EE2: add esp, 0xc */ 11710 _flag_k = FK_ADD; 11711 MEM32(esi + 0x4) = ebx; /* 0x36092EE5: mov dword ptr [esi + 4], ebx */ 11712 MEM32(esi + 0x8) = ebx; /* 0x36092EE8: mov dword ptr [esi + 8], ebx */ 11713 MEM32(esi + 0xC) = ebx; /* 0x36092EEB: mov dword ptr [esi + 0xc], ebx */ 11714 edi = POP32_VAL(esp); /* 0x36092EEE: pop edi */ 11715 esi = POP32_VAL(esp); /* 0x36092EEF: pop esi */ 11716 ebx = POP32_VAL(esp); /* 0x36092EF0: pop ebx */ 11717 MEM32(FS_BASE + (0)) = ecx; /* 0x36092EF1: mov dword ptr fs:[0], ecx */ 11718 esp = ebp; /* 0x36092EF8: mov esp, ebp */ 11719 ebp = POP32_VAL(esp); /* 0x36092EFA: pop ebp */ 11720 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092EFB: ret */ 11721 RECOMP_REGS_OUT(); 11722 } 11723 11724 void sub_36092F00(void) { 11725 int _fpu_cmp = 0; 11726 uint32_t _cf = 0; 11727 int _df = 1; 11728 uint32_t _flag_k = FK_NONE; 11729 uint32_t _flag_a = 0, _flag_b = 0; 11730 uint32_t _itail_tgt = 0; 11731 RECOMP_REGS_LOCALS 11732 RECOMP_ENTER(0x36092F00u); 11733 11734 L_36092F00: 11735 PUSH32(esp, ebp); /* 0x36092F00: push ebp */ 11736 ebp = esp; /* 0x36092F01: mov ebp, esp */ 11737 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11739 esp = esp - 8; /* 0x36092F03: sub esp, 8 */ 11740 _flag_k = FK_CMP; 11741 PUSH32(esp, ebx); /* 0x36092F06: push ebx */ 11742 PUSH32(esp, esi); /* 0x36092F07: push esi */ 11743 esi = ecx; /* 0x36092F08: mov esi, ecx */ 11744 ecx = MEM32(esi + 0x10); /* 0x36092F0A: mov ecx, dword ptr [esi + 0x10] */ 11745 /* test ecx, ecx */ /* 0x36092F0D: test ecx, ecx */ 11746 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11747 _cf = 0; 11748 _flag_k = FK_TEST; 11749 PUSH32(esp, edi); /* 0x36092F0F: push edi */ 11750 edi = MEM32(esi + 0x4); /* 0x36092F10: mov edi, dword ptr [esi + 4] */ 11751 eax = MEM32(edi); /* 0x36092F13: mov eax, dword ptr [edi] */ 11752 MEM32(ebp + (-0x4)) = eax; /* 0x36092F15: mov dword ptr [ebp - 4], eax */ 11753 if (TEST_Z(_flag_a, _flag_b)) goto L_36092F7F; /* 0x36092F18: je 0x36092f7f */ 11754 L_36092F1A: 11755 ecx = eax; /* 0x36092F1A: mov ecx, eax */ 11756 /* cmp eax, ecx */ /* 0x36092F1C: cmp eax, ecx */ 11757 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 11758 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11759 _flag_k = FK_CMP; 11760 if (CMP_NE(_flag_a, _flag_b)) goto L_36092F7F; /* 0x36092F1E: jne 0x36092f7f */ 11761 L_36092F20: 11762 /* cmp edi, edi */ /* 0x36092F20: cmp edi, edi */ 11763 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11765 _flag_k = FK_CMP; 11766 if (CMP_NE(_flag_a, _flag_b)) goto L_36092F7F; /* 0x36092F22: jne 0x36092f7f */ 11767 L_36092F24: 11768 ebx = MEM32(edi + 0x4); /* 0x36092F24: mov ebx, dword ptr [edi + 4] */ 11769 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36092F27: cmp ebx, dword ptr [esi + 8] */ 11770 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11772 _flag_k = FK_CMP; 11773 edi = ebx; /* 0x36092F2A: mov edi, ebx */ 11774 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092F57; /* 0x36092F2C: je 0x36092f57 */ 11775 L_36092F2E: 11776 eax = MEM32(edi + 0x8); /* 0x36092F2E: mov eax, dword ptr [edi + 8] */ 11777 PUSH32(esp, eax); /* 0x36092F31: push eax */ 11778 ecx = esi; /* 0x36092F32: mov ecx, esi */ 11779 RECOMP_ICALL(0x36094410u); /* 0x36092F34: call 0x36094410 */ /* not lifted */ 11780 RECOMP_FLAGS_IN(); 11781 edi = MEM32(edi); /* 0x36092F39: mov edi, dword ptr [edi] */ 11782 PUSH32(esp, 0); /* 0x36092F3B: push 0 */ 11783 ecx = ebx + 0xC; /* 0x36092F3D: lea ecx, [ebx + 0xc] */ 11784 RECOMP_ICALL(0x360949B0u); /* 0x36092F40: call 0x360949b0 */ /* not lifted */ 11785 RECOMP_FLAGS_IN(); 11786 PUSH32(esp, ebx); /* 0x36092F45: push ebx */ 11787 RECOMP_ICALL(0x3615FCC4u); /* 0x36092F46: call 0x3615fcc4 */ /* not lifted */ 11788 RECOMP_FLAGS_IN(); 11789 eax = MEM32(esi + 0x8); /* 0x36092F4B: mov eax, dword ptr [esi + 8] */ 11790 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 11791 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11792 esp = esp + 4; /* 0x36092F4E: add esp, 4 */ 11793 _flag_k = FK_ADD; 11794 /* cmp edi, eax */ /* 0x36092F51: cmp edi, eax */ 11795 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 11796 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11797 _flag_k = FK_CMP; 11798 ebx = edi; /* 0x36092F53: mov ebx, edi */ 11799 RECOMP_BACKEDGE(); 11800 if (CMP_NE(_flag_a, _flag_b)) goto L_36092F2E; /* 0x36092F55: jne 0x36092f2e */ 11801 L_36092F57: 11802 ecx = MEM32(esi + 0x4); /* 0x36092F57: mov ecx, dword ptr [esi + 4] */ 11803 edx = MEM32(esi + 0x8); /* 0x36092F5A: mov edx, dword ptr [esi + 8] */ 11804 MEM32(ecx + 0x4) = edx; /* 0x36092F5D: mov dword ptr [ecx + 4], edx */ 11805 eax = MEM32(esi + 0x4); /* 0x36092F60: mov eax, dword ptr [esi + 4] */ 11806 MEM32(esi + 0x10) = 0; /* 0x36092F63: mov dword ptr [esi + 0x10], 0 */ 11807 MEM32(eax) = eax; /* 0x36092F6A: mov dword ptr [eax], eax */ 11808 eax = MEM32(esi + 0x4); /* 0x36092F6C: mov eax, dword ptr [esi + 4] */ 11809 MEM32(eax + 0x8) = eax; /* 0x36092F6F: mov dword ptr [eax + 8], eax */ 11810 eax = ebp + (-0x8); /* 0x36092F72: lea eax, [ebp - 8] */ 11811 PUSH32(esp, eax); /* 0x36092F75: push eax */ 11812 ecx = esi; /* 0x36092F76: mov ecx, esi */ 11813 RECOMP_ICALL(0x3614FC30u); /* 0x36092F78: call 0x3614fc30 */ /* not lifted */ 11814 RECOMP_FLAGS_IN(); 11815 goto L_36092FA0; /* 0x36092F7D: jmp 0x36092fa0 */ 11816 L_36092F7F: 11817 /* cmp eax, edi */ /* 0x36092F7F: cmp eax, edi */ 11818 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11819 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11820 _flag_k = FK_CMP; 11821 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092FA0; /* 0x36092F81: je 0x36092fa0 */ 11822 L_36092F83: 11823 ecx = ebp + (-0x4); /* 0x36092F83: lea ecx, [ebp - 4] */ 11824 ebx = eax; /* 0x36092F86: mov ebx, eax */ 11825 RECOMP_ICALL(0x36093A60u); /* 0x36092F88: call 0x36093a60 */ /* not lifted */ 11826 RECOMP_FLAGS_IN(); 11827 PUSH32(esp, ebx); /* 0x36092F8D: push ebx */ 11828 ecx = ebp + (-0x8); /* 0x36092F8E: lea ecx, [ebp - 8] */ 11829 PUSH32(esp, ecx); /* 0x36092F91: push ecx */ 11830 ecx = esi; /* 0x36092F92: mov ecx, esi */ 11831 RECOMP_ICALL(0x36094000u); /* 0x36092F94: call 0x36094000 */ /* not lifted */ 11832 RECOMP_FLAGS_IN(); 11833 eax = MEM32(ebp + (-0x4)); /* 0x36092F99: mov eax, dword ptr [ebp - 4] */ 11834 /* cmp eax, edi */ /* 0x36092F9C: cmp eax, edi */ 11835 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 11836 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11837 _flag_k = FK_CMP; 11838 RECOMP_BACKEDGE(); 11839 if (CMP_NE(_flag_a, _flag_b)) goto L_36092F83; /* 0x36092F9E: jne 0x36092f83 */ 11840 L_36092FA0: 11841 edx = MEM32(esi + 0x4); /* 0x36092FA0: mov edx, dword ptr [esi + 4] */ 11842 PUSH32(esp, edx); /* 0x36092FA3: push edx */ 11843 RECOMP_ICALL(0x3615FCC4u); /* 0x36092FA4: call 0x3615fcc4 */ /* not lifted */ 11844 RECOMP_FLAGS_IN(); 11845 eax = MEM32(esi + 0x8); /* 0x36092FA9: mov eax, dword ptr [esi + 8] */ 11846 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11847 edi = 0; /* 0x36092FAC: xor edi, edi */ 11848 _cf = 0; 11849 _flag_k = FK_TEST; 11850 PUSH32(esp, eax); /* 0x36092FAE: push eax */ 11851 MEM32(esi + 0x4) = edi; /* 0x36092FAF: mov dword ptr [esi + 4], edi */ 11852 MEM32(esi + 0x10) = edi; /* 0x36092FB2: mov dword ptr [esi + 0x10], edi */ 11853 RECOMP_ICALL(0x3615FCC4u); /* 0x36092FB5: call 0x3615fcc4 */ /* not lifted */ 11854 RECOMP_FLAGS_IN(); 11855 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 11856 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11857 esp = esp + 8; /* 0x36092FBA: add esp, 8 */ 11858 _flag_k = FK_ADD; 11859 MEM32(esi + 0x8) = edi; /* 0x36092FBD: mov dword ptr [esi + 8], edi */ 11860 edi = POP32_VAL(esp); /* 0x36092FC0: pop edi */ 11861 esi = POP32_VAL(esp); /* 0x36092FC1: pop esi */ 11862 ebx = POP32_VAL(esp); /* 0x36092FC2: pop ebx */ 11863 esp = ebp; /* 0x36092FC3: mov esp, ebp */ 11864 ebp = POP32_VAL(esp); /* 0x36092FC5: pop ebp */ 11865 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36092FC6: ret */ 11866 RECOMP_REGS_OUT(); 11867 } 11868 11869 void sub_36092FD0(void) { 11870 int _fpu_cmp = 0; 11871 uint32_t _cf = 0; 11872 int _df = 1; 11873 uint32_t _flag_k = FK_NONE; 11874 uint32_t _flag_a = 0, _flag_b = 0; 11875 uint32_t _itail_tgt = 0; 11876 RECOMP_REGS_LOCALS 11877 RECOMP_ENTER(0x36092FD0u); 11878 11879 L_36092FD0: 11880 PUSH32(esp, ebp); /* 0x36092FD0: push ebp */ 11881 ebp = esp; /* 0x36092FD1: mov ebp, esp */ 11882 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 11883 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11884 esp = esp - 0xCu; /* 0x36092FD3: sub esp, 0xc */ 11885 _flag_k = FK_CMP; 11886 PUSH32(esp, ebx); /* 0x36092FD6: push ebx */ 11887 ebx = MEM32(ecx); /* 0x36092FD7: mov ebx, dword ptr [ecx] */ 11888 PUSH32(esp, esi); /* 0x36092FD9: push esi */ 11889 esi = MEM32(ebx + 0x4); /* 0x36092FDA: mov esi, dword ptr [ebx + 4] */ 11890 PUSH32(esp, edi); /* 0x36092FDD: push edi */ 11891 edi = MEM32(ebx + 0x8); /* 0x36092FDE: mov edi, dword ptr [ebx + 8] */ 11892 /* cmp edi, esi */ /* 0x36092FE1: cmp edi, esi */ 11893 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(esi); 11894 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11895 _flag_k = FK_CMP; 11896 if (CMP_EQ(_flag_a, _flag_b)) goto L_36092FF9; /* 0x36092FE3: je 0x36092ff9 */ 11897 L_36092FE5: 11898 ecx = MEM32(esi + 0x8); /* 0x36092FE5: mov ecx, dword ptr [esi + 8] */ 11899 /* test ecx, ecx */ /* 0x36092FE8: test ecx, ecx */ 11900 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 11901 _cf = 0; 11902 _flag_k = FK_TEST; 11903 if (TEST_Z(_flag_a, _flag_b)) goto L_36092FF2; /* 0x36092FEA: je 0x36092ff2 */ 11904 L_36092FEC: 11905 eax = MEM32(ecx); /* 0x36092FEC: mov eax, dword ptr [ecx] */ 11906 PUSH32(esp, 1); /* 0x36092FEE: push 1 */ 11907 RECOMP_ICALL(MEM32(eax)); /* 0x36092FF0: call dword ptr [eax] */ 11908 RECOMP_FLAGS_IN(); 11909 L_36092FF2: 11910 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x10u); 11911 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11912 esi = esi + 0x10u; /* 0x36092FF2: add esi, 0x10 */ 11913 _flag_k = FK_ADD; 11914 /* cmp esi, edi */ /* 0x36092FF5: cmp esi, edi */ 11915 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edi); 11916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11917 _flag_k = FK_CMP; 11918 RECOMP_BACKEDGE(); 11919 if (CMP_NE(_flag_a, _flag_b)) goto L_36092FE5; /* 0x36092FF7: jne 0x36092fe5 */ 11920 L_36092FF9: 11921 eax = MEM32(ebx + 0x8); /* 0x36092FF9: mov eax, dword ptr [ebx + 8] */ 11922 /* cmp eax, eax */ /* 0x36092FFC: cmp eax, eax */ 11923 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 11924 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11925 _flag_k = FK_CMP; 11926 ecx = MEM32(ebx + 0x4); /* 0x36092FFE: mov ecx, dword ptr [ebx + 4] */ 11927 MEM32(ebp + (-0x8)) = eax; /* 0x36093001: mov dword ptr [ebp - 8], eax */ 11928 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609302D; /* 0x36093004: je 0x3609302d */ 11929 L_36093006: 11930 edx = eax; /* 0x36093006: mov edx, eax */ 11931 edi = MEM32(edx); /* 0x36093008: mov edi, dword ptr [edx] */ 11932 esi = ecx; /* 0x3609300A: mov esi, ecx */ 11933 MEM32(esi) = edi; /* 0x3609300C: mov dword ptr [esi], edi */ 11934 edi = MEM32(edx + 0x4); /* 0x3609300E: mov edi, dword ptr [edx + 4] */ 11935 MEM32(esi + 0x4) = edi; /* 0x36093011: mov dword ptr [esi + 4], edi */ 11936 edi = MEM32(edx + 0x8); /* 0x36093014: mov edi, dword ptr [edx + 8] */ 11937 MEM32(esi + 0x8) = edi; /* 0x36093017: mov dword ptr [esi + 8], edi */ 11938 edx = MEM32(edx + 0xC); /* 0x3609301A: mov edx, dword ptr [edx + 0xc] */ 11939 MEM32(esi + 0xC) = edx; /* 0x3609301D: mov dword ptr [esi + 0xc], edx */ 11940 edx = MEM32(ebp + (-0x8)); /* 0x36093020: mov edx, dword ptr [ebp - 8] */ 11941 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 11942 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11943 eax = eax + 0x10u; /* 0x36093023: add eax, 0x10 */ 11944 _flag_k = FK_ADD; 11945 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 11946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 11947 ecx = ecx + 0x10u; /* 0x36093026: add ecx, 0x10 */ 11948 _flag_k = FK_ADD; 11949 /* cmp eax, edx */ /* 0x36093029: cmp eax, edx */ 11950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11952 _flag_k = FK_CMP; 11953 RECOMP_BACKEDGE(); 11954 if (CMP_NE(_flag_a, _flag_b)) goto L_36093006; /* 0x3609302B: jne 0x36093006 */ 11955 L_3609302D: 11956 eax = MEM32(ebx + 0x8); /* 0x3609302D: mov eax, dword ptr [ebx + 8] */ 11957 MEM32(ebx + 0x8) = ecx; /* 0x36093030: mov dword ptr [ebx + 8], ecx */ 11958 edi = MEM32(ebx + 0x14); /* 0x36093033: mov edi, dword ptr [ebx + 0x14] */ 11959 edx = MEM32(ebx + 0x20); /* 0x36093036: mov edx, dword ptr [ebx + 0x20] */ 11960 esi = ebx + 0x10; /* 0x36093039: lea esi, [ebx + 0x10] */ 11961 MEM32(ebp + (-0x8)) = eax; /* 0x3609303C: mov dword ptr [ebp - 8], eax */ 11962 eax = MEM32(edi); /* 0x3609303F: mov eax, dword ptr [edi] */ 11963 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 11964 ecx = 0; /* 0x36093041: xor ecx, ecx */ 11965 _cf = 0; 11966 _flag_k = FK_TEST; 11967 /* cmp edx, ecx */ /* 0x36093043: cmp edx, ecx */ 11968 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 11969 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11970 _flag_k = FK_CMP; 11971 MEM32(ebp + (-0x8)) = eax; /* 0x36093045: mov dword ptr [ebp - 8], eax */ 11972 if (CMP_EQ(_flag_a, _flag_b)) goto L_360930AE; /* 0x36093048: je 0x360930ae */ 11973 L_3609304A: 11974 edx = eax; /* 0x3609304A: mov edx, eax */ 11975 /* cmp eax, edx */ /* 0x3609304C: cmp eax, edx */ 11976 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 11977 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11978 _flag_k = FK_CMP; 11979 if (CMP_NE(_flag_a, _flag_b)) goto L_360930AE; /* 0x3609304E: jne 0x360930ae */ 11980 L_36093050: 11981 /* cmp edi, edi */ /* 0x36093050: cmp edi, edi */ 11982 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 11983 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11984 _flag_k = FK_CMP; 11985 if (CMP_NE(_flag_a, _flag_b)) goto L_360930AE; /* 0x36093052: jne 0x360930ae */ 11986 L_36093054: 11987 edi = MEM32(edi + 0x4); /* 0x36093054: mov edi, dword ptr [edi + 4] */ 11988 /* cmp edi, MEM32(esi + 0x8) */ /* 0x36093057: cmp edi, dword ptr [esi + 8] */ 11989 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 11990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 11991 _flag_k = FK_CMP; 11992 MEM32(ebp + (-0x4)) = edi; /* 0x3609305A: mov dword ptr [ebp - 4], edi */ 11993 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093084; /* 0x3609305D: je 0x36093084 */ 11994 L_3609305F: 11995 ecx = MEM32(edi + 0x8); /* 0x3609305F: mov ecx, dword ptr [edi + 8] */ 11996 PUSH32(esp, ecx); /* 0x36093062: push ecx */ 11997 ecx = esi; /* 0x36093063: mov ecx, esi */ 11998 RECOMP_ICALL(0x36094720u); /* 0x36093065: call 0x36094720 */ /* not lifted */ 11999 RECOMP_FLAGS_IN(); 12000 edx = MEM32(ebp + (-0x4)); /* 0x3609306A: mov edx, dword ptr [ebp - 4] */ 12001 edi = MEM32(edi); /* 0x3609306D: mov edi, dword ptr [edi] */ 12002 PUSH32(esp, edx); /* 0x3609306F: push edx */ 12003 RECOMP_ICALL(0x3615FCC4u); /* 0x36093070: call 0x3615fcc4 */ /* not lifted */ 12004 RECOMP_FLAGS_IN(); 12005 eax = MEM32(esi + 0x8); /* 0x36093075: mov eax, dword ptr [esi + 8] */ 12006 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12007 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12008 esp = esp + 4; /* 0x36093078: add esp, 4 */ 12009 _flag_k = FK_ADD; 12010 /* cmp edi, eax */ /* 0x3609307B: cmp edi, eax */ 12011 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12013 _flag_k = FK_CMP; 12014 MEM32(ebp + (-0x4)) = edi; /* 0x3609307D: mov dword ptr [ebp - 4], edi */ 12015 RECOMP_BACKEDGE(); 12016 if (CMP_NE(_flag_a, _flag_b)) goto L_3609305F; /* 0x36093080: jne 0x3609305f */ 12017 L_36093082: 12018 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12019 ecx = 0; /* 0x36093082: xor ecx, ecx */ 12020 _cf = 0; 12021 _flag_k = FK_TEST; 12022 L_36093084: 12023 eax = MEM32(esi + 0x4); /* 0x36093084: mov eax, dword ptr [esi + 4] */ 12024 edx = MEM32(esi + 0x8); /* 0x36093087: mov edx, dword ptr [esi + 8] */ 12025 MEM32(eax + 0x4) = edx; /* 0x3609308A: mov dword ptr [eax + 4], edx */ 12026 eax = MEM32(esi + 0x4); /* 0x3609308D: mov eax, dword ptr [esi + 4] */ 12027 MEM32(esi + 0x10) = ecx; /* 0x36093090: mov dword ptr [esi + 0x10], ecx */ 12028 MEM32(eax) = eax; /* 0x36093093: mov dword ptr [eax], eax */ 12029 esi = MEM32(esi + 0x4); /* 0x36093095: mov esi, dword ptr [esi + 4] */ 12030 MEM32(esi + 0x8) = esi; /* 0x36093098: mov dword ptr [esi + 8], esi */ 12031 edi = POP32_VAL(esp); /* 0x3609309B: pop edi */ 12032 esi = POP32_VAL(esp); /* 0x3609309C: pop esi */ 12033 MEM32(ebx + 0x2C) = ecx; /* 0x3609309D: mov dword ptr [ebx + 0x2c], ecx */ 12034 MEM32(ebx + 0x30) = ecx; /* 0x360930A0: mov dword ptr [ebx + 0x30], ecx */ 12035 MEM32(ebx + 0x34) = ecx; /* 0x360930A3: mov dword ptr [ebx + 0x34], ecx */ 12036 MEM32(ebx + 0x38) = ecx; /* 0x360930A6: mov dword ptr [ebx + 0x38], ecx */ 12037 ebx = POP32_VAL(esp); /* 0x360930A9: pop ebx */ 12038 esp = ebp; /* 0x360930AA: mov esp, ebp */ 12039 ebp = POP32_VAL(esp); /* 0x360930AC: pop ebp */ 12040 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360930AD: ret */ 12041 L_360930AE: 12042 /* cmp eax, edi */ /* 0x360930AE: cmp eax, edi */ 12043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12045 _flag_k = FK_CMP; 12046 if (CMP_EQ(_flag_a, _flag_b)) goto L_360930D5; /* 0x360930B0: je 0x360930d5 */ 12047 L_360930B2: 12048 ecx = ebp + (-0x8); /* 0x360930B2: lea ecx, [ebp - 8] */ 12049 MEM32(ebp + (-0x4)) = eax; /* 0x360930B5: mov dword ptr [ebp - 4], eax */ 12050 RECOMP_ICALL(0x36096C20u); /* 0x360930B8: call 0x36096c20 */ /* not lifted */ 12051 RECOMP_FLAGS_IN(); 12052 eax = MEM32(ebp + (-0x4)); /* 0x360930BD: mov eax, dword ptr [ebp - 4] */ 12053 PUSH32(esp, eax); /* 0x360930C0: push eax */ 12054 ecx = ebp + (-0xC); /* 0x360930C1: lea ecx, [ebp - 0xc] */ 12055 PUSH32(esp, ecx); /* 0x360930C4: push ecx */ 12056 ecx = esi; /* 0x360930C5: mov ecx, esi */ 12057 RECOMP_ICALL(0x3603ECC0u); /* 0x360930C7: call 0x3603ecc0 */ /* not lifted */ 12058 RECOMP_FLAGS_IN(); 12059 eax = MEM32(ebp + (-0x8)); /* 0x360930CC: mov eax, dword ptr [ebp - 8] */ 12060 /* cmp eax, edi */ /* 0x360930CF: cmp eax, edi */ 12061 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 12062 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12063 _flag_k = FK_CMP; 12064 RECOMP_BACKEDGE(); 12065 if (CMP_NE(_flag_a, _flag_b)) goto L_360930B2; /* 0x360930D1: jne 0x360930b2 */ 12066 L_360930D3: 12067 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12068 ecx = 0; /* 0x360930D3: xor ecx, ecx */ 12069 _cf = 0; 12070 _flag_k = FK_TEST; 12071 L_360930D5: 12072 edi = POP32_VAL(esp); /* 0x360930D5: pop edi */ 12073 esi = POP32_VAL(esp); /* 0x360930D6: pop esi */ 12074 MEM32(ebx + 0x2C) = ecx; /* 0x360930D7: mov dword ptr [ebx + 0x2c], ecx */ 12075 MEM32(ebx + 0x30) = ecx; /* 0x360930DA: mov dword ptr [ebx + 0x30], ecx */ 12076 MEM32(ebx + 0x34) = ecx; /* 0x360930DD: mov dword ptr [ebx + 0x34], ecx */ 12077 MEM32(ebx + 0x38) = ecx; /* 0x360930E0: mov dword ptr [ebx + 0x38], ecx */ 12078 ebx = POP32_VAL(esp); /* 0x360930E3: pop ebx */ 12079 esp = ebp; /* 0x360930E4: mov esp, ebp */ 12080 ebp = POP32_VAL(esp); /* 0x360930E6: pop ebp */ 12081 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360930E7: ret */ 12082 RECOMP_REGS_OUT(); 12083 } 12084 12085 void sub_360930F0(void) { 12086 int _fpu_cmp = 0; 12087 uint32_t _cf = 0; 12088 int _df = 1; 12089 uint32_t _flag_k = FK_NONE; 12090 uint32_t _flag_a = 0, _flag_b = 0; 12091 uint32_t _itail_tgt = 0; 12092 RECOMP_REGS_LOCALS 12093 RECOMP_ENTER(0x360930F0u); 12094 12095 L_360930F0: 12096 PUSH32(esp, ebp); /* 0x360930F0: push ebp */ 12097 ebp = esp; /* 0x360930F1: mov ebp, esp */ 12098 PUSH32(esp, 0xFFFFFFFFu); /* 0x360930F3: push -1 */ 12099 PUSH32(esp, 0x3616639Bu); /* 0x360930F5: push 0x3616639b */ 12100 eax = MEM32(FS_BASE + (0)); /* 0x360930FA: mov eax, dword ptr fs:[0] */ 12101 PUSH32(esp, eax); /* 0x36093100: push eax */ 12102 MEM32(FS_BASE + (0)) = esp; /* 0x36093101: mov dword ptr fs:[0], esp */ 12103 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u); 12104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12105 esp = esp - 0x38u; /* 0x36093108: sub esp, 0x38 */ 12106 _flag_k = FK_CMP; 12107 PUSH32(esp, ebx); /* 0x3609310B: push ebx */ 12108 PUSH32(esp, esi); /* 0x3609310C: push esi */ 12109 esi = MEM32(ecx); /* 0x3609310D: mov esi, dword ptr [ecx] */ 12110 PUSH32(esp, edi); /* 0x3609310F: push edi */ 12111 edi = MEM32(ebp + 0x8); /* 0x36093110: mov edi, dword ptr [ebp + 8] */ 12112 PUSH32(esp, edi); /* 0x36093113: push edi */ 12113 eax = ebp + (-0x14); /* 0x36093114: lea eax, [ebp - 0x14] */ 12114 MEM32(ebp + (-0x10)) = ecx; /* 0x36093117: mov dword ptr [ebp - 0x10], ecx */ 12115 PUSH32(esp, eax); /* 0x3609311A: push eax */ 12116 ecx = esi + 0x10; /* 0x3609311B: lea ecx, [esi + 0x10] */ 12117 RECOMP_ICALL(0x36096370u); /* 0x3609311E: call 0x36096370 */ /* not lifted */ 12118 RECOMP_FLAGS_IN(); 12119 eax = MEM32(eax); /* 0x36093123: mov eax, dword ptr [eax] */ 12120 ecx = MEM32(esi + 0x14); /* 0x36093125: mov ecx, dword ptr [esi + 0x14] */ 12121 /* cmp eax, ecx */ /* 0x36093128: cmp eax, ecx */ 12122 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12123 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12124 _flag_k = FK_CMP; 12125 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093173; /* 0x3609312A: je 0x36093173 */ 12126 L_3609312C: 12127 eax = MEM32(eax + 0x14); /* 0x3609312C: mov eax, dword ptr [eax + 0x14] */ 12128 ecx = MEM32(esi + 0x4); /* 0x3609312F: mov ecx, dword ptr [esi + 4] */ 12129 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36093132: shl eax, 4 */ 12130 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12131 eax = eax << 4u; /* 0x36093132: shl eax, 4 */ 12132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12133 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12134 eax = eax + ecx; /* 0x36093135: add eax, ecx */ 12135 _flag_k = FK_ADD; 12136 MEM8(eax + 0xC) = (uint8_t)(1); /* 0x36093137: mov byte ptr [eax + 0xc], 1 */ 12137 ecx = MEM32(esi + 0x30); /* 0x3609313B: mov ecx, dword ptr [esi + 0x30] */ 12138 eax = MEM32(eax + 0x8); /* 0x3609313E: mov eax, dword ptr [eax + 8] */ 12139 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12140 ecx = ecx + 1; /* 0x36093141: inc ecx */ 12141 _flag_k = FK_INC; 12142 /* test eax, eax */ /* 0x36093142: test eax, eax */ 12143 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12144 _cf = 0; 12145 _flag_k = FK_TEST; 12146 MEM32(esi + 0x30) = ecx; /* 0x36093144: mov dword ptr [esi + 0x30], ecx */ 12147 if (TEST_NZ(_flag_a, _flag_b)) goto L_3609331C; /* 0x36093147: jne 0x3609331c */ 12148 L_3609314D: 12149 PUSH32(esp, 0x80u); /* 0x3609314D: push 0x80 */ 12150 RECOMP_ICALL(0x3615FD6Au); /* 0x36093152: call 0x3615fd6a */ /* not lifted */ 12151 RECOMP_FLAGS_IN(); 12152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12154 esp = esp + 4; /* 0x36093157: add esp, 4 */ 12155 _flag_k = FK_ADD; 12156 MEM32(ebp + (-0x14)) = eax; /* 0x3609315A: mov dword ptr [ebp - 0x14], eax */ 12157 /* test eax, eax */ /* 0x3609315D: test eax, eax */ 12158 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12159 _cf = 0; 12160 _flag_k = FK_TEST; 12161 MEM32(ebp + (-0x4)) = 0; /* 0x3609315F: mov dword ptr [ebp - 4], 0 */ 12162 if (TEST_Z(_flag_a, _flag_b)) goto L_36093178; /* 0x36093166: je 0x36093178 */ 12163 L_36093168: 12164 ecx = eax; /* 0x36093168: mov ecx, eax */ 12165 RECOMP_ICALL(0x3608E780u); /* 0x3609316A: call 0x3608e780 */ /* not lifted */ 12166 RECOMP_FLAGS_IN(); 12167 ebx = eax; /* 0x3609316F: mov ebx, eax */ 12168 goto L_3609317A; /* 0x36093171: jmp 0x3609317a */ 12169 L_36093173: 12170 _flag_a = (uint32_t)(MEM32(esi + 0x34)); _flag_b = (uint32_t)(1); 12171 MEM32(esi + 0x34) = MEM32(esi + 0x34) + 1; /* 0x36093173: inc dword ptr [esi + 0x34] */ 12172 _flag_k = FK_INC; 12173 RECOMP_BACKEDGE(); 12174 goto L_3609314D; /* 0x36093176: jmp 0x3609314d */ 12175 L_36093178: 12176 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12177 ebx = 0; /* 0x36093178: xor ebx, ebx */ 12178 _cf = 0; 12179 _flag_k = FK_TEST; 12180 L_3609317A: 12181 eax = MEM32(edi); /* 0x3609317A: mov eax, dword ptr [edi] */ 12182 edx = MEM32(ebx); /* 0x3609317C: mov edx, dword ptr [ebx] */ 12183 PUSH32(esp, eax); /* 0x3609317E: push eax */ 12184 PUSH32(esp, 0x2Bu); /* 0x3609317F: push 0x2b */ 12185 ecx = ebx; /* 0x36093181: mov ecx, ebx */ 12186 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x36093183: mov dword ptr [ebp - 4], 0xffffffff */ 12187 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609318A: call dword ptr [edx + 8] */ 12188 RECOMP_FLAGS_IN(); 12189 eax = MEM32(edi + 0x4); /* 0x3609318D: mov eax, dword ptr [edi + 4] */ 12190 edx = MEM32(ebx); /* 0x36093190: mov edx, dword ptr [ebx] */ 12191 PUSH32(esp, eax); /* 0x36093192: push eax */ 12192 PUSH32(esp, 0x2Cu); /* 0x36093193: push 0x2c */ 12193 ecx = ebx; /* 0x36093195: mov ecx, ebx */ 12194 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36093197: call dword ptr [edx + 8] */ 12195 RECOMP_FLAGS_IN(); 12196 edx = MEM32(ebx); /* 0x3609319A: mov edx, dword ptr [ebx] */ 12197 PUSH32(esp, 0x000F4254u); /* 0x3609319C: push 0xf4254 */ 12198 PUSH32(esp, 0x19u); /* 0x360931A1: push 0x19 */ 12199 ecx = ebx; /* 0x360931A3: mov ecx, ebx */ 12200 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360931A5: call dword ptr [edx + 8] */ 12201 RECOMP_FLAGS_IN(); 12202 ecx = MEM32(edi + 0x4); /* 0x360931A8: mov ecx, dword ptr [edi + 4] */ 12203 eax = MEM32(ebx); /* 0x360931AB: mov eax, dword ptr [ebx] */ 12204 PUSH32(esp, ecx); /* 0x360931AD: push ecx */ 12205 PUSH32(esp, 0x17u); /* 0x360931AE: push 0x17 */ 12206 ecx = ebx; /* 0x360931B0: mov ecx, ebx */ 12207 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x360931B2: call dword ptr [eax + 8] */ 12208 RECOMP_FLAGS_IN(); 12209 ecx = ebx; /* 0x360931B5: mov ecx, ebx */ 12210 RECOMP_ICALL(0x3608F430u); /* 0x360931B7: call 0x3608f430 */ /* not lifted */ 12211 RECOMP_FLAGS_IN(); 12212 /* test LO8(eax), LO8(eax) */ /* 0x360931BC: test al, al */ 12213 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12214 _cf = 0; 12215 _flag_k = FK_NARROW(FK_TEST, 24); 12216 if (TEST_NZ(_flag_a, _flag_b)) goto L_360931E1; /* 0x360931BE: jne 0x360931e1 */ 12217 L_360931C0: 12218 /* test ebx, ebx */ /* 0x360931C0: test ebx, ebx */ 12219 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12220 _cf = 0; 12221 _flag_k = FK_TEST; 12222 if (TEST_Z(_flag_a, _flag_b)) goto L_360931CC; /* 0x360931C2: je 0x360931cc */ 12223 L_360931C4: 12224 edx = MEM32(ebx); /* 0x360931C4: mov edx, dword ptr [ebx] */ 12225 PUSH32(esp, 1); /* 0x360931C6: push 1 */ 12226 ecx = ebx; /* 0x360931C8: mov ecx, ebx */ 12227 RECOMP_ICALL(MEM32(edx)); /* 0x360931CA: call dword ptr [edx] */ 12228 RECOMP_FLAGS_IN(); 12229 L_360931CC: 12230 edi = POP32_VAL(esp); /* 0x360931CC: pop edi */ 12231 esi = POP32_VAL(esp); /* 0x360931CD: pop esi */ 12232 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12233 eax = 0; /* 0x360931CE: xor eax, eax */ 12234 _cf = 0; 12235 _flag_k = FK_TEST; 12236 ebx = POP32_VAL(esp); /* 0x360931D0: pop ebx */ 12237 ecx = MEM32(ebp + (-0xC)); /* 0x360931D1: mov ecx, dword ptr [ebp - 0xc] */ 12238 MEM32(FS_BASE + (0)) = ecx; /* 0x360931D4: mov dword ptr fs:[0], ecx */ 12239 esp = ebp; /* 0x360931DB: mov esp, ebp */ 12240 ebp = POP32_VAL(esp); /* 0x360931DD: pop ebp */ 12241 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360931DE: ret 4 */ 12242 L_360931E1: 12243 eax = MEM32(ebp + (-0x10)); /* 0x360931E1: mov eax, dword ptr [ebp - 0x10] */ 12244 esi = MEM32(eax); /* 0x360931E4: mov esi, dword ptr [eax] */ 12245 eax = MEM32(esi + 0x2C); /* 0x360931E6: mov eax, dword ptr [esi + 0x2c] */ 12246 /* cmp eax, MEM32(esi + 0x28) */ /* 0x360931E9: cmp eax, dword ptr [esi + 0x28] */ 12247 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x28)); 12248 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12249 _flag_k = FK_CMP; 12250 if (CMP_AE(_flag_a, _flag_b)) goto L_36093237; /* 0x360931EC: jae 0x36093237 */ 12251 L_360931EE: 12252 PUSH32(esp, edi); /* 0x360931EE: push edi */ 12253 ecx = ebp + (-0x30); /* 0x360931EF: lea ecx, [ebp - 0x30] */ 12254 MEM32(esi + 0x24) = eax; /* 0x360931F2: mov dword ptr [esi + 0x24], eax */ 12255 RECOMP_ICALL(0x360056C0u); /* 0x360931F5: call 0x360056c0 */ /* not lifted */ 12256 RECOMP_FLAGS_IN(); 12257 edx = MEM32(esi + 0x8); /* 0x360931FA: mov edx, dword ptr [esi + 8] */ 12258 ecx = ebp + (-0x30); /* 0x360931FD: lea ecx, [ebp - 0x30] */ 12259 PUSH32(esp, ecx); /* 0x36093200: push ecx */ 12260 PUSH32(esp, edx); /* 0x36093201: push edx */ 12261 ecx = esi; /* 0x36093202: mov ecx, esi */ 12262 MEM32(ebp + (-0x28)) = ebx; /* 0x36093204: mov dword ptr [ebp - 0x28], ebx */ 12263 MEM8(ebp + (-0x24)) = (uint8_t)(1); /* 0x36093207: mov byte ptr [ebp - 0x24], 1 */ 12264 RECOMP_ICALL(0x36093AB0u); /* 0x3609320B: call 0x36093ab0 */ /* not lifted */ 12265 RECOMP_FLAGS_IN(); 12266 PUSH32(esp, edi); /* 0x36093210: push edi */ 12267 ecx = ebp + (-0x2C); /* 0x36093211: lea ecx, [ebp - 0x2c] */ 12268 RECOMP_ICALL(0x360056C0u); /* 0x36093214: call 0x360056c0 */ /* not lifted */ 12269 RECOMP_FLAGS_IN(); 12270 eax = MEM32(esi + 0x24); /* 0x36093219: mov eax, dword ptr [esi + 0x24] */ 12271 ecx = ebp + (-0x2C); /* 0x3609321C: lea ecx, [ebp - 0x2c] */ 12272 PUSH32(esp, ecx); /* 0x3609321F: push ecx */ 12273 edx = ebp + (-0x18); /* 0x36093220: lea edx, [ebp - 0x18] */ 12274 PUSH32(esp, edx); /* 0x36093223: push edx */ 12275 ecx = esi + 0x10; /* 0x36093224: lea ecx, [esi + 0x10] */ 12276 MEM32(ebp + (-0x24)) = eax; /* 0x36093227: mov dword ptr [ebp - 0x24], eax */ 12277 RECOMP_ICALL(0x36093CF0u); /* 0x3609322A: call 0x36093cf0 */ /* not lifted */ 12278 RECOMP_FLAGS_IN(); 12279 _flag_a = (uint32_t)(MEM32(esi + 0x2C)); _flag_b = (uint32_t)(1); 12280 MEM32(esi + 0x2C) = MEM32(esi + 0x2C) + 1; /* 0x3609322F: inc dword ptr [esi + 0x2c] */ 12281 _flag_k = FK_INC; 12282 goto L_36093317; /* 0x36093232: jmp 0x36093317 */ 12283 L_36093237: 12284 edx = MEM32(esi + 0x24); /* 0x36093237: mov edx, dword ptr [esi + 0x24] */ 12285 ecx = MEM32(esi + 0x28); /* 0x3609323A: mov ecx, dword ptr [esi + 0x28] */ 12286 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 12287 edx = edx + 1; /* 0x3609323D: inc edx */ 12288 _flag_k = FK_INC; 12289 eax = edx; /* 0x3609323E: mov eax, edx */ 12290 /* cmp eax, ecx */ /* 0x36093240: cmp eax, ecx */ 12291 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12292 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12293 _flag_k = FK_CMP; 12294 MEM32(esi + 0x24) = edx; /* 0x36093242: mov dword ptr [esi + 0x24], edx */ 12295 if (CMP_B(_flag_a, _flag_b)) goto L_3609324E; /* 0x36093245: jb 0x3609324e */ 12296 L_36093247: 12297 MEM32(esi + 0x24) = 0; /* 0x36093247: mov dword ptr [esi + 0x24], 0 */ 12298 L_3609324E: 12299 eax = MEM32(esi + 0x24); /* 0x3609324E: mov eax, dword ptr [esi + 0x24] */ 12300 ecx = MEM32(esi + 0x4); /* 0x36093251: mov ecx, dword ptr [esi + 4] */ 12301 if (4u) _cf = (((eax) >> 28) & 1u); /* 0x36093254: shl eax, 4 */ 12302 if (4u) { _flag_a = recomp_flags_pack((eax << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12303 eax = eax << 4u; /* 0x36093254: shl eax, 4 */ 12304 eax = eax + ecx + 0xC; /* 0x36093257: lea eax, [eax + ecx + 0xc] */ 12305 /* cmp MEM8(eax), 0 */ /* 0x3609325B: cmp byte ptr [eax], 0 */ 12306 _flag_a = (uint32_t)(MEM8(eax)) << 24; _flag_b = (uint32_t)(0) << 24; 12307 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12308 _flag_k = FK_NARROW(FK_CMP, 24); 12309 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093265; /* 0x3609325E: je 0x36093265 */ 12310 L_36093260: 12311 MEM8(eax) = (uint8_t)(0); /* 0x36093260: mov byte ptr [eax], 0 */ 12312 RECOMP_BACKEDGE(); 12313 goto L_36093237; /* 0x36093263: jmp 0x36093237 */ 12314 L_36093265: 12315 edi = MEM32(esi + 0x24); /* 0x36093265: mov edi, dword ptr [esi + 0x24] */ 12316 eax = MEM32(esi + 0x4); /* 0x36093268: mov eax, dword ptr [esi + 4] */ 12317 if (4u) _cf = (((edi) >> 28) & 1u); /* 0x3609326B: shl edi, 4 */ 12318 if (4u) { _flag_a = recomp_flags_pack((edi << 4u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 12319 edi = edi << 4u; /* 0x3609326B: shl edi, 4 */ 12320 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 12321 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12322 edi = edi + eax; /* 0x3609326E: add edi, eax */ 12323 _flag_k = FK_ADD; 12324 PUSH32(esp, edi); /* 0x36093270: push edi */ 12325 edx = ebp + (-0x28); /* 0x36093271: lea edx, [ebp - 0x28] */ 12326 ecx = esi + 0x10; /* 0x36093274: lea ecx, [esi + 0x10] */ 12327 PUSH32(esp, edx); /* 0x36093277: push edx */ 12328 RECOMP_ICALL(0x360946A0u); /* 0x36093278: call 0x360946a0 */ /* not lifted */ 12329 RECOMP_FLAGS_IN(); 12330 ecx = eax; /* 0x3609327D: mov ecx, eax */ 12331 eax = MEM32(ecx); /* 0x3609327F: mov eax, dword ptr [ecx] */ 12332 ecx = MEM32(ecx + 0x4); /* 0x36093281: mov ecx, dword ptr [ecx + 4] */ 12333 edx = ebp + (-0x10); /* 0x36093284: lea edx, [ebp - 0x10] */ 12334 PUSH32(esp, edx); /* 0x36093287: push edx */ 12335 PUSH32(esp, ecx); /* 0x36093288: push ecx */ 12336 PUSH32(esp, eax); /* 0x36093289: push eax */ 12337 MEM32(ebp + (-0x18)) = eax; /* 0x3609328A: mov dword ptr [ebp - 0x18], eax */ 12338 MEM32(ebp + (-0x14)) = ecx; /* 0x3609328D: mov dword ptr [ebp - 0x14], ecx */ 12339 MEM32(ebp + (-0x10)) = 0; /* 0x36093290: mov dword ptr [ebp - 0x10], 0 */ 12340 RECOMP_ICALL(0x36094900u); /* 0x36093297: call 0x36094900 */ /* not lifted */ 12341 RECOMP_FLAGS_IN(); 12342 eax = MEM32(ebp + (-0x14)); /* 0x3609329C: mov eax, dword ptr [ebp - 0x14] */ 12343 ecx = MEM32(ebp + (-0x18)); /* 0x3609329F: mov ecx, dword ptr [ebp - 0x18] */ 12344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 12345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12346 esp = esp + 0xCu; /* 0x360932A2: add esp, 0xc */ 12347 _flag_k = FK_ADD; 12348 PUSH32(esp, eax); /* 0x360932A5: push eax */ 12349 PUSH32(esp, ecx); /* 0x360932A6: push ecx */ 12350 edx = ebp + (-0x14); /* 0x360932A7: lea edx, [ebp - 0x14] */ 12351 PUSH32(esp, edx); /* 0x360932AA: push edx */ 12352 ecx = esi + 0x10; /* 0x360932AB: lea ecx, [esi + 0x10] */ 12353 RECOMP_ICALL(0x36093F50u); /* 0x360932AE: call 0x36093f50 */ /* not lifted */ 12354 RECOMP_FLAGS_IN(); 12355 ecx = MEM32(edi + 0x8); /* 0x360932B3: mov ecx, dword ptr [edi + 8] */ 12356 /* test ecx, ecx */ /* 0x360932B6: test ecx, ecx */ 12357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12358 _cf = 0; 12359 _flag_k = FK_TEST; 12360 if (TEST_Z(_flag_a, _flag_b)) goto L_360932C0; /* 0x360932B8: je 0x360932c0 */ 12361 L_360932BA: 12362 eax = MEM32(ecx); /* 0x360932BA: mov eax, dword ptr [ecx] */ 12363 PUSH32(esp, 1); /* 0x360932BC: push 1 */ 12364 RECOMP_ICALL(MEM32(eax)); /* 0x360932BE: call dword ptr [eax] */ 12365 RECOMP_FLAGS_IN(); 12366 L_360932C0: 12367 eax = MEM32(ebp + 0x8); /* 0x360932C0: mov eax, dword ptr [ebp + 8] */ 12368 ecx = MEM32(eax); /* 0x360932C3: mov ecx, dword ptr [eax] */ 12369 MEM32(edi) = ecx; /* 0x360932C5: mov dword ptr [edi], ecx */ 12370 edx = MEM32(eax + 0x4); /* 0x360932C7: mov edx, dword ptr [eax + 4] */ 12371 ecx = ebp + (-0x44); /* 0x360932CA: lea ecx, [ebp - 0x44] */ 12372 /* cmp ecx, eax */ /* 0x360932CD: cmp ecx, eax */ 12373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 12374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12375 _flag_k = FK_CMP; 12376 MEM32(edi + 0x4) = edx; /* 0x360932CF: mov dword ptr [edi + 4], edx */ 12377 MEM32(edi + 0x8) = ebx; /* 0x360932D2: mov dword ptr [edi + 8], ebx */ 12378 MEM8(edi + 0xC) = (uint8_t)(1); /* 0x360932D5: mov byte ptr [edi + 0xc], 1 */ 12379 if (CMP_EQ(_flag_a, _flag_b)) goto L_360932E6; /* 0x360932D9: je 0x360932e6 */ 12380 L_360932DB: 12381 edx = MEM32(eax); /* 0x360932DB: mov edx, dword ptr [eax] */ 12382 eax = MEM32(eax + 0x4); /* 0x360932DD: mov eax, dword ptr [eax + 4] */ 12383 MEM32(ebp + (-0x44)) = edx; /* 0x360932E0: mov dword ptr [ebp - 0x44], edx */ 12384 MEM32(ebp + (-0x40)) = eax; /* 0x360932E3: mov dword ptr [ebp - 0x40], eax */ 12385 L_360932E6: 12386 ecx = MEM32(esi + 0x24); /* 0x360932E6: mov ecx, dword ptr [esi + 0x24] */ 12387 edx = ebp + (-0x44); /* 0x360932E9: lea edx, [ebp - 0x44] */ 12388 PUSH32(esp, edx); /* 0x360932EC: push edx */ 12389 eax = ebp + (-0x28); /* 0x360932ED: lea eax, [ebp - 0x28] */ 12390 MEM32(ebp + (-0x3C)) = ecx; /* 0x360932F0: mov dword ptr [ebp - 0x3c], ecx */ 12391 PUSH32(esp, eax); /* 0x360932F3: push eax */ 12392 ecx = esi + 0x10; /* 0x360932F4: lea ecx, [esi + 0x10] */ 12393 RECOMP_ICALL(0x36093CF0u); /* 0x360932F7: call 0x36093cf0 */ /* not lifted */ 12394 RECOMP_FLAGS_IN(); 12395 ecx = MEM32(eax); /* 0x360932FC: mov ecx, dword ptr [eax] */ 12396 MEM32(ebp + (-0x20)) = ecx; /* 0x360932FE: mov dword ptr [ebp - 0x20], ecx */ 12397 edx = MEM32(eax + 0x4); /* 0x36093301: mov edx, dword ptr [eax + 4] */ 12398 eax = ebp + (-0x1C); /* 0x36093304: lea eax, [ebp - 0x1c] */ 12399 PUSH32(esp, eax); /* 0x36093307: push eax */ 12400 ecx = ebp + (-0x20); /* 0x36093308: lea ecx, [ebp - 0x20] */ 12401 PUSH32(esp, ecx); /* 0x3609330B: push ecx */ 12402 ecx = ebp + (-0x38); /* 0x3609330C: lea ecx, [ebp - 0x38] */ 12403 MEM32(ebp + (-0x1C)) = edx; /* 0x3609330F: mov dword ptr [ebp - 0x1c], edx */ 12404 RECOMP_ICALL(0x3614FCB0u); /* 0x36093312: call 0x3614fcb0 */ /* not lifted */ 12405 RECOMP_FLAGS_IN(); 12406 L_36093317: 12407 _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1); 12408 MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x36093317: inc dword ptr [esi + 0x38] */ 12409 _flag_k = FK_INC; 12410 eax = ebx; /* 0x3609331A: mov eax, ebx */ 12411 L_3609331C: 12412 ecx = MEM32(ebp + (-0xC)); /* 0x3609331C: mov ecx, dword ptr [ebp - 0xc] */ 12413 edi = POP32_VAL(esp); /* 0x3609331F: pop edi */ 12414 esi = POP32_VAL(esp); /* 0x36093320: pop esi */ 12415 ebx = POP32_VAL(esp); /* 0x36093321: pop ebx */ 12416 MEM32(FS_BASE + (0)) = ecx; /* 0x36093322: mov dword ptr fs:[0], ecx */ 12417 esp = ebp; /* 0x36093329: mov esp, ebp */ 12418 ebp = POP32_VAL(esp); /* 0x3609332B: pop ebp */ 12419 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609332C: ret 4 */ 12420 RECOMP_REGS_OUT(); 12421 } 12422 12423 void sub_36093317(void) { 12424 int _fpu_cmp = 0; 12425 uint32_t _cf = 0; 12426 int _df = 1; 12427 uint32_t _flag_k = FK_NONE; 12428 uint32_t _flag_a = 0, _flag_b = 0; 12429 uint32_t _itail_tgt = 0; 12430 RECOMP_REGS_LOCALS 12431 RECOMP_ENTER(0x36093317u); 12432 12433 L_36093317: 12434 _flag_a = (uint32_t)(MEM32(esi + 0x38)); _flag_b = (uint32_t)(1); 12435 MEM32(esi + 0x38) = MEM32(esi + 0x38) + 1; /* 0x36093317: inc dword ptr [esi + 0x38] */ 12436 _flag_k = FK_INC; 12437 eax = ebx; /* 0x3609331A: mov eax, ebx */ 12438 ecx = MEM32(ebp + (-0xC)); /* 0x3609331C: mov ecx, dword ptr [ebp - 0xc] */ 12439 edi = POP32_VAL(esp); /* 0x3609331F: pop edi */ 12440 esi = POP32_VAL(esp); /* 0x36093320: pop esi */ 12441 ebx = POP32_VAL(esp); /* 0x36093321: pop ebx */ 12442 MEM32(FS_BASE + (0)) = ecx; /* 0x36093322: mov dword ptr fs:[0], ecx */ 12443 esp = ebp; /* 0x36093329: mov esp, ebp */ 12444 ebp = POP32_VAL(esp); /* 0x3609332B: pop ebp */ 12445 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609332C: ret 4 */ 12446 RECOMP_REGS_OUT(); 12447 } 12448 12449 void sub_3609331C(void) { 12450 int _fpu_cmp = 0; 12451 uint32_t _cf = 0; 12452 int _df = 1; 12453 uint32_t _flag_k = FK_NONE; 12454 uint32_t _flag_a = 0, _flag_b = 0; 12455 uint32_t _itail_tgt = 0; 12456 RECOMP_REGS_LOCALS 12457 RECOMP_ENTER(0x3609331Cu); 12458 12459 L_3609331C: 12460 ecx = MEM32(ebp + (-0xC)); /* 0x3609331C: mov ecx, dword ptr [ebp - 0xc] */ 12461 edi = POP32_VAL(esp); /* 0x3609331F: pop edi */ 12462 esi = POP32_VAL(esp); /* 0x36093320: pop esi */ 12463 ebx = POP32_VAL(esp); /* 0x36093321: pop ebx */ 12464 MEM32(FS_BASE + (0)) = ecx; /* 0x36093322: mov dword ptr fs:[0], ecx */ 12465 esp = ebp; /* 0x36093329: mov esp, ebp */ 12466 ebp = POP32_VAL(esp); /* 0x3609332B: pop ebp */ 12467 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609332C: ret 4 */ 12468 RECOMP_REGS_OUT(); 12469 } 12470 12471 void sub_36093330(void) { 12472 int _fpu_cmp = 0; 12473 uint32_t _cf = 0; 12474 int _df = 1; 12475 uint32_t _flag_k = FK_NONE; 12476 uint32_t _flag_a = 0, _flag_b = 0; 12477 uint32_t _itail_tgt = 0; 12478 RECOMP_REGS_LOCALS 12479 RECOMP_ENTER(0x36093330u); 12480 12481 L_36093330: 12482 PUSH32(esp, ebp); /* 0x36093330: push ebp */ 12483 ebp = esp; /* 0x36093331: mov ebp, esp */ 12484 PUSH32(esp, 0xFFFFFFFFu); /* 0x36093333: push -1 */ 12485 PUSH32(esp, 0x361663CBu); /* 0x36093335: push 0x361663cb */ 12486 eax = MEM32(FS_BASE + (0)); /* 0x3609333A: mov eax, dword ptr fs:[0] */ 12487 PUSH32(esp, eax); /* 0x36093340: push eax */ 12488 MEM32(FS_BASE + (0)) = esp; /* 0x36093341: mov dword ptr fs:[0], esp */ 12489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x54u); 12490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12491 esp = esp - 0x54u; /* 0x36093348: sub esp, 0x54 */ 12492 _flag_k = FK_CMP; 12493 PUSH32(esp, ebx); /* 0x3609334B: push ebx */ 12494 PUSH32(esp, esi); /* 0x3609334C: push esi */ 12495 esi = MEM32(ebp + 0x8); /* 0x3609334D: mov esi, dword ptr [ebp + 8] */ 12496 PUSH32(esp, edi); /* 0x36093350: push edi */ 12497 edi = ecx; /* 0x36093351: mov edi, ecx */ 12498 ecx = MEM32(edi + 0x4); /* 0x36093353: mov ecx, dword ptr [edi + 4] */ 12499 eax = MEM32(ecx + 0x4); /* 0x36093356: mov eax, dword ptr [ecx + 4] */ 12500 eax = MEM32(eax); /* 0x36093359: mov eax, dword ptr [eax] */ 12501 MEM32(ebp + (-0x14)) = eax; /* 0x3609335B: mov dword ptr [ebp - 0x14], eax */ 12502 /* cmp eax, MEM32(ecx + 0x4) */ /* 0x3609335E: cmp eax, dword ptr [ecx + 4] */ 12503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 12504 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12505 _flag_k = FK_CMP; 12506 MEM32(ebp + (-0x10)) = edi; /* 0x36093361: mov dword ptr [ebp - 0x10], edi */ 12507 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609339B; /* 0x36093364: je 0x3609339b */ 12508 L_36093366: 12509 ecx = MEM32(esi); /* 0x36093366: mov ecx, dword ptr [esi] */ 12510 edx = MEM32(eax + 0x20); /* 0x36093368: mov edx, dword ptr [eax + 0x20] */ 12511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x10u); 12512 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12513 eax = eax + 0x10u; /* 0x3609336B: add eax, 0x10 */ 12514 _flag_k = FK_ADD; 12515 /* cmp edx, ecx */ /* 0x3609336E: cmp edx, ecx */ 12516 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 12517 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12518 _flag_k = FK_CMP; 12519 if (CMP_NE(_flag_a, _flag_b)) goto L_36093386; /* 0x36093370: jne 0x36093386 */ 12520 L_36093372: 12521 ecx = MEM32(eax + 0x8); /* 0x36093372: mov ecx, dword ptr [eax + 8] */ 12522 /* cmp ecx, MEM32(esi + 0x4) */ /* 0x36093375: cmp ecx, dword ptr [esi + 4] */ 12523 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0x4)); 12524 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12525 _flag_k = FK_CMP; 12526 if (CMP_NE(_flag_a, _flag_b)) goto L_36093386; /* 0x36093378: jne 0x36093386 */ 12527 L_3609337A: 12528 edx = MEM32(eax + 0xC); /* 0x3609337A: mov edx, dword ptr [eax + 0xc] */ 12529 /* cmp edx, MEM32(esi + 0x8) */ /* 0x3609337D: cmp edx, dword ptr [esi + 8] */ 12530 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 12531 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12532 _flag_k = FK_CMP; 12533 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093458; /* 0x36093380: je 0x36093458 */ 12534 L_36093386: 12535 ecx = ebp + (-0x14); /* 0x36093386: lea ecx, [ebp - 0x14] */ 12536 RECOMP_ICALL(0x36093A60u); /* 0x36093389: call 0x36093a60 */ /* not lifted */ 12537 RECOMP_FLAGS_IN(); 12538 eax = MEM32(edi + 0x4); /* 0x3609338E: mov eax, dword ptr [edi + 4] */ 12539 ecx = MEM32(eax + 0x4); /* 0x36093391: mov ecx, dword ptr [eax + 4] */ 12540 eax = MEM32(ebp + (-0x14)); /* 0x36093394: mov eax, dword ptr [ebp - 0x14] */ 12541 /* cmp eax, ecx */ /* 0x36093397: cmp eax, ecx */ 12542 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12544 _flag_k = FK_CMP; 12545 RECOMP_BACKEDGE(); 12546 if (CMP_NE(_flag_a, _flag_b)) goto L_36093366; /* 0x36093399: jne 0x36093366 */ 12547 L_3609339B: 12548 PUSH32(esp, 0x80u); /* 0x3609339B: push 0x80 */ 12549 RECOMP_ICALL(0x3615FD6Au); /* 0x360933A0: call 0x3615fd6a */ /* not lifted */ 12550 RECOMP_FLAGS_IN(); 12551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 12552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 12553 esp = esp + 4; /* 0x360933A5: add esp, 4 */ 12554 _flag_k = FK_ADD; 12555 MEM32(ebp + 0x8) = eax; /* 0x360933A8: mov dword ptr [ebp + 8], eax */ 12556 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12557 ebx = 0; /* 0x360933AB: xor ebx, ebx */ 12558 _cf = 0; 12559 _flag_k = FK_TEST; 12560 /* cmp eax, ebx */ /* 0x360933AD: cmp eax, ebx */ 12561 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 12562 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12563 _flag_k = FK_CMP; 12564 MEM32(ebp + (-0x4)) = ebx; /* 0x360933AF: mov dword ptr [ebp - 4], ebx */ 12565 if (CMP_EQ(_flag_a, _flag_b)) goto L_360933BD; /* 0x360933B2: je 0x360933bd */ 12566 L_360933B4: 12567 ecx = eax; /* 0x360933B4: mov ecx, eax */ 12568 RECOMP_ICALL(0x3608E780u); /* 0x360933B6: call 0x3608e780 */ /* not lifted */ 12569 RECOMP_FLAGS_IN(); 12570 ebx = eax; /* 0x360933BB: mov ebx, eax */ 12571 L_360933BD: 12572 eax = MEM32(esi + 0x4); /* 0x360933BD: mov eax, dword ptr [esi + 4] */ 12573 MEM32(ebp + (-0x28)) = eax; /* 0x360933C0: mov dword ptr [ebp - 0x28], eax */ 12574 eax = MEM32(esi + 0x8); /* 0x360933C3: mov eax, dword ptr [esi + 8] */ 12575 ecx = 0x000F4254u; /* 0x360933C6: mov ecx, 0xf4254 */ 12576 MEM32(ebp + (-0x30)) = eax; /* 0x360933CB: mov dword ptr [ebp - 0x30], eax */ 12577 eax = ebp + (-0x2C); /* 0x360933CE: lea eax, [ebp - 0x2c] */ 12578 MEM32(ebp + (-0x2C)) = ecx; /* 0x360933D1: mov dword ptr [ebp - 0x2c], ecx */ 12579 MEM32(ebp + (-0x34)) = ecx; /* 0x360933D4: mov dword ptr [ebp - 0x34], ecx */ 12580 PUSH32(esp, eax); /* 0x360933D7: push eax */ 12581 ecx = edi; /* 0x360933D8: mov ecx, edi */ 12582 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x360933DA: mov dword ptr [ebp - 4], 0xffffffff */ 12583 RECOMP_ICALL(0x360930F0u); /* 0x360933E1: call 0x360930f0 */ /* not lifted */ 12584 RECOMP_FLAGS_IN(); 12585 ecx = ebp + (-0x34); /* 0x360933E6: lea ecx, [ebp - 0x34] */ 12586 PUSH32(esp, ecx); /* 0x360933E9: push ecx */ 12587 ecx = MEM32(ebp + (-0x10)); /* 0x360933EA: mov ecx, dword ptr [ebp - 0x10] */ 12588 edi = eax; /* 0x360933ED: mov edi, eax */ 12589 RECOMP_ICALL(0x360930F0u); /* 0x360933EF: call 0x360930f0 */ /* not lifted */ 12590 RECOMP_FLAGS_IN(); 12591 /* test edi, edi */ /* 0x360933F4: test edi, edi */ 12592 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 12593 _cf = 0; 12594 _flag_k = FK_TEST; 12595 MEM32(ebp + (-0x18)) = eax; /* 0x360933F6: mov dword ptr [ebp - 0x18], eax */ 12596 if (TEST_Z(_flag_a, _flag_b)) goto L_36093597; /* 0x360933F9: je 0x36093597 */ 12597 L_360933FF: 12598 /* test eax, eax */ /* 0x360933FF: test eax, eax */ 12599 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 12600 _cf = 0; 12601 _flag_k = FK_TEST; 12602 if (TEST_Z(_flag_a, _flag_b)) goto L_36093597; /* 0x36093401: je 0x36093597 */ 12603 L_36093407: 12604 edx = MEM32(ebx); /* 0x36093407: mov edx, dword ptr [ebx] */ 12605 PUSH32(esp, 0x000F4254u); /* 0x36093409: push 0xf4254 */ 12606 PUSH32(esp, 0x19u); /* 0x3609340E: push 0x19 */ 12607 ecx = ebx; /* 0x36093410: mov ecx, ebx */ 12608 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x36093412: call dword ptr [edx + 8] */ 12609 RECOMP_FLAGS_IN(); 12610 ecx = MEM32(ebp + (-0x18)); /* 0x36093415: mov ecx, dword ptr [ebp - 0x18] */ 12611 eax = MEM32(esi); /* 0x36093418: mov eax, dword ptr [esi] */ 12612 edx = MEM32(ecx); /* 0x3609341A: mov edx, dword ptr [ecx] */ 12613 PUSH32(esp, 2); /* 0x3609341C: push 2 */ 12614 PUSH32(esp, 0x36u); /* 0x3609341E: push 0x36 */ 12615 MEM32(ebp + 0x8) = eax; /* 0x36093420: mov dword ptr [ebp + 8], eax */ 12616 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x36093423: call dword ptr [edx + 4] */ 12617 RECOMP_FLAGS_IN(); 12618 ecx = MEM32(ebp + 0x8); /* 0x36093426: mov ecx, dword ptr [ebp + 8] */ 12619 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 12620 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12621 ecx = ecx - eax; /* 0x36093429: sub ecx, eax */ 12622 _flag_k = FK_CMP; 12623 eax = ecx; /* 0x3609342B: mov eax, ecx */ 12624 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3609342D: cdq */ 12625 _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx)); 12626 eax = eax ^ edx; /* 0x3609342E: xor eax, edx */ 12627 _cf = 0; 12628 _flag_k = FK_TEST; 12629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12631 eax = eax - edx; /* 0x36093430: sub eax, edx */ 12632 _flag_k = FK_CMP; 12633 edx = MEM32(edi); /* 0x36093432: mov edx, dword ptr [edi] */ 12634 PUSH32(esp, 2); /* 0x36093434: push 2 */ 12635 PUSH32(esp, 0x36u); /* 0x36093436: push 0x36 */ 12636 ecx = edi; /* 0x36093438: mov ecx, edi */ 12637 MEM32(ebp + (-0x18)) = eax; /* 0x3609343A: mov dword ptr [ebp - 0x18], eax */ 12638 RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x3609343D: call dword ptr [edx + 4] */ 12639 RECOMP_FLAGS_IN(); 12640 ecx = MEM32(ebp + 0x8); /* 0x36093440: mov ecx, dword ptr [ebp + 8] */ 12641 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 12642 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12643 ecx = ecx - eax; /* 0x36093443: sub ecx, eax */ 12644 _flag_k = FK_CMP; 12645 eax = ecx; /* 0x36093445: mov eax, ecx */ 12646 ecx = MEM32(ebp + (-0x18)); /* 0x36093447: mov ecx, dword ptr [ebp - 0x18] */ 12647 edx = ((int32_t)eax < 0) ? 0xFFFFFFFFu : 0; /* 0x3609344A: cdq */ 12648 _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx)); 12649 eax = eax ^ edx; /* 0x3609344B: xor eax, edx */ 12650 _cf = 0; 12651 _flag_k = FK_TEST; 12652 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 12653 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12654 eax = eax - edx; /* 0x3609344D: sub eax, edx */ 12655 _flag_k = FK_CMP; 12656 /* cmp eax, ecx */ /* 0x3609344F: cmp eax, ecx */ 12657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12658 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12659 _flag_k = FK_CMP; 12660 if (CMP_L(_flag_a, _flag_b)) goto L_36093474; /* 0x36093451: jl 0x36093474 */ 12661 L_36093453: 12662 eax = MEM32(esi + 0x8); /* 0x36093453: mov eax, dword ptr [esi + 8] */ 12663 goto L_36093477; /* 0x36093456: jmp 0x36093477 */ 12664 L_36093458: 12665 ecx = MEM32(eax + 0x4); /* 0x36093458: mov ecx, dword ptr [eax + 4] */ 12666 edi = POP32_VAL(esp); /* 0x3609345B: pop edi */ 12667 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12668 ecx = ecx + 1; /* 0x3609345C: inc ecx */ 12669 _flag_k = FK_INC; 12670 esi = POP32_VAL(esp); /* 0x3609345D: pop esi */ 12671 MEM32(eax + 0x4) = ecx; /* 0x3609345E: mov dword ptr [eax + 4], ecx */ 12672 eax = MEM32(eax); /* 0x36093461: mov eax, dword ptr [eax] */ 12673 ebx = POP32_VAL(esp); /* 0x36093463: pop ebx */ 12674 ecx = MEM32(ebp + (-0xC)); /* 0x36093464: mov ecx, dword ptr [ebp - 0xc] */ 12675 MEM32(FS_BASE + (0)) = ecx; /* 0x36093467: mov dword ptr fs:[0], ecx */ 12676 esp = ebp; /* 0x3609346E: mov esp, ebp */ 12677 ebp = POP32_VAL(esp); /* 0x36093470: pop ebp */ 12678 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36093471: ret 4 */ 12679 L_36093474: 12680 eax = MEM32(esi + 0x4); /* 0x36093474: mov eax, dword ptr [esi + 4] */ 12681 L_36093477: 12682 edx = MEM32(ebx); /* 0x36093477: mov edx, dword ptr [ebx] */ 12683 PUSH32(esp, eax); /* 0x36093479: push eax */ 12684 PUSH32(esp, 0x17u); /* 0x3609347A: push 0x17 */ 12685 ecx = ebx; /* 0x3609347C: mov ecx, ebx */ 12686 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609347E: call dword ptr [edx + 8] */ 12687 RECOMP_FLAGS_IN(); 12688 ecx = ebx; /* 0x36093481: mov ecx, ebx */ 12689 RECOMP_ICALL(0x3608F430u); /* 0x36093483: call 0x3608f430 */ /* not lifted */ 12690 RECOMP_FLAGS_IN(); 12691 /* test LO8(eax), LO8(eax) */ /* 0x36093488: test al, al */ 12692 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 12693 _cf = 0; 12694 _flag_k = FK_NARROW(FK_TEST, 24); 12695 if (TEST_NZ(_flag_a, _flag_b)) goto L_36093499; /* 0x3609348A: jne 0x36093499 */ 12696 L_3609348C: 12697 /* test ebx, ebx */ /* 0x3609348C: test ebx, ebx */ 12698 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12699 _cf = 0; 12700 _flag_k = FK_TEST; 12701 if (TEST_Z(_flag_a, _flag_b)) goto L_360935A3; /* 0x3609348E: je 0x360935a3 */ 12702 L_36093494: 12703 goto L_3609359B; /* 0x36093494: jmp 0x3609359b */ 12704 L_36093499: 12705 eax = MEM32(esi + 0x4); /* 0x36093499: mov eax, dword ptr [esi + 4] */ 12706 edx = MEM32(ebx); /* 0x3609349C: mov edx, dword ptr [ebx] */ 12707 PUSH32(esp, eax); /* 0x3609349E: push eax */ 12708 PUSH32(esp, 0x2BEu); /* 0x3609349F: push 0x2be */ 12709 ecx = ebx; /* 0x360934A4: mov ecx, ebx */ 12710 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360934A6: call dword ptr [edx + 8] */ 12711 RECOMP_FLAGS_IN(); 12712 eax = MEM32(esi + 0x8); /* 0x360934A9: mov eax, dword ptr [esi + 8] */ 12713 edx = MEM32(ebx); /* 0x360934AC: mov edx, dword ptr [ebx] */ 12714 PUSH32(esp, eax); /* 0x360934AE: push eax */ 12715 PUSH32(esp, 0x2BFu); /* 0x360934AF: push 0x2bf */ 12716 ecx = ebx; /* 0x360934B4: mov ecx, ebx */ 12717 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360934B6: call dword ptr [edx + 8] */ 12718 RECOMP_FLAGS_IN(); 12719 eax = MEM32(esi); /* 0x360934B9: mov eax, dword ptr [esi] */ 12720 edx = MEM32(ebx); /* 0x360934BB: mov edx, dword ptr [ebx] */ 12721 PUSH32(esp, eax); /* 0x360934BD: push eax */ 12722 PUSH32(esp, 0x2BDu); /* 0x360934BE: push 0x2bd */ 12723 ecx = ebx; /* 0x360934C3: mov ecx, ebx */ 12724 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x360934C5: call dword ptr [edx + 8] */ 12725 RECOMP_FLAGS_IN(); 12726 PUSH32(esp, ebx); /* 0x360934C8: push ebx */ 12727 RECOMP_ICALL(0x360F0E90u); /* 0x360934C9: call 0x360f0e90 */ /* not lifted */ 12728 RECOMP_FLAGS_IN(); 12729 ecx = eax; /* 0x360934CE: mov ecx, eax */ 12730 RECOMP_ICALL(0x360F1200u); /* 0x360934D0: call 0x360f1200 */ /* not lifted */ 12731 RECOMP_FLAGS_IN(); 12732 eax = MEM32(ebp + (-0x10)); /* 0x360934D5: mov eax, dword ptr [ebp - 0x10] */ 12733 edi = eax + 0x8; /* 0x360934D8: lea edi, [eax + 8] */ 12734 L_360934DB: 12735 ecx = MEM32(ebp + (-0x10)); /* 0x360934DB: mov ecx, dword ptr [ebp - 0x10] */ 12736 ecx = MEM32(ecx + 0x4); /* 0x360934DE: mov ecx, dword ptr [ecx + 4] */ 12737 PUSH32(esp, edi); /* 0x360934E1: push edi */ 12738 edx = ebp + (-0x20); /* 0x360934E2: lea edx, [ebp - 0x20] */ 12739 PUSH32(esp, edx); /* 0x360934E5: push edx */ 12740 MEM32(ebp + 0x8) = ecx; /* 0x360934E6: mov dword ptr [ebp + 8], ecx */ 12741 RECOMP_ICALL(0x360943D0u); /* 0x360934E9: call 0x360943d0 */ /* not lifted */ 12742 RECOMP_FLAGS_IN(); 12743 ecx = MEM32(ebp + 0x8); /* 0x360934EE: mov ecx, dword ptr [ebp + 8] */ 12744 eax = MEM32(eax); /* 0x360934F1: mov eax, dword ptr [eax] */ 12745 ecx = MEM32(ecx + 0x4); /* 0x360934F3: mov ecx, dword ptr [ecx + 4] */ 12746 /* cmp eax, ecx */ /* 0x360934F6: cmp eax, ecx */ 12747 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 12748 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12749 _flag_k = FK_CMP; 12750 MEM32(ebp + (-0x18)) = eax; /* 0x360934F8: mov dword ptr [ebp - 0x18], eax */ 12751 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093509; /* 0x360934FB: je 0x36093509 */ 12752 L_360934FD: 12753 edx = MEM32(edi); /* 0x360934FD: mov edx, dword ptr [edi] */ 12754 /* cmp edx, MEM32(eax + 0xC) */ /* 0x360934FF: cmp edx, dword ptr [eax + 0xc] */ 12755 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 12756 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12757 _flag_k = FK_CMP; 12758 if (CMP_B(_flag_a, _flag_b)) goto L_36093509; /* 0x36093502: jb 0x36093509 */ 12759 L_36093504: 12760 eax = ebp + (-0x18); /* 0x36093504: lea eax, [ebp - 0x18] */ 12761 goto L_3609350F; /* 0x36093507: jmp 0x3609350f */ 12762 L_36093509: 12763 MEM32(ebp + (-0x1C)) = ecx; /* 0x36093509: mov dword ptr [ebp - 0x1c], ecx */ 12764 eax = ebp + (-0x1C); /* 0x3609350C: lea eax, [ebp - 0x1c] */ 12765 L_3609350F: 12766 ecx = MEM32(ebp + (-0x10)); /* 0x3609350F: mov ecx, dword ptr [ebp - 0x10] */ 12767 ecx = MEM32(ecx + 0x4); /* 0x36093512: mov ecx, dword ptr [ecx + 4] */ 12768 eax = MEM32(eax); /* 0x36093515: mov eax, dword ptr [eax] */ 12769 /* cmp MEM32(ecx + 0x4), eax */ /* 0x36093517: cmp dword ptr [ecx + 4], eax */ 12770 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax); 12771 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12772 _flag_k = FK_CMP; 12773 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093520; /* 0x3609351A: je 0x36093520 */ 12774 L_3609351C: 12775 _flag_a = (uint32_t)(MEM32(edi)); _flag_b = (uint32_t)(1); 12776 MEM32(edi) = MEM32(edi) + 1; /* 0x3609351C: inc dword ptr [edi] */ 12777 _flag_k = FK_INC; 12778 RECOMP_BACKEDGE(); 12779 goto L_360934DB; /* 0x3609351E: jmp 0x360934db */ 12780 L_36093520: 12781 edx = MEM32(ebx); /* 0x36093520: mov edx, dword ptr [ebx] */ 12782 PUSH32(esp, 0xC788u); /* 0x36093522: push 0xc788 */ 12783 PUSH32(esp, 0x2Bu); /* 0x36093527: push 0x2b */ 12784 ecx = ebx; /* 0x36093529: mov ecx, ebx */ 12785 RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x3609352B: call dword ptr [edx + 8] */ 12786 RECOMP_FLAGS_IN(); 12787 ecx = MEM32(edi); /* 0x3609352E: mov ecx, dword ptr [edi] */ 12788 eax = MEM32(ebx); /* 0x36093530: mov eax, dword ptr [ebx] */ 12789 PUSH32(esp, ecx); /* 0x36093532: push ecx */ 12790 PUSH32(esp, 0x2Cu); /* 0x36093533: push 0x2c */ 12791 ecx = ebx; /* 0x36093535: mov ecx, ebx */ 12792 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x36093537: call dword ptr [eax + 8] */ 12793 RECOMP_FLAGS_IN(); 12794 eax = MEM32(esi); /* 0x3609353A: mov eax, dword ptr [esi] */ 12795 ecx = MEM32(esi + 0x8); /* 0x3609353C: mov ecx, dword ptr [esi + 8] */ 12796 esi = MEM32(esi + 0x4); /* 0x3609353F: mov esi, dword ptr [esi + 4] */ 12797 edx = 1; /* 0x36093542: mov edx, 1 */ 12798 MEM32(ebp + (-0x48)) = ebx; /* 0x36093547: mov dword ptr [ebp - 0x48], ebx */ 12799 MEM32(ebp + (-0x44)) = edx; /* 0x3609354A: mov dword ptr [ebp - 0x44], edx */ 12800 MEM32(ebp + (-0x40)) = esi; /* 0x3609354D: mov dword ptr [ebp - 0x40], esi */ 12801 MEM32(ebp + (-0x3C)) = ecx; /* 0x36093550: mov dword ptr [ebp - 0x3c], ecx */ 12802 MEM32(ebp + (-0x38)) = eax; /* 0x36093553: mov dword ptr [ebp - 0x38], eax */ 12803 MEM32(ebp + (-0x4)) = edx; /* 0x36093556: mov dword ptr [ebp - 4], edx */ 12804 edx = MEM32(edi); /* 0x36093559: mov edx, dword ptr [edi] */ 12805 ecx = 5; /* 0x3609355B: mov ecx, 5 */ 12806 esi = ebp + (-0x48); /* 0x36093560: lea esi, [ebp - 0x48] */ 12807 edi = ebp + (-0x5C); /* 0x36093563: lea edi, [ebp - 0x5c] */ 12808 MEM32(ebp + (-0x60)) = edx; /* 0x36093566: mov dword ptr [ebp - 0x60], edx */ 12809 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x36093569: 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; } 12810 edx = MEM32(ebp + (-0x10)); /* 0x3609356B: mov edx, dword ptr [ebp - 0x10] */ 12811 eax = ebp + (-0x60); /* 0x3609356E: lea eax, [ebp - 0x60] */ 12812 PUSH32(esp, eax); /* 0x36093571: push eax */ 12813 ecx = ebp + (-0x24); /* 0x36093572: lea ecx, [ebp - 0x24] */ 12814 PUSH32(esp, ecx); /* 0x36093575: push ecx */ 12815 ecx = MEM32(edx + 0x4); /* 0x36093576: mov ecx, dword ptr [edx + 4] */ 12816 MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x36093579: mov byte ptr [ebp - 4], 2 */ 12817 RECOMP_ICALL(0x36093810u); /* 0x3609357D: call 0x36093810 */ /* not lifted */ 12818 RECOMP_FLAGS_IN(); 12819 edi = POP32_VAL(esp); /* 0x36093582: pop edi */ 12820 esi = POP32_VAL(esp); /* 0x36093583: pop esi */ 12821 eax = ebx; /* 0x36093584: mov eax, ebx */ 12822 ebx = POP32_VAL(esp); /* 0x36093586: pop ebx */ 12823 ecx = MEM32(ebp + (-0xC)); /* 0x36093587: mov ecx, dword ptr [ebp - 0xc] */ 12824 MEM32(FS_BASE + (0)) = ecx; /* 0x3609358A: mov dword ptr fs:[0], ecx */ 12825 esp = ebp; /* 0x36093591: mov esp, ebp */ 12826 ebp = POP32_VAL(esp); /* 0x36093593: pop ebp */ 12827 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36093594: ret 4 */ 12828 L_36093597: 12829 /* test ebx, ebx */ /* 0x36093597: test ebx, ebx */ 12830 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 12831 _cf = 0; 12832 _flag_k = FK_TEST; 12833 if (TEST_Z(_flag_a, _flag_b)) goto L_360935A3; /* 0x36093599: je 0x360935a3 */ 12834 L_3609359B: 12835 eax = MEM32(ebx); /* 0x3609359B: mov eax, dword ptr [ebx] */ 12836 PUSH32(esp, 1); /* 0x3609359D: push 1 */ 12837 ecx = ebx; /* 0x3609359F: mov ecx, ebx */ 12838 RECOMP_ICALL(MEM32(eax)); /* 0x360935A1: call dword ptr [eax] */ 12839 RECOMP_FLAGS_IN(); 12840 L_360935A3: 12841 ecx = MEM32(ebp + (-0xC)); /* 0x360935A3: mov ecx, dword ptr [ebp - 0xc] */ 12842 edi = POP32_VAL(esp); /* 0x360935A6: pop edi */ 12843 esi = POP32_VAL(esp); /* 0x360935A7: pop esi */ 12844 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12845 eax = 0; /* 0x360935A8: xor eax, eax */ 12846 _cf = 0; 12847 _flag_k = FK_TEST; 12848 ebx = POP32_VAL(esp); /* 0x360935AA: pop ebx */ 12849 MEM32(FS_BASE + (0)) = ecx; /* 0x360935AB: mov dword ptr fs:[0], ecx */ 12850 esp = ebp; /* 0x360935B2: mov esp, ebp */ 12851 ebp = POP32_VAL(esp); /* 0x360935B4: pop ebp */ 12852 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360935B5: ret 4 */ 12853 RECOMP_REGS_OUT(); 12854 } 12855 12856 void sub_3609359B(void) { 12857 int _fpu_cmp = 0; 12858 uint32_t _cf = 0; 12859 int _df = 1; 12860 uint32_t _flag_k = FK_NONE; 12861 uint32_t _flag_a = 0, _flag_b = 0; 12862 uint32_t _itail_tgt = 0; 12863 RECOMP_REGS_LOCALS 12864 RECOMP_ENTER(0x3609359Bu); 12865 12866 L_3609359B: 12867 eax = MEM32(ebx); /* 0x3609359B: mov eax, dword ptr [ebx] */ 12868 PUSH32(esp, 1); /* 0x3609359D: push 1 */ 12869 ecx = ebx; /* 0x3609359F: mov ecx, ebx */ 12870 RECOMP_ICALL(MEM32(eax)); /* 0x360935A1: call dword ptr [eax] */ 12871 RECOMP_FLAGS_IN(); 12872 ecx = MEM32(ebp + (-0xC)); /* 0x360935A3: mov ecx, dword ptr [ebp - 0xc] */ 12873 edi = POP32_VAL(esp); /* 0x360935A6: pop edi */ 12874 esi = POP32_VAL(esp); /* 0x360935A7: pop esi */ 12875 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12876 eax = 0; /* 0x360935A8: xor eax, eax */ 12877 _cf = 0; 12878 _flag_k = FK_TEST; 12879 ebx = POP32_VAL(esp); /* 0x360935AA: pop ebx */ 12880 MEM32(FS_BASE + (0)) = ecx; /* 0x360935AB: mov dword ptr fs:[0], ecx */ 12881 esp = ebp; /* 0x360935B2: mov esp, ebp */ 12882 ebp = POP32_VAL(esp); /* 0x360935B4: pop ebp */ 12883 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360935B5: ret 4 */ 12884 RECOMP_REGS_OUT(); 12885 } 12886 12887 void sub_360935A3(void) { 12888 int _fpu_cmp = 0; 12889 uint32_t _cf = 0; 12890 int _df = 1; 12891 uint32_t _flag_k = FK_NONE; 12892 uint32_t _flag_a = 0, _flag_b = 0; 12893 uint32_t _itail_tgt = 0; 12894 RECOMP_REGS_LOCALS 12895 RECOMP_ENTER(0x360935A3u); 12896 12897 L_360935A3: 12898 ecx = MEM32(ebp + (-0xC)); /* 0x360935A3: mov ecx, dword ptr [ebp - 0xc] */ 12899 edi = POP32_VAL(esp); /* 0x360935A6: pop edi */ 12900 esi = POP32_VAL(esp); /* 0x360935A7: pop esi */ 12901 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 12902 eax = 0; /* 0x360935A8: xor eax, eax */ 12903 _cf = 0; 12904 _flag_k = FK_TEST; 12905 ebx = POP32_VAL(esp); /* 0x360935AA: pop ebx */ 12906 MEM32(FS_BASE + (0)) = ecx; /* 0x360935AB: mov dword ptr fs:[0], ecx */ 12907 esp = ebp; /* 0x360935B2: mov esp, ebp */ 12908 ebp = POP32_VAL(esp); /* 0x360935B4: pop ebp */ 12909 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x360935B5: ret 4 */ 12910 RECOMP_REGS_OUT(); 12911 } 12912 12913 void sub_360935C0(void) { 12914 int _fpu_cmp = 0; 12915 uint32_t _cf = 0; 12916 int _df = 1; 12917 uint32_t _flag_k = FK_NONE; 12918 uint32_t _flag_a = 0, _flag_b = 0; 12919 uint32_t _itail_tgt = 0; 12920 RECOMP_REGS_LOCALS 12921 RECOMP_ENTER(0x360935C0u); 12922 12923 L_360935C0: 12924 PUSH32(esp, ebp); /* 0x360935C0: push ebp */ 12925 ebp = esp; /* 0x360935C1: mov ebp, esp */ 12926 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 12927 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12928 esp = esp - 8; /* 0x360935C3: sub esp, 8 */ 12929 _flag_k = FK_CMP; 12930 eax = MEM32(ebp + 0x8); /* 0x360935C6: mov eax, dword ptr [ebp + 8] */ 12931 PUSH32(esp, edi); /* 0x360935C9: push edi */ 12932 edi = ecx; /* 0x360935CA: mov edi, ecx */ 12933 /* cmp MEM32(eax), 0xC788u */ /* 0x360935CC: cmp dword ptr [eax], 0xc788 */ 12934 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xC788u); 12935 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12936 _flag_k = FK_CMP; 12937 if (CMP_NE(_flag_a, _flag_b)) goto L_3609361C; /* 0x360935D2: jne 0x3609361c */ 12938 L_360935D4: 12939 eax = MEM32(eax + 0x4); /* 0x360935D4: mov eax, dword ptr [eax + 4] */ 12940 PUSH32(esp, esi); /* 0x360935D7: push esi */ 12941 esi = MEM32(edi + 0x4); /* 0x360935D8: mov esi, dword ptr [edi + 4] */ 12942 ecx = ebp + 0x8; /* 0x360935DB: lea ecx, [ebp + 8] */ 12943 PUSH32(esp, ecx); /* 0x360935DE: push ecx */ 12944 ecx = esi; /* 0x360935DF: mov ecx, esi */ 12945 MEM32(ebp + 0x8) = eax; /* 0x360935E1: mov dword ptr [ebp + 8], eax */ 12946 RECOMP_ICALL(0x360E39D0u); /* 0x360935E4: call 0x360e39d0 */ /* not lifted */ 12947 RECOMP_FLAGS_IN(); 12948 esi = MEM32(esi + 0x4); /* 0x360935E9: mov esi, dword ptr [esi + 4] */ 12949 /* cmp eax, esi */ /* 0x360935EC: cmp eax, esi */ 12950 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 12951 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12952 _flag_k = FK_CMP; 12953 MEM32(ebp + (-0x4)) = eax; /* 0x360935EE: mov dword ptr [ebp - 4], eax */ 12954 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093600; /* 0x360935F1: je 0x36093600 */ 12955 L_360935F3: 12956 edx = MEM32(ebp + 0x8); /* 0x360935F3: mov edx, dword ptr [ebp + 8] */ 12957 /* cmp edx, MEM32(eax + 0xC) */ /* 0x360935F6: cmp edx, dword ptr [eax + 0xc] */ 12958 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 12959 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12960 _flag_k = FK_CMP; 12961 if (CMP_B(_flag_a, _flag_b)) goto L_36093600; /* 0x360935F9: jb 0x36093600 */ 12962 L_360935FB: 12963 eax = ebp + (-0x4); /* 0x360935FB: lea eax, [ebp - 4] */ 12964 goto L_36093606; /* 0x360935FE: jmp 0x36093606 */ 12965 L_36093600: 12966 MEM32(ebp + (-0x8)) = esi; /* 0x36093600: mov dword ptr [ebp - 8], esi */ 12967 eax = ebp + (-0x8); /* 0x36093603: lea eax, [ebp - 8] */ 12968 L_36093606: 12969 ecx = MEM32(edi + 0x4); /* 0x36093606: mov ecx, dword ptr [edi + 4] */ 12970 eax = MEM32(eax); /* 0x36093609: mov eax, dword ptr [eax] */ 12971 /* cmp MEM32(ecx + 0x4), eax */ /* 0x3609360B: cmp dword ptr [ecx + 4], eax */ 12972 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax); 12973 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 12974 _flag_k = FK_CMP; 12975 esi = POP32_VAL(esp); /* 0x3609360E: pop esi */ 12976 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609361C; /* 0x3609360F: je 0x3609361c */ 12977 L_36093611: 12978 ecx = MEM32(eax + 0x14); /* 0x36093611: mov ecx, dword ptr [eax + 0x14] */ 12979 /* test ecx, ecx */ /* 0x36093614: test ecx, ecx */ 12980 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 12981 _cf = 0; 12982 _flag_k = FK_TEST; 12983 if (TEST_Z(_flag_a, _flag_b)) goto L_3609361C; /* 0x36093616: je 0x3609361c */ 12984 L_36093618: 12985 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 12986 ecx = ecx - 1; /* 0x36093618: dec ecx */ 12987 _flag_k = FK_DEC; 12988 MEM32(eax + 0x14) = ecx; /* 0x36093619: mov dword ptr [eax + 0x14], ecx */ 12989 L_3609361C: 12990 edi = POP32_VAL(esp); /* 0x3609361C: pop edi */ 12991 esp = ebp; /* 0x3609361D: mov esp, ebp */ 12992 ebp = POP32_VAL(esp); /* 0x3609361F: pop ebp */ 12993 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36093620: ret 4 */ 12994 RECOMP_REGS_OUT(); 12995 } 12996 12997 void sub_36093630(void) { 12998 int _fpu_cmp = 0; 12999 uint32_t _cf = 0; 13000 int _df = 1; 13001 uint32_t _flag_k = FK_NONE; 13002 uint32_t _flag_a = 0, _flag_b = 0; 13003 uint32_t _itail_tgt = 0; 13004 RECOMP_REGS_LOCALS 13005 RECOMP_ENTER(0x36093630u); 13006 13007 L_36093630: 13008 PUSH32(esp, ebp); /* 0x36093630: push ebp */ 13009 ebp = esp; /* 0x36093631: mov ebp, esp */ 13010 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13012 esp = esp - 8; /* 0x36093633: sub esp, 8 */ 13013 _flag_k = FK_CMP; 13014 eax = MEM32(ebp + 0x8); /* 0x36093636: mov eax, dword ptr [ebp + 8] */ 13015 PUSH32(esp, edi); /* 0x36093639: push edi */ 13016 edi = ecx; /* 0x3609363A: mov edi, ecx */ 13017 /* cmp MEM32(eax), 0xC788u */ /* 0x3609363C: cmp dword ptr [eax], 0xc788 */ 13018 _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0xC788u); 13019 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13020 _flag_k = FK_CMP; 13021 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609364D; /* 0x36093642: je 0x3609364d */ 13022 L_36093644: 13023 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13024 eax = 0; /* 0x36093644: xor eax, eax */ 13025 _cf = 0; 13026 _flag_k = FK_TEST; 13027 edi = POP32_VAL(esp); /* 0x36093646: pop edi */ 13028 esp = ebp; /* 0x36093647: mov esp, ebp */ 13029 ebp = POP32_VAL(esp); /* 0x36093649: pop ebp */ 13030 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609364A: ret 4 */ 13031 L_3609364D: 13032 eax = MEM32(eax + 0x4); /* 0x3609364D: mov eax, dword ptr [eax + 4] */ 13033 PUSH32(esp, esi); /* 0x36093650: push esi */ 13034 esi = MEM32(edi + 0x4); /* 0x36093651: mov esi, dword ptr [edi + 4] */ 13035 ecx = ebp + 0x8; /* 0x36093654: lea ecx, [ebp + 8] */ 13036 PUSH32(esp, ecx); /* 0x36093657: push ecx */ 13037 ecx = esi; /* 0x36093658: mov ecx, esi */ 13038 MEM32(ebp + 0x8) = eax; /* 0x3609365A: mov dword ptr [ebp + 8], eax */ 13039 RECOMP_ICALL(0x360E39D0u); /* 0x3609365D: call 0x360e39d0 */ /* not lifted */ 13040 RECOMP_FLAGS_IN(); 13041 esi = MEM32(esi + 0x4); /* 0x36093662: mov esi, dword ptr [esi + 4] */ 13042 /* cmp eax, esi */ /* 0x36093665: cmp eax, esi */ 13043 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 13044 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13045 _flag_k = FK_CMP; 13046 MEM32(ebp + (-0x4)) = eax; /* 0x36093667: mov dword ptr [ebp - 4], eax */ 13047 if (CMP_EQ(_flag_a, _flag_b)) goto L_36093679; /* 0x3609366A: je 0x36093679 */ 13048 L_3609366C: 13049 edx = MEM32(ebp + 0x8); /* 0x3609366C: mov edx, dword ptr [ebp + 8] */ 13050 /* cmp edx, MEM32(eax + 0xC) */ /* 0x3609366F: cmp edx, dword ptr [eax + 0xc] */ 13051 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC)); 13052 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13053 _flag_k = FK_CMP; 13054 if (CMP_B(_flag_a, _flag_b)) goto L_36093679; /* 0x36093672: jb 0x36093679 */ 13055 L_36093674: 13056 eax = ebp + (-0x4); /* 0x36093674: lea eax, [ebp - 4] */ 13057 goto L_3609367F; /* 0x36093677: jmp 0x3609367f */ 13058 L_36093679: 13059 MEM32(ebp + (-0x8)) = esi; /* 0x36093679: mov dword ptr [ebp - 8], esi */ 13060 eax = ebp + (-0x8); /* 0x3609367C: lea eax, [ebp - 8] */ 13061 L_3609367F: 13062 ecx = MEM32(edi + 0x4); /* 0x3609367F: mov ecx, dword ptr [edi + 4] */ 13063 eax = MEM32(eax); /* 0x36093682: mov eax, dword ptr [eax] */ 13064 /* cmp MEM32(ecx + 0x4), eax */ /* 0x36093684: cmp dword ptr [ecx + 4], eax */ 13065 _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(eax); 13066 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13067 _flag_k = FK_CMP; 13068 esi = POP32_VAL(esp); /* 0x36093687: pop esi */ 13069 if (CMP_NE(_flag_a, _flag_b)) goto L_36093693; /* 0x36093688: jne 0x36093693 */ 13070 L_3609368A: 13071 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13072 eax = 0; /* 0x3609368A: xor eax, eax */ 13073 _cf = 0; 13074 _flag_k = FK_TEST; 13075 edi = POP32_VAL(esp); /* 0x3609368C: pop edi */ 13076 esp = ebp; /* 0x3609368D: mov esp, ebp */ 13077 ebp = POP32_VAL(esp); /* 0x3609368F: pop ebp */ 13078 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x36093690: ret 4 */ 13079 L_36093693: 13080 eax = MEM32(eax + 0x10); /* 0x36093693: mov eax, dword ptr [eax + 0x10] */ 13081 edi = POP32_VAL(esp); /* 0x36093696: pop edi */ 13082 esp = ebp; /* 0x36093697: mov esp, ebp */ 13083 ebp = POP32_VAL(esp); /* 0x36093699: pop ebp */ 13084 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3609369A: ret 4 */ 13085 RECOMP_REGS_OUT(); 13086 } 13087 13088 void sub_360936A0(void) { 13089 int _fpu_cmp = 0; 13090 uint32_t _cf = 0; 13091 int _df = 1; 13092 uint32_t _flag_k = FK_NONE; 13093 uint32_t _flag_a = 0, _flag_b = 0; 13094 uint32_t _itail_tgt = 0; 13095 RECOMP_REGS_LOCALS 13096 RECOMP_ENTER(0x360936A0u); 13097 13098 L_360936A0: 13099 PUSH32(esp, ebp); /* 0x360936A0: push ebp */ 13100 ebp = esp; /* 0x360936A1: mov ebp, esp */ 13101 PUSH32(esp, 0xFFFFFFFFu); /* 0x360936A3: push -1 */ 13102 PUSH32(esp, 0x361663EBu); /* 0x360936A5: push 0x361663eb */ 13103 eax = MEM32(FS_BASE + (0)); /* 0x360936AA: mov eax, dword ptr fs:[0] */ 13104 PUSH32(esp, eax); /* 0x360936B0: push eax */ 13105 MEM32(FS_BASE + (0)) = esp; /* 0x360936B1: mov dword ptr fs:[0], esp */ 13106 PUSH32(esp, ecx); /* 0x360936B8: push ecx */ 13107 eax = MEM32(0x36306B5C); /* 0x360936B9: mov eax, dword ptr [0x36306b5c] */ 13108 /* test eax, eax */ /* 0x360936BE: test eax, eax */ 13109 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13110 _cf = 0; 13111 _flag_k = FK_TEST; 13112 if (TEST_NZ(_flag_a, _flag_b)) goto L_360936FB; /* 0x360936C0: jne 0x360936fb */ 13113 L_360936C2: 13114 PUSH32(esp, 0xCu); /* 0x360936C2: push 0xc */ 13115 RECOMP_ICALL(0x3615FD6Au); /* 0x360936C4: call 0x3615fd6a */ /* not lifted */ 13116 RECOMP_FLAGS_IN(); 13117 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13118 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13119 esp = esp + 4; /* 0x360936C9: add esp, 4 */ 13120 _flag_k = FK_ADD; 13121 MEM32(ebp + (-0x10)) = eax; /* 0x360936CC: mov dword ptr [ebp - 0x10], eax */ 13122 /* test eax, eax */ /* 0x360936CF: test eax, eax */ 13123 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13124 _cf = 0; 13125 _flag_k = FK_TEST; 13126 MEM32(ebp + (-0x4)) = 0; /* 0x360936D1: mov dword ptr [ebp - 4], 0 */ 13127 if (TEST_Z(_flag_a, _flag_b)) goto L_360936F4; /* 0x360936D8: je 0x360936f4 */ 13128 L_360936DA: 13129 ecx = eax; /* 0x360936DA: mov ecx, eax */ 13130 RECOMP_ICALL(0x36092BD0u); /* 0x360936DC: call 0x36092bd0 */ /* not lifted */ 13131 RECOMP_FLAGS_IN(); 13132 MEM32(0x36306B5C) = eax; /* 0x360936E1: mov dword ptr [0x36306b5c], eax */ 13133 ecx = MEM32(ebp + (-0xC)); /* 0x360936E6: mov ecx, dword ptr [ebp - 0xc] */ 13134 MEM32(FS_BASE + (0)) = ecx; /* 0x360936E9: mov dword ptr fs:[0], ecx */ 13135 esp = ebp; /* 0x360936F0: mov esp, ebp */ 13136 ebp = POP32_VAL(esp); /* 0x360936F2: pop ebp */ 13137 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360936F3: ret */ 13138 L_360936F4: 13139 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13140 eax = 0; /* 0x360936F4: xor eax, eax */ 13141 _cf = 0; 13142 _flag_k = FK_TEST; 13143 MEM32(0x36306B5C) = eax; /* 0x360936F6: mov dword ptr [0x36306b5c], eax */ 13144 L_360936FB: 13145 ecx = MEM32(ebp + (-0xC)); /* 0x360936FB: mov ecx, dword ptr [ebp - 0xc] */ 13146 MEM32(FS_BASE + (0)) = ecx; /* 0x360936FE: mov dword ptr fs:[0], ecx */ 13147 esp = ebp; /* 0x36093705: mov esp, ebp */ 13148 ebp = POP32_VAL(esp); /* 0x36093707: pop ebp */ 13149 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36093708: ret */ 13150 RECOMP_REGS_OUT(); 13151 } 13152 13153 void sub_36093710(void) { 13154 int _fpu_cmp = 0; 13155 uint32_t _cf = 0; 13156 int _df = 1; 13157 uint32_t _flag_k = FK_NONE; 13158 uint32_t _flag_a = 0, _flag_b = 0; 13159 uint32_t _itail_tgt = 0; 13160 RECOMP_REGS_LOCALS 13161 RECOMP_ENTER(0x36093710u); 13162 13163 goto L_36093710; 13164 L_360936A0: 13165 PUSH32(esp, ebp); /* 0x360936A0: push ebp */ 13166 ebp = esp; /* 0x360936A1: mov ebp, esp */ 13167 PUSH32(esp, 0xFFFFFFFFu); /* 0x360936A3: push -1 */ 13168 PUSH32(esp, 0x361663EBu); /* 0x360936A5: push 0x361663eb */ 13169 eax = MEM32(FS_BASE + (0)); /* 0x360936AA: mov eax, dword ptr fs:[0] */ 13170 PUSH32(esp, eax); /* 0x360936B0: push eax */ 13171 MEM32(FS_BASE + (0)) = esp; /* 0x360936B1: mov dword ptr fs:[0], esp */ 13172 PUSH32(esp, ecx); /* 0x360936B8: push ecx */ 13173 eax = MEM32(0x36306B5C); /* 0x360936B9: mov eax, dword ptr [0x36306b5c] */ 13174 /* test eax, eax */ /* 0x360936BE: test eax, eax */ 13175 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13176 _cf = 0; 13177 _flag_k = FK_TEST; 13178 if (TEST_NZ(_flag_a, _flag_b)) goto L_360936FB; /* 0x360936C0: jne 0x360936fb */ 13179 L_360936C2: 13180 PUSH32(esp, 0xCu); /* 0x360936C2: push 0xc */ 13181 RECOMP_ICALL(0x3615FD6Au); /* 0x360936C4: call 0x3615fd6a */ /* not lifted */ 13182 RECOMP_FLAGS_IN(); 13183 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13184 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13185 esp = esp + 4; /* 0x360936C9: add esp, 4 */ 13186 _flag_k = FK_ADD; 13187 MEM32(ebp + (-0x10)) = eax; /* 0x360936CC: mov dword ptr [ebp - 0x10], eax */ 13188 /* test eax, eax */ /* 0x360936CF: test eax, eax */ 13189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 13190 _cf = 0; 13191 _flag_k = FK_TEST; 13192 MEM32(ebp + (-0x4)) = 0; /* 0x360936D1: mov dword ptr [ebp - 4], 0 */ 13193 if (TEST_Z(_flag_a, _flag_b)) goto L_360936F4; /* 0x360936D8: je 0x360936f4 */ 13194 L_360936DA: 13195 ecx = eax; /* 0x360936DA: mov ecx, eax */ 13196 RECOMP_ICALL(0x36092BD0u); /* 0x360936DC: call 0x36092bd0 */ /* not lifted */ 13197 RECOMP_FLAGS_IN(); 13198 MEM32(0x36306B5C) = eax; /* 0x360936E1: mov dword ptr [0x36306b5c], eax */ 13199 ecx = MEM32(ebp + (-0xC)); /* 0x360936E6: mov ecx, dword ptr [ebp - 0xc] */ 13200 MEM32(FS_BASE + (0)) = ecx; /* 0x360936E9: mov dword ptr fs:[0], ecx */ 13201 esp = ebp; /* 0x360936F0: mov esp, ebp */ 13202 ebp = POP32_VAL(esp); /* 0x360936F2: pop ebp */ 13203 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360936F3: ret */ 13204 L_360936F4: 13205 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13206 eax = 0; /* 0x360936F4: xor eax, eax */ 13207 _cf = 0; 13208 _flag_k = FK_TEST; 13209 MEM32(0x36306B5C) = eax; /* 0x360936F6: mov dword ptr [0x36306b5c], eax */ 13210 L_360936FB: 13211 ecx = MEM32(ebp + (-0xC)); /* 0x360936FB: mov ecx, dword ptr [ebp - 0xc] */ 13212 MEM32(FS_BASE + (0)) = ecx; /* 0x360936FE: mov dword ptr fs:[0], ecx */ 13213 esp = ebp; /* 0x36093705: mov esp, ebp */ 13214 ebp = POP32_VAL(esp); /* 0x36093707: pop ebp */ 13215 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36093708: ret */ 13216 L_36093710: 13217 RECOMP_BACKEDGE(); 13218 goto L_360936A0; /* 0x36093710: jmp 0x360936a0 */ 13219 { RECOMP_REGS_OUT(); return; } /* end of function */ 13220 RECOMP_REGS_OUT(); 13221 } 13222 13223 void sub_36093720(void) { 13224 int _fpu_cmp = 0; 13225 uint32_t _cf = 0; 13226 int _df = 1; 13227 uint32_t _flag_k = FK_NONE; 13228 uint32_t _flag_a = 0, _flag_b = 0; 13229 uint32_t _itail_tgt = 0; 13230 RECOMP_REGS_LOCALS 13231 RECOMP_ENTER(0x36093720u); 13232 13233 L_36093720: 13234 PUSH32(esp, esi); /* 0x36093720: push esi */ 13235 esi = MEM32(0x36306B5C); /* 0x36093721: mov esi, dword ptr [0x36306b5c] */ 13236 /* test esi, esi */ /* 0x36093727: test esi, esi */ 13237 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 13238 _cf = 0; 13239 _flag_k = FK_TEST; 13240 if (TEST_Z(_flag_a, _flag_b)) goto L_3609373B; /* 0x36093729: je 0x3609373b */ 13241 L_3609372B: 13242 ecx = esi; /* 0x3609372B: mov ecx, esi */ 13243 RECOMP_ICALL(0x36092D70u); /* 0x3609372D: call 0x36092d70 */ /* not lifted */ 13244 RECOMP_FLAGS_IN(); 13245 PUSH32(esp, esi); /* 0x36093732: push esi */ 13246 RECOMP_ICALL(0x3615FCC4u); /* 0x36093733: call 0x3615fcc4 */ /* not lifted */ 13247 RECOMP_FLAGS_IN(); 13248 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13249 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13250 esp = esp + 4; /* 0x36093738: add esp, 4 */ 13251 _flag_k = FK_ADD; 13252 L_3609373B: 13253 MEM32(0x36306B5C) = 0; /* 0x3609373B: mov dword ptr [0x36306b5c], 0 */ 13254 esi = POP32_VAL(esp); /* 0x36093745: pop esi */ 13255 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36093746: ret */ 13256 RECOMP_REGS_OUT(); 13257 } 13258 13259 void sub_36093750(void) { 13260 int _fpu_cmp = 0; 13261 uint32_t _cf = 0; 13262 int _df = 1; 13263 uint32_t _flag_k = FK_NONE; 13264 uint32_t _flag_a = 0, _flag_b = 0; 13265 uint32_t _itail_tgt = 0; 13266 RECOMP_REGS_LOCALS 13267 RECOMP_ENTER(0x36093750u); 13268 13269 L_36093750: 13270 PUSH32(esp, ebp); /* 0x36093750: push ebp */ 13271 ebp = esp; /* 0x36093751: mov ebp, esp */ 13272 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13273 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13274 esp = esp - 8; /* 0x36093753: sub esp, 8 */ 13275 _flag_k = FK_CMP; 13276 PUSH32(esp, ebx); /* 0x36093756: push ebx */ 13277 PUSH32(esp, esi); /* 0x36093757: push esi */ 13278 esi = ecx; /* 0x36093758: mov esi, ecx */ 13279 ecx = MEM32(esi + 0x10); /* 0x3609375A: mov ecx, dword ptr [esi + 0x10] */ 13280 /* test ecx, ecx */ /* 0x3609375D: test ecx, ecx */ 13281 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 13282 _cf = 0; 13283 _flag_k = FK_TEST; 13284 PUSH32(esp, edi); /* 0x3609375F: push edi */ 13285 edi = MEM32(esi + 0x4); /* 0x36093760: mov edi, dword ptr [esi + 4] */ 13286 eax = MEM32(edi); /* 0x36093763: mov eax, dword ptr [edi] */ 13287 MEM32(ebp + (-0x4)) = eax; /* 0x36093765: mov dword ptr [ebp - 4], eax */ 13288 if (TEST_Z(_flag_a, _flag_b)) goto L_360937C5; /* 0x36093768: je 0x360937c5 */ 13289 L_3609376A: 13290 ecx = eax; /* 0x3609376A: mov ecx, eax */ 13291 /* cmp eax, ecx */ /* 0x3609376C: cmp eax, ecx */ 13292 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13293 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13294 _flag_k = FK_CMP; 13295 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C5; /* 0x3609376E: jne 0x360937c5 */ 13296 L_36093770: 13297 /* cmp edi, edi */ /* 0x36093770: cmp edi, edi */ 13298 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 13299 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13300 _flag_k = FK_CMP; 13301 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C5; /* 0x36093772: jne 0x360937c5 */ 13302 L_36093774: 13303 ebx = MEM32(edi + 0x4); /* 0x36093774: mov ebx, dword ptr [edi + 4] */ 13304 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36093777: cmp ebx, dword ptr [esi + 8] */ 13305 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 13306 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13307 _flag_k = FK_CMP; 13308 edi = ebx; /* 0x3609377A: mov edi, ebx */ 13309 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609379D; /* 0x3609377C: je 0x3609379d */ 13310 L_3609377E: 13311 eax = MEM32(edi + 0x8); /* 0x3609377E: mov eax, dword ptr [edi + 8] */ 13312 PUSH32(esp, eax); /* 0x36093781: push eax */ 13313 ecx = esi; /* 0x36093782: mov ecx, esi */ 13314 RECOMP_ICALL(0x36094720u); /* 0x36093784: call 0x36094720 */ /* not lifted */ 13315 RECOMP_FLAGS_IN(); 13316 edi = MEM32(edi); /* 0x36093789: mov edi, dword ptr [edi] */ 13317 PUSH32(esp, ebx); /* 0x3609378B: push ebx */ 13318 RECOMP_ICALL(0x3615FCC4u); /* 0x3609378C: call 0x3615fcc4 */ /* not lifted */ 13319 RECOMP_FLAGS_IN(); 13320 eax = MEM32(esi + 0x8); /* 0x36093791: mov eax, dword ptr [esi + 8] */ 13321 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 13322 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13323 esp = esp + 4; /* 0x36093794: add esp, 4 */ 13324 _flag_k = FK_ADD; 13325 /* cmp edi, eax */ /* 0x36093797: cmp edi, eax */ 13326 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 13327 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13328 _flag_k = FK_CMP; 13329 ebx = edi; /* 0x36093799: mov ebx, edi */ 13330 RECOMP_BACKEDGE(); 13331 if (CMP_NE(_flag_a, _flag_b)) goto L_3609377E; /* 0x3609379B: jne 0x3609377e */ 13332 L_3609379D: 13333 ecx = MEM32(esi + 0x4); /* 0x3609379D: mov ecx, dword ptr [esi + 4] */ 13334 edx = MEM32(esi + 0x8); /* 0x360937A0: mov edx, dword ptr [esi + 8] */ 13335 MEM32(ecx + 0x4) = edx; /* 0x360937A3: mov dword ptr [ecx + 4], edx */ 13336 eax = MEM32(esi + 0x4); /* 0x360937A6: mov eax, dword ptr [esi + 4] */ 13337 MEM32(esi + 0x10) = 0; /* 0x360937A9: mov dword ptr [esi + 0x10], 0 */ 13338 MEM32(eax) = eax; /* 0x360937B0: mov dword ptr [eax], eax */ 13339 eax = MEM32(esi + 0x4); /* 0x360937B2: mov eax, dword ptr [esi + 4] */ 13340 MEM32(eax + 0x8) = eax; /* 0x360937B5: mov dword ptr [eax + 8], eax */ 13341 eax = ebp + (-0x8); /* 0x360937B8: lea eax, [ebp - 8] */ 13342 PUSH32(esp, eax); /* 0x360937BB: push eax */ 13343 ecx = esi; /* 0x360937BC: mov ecx, esi */ 13344 RECOMP_ICALL(0x3614FC30u); /* 0x360937BE: call 0x3614fc30 */ /* not lifted */ 13345 RECOMP_FLAGS_IN(); 13346 goto L_360937E6; /* 0x360937C3: jmp 0x360937e6 */ 13347 L_360937C5: 13348 /* cmp eax, edi */ /* 0x360937C5: cmp eax, edi */ 13349 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13350 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13351 _flag_k = FK_CMP; 13352 if (CMP_EQ(_flag_a, _flag_b)) goto L_360937E6; /* 0x360937C7: je 0x360937e6 */ 13353 L_360937C9: 13354 ecx = ebp + (-0x4); /* 0x360937C9: lea ecx, [ebp - 4] */ 13355 ebx = eax; /* 0x360937CC: mov ebx, eax */ 13356 RECOMP_ICALL(0x36096C20u); /* 0x360937CE: call 0x36096c20 */ /* not lifted */ 13357 RECOMP_FLAGS_IN(); 13358 PUSH32(esp, ebx); /* 0x360937D3: push ebx */ 13359 ecx = ebp + (-0x8); /* 0x360937D4: lea ecx, [ebp - 8] */ 13360 PUSH32(esp, ecx); /* 0x360937D7: push ecx */ 13361 ecx = esi; /* 0x360937D8: mov ecx, esi */ 13362 RECOMP_ICALL(0x3603ECC0u); /* 0x360937DA: call 0x3603ecc0 */ /* not lifted */ 13363 RECOMP_FLAGS_IN(); 13364 eax = MEM32(ebp + (-0x4)); /* 0x360937DF: mov eax, dword ptr [ebp - 4] */ 13365 /* cmp eax, edi */ /* 0x360937E2: cmp eax, edi */ 13366 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 13367 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13368 _flag_k = FK_CMP; 13369 RECOMP_BACKEDGE(); 13370 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C9; /* 0x360937E4: jne 0x360937c9 */ 13371 L_360937E6: 13372 edx = MEM32(esi + 0x4); /* 0x360937E6: mov edx, dword ptr [esi + 4] */ 13373 PUSH32(esp, edx); /* 0x360937E9: push edx */ 13374 RECOMP_ICALL(0x3615FCC4u); /* 0x360937EA: call 0x3615fcc4 */ /* not lifted */ 13375 RECOMP_FLAGS_IN(); 13376 eax = MEM32(esi + 0x8); /* 0x360937EF: mov eax, dword ptr [esi + 8] */ 13377 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13378 edi = 0; /* 0x360937F2: xor edi, edi */ 13379 _cf = 0; 13380 _flag_k = FK_TEST; 13381 PUSH32(esp, eax); /* 0x360937F4: push eax */ 13382 MEM32(esi + 0x4) = edi; /* 0x360937F5: mov dword ptr [esi + 4], edi */ 13383 MEM32(esi + 0x10) = edi; /* 0x360937F8: mov dword ptr [esi + 0x10], edi */ 13384 RECOMP_ICALL(0x3615FCC4u); /* 0x360937FB: call 0x3615fcc4 */ /* not lifted */ 13385 RECOMP_FLAGS_IN(); 13386 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13387 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13388 esp = esp + 8; /* 0x36093800: add esp, 8 */ 13389 _flag_k = FK_ADD; 13390 MEM32(esi + 0x8) = edi; /* 0x36093803: mov dword ptr [esi + 8], edi */ 13391 edi = POP32_VAL(esp); /* 0x36093806: pop edi */ 13392 esi = POP32_VAL(esp); /* 0x36093807: pop esi */ 13393 ebx = POP32_VAL(esp); /* 0x36093808: pop ebx */ 13394 esp = ebp; /* 0x36093809: mov esp, ebp */ 13395 ebp = POP32_VAL(esp); /* 0x3609380B: pop ebp */ 13396 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609380C: ret */ 13397 RECOMP_REGS_OUT(); 13398 } 13399 13400 void sub_360937E6(void) { 13401 int _fpu_cmp = 0; 13402 uint32_t _cf = 0; 13403 int _df = 1; 13404 uint32_t _flag_k = FK_NONE; 13405 uint32_t _flag_a = 0, _flag_b = 0; 13406 uint32_t _itail_tgt = 0; 13407 RECOMP_REGS_LOCALS 13408 RECOMP_ENTER(0x360937E6u); 13409 13410 L_360937E6: 13411 edx = MEM32(esi + 0x4); /* 0x360937E6: mov edx, dword ptr [esi + 4] */ 13412 PUSH32(esp, edx); /* 0x360937E9: push edx */ 13413 RECOMP_ICALL(0x3615FCC4u); /* 0x360937EA: call 0x3615fcc4 */ /* not lifted */ 13414 RECOMP_FLAGS_IN(); 13415 eax = MEM32(esi + 0x8); /* 0x360937EF: mov eax, dword ptr [esi + 8] */ 13416 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 13417 edi = 0; /* 0x360937F2: xor edi, edi */ 13418 _cf = 0; 13419 _flag_k = FK_TEST; 13420 PUSH32(esp, eax); /* 0x360937F4: push eax */ 13421 MEM32(esi + 0x4) = edi; /* 0x360937F5: mov dword ptr [esi + 4], edi */ 13422 MEM32(esi + 0x10) = edi; /* 0x360937F8: mov dword ptr [esi + 0x10], edi */ 13423 RECOMP_ICALL(0x3615FCC4u); /* 0x360937FB: call 0x3615fcc4 */ /* not lifted */ 13424 RECOMP_FLAGS_IN(); 13425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13427 esp = esp + 8; /* 0x36093800: add esp, 8 */ 13428 _flag_k = FK_ADD; 13429 MEM32(esi + 0x8) = edi; /* 0x36093803: mov dword ptr [esi + 8], edi */ 13430 edi = POP32_VAL(esp); /* 0x36093806: pop edi */ 13431 esi = POP32_VAL(esp); /* 0x36093807: pop esi */ 13432 ebx = POP32_VAL(esp); /* 0x36093808: pop ebx */ 13433 esp = ebp; /* 0x36093809: mov esp, ebp */ 13434 ebp = POP32_VAL(esp); /* 0x3609380B: pop ebp */ 13435 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609380C: ret */ 13436 RECOMP_REGS_OUT(); 13437 } 13438 13439 void sub_36093810(void) { 13440 int _fpu_cmp = 0; 13441 uint32_t _cf = 0; 13442 int _df = 1; 13443 uint32_t _flag_k = FK_NONE; 13444 uint32_t _flag_a = 0, _flag_b = 0; 13445 uint32_t _itail_tgt = 0; 13446 RECOMP_REGS_LOCALS 13447 RECOMP_ENTER(0x36093810u); 13448 13449 L_36093810: 13450 PUSH32(esp, ebp); /* 0x36093810: push ebp */ 13451 ebp = esp; /* 0x36093811: mov ebp, esp */ 13452 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 13453 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13454 esp = esp - 0xCu; /* 0x36093813: sub esp, 0xc */ 13455 _flag_k = FK_CMP; 13456 PUSH32(esp, ebx); /* 0x36093816: push ebx */ 13457 PUSH32(esp, esi); /* 0x36093817: push esi */ 13458 PUSH32(esp, edi); /* 0x36093818: push edi */ 13459 edi = ecx; /* 0x36093819: mov edi, ecx */ 13460 ecx = MEM32(edi + 0x4); /* 0x3609381B: mov ecx, dword ptr [edi + 4] */ 13461 ebx = MEM32(ecx + 0x4); /* 0x3609381E: mov ebx, dword ptr [ecx + 4] */ 13462 edx = MEM32(edi + 0x8); /* 0x36093821: mov edx, dword ptr [edi + 8] */ 13463 /* cmp ebx, edx */ /* 0x36093824: cmp ebx, edx */ 13464 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 13465 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13466 _flag_k = FK_CMP; 13467 esi = ecx; /* 0x36093826: mov esi, ecx */ 13468 SET_LO8(eax, 1); /* 0x36093828: mov al, 1 */ 13469 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609384E; /* 0x3609382A: je 0x3609384e */ 13470 L_3609382C: 13471 eax = MEM32(ebp + 0xC); /* 0x3609382C: mov eax, dword ptr [ebp + 0xc] */ 13472 eax = MEM32(eax); /* 0x3609382F: mov eax, dword ptr [eax] */ 13473 MEM32(ebp + (-0x8)) = eax; /* 0x36093831: mov dword ptr [ebp - 8], eax */ 13474 L_36093834: 13475 eax = MEM32(ebp + (-0x8)); /* 0x36093834: mov eax, dword ptr [ebp - 8] */ 13476 /* cmp eax, MEM32(ebx + 0xC) */ /* 0x36093837: cmp eax, dword ptr [ebx + 0xc] */ 13477 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0xC)); 13478 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13479 _flag_k = FK_CMP; 13480 esi = ebx; /* 0x3609383A: mov esi, ebx */ 13481 SET_LO8(eax, (CMP_B(_flag_a, _flag_b)) ? 1 : 0); /* 0x3609383C: setb al */ 13482 /* test LO8(eax), LO8(eax) */ /* 0x3609383F: test al, al */ 13483 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13484 _cf = 0; 13485 _flag_k = FK_NARROW(FK_TEST, 24); 13486 if (TEST_Z(_flag_a, _flag_b)) goto L_36093847; /* 0x36093841: je 0x36093847 */ 13487 L_36093843: 13488 ebx = MEM32(ebx); /* 0x36093843: mov ebx, dword ptr [ebx] */ 13489 goto L_3609384A; /* 0x36093845: jmp 0x3609384a */ 13490 L_36093847: 13491 ebx = MEM32(ebx + 0x8); /* 0x36093847: mov ebx, dword ptr [ebx + 8] */ 13492 L_3609384A: 13493 /* cmp ebx, edx */ /* 0x3609384A: cmp ebx, edx */ 13494 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 13495 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13496 _flag_k = FK_CMP; 13497 RECOMP_BACKEDGE(); 13498 if (CMP_NE(_flag_a, _flag_b)) goto L_36093834; /* 0x3609384C: jne 0x36093834 */ 13499 L_3609384E: 13500 SET_LO8(edx, MEM8(edi + 0xC)); /* 0x3609384E: mov dl, byte ptr [edi + 0xc] */ 13501 /* test LO8(edx), LO8(edx) */ /* 0x36093851: test dl, dl */ 13502 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13503 _cf = 0; 13504 _flag_k = FK_NARROW(FK_TEST, 24); 13505 if (TEST_Z(_flag_a, _flag_b)) goto L_360939C9; /* 0x36093853: je 0x360939c9 */ 13506 L_36093859: 13507 PUSH32(esp, 0); /* 0x36093859: push 0 */ 13508 PUSH32(esp, esi); /* 0x3609385B: push esi */ 13509 ecx = edi; /* 0x3609385C: mov ecx, edi */ 13510 RECOMP_ICALL(0x360947C0u); /* 0x3609385E: call 0x360947c0 */ /* not lifted */ 13511 RECOMP_FLAGS_IN(); 13512 ecx = MEM32(edi + 0x8); /* 0x36093863: mov ecx, dword ptr [edi + 8] */ 13513 MEM32(eax) = ecx; /* 0x36093866: mov dword ptr [eax], ecx */ 13514 edx = MEM32(edi + 0x8); /* 0x36093868: mov edx, dword ptr [edi + 8] */ 13515 ecx = MEM32(ebp + 0xC); /* 0x3609386B: mov ecx, dword ptr [ebp + 0xc] */ 13516 MEM32(ebp + (-0x4)) = eax; /* 0x3609386E: mov dword ptr [ebp - 4], eax */ 13517 MEM32(eax + 0x8) = edx; /* 0x36093871: mov dword ptr [eax + 8], edx */ 13518 PUSH32(esp, ecx); /* 0x36093874: push ecx */ 13519 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 13520 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13521 eax = eax + 0xCu; /* 0x36093875: add eax, 0xc */ 13522 _flag_k = FK_ADD; 13523 PUSH32(esp, eax); /* 0x36093878: push eax */ 13524 RECOMP_ICALL(0x36094990u); /* 0x36093879: call 0x36094990 */ /* not lifted */ 13525 RECOMP_FLAGS_IN(); 13526 ecx = MEM32(edi + 0x10); /* 0x3609387E: mov ecx, dword ptr [edi + 0x10] */ 13527 eax = MEM32(edi + 0x4); /* 0x36093881: mov eax, dword ptr [edi + 4] */ 13528 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 13529 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 13530 esp = esp + 8; /* 0x36093884: add esp, 8 */ 13531 _flag_k = FK_ADD; 13532 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 13533 ecx = ecx + 1; /* 0x36093887: inc ecx */ 13534 _flag_k = FK_INC; 13535 /* cmp esi, eax */ /* 0x36093888: cmp esi, eax */ 13536 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13538 _flag_k = FK_CMP; 13539 MEM32(edi + 0x10) = ecx; /* 0x3609388A: mov dword ptr [edi + 0x10], ecx */ 13540 if (CMP_EQ(_flag_a, _flag_b)) goto L_360938B1; /* 0x3609388D: je 0x360938b1 */ 13541 L_3609388F: 13542 /* cmp ebx, MEM32(edi + 0x8) */ /* 0x3609388F: cmp ebx, dword ptr [edi + 8] */ 13543 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edi + 0x8)); 13544 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13545 _flag_k = FK_CMP; 13546 if (CMP_NE(_flag_a, _flag_b)) goto L_360938B1; /* 0x36093892: jne 0x360938b1 */ 13547 L_36093894: 13548 edx = MEM32(ebp + 0xC); /* 0x36093894: mov edx, dword ptr [ebp + 0xc] */ 13549 eax = MEM32(edx); /* 0x36093897: mov eax, dword ptr [edx] */ 13550 /* cmp eax, MEM32(esi + 0xC) */ /* 0x36093899: cmp eax, dword ptr [esi + 0xc] */ 13551 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC)); 13552 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13553 _flag_k = FK_CMP; 13554 if (CMP_B(_flag_a, _flag_b)) goto L_360938B1; /* 0x3609389C: jb 0x360938b1 */ 13555 L_3609389E: 13556 ebx = MEM32(ebp + (-0x4)); /* 0x3609389E: mov ebx, dword ptr [ebp - 4] */ 13557 MEM32(esi + 0x8) = ebx; /* 0x360938A1: mov dword ptr [esi + 8], ebx */ 13558 eax = MEM32(edi + 0x4); /* 0x360938A4: mov eax, dword ptr [edi + 4] */ 13559 /* cmp esi, MEM32(eax + 0x8) */ /* 0x360938A7: cmp esi, dword ptr [eax + 8] */ 13560 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 13561 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13562 _flag_k = FK_CMP; 13563 if (CMP_NE(_flag_a, _flag_b)) goto L_360938D4; /* 0x360938AA: jne 0x360938d4 */ 13564 L_360938AC: 13565 MEM32(eax + 0x8) = ebx; /* 0x360938AC: mov dword ptr [eax + 8], ebx */ 13566 goto L_360938D4; /* 0x360938AF: jmp 0x360938d4 */ 13567 L_360938B1: 13568 ecx = MEM32(ebp + (-0x4)); /* 0x360938B1: mov ecx, dword ptr [ebp - 4] */ 13569 MEM32(esi) = ecx; /* 0x360938B4: mov dword ptr [esi], ecx */ 13570 eax = MEM32(edi + 0x4); /* 0x360938B6: mov eax, dword ptr [edi + 4] */ 13571 /* cmp esi, eax */ /* 0x360938B9: cmp esi, eax */ 13572 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 13573 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13574 _flag_k = FK_CMP; 13575 if (CMP_NE(_flag_a, _flag_b)) goto L_360938C8; /* 0x360938BB: jne 0x360938c8 */ 13576 L_360938BD: 13577 MEM32(eax + 0x4) = ecx; /* 0x360938BD: mov dword ptr [eax + 4], ecx */ 13578 edx = MEM32(edi + 0x4); /* 0x360938C0: mov edx, dword ptr [edi + 4] */ 13579 MEM32(edx + 0x8) = ecx; /* 0x360938C3: mov dword ptr [edx + 8], ecx */ 13580 goto L_360938D1; /* 0x360938C6: jmp 0x360938d1 */ 13581 L_360938C8: 13582 /* cmp esi, MEM32(eax) */ /* 0x360938C8: cmp esi, dword ptr [eax] */ 13583 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 13584 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13585 _flag_k = FK_CMP; 13586 if (CMP_NE(_flag_a, _flag_b)) goto L_360938D1; /* 0x360938CA: jne 0x360938d1 */ 13587 L_360938CC: 13588 ecx = MEM32(ebp + (-0x4)); /* 0x360938CC: mov ecx, dword ptr [ebp - 4] */ 13589 MEM32(eax) = ecx; /* 0x360938CF: mov dword ptr [eax], ecx */ 13590 L_360938D1: 13591 ebx = MEM32(ebp + (-0x4)); /* 0x360938D1: mov ebx, dword ptr [ebp - 4] */ 13592 L_360938D4: 13593 edx = MEM32(edi + 0x4); /* 0x360938D4: mov edx, dword ptr [edi + 4] */ 13594 /* cmp ebx, MEM32(edx + 0x4) */ /* 0x360938D7: cmp ebx, dword ptr [edx + 4] */ 13595 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(edx + 0x4)); 13596 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13597 _flag_k = FK_CMP; 13598 esi = ebx; /* 0x360938DA: mov esi, ebx */ 13599 if (CMP_EQ(_flag_a, _flag_b)) goto L_360939A7; /* 0x360938DC: je 0x360939a7 */ 13600 L_360938E2: 13601 eax = MEM32(esi + 0x4); /* 0x360938E2: mov eax, dword ptr [esi + 4] */ 13602 SET_LO8(ecx, MEM8(eax + 0x24)); /* 0x360938E5: mov cl, byte ptr [eax + 0x24] */ 13603 /* test LO8(ecx), LO8(ecx) */ /* 0x360938E8: test cl, cl */ 13604 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 13605 _cf = 0; 13606 _flag_k = FK_NARROW(FK_TEST, 24); 13607 if (TEST_NZ(_flag_a, _flag_b)) goto L_360939A7; /* 0x360938EA: jne 0x360939a7 */ 13608 L_360938F0: 13609 edx = MEM32(eax + 0x4); /* 0x360938F0: mov edx, dword ptr [eax + 4] */ 13610 ecx = MEM32(edx); /* 0x360938F3: mov ecx, dword ptr [edx] */ 13611 /* cmp eax, ecx */ /* 0x360938F5: cmp eax, ecx */ 13612 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 13613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13614 _flag_k = FK_CMP; 13615 if (CMP_NE(_flag_a, _flag_b)) goto L_3609394D; /* 0x360938F7: jne 0x3609394d */ 13616 L_360938F9: 13617 ecx = MEM32(edx + 0x8); /* 0x360938F9: mov ecx, dword ptr [edx + 8] */ 13618 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x360938FC: mov dl, byte ptr [ecx + 0x24] */ 13619 /* test LO8(edx), LO8(edx) */ /* 0x360938FF: test dl, dl */ 13620 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13621 _cf = 0; 13622 _flag_k = FK_NARROW(FK_TEST, 24); 13623 if (TEST_NZ(_flag_a, _flag_b)) goto L_3609391D; /* 0x36093901: jne 0x3609391d */ 13624 L_36093903: 13625 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x36093903: mov byte ptr [eax + 0x24], 1 */ 13626 MEM8(ecx + 0x24) = (uint8_t)(1); /* 0x36093907: mov byte ptr [ecx + 0x24], 1 */ 13627 eax = MEM32(esi + 0x4); /* 0x3609390B: mov eax, dword ptr [esi + 4] */ 13628 ecx = MEM32(eax + 0x4); /* 0x3609390E: mov ecx, dword ptr [eax + 4] */ 13629 MEM8(ecx + 0x24) = (uint8_t)(0); /* 0x36093911: mov byte ptr [ecx + 0x24], 0 */ 13630 edx = MEM32(esi + 0x4); /* 0x36093915: mov edx, dword ptr [esi + 4] */ 13631 esi = MEM32(edx + 0x4); /* 0x36093918: mov esi, dword ptr [edx + 4] */ 13632 goto L_3609399B; /* 0x3609391B: jmp 0x3609399b */ 13633 L_3609391D: 13634 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3609391D: cmp esi, dword ptr [eax + 8] */ 13635 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 13636 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13637 _flag_k = FK_CMP; 13638 if (CMP_NE(_flag_a, _flag_b)) goto L_3609392C; /* 0x36093920: jne 0x3609392c */ 13639 L_36093922: 13640 esi = eax; /* 0x36093922: mov esi, eax */ 13641 PUSH32(esp, esi); /* 0x36093924: push esi */ 13642 ecx = edi; /* 0x36093925: mov ecx, edi */ 13643 RECOMP_ICALL(0x36096920u); /* 0x36093927: call 0x36096920 */ /* not lifted */ 13644 RECOMP_FLAGS_IN(); 13645 L_3609392C: 13646 eax = MEM32(esi + 0x4); /* 0x3609392C: mov eax, dword ptr [esi + 4] */ 13647 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x3609392F: mov byte ptr [eax + 0x24], 1 */ 13648 ecx = MEM32(esi + 0x4); /* 0x36093933: mov ecx, dword ptr [esi + 4] */ 13649 edx = MEM32(ecx + 0x4); /* 0x36093936: mov edx, dword ptr [ecx + 4] */ 13650 MEM8(edx + 0x24) = (uint8_t)(0); /* 0x36093939: mov byte ptr [edx + 0x24], 0 */ 13651 eax = MEM32(esi + 0x4); /* 0x3609393D: mov eax, dword ptr [esi + 4] */ 13652 ecx = MEM32(eax + 0x4); /* 0x36093940: mov ecx, dword ptr [eax + 4] */ 13653 PUSH32(esp, ecx); /* 0x36093943: push ecx */ 13654 ecx = edi; /* 0x36093944: mov ecx, edi */ 13655 RECOMP_ICALL(0x360B4260u); /* 0x36093946: call 0x360b4260 */ /* not lifted */ 13656 RECOMP_FLAGS_IN(); 13657 goto L_3609399B; /* 0x3609394B: jmp 0x3609399b */ 13658 L_3609394D: 13659 SET_LO8(edx, MEM8(ecx + 0x24)); /* 0x3609394D: mov dl, byte ptr [ecx + 0x24] */ 13660 /* test LO8(edx), LO8(edx) */ /* 0x36093950: test dl, dl */ 13661 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(LO8(edx)) << 24; 13662 _cf = 0; 13663 _flag_k = FK_NARROW(FK_TEST, 24); 13664 if (TEST_NZ(_flag_a, _flag_b)) goto L_3609396E; /* 0x36093952: jne 0x3609396e */ 13665 L_36093954: 13666 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x36093954: mov byte ptr [eax + 0x24], 1 */ 13667 MEM8(ecx + 0x24) = (uint8_t)(1); /* 0x36093958: mov byte ptr [ecx + 0x24], 1 */ 13668 edx = MEM32(esi + 0x4); /* 0x3609395C: mov edx, dword ptr [esi + 4] */ 13669 eax = MEM32(edx + 0x4); /* 0x3609395F: mov eax, dword ptr [edx + 4] */ 13670 MEM8(eax + 0x24) = (uint8_t)(0); /* 0x36093962: mov byte ptr [eax + 0x24], 0 */ 13671 ecx = MEM32(esi + 0x4); /* 0x36093966: mov ecx, dword ptr [esi + 4] */ 13672 esi = MEM32(ecx + 0x4); /* 0x36093969: mov esi, dword ptr [ecx + 4] */ 13673 goto L_3609399B; /* 0x3609396C: jmp 0x3609399b */ 13674 L_3609396E: 13675 /* cmp esi, MEM32(eax) */ /* 0x3609396E: cmp esi, dword ptr [eax] */ 13676 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax)); 13677 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13678 _flag_k = FK_CMP; 13679 if (CMP_NE(_flag_a, _flag_b)) goto L_3609397C; /* 0x36093970: jne 0x3609397c */ 13680 L_36093972: 13681 esi = eax; /* 0x36093972: mov esi, eax */ 13682 PUSH32(esp, esi); /* 0x36093974: push esi */ 13683 ecx = edi; /* 0x36093975: mov ecx, edi */ 13684 RECOMP_ICALL(0x360B4260u); /* 0x36093977: call 0x360b4260 */ /* not lifted */ 13685 RECOMP_FLAGS_IN(); 13686 L_3609397C: 13687 edx = MEM32(esi + 0x4); /* 0x3609397C: mov edx, dword ptr [esi + 4] */ 13688 MEM8(edx + 0x24) = (uint8_t)(1); /* 0x3609397F: mov byte ptr [edx + 0x24], 1 */ 13689 eax = MEM32(esi + 0x4); /* 0x36093983: mov eax, dword ptr [esi + 4] */ 13690 ecx = MEM32(eax + 0x4); /* 0x36093986: mov ecx, dword ptr [eax + 4] */ 13691 MEM8(ecx + 0x24) = (uint8_t)(0); /* 0x36093989: mov byte ptr [ecx + 0x24], 0 */ 13692 edx = MEM32(esi + 0x4); /* 0x3609398D: mov edx, dword ptr [esi + 4] */ 13693 eax = MEM32(edx + 0x4); /* 0x36093990: mov eax, dword ptr [edx + 4] */ 13694 PUSH32(esp, eax); /* 0x36093993: push eax */ 13695 ecx = edi; /* 0x36093994: mov ecx, edi */ 13696 RECOMP_ICALL(0x36096920u); /* 0x36093996: call 0x36096920 */ /* not lifted */ 13697 RECOMP_FLAGS_IN(); 13698 L_3609399B: 13699 ecx = MEM32(edi + 0x4); /* 0x3609399B: mov ecx, dword ptr [edi + 4] */ 13700 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3609399E: cmp esi, dword ptr [ecx + 4] */ 13701 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 13702 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13703 _flag_k = FK_CMP; 13704 RECOMP_BACKEDGE(); 13705 if (CMP_NE(_flag_a, _flag_b)) goto L_360938E2; /* 0x360939A1: jne 0x360938e2 */ 13706 L_360939A7: 13707 edx = MEM32(edi + 0x4); /* 0x360939A7: mov edx, dword ptr [edi + 4] */ 13708 eax = MEM32(edx + 0x4); /* 0x360939AA: mov eax, dword ptr [edx + 4] */ 13709 MEM8(eax + 0x24) = (uint8_t)(1); /* 0x360939AD: mov byte ptr [eax + 0x24], 1 */ 13710 eax = MEM32(ebp + 0x8); /* 0x360939B1: mov eax, dword ptr [ebp + 8] */ 13711 edi = POP32_VAL(esp); /* 0x360939B4: pop edi */ 13712 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x360939B5: mov byte ptr [ebp - 8], 1 */ 13713 ecx = MEM32(ebp + (-0x8)); /* 0x360939B9: mov ecx, dword ptr [ebp - 8] */ 13714 MEM32(eax) = ebx; /* 0x360939BC: mov dword ptr [eax], ebx */ 13715 esi = POP32_VAL(esp); /* 0x360939BE: pop esi */ 13716 MEM32(eax + 0x4) = ecx; /* 0x360939BF: mov dword ptr [eax + 4], ecx */ 13717 ebx = POP32_VAL(esp); /* 0x360939C2: pop ebx */ 13718 esp = ebp; /* 0x360939C3: mov esp, ebp */ 13719 ebp = POP32_VAL(esp); /* 0x360939C5: pop ebp */ 13720 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360939C6: ret 8 */ 13721 L_360939C9: 13722 /* test LO8(eax), LO8(eax) */ /* 0x360939C9: test al, al */ 13723 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 13724 _cf = 0; 13725 _flag_k = FK_NARROW(FK_TEST, 24); 13726 edx = esi; /* 0x360939CB: mov edx, esi */ 13727 MEM32(ebp + (-0x8)) = edx; /* 0x360939CD: mov dword ptr [ebp - 8], edx */ 13728 if (TEST_Z(_flag_a, _flag_b)) goto L_36093A0C; /* 0x360939D0: je 0x36093a0c */ 13729 L_360939D2: 13730 /* cmp esi, MEM32(ecx) */ /* 0x360939D2: cmp esi, dword ptr [ecx] */ 13731 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx)); 13732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13733 _flag_k = FK_CMP; 13734 if (CMP_NE(_flag_a, _flag_b)) goto L_36093A01; /* 0x360939D4: jne 0x36093a01 */ 13735 L_360939D6: 13736 edx = MEM32(ebp + 0xC); /* 0x360939D6: mov edx, dword ptr [ebp + 0xc] */ 13737 PUSH32(esp, edx); /* 0x360939D9: push edx */ 13738 PUSH32(esp, esi); /* 0x360939DA: push esi */ 13739 PUSH32(esp, ebx); /* 0x360939DB: push ebx */ 13740 eax = ebp + 0xC; /* 0x360939DC: lea eax, [ebp + 0xc] */ 13741 PUSH32(esp, eax); /* 0x360939DF: push eax */ 13742 ecx = edi; /* 0x360939E0: mov ecx, edi */ 13743 RECOMP_ICALL(0x36094460u); /* 0x360939E2: call 0x36094460 */ /* not lifted */ 13744 RECOMP_FLAGS_IN(); 13745 ecx = MEM32(eax); /* 0x360939E7: mov ecx, dword ptr [eax] */ 13746 eax = MEM32(ebp + 0x8); /* 0x360939E9: mov eax, dword ptr [ebp + 8] */ 13747 edi = POP32_VAL(esp); /* 0x360939EC: pop edi */ 13748 MEM32(eax) = ecx; /* 0x360939ED: mov dword ptr [eax], ecx */ 13749 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x360939EF: mov byte ptr [ebp - 8], 1 */ 13750 ecx = MEM32(ebp + (-0x8)); /* 0x360939F3: mov ecx, dword ptr [ebp - 8] */ 13751 esi = POP32_VAL(esp); /* 0x360939F6: pop esi */ 13752 MEM32(eax + 0x4) = ecx; /* 0x360939F7: mov dword ptr [eax + 4], ecx */ 13753 ebx = POP32_VAL(esp); /* 0x360939FA: pop ebx */ 13754 esp = ebp; /* 0x360939FB: mov esp, ebp */ 13755 ebp = POP32_VAL(esp); /* 0x360939FD: pop ebp */ 13756 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x360939FE: ret 8 */ 13757 L_36093A01: 13758 ecx = ebp + (-0x8); /* 0x36093A01: lea ecx, [ebp - 8] */ 13759 RECOMP_ICALL(0x360947F0u); /* 0x36093A04: call 0x360947f0 */ /* not lifted */ 13760 RECOMP_FLAGS_IN(); 13761 edx = MEM32(ebp + (-0x8)); /* 0x36093A09: mov edx, dword ptr [ebp - 8] */ 13762 L_36093A0C: 13763 ecx = MEM32(edx + 0xC); /* 0x36093A0C: mov ecx, dword ptr [edx + 0xc] */ 13764 eax = MEM32(ebp + 0xC); /* 0x36093A0F: mov eax, dword ptr [ebp + 0xc] */ 13765 /* cmp ecx, MEM32(eax) */ /* 0x36093A12: cmp ecx, dword ptr [eax] */ 13766 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax)); 13767 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 13768 _flag_k = FK_CMP; 13769 if (CMP_AE(_flag_a, _flag_b)) goto L_36093A3E; /* 0x36093A14: jae 0x36093a3e */ 13770 L_36093A16: 13771 PUSH32(esp, eax); /* 0x36093A16: push eax */ 13772 PUSH32(esp, esi); /* 0x36093A17: push esi */ 13773 PUSH32(esp, ebx); /* 0x36093A18: push ebx */ 13774 edx = ebp + 0xC; /* 0x36093A19: lea edx, [ebp + 0xc] */ 13775 PUSH32(esp, edx); /* 0x36093A1C: push edx */ 13776 ecx = edi; /* 0x36093A1D: mov ecx, edi */ 13777 RECOMP_ICALL(0x36094460u); /* 0x36093A1F: call 0x36094460 */ /* not lifted */ 13778 RECOMP_FLAGS_IN(); 13779 ecx = MEM32(eax); /* 0x36093A24: mov ecx, dword ptr [eax] */ 13780 eax = MEM32(ebp + 0x8); /* 0x36093A26: mov eax, dword ptr [ebp + 8] */ 13781 edi = POP32_VAL(esp); /* 0x36093A29: pop edi */ 13782 MEM32(eax) = ecx; /* 0x36093A2A: mov dword ptr [eax], ecx */ 13783 MEM8(ebp + (-0x8)) = (uint8_t)(1); /* 0x36093A2C: mov byte ptr [ebp - 8], 1 */ 13784 ecx = MEM32(ebp + (-0x8)); /* 0x36093A30: mov ecx, dword ptr [ebp - 8] */ 13785 esi = POP32_VAL(esp); /* 0x36093A33: pop esi */ 13786 MEM32(eax + 0x4) = ecx; /* 0x36093A34: mov dword ptr [eax + 4], ecx */ 13787 ebx = POP32_VAL(esp); /* 0x36093A37: pop ebx */ 13788 esp = ebp; /* 0x36093A38: mov esp, ebp */ 13789 ebp = POP32_VAL(esp); /* 0x36093A3A: pop ebp */ 13790 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36093A3B: ret 8 */ 13791 L_36093A3E: 13792 eax = MEM32(ebp + 0x8); /* 0x36093A3E: mov eax, dword ptr [ebp + 8] */ 13793 edi = POP32_VAL(esp); /* 0x36093A41: pop edi */ 13794 MEM32(eax) = edx; /* 0x36093A42: mov dword ptr [eax], edx */ 13795 MEM8(ebp + (-0x8)) = (uint8_t)(0); /* 0x36093A44: mov byte ptr [ebp - 8], 0 */ 13796 edx = MEM32(ebp + (-0x8)); /* 0x36093A48: mov edx, dword ptr [ebp - 8] */ 13797 esi = POP32_VAL(esp); /* 0x36093A4B: pop esi */ 13798 MEM32(eax + 0x4) = edx; /* 0x36093A4C: mov dword ptr [eax + 4], edx */ 13799 ebx = POP32_VAL(esp); /* 0x36093A4F: pop ebx */ 13800 esp = ebp; /* 0x36093A50: mov esp, ebp */ 13801 ebp = POP32_VAL(esp); /* 0x36093A52: pop ebp */ 13802 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x36093A53: ret 8 */ 13803 RECOMP_REGS_OUT(); 13804 }