client/game/kkr.dll/lifted-0124.c (245523B)
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_361660A0(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(0x361660A0u); 17 18 L_361660A0: 19 ecx = ebp + (-0x30); /* 0x361660A0: lea ecx, [ebp - 0x30] */ 20 L_361660A3: 21 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 22 { RECOMP_REGS_OUT(); return; } /* end of function */ 23 _ljump: 24 switch (_itail_tgt) { 25 case 0x361660A0u: goto L_361660A0; 26 case 0x361660A3u: goto L_361660A3; 27 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 28 } 29 RECOMP_REGS_OUT(); 30 } 31 32 void sub_361660A9(void) { 33 int _fpu_cmp = 0; 34 uint32_t _cf = 0; 35 int _df = 1; 36 uint32_t _flag_k = FK_NONE; 37 uint32_t _flag_a = 0, _flag_b = 0; 38 uint32_t _itail_tgt = 0; 39 RECOMP_REGS_LOCALS 40 RECOMP_ENTER(0x361660A9u); 41 42 goto L_361660A9; 43 L_3615FD76: 44 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 45 L_361660A9: 46 eax = 0x3618B130u; /* 0x361660A9: mov eax, 0x3618b130 */ 47 L_361660AE: 48 RECOMP_BACKEDGE(); 49 goto L_3615FD76; /* 0x361660AE: jmp 0x3615fd76 */ 50 { RECOMP_REGS_OUT(); return; } /* end of function */ 51 _ljump: 52 switch (_itail_tgt) { 53 case 0x3615FD76u: goto L_3615FD76; 54 case 0x361660A9u: goto L_361660A9; 55 case 0x361660AEu: goto L_361660AE; 56 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 57 } 58 RECOMP_REGS_OUT(); 59 } 60 61 void sub_361660C0(void) { 62 int _fpu_cmp = 0; 63 uint32_t _cf = 0; 64 int _df = 1; 65 uint32_t _flag_k = FK_NONE; 66 uint32_t _flag_a = 0, _flag_b = 0; 67 uint32_t _itail_tgt = 0; 68 RECOMP_REGS_LOCALS 69 RECOMP_ENTER(0x361660C0u); 70 71 L_361660C0: 72 ecx = MEM32(ebp + (-0x10)); /* 0x361660C0: mov ecx, dword ptr [ebp - 0x10] */ 73 goto L_36002000; /* 0x361660C3: jmp 0x36002000 */ 74 { RECOMP_REGS_OUT(); return; } /* end of function */ 75 L_36002000: RECOMP_ITAIL(0x36002000u); { RECOMP_REGS_OUT(); return; } 76 RECOMP_REGS_OUT(); 77 } 78 79 void sub_361660C8(void) { 80 int _fpu_cmp = 0; 81 uint32_t _cf = 0; 82 int _df = 1; 83 uint32_t _flag_k = FK_NONE; 84 uint32_t _flag_a = 0, _flag_b = 0; 85 uint32_t _itail_tgt = 0; 86 RECOMP_REGS_LOCALS 87 RECOMP_ENTER(0x361660C8u); 88 89 goto L_361660C8; 90 L_3608A4D0: 91 PUSH32(esp, ebp); /* 0x3608A4D0: push ebp */ 92 ebp = esp; /* 0x3608A4D1: mov ebp, esp */ 93 PUSH32(esp, ecx); /* 0x3608A4D3: push ecx */ 94 PUSH32(esp, ebx); /* 0x3608A4D4: push ebx */ 95 ebx = ecx; /* 0x3608A4D5: mov ebx, ecx */ 96 eax = MEM32(ebx + 0x4); /* 0x3608A4D7: mov eax, dword ptr [ebx + 4] */ 97 MEM32(ebx) = 0x36171EDCu; /* 0x3608A4DA: mov dword ptr [ebx], 0x36171edc */ 98 eax = MEM32(eax + 0x4); /* 0x3608A4E0: mov eax, dword ptr [eax + 4] */ 99 PUSH32(esp, esi); /* 0x3608A4E3: push esi */ 100 esi = MEM32(eax); /* 0x3608A4E4: mov esi, dword ptr [eax] */ 101 /* cmp esi, eax */ /* 0x3608A4E6: cmp esi, eax */ 102 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 103 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 104 _flag_k = FK_CMP; 105 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A549; /* 0x3608A4E8: je 0x3608a549 */ 106 L_3608A4EA: 107 PUSH32(esp, edi); /* 0x3608A4EA: push edi */ 108 L_3608A4EB: 109 edi = MEM32(esi + 0x10); /* 0x3608A4EB: mov edi, dword ptr [esi + 0x10] */ 110 /* test edi, edi */ /* 0x3608A4EE: test edi, edi */ 111 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 112 _cf = 0; 113 _flag_k = FK_TEST; 114 if (TEST_Z(_flag_a, _flag_b)) goto L_3608A512; /* 0x3608A4F0: je 0x3608a512 */ 115 L_3608A4F2: 116 eax = MEM32(edi + 0x4); /* 0x3608A4F2: mov eax, dword ptr [edi + 4] */ 117 PUSH32(esp, eax); /* 0x3608A4F5: push eax */ 118 MEM32(ebp + (-0x4)) = eax; /* 0x3608A4F6: mov dword ptr [ebp - 4], eax */ 119 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4F9: call 0x3615fcc4 */ /* not lifted */ 120 RECOMP_FLAGS_IN(); 121 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 122 eax = 0; /* 0x3608A4FE: xor eax, eax */ 123 _cf = 0; 124 _flag_k = FK_TEST; 125 PUSH32(esp, edi); /* 0x3608A500: push edi */ 126 MEM32(edi + 0x4) = eax; /* 0x3608A501: mov dword ptr [edi + 4], eax */ 127 MEM32(edi + 0x8) = eax; /* 0x3608A504: mov dword ptr [edi + 8], eax */ 128 MEM32(edi + 0xC) = eax; /* 0x3608A507: mov dword ptr [edi + 0xc], eax */ 129 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A50A: call 0x3615fcc4 */ /* not lifted */ 130 RECOMP_FLAGS_IN(); 131 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 132 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 133 esp = esp + 8; /* 0x3608A50F: add esp, 8 */ 134 _flag_k = FK_ADD; 135 L_3608A512: 136 eax = MEM32(esi + 0x8); /* 0x3608A512: mov eax, dword ptr [esi + 8] */ 137 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608A515: mov cl, byte ptr [eax + 0x15] */ 138 /* test LO8(ecx), LO8(ecx) */ /* 0x3608A518: test cl, cl */ 139 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 140 _cf = 0; 141 _flag_k = FK_NARROW(FK_TEST, 24); 142 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A527; /* 0x3608A51A: jne 0x3608a527 */ 143 L_3608A51C: 144 PUSH32(esp, eax); /* 0x3608A51C: push eax */ 145 RECOMP_ICALL(0x3614FC90u); /* 0x3608A51D: call 0x3614fc90 */ /* not lifted */ 146 RECOMP_FLAGS_IN(); 147 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 148 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 149 esp = esp + 4; /* 0x3608A522: add esp, 4 */ 150 _flag_k = FK_ADD; 151 goto L_3608A53E; /* 0x3608A525: jmp 0x3608a53e */ 152 L_3608A527: 153 eax = MEM32(esi + 0x4); /* 0x3608A527: mov eax, dword ptr [esi + 4] */ 154 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A52A: cmp esi, dword ptr [eax + 8] */ 155 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 157 _flag_k = FK_CMP; 158 if (CMP_NE(_flag_a, _flag_b)) goto L_3608A539; /* 0x3608A52D: jne 0x3608a539 */ 159 L_3608A52F: 160 esi = eax; /* 0x3608A52F: mov esi, eax */ 161 eax = MEM32(eax + 0x4); /* 0x3608A531: mov eax, dword ptr [eax + 4] */ 162 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A534: cmp esi, dword ptr [eax + 8] */ 163 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 164 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 165 _flag_k = FK_CMP; 166 RECOMP_BACKEDGE(); 167 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A52F; /* 0x3608A537: je 0x3608a52f */ 168 L_3608A539: 169 /* cmp MEM32(esi + 0x8), eax */ /* 0x3608A539: cmp dword ptr [esi + 8], eax */ 170 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 171 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 172 _flag_k = FK_CMP; 173 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A540; /* 0x3608A53C: je 0x3608a540 */ 174 L_3608A53E: 175 esi = eax; /* 0x3608A53E: mov esi, eax */ 176 L_3608A540: 177 ecx = MEM32(ebx + 0x4); /* 0x3608A540: mov ecx, dword ptr [ebx + 4] */ 178 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608A543: cmp esi, dword ptr [ecx + 4] */ 179 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 180 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 181 _flag_k = FK_CMP; 182 RECOMP_BACKEDGE(); 183 if (CMP_NE(_flag_a, _flag_b)) goto L_3608A4EB; /* 0x3608A546: jne 0x3608a4eb */ 184 L_3608A548: 185 edi = POP32_VAL(esp); /* 0x3608A548: pop edi */ 186 L_3608A549: 187 esi = MEM32(ebx + 0x4); /* 0x3608A549: mov esi, dword ptr [ebx + 4] */ 188 /* test esi, esi */ /* 0x3608A54C: test esi, esi */ 189 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 190 _cf = 0; 191 _flag_k = FK_TEST; 192 if (TEST_Z(_flag_a, _flag_b)) goto L_3608A560; /* 0x3608A54E: je 0x3608a560 */ 193 L_3608A550: 194 ecx = esi; /* 0x3608A550: mov ecx, esi */ 195 RECOMP_ICALL(0x3608A570u); /* 0x3608A552: call 0x3608a570 */ /* not lifted */ 196 RECOMP_FLAGS_IN(); 197 PUSH32(esp, esi); /* 0x3608A557: push esi */ 198 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A558: call 0x3615fcc4 */ /* not lifted */ 199 RECOMP_FLAGS_IN(); 200 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 202 esp = esp + 4; /* 0x3608A55D: add esp, 4 */ 203 _flag_k = FK_ADD; 204 L_3608A560: 205 esi = POP32_VAL(esp); /* 0x3608A560: pop esi */ 206 MEM32(ebx + 0x4) = 0; /* 0x3608A561: mov dword ptr [ebx + 4], 0 */ 207 ebx = POP32_VAL(esp); /* 0x3608A568: pop ebx */ 208 esp = ebp; /* 0x3608A569: mov esp, ebp */ 209 ebp = POP32_VAL(esp); /* 0x3608A56B: pop ebp */ 210 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A56C: ret */ 211 L_361660C8: 212 ecx = MEM32(ebp + (-0x10)); /* 0x361660C8: mov ecx, dword ptr [ebp - 0x10] */ 213 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x40u); 214 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 215 ecx = ecx + 0x40u; /* 0x361660CB: add ecx, 0x40 */ 216 _flag_k = FK_ADD; 217 RECOMP_BACKEDGE(); 218 goto L_3608A4D0; /* 0x361660CE: jmp 0x3608a4d0 */ 219 { RECOMP_REGS_OUT(); return; } /* end of function */ 220 RECOMP_REGS_OUT(); 221 } 222 223 void sub_361660D3(void) { 224 int _fpu_cmp = 0; 225 uint32_t _cf = 0; 226 int _df = 1; 227 uint32_t _flag_k = FK_NONE; 228 uint32_t _flag_a = 0, _flag_b = 0; 229 uint32_t _itail_tgt = 0; 230 RECOMP_REGS_LOCALS 231 RECOMP_ENTER(0x361660D3u); 232 233 goto L_361660D3; 234 L_3608AB50: 235 PUSH32(esp, ebp); /* 0x3608AB50: push ebp */ 236 ebp = esp; /* 0x3608AB51: mov ebp, esp */ 237 PUSH32(esp, ecx); /* 0x3608AB53: push ecx */ 238 PUSH32(esp, ebx); /* 0x3608AB54: push ebx */ 239 ebx = ecx; /* 0x3608AB55: mov ebx, ecx */ 240 eax = MEM32(ebx + 0x4); /* 0x3608AB57: mov eax, dword ptr [ebx + 4] */ 241 MEM32(ebx) = 0x36171EECu; /* 0x3608AB5A: mov dword ptr [ebx], 0x36171eec */ 242 eax = MEM32(eax + 0x4); /* 0x3608AB60: mov eax, dword ptr [eax + 4] */ 243 PUSH32(esp, esi); /* 0x3608AB63: push esi */ 244 esi = MEM32(eax); /* 0x3608AB64: mov esi, dword ptr [eax] */ 245 /* cmp esi, eax */ /* 0x3608AB66: cmp esi, eax */ 246 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 247 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 248 _flag_k = FK_CMP; 249 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC9; /* 0x3608AB68: je 0x3608abc9 */ 250 L_3608AB6A: 251 PUSH32(esp, edi); /* 0x3608AB6A: push edi */ 252 L_3608AB6B: 253 edi = MEM32(esi + 0x10); /* 0x3608AB6B: mov edi, dword ptr [esi + 0x10] */ 254 /* test edi, edi */ /* 0x3608AB6E: test edi, edi */ 255 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 256 _cf = 0; 257 _flag_k = FK_TEST; 258 if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB92; /* 0x3608AB70: je 0x3608ab92 */ 259 L_3608AB72: 260 eax = MEM32(edi + 0x4); /* 0x3608AB72: mov eax, dword ptr [edi + 4] */ 261 PUSH32(esp, eax); /* 0x3608AB75: push eax */ 262 MEM32(ebp + (-0x4)) = eax; /* 0x3608AB76: mov dword ptr [ebp - 4], eax */ 263 RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB79: call 0x3615fcc4 */ /* not lifted */ 264 RECOMP_FLAGS_IN(); 265 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 266 eax = 0; /* 0x3608AB7E: xor eax, eax */ 267 _cf = 0; 268 _flag_k = FK_TEST; 269 PUSH32(esp, edi); /* 0x3608AB80: push edi */ 270 MEM32(edi + 0x4) = eax; /* 0x3608AB81: mov dword ptr [edi + 4], eax */ 271 MEM32(edi + 0x8) = eax; /* 0x3608AB84: mov dword ptr [edi + 8], eax */ 272 MEM32(edi + 0xC) = eax; /* 0x3608AB87: mov dword ptr [edi + 0xc], eax */ 273 RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB8A: call 0x3615fcc4 */ /* not lifted */ 274 RECOMP_FLAGS_IN(); 275 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 276 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 277 esp = esp + 8; /* 0x3608AB8F: add esp, 8 */ 278 _flag_k = FK_ADD; 279 L_3608AB92: 280 eax = MEM32(esi + 0x8); /* 0x3608AB92: mov eax, dword ptr [esi + 8] */ 281 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608AB95: mov cl, byte ptr [eax + 0x15] */ 282 /* test LO8(ecx), LO8(ecx) */ /* 0x3608AB98: test cl, cl */ 283 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 284 _cf = 0; 285 _flag_k = FK_NARROW(FK_TEST, 24); 286 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608ABA7; /* 0x3608AB9A: jne 0x3608aba7 */ 287 L_3608AB9C: 288 PUSH32(esp, eax); /* 0x3608AB9C: push eax */ 289 RECOMP_ICALL(0x3614FC90u); /* 0x3608AB9D: call 0x3614fc90 */ /* not lifted */ 290 RECOMP_FLAGS_IN(); 291 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 293 esp = esp + 4; /* 0x3608ABA2: add esp, 4 */ 294 _flag_k = FK_ADD; 295 goto L_3608ABBE; /* 0x3608ABA5: jmp 0x3608abbe */ 296 L_3608ABA7: 297 eax = MEM32(esi + 0x4); /* 0x3608ABA7: mov eax, dword ptr [esi + 4] */ 298 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABAA: cmp esi, dword ptr [eax + 8] */ 299 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 300 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 301 _flag_k = FK_CMP; 302 if (CMP_NE(_flag_a, _flag_b)) goto L_3608ABB9; /* 0x3608ABAD: jne 0x3608abb9 */ 303 L_3608ABAF: 304 esi = eax; /* 0x3608ABAF: mov esi, eax */ 305 eax = MEM32(eax + 0x4); /* 0x3608ABB1: mov eax, dword ptr [eax + 4] */ 306 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABB4: cmp esi, dword ptr [eax + 8] */ 307 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 308 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 309 _flag_k = FK_CMP; 310 RECOMP_BACKEDGE(); 311 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABAF; /* 0x3608ABB7: je 0x3608abaf */ 312 L_3608ABB9: 313 /* cmp MEM32(esi + 0x8), eax */ /* 0x3608ABB9: cmp dword ptr [esi + 8], eax */ 314 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 316 _flag_k = FK_CMP; 317 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC0; /* 0x3608ABBC: je 0x3608abc0 */ 318 L_3608ABBE: 319 esi = eax; /* 0x3608ABBE: mov esi, eax */ 320 L_3608ABC0: 321 ecx = MEM32(ebx + 0x4); /* 0x3608ABC0: mov ecx, dword ptr [ebx + 4] */ 322 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608ABC3: cmp esi, dword ptr [ecx + 4] */ 323 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 324 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 325 _flag_k = FK_CMP; 326 RECOMP_BACKEDGE(); 327 if (CMP_NE(_flag_a, _flag_b)) goto L_3608AB6B; /* 0x3608ABC6: jne 0x3608ab6b */ 328 L_3608ABC8: 329 edi = POP32_VAL(esp); /* 0x3608ABC8: pop edi */ 330 L_3608ABC9: 331 esi = MEM32(ebx + 0x4); /* 0x3608ABC9: mov esi, dword ptr [ebx + 4] */ 332 /* test esi, esi */ /* 0x3608ABCC: test esi, esi */ 333 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 334 _cf = 0; 335 _flag_k = FK_TEST; 336 if (TEST_Z(_flag_a, _flag_b)) goto L_3608ABE0; /* 0x3608ABCE: je 0x3608abe0 */ 337 L_3608ABD0: 338 ecx = esi; /* 0x3608ABD0: mov ecx, esi */ 339 RECOMP_ICALL(0x3608A570u); /* 0x3608ABD2: call 0x3608a570 */ /* not lifted */ 340 RECOMP_FLAGS_IN(); 341 PUSH32(esp, esi); /* 0x3608ABD7: push esi */ 342 RECOMP_ICALL(0x3615FCC4u); /* 0x3608ABD8: call 0x3615fcc4 */ /* not lifted */ 343 RECOMP_FLAGS_IN(); 344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 346 esp = esp + 4; /* 0x3608ABDD: add esp, 4 */ 347 _flag_k = FK_ADD; 348 L_3608ABE0: 349 esi = POP32_VAL(esp); /* 0x3608ABE0: pop esi */ 350 MEM32(ebx + 0x4) = 0; /* 0x3608ABE1: mov dword ptr [ebx + 4], 0 */ 351 ebx = POP32_VAL(esp); /* 0x3608ABE8: pop ebx */ 352 esp = ebp; /* 0x3608ABE9: mov esp, ebp */ 353 ebp = POP32_VAL(esp); /* 0x3608ABEB: pop ebp */ 354 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ABEC: ret */ 355 L_361660D3: 356 ecx = MEM32(ebp + (-0x10)); /* 0x361660D3: mov ecx, dword ptr [ebp - 0x10] */ 357 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu); 358 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 359 ecx = ecx + 0x4Cu; /* 0x361660D6: add ecx, 0x4c */ 360 _flag_k = FK_ADD; 361 RECOMP_BACKEDGE(); 362 goto L_3608AB50; /* 0x361660D9: jmp 0x3608ab50 */ 363 { RECOMP_REGS_OUT(); return; } /* end of function */ 364 RECOMP_REGS_OUT(); 365 } 366 367 void sub_361660DE(void) { 368 int _fpu_cmp = 0; 369 uint32_t _cf = 0; 370 int _df = 1; 371 uint32_t _flag_k = FK_NONE; 372 uint32_t _flag_a = 0, _flag_b = 0; 373 uint32_t _itail_tgt = 0; 374 RECOMP_REGS_LOCALS 375 RECOMP_ENTER(0x361660DEu); 376 377 goto L_361660DE; 378 L_3615FD76: 379 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 380 L_361660DE: 381 eax = 0x3618B158u; /* 0x361660DE: mov eax, 0x3618b158 */ 382 L_361660E3: 383 RECOMP_BACKEDGE(); 384 goto L_3615FD76; /* 0x361660E3: jmp 0x3615fd76 */ 385 { RECOMP_REGS_OUT(); return; } /* end of function */ 386 _ljump: 387 switch (_itail_tgt) { 388 case 0x3615FD76u: goto L_3615FD76; 389 case 0x361660DEu: goto L_361660DE; 390 case 0x361660E3u: goto L_361660E3; 391 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 392 } 393 RECOMP_REGS_OUT(); 394 } 395 396 void sub_361660F0(void) { 397 int _fpu_cmp = 0; 398 uint32_t _cf = 0; 399 int _df = 1; 400 uint32_t _flag_k = FK_NONE; 401 uint32_t _flag_a = 0, _flag_b = 0; 402 uint32_t _itail_tgt = 0; 403 RECOMP_REGS_LOCALS 404 RECOMP_ENTER(0x361660F0u); 405 406 L_361660F0: 407 eax = MEM32(ebp + (-0x14)); /* 0x361660F0: mov eax, dword ptr [ebp - 0x14] */ 408 PUSH32(esp, eax); /* 0x361660F3: push eax */ 409 RECOMP_ICALL(0x3615FCC4u); /* 0x361660F4: call 0x3615fcc4 */ /* not lifted */ 410 RECOMP_FLAGS_IN(); 411 ecx = POP32_VAL(esp); /* 0x361660F9: pop ecx */ 412 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361660FA: ret */ 413 RECOMP_REGS_OUT(); 414 } 415 416 void sub_361660FB(void) { 417 int _fpu_cmp = 0; 418 uint32_t _cf = 0; 419 int _df = 1; 420 uint32_t _flag_k = FK_NONE; 421 uint32_t _flag_a = 0, _flag_b = 0; 422 uint32_t _itail_tgt = 0; 423 RECOMP_REGS_LOCALS 424 RECOMP_ENTER(0x361660FBu); 425 426 L_361660FB: 427 eax = MEM32(ebp + (-0x14)); /* 0x361660FB: mov eax, dword ptr [ebp - 0x14] */ 428 PUSH32(esp, eax); /* 0x361660FE: push eax */ 429 RECOMP_ICALL(0x3615FCC4u); /* 0x361660FF: call 0x3615fcc4 */ /* not lifted */ 430 RECOMP_FLAGS_IN(); 431 ecx = POP32_VAL(esp); /* 0x36166104: pop ecx */ 432 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166105: ret */ 433 RECOMP_REGS_OUT(); 434 } 435 436 void sub_36166106(void) { 437 int _fpu_cmp = 0; 438 uint32_t _cf = 0; 439 int _df = 1; 440 uint32_t _flag_k = FK_NONE; 441 uint32_t _flag_a = 0, _flag_b = 0; 442 uint32_t _itail_tgt = 0; 443 RECOMP_REGS_LOCALS 444 RECOMP_ENTER(0x36166106u); 445 446 L_36166106: 447 eax = MEM32(ebp + (-0x14)); /* 0x36166106: mov eax, dword ptr [ebp - 0x14] */ 448 PUSH32(esp, eax); /* 0x36166109: push eax */ 449 RECOMP_ICALL(0x3615FCC4u); /* 0x3616610A: call 0x3615fcc4 */ /* not lifted */ 450 RECOMP_FLAGS_IN(); 451 ecx = POP32_VAL(esp); /* 0x3616610F: pop ecx */ 452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166110: ret */ 453 RECOMP_REGS_OUT(); 454 } 455 456 void sub_36166111(void) { 457 int _fpu_cmp = 0; 458 uint32_t _cf = 0; 459 int _df = 1; 460 uint32_t _flag_k = FK_NONE; 461 uint32_t _flag_a = 0, _flag_b = 0; 462 uint32_t _itail_tgt = 0; 463 RECOMP_REGS_LOCALS 464 RECOMP_ENTER(0x36166111u); 465 466 goto L_36166111; 467 L_3615FD76: 468 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 469 L_36166111: 470 eax = 0x3618B190u; /* 0x36166111: mov eax, 0x3618b190 */ 471 L_36166116: 472 RECOMP_BACKEDGE(); 473 goto L_3615FD76; /* 0x36166116: jmp 0x3615fd76 */ 474 { RECOMP_REGS_OUT(); return; } /* end of function */ 475 _ljump: 476 switch (_itail_tgt) { 477 case 0x3615FD76u: goto L_3615FD76; 478 case 0x36166111u: goto L_36166111; 479 case 0x36166116u: goto L_36166116; 480 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 481 } 482 RECOMP_REGS_OUT(); 483 } 484 485 void sub_36166120(void) { 486 int _fpu_cmp = 0; 487 uint32_t _cf = 0; 488 int _df = 1; 489 uint32_t _flag_k = FK_NONE; 490 uint32_t _flag_a = 0, _flag_b = 0; 491 uint32_t _itail_tgt = 0; 492 RECOMP_REGS_LOCALS 493 RECOMP_ENTER(0x36166120u); 494 495 L_36166120: 496 ecx = MEM32(ebp + (-0x1C)); /* 0x36166120: mov ecx, dword ptr [ebp - 0x1c] */ 497 goto L_36002000; /* 0x36166123: jmp 0x36002000 */ 498 { RECOMP_REGS_OUT(); return; } /* end of function */ 499 L_36002000: RECOMP_ITAIL(0x36002000u); { RECOMP_REGS_OUT(); return; } 500 RECOMP_REGS_OUT(); 501 } 502 503 void sub_36166128(void) { 504 int _fpu_cmp = 0; 505 uint32_t _cf = 0; 506 int _df = 1; 507 uint32_t _flag_k = FK_NONE; 508 uint32_t _flag_a = 0, _flag_b = 0; 509 uint32_t _itail_tgt = 0; 510 RECOMP_REGS_LOCALS 511 RECOMP_ENTER(0x36166128u); 512 513 goto L_36166128; 514 L_3608A4D0: 515 PUSH32(esp, ebp); /* 0x3608A4D0: push ebp */ 516 ebp = esp; /* 0x3608A4D1: mov ebp, esp */ 517 PUSH32(esp, ecx); /* 0x3608A4D3: push ecx */ 518 PUSH32(esp, ebx); /* 0x3608A4D4: push ebx */ 519 ebx = ecx; /* 0x3608A4D5: mov ebx, ecx */ 520 eax = MEM32(ebx + 0x4); /* 0x3608A4D7: mov eax, dword ptr [ebx + 4] */ 521 MEM32(ebx) = 0x36171EDCu; /* 0x3608A4DA: mov dword ptr [ebx], 0x36171edc */ 522 eax = MEM32(eax + 0x4); /* 0x3608A4E0: mov eax, dword ptr [eax + 4] */ 523 PUSH32(esp, esi); /* 0x3608A4E3: push esi */ 524 esi = MEM32(eax); /* 0x3608A4E4: mov esi, dword ptr [eax] */ 525 /* cmp esi, eax */ /* 0x3608A4E6: cmp esi, eax */ 526 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 528 _flag_k = FK_CMP; 529 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A549; /* 0x3608A4E8: je 0x3608a549 */ 530 L_3608A4EA: 531 PUSH32(esp, edi); /* 0x3608A4EA: push edi */ 532 L_3608A4EB: 533 edi = MEM32(esi + 0x10); /* 0x3608A4EB: mov edi, dword ptr [esi + 0x10] */ 534 /* test edi, edi */ /* 0x3608A4EE: test edi, edi */ 535 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 536 _cf = 0; 537 _flag_k = FK_TEST; 538 if (TEST_Z(_flag_a, _flag_b)) goto L_3608A512; /* 0x3608A4F0: je 0x3608a512 */ 539 L_3608A4F2: 540 eax = MEM32(edi + 0x4); /* 0x3608A4F2: mov eax, dword ptr [edi + 4] */ 541 PUSH32(esp, eax); /* 0x3608A4F5: push eax */ 542 MEM32(ebp + (-0x4)) = eax; /* 0x3608A4F6: mov dword ptr [ebp - 4], eax */ 543 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4F9: call 0x3615fcc4 */ /* not lifted */ 544 RECOMP_FLAGS_IN(); 545 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 546 eax = 0; /* 0x3608A4FE: xor eax, eax */ 547 _cf = 0; 548 _flag_k = FK_TEST; 549 PUSH32(esp, edi); /* 0x3608A500: push edi */ 550 MEM32(edi + 0x4) = eax; /* 0x3608A501: mov dword ptr [edi + 4], eax */ 551 MEM32(edi + 0x8) = eax; /* 0x3608A504: mov dword ptr [edi + 8], eax */ 552 MEM32(edi + 0xC) = eax; /* 0x3608A507: mov dword ptr [edi + 0xc], eax */ 553 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A50A: call 0x3615fcc4 */ /* not lifted */ 554 RECOMP_FLAGS_IN(); 555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 557 esp = esp + 8; /* 0x3608A50F: add esp, 8 */ 558 _flag_k = FK_ADD; 559 L_3608A512: 560 eax = MEM32(esi + 0x8); /* 0x3608A512: mov eax, dword ptr [esi + 8] */ 561 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608A515: mov cl, byte ptr [eax + 0x15] */ 562 /* test LO8(ecx), LO8(ecx) */ /* 0x3608A518: test cl, cl */ 563 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 564 _cf = 0; 565 _flag_k = FK_NARROW(FK_TEST, 24); 566 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A527; /* 0x3608A51A: jne 0x3608a527 */ 567 L_3608A51C: 568 PUSH32(esp, eax); /* 0x3608A51C: push eax */ 569 RECOMP_ICALL(0x3614FC90u); /* 0x3608A51D: call 0x3614fc90 */ /* not lifted */ 570 RECOMP_FLAGS_IN(); 571 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 573 esp = esp + 4; /* 0x3608A522: add esp, 4 */ 574 _flag_k = FK_ADD; 575 goto L_3608A53E; /* 0x3608A525: jmp 0x3608a53e */ 576 L_3608A527: 577 eax = MEM32(esi + 0x4); /* 0x3608A527: mov eax, dword ptr [esi + 4] */ 578 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A52A: cmp esi, dword ptr [eax + 8] */ 579 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 580 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 581 _flag_k = FK_CMP; 582 if (CMP_NE(_flag_a, _flag_b)) goto L_3608A539; /* 0x3608A52D: jne 0x3608a539 */ 583 L_3608A52F: 584 esi = eax; /* 0x3608A52F: mov esi, eax */ 585 eax = MEM32(eax + 0x4); /* 0x3608A531: mov eax, dword ptr [eax + 4] */ 586 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A534: cmp esi, dword ptr [eax + 8] */ 587 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 588 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 589 _flag_k = FK_CMP; 590 RECOMP_BACKEDGE(); 591 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A52F; /* 0x3608A537: je 0x3608a52f */ 592 L_3608A539: 593 /* cmp MEM32(esi + 0x8), eax */ /* 0x3608A539: cmp dword ptr [esi + 8], eax */ 594 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 595 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 596 _flag_k = FK_CMP; 597 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A540; /* 0x3608A53C: je 0x3608a540 */ 598 L_3608A53E: 599 esi = eax; /* 0x3608A53E: mov esi, eax */ 600 L_3608A540: 601 ecx = MEM32(ebx + 0x4); /* 0x3608A540: mov ecx, dword ptr [ebx + 4] */ 602 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608A543: cmp esi, dword ptr [ecx + 4] */ 603 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 604 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 605 _flag_k = FK_CMP; 606 RECOMP_BACKEDGE(); 607 if (CMP_NE(_flag_a, _flag_b)) goto L_3608A4EB; /* 0x3608A546: jne 0x3608a4eb */ 608 L_3608A548: 609 edi = POP32_VAL(esp); /* 0x3608A548: pop edi */ 610 L_3608A549: 611 esi = MEM32(ebx + 0x4); /* 0x3608A549: mov esi, dword ptr [ebx + 4] */ 612 /* test esi, esi */ /* 0x3608A54C: test esi, esi */ 613 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 614 _cf = 0; 615 _flag_k = FK_TEST; 616 if (TEST_Z(_flag_a, _flag_b)) goto L_3608A560; /* 0x3608A54E: je 0x3608a560 */ 617 L_3608A550: 618 ecx = esi; /* 0x3608A550: mov ecx, esi */ 619 RECOMP_ICALL(0x3608A570u); /* 0x3608A552: call 0x3608a570 */ /* not lifted */ 620 RECOMP_FLAGS_IN(); 621 PUSH32(esp, esi); /* 0x3608A557: push esi */ 622 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A558: call 0x3615fcc4 */ /* not lifted */ 623 RECOMP_FLAGS_IN(); 624 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 626 esp = esp + 4; /* 0x3608A55D: add esp, 4 */ 627 _flag_k = FK_ADD; 628 L_3608A560: 629 esi = POP32_VAL(esp); /* 0x3608A560: pop esi */ 630 MEM32(ebx + 0x4) = 0; /* 0x3608A561: mov dword ptr [ebx + 4], 0 */ 631 ebx = POP32_VAL(esp); /* 0x3608A568: pop ebx */ 632 esp = ebp; /* 0x3608A569: mov esp, ebp */ 633 ebp = POP32_VAL(esp); /* 0x3608A56B: pop ebp */ 634 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A56C: ret */ 635 L_36166128: 636 /* cmp MEM32(ebp + (-0x1C)), 0 */ /* 0x36166128: cmp dword ptr [ebp - 0x1c], 0 */ 637 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0); 638 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 639 _flag_k = FK_CMP; 640 if (CMP_EQ(_flag_a, _flag_b)) goto L_36166140; /* 0x3616612C: je 0x36166140 */ 641 L_36166132: 642 eax = MEM32(ebp + (-0x1C)); /* 0x36166132: mov eax, dword ptr [ebp - 0x1c] */ 643 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x40u); 644 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 645 eax = eax + 0x40u; /* 0x36166135: add eax, 0x40 */ 646 _flag_k = FK_ADD; 647 MEM32(ebp + (-0x20)) = eax; /* 0x36166138: mov dword ptr [ebp - 0x20], eax */ 648 goto L_36166147; /* 0x3616613B: jmp 0x36166147 */ 649 L_36166140: 650 MEM32(ebp + (-0x20)) = 0; /* 0x36166140: mov dword ptr [ebp - 0x20], 0 */ 651 L_36166147: 652 ecx = MEM32(ebp + (-0x20)); /* 0x36166147: mov ecx, dword ptr [ebp - 0x20] */ 653 RECOMP_BACKEDGE(); 654 goto L_3608A4D0; /* 0x3616614A: jmp 0x3608a4d0 */ 655 { RECOMP_REGS_OUT(); return; } /* end of function */ 656 RECOMP_REGS_OUT(); 657 } 658 659 void sub_36166147(void) { 660 int _fpu_cmp = 0; 661 uint32_t _cf = 0; 662 int _df = 1; 663 uint32_t _flag_k = FK_NONE; 664 uint32_t _flag_a = 0, _flag_b = 0; 665 uint32_t _itail_tgt = 0; 666 RECOMP_REGS_LOCALS 667 RECOMP_ENTER(0x36166147u); 668 669 goto L_36166147; 670 L_3608A4D0: 671 PUSH32(esp, ebp); /* 0x3608A4D0: push ebp */ 672 ebp = esp; /* 0x3608A4D1: mov ebp, esp */ 673 PUSH32(esp, ecx); /* 0x3608A4D3: push ecx */ 674 PUSH32(esp, ebx); /* 0x3608A4D4: push ebx */ 675 ebx = ecx; /* 0x3608A4D5: mov ebx, ecx */ 676 eax = MEM32(ebx + 0x4); /* 0x3608A4D7: mov eax, dword ptr [ebx + 4] */ 677 MEM32(ebx) = 0x36171EDCu; /* 0x3608A4DA: mov dword ptr [ebx], 0x36171edc */ 678 eax = MEM32(eax + 0x4); /* 0x3608A4E0: mov eax, dword ptr [eax + 4] */ 679 PUSH32(esp, esi); /* 0x3608A4E3: push esi */ 680 esi = MEM32(eax); /* 0x3608A4E4: mov esi, dword ptr [eax] */ 681 /* cmp esi, eax */ /* 0x3608A4E6: cmp esi, eax */ 682 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 683 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 684 _flag_k = FK_CMP; 685 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A549; /* 0x3608A4E8: je 0x3608a549 */ 686 L_3608A4EA: 687 PUSH32(esp, edi); /* 0x3608A4EA: push edi */ 688 L_3608A4EB: 689 edi = MEM32(esi + 0x10); /* 0x3608A4EB: mov edi, dword ptr [esi + 0x10] */ 690 /* test edi, edi */ /* 0x3608A4EE: test edi, edi */ 691 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 692 _cf = 0; 693 _flag_k = FK_TEST; 694 if (TEST_Z(_flag_a, _flag_b)) goto L_3608A512; /* 0x3608A4F0: je 0x3608a512 */ 695 L_3608A4F2: 696 eax = MEM32(edi + 0x4); /* 0x3608A4F2: mov eax, dword ptr [edi + 4] */ 697 PUSH32(esp, eax); /* 0x3608A4F5: push eax */ 698 MEM32(ebp + (-0x4)) = eax; /* 0x3608A4F6: mov dword ptr [ebp - 4], eax */ 699 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A4F9: call 0x3615fcc4 */ /* not lifted */ 700 RECOMP_FLAGS_IN(); 701 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 702 eax = 0; /* 0x3608A4FE: xor eax, eax */ 703 _cf = 0; 704 _flag_k = FK_TEST; 705 PUSH32(esp, edi); /* 0x3608A500: push edi */ 706 MEM32(edi + 0x4) = eax; /* 0x3608A501: mov dword ptr [edi + 4], eax */ 707 MEM32(edi + 0x8) = eax; /* 0x3608A504: mov dword ptr [edi + 8], eax */ 708 MEM32(edi + 0xC) = eax; /* 0x3608A507: mov dword ptr [edi + 0xc], eax */ 709 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A50A: call 0x3615fcc4 */ /* not lifted */ 710 RECOMP_FLAGS_IN(); 711 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 712 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 713 esp = esp + 8; /* 0x3608A50F: add esp, 8 */ 714 _flag_k = FK_ADD; 715 L_3608A512: 716 eax = MEM32(esi + 0x8); /* 0x3608A512: mov eax, dword ptr [esi + 8] */ 717 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608A515: mov cl, byte ptr [eax + 0x15] */ 718 /* test LO8(ecx), LO8(ecx) */ /* 0x3608A518: test cl, cl */ 719 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 720 _cf = 0; 721 _flag_k = FK_NARROW(FK_TEST, 24); 722 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608A527; /* 0x3608A51A: jne 0x3608a527 */ 723 L_3608A51C: 724 PUSH32(esp, eax); /* 0x3608A51C: push eax */ 725 RECOMP_ICALL(0x3614FC90u); /* 0x3608A51D: call 0x3614fc90 */ /* not lifted */ 726 RECOMP_FLAGS_IN(); 727 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 729 esp = esp + 4; /* 0x3608A522: add esp, 4 */ 730 _flag_k = FK_ADD; 731 goto L_3608A53E; /* 0x3608A525: jmp 0x3608a53e */ 732 L_3608A527: 733 eax = MEM32(esi + 0x4); /* 0x3608A527: mov eax, dword ptr [esi + 4] */ 734 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A52A: cmp esi, dword ptr [eax + 8] */ 735 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 736 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 737 _flag_k = FK_CMP; 738 if (CMP_NE(_flag_a, _flag_b)) goto L_3608A539; /* 0x3608A52D: jne 0x3608a539 */ 739 L_3608A52F: 740 esi = eax; /* 0x3608A52F: mov esi, eax */ 741 eax = MEM32(eax + 0x4); /* 0x3608A531: mov eax, dword ptr [eax + 4] */ 742 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608A534: cmp esi, dword ptr [eax + 8] */ 743 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 745 _flag_k = FK_CMP; 746 RECOMP_BACKEDGE(); 747 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A52F; /* 0x3608A537: je 0x3608a52f */ 748 L_3608A539: 749 /* cmp MEM32(esi + 0x8), eax */ /* 0x3608A539: cmp dword ptr [esi + 8], eax */ 750 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 751 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 752 _flag_k = FK_CMP; 753 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608A540; /* 0x3608A53C: je 0x3608a540 */ 754 L_3608A53E: 755 esi = eax; /* 0x3608A53E: mov esi, eax */ 756 L_3608A540: 757 ecx = MEM32(ebx + 0x4); /* 0x3608A540: mov ecx, dword ptr [ebx + 4] */ 758 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608A543: cmp esi, dword ptr [ecx + 4] */ 759 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 760 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 761 _flag_k = FK_CMP; 762 RECOMP_BACKEDGE(); 763 if (CMP_NE(_flag_a, _flag_b)) goto L_3608A4EB; /* 0x3608A546: jne 0x3608a4eb */ 764 L_3608A548: 765 edi = POP32_VAL(esp); /* 0x3608A548: pop edi */ 766 L_3608A549: 767 esi = MEM32(ebx + 0x4); /* 0x3608A549: mov esi, dword ptr [ebx + 4] */ 768 /* test esi, esi */ /* 0x3608A54C: test esi, esi */ 769 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 770 _cf = 0; 771 _flag_k = FK_TEST; 772 if (TEST_Z(_flag_a, _flag_b)) goto L_3608A560; /* 0x3608A54E: je 0x3608a560 */ 773 L_3608A550: 774 ecx = esi; /* 0x3608A550: mov ecx, esi */ 775 RECOMP_ICALL(0x3608A570u); /* 0x3608A552: call 0x3608a570 */ /* not lifted */ 776 RECOMP_FLAGS_IN(); 777 PUSH32(esp, esi); /* 0x3608A557: push esi */ 778 RECOMP_ICALL(0x3615FCC4u); /* 0x3608A558: call 0x3615fcc4 */ /* not lifted */ 779 RECOMP_FLAGS_IN(); 780 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 781 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 782 esp = esp + 4; /* 0x3608A55D: add esp, 4 */ 783 _flag_k = FK_ADD; 784 L_3608A560: 785 esi = POP32_VAL(esp); /* 0x3608A560: pop esi */ 786 MEM32(ebx + 0x4) = 0; /* 0x3608A561: mov dword ptr [ebx + 4], 0 */ 787 ebx = POP32_VAL(esp); /* 0x3608A568: pop ebx */ 788 esp = ebp; /* 0x3608A569: mov esp, ebp */ 789 ebp = POP32_VAL(esp); /* 0x3608A56B: pop ebp */ 790 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608A56C: ret */ 791 L_36166147: 792 ecx = MEM32(ebp + (-0x20)); /* 0x36166147: mov ecx, dword ptr [ebp - 0x20] */ 793 RECOMP_BACKEDGE(); 794 goto L_3608A4D0; /* 0x3616614A: jmp 0x3608a4d0 */ 795 { RECOMP_REGS_OUT(); return; } /* end of function */ 796 RECOMP_REGS_OUT(); 797 } 798 799 void sub_3616614F(void) { 800 int _fpu_cmp = 0; 801 uint32_t _cf = 0; 802 int _df = 1; 803 uint32_t _flag_k = FK_NONE; 804 uint32_t _flag_a = 0, _flag_b = 0; 805 uint32_t _itail_tgt = 0; 806 RECOMP_REGS_LOCALS 807 RECOMP_ENTER(0x3616614Fu); 808 809 goto L_3616614F; 810 L_3608AB50: 811 PUSH32(esp, ebp); /* 0x3608AB50: push ebp */ 812 ebp = esp; /* 0x3608AB51: mov ebp, esp */ 813 PUSH32(esp, ecx); /* 0x3608AB53: push ecx */ 814 PUSH32(esp, ebx); /* 0x3608AB54: push ebx */ 815 ebx = ecx; /* 0x3608AB55: mov ebx, ecx */ 816 eax = MEM32(ebx + 0x4); /* 0x3608AB57: mov eax, dword ptr [ebx + 4] */ 817 MEM32(ebx) = 0x36171EECu; /* 0x3608AB5A: mov dword ptr [ebx], 0x36171eec */ 818 eax = MEM32(eax + 0x4); /* 0x3608AB60: mov eax, dword ptr [eax + 4] */ 819 PUSH32(esp, esi); /* 0x3608AB63: push esi */ 820 esi = MEM32(eax); /* 0x3608AB64: mov esi, dword ptr [eax] */ 821 /* cmp esi, eax */ /* 0x3608AB66: cmp esi, eax */ 822 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 824 _flag_k = FK_CMP; 825 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC9; /* 0x3608AB68: je 0x3608abc9 */ 826 L_3608AB6A: 827 PUSH32(esp, edi); /* 0x3608AB6A: push edi */ 828 L_3608AB6B: 829 edi = MEM32(esi + 0x10); /* 0x3608AB6B: mov edi, dword ptr [esi + 0x10] */ 830 /* test edi, edi */ /* 0x3608AB6E: test edi, edi */ 831 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 832 _cf = 0; 833 _flag_k = FK_TEST; 834 if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB92; /* 0x3608AB70: je 0x3608ab92 */ 835 L_3608AB72: 836 eax = MEM32(edi + 0x4); /* 0x3608AB72: mov eax, dword ptr [edi + 4] */ 837 PUSH32(esp, eax); /* 0x3608AB75: push eax */ 838 MEM32(ebp + (-0x4)) = eax; /* 0x3608AB76: mov dword ptr [ebp - 4], eax */ 839 RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB79: call 0x3615fcc4 */ /* not lifted */ 840 RECOMP_FLAGS_IN(); 841 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 842 eax = 0; /* 0x3608AB7E: xor eax, eax */ 843 _cf = 0; 844 _flag_k = FK_TEST; 845 PUSH32(esp, edi); /* 0x3608AB80: push edi */ 846 MEM32(edi + 0x4) = eax; /* 0x3608AB81: mov dword ptr [edi + 4], eax */ 847 MEM32(edi + 0x8) = eax; /* 0x3608AB84: mov dword ptr [edi + 8], eax */ 848 MEM32(edi + 0xC) = eax; /* 0x3608AB87: mov dword ptr [edi + 0xc], eax */ 849 RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB8A: call 0x3615fcc4 */ /* not lifted */ 850 RECOMP_FLAGS_IN(); 851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 853 esp = esp + 8; /* 0x3608AB8F: add esp, 8 */ 854 _flag_k = FK_ADD; 855 L_3608AB92: 856 eax = MEM32(esi + 0x8); /* 0x3608AB92: mov eax, dword ptr [esi + 8] */ 857 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608AB95: mov cl, byte ptr [eax + 0x15] */ 858 /* test LO8(ecx), LO8(ecx) */ /* 0x3608AB98: test cl, cl */ 859 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 860 _cf = 0; 861 _flag_k = FK_NARROW(FK_TEST, 24); 862 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608ABA7; /* 0x3608AB9A: jne 0x3608aba7 */ 863 L_3608AB9C: 864 PUSH32(esp, eax); /* 0x3608AB9C: push eax */ 865 RECOMP_ICALL(0x3614FC90u); /* 0x3608AB9D: call 0x3614fc90 */ /* not lifted */ 866 RECOMP_FLAGS_IN(); 867 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 868 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 869 esp = esp + 4; /* 0x3608ABA2: add esp, 4 */ 870 _flag_k = FK_ADD; 871 goto L_3608ABBE; /* 0x3608ABA5: jmp 0x3608abbe */ 872 L_3608ABA7: 873 eax = MEM32(esi + 0x4); /* 0x3608ABA7: mov eax, dword ptr [esi + 4] */ 874 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABAA: cmp esi, dword ptr [eax + 8] */ 875 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 876 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 877 _flag_k = FK_CMP; 878 if (CMP_NE(_flag_a, _flag_b)) goto L_3608ABB9; /* 0x3608ABAD: jne 0x3608abb9 */ 879 L_3608ABAF: 880 esi = eax; /* 0x3608ABAF: mov esi, eax */ 881 eax = MEM32(eax + 0x4); /* 0x3608ABB1: mov eax, dword ptr [eax + 4] */ 882 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABB4: cmp esi, dword ptr [eax + 8] */ 883 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 885 _flag_k = FK_CMP; 886 RECOMP_BACKEDGE(); 887 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABAF; /* 0x3608ABB7: je 0x3608abaf */ 888 L_3608ABB9: 889 /* cmp MEM32(esi + 0x8), eax */ /* 0x3608ABB9: cmp dword ptr [esi + 8], eax */ 890 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 891 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 892 _flag_k = FK_CMP; 893 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC0; /* 0x3608ABBC: je 0x3608abc0 */ 894 L_3608ABBE: 895 esi = eax; /* 0x3608ABBE: mov esi, eax */ 896 L_3608ABC0: 897 ecx = MEM32(ebx + 0x4); /* 0x3608ABC0: mov ecx, dword ptr [ebx + 4] */ 898 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608ABC3: cmp esi, dword ptr [ecx + 4] */ 899 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 900 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 901 _flag_k = FK_CMP; 902 RECOMP_BACKEDGE(); 903 if (CMP_NE(_flag_a, _flag_b)) goto L_3608AB6B; /* 0x3608ABC6: jne 0x3608ab6b */ 904 L_3608ABC8: 905 edi = POP32_VAL(esp); /* 0x3608ABC8: pop edi */ 906 L_3608ABC9: 907 esi = MEM32(ebx + 0x4); /* 0x3608ABC9: mov esi, dword ptr [ebx + 4] */ 908 /* test esi, esi */ /* 0x3608ABCC: test esi, esi */ 909 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 910 _cf = 0; 911 _flag_k = FK_TEST; 912 if (TEST_Z(_flag_a, _flag_b)) goto L_3608ABE0; /* 0x3608ABCE: je 0x3608abe0 */ 913 L_3608ABD0: 914 ecx = esi; /* 0x3608ABD0: mov ecx, esi */ 915 RECOMP_ICALL(0x3608A570u); /* 0x3608ABD2: call 0x3608a570 */ /* not lifted */ 916 RECOMP_FLAGS_IN(); 917 PUSH32(esp, esi); /* 0x3608ABD7: push esi */ 918 RECOMP_ICALL(0x3615FCC4u); /* 0x3608ABD8: call 0x3615fcc4 */ /* not lifted */ 919 RECOMP_FLAGS_IN(); 920 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 921 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 922 esp = esp + 4; /* 0x3608ABDD: add esp, 4 */ 923 _flag_k = FK_ADD; 924 L_3608ABE0: 925 esi = POP32_VAL(esp); /* 0x3608ABE0: pop esi */ 926 MEM32(ebx + 0x4) = 0; /* 0x3608ABE1: mov dword ptr [ebx + 4], 0 */ 927 ebx = POP32_VAL(esp); /* 0x3608ABE8: pop ebx */ 928 esp = ebp; /* 0x3608ABE9: mov esp, ebp */ 929 ebp = POP32_VAL(esp); /* 0x3608ABEB: pop ebp */ 930 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ABEC: ret */ 931 L_3616614F: 932 /* cmp MEM32(ebp + (-0x1C)), 0 */ /* 0x3616614F: cmp dword ptr [ebp - 0x1c], 0 */ 933 _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(0); 934 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 935 _flag_k = FK_CMP; 936 if (CMP_EQ(_flag_a, _flag_b)) goto L_36166167; /* 0x36166153: je 0x36166167 */ 937 L_36166159: 938 eax = MEM32(ebp + (-0x1C)); /* 0x36166159: mov eax, dword ptr [ebp - 0x1c] */ 939 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x4Cu); 940 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 941 eax = eax + 0x4Cu; /* 0x3616615C: add eax, 0x4c */ 942 _flag_k = FK_ADD; 943 MEM32(ebp + (-0x24)) = eax; /* 0x3616615F: mov dword ptr [ebp - 0x24], eax */ 944 goto L_3616616E; /* 0x36166162: jmp 0x3616616e */ 945 L_36166167: 946 MEM32(ebp + (-0x24)) = 0; /* 0x36166167: mov dword ptr [ebp - 0x24], 0 */ 947 L_3616616E: 948 ecx = MEM32(ebp + (-0x24)); /* 0x3616616E: mov ecx, dword ptr [ebp - 0x24] */ 949 RECOMP_BACKEDGE(); 950 goto L_3608AB50; /* 0x36166171: jmp 0x3608ab50 */ 951 { RECOMP_REGS_OUT(); return; } /* end of function */ 952 RECOMP_REGS_OUT(); 953 } 954 955 void sub_3616616E(void) { 956 int _fpu_cmp = 0; 957 uint32_t _cf = 0; 958 int _df = 1; 959 uint32_t _flag_k = FK_NONE; 960 uint32_t _flag_a = 0, _flag_b = 0; 961 uint32_t _itail_tgt = 0; 962 RECOMP_REGS_LOCALS 963 RECOMP_ENTER(0x3616616Eu); 964 965 goto L_3616616E; 966 L_3608AB50: 967 PUSH32(esp, ebp); /* 0x3608AB50: push ebp */ 968 ebp = esp; /* 0x3608AB51: mov ebp, esp */ 969 PUSH32(esp, ecx); /* 0x3608AB53: push ecx */ 970 PUSH32(esp, ebx); /* 0x3608AB54: push ebx */ 971 ebx = ecx; /* 0x3608AB55: mov ebx, ecx */ 972 eax = MEM32(ebx + 0x4); /* 0x3608AB57: mov eax, dword ptr [ebx + 4] */ 973 MEM32(ebx) = 0x36171EECu; /* 0x3608AB5A: mov dword ptr [ebx], 0x36171eec */ 974 eax = MEM32(eax + 0x4); /* 0x3608AB60: mov eax, dword ptr [eax + 4] */ 975 PUSH32(esp, esi); /* 0x3608AB63: push esi */ 976 esi = MEM32(eax); /* 0x3608AB64: mov esi, dword ptr [eax] */ 977 /* cmp esi, eax */ /* 0x3608AB66: cmp esi, eax */ 978 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 979 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 980 _flag_k = FK_CMP; 981 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC9; /* 0x3608AB68: je 0x3608abc9 */ 982 L_3608AB6A: 983 PUSH32(esp, edi); /* 0x3608AB6A: push edi */ 984 L_3608AB6B: 985 edi = MEM32(esi + 0x10); /* 0x3608AB6B: mov edi, dword ptr [esi + 0x10] */ 986 /* test edi, edi */ /* 0x3608AB6E: test edi, edi */ 987 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 988 _cf = 0; 989 _flag_k = FK_TEST; 990 if (TEST_Z(_flag_a, _flag_b)) goto L_3608AB92; /* 0x3608AB70: je 0x3608ab92 */ 991 L_3608AB72: 992 eax = MEM32(edi + 0x4); /* 0x3608AB72: mov eax, dword ptr [edi + 4] */ 993 PUSH32(esp, eax); /* 0x3608AB75: push eax */ 994 MEM32(ebp + (-0x4)) = eax; /* 0x3608AB76: mov dword ptr [ebp - 4], eax */ 995 RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB79: call 0x3615fcc4 */ /* not lifted */ 996 RECOMP_FLAGS_IN(); 997 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 998 eax = 0; /* 0x3608AB7E: xor eax, eax */ 999 _cf = 0; 1000 _flag_k = FK_TEST; 1001 PUSH32(esp, edi); /* 0x3608AB80: push edi */ 1002 MEM32(edi + 0x4) = eax; /* 0x3608AB81: mov dword ptr [edi + 4], eax */ 1003 MEM32(edi + 0x8) = eax; /* 0x3608AB84: mov dword ptr [edi + 8], eax */ 1004 MEM32(edi + 0xC) = eax; /* 0x3608AB87: mov dword ptr [edi + 0xc], eax */ 1005 RECOMP_ICALL(0x3615FCC4u); /* 0x3608AB8A: call 0x3615fcc4 */ /* not lifted */ 1006 RECOMP_FLAGS_IN(); 1007 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1008 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1009 esp = esp + 8; /* 0x3608AB8F: add esp, 8 */ 1010 _flag_k = FK_ADD; 1011 L_3608AB92: 1012 eax = MEM32(esi + 0x8); /* 0x3608AB92: mov eax, dword ptr [esi + 8] */ 1013 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608AB95: mov cl, byte ptr [eax + 0x15] */ 1014 /* test LO8(ecx), LO8(ecx) */ /* 0x3608AB98: test cl, cl */ 1015 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1016 _cf = 0; 1017 _flag_k = FK_NARROW(FK_TEST, 24); 1018 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608ABA7; /* 0x3608AB9A: jne 0x3608aba7 */ 1019 L_3608AB9C: 1020 PUSH32(esp, eax); /* 0x3608AB9C: push eax */ 1021 RECOMP_ICALL(0x3614FC90u); /* 0x3608AB9D: call 0x3614fc90 */ /* not lifted */ 1022 RECOMP_FLAGS_IN(); 1023 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1024 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1025 esp = esp + 4; /* 0x3608ABA2: add esp, 4 */ 1026 _flag_k = FK_ADD; 1027 goto L_3608ABBE; /* 0x3608ABA5: jmp 0x3608abbe */ 1028 L_3608ABA7: 1029 eax = MEM32(esi + 0x4); /* 0x3608ABA7: mov eax, dword ptr [esi + 4] */ 1030 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABAA: cmp esi, dword ptr [eax + 8] */ 1031 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1032 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1033 _flag_k = FK_CMP; 1034 if (CMP_NE(_flag_a, _flag_b)) goto L_3608ABB9; /* 0x3608ABAD: jne 0x3608abb9 */ 1035 L_3608ABAF: 1036 esi = eax; /* 0x3608ABAF: mov esi, eax */ 1037 eax = MEM32(eax + 0x4); /* 0x3608ABB1: mov eax, dword ptr [eax + 4] */ 1038 /* cmp esi, MEM32(eax + 0x8) */ /* 0x3608ABB4: cmp esi, dword ptr [eax + 8] */ 1039 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1040 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1041 _flag_k = FK_CMP; 1042 RECOMP_BACKEDGE(); 1043 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABAF; /* 0x3608ABB7: je 0x3608abaf */ 1044 L_3608ABB9: 1045 /* cmp MEM32(esi + 0x8), eax */ /* 0x3608ABB9: cmp dword ptr [esi + 8], eax */ 1046 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax); 1047 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1048 _flag_k = FK_CMP; 1049 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608ABC0; /* 0x3608ABBC: je 0x3608abc0 */ 1050 L_3608ABBE: 1051 esi = eax; /* 0x3608ABBE: mov esi, eax */ 1052 L_3608ABC0: 1053 ecx = MEM32(ebx + 0x4); /* 0x3608ABC0: mov ecx, dword ptr [ebx + 4] */ 1054 /* cmp esi, MEM32(ecx + 0x4) */ /* 0x3608ABC3: cmp esi, dword ptr [ecx + 4] */ 1055 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4)); 1056 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1057 _flag_k = FK_CMP; 1058 RECOMP_BACKEDGE(); 1059 if (CMP_NE(_flag_a, _flag_b)) goto L_3608AB6B; /* 0x3608ABC6: jne 0x3608ab6b */ 1060 L_3608ABC8: 1061 edi = POP32_VAL(esp); /* 0x3608ABC8: pop edi */ 1062 L_3608ABC9: 1063 esi = MEM32(ebx + 0x4); /* 0x3608ABC9: mov esi, dword ptr [ebx + 4] */ 1064 /* test esi, esi */ /* 0x3608ABCC: test esi, esi */ 1065 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 1066 _cf = 0; 1067 _flag_k = FK_TEST; 1068 if (TEST_Z(_flag_a, _flag_b)) goto L_3608ABE0; /* 0x3608ABCE: je 0x3608abe0 */ 1069 L_3608ABD0: 1070 ecx = esi; /* 0x3608ABD0: mov ecx, esi */ 1071 RECOMP_ICALL(0x3608A570u); /* 0x3608ABD2: call 0x3608a570 */ /* not lifted */ 1072 RECOMP_FLAGS_IN(); 1073 PUSH32(esp, esi); /* 0x3608ABD7: push esi */ 1074 RECOMP_ICALL(0x3615FCC4u); /* 0x3608ABD8: call 0x3615fcc4 */ /* not lifted */ 1075 RECOMP_FLAGS_IN(); 1076 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1077 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1078 esp = esp + 4; /* 0x3608ABDD: add esp, 4 */ 1079 _flag_k = FK_ADD; 1080 L_3608ABE0: 1081 esi = POP32_VAL(esp); /* 0x3608ABE0: pop esi */ 1082 MEM32(ebx + 0x4) = 0; /* 0x3608ABE1: mov dword ptr [ebx + 4], 0 */ 1083 ebx = POP32_VAL(esp); /* 0x3608ABE8: pop ebx */ 1084 esp = ebp; /* 0x3608ABE9: mov esp, ebp */ 1085 ebp = POP32_VAL(esp); /* 0x3608ABEB: pop ebp */ 1086 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ABEC: ret */ 1087 L_3616616E: 1088 ecx = MEM32(ebp + (-0x24)); /* 0x3616616E: mov ecx, dword ptr [ebp - 0x24] */ 1089 RECOMP_BACKEDGE(); 1090 goto L_3608AB50; /* 0x36166171: jmp 0x3608ab50 */ 1091 { RECOMP_REGS_OUT(); return; } /* end of function */ 1092 RECOMP_REGS_OUT(); 1093 } 1094 1095 void sub_36166176(void) { 1096 int _fpu_cmp = 0; 1097 uint32_t _cf = 0; 1098 int _df = 1; 1099 uint32_t _flag_k = FK_NONE; 1100 uint32_t _flag_a = 0, _flag_b = 0; 1101 uint32_t _itail_tgt = 0; 1102 RECOMP_REGS_LOCALS 1103 RECOMP_ENTER(0x36166176u); 1104 1105 goto L_36166176; 1106 L_3615FD76: 1107 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 1108 L_36166176: 1109 eax = 0x3618B1C8u; /* 0x36166176: mov eax, 0x3618b1c8 */ 1110 L_3616617B: 1111 RECOMP_BACKEDGE(); 1112 goto L_3615FD76; /* 0x3616617B: jmp 0x3615fd76 */ 1113 { RECOMP_REGS_OUT(); return; } /* end of function */ 1114 _ljump: 1115 switch (_itail_tgt) { 1116 case 0x3615FD76u: goto L_3615FD76; 1117 case 0x36166176u: goto L_36166176; 1118 case 0x3616617Bu: goto L_3616617B; 1119 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1120 } 1121 RECOMP_REGS_OUT(); 1122 } 1123 1124 void sub_36166180(void) { 1125 int _fpu_cmp = 0; 1126 uint32_t _cf = 0; 1127 int _df = 1; 1128 uint32_t _flag_k = FK_NONE; 1129 uint32_t _flag_a = 0, _flag_b = 0; 1130 uint32_t _itail_tgt = 0; 1131 RECOMP_REGS_LOCALS 1132 RECOMP_ENTER(0x36166180u); 1133 1134 goto L_36166180; 1135 L_360E2940: 1136 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E2940: ret */ 1137 L_36166180: 1138 ecx = ebp + (-0x14); /* 0x36166180: lea ecx, [ebp - 0x14] */ 1139 RECOMP_BACKEDGE(); 1140 goto L_360E2940; /* 0x36166183: jmp 0x360e2940 */ 1141 { RECOMP_REGS_OUT(); return; } /* end of function */ 1142 RECOMP_REGS_OUT(); 1143 } 1144 1145 void sub_36166188(void) { 1146 int _fpu_cmp = 0; 1147 uint32_t _cf = 0; 1148 int _df = 1; 1149 uint32_t _flag_k = FK_NONE; 1150 uint32_t _flag_a = 0, _flag_b = 0; 1151 uint32_t _itail_tgt = 0; 1152 RECOMP_REGS_LOCALS 1153 RECOMP_ENTER(0x36166188u); 1154 1155 goto L_36166188; 1156 L_3615FD76: 1157 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 1158 L_36166188: 1159 eax = 0x3618B200u; /* 0x36166188: mov eax, 0x3618b200 */ 1160 L_3616618D: 1161 RECOMP_BACKEDGE(); 1162 goto L_3615FD76; /* 0x3616618D: jmp 0x3615fd76 */ 1163 { RECOMP_REGS_OUT(); return; } /* end of function */ 1164 _ljump: 1165 switch (_itail_tgt) { 1166 case 0x3615FD76u: goto L_3615FD76; 1167 case 0x36166188u: goto L_36166188; 1168 case 0x3616618Du: goto L_3616618D; 1169 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1170 } 1171 RECOMP_REGS_OUT(); 1172 } 1173 1174 void sub_361661A0(void) { 1175 int _fpu_cmp = 0; 1176 uint32_t _cf = 0; 1177 int _df = 1; 1178 uint32_t _flag_k = FK_NONE; 1179 uint32_t _flag_a = 0, _flag_b = 0; 1180 uint32_t _itail_tgt = 0; 1181 RECOMP_REGS_LOCALS 1182 RECOMP_ENTER(0x361661A0u); 1183 1184 goto L_361661A0; 1185 L_360E2940: 1186 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E2940: ret */ 1187 L_361661A0: 1188 ecx = ebp + (-0x14); /* 0x361661A0: lea ecx, [ebp - 0x14] */ 1189 RECOMP_BACKEDGE(); 1190 goto L_360E2940; /* 0x361661A3: jmp 0x360e2940 */ 1191 { RECOMP_REGS_OUT(); return; } /* end of function */ 1192 RECOMP_REGS_OUT(); 1193 } 1194 1195 void sub_361661A8(void) { 1196 int _fpu_cmp = 0; 1197 uint32_t _cf = 0; 1198 int _df = 1; 1199 uint32_t _flag_k = FK_NONE; 1200 uint32_t _flag_a = 0, _flag_b = 0; 1201 uint32_t _itail_tgt = 0; 1202 RECOMP_REGS_LOCALS 1203 RECOMP_ENTER(0x361661A8u); 1204 1205 goto L_361661A8; 1206 L_3615FD76: 1207 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 1208 L_361661A8: 1209 eax = 0x3618B228u; /* 0x361661A8: mov eax, 0x3618b228 */ 1210 L_361661AD: 1211 RECOMP_BACKEDGE(); 1212 goto L_3615FD76; /* 0x361661AD: jmp 0x3615fd76 */ 1213 { RECOMP_REGS_OUT(); return; } /* end of function */ 1214 _ljump: 1215 switch (_itail_tgt) { 1216 case 0x3615FD76u: goto L_3615FD76; 1217 case 0x361661A8u: goto L_361661A8; 1218 case 0x361661ADu: goto L_361661AD; 1219 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1220 } 1221 RECOMP_REGS_OUT(); 1222 } 1223 1224 void sub_361661C0(void) { 1225 int _fpu_cmp = 0; 1226 uint32_t _cf = 0; 1227 int _df = 1; 1228 uint32_t _flag_k = FK_NONE; 1229 uint32_t _flag_a = 0, _flag_b = 0; 1230 uint32_t _itail_tgt = 0; 1231 RECOMP_REGS_LOCALS 1232 RECOMP_ENTER(0x361661C0u); 1233 1234 goto L_361661C0; 1235 L_360E2940: 1236 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360E2940: ret */ 1237 L_361661C0: 1238 ecx = ebp + (-0x18); /* 0x361661C0: lea ecx, [ebp - 0x18] */ 1239 RECOMP_BACKEDGE(); 1240 goto L_360E2940; /* 0x361661C3: jmp 0x360e2940 */ 1241 { RECOMP_REGS_OUT(); return; } /* end of function */ 1242 RECOMP_REGS_OUT(); 1243 } 1244 1245 void sub_361661C8(void) { 1246 int _fpu_cmp = 0; 1247 uint32_t _cf = 0; 1248 int _df = 1; 1249 uint32_t _flag_k = FK_NONE; 1250 uint32_t _flag_a = 0, _flag_b = 0; 1251 uint32_t _itail_tgt = 0; 1252 RECOMP_REGS_LOCALS 1253 RECOMP_ENTER(0x361661C8u); 1254 1255 goto L_361661C8; 1256 L_3615FD76: 1257 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 1258 L_361661C8: 1259 eax = 0x3618B250u; /* 0x361661C8: mov eax, 0x3618b250 */ 1260 L_361661CD: 1261 RECOMP_BACKEDGE(); 1262 goto L_3615FD76; /* 0x361661CD: jmp 0x3615fd76 */ 1263 { RECOMP_REGS_OUT(); return; } /* end of function */ 1264 _ljump: 1265 switch (_itail_tgt) { 1266 case 0x3615FD76u: goto L_3615FD76; 1267 case 0x361661C8u: goto L_361661C8; 1268 case 0x361661CDu: goto L_361661CD; 1269 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1270 } 1271 RECOMP_REGS_OUT(); 1272 } 1273 1274 void sub_361661E0(void) { 1275 int _fpu_cmp = 0; 1276 uint32_t _cf = 0; 1277 int _df = 1; 1278 uint32_t _flag_k = FK_NONE; 1279 uint32_t _flag_a = 0, _flag_b = 0; 1280 uint32_t _itail_tgt = 0; 1281 RECOMP_REGS_LOCALS 1282 RECOMP_ENTER(0x361661E0u); 1283 1284 L_361661E0: 1285 eax = MEM32(ebp + (-0x18)); /* 0x361661E0: mov eax, dword ptr [ebp - 0x18] */ 1286 PUSH32(esp, eax); /* 0x361661E3: push eax */ 1287 RECOMP_ICALL(0x3615FCC4u); /* 0x361661E4: call 0x3615fcc4 */ /* not lifted */ 1288 RECOMP_FLAGS_IN(); 1289 ecx = POP32_VAL(esp); /* 0x361661E9: pop ecx */ 1290 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361661EA: ret */ 1291 RECOMP_REGS_OUT(); 1292 } 1293 1294 void sub_361661EB(void) { 1295 int _fpu_cmp = 0; 1296 uint32_t _cf = 0; 1297 int _df = 1; 1298 uint32_t _flag_k = FK_NONE; 1299 uint32_t _flag_a = 0, _flag_b = 0; 1300 uint32_t _itail_tgt = 0; 1301 RECOMP_REGS_LOCALS 1302 RECOMP_ENTER(0x361661EBu); 1303 1304 goto L_361661EB; 1305 L_3615FD76: 1306 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 1307 L_361661EB: 1308 eax = 0x3618B278u; /* 0x361661EB: mov eax, 0x3618b278 */ 1309 L_361661F0: 1310 RECOMP_BACKEDGE(); 1311 goto L_3615FD76; /* 0x361661F0: jmp 0x3615fd76 */ 1312 { RECOMP_REGS_OUT(); return; } /* end of function */ 1313 _ljump: 1314 switch (_itail_tgt) { 1315 case 0x3615FD76u: goto L_3615FD76; 1316 case 0x361661EBu: goto L_361661EB; 1317 case 0x361661F0u: goto L_361661F0; 1318 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1319 } 1320 RECOMP_REGS_OUT(); 1321 } 1322 1323 void sub_36166200(void) { 1324 int _fpu_cmp = 0; 1325 uint32_t _cf = 0; 1326 int _df = 1; 1327 uint32_t _flag_k = FK_NONE; 1328 uint32_t _flag_a = 0, _flag_b = 0; 1329 uint32_t _itail_tgt = 0; 1330 RECOMP_REGS_LOCALS 1331 RECOMP_ENTER(0x36166200u); 1332 1333 goto L_36166200; 1334 L_3608EA50: 1335 PUSH32(esp, ebp); /* 0x3608EA50: push ebp */ 1336 ebp = esp; /* 0x3608EA51: mov ebp, esp */ 1337 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608EA53: push -1 */ 1338 PUSH32(esp, 0x36166176u); /* 0x3608EA55: push 0x36166176 */ 1339 eax = MEM32(FS_BASE + (0)); /* 0x3608EA5A: mov eax, dword ptr fs:[0] */ 1340 PUSH32(esp, eax); /* 0x3608EA60: push eax */ 1341 MEM32(FS_BASE + (0)) = esp; /* 0x3608EA61: mov dword ptr fs:[0], esp */ 1342 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1343 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1344 esp = esp - 0x18u; /* 0x3608EA68: sub esp, 0x18 */ 1345 _flag_k = FK_CMP; 1346 PUSH32(esp, ebx); /* 0x3608EA6B: push ebx */ 1347 PUSH32(esp, esi); /* 0x3608EA6C: push esi */ 1348 esi = ecx; /* 0x3608EA6D: mov esi, ecx */ 1349 PUSH32(esp, edi); /* 0x3608EA6F: push edi */ 1350 MEM32(ebp + (-0x1C)) = esi; /* 0x3608EA70: mov dword ptr [ebp - 0x1c], esi */ 1351 MEM32(esi) = 0x361729F8u; /* 0x3608EA73: mov dword ptr [esi], 0x361729f8 */ 1352 MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608EA79: mov dword ptr [esi + 8], 0x361729e8 */ 1353 MEM32(esi + 0x40) = 0x361729E0u; /* 0x3608EA80: mov dword ptr [esi + 0x40], 0x361729e0 */ 1354 MEM32(esi + 0x4C) = 0x361729D8u; /* 0x3608EA87: mov dword ptr [esi + 0x4c], 0x361729d8 */ 1355 eax = MEM32(esi + 0x6C); /* 0x3608EA8E: mov eax, dword ptr [esi + 0x6c] */ 1356 ecx = MEM32(eax + 0x4); /* 0x3608EA91: mov ecx, dword ptr [eax + 4] */ 1357 ecx = MEM32(ecx); /* 0x3608EA94: mov ecx, dword ptr [ecx] */ 1358 MEM32(ebp + (-0x10)) = ecx; /* 0x3608EA96: mov dword ptr [ebp - 0x10], ecx */ 1359 eax = MEM32(eax + 0x4); /* 0x3608EA99: mov eax, dword ptr [eax + 4] */ 1360 /* cmp ecx, eax */ /* 0x3608EA9C: cmp ecx, eax */ 1361 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1362 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1363 _flag_k = FK_CMP; 1364 MEM32(ebp + (-0x4)) = 2; /* 0x3608EA9E: mov dword ptr [ebp - 4], 2 */ 1365 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAD7; /* 0x3608EAA5: je 0x3608ead7 */ 1366 L_3608EAA7: 1367 edi = MEM32(ecx + 0x10); /* 0x3608EAA7: mov edi, dword ptr [ecx + 0x10] */ 1368 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1369 ebx = 0; /* 0x3608EAAA: xor ebx, ebx */ 1370 _cf = 0; 1371 _flag_k = FK_TEST; 1372 /* cmp edi, ebx */ /* 0x3608EAAC: cmp edi, ebx */ 1373 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1375 _flag_k = FK_CMP; 1376 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAC0; /* 0x3608EAAE: je 0x3608eac0 */ 1377 L_3608EAB0: 1378 ecx = edi; /* 0x3608EAB0: mov ecx, edi */ 1379 RECOMP_ICALL(0x360055D0u); /* 0x3608EAB2: call 0x360055d0 */ /* not lifted */ 1380 RECOMP_FLAGS_IN(); 1381 PUSH32(esp, edi); /* 0x3608EAB7: push edi */ 1382 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAB8: call 0x3615fcc4 */ /* not lifted */ 1383 RECOMP_FLAGS_IN(); 1384 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1386 esp = esp + 4; /* 0x3608EABD: add esp, 4 */ 1387 _flag_k = FK_ADD; 1388 L_3608EAC0: 1389 ecx = ebp + (-0x10); /* 0x3608EAC0: lea ecx, [ebp - 0x10] */ 1390 RECOMP_ICALL(0x36064140u); /* 0x3608EAC3: call 0x36064140 */ /* not lifted */ 1391 RECOMP_FLAGS_IN(); 1392 eax = MEM32(esi + 0x6C); /* 0x3608EAC8: mov eax, dword ptr [esi + 0x6c] */ 1393 eax = MEM32(eax + 0x4); /* 0x3608EACB: mov eax, dword ptr [eax + 4] */ 1394 ecx = MEM32(ebp + (-0x10)); /* 0x3608EACE: mov ecx, dword ptr [ebp - 0x10] */ 1395 /* cmp ecx, eax */ /* 0x3608EAD1: cmp ecx, eax */ 1396 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1397 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1398 _flag_k = FK_CMP; 1399 RECOMP_BACKEDGE(); 1400 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EAA7; /* 0x3608EAD3: jne 0x3608eaa7 */ 1401 L_3608EAD5: 1402 goto L_3608EAD9; /* 0x3608EAD5: jmp 0x3608ead9 */ 1403 L_3608EAD7: 1404 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1405 ebx = 0; /* 0x3608EAD7: xor ebx, ebx */ 1406 _cf = 0; 1407 _flag_k = FK_TEST; 1408 L_3608EAD9: 1409 edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */ 1410 /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */ 1411 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1412 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1413 _flag_k = FK_CMP; 1414 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */ 1415 L_3608EAE0: 1416 ecx = edi; /* 0x3608EAE0: mov ecx, edi */ 1417 RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */ 1418 RECOMP_FLAGS_IN(); 1419 PUSH32(esp, edi); /* 0x3608EAE7: push edi */ 1420 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */ 1421 RECOMP_FLAGS_IN(); 1422 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1423 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1424 esp = esp + 4; /* 0x3608EAED: add esp, 4 */ 1425 _flag_k = FK_ADD; 1426 L_3608EAF0: 1427 edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */ 1428 /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */ 1429 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1430 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1431 _flag_k = FK_CMP; 1432 MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */ 1433 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */ 1434 L_3608EAFA: 1435 ecx = edi; /* 0x3608EAFA: mov ecx, edi */ 1436 RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */ 1437 RECOMP_FLAGS_IN(); 1438 PUSH32(esp, edi); /* 0x3608EB01: push edi */ 1439 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */ 1440 RECOMP_FLAGS_IN(); 1441 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1442 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1443 esp = esp + 4; /* 0x3608EB07: add esp, 4 */ 1444 _flag_k = FK_ADD; 1445 L_3608EB0A: 1446 edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */ 1447 /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */ 1448 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1449 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1450 _flag_k = FK_CMP; 1451 MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */ 1452 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */ 1453 L_3608EB14: 1454 ecx = edi; /* 0x3608EB14: mov ecx, edi */ 1455 RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */ 1456 RECOMP_FLAGS_IN(); 1457 PUSH32(esp, edi); /* 0x3608EB1B: push edi */ 1458 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */ 1459 RECOMP_FLAGS_IN(); 1460 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1461 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1462 esp = esp + 4; /* 0x3608EB21: add esp, 4 */ 1463 _flag_k = FK_ADD; 1464 L_3608EB24: 1465 edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */ 1466 /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */ 1467 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1468 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1469 _flag_k = FK_CMP; 1470 MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */ 1471 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */ 1472 L_3608EB2E: 1473 ecx = edi; /* 0x3608EB2E: mov ecx, edi */ 1474 RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */ 1475 RECOMP_FLAGS_IN(); 1476 PUSH32(esp, edi); /* 0x3608EB35: push edi */ 1477 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */ 1478 RECOMP_FLAGS_IN(); 1479 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1480 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1481 esp = esp + 4; /* 0x3608EB3B: add esp, 4 */ 1482 _flag_k = FK_ADD; 1483 L_3608EB3E: 1484 edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */ 1485 /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */ 1486 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1488 _flag_k = FK_CMP; 1489 MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */ 1490 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */ 1491 L_3608EB48: 1492 ecx = edi; /* 0x3608EB48: mov ecx, edi */ 1493 RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */ 1494 RECOMP_FLAGS_IN(); 1495 PUSH32(esp, edi); /* 0x3608EB4F: push edi */ 1496 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */ 1497 RECOMP_FLAGS_IN(); 1498 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1499 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1500 esp = esp + 4; /* 0x3608EB55: add esp, 4 */ 1501 _flag_k = FK_ADD; 1502 L_3608EB58: 1503 eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */ 1504 MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */ 1505 ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */ 1506 eax = ecx; /* 0x3608EB61: mov eax, ecx */ 1507 ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */ 1508 /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */ 1509 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 1510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1511 _flag_k = FK_CMP; 1512 MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */ 1513 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */ 1514 L_3608EB70: 1515 eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */ 1516 /* test eax, eax */ /* 0x3608EB73: test eax, eax */ 1517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1518 _cf = 0; 1519 _flag_k = FK_TEST; 1520 MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */ 1521 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */ 1522 L_3608EB7A: 1523 ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */ 1524 edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */ 1525 /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */ 1526 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 1527 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1528 _flag_k = FK_CMP; 1529 MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */ 1530 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */ 1531 L_3608EB87: 1532 PUSH32(esp, 0); /* 0x3608EB87: push 0 */ 1533 ecx = edi; /* 0x3608EB89: mov ecx, edi */ 1534 RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */ 1535 RECOMP_FLAGS_IN(); 1536 eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */ 1537 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 1538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1539 edi = edi + 8; /* 0x3608EB93: add edi, 8 */ 1540 _flag_k = FK_ADD; 1541 /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */ 1542 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 1543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1544 _flag_k = FK_CMP; 1545 RECOMP_BACKEDGE(); 1546 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */ 1547 L_3608EB9A: 1548 eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */ 1549 L_3608EB9D: 1550 eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */ 1551 PUSH32(esp, eax); /* 0x3608EBA0: push eax */ 1552 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */ 1553 RECOMP_FLAGS_IN(); 1554 eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */ 1555 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1556 ecx = 0; /* 0x3608EBA9: xor ecx, ecx */ 1557 _cf = 0; 1558 _flag_k = FK_TEST; 1559 PUSH32(esp, eax); /* 0x3608EBAB: push eax */ 1560 MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */ 1561 MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */ 1562 MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */ 1563 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */ 1564 RECOMP_FLAGS_IN(); 1565 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 1566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1567 esp = esp + 8; /* 0x3608EBBA: add esp, 8 */ 1568 _flag_k = FK_ADD; 1569 L_3608EBBD: 1570 eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */ 1571 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */ 1572 /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */ 1573 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 1574 _cf = 0; 1575 _flag_k = FK_NARROW(FK_TEST, 24); 1576 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */ 1577 L_3608EBC7: 1578 PUSH32(esp, eax); /* 0x3608EBC7: push eax */ 1579 RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */ 1580 RECOMP_FLAGS_IN(); 1581 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1582 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1583 esp = esp + 4; /* 0x3608EBCD: add esp, 4 */ 1584 _flag_k = FK_ADD; 1585 goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */ 1586 L_3608EBD2: 1587 eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */ 1588 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */ 1589 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1591 _flag_k = FK_CMP; 1592 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */ 1593 L_3608EBDA: 1594 ebx = eax; /* 0x3608EBDA: mov ebx, eax */ 1595 eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */ 1596 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */ 1597 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 1598 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1599 _flag_k = FK_CMP; 1600 RECOMP_BACKEDGE(); 1601 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */ 1602 L_3608EBE4: 1603 /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */ 1604 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax); 1605 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1606 _flag_k = FK_CMP; 1607 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */ 1608 L_3608EBE9: 1609 ebx = eax; /* 0x3608EBE9: mov ebx, eax */ 1610 L_3608EBEB: 1611 /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */ 1612 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 1613 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1614 _flag_k = FK_CMP; 1615 RECOMP_BACKEDGE(); 1616 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */ 1617 L_3608EBF0: 1618 ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */ 1619 eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */ 1620 edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */ 1621 PUSH32(esp, eax); /* 0x3608EBF8: push eax */ 1622 PUSH32(esp, edx); /* 0x3608EBF9: push edx */ 1623 eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */ 1624 PUSH32(esp, eax); /* 0x3608EBFD: push eax */ 1625 RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */ 1626 RECOMP_FLAGS_IN(); 1627 edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */ 1628 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1629 ebx = 0; /* 0x3608EC06: xor ebx, ebx */ 1630 _cf = 0; 1631 _flag_k = FK_TEST; 1632 /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */ 1633 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1634 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1635 _flag_k = FK_CMP; 1636 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */ 1637 L_3608EC0C: 1638 eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */ 1639 ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */ 1640 PUSH32(esp, eax); /* 0x3608EC11: push eax */ 1641 PUSH32(esp, ecx); /* 0x3608EC12: push ecx */ 1642 ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */ 1643 PUSH32(esp, ecx); /* 0x3608EC16: push ecx */ 1644 ecx = edi; /* 0x3608EC17: mov ecx, edi */ 1645 RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */ 1646 RECOMP_FLAGS_IN(); 1647 eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */ 1648 PUSH32(esp, eax); /* 0x3608EC21: push eax */ 1649 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */ 1650 RECOMP_FLAGS_IN(); 1651 eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */ 1652 PUSH32(esp, eax); /* 0x3608EC2A: push eax */ 1653 MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */ 1654 MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */ 1655 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */ 1656 RECOMP_FLAGS_IN(); 1657 PUSH32(esp, edi); /* 0x3608EC36: push edi */ 1658 MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */ 1659 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */ 1660 RECOMP_FLAGS_IN(); 1661 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 1662 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1663 esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */ 1664 _flag_k = FK_ADD; 1665 L_3608EC42: 1666 eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */ 1667 /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */ 1668 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1669 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1670 _flag_k = FK_CMP; 1671 edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */ 1672 MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */ 1673 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */ 1674 L_3608EC52: 1675 PUSH32(esp, eax); /* 0x3608EC52: push eax */ 1676 RECOMP_ICALL(edi); /* 0x3608EC53: call edi */ 1677 RECOMP_FLAGS_IN(); 1678 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1679 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1680 esp = esp + 4; /* 0x3608EC55: add esp, 4 */ 1681 _flag_k = FK_ADD; 1682 MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */ 1683 L_3608EC5B: 1684 eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */ 1685 /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */ 1686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 1687 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1688 _flag_k = FK_CMP; 1689 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */ 1690 L_3608EC62: 1691 PUSH32(esp, eax); /* 0x3608EC62: push eax */ 1692 RECOMP_ICALL(edi); /* 0x3608EC63: call edi */ 1693 RECOMP_FLAGS_IN(); 1694 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1695 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1696 esp = esp + 4; /* 0x3608EC65: add esp, 4 */ 1697 _flag_k = FK_ADD; 1698 MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */ 1699 L_3608EC6B: 1700 ecx = esi; /* 0x3608EC6B: mov ecx, esi */ 1701 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 1702 _cf = (ecx) != 0; 1703 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */ 1704 _flag_k = FK_CMP; 1705 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */ 1706 ecx = _sc ? 0xFFFFFFFFu : 0; 1707 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1708 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1709 eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */ 1710 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1711 ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */ 1712 _cf = 0; 1713 _flag_k = FK_TEST; 1714 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */ 1715 RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */ 1716 RECOMP_FLAGS_IN(); 1717 ecx = esi; /* 0x3608EC7F: mov ecx, esi */ 1718 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 1719 _cf = (ecx) != 0; 1720 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */ 1721 _flag_k = FK_CMP; 1722 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */ 1723 ecx = _sc ? 0xFFFFFFFFu : 0; 1724 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 1725 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 1726 eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */ 1727 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1728 ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */ 1729 _cf = 0; 1730 _flag_k = FK_TEST; 1731 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */ 1732 RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */ 1733 RECOMP_FLAGS_IN(); 1734 ecx = esi; /* 0x3608EC93: mov ecx, esi */ 1735 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */ 1736 RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */ 1737 RECOMP_FLAGS_IN(); 1738 ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */ 1739 edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */ 1740 esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */ 1741 ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */ 1742 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */ 1743 esp = ebp; /* 0x3608ECAE: mov esp, ebp */ 1744 ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */ 1745 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret */ 1746 L_36166200: 1747 ecx = MEM32(ebp + (-0x10)); /* 0x36166200: mov ecx, dword ptr [ebp - 0x10] */ 1748 RECOMP_BACKEDGE(); 1749 goto L_3608EA50; /* 0x36166203: jmp 0x3608ea50 */ 1750 { RECOMP_REGS_OUT(); return; } /* end of function */ 1751 RECOMP_REGS_OUT(); 1752 } 1753 1754 void sub_36166208(void) { 1755 int _fpu_cmp = 0; 1756 uint32_t _cf = 0; 1757 int _df = 1; 1758 uint32_t _flag_k = FK_NONE; 1759 uint32_t _flag_a = 0, _flag_b = 0; 1760 uint32_t _itail_tgt = 0; 1761 RECOMP_REGS_LOCALS 1762 RECOMP_ENTER(0x36166208u); 1763 1764 L_36166208: 1765 eax = MEM32(ebp + 0x8); /* 0x36166208: mov eax, dword ptr [ebp + 8] */ 1766 PUSH32(esp, eax); /* 0x3616620B: push eax */ 1767 RECOMP_ICALL(0x3615FCC4u); /* 0x3616620C: call 0x3615fcc4 */ /* not lifted */ 1768 RECOMP_FLAGS_IN(); 1769 ecx = POP32_VAL(esp); /* 0x36166211: pop ecx */ 1770 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166212: ret */ 1771 RECOMP_REGS_OUT(); 1772 } 1773 1774 void sub_36166213(void) { 1775 int _fpu_cmp = 0; 1776 uint32_t _cf = 0; 1777 int _df = 1; 1778 uint32_t _flag_k = FK_NONE; 1779 uint32_t _flag_a = 0, _flag_b = 0; 1780 uint32_t _itail_tgt = 0; 1781 RECOMP_REGS_LOCALS 1782 RECOMP_ENTER(0x36166213u); 1783 1784 goto L_36166213; 1785 L_3615FD76: 1786 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 1787 L_36166213: 1788 eax = 0x3618B2A0u; /* 0x36166213: mov eax, 0x3618b2a0 */ 1789 L_36166218: 1790 RECOMP_BACKEDGE(); 1791 goto L_3615FD76; /* 0x36166218: jmp 0x3615fd76 */ 1792 { RECOMP_REGS_OUT(); return; } /* end of function */ 1793 _ljump: 1794 switch (_itail_tgt) { 1795 case 0x3615FD76u: goto L_3615FD76; 1796 case 0x36166213u: goto L_36166213; 1797 case 0x36166218u: goto L_36166218; 1798 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1799 } 1800 RECOMP_REGS_OUT(); 1801 } 1802 1803 void sub_36166220(void) { 1804 int _fpu_cmp = 0; 1805 uint32_t _cf = 0; 1806 int _df = 1; 1807 uint32_t _flag_k = FK_NONE; 1808 uint32_t _flag_a = 0, _flag_b = 0; 1809 uint32_t _itail_tgt = 0; 1810 RECOMP_REGS_LOCALS 1811 RECOMP_ENTER(0x36166220u); 1812 1813 goto L_36166220; 1814 L_3608EA50: 1815 PUSH32(esp, ebp); /* 0x3608EA50: push ebp */ 1816 ebp = esp; /* 0x3608EA51: mov ebp, esp */ 1817 PUSH32(esp, 0xFFFFFFFFu); /* 0x3608EA53: push -1 */ 1818 PUSH32(esp, 0x36166176u); /* 0x3608EA55: push 0x36166176 */ 1819 eax = MEM32(FS_BASE + (0)); /* 0x3608EA5A: mov eax, dword ptr fs:[0] */ 1820 PUSH32(esp, eax); /* 0x3608EA60: push eax */ 1821 MEM32(FS_BASE + (0)) = esp; /* 0x3608EA61: mov dword ptr fs:[0], esp */ 1822 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 1823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1824 esp = esp - 0x18u; /* 0x3608EA68: sub esp, 0x18 */ 1825 _flag_k = FK_CMP; 1826 PUSH32(esp, ebx); /* 0x3608EA6B: push ebx */ 1827 PUSH32(esp, esi); /* 0x3608EA6C: push esi */ 1828 esi = ecx; /* 0x3608EA6D: mov esi, ecx */ 1829 PUSH32(esp, edi); /* 0x3608EA6F: push edi */ 1830 MEM32(ebp + (-0x1C)) = esi; /* 0x3608EA70: mov dword ptr [ebp - 0x1c], esi */ 1831 MEM32(esi) = 0x361729F8u; /* 0x3608EA73: mov dword ptr [esi], 0x361729f8 */ 1832 MEM32(esi + 0x8) = 0x361729E8u; /* 0x3608EA79: mov dword ptr [esi + 8], 0x361729e8 */ 1833 MEM32(esi + 0x40) = 0x361729E0u; /* 0x3608EA80: mov dword ptr [esi + 0x40], 0x361729e0 */ 1834 MEM32(esi + 0x4C) = 0x361729D8u; /* 0x3608EA87: mov dword ptr [esi + 0x4c], 0x361729d8 */ 1835 eax = MEM32(esi + 0x6C); /* 0x3608EA8E: mov eax, dword ptr [esi + 0x6c] */ 1836 ecx = MEM32(eax + 0x4); /* 0x3608EA91: mov ecx, dword ptr [eax + 4] */ 1837 ecx = MEM32(ecx); /* 0x3608EA94: mov ecx, dword ptr [ecx] */ 1838 MEM32(ebp + (-0x10)) = ecx; /* 0x3608EA96: mov dword ptr [ebp - 0x10], ecx */ 1839 eax = MEM32(eax + 0x4); /* 0x3608EA99: mov eax, dword ptr [eax + 4] */ 1840 /* cmp ecx, eax */ /* 0x3608EA9C: cmp ecx, eax */ 1841 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1843 _flag_k = FK_CMP; 1844 MEM32(ebp + (-0x4)) = 2; /* 0x3608EA9E: mov dword ptr [ebp - 4], 2 */ 1845 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAD7; /* 0x3608EAA5: je 0x3608ead7 */ 1846 L_3608EAA7: 1847 edi = MEM32(ecx + 0x10); /* 0x3608EAA7: mov edi, dword ptr [ecx + 0x10] */ 1848 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1849 ebx = 0; /* 0x3608EAAA: xor ebx, ebx */ 1850 _cf = 0; 1851 _flag_k = FK_TEST; 1852 /* cmp edi, ebx */ /* 0x3608EAAC: cmp edi, ebx */ 1853 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1854 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1855 _flag_k = FK_CMP; 1856 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAC0; /* 0x3608EAAE: je 0x3608eac0 */ 1857 L_3608EAB0: 1858 ecx = edi; /* 0x3608EAB0: mov ecx, edi */ 1859 RECOMP_ICALL(0x360055D0u); /* 0x3608EAB2: call 0x360055d0 */ /* not lifted */ 1860 RECOMP_FLAGS_IN(); 1861 PUSH32(esp, edi); /* 0x3608EAB7: push edi */ 1862 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAB8: call 0x3615fcc4 */ /* not lifted */ 1863 RECOMP_FLAGS_IN(); 1864 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1865 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1866 esp = esp + 4; /* 0x3608EABD: add esp, 4 */ 1867 _flag_k = FK_ADD; 1868 L_3608EAC0: 1869 ecx = ebp + (-0x10); /* 0x3608EAC0: lea ecx, [ebp - 0x10] */ 1870 RECOMP_ICALL(0x36064140u); /* 0x3608EAC3: call 0x36064140 */ /* not lifted */ 1871 RECOMP_FLAGS_IN(); 1872 eax = MEM32(esi + 0x6C); /* 0x3608EAC8: mov eax, dword ptr [esi + 0x6c] */ 1873 eax = MEM32(eax + 0x4); /* 0x3608EACB: mov eax, dword ptr [eax + 4] */ 1874 ecx = MEM32(ebp + (-0x10)); /* 0x3608EACE: mov ecx, dword ptr [ebp - 0x10] */ 1875 /* cmp ecx, eax */ /* 0x3608EAD1: cmp ecx, eax */ 1876 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 1877 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1878 _flag_k = FK_CMP; 1879 RECOMP_BACKEDGE(); 1880 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EAA7; /* 0x3608EAD3: jne 0x3608eaa7 */ 1881 L_3608EAD5: 1882 goto L_3608EAD9; /* 0x3608EAD5: jmp 0x3608ead9 */ 1883 L_3608EAD7: 1884 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1885 ebx = 0; /* 0x3608EAD7: xor ebx, ebx */ 1886 _cf = 0; 1887 _flag_k = FK_TEST; 1888 L_3608EAD9: 1889 edi = MEM32(esi + 0x6C); /* 0x3608EAD9: mov edi, dword ptr [esi + 0x6c] */ 1890 /* cmp edi, ebx */ /* 0x3608EADC: cmp edi, ebx */ 1891 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1892 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1893 _flag_k = FK_CMP; 1894 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EAF0; /* 0x3608EADE: je 0x3608eaf0 */ 1895 L_3608EAE0: 1896 ecx = edi; /* 0x3608EAE0: mov ecx, edi */ 1897 RECOMP_ICALL(0x360910D0u); /* 0x3608EAE2: call 0x360910d0 */ /* not lifted */ 1898 RECOMP_FLAGS_IN(); 1899 PUSH32(esp, edi); /* 0x3608EAE7: push edi */ 1900 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EAE8: call 0x3615fcc4 */ /* not lifted */ 1901 RECOMP_FLAGS_IN(); 1902 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1904 esp = esp + 4; /* 0x3608EAED: add esp, 4 */ 1905 _flag_k = FK_ADD; 1906 L_3608EAF0: 1907 edi = MEM32(esi + 0x5C); /* 0x3608EAF0: mov edi, dword ptr [esi + 0x5c] */ 1908 /* cmp edi, ebx */ /* 0x3608EAF3: cmp edi, ebx */ 1909 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1910 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1911 _flag_k = FK_CMP; 1912 MEM32(esi + 0x6C) = ebx; /* 0x3608EAF5: mov dword ptr [esi + 0x6c], ebx */ 1913 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB0A; /* 0x3608EAF8: je 0x3608eb0a */ 1914 L_3608EAFA: 1915 ecx = edi; /* 0x3608EAFA: mov ecx, edi */ 1916 RECOMP_ICALL(0x360765D0u); /* 0x3608EAFC: call 0x360765d0 */ /* not lifted */ 1917 RECOMP_FLAGS_IN(); 1918 PUSH32(esp, edi); /* 0x3608EB01: push edi */ 1919 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB02: call 0x3615fcc4 */ /* not lifted */ 1920 RECOMP_FLAGS_IN(); 1921 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1922 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1923 esp = esp + 4; /* 0x3608EB07: add esp, 4 */ 1924 _flag_k = FK_ADD; 1925 L_3608EB0A: 1926 edi = MEM32(esi + 0x60); /* 0x3608EB0A: mov edi, dword ptr [esi + 0x60] */ 1927 /* cmp edi, ebx */ /* 0x3608EB0D: cmp edi, ebx */ 1928 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1929 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1930 _flag_k = FK_CMP; 1931 MEM32(esi + 0x5C) = ebx; /* 0x3608EB0F: mov dword ptr [esi + 0x5c], ebx */ 1932 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB24; /* 0x3608EB12: je 0x3608eb24 */ 1933 L_3608EB14: 1934 ecx = edi; /* 0x3608EB14: mov ecx, edi */ 1935 RECOMP_ICALL(0x360765D0u); /* 0x3608EB16: call 0x360765d0 */ /* not lifted */ 1936 RECOMP_FLAGS_IN(); 1937 PUSH32(esp, edi); /* 0x3608EB1B: push edi */ 1938 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB1C: call 0x3615fcc4 */ /* not lifted */ 1939 RECOMP_FLAGS_IN(); 1940 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1941 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1942 esp = esp + 4; /* 0x3608EB21: add esp, 4 */ 1943 _flag_k = FK_ADD; 1944 L_3608EB24: 1945 edi = MEM32(esi + 0x64); /* 0x3608EB24: mov edi, dword ptr [esi + 0x64] */ 1946 /* cmp edi, ebx */ /* 0x3608EB27: cmp edi, ebx */ 1947 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1948 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1949 _flag_k = FK_CMP; 1950 MEM32(esi + 0x60) = ebx; /* 0x3608EB29: mov dword ptr [esi + 0x60], ebx */ 1951 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB3E; /* 0x3608EB2C: je 0x3608eb3e */ 1952 L_3608EB2E: 1953 ecx = edi; /* 0x3608EB2E: mov ecx, edi */ 1954 RECOMP_ICALL(0x360765D0u); /* 0x3608EB30: call 0x360765d0 */ /* not lifted */ 1955 RECOMP_FLAGS_IN(); 1956 PUSH32(esp, edi); /* 0x3608EB35: push edi */ 1957 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB36: call 0x3615fcc4 */ /* not lifted */ 1958 RECOMP_FLAGS_IN(); 1959 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1960 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1961 esp = esp + 4; /* 0x3608EB3B: add esp, 4 */ 1962 _flag_k = FK_ADD; 1963 L_3608EB3E: 1964 edi = MEM32(esi + 0x58); /* 0x3608EB3E: mov edi, dword ptr [esi + 0x58] */ 1965 /* cmp edi, ebx */ /* 0x3608EB41: cmp edi, ebx */ 1966 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 1967 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1968 _flag_k = FK_CMP; 1969 MEM32(esi + 0x64) = ebx; /* 0x3608EB43: mov dword ptr [esi + 0x64], ebx */ 1970 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB58; /* 0x3608EB46: je 0x3608eb58 */ 1971 L_3608EB48: 1972 ecx = edi; /* 0x3608EB48: mov ecx, edi */ 1973 RECOMP_ICALL(0x36096200u); /* 0x3608EB4A: call 0x36096200 */ /* not lifted */ 1974 RECOMP_FLAGS_IN(); 1975 PUSH32(esp, edi); /* 0x3608EB4F: push edi */ 1976 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EB50: call 0x3615fcc4 */ /* not lifted */ 1977 RECOMP_FLAGS_IN(); 1978 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1980 esp = esp + 4; /* 0x3608EB55: add esp, 4 */ 1981 _flag_k = FK_ADD; 1982 L_3608EB58: 1983 eax = MEM32(esi + 0x54); /* 0x3608EB58: mov eax, dword ptr [esi + 0x54] */ 1984 MEM32(esi + 0x58) = ebx; /* 0x3608EB5B: mov dword ptr [esi + 0x58], ebx */ 1985 ecx = MEM32(eax + 0x4); /* 0x3608EB5E: mov ecx, dword ptr [eax + 4] */ 1986 eax = ecx; /* 0x3608EB61: mov eax, ecx */ 1987 ebx = MEM32(eax); /* 0x3608EB63: mov ebx, dword ptr [eax] */ 1988 /* cmp ebx, ecx */ /* 0x3608EB65: cmp ebx, ecx */ 1989 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ecx); 1990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1991 _flag_k = FK_CMP; 1992 MEM32(ebp + (-0x18)) = ecx; /* 0x3608EB67: mov dword ptr [ebp - 0x18], ecx */ 1993 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBF0; /* 0x3608EB6A: je 0x3608ebf0 */ 1994 L_3608EB70: 1995 eax = MEM32(ebx + 0x10); /* 0x3608EB70: mov eax, dword ptr [ebx + 0x10] */ 1996 /* test eax, eax */ /* 0x3608EB73: test eax, eax */ 1997 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 1998 _cf = 0; 1999 _flag_k = FK_TEST; 2000 MEM32(ebp + (-0x10)) = eax; /* 0x3608EB75: mov dword ptr [ebp - 0x10], eax */ 2001 if (TEST_Z(_flag_a, _flag_b)) goto L_3608EBBD; /* 0x3608EB78: je 0x3608ebbd */ 2002 L_3608EB7A: 2003 ecx = MEM32(eax + 0x8); /* 0x3608EB7A: mov ecx, dword ptr [eax + 8] */ 2004 edi = MEM32(eax + 0x4); /* 0x3608EB7D: mov edi, dword ptr [eax + 4] */ 2005 /* cmp edi, ecx */ /* 0x3608EB80: cmp edi, ecx */ 2006 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 2007 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2008 _flag_k = FK_CMP; 2009 MEM32(ebp + (-0x14)) = ecx; /* 0x3608EB82: mov dword ptr [ebp - 0x14], ecx */ 2010 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EB9D; /* 0x3608EB85: je 0x3608eb9d */ 2011 L_3608EB87: 2012 PUSH32(esp, 0); /* 0x3608EB87: push 0 */ 2013 ecx = edi; /* 0x3608EB89: mov ecx, edi */ 2014 RECOMP_ICALL(0x36091500u); /* 0x3608EB8B: call 0x36091500 */ /* not lifted */ 2015 RECOMP_FLAGS_IN(); 2016 eax = MEM32(ebp + (-0x14)); /* 0x3608EB90: mov eax, dword ptr [ebp - 0x14] */ 2017 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(8); 2018 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2019 edi = edi + 8; /* 0x3608EB93: add edi, 8 */ 2020 _flag_k = FK_ADD; 2021 /* cmp edi, eax */ /* 0x3608EB96: cmp edi, eax */ 2022 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2023 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2024 _flag_k = FK_CMP; 2025 RECOMP_BACKEDGE(); 2026 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB87; /* 0x3608EB98: jne 0x3608eb87 */ 2027 L_3608EB9A: 2028 eax = MEM32(ebp + (-0x10)); /* 0x3608EB9A: mov eax, dword ptr [ebp - 0x10] */ 2029 L_3608EB9D: 2030 eax = MEM32(eax + 0x4); /* 0x3608EB9D: mov eax, dword ptr [eax + 4] */ 2031 PUSH32(esp, eax); /* 0x3608EBA0: push eax */ 2032 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBA1: call 0x3615fcc4 */ /* not lifted */ 2033 RECOMP_FLAGS_IN(); 2034 eax = MEM32(ebp + (-0x10)); /* 0x3608EBA6: mov eax, dword ptr [ebp - 0x10] */ 2035 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2036 ecx = 0; /* 0x3608EBA9: xor ecx, ecx */ 2037 _cf = 0; 2038 _flag_k = FK_TEST; 2039 PUSH32(esp, eax); /* 0x3608EBAB: push eax */ 2040 MEM32(eax + 0x4) = ecx; /* 0x3608EBAC: mov dword ptr [eax + 4], ecx */ 2041 MEM32(eax + 0x8) = ecx; /* 0x3608EBAF: mov dword ptr [eax + 8], ecx */ 2042 MEM32(eax + 0xC) = ecx; /* 0x3608EBB2: mov dword ptr [eax + 0xc], ecx */ 2043 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EBB5: call 0x3615fcc4 */ /* not lifted */ 2044 RECOMP_FLAGS_IN(); 2045 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2046 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2047 esp = esp + 8; /* 0x3608EBBA: add esp, 8 */ 2048 _flag_k = FK_ADD; 2049 L_3608EBBD: 2050 eax = MEM32(ebx + 0x8); /* 0x3608EBBD: mov eax, dword ptr [ebx + 8] */ 2051 SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3608EBC0: mov cl, byte ptr [eax + 0x15] */ 2052 /* test LO8(ecx), LO8(ecx) */ /* 0x3608EBC3: test cl, cl */ 2053 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 2054 _cf = 0; 2055 _flag_k = FK_NARROW(FK_TEST, 24); 2056 if (TEST_NZ(_flag_a, _flag_b)) goto L_3608EBD2; /* 0x3608EBC5: jne 0x3608ebd2 */ 2057 L_3608EBC7: 2058 PUSH32(esp, eax); /* 0x3608EBC7: push eax */ 2059 RECOMP_ICALL(0x3614FC90u); /* 0x3608EBC8: call 0x3614fc90 */ /* not lifted */ 2060 RECOMP_FLAGS_IN(); 2061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2063 esp = esp + 4; /* 0x3608EBCD: add esp, 4 */ 2064 _flag_k = FK_ADD; 2065 goto L_3608EBE9; /* 0x3608EBD0: jmp 0x3608ebe9 */ 2066 L_3608EBD2: 2067 eax = MEM32(ebx + 0x4); /* 0x3608EBD2: mov eax, dword ptr [ebx + 4] */ 2068 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBD5: cmp ebx, dword ptr [eax + 8] */ 2069 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2070 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2071 _flag_k = FK_CMP; 2072 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EBE4; /* 0x3608EBD8: jne 0x3608ebe4 */ 2073 L_3608EBDA: 2074 ebx = eax; /* 0x3608EBDA: mov ebx, eax */ 2075 eax = MEM32(eax + 0x4); /* 0x3608EBDC: mov eax, dword ptr [eax + 4] */ 2076 /* cmp ebx, MEM32(eax + 0x8) */ /* 0x3608EBDF: cmp ebx, dword ptr [eax + 8] */ 2077 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(eax + 0x8)); 2078 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2079 _flag_k = FK_CMP; 2080 RECOMP_BACKEDGE(); 2081 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBDA; /* 0x3608EBE2: je 0x3608ebda */ 2082 L_3608EBE4: 2083 /* cmp MEM32(ebx + 0x8), eax */ /* 0x3608EBE4: cmp dword ptr [ebx + 8], eax */ 2084 _flag_a = (uint32_t)(MEM32(ebx + 0x8)); _flag_b = (uint32_t)(eax); 2085 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2086 _flag_k = FK_CMP; 2087 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EBEB; /* 0x3608EBE7: je 0x3608ebeb */ 2088 L_3608EBE9: 2089 ebx = eax; /* 0x3608EBE9: mov ebx, eax */ 2090 L_3608EBEB: 2091 /* cmp ebx, MEM32(ebp + (-0x18)) */ /* 0x3608EBEB: cmp ebx, dword ptr [ebp - 0x18] */ 2092 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 2093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2094 _flag_k = FK_CMP; 2095 RECOMP_BACKEDGE(); 2096 if (CMP_NE(_flag_a, _flag_b)) goto L_3608EB70; /* 0x3608EBEE: jne 0x3608eb70 */ 2097 L_3608EBF0: 2098 ecx = MEM32(esi + 0x54); /* 0x3608EBF0: mov ecx, dword ptr [esi + 0x54] */ 2099 eax = MEM32(ecx + 0x4); /* 0x3608EBF3: mov eax, dword ptr [ecx + 4] */ 2100 edx = MEM32(eax); /* 0x3608EBF6: mov edx, dword ptr [eax] */ 2101 PUSH32(esp, eax); /* 0x3608EBF8: push eax */ 2102 PUSH32(esp, edx); /* 0x3608EBF9: push edx */ 2103 eax = ebp + (-0x18); /* 0x3608EBFA: lea eax, [ebp - 0x18] */ 2104 PUSH32(esp, eax); /* 0x3608EBFD: push eax */ 2105 RECOMP_ICALL(0x36091190u); /* 0x3608EBFE: call 0x36091190 */ /* not lifted */ 2106 RECOMP_FLAGS_IN(); 2107 edi = MEM32(esi + 0x54); /* 0x3608EC03: mov edi, dword ptr [esi + 0x54] */ 2108 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2109 ebx = 0; /* 0x3608EC06: xor ebx, ebx */ 2110 _cf = 0; 2111 _flag_k = FK_TEST; 2112 /* cmp edi, ebx */ /* 0x3608EC08: cmp edi, ebx */ 2113 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 2114 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2115 _flag_k = FK_CMP; 2116 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC42; /* 0x3608EC0A: je 0x3608ec42 */ 2117 L_3608EC0C: 2118 eax = MEM32(edi + 0x4); /* 0x3608EC0C: mov eax, dword ptr [edi + 4] */ 2119 ecx = MEM32(eax); /* 0x3608EC0F: mov ecx, dword ptr [eax] */ 2120 PUSH32(esp, eax); /* 0x3608EC11: push eax */ 2121 PUSH32(esp, ecx); /* 0x3608EC12: push ecx */ 2122 ecx = ebp + (-0x18); /* 0x3608EC13: lea ecx, [ebp - 0x18] */ 2123 PUSH32(esp, ecx); /* 0x3608EC16: push ecx */ 2124 ecx = edi; /* 0x3608EC17: mov ecx, edi */ 2125 RECOMP_ICALL(0x36091190u); /* 0x3608EC19: call 0x36091190 */ /* not lifted */ 2126 RECOMP_FLAGS_IN(); 2127 eax = MEM32(edi + 0x4); /* 0x3608EC1E: mov eax, dword ptr [edi + 4] */ 2128 PUSH32(esp, eax); /* 0x3608EC21: push eax */ 2129 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC22: call 0x3615fcc4 */ /* not lifted */ 2130 RECOMP_FLAGS_IN(); 2131 eax = MEM32(edi + 0x8); /* 0x3608EC27: mov eax, dword ptr [edi + 8] */ 2132 PUSH32(esp, eax); /* 0x3608EC2A: push eax */ 2133 MEM32(edi + 0x4) = ebx; /* 0x3608EC2B: mov dword ptr [edi + 4], ebx */ 2134 MEM32(edi + 0x10) = ebx; /* 0x3608EC2E: mov dword ptr [edi + 0x10], ebx */ 2135 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC31: call 0x3615fcc4 */ /* not lifted */ 2136 RECOMP_FLAGS_IN(); 2137 PUSH32(esp, edi); /* 0x3608EC36: push edi */ 2138 MEM32(edi + 0x8) = ebx; /* 0x3608EC37: mov dword ptr [edi + 8], ebx */ 2139 RECOMP_ICALL(0x3615FCC4u); /* 0x3608EC3A: call 0x3615fcc4 */ /* not lifted */ 2140 RECOMP_FLAGS_IN(); 2141 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2142 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2143 esp = esp + 0xCu; /* 0x3608EC3F: add esp, 0xc */ 2144 _flag_k = FK_ADD; 2145 L_3608EC42: 2146 eax = MEM32(esi + 0x78); /* 0x3608EC42: mov eax, dword ptr [esi + 0x78] */ 2147 /* cmp eax, ebx */ /* 0x3608EC45: cmp eax, ebx */ 2148 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2149 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2150 _flag_k = FK_CMP; 2151 edi = MEM32(0x3616F1A4); /* 0x3608EC47: mov edi, dword ptr [0x3616f1a4] */ 2152 MEM32(esi + 0x54) = ebx; /* 0x3608EC4D: mov dword ptr [esi + 0x54], ebx */ 2153 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC5B; /* 0x3608EC50: je 0x3608ec5b */ 2154 L_3608EC52: 2155 PUSH32(esp, eax); /* 0x3608EC52: push eax */ 2156 RECOMP_ICALL(edi); /* 0x3608EC53: call edi */ 2157 RECOMP_FLAGS_IN(); 2158 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2159 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2160 esp = esp + 4; /* 0x3608EC55: add esp, 4 */ 2161 _flag_k = FK_ADD; 2162 MEM32(esi + 0x78) = ebx; /* 0x3608EC58: mov dword ptr [esi + 0x78], ebx */ 2163 L_3608EC5B: 2164 eax = MEM32(esi + 0x7C); /* 0x3608EC5B: mov eax, dword ptr [esi + 0x7c] */ 2165 /* cmp eax, ebx */ /* 0x3608EC5E: cmp eax, ebx */ 2166 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 2167 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2168 _flag_k = FK_CMP; 2169 if (CMP_EQ(_flag_a, _flag_b)) goto L_3608EC6B; /* 0x3608EC60: je 0x3608ec6b */ 2170 L_3608EC62: 2171 PUSH32(esp, eax); /* 0x3608EC62: push eax */ 2172 RECOMP_ICALL(edi); /* 0x3608EC63: call edi */ 2173 RECOMP_FLAGS_IN(); 2174 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2175 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2176 esp = esp + 4; /* 0x3608EC65: add esp, 4 */ 2177 _flag_k = FK_ADD; 2178 MEM32(esi + 0x7C) = ebx; /* 0x3608EC68: mov dword ptr [esi + 0x7c], ebx */ 2179 L_3608EC6B: 2180 ecx = esi; /* 0x3608EC6B: mov ecx, esi */ 2181 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2182 _cf = (ecx) != 0; 2183 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC6D: neg ecx */ 2184 _flag_k = FK_CMP; 2185 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC6F: sbb ecx, ecx */ 2186 ecx = _sc ? 0xFFFFFFFFu : 0; 2187 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2188 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2189 eax = esi + 0x4C; /* 0x3608EC71: lea eax, [esi + 0x4c] */ 2190 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2191 ecx = ecx & eax; /* 0x3608EC74: and ecx, eax */ 2192 _cf = 0; 2193 _flag_k = FK_TEST; 2194 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3608EC76: mov byte ptr [ebp - 4], 1 */ 2195 RECOMP_ICALL(0x3608AB50u); /* 0x3608EC7A: call 0x3608ab50 */ /* not lifted */ 2196 RECOMP_FLAGS_IN(); 2197 ecx = esi; /* 0x3608EC7F: mov ecx, esi */ 2198 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2199 _cf = (ecx) != 0; 2200 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3608EC81: neg ecx */ 2201 _flag_k = FK_CMP; 2202 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3608EC83: sbb ecx, ecx */ 2203 ecx = _sc ? 0xFFFFFFFFu : 0; 2204 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2205 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2206 eax = esi + 0x40; /* 0x3608EC85: lea eax, [esi + 0x40] */ 2207 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2208 ecx = ecx & eax; /* 0x3608EC88: and ecx, eax */ 2209 _cf = 0; 2210 _flag_k = FK_TEST; 2211 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3608EC8A: mov byte ptr [ebp - 4], 0 */ 2212 RECOMP_ICALL(0x3608A4D0u); /* 0x3608EC8E: call 0x3608a4d0 */ /* not lifted */ 2213 RECOMP_FLAGS_IN(); 2214 ecx = esi; /* 0x3608EC93: mov ecx, esi */ 2215 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3608EC95: mov dword ptr [ebp - 4], 0xffffffff */ 2216 RECOMP_ICALL(0x36002000u); /* 0x3608EC9C: call 0x36002000 */ /* not lifted */ 2217 RECOMP_FLAGS_IN(); 2218 ecx = MEM32(ebp + (-0xC)); /* 0x3608ECA1: mov ecx, dword ptr [ebp - 0xc] */ 2219 edi = POP32_VAL(esp); /* 0x3608ECA4: pop edi */ 2220 esi = POP32_VAL(esp); /* 0x3608ECA5: pop esi */ 2221 ebx = POP32_VAL(esp); /* 0x3608ECA6: pop ebx */ 2222 MEM32(FS_BASE + (0)) = ecx; /* 0x3608ECA7: mov dword ptr fs:[0], ecx */ 2223 esp = ebp; /* 0x3608ECAE: mov esp, ebp */ 2224 ebp = POP32_VAL(esp); /* 0x3608ECB0: pop ebp */ 2225 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3608ECB1: ret */ 2226 L_36166220: 2227 ecx = MEM32(ebp + (-0x10)); /* 0x36166220: mov ecx, dword ptr [ebp - 0x10] */ 2228 RECOMP_BACKEDGE(); 2229 goto L_3608EA50; /* 0x36166223: jmp 0x3608ea50 */ 2230 { RECOMP_REGS_OUT(); return; } /* end of function */ 2231 RECOMP_REGS_OUT(); 2232 } 2233 2234 void sub_36166228(void) { 2235 int _fpu_cmp = 0; 2236 uint32_t _cf = 0; 2237 int _df = 1; 2238 uint32_t _flag_k = FK_NONE; 2239 uint32_t _flag_a = 0, _flag_b = 0; 2240 uint32_t _itail_tgt = 0; 2241 RECOMP_REGS_LOCALS 2242 RECOMP_ENTER(0x36166228u); 2243 2244 goto L_36166228; 2245 L_3615FD76: 2246 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 2247 L_36166228: 2248 eax = 0x3618B2D0u; /* 0x36166228: mov eax, 0x3618b2d0 */ 2249 L_3616622D: 2250 RECOMP_BACKEDGE(); 2251 goto L_3615FD76; /* 0x3616622D: jmp 0x3615fd76 */ 2252 { RECOMP_REGS_OUT(); return; } /* end of function */ 2253 _ljump: 2254 switch (_itail_tgt) { 2255 case 0x3615FD76u: goto L_3615FD76; 2256 case 0x36166228u: goto L_36166228; 2257 case 0x3616622Du: goto L_3616622D; 2258 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2259 } 2260 RECOMP_REGS_OUT(); 2261 } 2262 2263 void sub_36166240(void) { 2264 int _fpu_cmp = 0; 2265 uint32_t _cf = 0; 2266 int _df = 1; 2267 uint32_t _flag_k = FK_NONE; 2268 uint32_t _flag_a = 0, _flag_b = 0; 2269 uint32_t _itail_tgt = 0; 2270 RECOMP_REGS_LOCALS 2271 RECOMP_ENTER(0x36166240u); 2272 2273 goto L_36166240; 2274 L_3609CC20: 2275 PUSH32(esp, ebp); /* 0x3609CC20: push ebp */ 2276 ebp = esp; /* 0x3609CC21: mov ebp, esp */ 2277 PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */ 2278 PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */ 2279 eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */ 2280 PUSH32(esp, eax); /* 0x3609CC30: push eax */ 2281 MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */ 2282 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2283 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2284 esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */ 2285 _flag_k = FK_CMP; 2286 PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */ 2287 PUSH32(esp, esi); /* 0x3609CC3C: push esi */ 2288 esi = ecx; /* 0x3609CC3D: mov esi, ecx */ 2289 PUSH32(esp, edi); /* 0x3609CC3F: push edi */ 2290 MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */ 2291 MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */ 2292 MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */ 2293 MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */ 2294 MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */ 2295 MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */ 2296 MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */ 2297 MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */ 2298 MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */ 2299 ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */ 2300 /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */ 2301 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2302 _cf = 0; 2303 _flag_k = FK_TEST; 2304 MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */ 2305 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */ 2306 L_3609CC97: 2307 eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */ 2308 edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */ 2309 /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */ 2310 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2311 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2312 _flag_k = FK_CMP; 2313 MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */ 2314 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */ 2315 L_3609CCA3: 2316 eax = edi; /* 0x3609CCA3: mov eax, edi */ 2317 edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */ 2318 PUSH32(esp, eax); /* 0x3609CCA7: push eax */ 2319 eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */ 2320 PUSH32(esp, eax); /* 0x3609CCAB: push eax */ 2321 ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */ 2322 RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */ 2323 RECOMP_FLAGS_IN(); 2324 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */ 2325 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2326 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2327 _flag_k = FK_CMP; 2328 RECOMP_BACKEDGE(); 2329 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */ 2330 L_3609CCB8: 2331 eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */ 2332 PUSH32(esp, eax); /* 0x3609CCBB: push eax */ 2333 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */ 2334 RECOMP_FLAGS_IN(); 2335 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2336 eax = 0; /* 0x3609CCC1: xor eax, eax */ 2337 _cf = 0; 2338 _flag_k = FK_TEST; 2339 PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */ 2340 MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */ 2341 MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */ 2342 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */ 2343 RECOMP_FLAGS_IN(); 2344 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2345 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2346 esp = esp + 8; /* 0x3609CCCF: add esp, 8 */ 2347 _flag_k = FK_ADD; 2348 L_3609CCD2: 2349 ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */ 2350 /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */ 2351 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2352 _cf = 0; 2353 _flag_k = FK_TEST; 2354 MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */ 2355 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */ 2356 L_3609CCE6: 2357 eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */ 2358 edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */ 2359 /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */ 2360 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2362 _flag_k = FK_CMP; 2363 MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */ 2364 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */ 2365 L_3609CCF2: 2366 PUSH32(esp, 0); /* 0x3609CCF2: push 0 */ 2367 ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */ 2368 eax = edi; /* 0x3609CCF7: mov eax, edi */ 2369 edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */ 2370 PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */ 2371 ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */ 2372 MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */ 2373 RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */ 2374 RECOMP_FLAGS_IN(); 2375 eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */ 2376 ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */ 2377 edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */ 2378 MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */ 2379 ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */ 2380 edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */ 2381 PUSH32(esp, eax); /* 0x3609CD15: push eax */ 2382 MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */ 2383 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */ 2384 RECOMP_FLAGS_IN(); 2385 ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */ 2386 eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */ 2387 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2388 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2389 esp = esp + 4; /* 0x3609CD24: add esp, 4 */ 2390 _flag_k = FK_ADD; 2391 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2392 ecx = ecx - 1; /* 0x3609CD27: dec ecx */ 2393 _flag_k = FK_DEC; 2394 /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */ 2395 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2396 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2397 _flag_k = FK_CMP; 2398 MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */ 2399 RECOMP_BACKEDGE(); 2400 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */ 2401 L_3609CD2F: 2402 eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */ 2403 PUSH32(esp, eax); /* 0x3609CD32: push eax */ 2404 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */ 2405 RECOMP_FLAGS_IN(); 2406 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2407 eax = 0; /* 0x3609CD38: xor eax, eax */ 2408 _cf = 0; 2409 _flag_k = FK_TEST; 2410 PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */ 2411 MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */ 2412 MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */ 2413 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */ 2414 RECOMP_FLAGS_IN(); 2415 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2416 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2417 esp = esp + 8; /* 0x3609CD46: add esp, 8 */ 2418 _flag_k = FK_ADD; 2419 L_3609CD49: 2420 eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */ 2421 /* test eax, eax */ /* 0x3609CD4F: test eax, eax */ 2422 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2423 _cf = 0; 2424 _flag_k = FK_TEST; 2425 MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */ 2426 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */ 2427 L_3609CD5D: 2428 PUSH32(esp, eax); /* 0x3609CD5D: push eax */ 2429 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */ 2430 RECOMP_FLAGS_IN(); 2431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2433 esp = esp + 4; /* 0x3609CD63: add esp, 4 */ 2434 _flag_k = FK_ADD; 2435 L_3609CD66: 2436 eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */ 2437 /* test eax, eax */ /* 0x3609CD6C: test eax, eax */ 2438 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2439 _cf = 0; 2440 _flag_k = FK_TEST; 2441 MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */ 2442 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */ 2443 L_3609CD7A: 2444 PUSH32(esp, eax); /* 0x3609CD7A: push eax */ 2445 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */ 2446 RECOMP_FLAGS_IN(); 2447 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2448 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2449 esp = esp + 4; /* 0x3609CD80: add esp, 4 */ 2450 _flag_k = FK_ADD; 2451 L_3609CD83: 2452 ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */ 2453 /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */ 2454 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2455 _cf = 0; 2456 _flag_k = FK_TEST; 2457 MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */ 2458 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */ 2459 L_3609CD97: 2460 RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */ 2461 RECOMP_FLAGS_IN(); 2462 MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */ 2463 L_3609CDA6: 2464 ecx = esi; /* 0x3609CDA6: mov ecx, esi */ 2465 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2466 _cf = (ecx) != 0; 2467 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */ 2468 _flag_k = FK_CMP; 2469 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */ 2470 ecx = _sc ? 0xFFFFFFFFu : 0; 2471 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2472 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2473 eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */ 2474 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2475 ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */ 2476 _cf = 0; 2477 _flag_k = FK_TEST; 2478 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */ 2479 RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */ 2480 RECOMP_FLAGS_IN(); 2481 ecx = esi; /* 0x3609CDBE: mov ecx, esi */ 2482 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2483 _cf = (ecx) != 0; 2484 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */ 2485 _flag_k = FK_CMP; 2486 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */ 2487 ecx = _sc ? 0xFFFFFFFFu : 0; 2488 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2489 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2490 eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */ 2491 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2492 ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */ 2493 _cf = 0; 2494 _flag_k = FK_TEST; 2495 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */ 2496 RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */ 2497 RECOMP_FLAGS_IN(); 2498 ecx = esi; /* 0x3609CDD5: mov ecx, esi */ 2499 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */ 2500 RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */ 2501 RECOMP_FLAGS_IN(); 2502 ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */ 2503 edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */ 2504 esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */ 2505 ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */ 2506 MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */ 2507 esp = ebp; /* 0x3609CDF0: mov esp, ebp */ 2508 ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */ 2509 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret */ 2510 L_36166240: 2511 ecx = MEM32(ebp + (-0x10)); /* 0x36166240: mov ecx, dword ptr [ebp - 0x10] */ 2512 RECOMP_BACKEDGE(); 2513 goto L_3609CC20; /* 0x36166243: jmp 0x3609cc20 */ 2514 { RECOMP_REGS_OUT(); return; } /* end of function */ 2515 RECOMP_REGS_OUT(); 2516 } 2517 2518 void sub_36166248(void) { 2519 int _fpu_cmp = 0; 2520 uint32_t _cf = 0; 2521 int _df = 1; 2522 uint32_t _flag_k = FK_NONE; 2523 uint32_t _flag_a = 0, _flag_b = 0; 2524 uint32_t _itail_tgt = 0; 2525 RECOMP_REGS_LOCALS 2526 RECOMP_ENTER(0x36166248u); 2527 2528 goto L_36166248; 2529 L_3615FD76: 2530 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 2531 L_36166248: 2532 eax = 0x3618B2F8u; /* 0x36166248: mov eax, 0x3618b2f8 */ 2533 L_3616624D: 2534 RECOMP_BACKEDGE(); 2535 goto L_3615FD76; /* 0x3616624D: jmp 0x3615fd76 */ 2536 { RECOMP_REGS_OUT(); return; } /* end of function */ 2537 _ljump: 2538 switch (_itail_tgt) { 2539 case 0x3615FD76u: goto L_3615FD76; 2540 case 0x36166248u: goto L_36166248; 2541 case 0x3616624Du: goto L_3616624D; 2542 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2543 } 2544 RECOMP_REGS_OUT(); 2545 } 2546 2547 void sub_36166260(void) { 2548 int _fpu_cmp = 0; 2549 uint32_t _cf = 0; 2550 int _df = 1; 2551 uint32_t _flag_k = FK_NONE; 2552 uint32_t _flag_a = 0, _flag_b = 0; 2553 uint32_t _itail_tgt = 0; 2554 RECOMP_REGS_LOCALS 2555 RECOMP_ENTER(0x36166260u); 2556 2557 L_36166260: 2558 ecx = ebp + (-0x20); /* 0x36166260: lea ecx, [ebp - 0x20] */ 2559 L_36166263: 2560 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 2561 { RECOMP_REGS_OUT(); return; } /* end of function */ 2562 _ljump: 2563 switch (_itail_tgt) { 2564 case 0x36166260u: goto L_36166260; 2565 case 0x36166263u: goto L_36166263; 2566 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2567 } 2568 RECOMP_REGS_OUT(); 2569 } 2570 2571 void sub_36166269(void) { 2572 int _fpu_cmp = 0; 2573 uint32_t _cf = 0; 2574 int _df = 1; 2575 uint32_t _flag_k = FK_NONE; 2576 uint32_t _flag_a = 0, _flag_b = 0; 2577 uint32_t _itail_tgt = 0; 2578 RECOMP_REGS_LOCALS 2579 RECOMP_ENTER(0x36166269u); 2580 2581 goto L_36166269; 2582 L_3615FD76: 2583 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 2584 L_36166269: 2585 eax = 0x3618B320u; /* 0x36166269: mov eax, 0x3618b320 */ 2586 L_3616626E: 2587 RECOMP_BACKEDGE(); 2588 goto L_3615FD76; /* 0x3616626E: jmp 0x3615fd76 */ 2589 { RECOMP_REGS_OUT(); return; } /* end of function */ 2590 _ljump: 2591 switch (_itail_tgt) { 2592 case 0x3615FD76u: goto L_3615FD76; 2593 case 0x36166269u: goto L_36166269; 2594 case 0x3616626Eu: goto L_3616626E; 2595 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2596 } 2597 RECOMP_REGS_OUT(); 2598 } 2599 2600 void sub_36166280(void) { 2601 int _fpu_cmp = 0; 2602 uint32_t _cf = 0; 2603 int _df = 1; 2604 uint32_t _flag_k = FK_NONE; 2605 uint32_t _flag_a = 0, _flag_b = 0; 2606 uint32_t _itail_tgt = 0; 2607 RECOMP_REGS_LOCALS 2608 RECOMP_ENTER(0x36166280u); 2609 2610 L_36166280: 2611 ecx = ebp + (-0x1C); /* 0x36166280: lea ecx, [ebp - 0x1c] */ 2612 L_36166283: 2613 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 2614 { RECOMP_REGS_OUT(); return; } /* end of function */ 2615 _ljump: 2616 switch (_itail_tgt) { 2617 case 0x36166280u: goto L_36166280; 2618 case 0x36166283u: goto L_36166283; 2619 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2620 } 2621 RECOMP_REGS_OUT(); 2622 } 2623 2624 void sub_36166289(void) { 2625 int _fpu_cmp = 0; 2626 uint32_t _cf = 0; 2627 int _df = 1; 2628 uint32_t _flag_k = FK_NONE; 2629 uint32_t _flag_a = 0, _flag_b = 0; 2630 uint32_t _itail_tgt = 0; 2631 RECOMP_REGS_LOCALS 2632 RECOMP_ENTER(0x36166289u); 2633 2634 goto L_36166289; 2635 L_3615FD76: 2636 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 2637 L_36166289: 2638 eax = 0x3618B348u; /* 0x36166289: mov eax, 0x3618b348 */ 2639 L_3616628E: 2640 RECOMP_BACKEDGE(); 2641 goto L_3615FD76; /* 0x3616628E: jmp 0x3615fd76 */ 2642 { RECOMP_REGS_OUT(); return; } /* end of function */ 2643 _ljump: 2644 switch (_itail_tgt) { 2645 case 0x3615FD76u: goto L_3615FD76; 2646 case 0x36166289u: goto L_36166289; 2647 case 0x3616628Eu: goto L_3616628E; 2648 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2649 } 2650 RECOMP_REGS_OUT(); 2651 } 2652 2653 void sub_361662A0(void) { 2654 int _fpu_cmp = 0; 2655 uint32_t _cf = 0; 2656 int _df = 1; 2657 uint32_t _flag_k = FK_NONE; 2658 uint32_t _flag_a = 0, _flag_b = 0; 2659 uint32_t _itail_tgt = 0; 2660 RECOMP_REGS_LOCALS 2661 RECOMP_ENTER(0x361662A0u); 2662 2663 L_361662A0: 2664 eax = MEM32(ebp + (-0x14)); /* 0x361662A0: mov eax, dword ptr [ebp - 0x14] */ 2665 PUSH32(esp, eax); /* 0x361662A3: push eax */ 2666 RECOMP_ICALL(0x3615FCC4u); /* 0x361662A4: call 0x3615fcc4 */ /* not lifted */ 2667 RECOMP_FLAGS_IN(); 2668 ecx = POP32_VAL(esp); /* 0x361662A9: pop ecx */ 2669 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361662AA: ret */ 2670 RECOMP_REGS_OUT(); 2671 } 2672 2673 void sub_361662AB(void) { 2674 int _fpu_cmp = 0; 2675 uint32_t _cf = 0; 2676 int _df = 1; 2677 uint32_t _flag_k = FK_NONE; 2678 uint32_t _flag_a = 0, _flag_b = 0; 2679 uint32_t _itail_tgt = 0; 2680 RECOMP_REGS_LOCALS 2681 RECOMP_ENTER(0x361662ABu); 2682 2683 L_361662AB: 2684 eax = MEM32(ebp + (-0x18)); /* 0x361662AB: mov eax, dword ptr [ebp - 0x18] */ 2685 L_361662AE: 2686 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2687 eax = eax & 1; /* 0x361662AE: and eax, 1 */ 2688 _cf = 0; 2689 _flag_k = FK_TEST; 2690 L_361662B1: 2691 /* test eax, eax */ /* 0x361662B1: test eax, eax */ 2692 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2693 _cf = 0; 2694 _flag_k = FK_TEST; 2695 L_361662B3: 2696 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_361662C2; /* 0x361662B3: je 0x361662c2 */ 2697 L_361662B9: 2698 ecx = ebp + (-0x2C); /* 0x361662B9: lea ecx, [ebp - 0x2c] */ 2699 L_361662BC: 2700 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 2701 L_361662C2: 2702 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361662C2: ret */ 2703 _ljump: 2704 switch (_itail_tgt) { 2705 case 0x361662ABu: goto L_361662AB; 2706 case 0x361662AEu: goto L_361662AE; 2707 case 0x361662B1u: goto L_361662B1; 2708 case 0x361662B3u: goto L_361662B3; 2709 case 0x361662B9u: goto L_361662B9; 2710 case 0x361662BCu: goto L_361662BC; 2711 case 0x361662C2u: goto L_361662C2; 2712 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2713 } 2714 RECOMP_REGS_OUT(); 2715 } 2716 2717 void sub_361662C3(void) { 2718 int _fpu_cmp = 0; 2719 uint32_t _cf = 0; 2720 int _df = 1; 2721 uint32_t _flag_k = FK_NONE; 2722 uint32_t _flag_a = 0, _flag_b = 0; 2723 uint32_t _itail_tgt = 0; 2724 RECOMP_REGS_LOCALS 2725 RECOMP_ENTER(0x361662C3u); 2726 2727 goto L_361662C3; 2728 L_3615FD76: 2729 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 2730 L_361662C3: 2731 eax = 0x3618B370u; /* 0x361662C3: mov eax, 0x3618b370 */ 2732 L_361662C8: 2733 RECOMP_BACKEDGE(); 2734 goto L_3615FD76; /* 0x361662C8: jmp 0x3615fd76 */ 2735 { RECOMP_REGS_OUT(); return; } /* end of function */ 2736 _ljump: 2737 switch (_itail_tgt) { 2738 case 0x3615FD76u: goto L_3615FD76; 2739 case 0x361662C3u: goto L_361662C3; 2740 case 0x361662C8u: goto L_361662C8; 2741 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 2742 } 2743 RECOMP_REGS_OUT(); 2744 } 2745 2746 void sub_361662D0(void) { 2747 int _fpu_cmp = 0; 2748 uint32_t _cf = 0; 2749 int _df = 1; 2750 uint32_t _flag_k = FK_NONE; 2751 uint32_t _flag_a = 0, _flag_b = 0; 2752 uint32_t _itail_tgt = 0; 2753 RECOMP_REGS_LOCALS 2754 RECOMP_ENTER(0x361662D0u); 2755 2756 goto L_361662D0; 2757 L_3609CC20: 2758 PUSH32(esp, ebp); /* 0x3609CC20: push ebp */ 2759 ebp = esp; /* 0x3609CC21: mov ebp, esp */ 2760 PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */ 2761 PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */ 2762 eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */ 2763 PUSH32(esp, eax); /* 0x3609CC30: push eax */ 2764 MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */ 2765 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 2766 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2767 esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */ 2768 _flag_k = FK_CMP; 2769 PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */ 2770 PUSH32(esp, esi); /* 0x3609CC3C: push esi */ 2771 esi = ecx; /* 0x3609CC3D: mov esi, ecx */ 2772 PUSH32(esp, edi); /* 0x3609CC3F: push edi */ 2773 MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */ 2774 MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */ 2775 MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */ 2776 MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */ 2777 MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */ 2778 MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */ 2779 MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */ 2780 MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */ 2781 MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */ 2782 ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */ 2783 /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */ 2784 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2785 _cf = 0; 2786 _flag_k = FK_TEST; 2787 MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */ 2788 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */ 2789 L_3609CC97: 2790 eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */ 2791 edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */ 2792 /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */ 2793 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2794 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2795 _flag_k = FK_CMP; 2796 MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */ 2797 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */ 2798 L_3609CCA3: 2799 eax = edi; /* 0x3609CCA3: mov eax, edi */ 2800 edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */ 2801 PUSH32(esp, eax); /* 0x3609CCA7: push eax */ 2802 eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */ 2803 PUSH32(esp, eax); /* 0x3609CCAB: push eax */ 2804 ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */ 2805 RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */ 2806 RECOMP_FLAGS_IN(); 2807 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */ 2808 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 2809 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2810 _flag_k = FK_CMP; 2811 RECOMP_BACKEDGE(); 2812 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */ 2813 L_3609CCB8: 2814 eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */ 2815 PUSH32(esp, eax); /* 0x3609CCBB: push eax */ 2816 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */ 2817 RECOMP_FLAGS_IN(); 2818 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2819 eax = 0; /* 0x3609CCC1: xor eax, eax */ 2820 _cf = 0; 2821 _flag_k = FK_TEST; 2822 PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */ 2823 MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */ 2824 MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */ 2825 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */ 2826 RECOMP_FLAGS_IN(); 2827 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2828 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2829 esp = esp + 8; /* 0x3609CCCF: add esp, 8 */ 2830 _flag_k = FK_ADD; 2831 L_3609CCD2: 2832 ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */ 2833 /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */ 2834 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2835 _cf = 0; 2836 _flag_k = FK_TEST; 2837 MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */ 2838 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */ 2839 L_3609CCE6: 2840 eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */ 2841 edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */ 2842 /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */ 2843 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2844 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2845 _flag_k = FK_CMP; 2846 MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */ 2847 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */ 2848 L_3609CCF2: 2849 PUSH32(esp, 0); /* 0x3609CCF2: push 0 */ 2850 ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */ 2851 eax = edi; /* 0x3609CCF7: mov eax, edi */ 2852 edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */ 2853 PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */ 2854 ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */ 2855 MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */ 2856 RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */ 2857 RECOMP_FLAGS_IN(); 2858 eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */ 2859 ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */ 2860 edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */ 2861 MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */ 2862 ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */ 2863 edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */ 2864 PUSH32(esp, eax); /* 0x3609CD15: push eax */ 2865 MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */ 2866 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */ 2867 RECOMP_FLAGS_IN(); 2868 ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */ 2869 eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */ 2870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2872 esp = esp + 4; /* 0x3609CD24: add esp, 4 */ 2873 _flag_k = FK_ADD; 2874 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2875 ecx = ecx - 1; /* 0x3609CD27: dec ecx */ 2876 _flag_k = FK_DEC; 2877 /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */ 2878 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2879 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2880 _flag_k = FK_CMP; 2881 MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */ 2882 RECOMP_BACKEDGE(); 2883 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */ 2884 L_3609CD2F: 2885 eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */ 2886 PUSH32(esp, eax); /* 0x3609CD32: push eax */ 2887 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */ 2888 RECOMP_FLAGS_IN(); 2889 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2890 eax = 0; /* 0x3609CD38: xor eax, eax */ 2891 _cf = 0; 2892 _flag_k = FK_TEST; 2893 PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */ 2894 MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */ 2895 MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */ 2896 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */ 2897 RECOMP_FLAGS_IN(); 2898 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2900 esp = esp + 8; /* 0x3609CD46: add esp, 8 */ 2901 _flag_k = FK_ADD; 2902 L_3609CD49: 2903 eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */ 2904 /* test eax, eax */ /* 0x3609CD4F: test eax, eax */ 2905 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2906 _cf = 0; 2907 _flag_k = FK_TEST; 2908 MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */ 2909 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */ 2910 L_3609CD5D: 2911 PUSH32(esp, eax); /* 0x3609CD5D: push eax */ 2912 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */ 2913 RECOMP_FLAGS_IN(); 2914 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2915 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2916 esp = esp + 4; /* 0x3609CD63: add esp, 4 */ 2917 _flag_k = FK_ADD; 2918 L_3609CD66: 2919 eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */ 2920 /* test eax, eax */ /* 0x3609CD6C: test eax, eax */ 2921 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2922 _cf = 0; 2923 _flag_k = FK_TEST; 2924 MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */ 2925 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */ 2926 L_3609CD7A: 2927 PUSH32(esp, eax); /* 0x3609CD7A: push eax */ 2928 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */ 2929 RECOMP_FLAGS_IN(); 2930 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2931 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2932 esp = esp + 4; /* 0x3609CD80: add esp, 4 */ 2933 _flag_k = FK_ADD; 2934 L_3609CD83: 2935 ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */ 2936 /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */ 2937 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 2938 _cf = 0; 2939 _flag_k = FK_TEST; 2940 MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */ 2941 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */ 2942 L_3609CD97: 2943 RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */ 2944 RECOMP_FLAGS_IN(); 2945 MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */ 2946 L_3609CDA6: 2947 ecx = esi; /* 0x3609CDA6: mov ecx, esi */ 2948 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2949 _cf = (ecx) != 0; 2950 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */ 2951 _flag_k = FK_CMP; 2952 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */ 2953 ecx = _sc ? 0xFFFFFFFFu : 0; 2954 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2955 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2956 eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */ 2957 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2958 ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */ 2959 _cf = 0; 2960 _flag_k = FK_TEST; 2961 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */ 2962 RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */ 2963 RECOMP_FLAGS_IN(); 2964 ecx = esi; /* 0x3609CDBE: mov ecx, esi */ 2965 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 2966 _cf = (ecx) != 0; 2967 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */ 2968 _flag_k = FK_CMP; 2969 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */ 2970 ecx = _sc ? 0xFFFFFFFFu : 0; 2971 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 2972 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 2973 eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */ 2974 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2975 ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */ 2976 _cf = 0; 2977 _flag_k = FK_TEST; 2978 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */ 2979 RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */ 2980 RECOMP_FLAGS_IN(); 2981 ecx = esi; /* 0x3609CDD5: mov ecx, esi */ 2982 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */ 2983 RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */ 2984 RECOMP_FLAGS_IN(); 2985 ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */ 2986 edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */ 2987 esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */ 2988 ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */ 2989 MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */ 2990 esp = ebp; /* 0x3609CDF0: mov esp, ebp */ 2991 ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */ 2992 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret */ 2993 L_361662D0: 2994 ecx = MEM32(ebp + (-0x10)); /* 0x361662D0: mov ecx, dword ptr [ebp - 0x10] */ 2995 RECOMP_BACKEDGE(); 2996 goto L_3609CC20; /* 0x361662D3: jmp 0x3609cc20 */ 2997 { RECOMP_REGS_OUT(); return; } /* end of function */ 2998 RECOMP_REGS_OUT(); 2999 } 3000 3001 void sub_361662D8(void) { 3002 int _fpu_cmp = 0; 3003 uint32_t _cf = 0; 3004 int _df = 1; 3005 uint32_t _flag_k = FK_NONE; 3006 uint32_t _flag_a = 0, _flag_b = 0; 3007 uint32_t _itail_tgt = 0; 3008 RECOMP_REGS_LOCALS 3009 RECOMP_ENTER(0x361662D8u); 3010 3011 goto L_361662D8; 3012 L_3615FD76: 3013 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3014 L_361662D8: 3015 eax = 0x3618B3A8u; /* 0x361662D8: mov eax, 0x3618b3a8 */ 3016 L_361662DD: 3017 RECOMP_BACKEDGE(); 3018 goto L_3615FD76; /* 0x361662DD: jmp 0x3615fd76 */ 3019 { RECOMP_REGS_OUT(); return; } /* end of function */ 3020 _ljump: 3021 switch (_itail_tgt) { 3022 case 0x3615FD76u: goto L_3615FD76; 3023 case 0x361662D8u: goto L_361662D8; 3024 case 0x361662DDu: goto L_361662DD; 3025 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3026 } 3027 RECOMP_REGS_OUT(); 3028 } 3029 3030 void sub_361662F0(void) { 3031 int _fpu_cmp = 0; 3032 uint32_t _cf = 0; 3033 int _df = 1; 3034 uint32_t _flag_k = FK_NONE; 3035 uint32_t _flag_a = 0, _flag_b = 0; 3036 uint32_t _itail_tgt = 0; 3037 RECOMP_REGS_LOCALS 3038 RECOMP_ENTER(0x361662F0u); 3039 3040 L_361662F0: 3041 ecx = ebp + (-0x20); /* 0x361662F0: lea ecx, [ebp - 0x20] */ 3042 L_361662F3: 3043 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 3044 { RECOMP_REGS_OUT(); return; } /* end of function */ 3045 _ljump: 3046 switch (_itail_tgt) { 3047 case 0x361662F0u: goto L_361662F0; 3048 case 0x361662F3u: goto L_361662F3; 3049 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3050 } 3051 RECOMP_REGS_OUT(); 3052 } 3053 3054 void sub_361662F9(void) { 3055 int _fpu_cmp = 0; 3056 uint32_t _cf = 0; 3057 int _df = 1; 3058 uint32_t _flag_k = FK_NONE; 3059 uint32_t _flag_a = 0, _flag_b = 0; 3060 uint32_t _itail_tgt = 0; 3061 RECOMP_REGS_LOCALS 3062 RECOMP_ENTER(0x361662F9u); 3063 3064 goto L_361662F9; 3065 L_3615FD76: 3066 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3067 L_361662F9: 3068 eax = 0x3618B3D0u; /* 0x361662F9: mov eax, 0x3618b3d0 */ 3069 L_361662FE: 3070 RECOMP_BACKEDGE(); 3071 goto L_3615FD76; /* 0x361662FE: jmp 0x3615fd76 */ 3072 { RECOMP_REGS_OUT(); return; } /* end of function */ 3073 _ljump: 3074 switch (_itail_tgt) { 3075 case 0x3615FD76u: goto L_3615FD76; 3076 case 0x361662F9u: goto L_361662F9; 3077 case 0x361662FEu: goto L_361662FE; 3078 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3079 } 3080 RECOMP_REGS_OUT(); 3081 } 3082 3083 void sub_36166310(void) { 3084 int _fpu_cmp = 0; 3085 uint32_t _cf = 0; 3086 int _df = 1; 3087 uint32_t _flag_k = FK_NONE; 3088 uint32_t _flag_a = 0, _flag_b = 0; 3089 uint32_t _itail_tgt = 0; 3090 RECOMP_REGS_LOCALS 3091 RECOMP_ENTER(0x36166310u); 3092 3093 L_36166310: 3094 ecx = ebp + (-0x1C); /* 0x36166310: lea ecx, [ebp - 0x1c] */ 3095 L_36166313: 3096 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 3097 { RECOMP_REGS_OUT(); return; } /* end of function */ 3098 _ljump: 3099 switch (_itail_tgt) { 3100 case 0x36166310u: goto L_36166310; 3101 case 0x36166313u: goto L_36166313; 3102 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3103 } 3104 RECOMP_REGS_OUT(); 3105 } 3106 3107 void sub_36166319(void) { 3108 int _fpu_cmp = 0; 3109 uint32_t _cf = 0; 3110 int _df = 1; 3111 uint32_t _flag_k = FK_NONE; 3112 uint32_t _flag_a = 0, _flag_b = 0; 3113 uint32_t _itail_tgt = 0; 3114 RECOMP_REGS_LOCALS 3115 RECOMP_ENTER(0x36166319u); 3116 3117 goto L_36166319; 3118 L_3615FD76: 3119 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3120 L_36166319: 3121 eax = 0x3618B3F8u; /* 0x36166319: mov eax, 0x3618b3f8 */ 3122 L_3616631E: 3123 RECOMP_BACKEDGE(); 3124 goto L_3615FD76; /* 0x3616631E: jmp 0x3615fd76 */ 3125 { RECOMP_REGS_OUT(); return; } /* end of function */ 3126 _ljump: 3127 switch (_itail_tgt) { 3128 case 0x3615FD76u: goto L_3615FD76; 3129 case 0x36166319u: goto L_36166319; 3130 case 0x3616631Eu: goto L_3616631E; 3131 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3132 } 3133 RECOMP_REGS_OUT(); 3134 } 3135 3136 void sub_36166330(void) { 3137 int _fpu_cmp = 0; 3138 uint32_t _cf = 0; 3139 int _df = 1; 3140 uint32_t _flag_k = FK_NONE; 3141 uint32_t _flag_a = 0, _flag_b = 0; 3142 uint32_t _itail_tgt = 0; 3143 RECOMP_REGS_LOCALS 3144 RECOMP_ENTER(0x36166330u); 3145 3146 L_36166330: 3147 eax = MEM32(ebp + (-0x18)); /* 0x36166330: mov eax, dword ptr [ebp - 0x18] */ 3148 PUSH32(esp, eax); /* 0x36166333: push eax */ 3149 RECOMP_ICALL(0x3615FCC4u); /* 0x36166334: call 0x3615fcc4 */ /* not lifted */ 3150 RECOMP_FLAGS_IN(); 3151 ecx = POP32_VAL(esp); /* 0x36166339: pop ecx */ 3152 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616633A: ret */ 3153 RECOMP_REGS_OUT(); 3154 } 3155 3156 void sub_3616633B(void) { 3157 int _fpu_cmp = 0; 3158 uint32_t _cf = 0; 3159 int _df = 1; 3160 uint32_t _flag_k = FK_NONE; 3161 uint32_t _flag_a = 0, _flag_b = 0; 3162 uint32_t _itail_tgt = 0; 3163 RECOMP_REGS_LOCALS 3164 RECOMP_ENTER(0x3616633Bu); 3165 3166 L_3616633B: 3167 eax = MEM32(ebp + (-0x18)); /* 0x3616633B: mov eax, dword ptr [ebp - 0x18] */ 3168 PUSH32(esp, eax); /* 0x3616633E: push eax */ 3169 RECOMP_ICALL(0x3615FCC4u); /* 0x3616633F: call 0x3615fcc4 */ /* not lifted */ 3170 RECOMP_FLAGS_IN(); 3171 ecx = POP32_VAL(esp); /* 0x36166344: pop ecx */ 3172 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166345: ret */ 3173 RECOMP_REGS_OUT(); 3174 } 3175 3176 void sub_36166346(void) { 3177 int _fpu_cmp = 0; 3178 uint32_t _cf = 0; 3179 int _df = 1; 3180 uint32_t _flag_k = FK_NONE; 3181 uint32_t _flag_a = 0, _flag_b = 0; 3182 uint32_t _itail_tgt = 0; 3183 RECOMP_REGS_LOCALS 3184 RECOMP_ENTER(0x36166346u); 3185 3186 goto L_36166346; 3187 L_3606C6E0: 3188 PUSH32(esp, ebp); /* 0x3606C6E0: push ebp */ 3189 ebp = esp; /* 0x3606C6E1: mov ebp, esp */ 3190 PUSH32(esp, ecx); /* 0x3606C6E3: push ecx */ 3191 PUSH32(esp, esi); /* 0x3606C6E4: push esi */ 3192 esi = ecx; /* 0x3606C6E5: mov esi, ecx */ 3193 eax = MEM32(esi + 0x4); /* 0x3606C6E7: mov eax, dword ptr [esi + 4] */ 3194 PUSH32(esp, eax); /* 0x3606C6EA: push eax */ 3195 MEM32(ebp + (-0x4)) = eax; /* 0x3606C6EB: mov dword ptr [ebp - 4], eax */ 3196 RECOMP_ICALL(0x3615FCC4u); /* 0x3606C6EE: call 0x3615fcc4 */ /* not lifted */ 3197 RECOMP_FLAGS_IN(); 3198 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3199 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3200 esp = esp + 4; /* 0x3606C6F3: add esp, 4 */ 3201 _flag_k = FK_ADD; 3202 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3203 eax = 0; /* 0x3606C6F6: xor eax, eax */ 3204 _cf = 0; 3205 _flag_k = FK_TEST; 3206 MEM32(esi + 0x4) = eax; /* 0x3606C6F8: mov dword ptr [esi + 4], eax */ 3207 MEM32(esi + 0x8) = eax; /* 0x3606C6FB: mov dword ptr [esi + 8], eax */ 3208 MEM32(esi + 0xC) = eax; /* 0x3606C6FE: mov dword ptr [esi + 0xc], eax */ 3209 esi = POP32_VAL(esp); /* 0x3606C701: pop esi */ 3210 esp = ebp; /* 0x3606C702: mov esp, ebp */ 3211 ebp = POP32_VAL(esp); /* 0x3606C704: pop ebp */ 3212 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606C705: ret */ 3213 L_36166346: 3214 ecx = MEM32(ebp + (-0x18)); /* 0x36166346: mov ecx, dword ptr [ebp - 0x18] */ 3215 RECOMP_BACKEDGE(); 3216 goto L_3606C6E0; /* 0x36166349: jmp 0x3606c6e0 */ 3217 { RECOMP_REGS_OUT(); return; } /* end of function */ 3218 RECOMP_REGS_OUT(); 3219 } 3220 3221 void sub_3616634E(void) { 3222 int _fpu_cmp = 0; 3223 uint32_t _cf = 0; 3224 int _df = 1; 3225 uint32_t _flag_k = FK_NONE; 3226 uint32_t _flag_a = 0, _flag_b = 0; 3227 uint32_t _itail_tgt = 0; 3228 RECOMP_REGS_LOCALS 3229 RECOMP_ENTER(0x3616634Eu); 3230 3231 goto L_3616634E; 3232 L_36093750: 3233 PUSH32(esp, ebp); /* 0x36093750: push ebp */ 3234 ebp = esp; /* 0x36093751: mov ebp, esp */ 3235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3237 esp = esp - 8; /* 0x36093753: sub esp, 8 */ 3238 _flag_k = FK_CMP; 3239 PUSH32(esp, ebx); /* 0x36093756: push ebx */ 3240 PUSH32(esp, esi); /* 0x36093757: push esi */ 3241 esi = ecx; /* 0x36093758: mov esi, ecx */ 3242 ecx = MEM32(esi + 0x10); /* 0x3609375A: mov ecx, dword ptr [esi + 0x10] */ 3243 /* test ecx, ecx */ /* 0x3609375D: test ecx, ecx */ 3244 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3245 _cf = 0; 3246 _flag_k = FK_TEST; 3247 PUSH32(esp, edi); /* 0x3609375F: push edi */ 3248 edi = MEM32(esi + 0x4); /* 0x36093760: mov edi, dword ptr [esi + 4] */ 3249 eax = MEM32(edi); /* 0x36093763: mov eax, dword ptr [edi] */ 3250 MEM32(ebp + (-0x4)) = eax; /* 0x36093765: mov dword ptr [ebp - 4], eax */ 3251 if (TEST_Z(_flag_a, _flag_b)) goto L_360937C5; /* 0x36093768: je 0x360937c5 */ 3252 L_3609376A: 3253 ecx = eax; /* 0x3609376A: mov ecx, eax */ 3254 /* cmp eax, ecx */ /* 0x3609376C: cmp eax, ecx */ 3255 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3256 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3257 _flag_k = FK_CMP; 3258 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C5; /* 0x3609376E: jne 0x360937c5 */ 3259 L_36093770: 3260 /* cmp edi, edi */ /* 0x36093770: cmp edi, edi */ 3261 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3263 _flag_k = FK_CMP; 3264 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C5; /* 0x36093772: jne 0x360937c5 */ 3265 L_36093774: 3266 ebx = MEM32(edi + 0x4); /* 0x36093774: mov ebx, dword ptr [edi + 4] */ 3267 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36093777: cmp ebx, dword ptr [esi + 8] */ 3268 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3270 _flag_k = FK_CMP; 3271 edi = ebx; /* 0x3609377A: mov edi, ebx */ 3272 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609379D; /* 0x3609377C: je 0x3609379d */ 3273 L_3609377E: 3274 eax = MEM32(edi + 0x8); /* 0x3609377E: mov eax, dword ptr [edi + 8] */ 3275 PUSH32(esp, eax); /* 0x36093781: push eax */ 3276 ecx = esi; /* 0x36093782: mov ecx, esi */ 3277 RECOMP_ICALL(0x36094720u); /* 0x36093784: call 0x36094720 */ /* not lifted */ 3278 RECOMP_FLAGS_IN(); 3279 edi = MEM32(edi); /* 0x36093789: mov edi, dword ptr [edi] */ 3280 PUSH32(esp, ebx); /* 0x3609378B: push ebx */ 3281 RECOMP_ICALL(0x3615FCC4u); /* 0x3609378C: call 0x3615fcc4 */ /* not lifted */ 3282 RECOMP_FLAGS_IN(); 3283 eax = MEM32(esi + 0x8); /* 0x36093791: mov eax, dword ptr [esi + 8] */ 3284 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3285 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3286 esp = esp + 4; /* 0x36093794: add esp, 4 */ 3287 _flag_k = FK_ADD; 3288 /* cmp edi, eax */ /* 0x36093797: cmp edi, eax */ 3289 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3291 _flag_k = FK_CMP; 3292 ebx = edi; /* 0x36093799: mov ebx, edi */ 3293 RECOMP_BACKEDGE(); 3294 if (CMP_NE(_flag_a, _flag_b)) goto L_3609377E; /* 0x3609379B: jne 0x3609377e */ 3295 L_3609379D: 3296 ecx = MEM32(esi + 0x4); /* 0x3609379D: mov ecx, dword ptr [esi + 4] */ 3297 edx = MEM32(esi + 0x8); /* 0x360937A0: mov edx, dword ptr [esi + 8] */ 3298 MEM32(ecx + 0x4) = edx; /* 0x360937A3: mov dword ptr [ecx + 4], edx */ 3299 eax = MEM32(esi + 0x4); /* 0x360937A6: mov eax, dword ptr [esi + 4] */ 3300 MEM32(esi + 0x10) = 0; /* 0x360937A9: mov dword ptr [esi + 0x10], 0 */ 3301 MEM32(eax) = eax; /* 0x360937B0: mov dword ptr [eax], eax */ 3302 eax = MEM32(esi + 0x4); /* 0x360937B2: mov eax, dword ptr [esi + 4] */ 3303 MEM32(eax + 0x8) = eax; /* 0x360937B5: mov dword ptr [eax + 8], eax */ 3304 eax = ebp + (-0x8); /* 0x360937B8: lea eax, [ebp - 8] */ 3305 PUSH32(esp, eax); /* 0x360937BB: push eax */ 3306 ecx = esi; /* 0x360937BC: mov ecx, esi */ 3307 RECOMP_ICALL(0x3614FC30u); /* 0x360937BE: call 0x3614fc30 */ /* not lifted */ 3308 RECOMP_FLAGS_IN(); 3309 goto L_360937E6; /* 0x360937C3: jmp 0x360937e6 */ 3310 L_360937C5: 3311 /* cmp eax, edi */ /* 0x360937C5: cmp eax, edi */ 3312 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3313 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3314 _flag_k = FK_CMP; 3315 if (CMP_EQ(_flag_a, _flag_b)) goto L_360937E6; /* 0x360937C7: je 0x360937e6 */ 3316 L_360937C9: 3317 ecx = ebp + (-0x4); /* 0x360937C9: lea ecx, [ebp - 4] */ 3318 ebx = eax; /* 0x360937CC: mov ebx, eax */ 3319 RECOMP_ICALL(0x36096C20u); /* 0x360937CE: call 0x36096c20 */ /* not lifted */ 3320 RECOMP_FLAGS_IN(); 3321 PUSH32(esp, ebx); /* 0x360937D3: push ebx */ 3322 ecx = ebp + (-0x8); /* 0x360937D4: lea ecx, [ebp - 8] */ 3323 PUSH32(esp, ecx); /* 0x360937D7: push ecx */ 3324 ecx = esi; /* 0x360937D8: mov ecx, esi */ 3325 RECOMP_ICALL(0x3603ECC0u); /* 0x360937DA: call 0x3603ecc0 */ /* not lifted */ 3326 RECOMP_FLAGS_IN(); 3327 eax = MEM32(ebp + (-0x4)); /* 0x360937DF: mov eax, dword ptr [ebp - 4] */ 3328 /* cmp eax, edi */ /* 0x360937E2: cmp eax, edi */ 3329 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3330 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3331 _flag_k = FK_CMP; 3332 RECOMP_BACKEDGE(); 3333 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C9; /* 0x360937E4: jne 0x360937c9 */ 3334 L_360937E6: 3335 edx = MEM32(esi + 0x4); /* 0x360937E6: mov edx, dword ptr [esi + 4] */ 3336 PUSH32(esp, edx); /* 0x360937E9: push edx */ 3337 RECOMP_ICALL(0x3615FCC4u); /* 0x360937EA: call 0x3615fcc4 */ /* not lifted */ 3338 RECOMP_FLAGS_IN(); 3339 eax = MEM32(esi + 0x8); /* 0x360937EF: mov eax, dword ptr [esi + 8] */ 3340 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3341 edi = 0; /* 0x360937F2: xor edi, edi */ 3342 _cf = 0; 3343 _flag_k = FK_TEST; 3344 PUSH32(esp, eax); /* 0x360937F4: push eax */ 3345 MEM32(esi + 0x4) = edi; /* 0x360937F5: mov dword ptr [esi + 4], edi */ 3346 MEM32(esi + 0x10) = edi; /* 0x360937F8: mov dword ptr [esi + 0x10], edi */ 3347 RECOMP_ICALL(0x3615FCC4u); /* 0x360937FB: call 0x3615fcc4 */ /* not lifted */ 3348 RECOMP_FLAGS_IN(); 3349 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3350 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3351 esp = esp + 8; /* 0x36093800: add esp, 8 */ 3352 _flag_k = FK_ADD; 3353 MEM32(esi + 0x8) = edi; /* 0x36093803: mov dword ptr [esi + 8], edi */ 3354 edi = POP32_VAL(esp); /* 0x36093806: pop edi */ 3355 esi = POP32_VAL(esp); /* 0x36093807: pop esi */ 3356 ebx = POP32_VAL(esp); /* 0x36093808: pop ebx */ 3357 esp = ebp; /* 0x36093809: mov esp, ebp */ 3358 ebp = POP32_VAL(esp); /* 0x3609380B: pop ebp */ 3359 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609380C: ret */ 3360 L_3616634E: 3361 ecx = MEM32(ebp + (-0x18)); /* 0x3616634E: mov ecx, dword ptr [ebp - 0x18] */ 3362 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 3363 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3364 ecx = ecx + 0x10u; /* 0x36166351: add ecx, 0x10 */ 3365 _flag_k = FK_ADD; 3366 RECOMP_BACKEDGE(); 3367 goto L_36093750; /* 0x36166354: jmp 0x36093750 */ 3368 { RECOMP_REGS_OUT(); return; } /* end of function */ 3369 RECOMP_REGS_OUT(); 3370 } 3371 3372 void sub_36166359(void) { 3373 int _fpu_cmp = 0; 3374 uint32_t _cf = 0; 3375 int _df = 1; 3376 uint32_t _flag_k = FK_NONE; 3377 uint32_t _flag_a = 0, _flag_b = 0; 3378 uint32_t _itail_tgt = 0; 3379 RECOMP_REGS_LOCALS 3380 RECOMP_ENTER(0x36166359u); 3381 3382 goto L_36166359; 3383 L_3615FD76: 3384 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3385 L_36166359: 3386 eax = 0x3618B420u; /* 0x36166359: mov eax, 0x3618b420 */ 3387 L_3616635E: 3388 RECOMP_BACKEDGE(); 3389 goto L_3615FD76; /* 0x3616635E: jmp 0x3615fd76 */ 3390 { RECOMP_REGS_OUT(); return; } /* end of function */ 3391 _ljump: 3392 switch (_itail_tgt) { 3393 case 0x3615FD76u: goto L_3615FD76; 3394 case 0x36166359u: goto L_36166359; 3395 case 0x3616635Eu: goto L_3616635E; 3396 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3397 } 3398 RECOMP_REGS_OUT(); 3399 } 3400 3401 void sub_36166370(void) { 3402 int _fpu_cmp = 0; 3403 uint32_t _cf = 0; 3404 int _df = 1; 3405 uint32_t _flag_k = FK_NONE; 3406 uint32_t _flag_a = 0, _flag_b = 0; 3407 uint32_t _itail_tgt = 0; 3408 RECOMP_REGS_LOCALS 3409 RECOMP_ENTER(0x36166370u); 3410 3411 goto L_36166370; 3412 L_3606C6E0: 3413 PUSH32(esp, ebp); /* 0x3606C6E0: push ebp */ 3414 ebp = esp; /* 0x3606C6E1: mov ebp, esp */ 3415 PUSH32(esp, ecx); /* 0x3606C6E3: push ecx */ 3416 PUSH32(esp, esi); /* 0x3606C6E4: push esi */ 3417 esi = ecx; /* 0x3606C6E5: mov esi, ecx */ 3418 eax = MEM32(esi + 0x4); /* 0x3606C6E7: mov eax, dword ptr [esi + 4] */ 3419 PUSH32(esp, eax); /* 0x3606C6EA: push eax */ 3420 MEM32(ebp + (-0x4)) = eax; /* 0x3606C6EB: mov dword ptr [ebp - 4], eax */ 3421 RECOMP_ICALL(0x3615FCC4u); /* 0x3606C6EE: call 0x3615fcc4 */ /* not lifted */ 3422 RECOMP_FLAGS_IN(); 3423 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3424 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3425 esp = esp + 4; /* 0x3606C6F3: add esp, 4 */ 3426 _flag_k = FK_ADD; 3427 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3428 eax = 0; /* 0x3606C6F6: xor eax, eax */ 3429 _cf = 0; 3430 _flag_k = FK_TEST; 3431 MEM32(esi + 0x4) = eax; /* 0x3606C6F8: mov dword ptr [esi + 4], eax */ 3432 MEM32(esi + 0x8) = eax; /* 0x3606C6FB: mov dword ptr [esi + 8], eax */ 3433 MEM32(esi + 0xC) = eax; /* 0x3606C6FE: mov dword ptr [esi + 0xc], eax */ 3434 esi = POP32_VAL(esp); /* 0x3606C701: pop esi */ 3435 esp = ebp; /* 0x3606C702: mov esp, ebp */ 3436 ebp = POP32_VAL(esp); /* 0x3606C704: pop ebp */ 3437 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606C705: ret */ 3438 L_36166370: 3439 ecx = MEM32(ebp + (-0x14)); /* 0x36166370: mov ecx, dword ptr [ebp - 0x14] */ 3440 RECOMP_BACKEDGE(); 3441 goto L_3606C6E0; /* 0x36166373: jmp 0x3606c6e0 */ 3442 { RECOMP_REGS_OUT(); return; } /* end of function */ 3443 RECOMP_REGS_OUT(); 3444 } 3445 3446 void sub_36166378(void) { 3447 int _fpu_cmp = 0; 3448 uint32_t _cf = 0; 3449 int _df = 1; 3450 uint32_t _flag_k = FK_NONE; 3451 uint32_t _flag_a = 0, _flag_b = 0; 3452 uint32_t _itail_tgt = 0; 3453 RECOMP_REGS_LOCALS 3454 RECOMP_ENTER(0x36166378u); 3455 3456 goto L_36166378; 3457 L_36093750: 3458 PUSH32(esp, ebp); /* 0x36093750: push ebp */ 3459 ebp = esp; /* 0x36093751: mov ebp, esp */ 3460 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3461 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3462 esp = esp - 8; /* 0x36093753: sub esp, 8 */ 3463 _flag_k = FK_CMP; 3464 PUSH32(esp, ebx); /* 0x36093756: push ebx */ 3465 PUSH32(esp, esi); /* 0x36093757: push esi */ 3466 esi = ecx; /* 0x36093758: mov esi, ecx */ 3467 ecx = MEM32(esi + 0x10); /* 0x3609375A: mov ecx, dword ptr [esi + 0x10] */ 3468 /* test ecx, ecx */ /* 0x3609375D: test ecx, ecx */ 3469 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 3470 _cf = 0; 3471 _flag_k = FK_TEST; 3472 PUSH32(esp, edi); /* 0x3609375F: push edi */ 3473 edi = MEM32(esi + 0x4); /* 0x36093760: mov edi, dword ptr [esi + 4] */ 3474 eax = MEM32(edi); /* 0x36093763: mov eax, dword ptr [edi] */ 3475 MEM32(ebp + (-0x4)) = eax; /* 0x36093765: mov dword ptr [ebp - 4], eax */ 3476 if (TEST_Z(_flag_a, _flag_b)) goto L_360937C5; /* 0x36093768: je 0x360937c5 */ 3477 L_3609376A: 3478 ecx = eax; /* 0x3609376A: mov ecx, eax */ 3479 /* cmp eax, ecx */ /* 0x3609376C: cmp eax, ecx */ 3480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3482 _flag_k = FK_CMP; 3483 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C5; /* 0x3609376E: jne 0x360937c5 */ 3484 L_36093770: 3485 /* cmp edi, edi */ /* 0x36093770: cmp edi, edi */ 3486 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 3487 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3488 _flag_k = FK_CMP; 3489 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C5; /* 0x36093772: jne 0x360937c5 */ 3490 L_36093774: 3491 ebx = MEM32(edi + 0x4); /* 0x36093774: mov ebx, dword ptr [edi + 4] */ 3492 /* cmp ebx, MEM32(esi + 0x8) */ /* 0x36093777: cmp ebx, dword ptr [esi + 8] */ 3493 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8)); 3494 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3495 _flag_k = FK_CMP; 3496 edi = ebx; /* 0x3609377A: mov edi, ebx */ 3497 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609379D; /* 0x3609377C: je 0x3609379d */ 3498 L_3609377E: 3499 eax = MEM32(edi + 0x8); /* 0x3609377E: mov eax, dword ptr [edi + 8] */ 3500 PUSH32(esp, eax); /* 0x36093781: push eax */ 3501 ecx = esi; /* 0x36093782: mov ecx, esi */ 3502 RECOMP_ICALL(0x36094720u); /* 0x36093784: call 0x36094720 */ /* not lifted */ 3503 RECOMP_FLAGS_IN(); 3504 edi = MEM32(edi); /* 0x36093789: mov edi, dword ptr [edi] */ 3505 PUSH32(esp, ebx); /* 0x3609378B: push ebx */ 3506 RECOMP_ICALL(0x3615FCC4u); /* 0x3609378C: call 0x3615fcc4 */ /* not lifted */ 3507 RECOMP_FLAGS_IN(); 3508 eax = MEM32(esi + 0x8); /* 0x36093791: mov eax, dword ptr [esi + 8] */ 3509 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3510 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3511 esp = esp + 4; /* 0x36093794: add esp, 4 */ 3512 _flag_k = FK_ADD; 3513 /* cmp edi, eax */ /* 0x36093797: cmp edi, eax */ 3514 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3515 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3516 _flag_k = FK_CMP; 3517 ebx = edi; /* 0x36093799: mov ebx, edi */ 3518 RECOMP_BACKEDGE(); 3519 if (CMP_NE(_flag_a, _flag_b)) goto L_3609377E; /* 0x3609379B: jne 0x3609377e */ 3520 L_3609379D: 3521 ecx = MEM32(esi + 0x4); /* 0x3609379D: mov ecx, dword ptr [esi + 4] */ 3522 edx = MEM32(esi + 0x8); /* 0x360937A0: mov edx, dword ptr [esi + 8] */ 3523 MEM32(ecx + 0x4) = edx; /* 0x360937A3: mov dword ptr [ecx + 4], edx */ 3524 eax = MEM32(esi + 0x4); /* 0x360937A6: mov eax, dword ptr [esi + 4] */ 3525 MEM32(esi + 0x10) = 0; /* 0x360937A9: mov dword ptr [esi + 0x10], 0 */ 3526 MEM32(eax) = eax; /* 0x360937B0: mov dword ptr [eax], eax */ 3527 eax = MEM32(esi + 0x4); /* 0x360937B2: mov eax, dword ptr [esi + 4] */ 3528 MEM32(eax + 0x8) = eax; /* 0x360937B5: mov dword ptr [eax + 8], eax */ 3529 eax = ebp + (-0x8); /* 0x360937B8: lea eax, [ebp - 8] */ 3530 PUSH32(esp, eax); /* 0x360937BB: push eax */ 3531 ecx = esi; /* 0x360937BC: mov ecx, esi */ 3532 RECOMP_ICALL(0x3614FC30u); /* 0x360937BE: call 0x3614fc30 */ /* not lifted */ 3533 RECOMP_FLAGS_IN(); 3534 goto L_360937E6; /* 0x360937C3: jmp 0x360937e6 */ 3535 L_360937C5: 3536 /* cmp eax, edi */ /* 0x360937C5: cmp eax, edi */ 3537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3538 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3539 _flag_k = FK_CMP; 3540 if (CMP_EQ(_flag_a, _flag_b)) goto L_360937E6; /* 0x360937C7: je 0x360937e6 */ 3541 L_360937C9: 3542 ecx = ebp + (-0x4); /* 0x360937C9: lea ecx, [ebp - 4] */ 3543 ebx = eax; /* 0x360937CC: mov ebx, eax */ 3544 RECOMP_ICALL(0x36096C20u); /* 0x360937CE: call 0x36096c20 */ /* not lifted */ 3545 RECOMP_FLAGS_IN(); 3546 PUSH32(esp, ebx); /* 0x360937D3: push ebx */ 3547 ecx = ebp + (-0x8); /* 0x360937D4: lea ecx, [ebp - 8] */ 3548 PUSH32(esp, ecx); /* 0x360937D7: push ecx */ 3549 ecx = esi; /* 0x360937D8: mov ecx, esi */ 3550 RECOMP_ICALL(0x3603ECC0u); /* 0x360937DA: call 0x3603ecc0 */ /* not lifted */ 3551 RECOMP_FLAGS_IN(); 3552 eax = MEM32(ebp + (-0x4)); /* 0x360937DF: mov eax, dword ptr [ebp - 4] */ 3553 /* cmp eax, edi */ /* 0x360937E2: cmp eax, edi */ 3554 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3555 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3556 _flag_k = FK_CMP; 3557 RECOMP_BACKEDGE(); 3558 if (CMP_NE(_flag_a, _flag_b)) goto L_360937C9; /* 0x360937E4: jne 0x360937c9 */ 3559 L_360937E6: 3560 edx = MEM32(esi + 0x4); /* 0x360937E6: mov edx, dword ptr [esi + 4] */ 3561 PUSH32(esp, edx); /* 0x360937E9: push edx */ 3562 RECOMP_ICALL(0x3615FCC4u); /* 0x360937EA: call 0x3615fcc4 */ /* not lifted */ 3563 RECOMP_FLAGS_IN(); 3564 eax = MEM32(esi + 0x8); /* 0x360937EF: mov eax, dword ptr [esi + 8] */ 3565 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3566 edi = 0; /* 0x360937F2: xor edi, edi */ 3567 _cf = 0; 3568 _flag_k = FK_TEST; 3569 PUSH32(esp, eax); /* 0x360937F4: push eax */ 3570 MEM32(esi + 0x4) = edi; /* 0x360937F5: mov dword ptr [esi + 4], edi */ 3571 MEM32(esi + 0x10) = edi; /* 0x360937F8: mov dword ptr [esi + 0x10], edi */ 3572 RECOMP_ICALL(0x3615FCC4u); /* 0x360937FB: call 0x3615fcc4 */ /* not lifted */ 3573 RECOMP_FLAGS_IN(); 3574 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3575 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3576 esp = esp + 8; /* 0x36093800: add esp, 8 */ 3577 _flag_k = FK_ADD; 3578 MEM32(esi + 0x8) = edi; /* 0x36093803: mov dword ptr [esi + 8], edi */ 3579 edi = POP32_VAL(esp); /* 0x36093806: pop edi */ 3580 esi = POP32_VAL(esp); /* 0x36093807: pop esi */ 3581 ebx = POP32_VAL(esp); /* 0x36093808: pop ebx */ 3582 esp = ebp; /* 0x36093809: mov esp, ebp */ 3583 ebp = POP32_VAL(esp); /* 0x3609380B: pop ebp */ 3584 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609380C: ret */ 3585 L_36166378: 3586 ecx = MEM32(ebp + (-0x14)); /* 0x36166378: mov ecx, dword ptr [ebp - 0x14] */ 3587 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x10u); 3588 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3589 ecx = ecx + 0x10u; /* 0x3616637B: add ecx, 0x10 */ 3590 _flag_k = FK_ADD; 3591 RECOMP_BACKEDGE(); 3592 goto L_36093750; /* 0x3616637E: jmp 0x36093750 */ 3593 { RECOMP_REGS_OUT(); return; } /* end of function */ 3594 RECOMP_REGS_OUT(); 3595 } 3596 3597 void sub_36166383(void) { 3598 int _fpu_cmp = 0; 3599 uint32_t _cf = 0; 3600 int _df = 1; 3601 uint32_t _flag_k = FK_NONE; 3602 uint32_t _flag_a = 0, _flag_b = 0; 3603 uint32_t _itail_tgt = 0; 3604 RECOMP_REGS_LOCALS 3605 RECOMP_ENTER(0x36166383u); 3606 3607 goto L_36166383; 3608 L_3615FD76: 3609 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3610 L_36166383: 3611 eax = 0x3618B460u; /* 0x36166383: mov eax, 0x3618b460 */ 3612 L_36166388: 3613 RECOMP_BACKEDGE(); 3614 goto L_3615FD76; /* 0x36166388: jmp 0x3615fd76 */ 3615 { RECOMP_REGS_OUT(); return; } /* end of function */ 3616 _ljump: 3617 switch (_itail_tgt) { 3618 case 0x3615FD76u: goto L_3615FD76; 3619 case 0x36166383u: goto L_36166383; 3620 case 0x36166388u: goto L_36166388; 3621 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3622 } 3623 RECOMP_REGS_OUT(); 3624 } 3625 3626 void sub_36166390(void) { 3627 int _fpu_cmp = 0; 3628 uint32_t _cf = 0; 3629 int _df = 1; 3630 uint32_t _flag_k = FK_NONE; 3631 uint32_t _flag_a = 0, _flag_b = 0; 3632 uint32_t _itail_tgt = 0; 3633 RECOMP_REGS_LOCALS 3634 RECOMP_ENTER(0x36166390u); 3635 3636 L_36166390: 3637 eax = MEM32(ebp + (-0x14)); /* 0x36166390: mov eax, dword ptr [ebp - 0x14] */ 3638 PUSH32(esp, eax); /* 0x36166393: push eax */ 3639 RECOMP_ICALL(0x3615FCC4u); /* 0x36166394: call 0x3615fcc4 */ /* not lifted */ 3640 RECOMP_FLAGS_IN(); 3641 ecx = POP32_VAL(esp); /* 0x36166399: pop ecx */ 3642 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616639A: ret */ 3643 RECOMP_REGS_OUT(); 3644 } 3645 3646 void sub_3616639B(void) { 3647 int _fpu_cmp = 0; 3648 uint32_t _cf = 0; 3649 int _df = 1; 3650 uint32_t _flag_k = FK_NONE; 3651 uint32_t _flag_a = 0, _flag_b = 0; 3652 uint32_t _itail_tgt = 0; 3653 RECOMP_REGS_LOCALS 3654 RECOMP_ENTER(0x3616639Bu); 3655 3656 goto L_3616639B; 3657 L_3615FD76: 3658 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3659 L_3616639B: 3660 eax = 0x3618B490u; /* 0x3616639B: mov eax, 0x3618b490 */ 3661 L_361663A0: 3662 RECOMP_BACKEDGE(); 3663 goto L_3615FD76; /* 0x361663A0: jmp 0x3615fd76 */ 3664 { RECOMP_REGS_OUT(); return; } /* end of function */ 3665 _ljump: 3666 switch (_itail_tgt) { 3667 case 0x3615FD76u: goto L_3615FD76; 3668 case 0x3616639Bu: goto L_3616639B; 3669 case 0x361663A0u: goto L_361663A0; 3670 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3671 } 3672 RECOMP_REGS_OUT(); 3673 } 3674 3675 void sub_361663B0(void) { 3676 int _fpu_cmp = 0; 3677 uint32_t _cf = 0; 3678 int _df = 1; 3679 uint32_t _flag_k = FK_NONE; 3680 uint32_t _flag_a = 0, _flag_b = 0; 3681 uint32_t _itail_tgt = 0; 3682 RECOMP_REGS_LOCALS 3683 RECOMP_ENTER(0x361663B0u); 3684 3685 L_361663B0: 3686 eax = MEM32(ebp + 0x8); /* 0x361663B0: mov eax, dword ptr [ebp + 8] */ 3687 PUSH32(esp, eax); /* 0x361663B3: push eax */ 3688 RECOMP_ICALL(0x3615FCC4u); /* 0x361663B4: call 0x3615fcc4 */ /* not lifted */ 3689 RECOMP_FLAGS_IN(); 3690 ecx = POP32_VAL(esp); /* 0x361663B9: pop ecx */ 3691 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361663BA: ret */ 3692 RECOMP_REGS_OUT(); 3693 } 3694 3695 void sub_361663BB(void) { 3696 int _fpu_cmp = 0; 3697 uint32_t _cf = 0; 3698 int _df = 1; 3699 uint32_t _flag_k = FK_NONE; 3700 uint32_t _flag_a = 0, _flag_b = 0; 3701 uint32_t _itail_tgt = 0; 3702 RECOMP_REGS_LOCALS 3703 RECOMP_ENTER(0x361663BBu); 3704 3705 goto L_361663BB; 3706 L_3610BA00: 3707 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BA00: ret */ 3708 L_361663BB: 3709 ecx = ebp + (-0x48); /* 0x361663BB: lea ecx, [ebp - 0x48] */ 3710 RECOMP_BACKEDGE(); 3711 goto L_3610BA00; /* 0x361663BE: jmp 0x3610ba00 */ 3712 { RECOMP_REGS_OUT(); return; } /* end of function */ 3713 RECOMP_REGS_OUT(); 3714 } 3715 3716 void sub_361663C3(void) { 3717 int _fpu_cmp = 0; 3718 uint32_t _cf = 0; 3719 int _df = 1; 3720 uint32_t _flag_k = FK_NONE; 3721 uint32_t _flag_a = 0, _flag_b = 0; 3722 uint32_t _itail_tgt = 0; 3723 RECOMP_REGS_LOCALS 3724 RECOMP_ENTER(0x361663C3u); 3725 3726 goto L_361663C3; 3727 L_3610BA00: 3728 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3610BA00: ret */ 3729 L_361663C3: 3730 ecx = ebp + (-0x60); /* 0x361663C3: lea ecx, [ebp - 0x60] */ 3731 RECOMP_BACKEDGE(); 3732 goto L_3610BA00; /* 0x361663C6: jmp 0x3610ba00 */ 3733 { RECOMP_REGS_OUT(); return; } /* end of function */ 3734 RECOMP_REGS_OUT(); 3735 } 3736 3737 void sub_361663CB(void) { 3738 int _fpu_cmp = 0; 3739 uint32_t _cf = 0; 3740 int _df = 1; 3741 uint32_t _flag_k = FK_NONE; 3742 uint32_t _flag_a = 0, _flag_b = 0; 3743 uint32_t _itail_tgt = 0; 3744 RECOMP_REGS_LOCALS 3745 RECOMP_ENTER(0x361663CBu); 3746 3747 goto L_361663CB; 3748 L_3615FD76: 3749 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3750 L_361663CB: 3751 eax = 0x3618B4B8u; /* 0x361663CB: mov eax, 0x3618b4b8 */ 3752 L_361663D0: 3753 RECOMP_BACKEDGE(); 3754 goto L_3615FD76; /* 0x361663D0: jmp 0x3615fd76 */ 3755 { RECOMP_REGS_OUT(); return; } /* end of function */ 3756 _ljump: 3757 switch (_itail_tgt) { 3758 case 0x3615FD76u: goto L_3615FD76; 3759 case 0x361663CBu: goto L_361663CB; 3760 case 0x361663D0u: goto L_361663D0; 3761 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3762 } 3763 RECOMP_REGS_OUT(); 3764 } 3765 3766 void sub_361663E0(void) { 3767 int _fpu_cmp = 0; 3768 uint32_t _cf = 0; 3769 int _df = 1; 3770 uint32_t _flag_k = FK_NONE; 3771 uint32_t _flag_a = 0, _flag_b = 0; 3772 uint32_t _itail_tgt = 0; 3773 RECOMP_REGS_LOCALS 3774 RECOMP_ENTER(0x361663E0u); 3775 3776 L_361663E0: 3777 eax = MEM32(ebp + (-0x10)); /* 0x361663E0: mov eax, dword ptr [ebp - 0x10] */ 3778 PUSH32(esp, eax); /* 0x361663E3: push eax */ 3779 RECOMP_ICALL(0x3615FCC4u); /* 0x361663E4: call 0x3615fcc4 */ /* not lifted */ 3780 RECOMP_FLAGS_IN(); 3781 ecx = POP32_VAL(esp); /* 0x361663E9: pop ecx */ 3782 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361663EA: ret */ 3783 RECOMP_REGS_OUT(); 3784 } 3785 3786 void sub_361663EB(void) { 3787 int _fpu_cmp = 0; 3788 uint32_t _cf = 0; 3789 int _df = 1; 3790 uint32_t _flag_k = FK_NONE; 3791 uint32_t _flag_a = 0, _flag_b = 0; 3792 uint32_t _itail_tgt = 0; 3793 RECOMP_REGS_LOCALS 3794 RECOMP_ENTER(0x361663EBu); 3795 3796 goto L_361663EB; 3797 L_3615FD76: 3798 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3799 L_361663EB: 3800 eax = 0x3618B4F0u; /* 0x361663EB: mov eax, 0x3618b4f0 */ 3801 L_361663F0: 3802 RECOMP_BACKEDGE(); 3803 goto L_3615FD76; /* 0x361663F0: jmp 0x3615fd76 */ 3804 { RECOMP_REGS_OUT(); return; } /* end of function */ 3805 _ljump: 3806 switch (_itail_tgt) { 3807 case 0x3615FD76u: goto L_3615FD76; 3808 case 0x361663EBu: goto L_361663EB; 3809 case 0x361663F0u: goto L_361663F0; 3810 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 3811 } 3812 RECOMP_REGS_OUT(); 3813 } 3814 3815 void sub_36166400(void) { 3816 int _fpu_cmp = 0; 3817 uint32_t _cf = 0; 3818 int _df = 1; 3819 uint32_t _flag_k = FK_NONE; 3820 uint32_t _flag_a = 0, _flag_b = 0; 3821 uint32_t _itail_tgt = 0; 3822 RECOMP_REGS_LOCALS 3823 RECOMP_ENTER(0x36166400u); 3824 3825 goto L_36166400; 3826 L_36096200: 3827 PUSH32(esp, ebx); /* 0x36096200: push ebx */ 3828 PUSH32(esp, esi); /* 0x36096201: push esi */ 3829 PUSH32(esp, edi); /* 0x36096202: push edi */ 3830 edi = ecx; /* 0x36096203: mov edi, ecx */ 3831 ebx = MEM32(edi + 0x4); /* 0x36096205: mov ebx, dword ptr [edi + 4] */ 3832 esi = MEM32(ebx); /* 0x36096208: mov esi, dword ptr [ebx] */ 3833 /* cmp esi, ebx */ /* 0x3609620A: cmp esi, ebx */ 3834 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3835 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3836 _flag_k = FK_CMP; 3837 if (CMP_EQ(_flag_a, _flag_b)) goto L_36096235; /* 0x3609620C: je 0x36096235 */ 3838 L_3609620E: 3839 eax = esi; /* 0x3609620E: mov eax, esi */ 3840 ecx = MEM32(eax + 0x4); /* 0x36096210: mov ecx, dword ptr [eax + 4] */ 3841 edx = MEM32(eax); /* 0x36096213: mov edx, dword ptr [eax] */ 3842 esi = MEM32(esi); /* 0x36096215: mov esi, dword ptr [esi] */ 3843 MEM32(ecx) = edx; /* 0x36096217: mov dword ptr [ecx], edx */ 3844 ecx = MEM32(eax); /* 0x36096219: mov ecx, dword ptr [eax] */ 3845 edx = MEM32(eax + 0x4); /* 0x3609621B: mov edx, dword ptr [eax + 4] */ 3846 PUSH32(esp, eax); /* 0x3609621E: push eax */ 3847 MEM32(ecx + 0x4) = edx; /* 0x3609621F: mov dword ptr [ecx + 4], edx */ 3848 RECOMP_ICALL(0x3615FCC4u); /* 0x36096222: call 0x3615fcc4 */ /* not lifted */ 3849 RECOMP_FLAGS_IN(); 3850 ecx = MEM32(edi + 0x8); /* 0x36096227: mov ecx, dword ptr [edi + 8] */ 3851 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3852 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3853 esp = esp + 4; /* 0x3609622A: add esp, 4 */ 3854 _flag_k = FK_ADD; 3855 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3856 ecx = ecx - 1; /* 0x3609622D: dec ecx */ 3857 _flag_k = FK_DEC; 3858 /* cmp esi, ebx */ /* 0x3609622E: cmp esi, ebx */ 3859 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3860 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3861 _flag_k = FK_CMP; 3862 MEM32(edi + 0x8) = ecx; /* 0x36096230: mov dword ptr [edi + 8], ecx */ 3863 RECOMP_BACKEDGE(); 3864 if (CMP_NE(_flag_a, _flag_b)) goto L_3609620E; /* 0x36096233: jne 0x3609620e */ 3865 L_36096235: 3866 eax = MEM32(edi + 0x4); /* 0x36096235: mov eax, dword ptr [edi + 4] */ 3867 PUSH32(esp, eax); /* 0x36096238: push eax */ 3868 RECOMP_ICALL(0x3615FCC4u); /* 0x36096239: call 0x3615fcc4 */ /* not lifted */ 3869 RECOMP_FLAGS_IN(); 3870 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3871 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3872 esp = esp + 4; /* 0x3609623E: add esp, 4 */ 3873 _flag_k = FK_ADD; 3874 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3875 eax = 0; /* 0x36096241: xor eax, eax */ 3876 _cf = 0; 3877 _flag_k = FK_TEST; 3878 MEM32(edi + 0x4) = eax; /* 0x36096243: mov dword ptr [edi + 4], eax */ 3879 MEM32(edi + 0x8) = eax; /* 0x36096246: mov dword ptr [edi + 8], eax */ 3880 edi = POP32_VAL(esp); /* 0x36096249: pop edi */ 3881 esi = POP32_VAL(esp); /* 0x3609624A: pop esi */ 3882 ebx = POP32_VAL(esp); /* 0x3609624B: pop ebx */ 3883 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609624C: ret */ 3884 L_36166400: 3885 ecx = MEM32(ebp + (-0x14)); /* 0x36166400: mov ecx, dword ptr [ebp - 0x14] */ 3886 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 3887 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3888 ecx = ecx + 0xCu; /* 0x36166403: add ecx, 0xc */ 3889 _flag_k = FK_ADD; 3890 RECOMP_BACKEDGE(); 3891 goto L_36096200; /* 0x36166406: jmp 0x36096200 */ 3892 { RECOMP_REGS_OUT(); return; } /* end of function */ 3893 RECOMP_REGS_OUT(); 3894 } 3895 3896 void sub_3616640B(void) { 3897 int _fpu_cmp = 0; 3898 uint32_t _cf = 0; 3899 int _df = 1; 3900 uint32_t _flag_k = FK_NONE; 3901 uint32_t _flag_a = 0, _flag_b = 0; 3902 uint32_t _itail_tgt = 0; 3903 RECOMP_REGS_LOCALS 3904 RECOMP_ENTER(0x3616640Bu); 3905 3906 goto L_3616640B; 3907 L_36096200: 3908 PUSH32(esp, ebx); /* 0x36096200: push ebx */ 3909 PUSH32(esp, esi); /* 0x36096201: push esi */ 3910 PUSH32(esp, edi); /* 0x36096202: push edi */ 3911 edi = ecx; /* 0x36096203: mov edi, ecx */ 3912 ebx = MEM32(edi + 0x4); /* 0x36096205: mov ebx, dword ptr [edi + 4] */ 3913 esi = MEM32(ebx); /* 0x36096208: mov esi, dword ptr [ebx] */ 3914 /* cmp esi, ebx */ /* 0x3609620A: cmp esi, ebx */ 3915 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3916 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3917 _flag_k = FK_CMP; 3918 if (CMP_EQ(_flag_a, _flag_b)) goto L_36096235; /* 0x3609620C: je 0x36096235 */ 3919 L_3609620E: 3920 eax = esi; /* 0x3609620E: mov eax, esi */ 3921 ecx = MEM32(eax + 0x4); /* 0x36096210: mov ecx, dword ptr [eax + 4] */ 3922 edx = MEM32(eax); /* 0x36096213: mov edx, dword ptr [eax] */ 3923 esi = MEM32(esi); /* 0x36096215: mov esi, dword ptr [esi] */ 3924 MEM32(ecx) = edx; /* 0x36096217: mov dword ptr [ecx], edx */ 3925 ecx = MEM32(eax); /* 0x36096219: mov ecx, dword ptr [eax] */ 3926 edx = MEM32(eax + 0x4); /* 0x3609621B: mov edx, dword ptr [eax + 4] */ 3927 PUSH32(esp, eax); /* 0x3609621E: push eax */ 3928 MEM32(ecx + 0x4) = edx; /* 0x3609621F: mov dword ptr [ecx + 4], edx */ 3929 RECOMP_ICALL(0x3615FCC4u); /* 0x36096222: call 0x3615fcc4 */ /* not lifted */ 3930 RECOMP_FLAGS_IN(); 3931 ecx = MEM32(edi + 0x8); /* 0x36096227: mov ecx, dword ptr [edi + 8] */ 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; /* 0x3609622A: add esp, 4 */ 3935 _flag_k = FK_ADD; 3936 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3937 ecx = ecx - 1; /* 0x3609622D: dec ecx */ 3938 _flag_k = FK_DEC; 3939 /* cmp esi, ebx */ /* 0x3609622E: cmp esi, ebx */ 3940 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 3941 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3942 _flag_k = FK_CMP; 3943 MEM32(edi + 0x8) = ecx; /* 0x36096230: mov dword ptr [edi + 8], ecx */ 3944 RECOMP_BACKEDGE(); 3945 if (CMP_NE(_flag_a, _flag_b)) goto L_3609620E; /* 0x36096233: jne 0x3609620e */ 3946 L_36096235: 3947 eax = MEM32(edi + 0x4); /* 0x36096235: mov eax, dword ptr [edi + 4] */ 3948 PUSH32(esp, eax); /* 0x36096238: push eax */ 3949 RECOMP_ICALL(0x3615FCC4u); /* 0x36096239: call 0x3615fcc4 */ /* not lifted */ 3950 RECOMP_FLAGS_IN(); 3951 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3952 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3953 esp = esp + 4; /* 0x3609623E: add esp, 4 */ 3954 _flag_k = FK_ADD; 3955 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3956 eax = 0; /* 0x36096241: xor eax, eax */ 3957 _cf = 0; 3958 _flag_k = FK_TEST; 3959 MEM32(edi + 0x4) = eax; /* 0x36096243: mov dword ptr [edi + 4], eax */ 3960 MEM32(edi + 0x8) = eax; /* 0x36096246: mov dword ptr [edi + 8], eax */ 3961 edi = POP32_VAL(esp); /* 0x36096249: pop edi */ 3962 esi = POP32_VAL(esp); /* 0x3609624A: pop esi */ 3963 ebx = POP32_VAL(esp); /* 0x3609624B: pop ebx */ 3964 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609624C: ret */ 3965 L_3616640B: 3966 ecx = MEM32(ebp + (-0x14)); /* 0x3616640B: mov ecx, dword ptr [ebp - 0x14] */ 3967 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 3968 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3969 ecx = ecx + 0x18u; /* 0x3616640E: add ecx, 0x18 */ 3970 _flag_k = FK_ADD; 3971 RECOMP_BACKEDGE(); 3972 goto L_36096200; /* 0x36166411: jmp 0x36096200 */ 3973 { RECOMP_REGS_OUT(); return; } /* end of function */ 3974 RECOMP_REGS_OUT(); 3975 } 3976 3977 void sub_36166416(void) { 3978 int _fpu_cmp = 0; 3979 uint32_t _cf = 0; 3980 int _df = 1; 3981 uint32_t _flag_k = FK_NONE; 3982 uint32_t _flag_a = 0, _flag_b = 0; 3983 uint32_t _itail_tgt = 0; 3984 RECOMP_REGS_LOCALS 3985 RECOMP_ENTER(0x36166416u); 3986 3987 goto L_36166416; 3988 L_3615FD76: 3989 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 3990 L_36166416: 3991 eax = 0x3618B518u; /* 0x36166416: mov eax, 0x3618b518 */ 3992 L_3616641B: 3993 RECOMP_BACKEDGE(); 3994 goto L_3615FD76; /* 0x3616641B: jmp 0x3615fd76 */ 3995 { RECOMP_REGS_OUT(); return; } /* end of function */ 3996 _ljump: 3997 switch (_itail_tgt) { 3998 case 0x3615FD76u: goto L_3615FD76; 3999 case 0x36166416u: goto L_36166416; 4000 case 0x3616641Bu: goto L_3616641B; 4001 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4002 } 4003 RECOMP_REGS_OUT(); 4004 } 4005 4006 void sub_36166420(void) { 4007 int _fpu_cmp = 0; 4008 uint32_t _cf = 0; 4009 int _df = 1; 4010 uint32_t _flag_k = FK_NONE; 4011 uint32_t _flag_a = 0, _flag_b = 0; 4012 uint32_t _itail_tgt = 0; 4013 RECOMP_REGS_LOCALS 4014 RECOMP_ENTER(0x36166420u); 4015 4016 goto L_36166420; 4017 L_36096200: 4018 PUSH32(esp, ebx); /* 0x36096200: push ebx */ 4019 PUSH32(esp, esi); /* 0x36096201: push esi */ 4020 PUSH32(esp, edi); /* 0x36096202: push edi */ 4021 edi = ecx; /* 0x36096203: mov edi, ecx */ 4022 ebx = MEM32(edi + 0x4); /* 0x36096205: mov ebx, dword ptr [edi + 4] */ 4023 esi = MEM32(ebx); /* 0x36096208: mov esi, dword ptr [ebx] */ 4024 /* cmp esi, ebx */ /* 0x3609620A: cmp esi, ebx */ 4025 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4026 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4027 _flag_k = FK_CMP; 4028 if (CMP_EQ(_flag_a, _flag_b)) goto L_36096235; /* 0x3609620C: je 0x36096235 */ 4029 L_3609620E: 4030 eax = esi; /* 0x3609620E: mov eax, esi */ 4031 ecx = MEM32(eax + 0x4); /* 0x36096210: mov ecx, dword ptr [eax + 4] */ 4032 edx = MEM32(eax); /* 0x36096213: mov edx, dword ptr [eax] */ 4033 esi = MEM32(esi); /* 0x36096215: mov esi, dword ptr [esi] */ 4034 MEM32(ecx) = edx; /* 0x36096217: mov dword ptr [ecx], edx */ 4035 ecx = MEM32(eax); /* 0x36096219: mov ecx, dword ptr [eax] */ 4036 edx = MEM32(eax + 0x4); /* 0x3609621B: mov edx, dword ptr [eax + 4] */ 4037 PUSH32(esp, eax); /* 0x3609621E: push eax */ 4038 MEM32(ecx + 0x4) = edx; /* 0x3609621F: mov dword ptr [ecx + 4], edx */ 4039 RECOMP_ICALL(0x3615FCC4u); /* 0x36096222: call 0x3615fcc4 */ /* not lifted */ 4040 RECOMP_FLAGS_IN(); 4041 ecx = MEM32(edi + 0x8); /* 0x36096227: mov ecx, dword ptr [edi + 8] */ 4042 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4043 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4044 esp = esp + 4; /* 0x3609622A: add esp, 4 */ 4045 _flag_k = FK_ADD; 4046 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4047 ecx = ecx - 1; /* 0x3609622D: dec ecx */ 4048 _flag_k = FK_DEC; 4049 /* cmp esi, ebx */ /* 0x3609622E: cmp esi, ebx */ 4050 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4051 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4052 _flag_k = FK_CMP; 4053 MEM32(edi + 0x8) = ecx; /* 0x36096230: mov dword ptr [edi + 8], ecx */ 4054 RECOMP_BACKEDGE(); 4055 if (CMP_NE(_flag_a, _flag_b)) goto L_3609620E; /* 0x36096233: jne 0x3609620e */ 4056 L_36096235: 4057 eax = MEM32(edi + 0x4); /* 0x36096235: mov eax, dword ptr [edi + 4] */ 4058 PUSH32(esp, eax); /* 0x36096238: push eax */ 4059 RECOMP_ICALL(0x3615FCC4u); /* 0x36096239: call 0x3615fcc4 */ /* not lifted */ 4060 RECOMP_FLAGS_IN(); 4061 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4062 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4063 esp = esp + 4; /* 0x3609623E: add esp, 4 */ 4064 _flag_k = FK_ADD; 4065 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4066 eax = 0; /* 0x36096241: xor eax, eax */ 4067 _cf = 0; 4068 _flag_k = FK_TEST; 4069 MEM32(edi + 0x4) = eax; /* 0x36096243: mov dword ptr [edi + 4], eax */ 4070 MEM32(edi + 0x8) = eax; /* 0x36096246: mov dword ptr [edi + 8], eax */ 4071 edi = POP32_VAL(esp); /* 0x36096249: pop edi */ 4072 esi = POP32_VAL(esp); /* 0x3609624A: pop esi */ 4073 ebx = POP32_VAL(esp); /* 0x3609624B: pop ebx */ 4074 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609624C: ret */ 4075 L_36166420: 4076 ecx = MEM32(ebp + (-0x1C)); /* 0x36166420: mov ecx, dword ptr [ebp - 0x1c] */ 4077 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu); 4078 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4079 ecx = ecx + 0xCu; /* 0x36166423: add ecx, 0xc */ 4080 _flag_k = FK_ADD; 4081 RECOMP_BACKEDGE(); 4082 goto L_36096200; /* 0x36166426: jmp 0x36096200 */ 4083 { RECOMP_REGS_OUT(); return; } /* end of function */ 4084 RECOMP_REGS_OUT(); 4085 } 4086 4087 void sub_3616642B(void) { 4088 int _fpu_cmp = 0; 4089 uint32_t _cf = 0; 4090 int _df = 1; 4091 uint32_t _flag_k = FK_NONE; 4092 uint32_t _flag_a = 0, _flag_b = 0; 4093 uint32_t _itail_tgt = 0; 4094 RECOMP_REGS_LOCALS 4095 RECOMP_ENTER(0x3616642Bu); 4096 4097 goto L_3616642B; 4098 L_36096200: 4099 PUSH32(esp, ebx); /* 0x36096200: push ebx */ 4100 PUSH32(esp, esi); /* 0x36096201: push esi */ 4101 PUSH32(esp, edi); /* 0x36096202: push edi */ 4102 edi = ecx; /* 0x36096203: mov edi, ecx */ 4103 ebx = MEM32(edi + 0x4); /* 0x36096205: mov ebx, dword ptr [edi + 4] */ 4104 esi = MEM32(ebx); /* 0x36096208: mov esi, dword ptr [ebx] */ 4105 /* cmp esi, ebx */ /* 0x3609620A: cmp esi, ebx */ 4106 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4107 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4108 _flag_k = FK_CMP; 4109 if (CMP_EQ(_flag_a, _flag_b)) goto L_36096235; /* 0x3609620C: je 0x36096235 */ 4110 L_3609620E: 4111 eax = esi; /* 0x3609620E: mov eax, esi */ 4112 ecx = MEM32(eax + 0x4); /* 0x36096210: mov ecx, dword ptr [eax + 4] */ 4113 edx = MEM32(eax); /* 0x36096213: mov edx, dword ptr [eax] */ 4114 esi = MEM32(esi); /* 0x36096215: mov esi, dword ptr [esi] */ 4115 MEM32(ecx) = edx; /* 0x36096217: mov dword ptr [ecx], edx */ 4116 ecx = MEM32(eax); /* 0x36096219: mov ecx, dword ptr [eax] */ 4117 edx = MEM32(eax + 0x4); /* 0x3609621B: mov edx, dword ptr [eax + 4] */ 4118 PUSH32(esp, eax); /* 0x3609621E: push eax */ 4119 MEM32(ecx + 0x4) = edx; /* 0x3609621F: mov dword ptr [ecx + 4], edx */ 4120 RECOMP_ICALL(0x3615FCC4u); /* 0x36096222: call 0x3615fcc4 */ /* not lifted */ 4121 RECOMP_FLAGS_IN(); 4122 ecx = MEM32(edi + 0x8); /* 0x36096227: mov ecx, dword ptr [edi + 8] */ 4123 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4124 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4125 esp = esp + 4; /* 0x3609622A: add esp, 4 */ 4126 _flag_k = FK_ADD; 4127 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4128 ecx = ecx - 1; /* 0x3609622D: dec ecx */ 4129 _flag_k = FK_DEC; 4130 /* cmp esi, ebx */ /* 0x3609622E: cmp esi, ebx */ 4131 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 4132 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4133 _flag_k = FK_CMP; 4134 MEM32(edi + 0x8) = ecx; /* 0x36096230: mov dword ptr [edi + 8], ecx */ 4135 RECOMP_BACKEDGE(); 4136 if (CMP_NE(_flag_a, _flag_b)) goto L_3609620E; /* 0x36096233: jne 0x3609620e */ 4137 L_36096235: 4138 eax = MEM32(edi + 0x4); /* 0x36096235: mov eax, dword ptr [edi + 4] */ 4139 PUSH32(esp, eax); /* 0x36096238: push eax */ 4140 RECOMP_ICALL(0x3615FCC4u); /* 0x36096239: call 0x3615fcc4 */ /* not lifted */ 4141 RECOMP_FLAGS_IN(); 4142 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4143 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4144 esp = esp + 4; /* 0x3609623E: add esp, 4 */ 4145 _flag_k = FK_ADD; 4146 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4147 eax = 0; /* 0x36096241: xor eax, eax */ 4148 _cf = 0; 4149 _flag_k = FK_TEST; 4150 MEM32(edi + 0x4) = eax; /* 0x36096243: mov dword ptr [edi + 4], eax */ 4151 MEM32(edi + 0x8) = eax; /* 0x36096246: mov dword ptr [edi + 8], eax */ 4152 edi = POP32_VAL(esp); /* 0x36096249: pop edi */ 4153 esi = POP32_VAL(esp); /* 0x3609624A: pop esi */ 4154 ebx = POP32_VAL(esp); /* 0x3609624B: pop ebx */ 4155 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609624C: ret */ 4156 L_3616642B: 4157 ecx = MEM32(ebp + (-0x1C)); /* 0x3616642B: mov ecx, dword ptr [ebp - 0x1c] */ 4158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u); 4159 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4160 ecx = ecx + 0x18u; /* 0x3616642E: add ecx, 0x18 */ 4161 _flag_k = FK_ADD; 4162 RECOMP_BACKEDGE(); 4163 goto L_36096200; /* 0x36166431: jmp 0x36096200 */ 4164 { RECOMP_REGS_OUT(); return; } /* end of function */ 4165 RECOMP_REGS_OUT(); 4166 } 4167 4168 void sub_36166436(void) { 4169 int _fpu_cmp = 0; 4170 uint32_t _cf = 0; 4171 int _df = 1; 4172 uint32_t _flag_k = FK_NONE; 4173 uint32_t _flag_a = 0, _flag_b = 0; 4174 uint32_t _itail_tgt = 0; 4175 RECOMP_REGS_LOCALS 4176 RECOMP_ENTER(0x36166436u); 4177 4178 goto L_36166436; 4179 L_360BFE90: 4180 PUSH32(esp, ebp); /* 0x360BFE90: push ebp */ 4181 ebp = esp; /* 0x360BFE91: mov ebp, esp */ 4182 PUSH32(esp, 0xFFFFFFFFu); /* 0x360BFE93: push -1 */ 4183 PUSH32(esp, 0x3616747Bu); /* 0x360BFE95: push 0x3616747b */ 4184 eax = MEM32(FS_BASE + (0)); /* 0x360BFE9A: mov eax, dword ptr fs:[0] */ 4185 PUSH32(esp, eax); /* 0x360BFEA0: push eax */ 4186 MEM32(FS_BASE + (0)) = esp; /* 0x360BFEA1: mov dword ptr fs:[0], esp */ 4187 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x34u); 4188 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4189 esp = esp - 0x34u; /* 0x360BFEA8: sub esp, 0x34 */ 4190 _flag_k = FK_CMP; 4191 PUSH32(esp, ebx); /* 0x360BFEAB: push ebx */ 4192 PUSH32(esp, esi); /* 0x360BFEAC: push esi */ 4193 esi = ecx; /* 0x360BFEAD: mov esi, ecx */ 4194 PUSH32(esp, edi); /* 0x360BFEAF: push edi */ 4195 MEM32(ebp + (-0x10)) = esi; /* 0x360BFEB0: mov dword ptr [ebp - 0x10], esi */ 4196 MEM32(esi) = 0x36174EA4u; /* 0x360BFEB3: mov dword ptr [esi], 0x36174ea4 */ 4197 eax = ebp + (-0x20); /* 0x360BFEB9: lea eax, [ebp - 0x20] */ 4198 PUSH32(esp, eax); /* 0x360BFEBC: push eax */ 4199 MEM32(ebp + (-0x4)) = 0; /* 0x360BFEBD: mov dword ptr [ebp - 4], 0 */ 4200 RECOMP_ICALL(0x360C02D0u); /* 0x360BFEC4: call 0x360c02d0 */ /* not lifted */ 4201 RECOMP_FLAGS_IN(); 4202 ecx = MEM32(eax); /* 0x360BFEC9: mov ecx, dword ptr [eax] */ 4203 edx = MEM32(eax + 0x4); /* 0x360BFECB: mov edx, dword ptr [eax + 4] */ 4204 edi = MEM32(eax + 0x8); /* 0x360BFECE: mov edi, dword ptr [eax + 8] */ 4205 ebx = MEM32(eax + 0xC); /* 0x360BFED1: mov ebx, dword ptr [eax + 0xc] */ 4206 eax = ebp + (-0x40); /* 0x360BFED4: lea eax, [ebp - 0x40] */ 4207 MEM32(ebp + (-0x30)) = ecx; /* 0x360BFED7: mov dword ptr [ebp - 0x30], ecx */ 4208 PUSH32(esp, eax); /* 0x360BFEDA: push eax */ 4209 ecx = esi; /* 0x360BFEDB: mov ecx, esi */ 4210 MEM32(ebp + (-0x2C)) = edx; /* 0x360BFEDD: mov dword ptr [ebp - 0x2c], edx */ 4211 RECOMP_ICALL(0x360C0300u); /* 0x360BFEE0: call 0x360c0300 */ /* not lifted */ 4212 RECOMP_FLAGS_IN(); 4213 ecx = eax; /* 0x360BFEE5: mov ecx, eax */ 4214 edx = MEM32(ecx); /* 0x360BFEE7: mov edx, dword ptr [ecx] */ 4215 eax = MEM32(ecx + 0x4); /* 0x360BFEE9: mov eax, dword ptr [ecx + 4] */ 4216 MEM32(ebp + (-0x1C)) = eax; /* 0x360BFEEC: mov dword ptr [ebp - 0x1c], eax */ 4217 eax = MEM32(ecx + 0x8); /* 0x360BFEEF: mov eax, dword ptr [ecx + 8] */ 4218 /* cmp edi, eax */ /* 0x360BFEF2: cmp edi, eax */ 4219 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4220 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4221 _flag_k = FK_CMP; 4222 ecx = MEM32(ecx + 0xC); /* 0x360BFEF4: mov ecx, dword ptr [ecx + 0xc] */ 4223 MEM32(ebp + (-0x20)) = edx; /* 0x360BFEF7: mov dword ptr [ebp - 0x20], edx */ 4224 MEM32(ebp + (-0x18)) = eax; /* 0x360BFEFA: mov dword ptr [ebp - 0x18], eax */ 4225 MEM32(ebp + (-0x14)) = ecx; /* 0x360BFEFD: mov dword ptr [ebp - 0x14], ecx */ 4226 if (CMP_EQ(_flag_a, _flag_b)) goto L_360BFF32; /* 0x360BFF00: je 0x360bff32 */ 4227 L_360BFF02: 4228 ecx = MEM32(edi); /* 0x360BFF02: mov ecx, dword ptr [edi] */ 4229 RECOMP_ICALL(0x360B7D60u); /* 0x360BFF04: call 0x360b7d60 */ /* not lifted */ 4230 RECOMP_FLAGS_IN(); 4231 eax = MEM32(ebp + (-0x2C)); /* 0x360BFF09: mov eax, dword ptr [ebp - 0x2c] */ 4232 /* cmp edi, eax */ /* 0x360BFF0C: cmp edi, eax */ 4233 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4234 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4235 _flag_k = FK_CMP; 4236 if (CMP_EQ(_flag_a, _flag_b)) goto L_360BFF2D; /* 0x360BFF0E: je 0x360bff2d */ 4237 L_360BFF10: 4238 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4239 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4240 edi = edi + 4; /* 0x360BFF10: add edi, 4 */ 4241 _flag_k = FK_ADD; 4242 /* cmp edi, eax */ /* 0x360BFF13: cmp edi, eax */ 4243 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4244 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4245 _flag_k = FK_CMP; 4246 if (CMP_NE(_flag_a, _flag_b)) goto L_360BFF2D; /* 0x360BFF15: jne 0x360bff2d */ 4247 L_360BFF17: 4248 eax = MEM32(ebx + 0x4); /* 0x360BFF17: mov eax, dword ptr [ebx + 4] */ 4249 /* test eax, eax */ /* 0x360BFF1A: test eax, eax */ 4250 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4251 _cf = 0; 4252 _flag_k = FK_TEST; 4253 if (TEST_Z(_flag_a, _flag_b)) goto L_360BFF2D; /* 0x360BFF1C: je 0x360bff2d */ 4254 L_360BFF1E: 4255 edi = MEM32(ebx + 0x4); /* 0x360BFF1E: mov edi, dword ptr [ebx + 4] */ 4256 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4257 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4258 ebx = ebx + 4; /* 0x360BFF21: add ebx, 4 */ 4259 _flag_k = FK_ADD; 4260 edx = edi + 0x1000; /* 0x360BFF24: lea edx, [edi + 0x1000] */ 4261 MEM32(ebp + (-0x2C)) = edx; /* 0x360BFF2A: mov dword ptr [ebp - 0x2c], edx */ 4262 L_360BFF2D: 4263 /* cmp edi, MEM32(ebp + (-0x18)) */ /* 0x360BFF2D: cmp edi, dword ptr [ebp - 0x18] */ 4264 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x18))); 4265 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4266 _flag_k = FK_CMP; 4267 RECOMP_BACKEDGE(); 4268 if (CMP_NE(_flag_a, _flag_b)) goto L_360BFF02; /* 0x360BFF30: jne 0x360bff02 */ 4269 L_360BFF32: 4270 ecx = esi; /* 0x360BFF32: mov ecx, esi */ 4271 RECOMP_ICALL(0x360C0330u); /* 0x360BFF34: call 0x360c0330 */ /* not lifted */ 4272 RECOMP_FLAGS_IN(); 4273 eax = MEM32(esi + 0x30); /* 0x360BFF39: mov eax, dword ptr [esi + 0x30] */ 4274 /* test eax, eax */ /* 0x360BFF3C: test eax, eax */ 4275 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4276 _cf = 0; 4277 _flag_k = FK_TEST; 4278 if (TEST_Z(_flag_a, _flag_b)) goto L_360BFFF7; /* 0x360BFF3E: je 0x360bfff7 */ 4279 L_360BFF44: 4280 eax = MEM32(esi + 0x10); /* 0x360BFF44: mov eax, dword ptr [esi + 0x10] */ 4281 ecx = MEM32(esi + 0xC); /* 0x360BFF47: mov ecx, dword ptr [esi + 0xc] */ 4282 /* cmp eax, ecx */ /* 0x360BFF4A: cmp eax, ecx */ 4283 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4284 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4285 _flag_k = FK_CMP; 4286 edi = MEM32(esi + 0x14); /* 0x360BFF4C: mov edi, dword ptr [esi + 0x14] */ 4287 if (CMP_EQ(_flag_a, _flag_b)) goto L_360BFF7E; /* 0x360BFF4F: je 0x360bff7e */ 4288 L_360BFF51: 4289 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4290 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4291 eax = eax + 4; /* 0x360BFF51: add eax, 4 */ 4292 _flag_k = FK_ADD; 4293 /* cmp eax, ecx */ /* 0x360BFF54: cmp eax, ecx */ 4294 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4295 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4296 _flag_k = FK_CMP; 4297 MEM32(esi + 0x10) = eax; /* 0x360BFF56: mov dword ptr [esi + 0x10], eax */ 4298 if (CMP_NE(_flag_a, _flag_b)) goto L_360BFF7E; /* 0x360BFF59: jne 0x360bff7e */ 4299 L_360BFF5B: 4300 eax = MEM32(esi + 0x14); /* 0x360BFF5B: mov eax, dword ptr [esi + 0x14] */ 4301 ecx = MEM32(eax + 0x4); /* 0x360BFF5E: mov ecx, dword ptr [eax + 4] */ 4302 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4303 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4304 eax = eax + 4; /* 0x360BFF61: add eax, 4 */ 4305 _flag_k = FK_ADD; 4306 /* test ecx, ecx */ /* 0x360BFF64: test ecx, ecx */ 4307 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 4308 _cf = 0; 4309 _flag_k = FK_TEST; 4310 if (TEST_Z(_flag_a, _flag_b)) goto L_360BFF7E; /* 0x360BFF66: je 0x360bff7e */ 4311 L_360BFF68: 4312 MEM32(esi + 0x14) = eax; /* 0x360BFF68: mov dword ptr [esi + 0x14], eax */ 4313 eax = MEM32(eax); /* 0x360BFF6B: mov eax, dword ptr [eax] */ 4314 MEM32(esi + 0x8) = eax; /* 0x360BFF6D: mov dword ptr [esi + 8], eax */ 4315 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1000u); 4316 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4317 eax = eax + 0x1000u; /* 0x360BFF70: add eax, 0x1000 */ 4318 _flag_k = FK_ADD; 4319 MEM32(esi + 0xC) = eax; /* 0x360BFF75: mov dword ptr [esi + 0xc], eax */ 4320 eax = MEM32(esi + 0x8); /* 0x360BFF78: mov eax, dword ptr [esi + 8] */ 4321 MEM32(esi + 0x10) = eax; /* 0x360BFF7B: mov dword ptr [esi + 0x10], eax */ 4322 L_360BFF7E: 4323 _flag_a = (uint32_t)(MEM32(esi + 0x30)); _flag_b = (uint32_t)(1); 4324 MEM32(esi + 0x30) = MEM32(esi + 0x30) - 1; /* 0x360BFF7E: dec dword ptr [esi + 0x30] */ 4325 _flag_k = FK_DEC; 4326 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_360BFFD6; /* 0x360BFF81: jne 0x360bffd6 */ 4327 L_360BFF83: 4328 ecx = MEM32(esi + 0x14); /* 0x360BFF83: mov ecx, dword ptr [esi + 0x14] */ 4329 edx = MEM32(ecx + (-0x4)); /* 0x360BFF86: mov edx, dword ptr [ecx - 4] */ 4330 PUSH32(esp, edx); /* 0x360BFF89: push edx */ 4331 RECOMP_ICALL(0x3615FCC4u); /* 0x360BFF8A: call 0x3615fcc4 */ /* not lifted */ 4332 RECOMP_FLAGS_IN(); 4333 eax = MEM32(esi + 0x14); /* 0x360BFF8F: mov eax, dword ptr [esi + 0x14] */ 4334 ecx = MEM32(eax); /* 0x360BFF92: mov ecx, dword ptr [eax] */ 4335 PUSH32(esp, ecx); /* 0x360BFF94: push ecx */ 4336 RECOMP_ICALL(0x3615FCC4u); /* 0x360BFF95: call 0x3615fcc4 */ /* not lifted */ 4337 RECOMP_FLAGS_IN(); 4338 edx = MEM32(esi + 0x14); /* 0x360BFF9A: mov edx, dword ptr [esi + 0x14] */ 4339 eax = MEM32(edx + 0x4); /* 0x360BFF9D: mov eax, dword ptr [edx + 4] */ 4340 PUSH32(esp, eax); /* 0x360BFFA0: push eax */ 4341 RECOMP_ICALL(0x3615FCC4u); /* 0x360BFFA1: call 0x3615fcc4 */ /* not lifted */ 4342 RECOMP_FLAGS_IN(); 4343 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4344 eax = 0; /* 0x360BFFA6: xor eax, eax */ 4345 _cf = 0; 4346 _flag_k = FK_TEST; 4347 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4348 ecx = 0; /* 0x360BFFA8: xor ecx, ecx */ 4349 _cf = 0; 4350 _flag_k = FK_TEST; 4351 ebx = esi + 0x18; /* 0x360BFFAA: lea ebx, [esi + 0x18] */ 4352 MEM32(ebx) = eax; /* 0x360BFFAD: mov dword ptr [ebx], eax */ 4353 MEM32(esi + 0x8) = eax; /* 0x360BFFAF: mov dword ptr [esi + 8], eax */ 4354 MEM32(esi + 0xC) = ecx; /* 0x360BFFB2: mov dword ptr [esi + 0xc], ecx */ 4355 MEM32(ebx + 0x4) = ecx; /* 0x360BFFB5: mov dword ptr [ebx + 4], ecx */ 4356 ecx = MEM32(esi + 0x28); /* 0x360BFFB8: mov ecx, dword ptr [esi + 0x28] */ 4357 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4358 edx = 0; /* 0x360BFFBB: xor edx, edx */ 4359 _cf = 0; 4360 _flag_k = FK_TEST; 4361 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4362 edi = 0; /* 0x360BFFBD: xor edi, edi */ 4363 _cf = 0; 4364 _flag_k = FK_TEST; 4365 MEM32(ebx + 0x8) = edx; /* 0x360BFFBF: mov dword ptr [ebx + 8], edx */ 4366 MEM32(esi + 0x10) = edx; /* 0x360BFFC2: mov dword ptr [esi + 0x10], edx */ 4367 PUSH32(esp, ecx); /* 0x360BFFC5: push ecx */ 4368 MEM32(esi + 0x14) = edi; /* 0x360BFFC6: mov dword ptr [esi + 0x14], edi */ 4369 MEM32(ebx + 0xC) = edi; /* 0x360BFFC9: mov dword ptr [ebx + 0xc], edi */ 4370 RECOMP_ICALL(0x3615FCC4u); /* 0x360BFFCC: call 0x3615fcc4 */ /* not lifted */ 4371 RECOMP_FLAGS_IN(); 4372 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 4373 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4374 esp = esp + 0x10u; /* 0x360BFFD1: add esp, 0x10 */ 4375 _flag_k = FK_ADD; 4376 goto L_360BFFEC; /* 0x360BFFD4: jmp 0x360bffec */ 4377 L_360BFFD6: 4378 /* cmp edi, MEM32(esi + 0x14) */ /* 0x360BFFD6: cmp edi, dword ptr [esi + 0x14] */ 4379 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x14)); 4380 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4381 _flag_k = FK_CMP; 4382 if (CMP_EQ(_flag_a, _flag_b)) goto L_360BFFEC; /* 0x360BFFD9: je 0x360bffec */ 4383 L_360BFFDB: 4384 edx = MEM32(edi); /* 0x360BFFDB: mov edx, dword ptr [edi] */ 4385 PUSH32(esp, edx); /* 0x360BFFDD: push edx */ 4386 RECOMP_ICALL(0x3615FCC4u); /* 0x360BFFDE: call 0x3615fcc4 */ /* not lifted */ 4387 RECOMP_FLAGS_IN(); 4388 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4389 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4390 esp = esp + 4; /* 0x360BFFE3: add esp, 4 */ 4391 _flag_k = FK_ADD; 4392 MEM32(edi) = 0; /* 0x360BFFE6: mov dword ptr [edi], 0 */ 4393 L_360BFFEC: 4394 eax = MEM32(esi + 0x30); /* 0x360BFFEC: mov eax, dword ptr [esi + 0x30] */ 4395 /* test eax, eax */ /* 0x360BFFEF: test eax, eax */ 4396 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4397 _cf = 0; 4398 _flag_k = FK_TEST; 4399 RECOMP_BACKEDGE(); 4400 if (TEST_NZ(_flag_a, _flag_b)) goto L_360BFF44; /* 0x360BFFF1: jne 0x360bff44 */ 4401 L_360BFFF7: 4402 ecx = MEM32(ebp + (-0xC)); /* 0x360BFFF7: mov ecx, dword ptr [ebp - 0xc] */ 4403 edi = POP32_VAL(esp); /* 0x360BFFFA: pop edi */ 4404 esi = POP32_VAL(esp); /* 0x360BFFFB: pop esi */ 4405 ebx = POP32_VAL(esp); /* 0x360BFFFC: pop ebx */ 4406 MEM32(FS_BASE + (0)) = ecx; /* 0x360BFFFD: mov dword ptr fs:[0], ecx */ 4407 esp = ebp; /* 0x360C0004: mov esp, ebp */ 4408 ebp = POP32_VAL(esp); /* 0x360C0006: pop ebp */ 4409 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x360C0007: ret */ 4410 L_36166436: 4411 ecx = MEM32(ebp + (-0x1C)); /* 0x36166436: mov ecx, dword ptr [ebp - 0x1c] */ 4412 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x24u); 4413 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4414 ecx = ecx + 0x24u; /* 0x36166439: add ecx, 0x24 */ 4415 _flag_k = FK_ADD; 4416 RECOMP_BACKEDGE(); 4417 goto L_360BFE90; /* 0x3616643C: jmp 0x360bfe90 */ 4418 { RECOMP_REGS_OUT(); return; } /* end of function */ 4419 RECOMP_REGS_OUT(); 4420 } 4421 4422 void sub_36166441(void) { 4423 int _fpu_cmp = 0; 4424 uint32_t _cf = 0; 4425 int _df = 1; 4426 uint32_t _flag_k = FK_NONE; 4427 uint32_t _flag_a = 0, _flag_b = 0; 4428 uint32_t _itail_tgt = 0; 4429 RECOMP_REGS_LOCALS 4430 RECOMP_ENTER(0x36166441u); 4431 4432 goto L_36166441; 4433 L_3615FD76: 4434 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4435 L_36166441: 4436 eax = 0x3618B548u; /* 0x36166441: mov eax, 0x3618b548 */ 4437 L_36166446: 4438 RECOMP_BACKEDGE(); 4439 goto L_3615FD76; /* 0x36166446: jmp 0x3615fd76 */ 4440 { RECOMP_REGS_OUT(); return; } /* end of function */ 4441 _ljump: 4442 switch (_itail_tgt) { 4443 case 0x3615FD76u: goto L_3615FD76; 4444 case 0x36166441u: goto L_36166441; 4445 case 0x36166446u: goto L_36166446; 4446 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4447 } 4448 RECOMP_REGS_OUT(); 4449 } 4450 4451 void sub_36166450(void) { 4452 int _fpu_cmp = 0; 4453 uint32_t _cf = 0; 4454 int _df = 1; 4455 uint32_t _flag_k = FK_NONE; 4456 uint32_t _flag_a = 0, _flag_b = 0; 4457 uint32_t _itail_tgt = 0; 4458 RECOMP_REGS_LOCALS 4459 RECOMP_ENTER(0x36166450u); 4460 4461 L_36166450: 4462 eax = MEM32(ebp + (-0x14)); /* 0x36166450: mov eax, dword ptr [ebp - 0x14] */ 4463 PUSH32(esp, eax); /* 0x36166453: push eax */ 4464 RECOMP_ICALL(0x3615FCC4u); /* 0x36166454: call 0x3615fcc4 */ /* not lifted */ 4465 RECOMP_FLAGS_IN(); 4466 ecx = POP32_VAL(esp); /* 0x36166459: pop ecx */ 4467 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616645A: ret */ 4468 RECOMP_REGS_OUT(); 4469 } 4470 4471 void sub_3616645B(void) { 4472 int _fpu_cmp = 0; 4473 uint32_t _cf = 0; 4474 int _df = 1; 4475 uint32_t _flag_k = FK_NONE; 4476 uint32_t _flag_a = 0, _flag_b = 0; 4477 uint32_t _itail_tgt = 0; 4478 RECOMP_REGS_LOCALS 4479 RECOMP_ENTER(0x3616645Bu); 4480 4481 L_3616645B: 4482 eax = MEM32(ebp + (-0x14)); /* 0x3616645B: mov eax, dword ptr [ebp - 0x14] */ 4483 PUSH32(esp, eax); /* 0x3616645E: push eax */ 4484 RECOMP_ICALL(0x3615FCC4u); /* 0x3616645F: call 0x3615fcc4 */ /* not lifted */ 4485 RECOMP_FLAGS_IN(); 4486 ecx = POP32_VAL(esp); /* 0x36166464: pop ecx */ 4487 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166465: ret */ 4488 RECOMP_REGS_OUT(); 4489 } 4490 4491 void sub_36166466(void) { 4492 int _fpu_cmp = 0; 4493 uint32_t _cf = 0; 4494 int _df = 1; 4495 uint32_t _flag_k = FK_NONE; 4496 uint32_t _flag_a = 0, _flag_b = 0; 4497 uint32_t _itail_tgt = 0; 4498 RECOMP_REGS_LOCALS 4499 RECOMP_ENTER(0x36166466u); 4500 4501 goto L_36166466; 4502 L_3615FD76: 4503 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4504 L_36166466: 4505 eax = 0x3618B580u; /* 0x36166466: mov eax, 0x3618b580 */ 4506 L_3616646B: 4507 RECOMP_BACKEDGE(); 4508 goto L_3615FD76; /* 0x3616646B: jmp 0x3615fd76 */ 4509 { RECOMP_REGS_OUT(); return; } /* end of function */ 4510 _ljump: 4511 switch (_itail_tgt) { 4512 case 0x3615FD76u: goto L_3615FD76; 4513 case 0x36166466u: goto L_36166466; 4514 case 0x3616646Bu: goto L_3616646B; 4515 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4516 } 4517 RECOMP_REGS_OUT(); 4518 } 4519 4520 void sub_36166470(void) { 4521 int _fpu_cmp = 0; 4522 uint32_t _cf = 0; 4523 int _df = 1; 4524 uint32_t _flag_k = FK_NONE; 4525 uint32_t _flag_a = 0, _flag_b = 0; 4526 uint32_t _itail_tgt = 0; 4527 RECOMP_REGS_LOCALS 4528 RECOMP_ENTER(0x36166470u); 4529 4530 L_36166470: 4531 ecx = ebp + (-0x2C); /* 0x36166470: lea ecx, [ebp - 0x2c] */ 4532 L_36166473: 4533 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 4534 { RECOMP_REGS_OUT(); return; } /* end of function */ 4535 _ljump: 4536 switch (_itail_tgt) { 4537 case 0x36166470u: goto L_36166470; 4538 case 0x36166473u: goto L_36166473; 4539 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4540 } 4541 RECOMP_REGS_OUT(); 4542 } 4543 4544 void sub_36166479(void) { 4545 int _fpu_cmp = 0; 4546 uint32_t _cf = 0; 4547 int _df = 1; 4548 uint32_t _flag_k = FK_NONE; 4549 uint32_t _flag_a = 0, _flag_b = 0; 4550 uint32_t _itail_tgt = 0; 4551 RECOMP_REGS_LOCALS 4552 RECOMP_ENTER(0x36166479u); 4553 4554 goto L_36166479; 4555 L_36069900: 4556 PUSH32(esp, esi); /* 0x36069900: push esi */ 4557 esi = ecx; /* 0x36069901: mov esi, ecx */ 4558 eax = MEM32(esi + 0x4); /* 0x36069903: mov eax, dword ptr [esi + 4] */ 4559 /* test eax, eax */ /* 0x36069906: test eax, eax */ 4560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4561 _cf = 0; 4562 _flag_k = FK_TEST; 4563 if (TEST_Z(_flag_a, _flag_b)) goto L_36069926; /* 0x36069908: je 0x36069926 */ 4564 L_3606990A: 4565 ecx = eax + (-0x1); /* 0x3606990A: lea ecx, [eax - 1] */ 4566 SET_LO8(eax, MEM8(ecx)); /* 0x3606990D: mov al, byte ptr [ecx] */ 4567 /* test LO8(eax), LO8(eax) */ /* 0x3606990F: test al, al */ 4568 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 4569 _cf = 0; 4570 _flag_k = FK_NARROW(FK_TEST, 24); 4571 if (TEST_Z(_flag_a, _flag_b)) goto L_3606991D; /* 0x36069911: je 0x3606991d */ 4572 L_36069913: 4573 /* cmp LO8(eax), 0xFFu */ /* 0x36069913: cmp al, 0xff */ 4574 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(0xFFu) << 24; 4575 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4576 _flag_k = FK_NARROW(FK_CMP, 24); 4577 if (CMP_EQ(_flag_a, _flag_b)) goto L_3606991D; /* 0x36069915: je 0x3606991d */ 4578 L_36069917: 4579 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(1) << 24; 4580 SET_LO8(eax, LO8(eax) - 1); /* 0x36069917: dec al */ 4581 _flag_k = FK_NARROW(FK_DEC, 24); 4582 MEM8(ecx) = (uint8_t)(LO8(eax)); /* 0x36069919: mov byte ptr [ecx], al */ 4583 goto L_36069926; /* 0x3606991B: jmp 0x36069926 */ 4584 L_3606991D: 4585 PUSH32(esp, ecx); /* 0x3606991D: push ecx */ 4586 RECOMP_ICALL(0x3615FCC4u); /* 0x3606991E: call 0x3615fcc4 */ /* not lifted */ 4587 RECOMP_FLAGS_IN(); 4588 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4589 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4590 esp = esp + 4; /* 0x36069923: add esp, 4 */ 4591 _flag_k = FK_ADD; 4592 L_36069926: 4593 MEM32(esi + 0x4) = 0; /* 0x36069926: mov dword ptr [esi + 4], 0 */ 4594 MEM32(esi + 0x8) = 0; /* 0x3606992D: mov dword ptr [esi + 8], 0 */ 4595 MEM32(esi + 0xC) = 0; /* 0x36069934: mov dword ptr [esi + 0xc], 0 */ 4596 esi = POP32_VAL(esp); /* 0x3606993B: pop esi */ 4597 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3606993C: ret */ 4598 L_36166479: 4599 ecx = ebp + (-0x40); /* 0x36166479: lea ecx, [ebp - 0x40] */ 4600 RECOMP_BACKEDGE(); 4601 goto L_36069900; /* 0x3616647C: jmp 0x36069900 */ 4602 { RECOMP_REGS_OUT(); return; } /* end of function */ 4603 RECOMP_REGS_OUT(); 4604 } 4605 4606 void sub_36166481(void) { 4607 int _fpu_cmp = 0; 4608 uint32_t _cf = 0; 4609 int _df = 1; 4610 uint32_t _flag_k = FK_NONE; 4611 uint32_t _flag_a = 0, _flag_b = 0; 4612 uint32_t _itail_tgt = 0; 4613 RECOMP_REGS_LOCALS 4614 RECOMP_ENTER(0x36166481u); 4615 4616 goto L_36166481; 4617 L_3615FD76: 4618 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4619 L_36166481: 4620 eax = 0x3618B5B0u; /* 0x36166481: mov eax, 0x3618b5b0 */ 4621 L_36166486: 4622 RECOMP_BACKEDGE(); 4623 goto L_3615FD76; /* 0x36166486: jmp 0x3615fd76 */ 4624 { RECOMP_REGS_OUT(); return; } /* end of function */ 4625 _ljump: 4626 switch (_itail_tgt) { 4627 case 0x3615FD76u: goto L_3615FD76; 4628 case 0x36166481u: goto L_36166481; 4629 case 0x36166486u: goto L_36166486; 4630 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4631 } 4632 RECOMP_REGS_OUT(); 4633 } 4634 4635 void sub_36166490(void) { 4636 int _fpu_cmp = 0; 4637 uint32_t _cf = 0; 4638 int _df = 1; 4639 uint32_t _flag_k = FK_NONE; 4640 uint32_t _flag_a = 0, _flag_b = 0; 4641 uint32_t _itail_tgt = 0; 4642 RECOMP_REGS_LOCALS 4643 RECOMP_ENTER(0x36166490u); 4644 4645 L_36166490: 4646 ecx = ebp + (-0x24); /* 0x36166490: lea ecx, [ebp - 0x24] */ 4647 L_36166493: 4648 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 4649 { RECOMP_REGS_OUT(); return; } /* end of function */ 4650 _ljump: 4651 switch (_itail_tgt) { 4652 case 0x36166490u: goto L_36166490; 4653 case 0x36166493u: goto L_36166493; 4654 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4655 } 4656 RECOMP_REGS_OUT(); 4657 } 4658 4659 void sub_36166499(void) { 4660 int _fpu_cmp = 0; 4661 uint32_t _cf = 0; 4662 int _df = 1; 4663 uint32_t _flag_k = FK_NONE; 4664 uint32_t _flag_a = 0, _flag_b = 0; 4665 uint32_t _itail_tgt = 0; 4666 RECOMP_REGS_LOCALS 4667 RECOMP_ENTER(0x36166499u); 4668 4669 goto L_36166499; 4670 L_3615FD76: 4671 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4672 L_36166499: 4673 eax = 0x3618B5E0u; /* 0x36166499: mov eax, 0x3618b5e0 */ 4674 L_3616649E: 4675 RECOMP_BACKEDGE(); 4676 goto L_3615FD76; /* 0x3616649E: jmp 0x3615fd76 */ 4677 { RECOMP_REGS_OUT(); return; } /* end of function */ 4678 _ljump: 4679 switch (_itail_tgt) { 4680 case 0x3615FD76u: goto L_3615FD76; 4681 case 0x36166499u: goto L_36166499; 4682 case 0x3616649Eu: goto L_3616649E; 4683 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4684 } 4685 RECOMP_REGS_OUT(); 4686 } 4687 4688 void sub_361664B0(void) { 4689 int _fpu_cmp = 0; 4690 uint32_t _cf = 0; 4691 int _df = 1; 4692 uint32_t _flag_k = FK_NONE; 4693 uint32_t _flag_a = 0, _flag_b = 0; 4694 uint32_t _itail_tgt = 0; 4695 RECOMP_REGS_LOCALS 4696 RECOMP_ENTER(0x361664B0u); 4697 4698 L_361664B0: 4699 eax = MEM32(ebp + (-0x10)); /* 0x361664B0: mov eax, dword ptr [ebp - 0x10] */ 4700 PUSH32(esp, eax); /* 0x361664B3: push eax */ 4701 RECOMP_ICALL(0x3615FCC4u); /* 0x361664B4: call 0x3615fcc4 */ /* not lifted */ 4702 RECOMP_FLAGS_IN(); 4703 ecx = POP32_VAL(esp); /* 0x361664B9: pop ecx */ 4704 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361664BA: ret */ 4705 RECOMP_REGS_OUT(); 4706 } 4707 4708 void sub_361664BB(void) { 4709 int _fpu_cmp = 0; 4710 uint32_t _cf = 0; 4711 int _df = 1; 4712 uint32_t _flag_k = FK_NONE; 4713 uint32_t _flag_a = 0, _flag_b = 0; 4714 uint32_t _itail_tgt = 0; 4715 RECOMP_REGS_LOCALS 4716 RECOMP_ENTER(0x361664BBu); 4717 4718 goto L_361664BB; 4719 L_3615FD76: 4720 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4721 L_361664BB: 4722 eax = 0x3618B608u; /* 0x361664BB: mov eax, 0x3618b608 */ 4723 L_361664C0: 4724 RECOMP_BACKEDGE(); 4725 goto L_3615FD76; /* 0x361664C0: jmp 0x3615fd76 */ 4726 { RECOMP_REGS_OUT(); return; } /* end of function */ 4727 _ljump: 4728 switch (_itail_tgt) { 4729 case 0x3615FD76u: goto L_3615FD76; 4730 case 0x361664BBu: goto L_361664BB; 4731 case 0x361664C0u: goto L_361664C0; 4732 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4733 } 4734 RECOMP_REGS_OUT(); 4735 } 4736 4737 void sub_361664D0(void) { 4738 int _fpu_cmp = 0; 4739 uint32_t _cf = 0; 4740 int _df = 1; 4741 uint32_t _flag_k = FK_NONE; 4742 uint32_t _flag_a = 0, _flag_b = 0; 4743 uint32_t _itail_tgt = 0; 4744 RECOMP_REGS_LOCALS 4745 RECOMP_ENTER(0x361664D0u); 4746 4747 L_361664D0: 4748 eax = MEM32(ebp + 0xC); /* 0x361664D0: mov eax, dword ptr [ebp + 0xc] */ 4749 PUSH32(esp, eax); /* 0x361664D3: push eax */ 4750 RECOMP_ICALL(0x3615FCC4u); /* 0x361664D4: call 0x3615fcc4 */ /* not lifted */ 4751 RECOMP_FLAGS_IN(); 4752 ecx = POP32_VAL(esp); /* 0x361664D9: pop ecx */ 4753 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361664DA: ret */ 4754 RECOMP_REGS_OUT(); 4755 } 4756 4757 void sub_361664DB(void) { 4758 int _fpu_cmp = 0; 4759 uint32_t _cf = 0; 4760 int _df = 1; 4761 uint32_t _flag_k = FK_NONE; 4762 uint32_t _flag_a = 0, _flag_b = 0; 4763 uint32_t _itail_tgt = 0; 4764 RECOMP_REGS_LOCALS 4765 RECOMP_ENTER(0x361664DBu); 4766 4767 goto L_361664DB; 4768 L_3615FD76: 4769 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4770 L_361664DB: 4771 eax = 0x3618B630u; /* 0x361664DB: mov eax, 0x3618b630 */ 4772 L_361664E0: 4773 RECOMP_BACKEDGE(); 4774 goto L_3615FD76; /* 0x361664E0: jmp 0x3615fd76 */ 4775 { RECOMP_REGS_OUT(); return; } /* end of function */ 4776 _ljump: 4777 switch (_itail_tgt) { 4778 case 0x3615FD76u: goto L_3615FD76; 4779 case 0x361664DBu: goto L_361664DB; 4780 case 0x361664E0u: goto L_361664E0; 4781 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4782 } 4783 RECOMP_REGS_OUT(); 4784 } 4785 4786 void sub_361664F0(void) { 4787 int _fpu_cmp = 0; 4788 uint32_t _cf = 0; 4789 int _df = 1; 4790 uint32_t _flag_k = FK_NONE; 4791 uint32_t _flag_a = 0, _flag_b = 0; 4792 uint32_t _itail_tgt = 0; 4793 RECOMP_REGS_LOCALS 4794 RECOMP_ENTER(0x361664F0u); 4795 4796 L_361664F0: 4797 ecx = ebp + (-0x58); /* 0x361664F0: lea ecx, [ebp - 0x58] */ 4798 L_361664F3: 4799 { _itail_tgt = (uint32_t)(MEM32(0x3616FA90)); goto _ljump; } 4800 { RECOMP_REGS_OUT(); return; } /* end of function */ 4801 _ljump: 4802 switch (_itail_tgt) { 4803 case 0x361664F0u: goto L_361664F0; 4804 case 0x361664F3u: goto L_361664F3; 4805 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4806 } 4807 RECOMP_REGS_OUT(); 4808 } 4809 4810 void sub_361664F9(void) { 4811 int _fpu_cmp = 0; 4812 uint32_t _cf = 0; 4813 int _df = 1; 4814 uint32_t _flag_k = FK_NONE; 4815 uint32_t _flag_a = 0, _flag_b = 0; 4816 uint32_t _itail_tgt = 0; 4817 RECOMP_REGS_LOCALS 4818 RECOMP_ENTER(0x361664F9u); 4819 4820 L_361664F9: 4821 eax = MEM32(ebp + 0x8); /* 0x361664F9: mov eax, dword ptr [ebp + 8] */ 4822 PUSH32(esp, eax); /* 0x361664FC: push eax */ 4823 RECOMP_ICALL(0x3615FCC4u); /* 0x361664FD: call 0x3615fcc4 */ /* not lifted */ 4824 RECOMP_FLAGS_IN(); 4825 ecx = POP32_VAL(esp); /* 0x36166502: pop ecx */ 4826 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166503: ret */ 4827 RECOMP_REGS_OUT(); 4828 } 4829 4830 void sub_36166504(void) { 4831 int _fpu_cmp = 0; 4832 uint32_t _cf = 0; 4833 int _df = 1; 4834 uint32_t _flag_k = FK_NONE; 4835 uint32_t _flag_a = 0, _flag_b = 0; 4836 uint32_t _itail_tgt = 0; 4837 RECOMP_REGS_LOCALS 4838 RECOMP_ENTER(0x36166504u); 4839 4840 goto L_36166504; 4841 L_3615FD76: 4842 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4843 L_36166504: 4844 eax = 0x3618B658u; /* 0x36166504: mov eax, 0x3618b658 */ 4845 L_36166509: 4846 RECOMP_BACKEDGE(); 4847 goto L_3615FD76; /* 0x36166509: jmp 0x3615fd76 */ 4848 { RECOMP_REGS_OUT(); return; } /* end of function */ 4849 _ljump: 4850 switch (_itail_tgt) { 4851 case 0x3615FD76u: goto L_3615FD76; 4852 case 0x36166504u: goto L_36166504; 4853 case 0x36166509u: goto L_36166509; 4854 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4855 } 4856 RECOMP_REGS_OUT(); 4857 } 4858 4859 void sub_36166510(void) { 4860 int _fpu_cmp = 0; 4861 uint32_t _cf = 0; 4862 int _df = 1; 4863 uint32_t _flag_k = FK_NONE; 4864 uint32_t _flag_a = 0, _flag_b = 0; 4865 uint32_t _itail_tgt = 0; 4866 RECOMP_REGS_LOCALS 4867 RECOMP_ENTER(0x36166510u); 4868 4869 L_36166510: 4870 eax = MEM32(ebp + 0x8); /* 0x36166510: mov eax, dword ptr [ebp + 8] */ 4871 PUSH32(esp, eax); /* 0x36166513: push eax */ 4872 ecx = MEM32(ebp + (-0x14)); /* 0x36166514: mov ecx, dword ptr [ebp - 0x14] */ 4873 PUSH32(esp, ecx); /* 0x36166517: push ecx */ 4874 RECOMP_ICALL(0x3610BA00u); /* 0x36166518: call 0x3610ba00 */ /* not lifted */ 4875 RECOMP_FLAGS_IN(); 4876 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4877 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4878 esp = esp + 8; /* 0x3616651D: add esp, 8 */ 4879 _flag_k = FK_ADD; 4880 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166520: ret */ 4881 RECOMP_REGS_OUT(); 4882 } 4883 4884 void sub_36166521(void) { 4885 int _fpu_cmp = 0; 4886 uint32_t _cf = 0; 4887 int _df = 1; 4888 uint32_t _flag_k = FK_NONE; 4889 uint32_t _flag_a = 0, _flag_b = 0; 4890 uint32_t _itail_tgt = 0; 4891 RECOMP_REGS_LOCALS 4892 RECOMP_ENTER(0x36166521u); 4893 4894 goto L_36166521; 4895 L_3615FD76: 4896 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4897 L_36166521: 4898 eax = 0x3618B688u; /* 0x36166521: mov eax, 0x3618b688 */ 4899 L_36166526: 4900 RECOMP_BACKEDGE(); 4901 goto L_3615FD76; /* 0x36166526: jmp 0x3615fd76 */ 4902 { RECOMP_REGS_OUT(); return; } /* end of function */ 4903 _ljump: 4904 switch (_itail_tgt) { 4905 case 0x3615FD76u: goto L_3615FD76; 4906 case 0x36166521u: goto L_36166521; 4907 case 0x36166526u: goto L_36166526; 4908 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4909 } 4910 RECOMP_REGS_OUT(); 4911 } 4912 4913 void sub_36166530(void) { 4914 int _fpu_cmp = 0; 4915 uint32_t _cf = 0; 4916 int _df = 1; 4917 uint32_t _flag_k = FK_NONE; 4918 uint32_t _flag_a = 0, _flag_b = 0; 4919 uint32_t _itail_tgt = 0; 4920 RECOMP_REGS_LOCALS 4921 RECOMP_ENTER(0x36166530u); 4922 4923 L_36166530: 4924 eax = MEM32(ebp + (-0x14)); /* 0x36166530: mov eax, dword ptr [ebp - 0x14] */ 4925 PUSH32(esp, eax); /* 0x36166533: push eax */ 4926 RECOMP_ICALL(0x3615FCC4u); /* 0x36166534: call 0x3615fcc4 */ /* not lifted */ 4927 RECOMP_FLAGS_IN(); 4928 ecx = POP32_VAL(esp); /* 0x36166539: pop ecx */ 4929 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616653A: ret */ 4930 RECOMP_REGS_OUT(); 4931 } 4932 4933 void sub_3616653B(void) { 4934 int _fpu_cmp = 0; 4935 uint32_t _cf = 0; 4936 int _df = 1; 4937 uint32_t _flag_k = FK_NONE; 4938 uint32_t _flag_a = 0, _flag_b = 0; 4939 uint32_t _itail_tgt = 0; 4940 RECOMP_REGS_LOCALS 4941 RECOMP_ENTER(0x3616653Bu); 4942 4943 goto L_3616653B; 4944 L_3615FD76: 4945 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4946 L_3616653B: 4947 eax = 0x3618B6B0u; /* 0x3616653B: mov eax, 0x3618b6b0 */ 4948 L_36166540: 4949 RECOMP_BACKEDGE(); 4950 goto L_3615FD76; /* 0x36166540: jmp 0x3615fd76 */ 4951 { RECOMP_REGS_OUT(); return; } /* end of function */ 4952 _ljump: 4953 switch (_itail_tgt) { 4954 case 0x3615FD76u: goto L_3615FD76; 4955 case 0x3616653Bu: goto L_3616653B; 4956 case 0x36166540u: goto L_36166540; 4957 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 4958 } 4959 RECOMP_REGS_OUT(); 4960 } 4961 4962 void sub_36166550(void) { 4963 int _fpu_cmp = 0; 4964 uint32_t _cf = 0; 4965 int _df = 1; 4966 uint32_t _flag_k = FK_NONE; 4967 uint32_t _flag_a = 0, _flag_b = 0; 4968 uint32_t _itail_tgt = 0; 4969 RECOMP_REGS_LOCALS 4970 RECOMP_ENTER(0x36166550u); 4971 4972 L_36166550: 4973 eax = MEM32(ebp + (-0x18)); /* 0x36166550: mov eax, dword ptr [ebp - 0x18] */ 4974 PUSH32(esp, eax); /* 0x36166553: push eax */ 4975 RECOMP_ICALL(0x3615FCC4u); /* 0x36166554: call 0x3615fcc4 */ /* not lifted */ 4976 RECOMP_FLAGS_IN(); 4977 ecx = POP32_VAL(esp); /* 0x36166559: pop ecx */ 4978 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616655A: ret */ 4979 RECOMP_REGS_OUT(); 4980 } 4981 4982 void sub_3616655B(void) { 4983 int _fpu_cmp = 0; 4984 uint32_t _cf = 0; 4985 int _df = 1; 4986 uint32_t _flag_k = FK_NONE; 4987 uint32_t _flag_a = 0, _flag_b = 0; 4988 uint32_t _itail_tgt = 0; 4989 RECOMP_REGS_LOCALS 4990 RECOMP_ENTER(0x3616655Bu); 4991 4992 goto L_3616655B; 4993 L_3615FD76: 4994 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 4995 L_3616655B: 4996 eax = 0x3618B6D8u; /* 0x3616655B: mov eax, 0x3618b6d8 */ 4997 L_36166560: 4998 RECOMP_BACKEDGE(); 4999 goto L_3615FD76; /* 0x36166560: jmp 0x3615fd76 */ 5000 { RECOMP_REGS_OUT(); return; } /* end of function */ 5001 _ljump: 5002 switch (_itail_tgt) { 5003 case 0x3615FD76u: goto L_3615FD76; 5004 case 0x3616655Bu: goto L_3616655B; 5005 case 0x36166560u: goto L_36166560; 5006 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5007 } 5008 RECOMP_REGS_OUT(); 5009 } 5010 5011 void sub_36166570(void) { 5012 int _fpu_cmp = 0; 5013 uint32_t _cf = 0; 5014 int _df = 1; 5015 uint32_t _flag_k = FK_NONE; 5016 uint32_t _flag_a = 0, _flag_b = 0; 5017 uint32_t _itail_tgt = 0; 5018 RECOMP_REGS_LOCALS 5019 RECOMP_ENTER(0x36166570u); 5020 5021 goto L_36166570; 5022 L_3609CC20: 5023 PUSH32(esp, ebp); /* 0x3609CC20: push ebp */ 5024 ebp = esp; /* 0x3609CC21: mov ebp, esp */ 5025 PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */ 5026 PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */ 5027 eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */ 5028 PUSH32(esp, eax); /* 0x3609CC30: push eax */ 5029 MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */ 5030 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5031 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5032 esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */ 5033 _flag_k = FK_CMP; 5034 PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */ 5035 PUSH32(esp, esi); /* 0x3609CC3C: push esi */ 5036 esi = ecx; /* 0x3609CC3D: mov esi, ecx */ 5037 PUSH32(esp, edi); /* 0x3609CC3F: push edi */ 5038 MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */ 5039 MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */ 5040 MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */ 5041 MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */ 5042 MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */ 5043 MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */ 5044 MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */ 5045 MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */ 5046 MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */ 5047 ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */ 5048 /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */ 5049 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5050 _cf = 0; 5051 _flag_k = FK_TEST; 5052 MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */ 5053 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */ 5054 L_3609CC97: 5055 eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */ 5056 edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */ 5057 /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */ 5058 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5059 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5060 _flag_k = FK_CMP; 5061 MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */ 5062 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */ 5063 L_3609CCA3: 5064 eax = edi; /* 0x3609CCA3: mov eax, edi */ 5065 edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */ 5066 PUSH32(esp, eax); /* 0x3609CCA7: push eax */ 5067 eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */ 5068 PUSH32(esp, eax); /* 0x3609CCAB: push eax */ 5069 ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */ 5070 RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */ 5071 RECOMP_FLAGS_IN(); 5072 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */ 5073 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 5074 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5075 _flag_k = FK_CMP; 5076 RECOMP_BACKEDGE(); 5077 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */ 5078 L_3609CCB8: 5079 eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */ 5080 PUSH32(esp, eax); /* 0x3609CCBB: push eax */ 5081 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */ 5082 RECOMP_FLAGS_IN(); 5083 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5084 eax = 0; /* 0x3609CCC1: xor eax, eax */ 5085 _cf = 0; 5086 _flag_k = FK_TEST; 5087 PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */ 5088 MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */ 5089 MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */ 5090 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */ 5091 RECOMP_FLAGS_IN(); 5092 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5093 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5094 esp = esp + 8; /* 0x3609CCCF: add esp, 8 */ 5095 _flag_k = FK_ADD; 5096 L_3609CCD2: 5097 ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */ 5098 /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */ 5099 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5100 _cf = 0; 5101 _flag_k = FK_TEST; 5102 MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */ 5103 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */ 5104 L_3609CCE6: 5105 eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */ 5106 edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */ 5107 /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */ 5108 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5109 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5110 _flag_k = FK_CMP; 5111 MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */ 5112 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */ 5113 L_3609CCF2: 5114 PUSH32(esp, 0); /* 0x3609CCF2: push 0 */ 5115 ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */ 5116 eax = edi; /* 0x3609CCF7: mov eax, edi */ 5117 edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */ 5118 PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */ 5119 ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */ 5120 MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */ 5121 RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */ 5122 RECOMP_FLAGS_IN(); 5123 eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */ 5124 ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */ 5125 edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */ 5126 MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */ 5127 ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */ 5128 edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */ 5129 PUSH32(esp, eax); /* 0x3609CD15: push eax */ 5130 MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */ 5131 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */ 5132 RECOMP_FLAGS_IN(); 5133 ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */ 5134 eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */ 5135 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5136 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5137 esp = esp + 4; /* 0x3609CD24: add esp, 4 */ 5138 _flag_k = FK_ADD; 5139 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5140 ecx = ecx - 1; /* 0x3609CD27: dec ecx */ 5141 _flag_k = FK_DEC; 5142 /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */ 5143 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5144 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5145 _flag_k = FK_CMP; 5146 MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */ 5147 RECOMP_BACKEDGE(); 5148 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */ 5149 L_3609CD2F: 5150 eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */ 5151 PUSH32(esp, eax); /* 0x3609CD32: push eax */ 5152 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */ 5153 RECOMP_FLAGS_IN(); 5154 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5155 eax = 0; /* 0x3609CD38: xor eax, eax */ 5156 _cf = 0; 5157 _flag_k = FK_TEST; 5158 PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */ 5159 MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */ 5160 MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */ 5161 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */ 5162 RECOMP_FLAGS_IN(); 5163 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5164 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5165 esp = esp + 8; /* 0x3609CD46: add esp, 8 */ 5166 _flag_k = FK_ADD; 5167 L_3609CD49: 5168 eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */ 5169 /* test eax, eax */ /* 0x3609CD4F: test eax, eax */ 5170 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5171 _cf = 0; 5172 _flag_k = FK_TEST; 5173 MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */ 5174 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */ 5175 L_3609CD5D: 5176 PUSH32(esp, eax); /* 0x3609CD5D: push eax */ 5177 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */ 5178 RECOMP_FLAGS_IN(); 5179 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5180 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5181 esp = esp + 4; /* 0x3609CD63: add esp, 4 */ 5182 _flag_k = FK_ADD; 5183 L_3609CD66: 5184 eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */ 5185 /* test eax, eax */ /* 0x3609CD6C: test eax, eax */ 5186 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5187 _cf = 0; 5188 _flag_k = FK_TEST; 5189 MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */ 5190 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */ 5191 L_3609CD7A: 5192 PUSH32(esp, eax); /* 0x3609CD7A: push eax */ 5193 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */ 5194 RECOMP_FLAGS_IN(); 5195 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5196 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5197 esp = esp + 4; /* 0x3609CD80: add esp, 4 */ 5198 _flag_k = FK_ADD; 5199 L_3609CD83: 5200 ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */ 5201 /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */ 5202 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5203 _cf = 0; 5204 _flag_k = FK_TEST; 5205 MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */ 5206 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */ 5207 L_3609CD97: 5208 RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */ 5209 RECOMP_FLAGS_IN(); 5210 MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */ 5211 L_3609CDA6: 5212 ecx = esi; /* 0x3609CDA6: mov ecx, esi */ 5213 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 5214 _cf = (ecx) != 0; 5215 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */ 5216 _flag_k = FK_CMP; 5217 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */ 5218 ecx = _sc ? 0xFFFFFFFFu : 0; 5219 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5220 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5221 eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */ 5222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5223 ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */ 5224 _cf = 0; 5225 _flag_k = FK_TEST; 5226 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */ 5227 RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */ 5228 RECOMP_FLAGS_IN(); 5229 ecx = esi; /* 0x3609CDBE: mov ecx, esi */ 5230 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 5231 _cf = (ecx) != 0; 5232 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */ 5233 _flag_k = FK_CMP; 5234 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */ 5235 ecx = _sc ? 0xFFFFFFFFu : 0; 5236 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5237 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5238 eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */ 5239 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5240 ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */ 5241 _cf = 0; 5242 _flag_k = FK_TEST; 5243 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */ 5244 RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */ 5245 RECOMP_FLAGS_IN(); 5246 ecx = esi; /* 0x3609CDD5: mov ecx, esi */ 5247 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */ 5248 RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */ 5249 RECOMP_FLAGS_IN(); 5250 ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */ 5251 edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */ 5252 esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */ 5253 ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */ 5254 MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */ 5255 esp = ebp; /* 0x3609CDF0: mov esp, ebp */ 5256 ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */ 5257 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret */ 5258 L_36166570: 5259 ecx = MEM32(ebp + (-0x10)); /* 0x36166570: mov ecx, dword ptr [ebp - 0x10] */ 5260 RECOMP_BACKEDGE(); 5261 goto L_3609CC20; /* 0x36166573: jmp 0x3609cc20 */ 5262 { RECOMP_REGS_OUT(); return; } /* end of function */ 5263 RECOMP_REGS_OUT(); 5264 } 5265 5266 void sub_36166578(void) { 5267 int _fpu_cmp = 0; 5268 uint32_t _cf = 0; 5269 int _df = 1; 5270 uint32_t _flag_k = FK_NONE; 5271 uint32_t _flag_a = 0, _flag_b = 0; 5272 uint32_t _itail_tgt = 0; 5273 RECOMP_REGS_LOCALS 5274 RECOMP_ENTER(0x36166578u); 5275 5276 goto L_36166578; 5277 L_3615FD76: 5278 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 5279 L_36166578: 5280 eax = 0x3618B700u; /* 0x36166578: mov eax, 0x3618b700 */ 5281 L_3616657D: 5282 RECOMP_BACKEDGE(); 5283 goto L_3615FD76; /* 0x3616657D: jmp 0x3615fd76 */ 5284 { RECOMP_REGS_OUT(); return; } /* end of function */ 5285 _ljump: 5286 switch (_itail_tgt) { 5287 case 0x3615FD76u: goto L_3615FD76; 5288 case 0x36166578u: goto L_36166578; 5289 case 0x3616657Du: goto L_3616657D; 5290 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5291 } 5292 RECOMP_REGS_OUT(); 5293 } 5294 5295 void sub_36166590(void) { 5296 int _fpu_cmp = 0; 5297 uint32_t _cf = 0; 5298 int _df = 1; 5299 uint32_t _flag_k = FK_NONE; 5300 uint32_t _flag_a = 0, _flag_b = 0; 5301 uint32_t _itail_tgt = 0; 5302 RECOMP_REGS_LOCALS 5303 RECOMP_ENTER(0x36166590u); 5304 5305 L_36166590: 5306 eax = MEM32(ebp + (-0x14)); /* 0x36166590: mov eax, dword ptr [ebp - 0x14] */ 5307 PUSH32(esp, eax); /* 0x36166593: push eax */ 5308 RECOMP_ICALL(0x3615FCC4u); /* 0x36166594: call 0x3615fcc4 */ /* not lifted */ 5309 RECOMP_FLAGS_IN(); 5310 ecx = POP32_VAL(esp); /* 0x36166599: pop ecx */ 5311 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3616659A: ret */ 5312 RECOMP_REGS_OUT(); 5313 } 5314 5315 void sub_3616659B(void) { 5316 int _fpu_cmp = 0; 5317 uint32_t _cf = 0; 5318 int _df = 1; 5319 uint32_t _flag_k = FK_NONE; 5320 uint32_t _flag_a = 0, _flag_b = 0; 5321 uint32_t _itail_tgt = 0; 5322 RECOMP_REGS_LOCALS 5323 RECOMP_ENTER(0x3616659Bu); 5324 5325 goto L_3616659B; 5326 L_3615FD76: 5327 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 5328 L_3616659B: 5329 eax = 0x3618B728u; /* 0x3616659B: mov eax, 0x3618b728 */ 5330 L_361665A0: 5331 RECOMP_BACKEDGE(); 5332 goto L_3615FD76; /* 0x361665A0: jmp 0x3615fd76 */ 5333 { RECOMP_REGS_OUT(); return; } /* end of function */ 5334 _ljump: 5335 switch (_itail_tgt) { 5336 case 0x3615FD76u: goto L_3615FD76; 5337 case 0x3616659Bu: goto L_3616659B; 5338 case 0x361665A0u: goto L_361665A0; 5339 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5340 } 5341 RECOMP_REGS_OUT(); 5342 } 5343 5344 void sub_361665B0(void) { 5345 int _fpu_cmp = 0; 5346 uint32_t _cf = 0; 5347 int _df = 1; 5348 uint32_t _flag_k = FK_NONE; 5349 uint32_t _flag_a = 0, _flag_b = 0; 5350 uint32_t _itail_tgt = 0; 5351 RECOMP_REGS_LOCALS 5352 RECOMP_ENTER(0x361665B0u); 5353 5354 L_361665B0: 5355 ecx = ebp + (-0x20); /* 0x361665B0: lea ecx, [ebp - 0x20] */ 5356 L_361665B3: 5357 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 5358 { RECOMP_REGS_OUT(); return; } /* end of function */ 5359 _ljump: 5360 switch (_itail_tgt) { 5361 case 0x361665B0u: goto L_361665B0; 5362 case 0x361665B3u: goto L_361665B3; 5363 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5364 } 5365 RECOMP_REGS_OUT(); 5366 } 5367 5368 void sub_361665B9(void) { 5369 int _fpu_cmp = 0; 5370 uint32_t _cf = 0; 5371 int _df = 1; 5372 uint32_t _flag_k = FK_NONE; 5373 uint32_t _flag_a = 0, _flag_b = 0; 5374 uint32_t _itail_tgt = 0; 5375 RECOMP_REGS_LOCALS 5376 RECOMP_ENTER(0x361665B9u); 5377 5378 goto L_361665B9; 5379 L_3615FD76: 5380 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 5381 L_361665B9: 5382 eax = 0x3618B750u; /* 0x361665B9: mov eax, 0x3618b750 */ 5383 L_361665BE: 5384 RECOMP_BACKEDGE(); 5385 goto L_3615FD76; /* 0x361665BE: jmp 0x3615fd76 */ 5386 { RECOMP_REGS_OUT(); return; } /* end of function */ 5387 _ljump: 5388 switch (_itail_tgt) { 5389 case 0x3615FD76u: goto L_3615FD76; 5390 case 0x361665B9u: goto L_361665B9; 5391 case 0x361665BEu: goto L_361665BE; 5392 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5393 } 5394 RECOMP_REGS_OUT(); 5395 } 5396 5397 void sub_361665D0(void) { 5398 int _fpu_cmp = 0; 5399 uint32_t _cf = 0; 5400 int _df = 1; 5401 uint32_t _flag_k = FK_NONE; 5402 uint32_t _flag_a = 0, _flag_b = 0; 5403 uint32_t _itail_tgt = 0; 5404 RECOMP_REGS_LOCALS 5405 RECOMP_ENTER(0x361665D0u); 5406 5407 L_361665D0: 5408 ecx = ebp + (-0x1C); /* 0x361665D0: lea ecx, [ebp - 0x1c] */ 5409 L_361665D3: 5410 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 5411 { RECOMP_REGS_OUT(); return; } /* end of function */ 5412 _ljump: 5413 switch (_itail_tgt) { 5414 case 0x361665D0u: goto L_361665D0; 5415 case 0x361665D3u: goto L_361665D3; 5416 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5417 } 5418 RECOMP_REGS_OUT(); 5419 } 5420 5421 void sub_361665D9(void) { 5422 int _fpu_cmp = 0; 5423 uint32_t _cf = 0; 5424 int _df = 1; 5425 uint32_t _flag_k = FK_NONE; 5426 uint32_t _flag_a = 0, _flag_b = 0; 5427 uint32_t _itail_tgt = 0; 5428 RECOMP_REGS_LOCALS 5429 RECOMP_ENTER(0x361665D9u); 5430 5431 goto L_361665D9; 5432 L_3615FD76: 5433 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 5434 L_361665D9: 5435 eax = 0x3618B778u; /* 0x361665D9: mov eax, 0x3618b778 */ 5436 L_361665DE: 5437 RECOMP_BACKEDGE(); 5438 goto L_3615FD76; /* 0x361665DE: jmp 0x3615fd76 */ 5439 { RECOMP_REGS_OUT(); return; } /* end of function */ 5440 _ljump: 5441 switch (_itail_tgt) { 5442 case 0x3615FD76u: goto L_3615FD76; 5443 case 0x361665D9u: goto L_361665D9; 5444 case 0x361665DEu: goto L_361665DE; 5445 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5446 } 5447 RECOMP_REGS_OUT(); 5448 } 5449 5450 void sub_361665F0(void) { 5451 int _fpu_cmp = 0; 5452 uint32_t _cf = 0; 5453 int _df = 1; 5454 uint32_t _flag_k = FK_NONE; 5455 uint32_t _flag_a = 0, _flag_b = 0; 5456 uint32_t _itail_tgt = 0; 5457 RECOMP_REGS_LOCALS 5458 RECOMP_ENTER(0x361665F0u); 5459 5460 L_361665F0: 5461 eax = MEM32(ebp + (-0x14)); /* 0x361665F0: mov eax, dword ptr [ebp - 0x14] */ 5462 PUSH32(esp, eax); /* 0x361665F3: push eax */ 5463 RECOMP_ICALL(0x3615FCC4u); /* 0x361665F4: call 0x3615fcc4 */ /* not lifted */ 5464 RECOMP_FLAGS_IN(); 5465 ecx = POP32_VAL(esp); /* 0x361665F9: pop ecx */ 5466 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x361665FA: ret */ 5467 RECOMP_REGS_OUT(); 5468 } 5469 5470 void sub_361665FB(void) { 5471 int _fpu_cmp = 0; 5472 uint32_t _cf = 0; 5473 int _df = 1; 5474 uint32_t _flag_k = FK_NONE; 5475 uint32_t _flag_a = 0, _flag_b = 0; 5476 uint32_t _itail_tgt = 0; 5477 RECOMP_REGS_LOCALS 5478 RECOMP_ENTER(0x361665FBu); 5479 5480 L_361665FB: 5481 eax = MEM32(ebp + (-0x18)); /* 0x361665FB: mov eax, dword ptr [ebp - 0x18] */ 5482 L_361665FE: 5483 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5484 eax = eax & 1; /* 0x361665FE: and eax, 1 */ 5485 _cf = 0; 5486 _flag_k = FK_TEST; 5487 L_36166601: 5488 /* test eax, eax */ /* 0x36166601: test eax, eax */ 5489 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5490 _cf = 0; 5491 _flag_k = FK_TEST; 5492 L_36166603: 5493 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_36166612; /* 0x36166603: je 0x36166612 */ 5494 L_36166609: 5495 ecx = ebp + (-0x2C); /* 0x36166609: lea ecx, [ebp - 0x2c] */ 5496 L_3616660C: 5497 { _itail_tgt = (uint32_t)(MEM32(0x3616F128)); goto _ljump; } 5498 L_36166612: 5499 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x36166612: ret */ 5500 _ljump: 5501 switch (_itail_tgt) { 5502 case 0x361665FBu: goto L_361665FB; 5503 case 0x361665FEu: goto L_361665FE; 5504 case 0x36166601u: goto L_36166601; 5505 case 0x36166603u: goto L_36166603; 5506 case 0x36166609u: goto L_36166609; 5507 case 0x3616660Cu: goto L_3616660C; 5508 case 0x36166612u: goto L_36166612; 5509 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5510 } 5511 RECOMP_REGS_OUT(); 5512 } 5513 5514 void sub_36166613(void) { 5515 int _fpu_cmp = 0; 5516 uint32_t _cf = 0; 5517 int _df = 1; 5518 uint32_t _flag_k = FK_NONE; 5519 uint32_t _flag_a = 0, _flag_b = 0; 5520 uint32_t _itail_tgt = 0; 5521 RECOMP_REGS_LOCALS 5522 RECOMP_ENTER(0x36166613u); 5523 5524 goto L_36166613; 5525 L_3615FD76: 5526 { _itail_tgt = (uint32_t)(MEM32(0x3616F26C)); goto _ljump; } 5527 L_36166613: 5528 eax = 0x3618B7A0u; /* 0x36166613: mov eax, 0x3618b7a0 */ 5529 L_36166618: 5530 RECOMP_BACKEDGE(); 5531 goto L_3615FD76; /* 0x36166618: jmp 0x3615fd76 */ 5532 { RECOMP_REGS_OUT(); return; } /* end of function */ 5533 _ljump: 5534 switch (_itail_tgt) { 5535 case 0x3615FD76u: goto L_3615FD76; 5536 case 0x36166613u: goto L_36166613; 5537 case 0x36166618u: goto L_36166618; 5538 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5539 } 5540 RECOMP_REGS_OUT(); 5541 } 5542 5543 void sub_36166620(void) { 5544 int _fpu_cmp = 0; 5545 uint32_t _cf = 0; 5546 int _df = 1; 5547 uint32_t _flag_k = FK_NONE; 5548 uint32_t _flag_a = 0, _flag_b = 0; 5549 uint32_t _itail_tgt = 0; 5550 RECOMP_REGS_LOCALS 5551 RECOMP_ENTER(0x36166620u); 5552 5553 goto L_36166620; 5554 L_3608B140: 5555 goto L_3609CC20; /* 0x3608B140: jmp 0x3609cc20 */ 5556 L_3609CC20: 5557 PUSH32(esp, ebp); /* 0x3609CC20: push ebp */ 5558 ebp = esp; /* 0x3609CC21: mov ebp, esp */ 5559 PUSH32(esp, 0xFFFFFFFFu); /* 0x3609CC23: push -1 */ 5560 PUSH32(esp, 0x36166A7Bu); /* 0x3609CC25: push 0x36166a7b */ 5561 eax = MEM32(FS_BASE + (0)); /* 0x3609CC2A: mov eax, dword ptr fs:[0] */ 5562 PUSH32(esp, eax); /* 0x3609CC30: push eax */ 5563 MEM32(FS_BASE + (0)) = esp; /* 0x3609CC31: mov dword ptr fs:[0], esp */ 5564 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 5565 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5566 esp = esp - 0x18u; /* 0x3609CC38: sub esp, 0x18 */ 5567 _flag_k = FK_CMP; 5568 PUSH32(esp, ebx); /* 0x3609CC3B: push ebx */ 5569 PUSH32(esp, esi); /* 0x3609CC3C: push esi */ 5570 esi = ecx; /* 0x3609CC3D: mov esi, ecx */ 5571 PUSH32(esp, edi); /* 0x3609CC3F: push edi */ 5572 MEM32(ebp + (-0x18)) = esi; /* 0x3609CC40: mov dword ptr [ebp - 0x18], esi */ 5573 MEM32(esi) = 0x36173D14u; /* 0x3609CC43: mov dword ptr [esi], 0x36173d14 */ 5574 MEM32(esi + 0x8) = 0x36173D04u; /* 0x3609CC49: mov dword ptr [esi + 8], 0x36173d04 */ 5575 MEM32(esi + 0x40) = 0x36173CFCu; /* 0x3609CC50: mov dword ptr [esi + 0x40], 0x36173cfc */ 5576 MEM32(esi + 0x4C) = 0x36173CF4u; /* 0x3609CC57: mov dword ptr [esi + 0x4c], 0x36173cf4 */ 5577 MEM32(esi + 0x80) = 0x36173CE0u; /* 0x3609CC5E: mov dword ptr [esi + 0x80], 0x36173ce0 */ 5578 MEM32(esi + 0x8C) = 0x36173C3Cu; /* 0x3609CC68: mov dword ptr [esi + 0x8c], 0x36173c3c */ 5579 MEM32(esi + 0xA8) = 0x36173C24u; /* 0x3609CC72: mov dword ptr [esi + 0xa8], 0x36173c24 */ 5580 MEM32(esi + 0xAC) = 0x36173C1Cu; /* 0x3609CC7C: mov dword ptr [esi + 0xac], 0x36173c1c */ 5581 ebx = MEM32(esi + 0x17C); /* 0x3609CC86: mov ebx, dword ptr [esi + 0x17c] */ 5582 /* test ebx, ebx */ /* 0x3609CC8C: test ebx, ebx */ 5583 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5584 _cf = 0; 5585 _flag_k = FK_TEST; 5586 MEM32(ebp + (-0x4)) = 2; /* 0x3609CC8E: mov dword ptr [ebp - 4], 2 */ 5587 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CCD2; /* 0x3609CC95: je 0x3609ccd2 */ 5588 L_3609CC97: 5589 eax = MEM32(ebx + 0x4); /* 0x3609CC97: mov eax, dword ptr [ebx + 4] */ 5590 edi = MEM32(eax); /* 0x3609CC9A: mov edi, dword ptr [eax] */ 5591 /* cmp edi, eax */ /* 0x3609CC9C: cmp edi, eax */ 5592 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5593 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5594 _flag_k = FK_CMP; 5595 MEM32(ebp + (-0x10)) = eax; /* 0x3609CC9E: mov dword ptr [ebp - 0x10], eax */ 5596 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CCB8; /* 0x3609CCA1: je 0x3609ccb8 */ 5597 L_3609CCA3: 5598 eax = edi; /* 0x3609CCA3: mov eax, edi */ 5599 edi = MEM32(edi); /* 0x3609CCA5: mov edi, dword ptr [edi] */ 5600 PUSH32(esp, eax); /* 0x3609CCA7: push eax */ 5601 eax = ebp + (-0x14); /* 0x3609CCA8: lea eax, [ebp - 0x14] */ 5602 PUSH32(esp, eax); /* 0x3609CCAB: push eax */ 5603 ecx = ebx; /* 0x3609CCAC: mov ecx, ebx */ 5604 RECOMP_ICALL(0x360C86A0u); /* 0x3609CCAE: call 0x360c86a0 */ /* not lifted */ 5605 RECOMP_FLAGS_IN(); 5606 /* cmp edi, MEM32(ebp + (-0x10)) */ /* 0x3609CCB3: cmp edi, dword ptr [ebp - 0x10] */ 5607 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x10))); 5608 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5609 _flag_k = FK_CMP; 5610 RECOMP_BACKEDGE(); 5611 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCA3; /* 0x3609CCB6: jne 0x3609cca3 */ 5612 L_3609CCB8: 5613 eax = MEM32(ebx + 0x4); /* 0x3609CCB8: mov eax, dword ptr [ebx + 4] */ 5614 PUSH32(esp, eax); /* 0x3609CCBB: push eax */ 5615 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCBC: call 0x3615fcc4 */ /* not lifted */ 5616 RECOMP_FLAGS_IN(); 5617 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5618 eax = 0; /* 0x3609CCC1: xor eax, eax */ 5619 _cf = 0; 5620 _flag_k = FK_TEST; 5621 PUSH32(esp, ebx); /* 0x3609CCC3: push ebx */ 5622 MEM32(ebx + 0x4) = eax; /* 0x3609CCC4: mov dword ptr [ebx + 4], eax */ 5623 MEM32(ebx + 0x8) = eax; /* 0x3609CCC7: mov dword ptr [ebx + 8], eax */ 5624 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CCCA: call 0x3615fcc4 */ /* not lifted */ 5625 RECOMP_FLAGS_IN(); 5626 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5627 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5628 esp = esp + 8; /* 0x3609CCCF: add esp, 8 */ 5629 _flag_k = FK_ADD; 5630 L_3609CCD2: 5631 ebx = MEM32(esi + 0x180); /* 0x3609CCD2: mov ebx, dword ptr [esi + 0x180] */ 5632 /* test ebx, ebx */ /* 0x3609CCD8: test ebx, ebx */ 5633 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 5634 _cf = 0; 5635 _flag_k = FK_TEST; 5636 MEM32(esi + 0x17C) = 0; /* 0x3609CCDA: mov dword ptr [esi + 0x17c], 0 */ 5637 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD49; /* 0x3609CCE4: je 0x3609cd49 */ 5638 L_3609CCE6: 5639 eax = MEM32(ebx + 0x4); /* 0x3609CCE6: mov eax, dword ptr [ebx + 4] */ 5640 edi = MEM32(eax); /* 0x3609CCE9: mov edi, dword ptr [eax] */ 5641 /* cmp edi, eax */ /* 0x3609CCEB: cmp edi, eax */ 5642 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5643 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5644 _flag_k = FK_CMP; 5645 MEM32(ebp + (-0x14)) = eax; /* 0x3609CCED: mov dword ptr [ebp - 0x14], eax */ 5646 if (CMP_EQ(_flag_a, _flag_b)) goto L_3609CD2F; /* 0x3609CCF0: je 0x3609cd2f */ 5647 L_3609CCF2: 5648 PUSH32(esp, 0); /* 0x3609CCF2: push 0 */ 5649 ecx = ebp + (-0x1C); /* 0x3609CCF4: lea ecx, [ebp - 0x1c] */ 5650 eax = edi; /* 0x3609CCF7: mov eax, edi */ 5651 edi = MEM32(edi); /* 0x3609CCF9: mov edi, dword ptr [edi] */ 5652 PUSH32(esp, ecx); /* 0x3609CCFB: push ecx */ 5653 ecx = ebp + (-0x10); /* 0x3609CCFC: lea ecx, [ebp - 0x10] */ 5654 MEM32(ebp + (-0x10)) = eax; /* 0x3609CCFF: mov dword ptr [ebp - 0x10], eax */ 5655 RECOMP_ICALL(0x360641D0u); /* 0x3609CD02: call 0x360641d0 */ /* not lifted */ 5656 RECOMP_FLAGS_IN(); 5657 eax = MEM32(eax); /* 0x3609CD07: mov eax, dword ptr [eax] */ 5658 ecx = MEM32(eax + 0x4); /* 0x3609CD09: mov ecx, dword ptr [eax + 4] */ 5659 edx = MEM32(eax); /* 0x3609CD0C: mov edx, dword ptr [eax] */ 5660 MEM32(ecx) = edx; /* 0x3609CD0E: mov dword ptr [ecx], edx */ 5661 ecx = MEM32(eax); /* 0x3609CD10: mov ecx, dword ptr [eax] */ 5662 edx = MEM32(eax + 0x4); /* 0x3609CD12: mov edx, dword ptr [eax + 4] */ 5663 PUSH32(esp, eax); /* 0x3609CD15: push eax */ 5664 MEM32(ecx + 0x4) = edx; /* 0x3609CD16: mov dword ptr [ecx + 4], edx */ 5665 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD19: call 0x3615fcc4 */ /* not lifted */ 5666 RECOMP_FLAGS_IN(); 5667 ecx = MEM32(ebx + 0x8); /* 0x3609CD1E: mov ecx, dword ptr [ebx + 8] */ 5668 eax = MEM32(ebp + (-0x14)); /* 0x3609CD21: mov eax, dword ptr [ebp - 0x14] */ 5669 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5670 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5671 esp = esp + 4; /* 0x3609CD24: add esp, 4 */ 5672 _flag_k = FK_ADD; 5673 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5674 ecx = ecx - 1; /* 0x3609CD27: dec ecx */ 5675 _flag_k = FK_DEC; 5676 /* cmp edi, eax */ /* 0x3609CD28: cmp edi, eax */ 5677 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5679 _flag_k = FK_CMP; 5680 MEM32(ebx + 0x8) = ecx; /* 0x3609CD2A: mov dword ptr [ebx + 8], ecx */ 5681 RECOMP_BACKEDGE(); 5682 if (CMP_NE(_flag_a, _flag_b)) goto L_3609CCF2; /* 0x3609CD2D: jne 0x3609ccf2 */ 5683 L_3609CD2F: 5684 eax = MEM32(ebx + 0x4); /* 0x3609CD2F: mov eax, dword ptr [ebx + 4] */ 5685 PUSH32(esp, eax); /* 0x3609CD32: push eax */ 5686 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD33: call 0x3615fcc4 */ /* not lifted */ 5687 RECOMP_FLAGS_IN(); 5688 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5689 eax = 0; /* 0x3609CD38: xor eax, eax */ 5690 _cf = 0; 5691 _flag_k = FK_TEST; 5692 PUSH32(esp, ebx); /* 0x3609CD3A: push ebx */ 5693 MEM32(ebx + 0x4) = eax; /* 0x3609CD3B: mov dword ptr [ebx + 4], eax */ 5694 MEM32(ebx + 0x8) = eax; /* 0x3609CD3E: mov dword ptr [ebx + 8], eax */ 5695 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD41: call 0x3615fcc4 */ /* not lifted */ 5696 RECOMP_FLAGS_IN(); 5697 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5698 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5699 esp = esp + 8; /* 0x3609CD46: add esp, 8 */ 5700 _flag_k = FK_ADD; 5701 L_3609CD49: 5702 eax = MEM32(esi + 0x190); /* 0x3609CD49: mov eax, dword ptr [esi + 0x190] */ 5703 /* test eax, eax */ /* 0x3609CD4F: test eax, eax */ 5704 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5705 _cf = 0; 5706 _flag_k = FK_TEST; 5707 MEM32(esi + 0x180) = 0; /* 0x3609CD51: mov dword ptr [esi + 0x180], 0 */ 5708 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD66; /* 0x3609CD5B: je 0x3609cd66 */ 5709 L_3609CD5D: 5710 PUSH32(esp, eax); /* 0x3609CD5D: push eax */ 5711 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD5E: call 0x3615fcc4 */ /* not lifted */ 5712 RECOMP_FLAGS_IN(); 5713 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5714 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5715 esp = esp + 4; /* 0x3609CD63: add esp, 4 */ 5716 _flag_k = FK_ADD; 5717 L_3609CD66: 5718 eax = MEM32(esi + 0x194); /* 0x3609CD66: mov eax, dword ptr [esi + 0x194] */ 5719 /* test eax, eax */ /* 0x3609CD6C: test eax, eax */ 5720 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5721 _cf = 0; 5722 _flag_k = FK_TEST; 5723 MEM32(esi + 0x190) = 0; /* 0x3609CD6E: mov dword ptr [esi + 0x190], 0 */ 5724 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CD83; /* 0x3609CD78: je 0x3609cd83 */ 5725 L_3609CD7A: 5726 PUSH32(esp, eax); /* 0x3609CD7A: push eax */ 5727 RECOMP_ICALL(0x3615FCC4u); /* 0x3609CD7B: call 0x3615fcc4 */ /* not lifted */ 5728 RECOMP_FLAGS_IN(); 5729 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5730 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5731 esp = esp + 4; /* 0x3609CD80: add esp, 4 */ 5732 _flag_k = FK_ADD; 5733 L_3609CD83: 5734 ecx = MEM32(esi + 0x170); /* 0x3609CD83: mov ecx, dword ptr [esi + 0x170] */ 5735 /* test ecx, ecx */ /* 0x3609CD89: test ecx, ecx */ 5736 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 5737 _cf = 0; 5738 _flag_k = FK_TEST; 5739 MEM32(esi + 0x194) = 0; /* 0x3609CD8B: mov dword ptr [esi + 0x194], 0 */ 5740 if (TEST_Z(_flag_a, _flag_b)) goto L_3609CDA6; /* 0x3609CD95: je 0x3609cda6 */ 5741 L_3609CD97: 5742 RECOMP_ICALL(0x36095680u); /* 0x3609CD97: call 0x36095680 */ /* not lifted */ 5743 RECOMP_FLAGS_IN(); 5744 MEM32(esi + 0x170) = 0; /* 0x3609CD9C: mov dword ptr [esi + 0x170], 0 */ 5745 L_3609CDA6: 5746 ecx = esi; /* 0x3609CDA6: mov ecx, esi */ 5747 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 5748 _cf = (ecx) != 0; 5749 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDA8: neg ecx */ 5750 _flag_k = FK_CMP; 5751 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDAA: sbb ecx, ecx */ 5752 ecx = _sc ? 0xFFFFFFFFu : 0; 5753 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5754 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5755 eax = esi + 0x8C; /* 0x3609CDAC: lea eax, [esi + 0x8c] */ 5756 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5757 ecx = ecx & eax; /* 0x3609CDB2: and ecx, eax */ 5758 _cf = 0; 5759 _flag_k = FK_TEST; 5760 MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x3609CDB4: mov byte ptr [ebp - 4], 1 */ 5761 RECOMP_ICALL(MEM32(0x3616FCBC)); /* 0x3609CDB8: call dword ptr [0x3616fcbc] */ 5762 RECOMP_FLAGS_IN(); 5763 ecx = esi; /* 0x3609CDBE: mov ecx, esi */ 5764 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx); 5765 _cf = (ecx) != 0; 5766 ecx = (uint32_t)(-(int32_t)ecx); /* 0x3609CDC0: neg ecx */ 5767 _flag_k = FK_CMP; 5768 { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x3609CDC2: sbb ecx, ecx */ 5769 ecx = _sc ? 0xFFFFFFFFu : 0; 5770 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 5771 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 5772 eax = esi + 0x80; /* 0x3609CDC4: lea eax, [esi + 0x80] */ 5773 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5774 ecx = ecx & eax; /* 0x3609CDCA: and ecx, eax */ 5775 _cf = 0; 5776 _flag_k = FK_TEST; 5777 MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x3609CDCC: mov byte ptr [ebp - 4], 0 */ 5778 RECOMP_ICALL(0x36041B60u); /* 0x3609CDD0: call 0x36041b60 */ /* not lifted */ 5779 RECOMP_FLAGS_IN(); 5780 ecx = esi; /* 0x3609CDD5: mov ecx, esi */ 5781 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3609CDD7: mov dword ptr [ebp - 4], 0xffffffff */ 5782 RECOMP_ICALL(0x3608EA50u); /* 0x3609CDDE: call 0x3608ea50 */ /* not lifted */ 5783 RECOMP_FLAGS_IN(); 5784 ecx = MEM32(ebp + (-0xC)); /* 0x3609CDE3: mov ecx, dword ptr [ebp - 0xc] */ 5785 edi = POP32_VAL(esp); /* 0x3609CDE6: pop edi */ 5786 esi = POP32_VAL(esp); /* 0x3609CDE7: pop esi */ 5787 ebx = POP32_VAL(esp); /* 0x3609CDE8: pop ebx */ 5788 MEM32(FS_BASE + (0)) = ecx; /* 0x3609CDE9: mov dword ptr fs:[0], ecx */ 5789 esp = ebp; /* 0x3609CDF0: mov esp, ebp */ 5790 ebp = POP32_VAL(esp); /* 0x3609CDF2: pop ebp */ 5791 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3609CDF3: ret */ 5792 L_36166620: 5793 ecx = MEM32(ebp + (-0x10)); /* 0x36166620: mov ecx, dword ptr [ebp - 0x10] */ 5794 RECOMP_BACKEDGE(); 5795 goto L_3608B140; /* 0x36166623: jmp 0x3608b140 */ 5796 { RECOMP_REGS_OUT(); return; } /* end of function */ 5797 RECOMP_REGS_OUT(); 5798 }