client/game/kkr.dll/lifted-0101.c (362240B)
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_3615AB80(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(0x3615AB80u); 17 18 L_3615AB80: 19 PUSH32(esp, ebp); /* 0x3615AB80: push ebp */ 20 ebp = esp; /* 0x3615AB81: mov ebp, esp */ 21 PUSH32(esp, esi); /* 0x3615AB83: push esi */ 22 esi = ecx; /* 0x3615AB84: mov esi, ecx */ 23 PUSH32(esp, edi); /* 0x3615AB86: push edi */ 24 edi = MEM32(ebp + 0x8); /* 0x3615AB87: mov edi, dword ptr [ebp + 8] */ 25 eax = esi + 0x20; /* 0x3615AB8A: lea eax, [esi + 0x20] */ 26 PUSH32(esp, eax); /* 0x3615AB8D: push eax */ 27 PUSH32(esp, edi); /* 0x3615AB8E: push edi */ 28 RECOMP_ICALL(0x3615B870u); /* 0x3615AB8F: call 0x3615b870 */ /* not lifted */ 29 RECOMP_FLAGS_IN(); 30 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 31 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 32 esp = esp + 8; /* 0x3615AB94: add esp, 8 */ 33 _flag_k = FK_ADD; 34 ecx = ebp + 0x8; /* 0x3615AB97: lea ecx, [ebp + 8] */ 35 PUSH32(esp, ecx); /* 0x3615AB9A: push ecx */ 36 ecx = edi; /* 0x3615AB9B: mov ecx, edi */ 37 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615AB9D: call dword ptr [0x3616fa8c] */ 38 RECOMP_FLAGS_IN(); 39 eax = MEM32(ebp + 0x8); /* 0x3615ABA3: mov eax, dword ptr [ebp + 8] */ 40 /* cmp eax, 2 */ /* 0x3615ABA6: cmp eax, 2 */ 41 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 42 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 43 _flag_k = FK_CMP; 44 MEM32(esi + 0x28) = eax; /* 0x3615ABA9: mov dword ptr [esi + 0x28], eax */ 45 if (CMP_NE(_flag_a, _flag_b)) goto L_3615ABBB; /* 0x3615ABAC: jne 0x3615abbb */ 46 L_3615ABAE: 47 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu); 48 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 49 esi = esi + 0x2Cu; /* 0x3615ABAE: add esi, 0x2c */ 50 _flag_k = FK_ADD; 51 PUSH32(esp, esi); /* 0x3615ABB1: push esi */ 52 PUSH32(esp, edi); /* 0x3615ABB2: push edi */ 53 RECOMP_ICALL(0x3615B380u); /* 0x3615ABB3: call 0x3615b380 */ /* not lifted */ 54 RECOMP_FLAGS_IN(); 55 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 56 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 57 esp = esp + 8; /* 0x3615ABB8: add esp, 8 */ 58 _flag_k = FK_ADD; 59 L_3615ABBB: 60 edi = POP32_VAL(esp); /* 0x3615ABBB: pop edi */ 61 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 62 eax = 0; /* 0x3615ABBC: xor eax, eax */ 63 _cf = 0; 64 _flag_k = FK_TEST; 65 esi = POP32_VAL(esp); /* 0x3615ABBE: pop esi */ 66 ebp = POP32_VAL(esp); /* 0x3615ABBF: pop ebp */ 67 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615ABC0: ret 4 */ 68 RECOMP_REGS_OUT(); 69 } 70 71 void sub_3615ABD0(void) { 72 int _fpu_cmp = 0; 73 uint32_t _cf = 0; 74 int _df = 1; 75 uint32_t _flag_k = FK_NONE; 76 uint32_t _flag_a = 0, _flag_b = 0; 77 uint32_t _itail_tgt = 0; 78 RECOMP_REGS_LOCALS 79 RECOMP_ENTER(0x3615ABD0u); 80 81 L_3615ABD0: 82 PUSH32(esp, ebp); /* 0x3615ABD0: push ebp */ 83 ebp = esp; /* 0x3615ABD1: mov ebp, esp */ 84 PUSH32(esp, esi); /* 0x3615ABD3: push esi */ 85 esi = ecx; /* 0x3615ABD4: mov esi, ecx */ 86 PUSH32(esp, edi); /* 0x3615ABD6: push edi */ 87 edi = MEM32(ebp + 0x8); /* 0x3615ABD7: mov edi, dword ptr [ebp + 8] */ 88 eax = esi + 0x20; /* 0x3615ABDA: lea eax, [esi + 0x20] */ 89 PUSH32(esp, eax); /* 0x3615ABDD: push eax */ 90 PUSH32(esp, edi); /* 0x3615ABDE: push edi */ 91 RECOMP_ICALL(0x3615B840u); /* 0x3615ABDF: call 0x3615b840 */ /* not lifted */ 92 RECOMP_FLAGS_IN(); 93 ecx = MEM32(esi + 0x28); /* 0x3615ABE4: mov ecx, dword ptr [esi + 0x28] */ 94 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 95 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 96 esp = esp + 8; /* 0x3615ABE7: add esp, 8 */ 97 _flag_k = FK_ADD; 98 PUSH32(esp, ecx); /* 0x3615ABEA: push ecx */ 99 ecx = edi; /* 0x3615ABEB: mov ecx, edi */ 100 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615ABED: call dword ptr [0x3616faec] */ 101 RECOMP_FLAGS_IN(); 102 /* cmp MEM32(esi + 0x28), 2 */ /* 0x3615ABF3: cmp dword ptr [esi + 0x28], 2 */ 103 _flag_a = (uint32_t)(MEM32(esi + 0x28)); _flag_b = (uint32_t)(2); 104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 105 _flag_k = FK_CMP; 106 if (CMP_NE(_flag_a, _flag_b)) goto L_3615AC06; /* 0x3615ABF7: jne 0x3615ac06 */ 107 L_3615ABF9: 108 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x2Cu); 109 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 110 esi = esi + 0x2Cu; /* 0x3615ABF9: add esi, 0x2c */ 111 _flag_k = FK_ADD; 112 PUSH32(esp, esi); /* 0x3615ABFC: push esi */ 113 PUSH32(esp, edi); /* 0x3615ABFD: push edi */ 114 RECOMP_ICALL(0x3615B410u); /* 0x3615ABFE: call 0x3615b410 */ /* not lifted */ 115 RECOMP_FLAGS_IN(); 116 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 118 esp = esp + 8; /* 0x3615AC03: add esp, 8 */ 119 _flag_k = FK_ADD; 120 L_3615AC06: 121 edi = POP32_VAL(esp); /* 0x3615AC06: pop edi */ 122 esi = POP32_VAL(esp); /* 0x3615AC07: pop esi */ 123 ebp = POP32_VAL(esp); /* 0x3615AC08: pop ebp */ 124 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615AC09: ret 4 */ 125 RECOMP_REGS_OUT(); 126 } 127 128 void sub_3615AC10(void) { 129 int _fpu_cmp = 0; 130 uint32_t _cf = 0; 131 int _df = 1; 132 uint32_t _flag_k = FK_NONE; 133 uint32_t _flag_a = 0, _flag_b = 0; 134 uint32_t _itail_tgt = 0; 135 RECOMP_REGS_LOCALS 136 RECOMP_ENTER(0x3615AC10u); 137 138 L_3615AC10: 139 RECOMP_ICALL(0x3615AC20u); /* 0x3615AC10: call 0x3615ac20 */ /* not lifted */ 140 RECOMP_FLAGS_IN(); 141 goto L_3615AC30; /* 0x3615AC15: jmp 0x3615ac30 */ 142 L_3615AC30: 143 PUSH32(esp, 0x3615AC40u); /* 0x3615AC30: push 0x3615ac40 */ 144 RECOMP_ICALL(0x3615FEB2u); /* 0x3615AC35: call 0x3615feb2 */ /* not lifted */ 145 RECOMP_FLAGS_IN(); 146 ecx = POP32_VAL(esp); /* 0x3615AC3A: pop ecx */ 147 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615AC3B: ret */ 148 RECOMP_REGS_OUT(); 149 } 150 151 void sub_3615AC20(void) { 152 int _fpu_cmp = 0; 153 uint32_t _cf = 0; 154 int _df = 1; 155 uint32_t _flag_k = FK_NONE; 156 uint32_t _flag_a = 0, _flag_b = 0; 157 uint32_t _itail_tgt = 0; 158 RECOMP_REGS_LOCALS 159 RECOMP_ENTER(0x3615AC20u); 160 161 L_3615AC20: 162 ecx = 0x3630DBA1u; /* 0x3615AC20: mov ecx, 0x3630dba1 */ 163 L_3615AC25: 164 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 165 { RECOMP_REGS_OUT(); return; } /* end of function */ 166 _ljump: 167 switch (_itail_tgt) { 168 case 0x3615AC20u: goto L_3615AC20; 169 case 0x3615AC25u: goto L_3615AC25; 170 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 171 } 172 RECOMP_REGS_OUT(); 173 } 174 175 void sub_3615AC30(void) { 176 int _fpu_cmp = 0; 177 uint32_t _cf = 0; 178 int _df = 1; 179 uint32_t _flag_k = FK_NONE; 180 uint32_t _flag_a = 0, _flag_b = 0; 181 uint32_t _itail_tgt = 0; 182 RECOMP_REGS_LOCALS 183 RECOMP_ENTER(0x3615AC30u); 184 185 L_3615AC30: 186 PUSH32(esp, 0x3615AC40u); /* 0x3615AC30: push 0x3615ac40 */ 187 RECOMP_ICALL(0x3615FEB2u); /* 0x3615AC35: call 0x3615feb2 */ /* not lifted */ 188 RECOMP_FLAGS_IN(); 189 ecx = POP32_VAL(esp); /* 0x3615AC3A: pop ecx */ 190 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615AC3B: ret */ 191 RECOMP_REGS_OUT(); 192 } 193 194 void sub_3615AC40(void) { 195 int _fpu_cmp = 0; 196 uint32_t _cf = 0; 197 int _df = 1; 198 uint32_t _flag_k = FK_NONE; 199 uint32_t _flag_a = 0, _flag_b = 0; 200 uint32_t _itail_tgt = 0; 201 RECOMP_REGS_LOCALS 202 RECOMP_ENTER(0x3615AC40u); 203 204 L_3615AC40: 205 ecx = 0x3630DBA1u; /* 0x3615AC40: mov ecx, 0x3630dba1 */ 206 L_3615AC45: 207 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 208 { RECOMP_REGS_OUT(); return; } /* end of function */ 209 _ljump: 210 switch (_itail_tgt) { 211 case 0x3615AC40u: goto L_3615AC40; 212 case 0x3615AC45u: goto L_3615AC45; 213 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 214 } 215 RECOMP_REGS_OUT(); 216 } 217 218 void sub_3615AC50(void) { 219 int _fpu_cmp = 0; 220 uint32_t _cf = 0; 221 int _df = 1; 222 uint32_t _flag_k = FK_NONE; 223 uint32_t _flag_a = 0, _flag_b = 0; 224 uint32_t _itail_tgt = 0; 225 RECOMP_REGS_LOCALS 226 RECOMP_ENTER(0x3615AC50u); 227 228 L_3615AC50: 229 RECOMP_ICALL(0x3615AC60u); /* 0x3615AC50: call 0x3615ac60 */ /* not lifted */ 230 RECOMP_FLAGS_IN(); 231 goto L_3615AC70; /* 0x3615AC55: jmp 0x3615ac70 */ 232 L_3615AC70: 233 PUSH32(esp, 0x3615AC80u); /* 0x3615AC70: push 0x3615ac80 */ 234 RECOMP_ICALL(0x3615FEB2u); /* 0x3615AC75: call 0x3615feb2 */ /* not lifted */ 235 RECOMP_FLAGS_IN(); 236 ecx = POP32_VAL(esp); /* 0x3615AC7A: pop ecx */ 237 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615AC7B: ret */ 238 RECOMP_REGS_OUT(); 239 } 240 241 void sub_3615AC60(void) { 242 int _fpu_cmp = 0; 243 uint32_t _cf = 0; 244 int _df = 1; 245 uint32_t _flag_k = FK_NONE; 246 uint32_t _flag_a = 0, _flag_b = 0; 247 uint32_t _itail_tgt = 0; 248 RECOMP_REGS_LOCALS 249 RECOMP_ENTER(0x3615AC60u); 250 251 L_3615AC60: 252 ecx = 0x3630DBA0u; /* 0x3615AC60: mov ecx, 0x3630dba0 */ 253 L_3615AC65: 254 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 255 { RECOMP_REGS_OUT(); return; } /* end of function */ 256 _ljump: 257 switch (_itail_tgt) { 258 case 0x3615AC60u: goto L_3615AC60; 259 case 0x3615AC65u: goto L_3615AC65; 260 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 261 } 262 RECOMP_REGS_OUT(); 263 } 264 265 void sub_3615AC70(void) { 266 int _fpu_cmp = 0; 267 uint32_t _cf = 0; 268 int _df = 1; 269 uint32_t _flag_k = FK_NONE; 270 uint32_t _flag_a = 0, _flag_b = 0; 271 uint32_t _itail_tgt = 0; 272 RECOMP_REGS_LOCALS 273 RECOMP_ENTER(0x3615AC70u); 274 275 L_3615AC70: 276 PUSH32(esp, 0x3615AC80u); /* 0x3615AC70: push 0x3615ac80 */ 277 RECOMP_ICALL(0x3615FEB2u); /* 0x3615AC75: call 0x3615feb2 */ /* not lifted */ 278 RECOMP_FLAGS_IN(); 279 ecx = POP32_VAL(esp); /* 0x3615AC7A: pop ecx */ 280 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615AC7B: ret */ 281 RECOMP_REGS_OUT(); 282 } 283 284 void sub_3615AC80(void) { 285 int _fpu_cmp = 0; 286 uint32_t _cf = 0; 287 int _df = 1; 288 uint32_t _flag_k = FK_NONE; 289 uint32_t _flag_a = 0, _flag_b = 0; 290 uint32_t _itail_tgt = 0; 291 RECOMP_REGS_LOCALS 292 RECOMP_ENTER(0x3615AC80u); 293 294 L_3615AC80: 295 ecx = 0x3630DBA0u; /* 0x3615AC80: mov ecx, 0x3630dba0 */ 296 L_3615AC85: 297 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 298 { RECOMP_REGS_OUT(); return; } /* end of function */ 299 _ljump: 300 switch (_itail_tgt) { 301 case 0x3615AC80u: goto L_3615AC80; 302 case 0x3615AC85u: goto L_3615AC85; 303 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 304 } 305 RECOMP_REGS_OUT(); 306 } 307 308 void sub_3615AC90(void) { 309 int _fpu_cmp = 0; 310 uint32_t _cf = 0; 311 int _df = 1; 312 uint32_t _flag_k = FK_NONE; 313 uint32_t _flag_a = 0, _flag_b = 0; 314 uint32_t _itail_tgt = 0; 315 RECOMP_REGS_LOCALS 316 RECOMP_ENTER(0x3615AC90u); 317 318 L_3615AC90: 319 PUSH32(esp, ebp); /* 0x3615AC90: push ebp */ 320 ebp = esp; /* 0x3615AC91: mov ebp, esp */ 321 PUSH32(esp, esi); /* 0x3615AC93: push esi */ 322 esi = ecx; /* 0x3615AC94: mov esi, ecx */ 323 RECOMP_ICALL(0x3615AD40u); /* 0x3615AC96: call 0x3615ad40 */ /* not lifted */ 324 RECOMP_FLAGS_IN(); 325 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615AC9B: test byte ptr [ebp + 8], 1 */ 326 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 327 _cf = 0; 328 _flag_k = FK_NARROW(FK_TEST, 24); 329 if (TEST_Z(_flag_a, _flag_b)) goto L_3615ACAA; /* 0x3615AC9F: je 0x3615acaa */ 330 L_3615ACA1: 331 PUSH32(esp, esi); /* 0x3615ACA1: push esi */ 332 RECOMP_ICALL(0x3615FCC4u); /* 0x3615ACA2: call 0x3615fcc4 */ /* not lifted */ 333 RECOMP_FLAGS_IN(); 334 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 335 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 336 esp = esp + 4; /* 0x3615ACA7: add esp, 4 */ 337 _flag_k = FK_ADD; 338 L_3615ACAA: 339 eax = esi; /* 0x3615ACAA: mov eax, esi */ 340 esi = POP32_VAL(esp); /* 0x3615ACAC: pop esi */ 341 ebp = POP32_VAL(esp); /* 0x3615ACAD: pop ebp */ 342 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615ACAE: ret 4 */ 343 RECOMP_REGS_OUT(); 344 } 345 346 void sub_3615ACC0(void) { 347 int _fpu_cmp = 0; 348 uint32_t _cf = 0; 349 int _df = 1; 350 uint32_t _flag_k = FK_NONE; 351 uint32_t _flag_a = 0, _flag_b = 0; 352 uint32_t _itail_tgt = 0; 353 RECOMP_REGS_LOCALS 354 RECOMP_ENTER(0x3615ACC0u); 355 356 L_3615ACC0: 357 PUSH32(esp, ebp); /* 0x3615ACC0: push ebp */ 358 ebp = esp; /* 0x3615ACC1: mov ebp, esp */ 359 eax = MEM32(ebp + 0x8); /* 0x3615ACC3: mov eax, dword ptr [ebp + 8] */ 360 PUSH32(esp, esi); /* 0x3615ACC6: push esi */ 361 esi = ecx; /* 0x3615ACC7: mov esi, ecx */ 362 PUSH32(esp, eax); /* 0x3615ACC9: push eax */ 363 RECOMP_ICALL(0x3615B300u); /* 0x3615ACCA: call 0x3615b300 */ /* not lifted */ 364 RECOMP_FLAGS_IN(); 365 MEM32(esi + 0x34) = 0; /* 0x3615ACCF: mov dword ptr [esi + 0x34], 0 */ 366 MEM32(esi) = 0x36178DE0u; /* 0x3615ACD6: mov dword ptr [esi], 0x36178de0 */ 367 eax = esi; /* 0x3615ACDC: mov eax, esi */ 368 esi = POP32_VAL(esp); /* 0x3615ACDE: pop esi */ 369 ebp = POP32_VAL(esp); /* 0x3615ACDF: pop ebp */ 370 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615ACE0: ret 4 */ 371 RECOMP_REGS_OUT(); 372 } 373 374 void sub_3615ACF0(void) { 375 int _fpu_cmp = 0; 376 uint32_t _cf = 0; 377 int _df = 1; 378 uint32_t _flag_k = FK_NONE; 379 uint32_t _flag_a = 0, _flag_b = 0; 380 uint32_t _itail_tgt = 0; 381 RECOMP_REGS_LOCALS 382 RECOMP_ENTER(0x3615ACF0u); 383 384 L_3615ACF0: 385 PUSH32(esp, ebp); /* 0x3615ACF0: push ebp */ 386 ebp = esp; /* 0x3615ACF1: mov ebp, esp */ 387 eax = MEM32(ebp + 0x8); /* 0x3615ACF3: mov eax, dword ptr [ebp + 8] */ 388 edx = MEM32(eax + 0x2C); /* 0x3615ACF6: mov edx, dword ptr [eax + 0x2c] */ 389 PUSH32(esp, esi); /* 0x3615ACF9: push esi */ 390 esi = ecx; /* 0x3615ACFA: mov esi, ecx */ 391 ecx = MEM32(eax + 0x30); /* 0x3615ACFC: mov ecx, dword ptr [eax + 0x30] */ 392 PUSH32(esp, ecx); /* 0x3615ACFF: push ecx */ 393 ecx = MEM32(eax + 0x28); /* 0x3615AD00: mov ecx, dword ptr [eax + 0x28] */ 394 PUSH32(esp, edx); /* 0x3615AD03: push edx */ 395 edx = MEM32(eax + 0x24); /* 0x3615AD04: mov edx, dword ptr [eax + 0x24] */ 396 PUSH32(esp, ecx); /* 0x3615AD07: push ecx */ 397 ecx = MEM32(eax + 0x20); /* 0x3615AD08: mov ecx, dword ptr [eax + 0x20] */ 398 PUSH32(esp, edx); /* 0x3615AD0B: push edx */ 399 PUSH32(esp, ecx); /* 0x3615AD0C: push ecx */ 400 edx = eax + 0x14; /* 0x3615AD0D: lea edx, [eax + 0x14] */ 401 ecx = eax + 0xC; /* 0x3615AD10: lea ecx, [eax + 0xc] */ 402 PUSH32(esp, edx); /* 0x3615AD13: push edx */ 403 PUSH32(esp, ecx); /* 0x3615AD14: push ecx */ 404 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 405 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 406 eax = eax + 4; /* 0x3615AD15: add eax, 4 */ 407 _flag_k = FK_ADD; 408 PUSH32(esp, eax); /* 0x3615AD18: push eax */ 409 ecx = esi; /* 0x3615AD19: mov ecx, esi */ 410 RECOMP_ICALL(0x3615B280u); /* 0x3615AD1B: call 0x3615b280 */ /* not lifted */ 411 RECOMP_FLAGS_IN(); 412 MEM32(esi + 0x34) = 0; /* 0x3615AD20: mov dword ptr [esi + 0x34], 0 */ 413 MEM32(esi) = 0x36178DE0u; /* 0x3615AD27: mov dword ptr [esi], 0x36178de0 */ 414 eax = esi; /* 0x3615AD2D: mov eax, esi */ 415 esi = POP32_VAL(esp); /* 0x3615AD2F: pop esi */ 416 ebp = POP32_VAL(esp); /* 0x3615AD30: pop ebp */ 417 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615AD31: ret 4 */ 418 RECOMP_REGS_OUT(); 419 } 420 421 void sub_3615AD40(void) { 422 int _fpu_cmp = 0; 423 uint32_t _cf = 0; 424 int _df = 1; 425 uint32_t _flag_k = FK_NONE; 426 uint32_t _flag_a = 0, _flag_b = 0; 427 uint32_t _itail_tgt = 0; 428 RECOMP_REGS_LOCALS 429 RECOMP_ENTER(0x3615AD40u); 430 431 L_3615AD40: 432 PUSH32(esp, ebp); /* 0x3615AD40: push ebp */ 433 ebp = esp; /* 0x3615AD41: mov ebp, esp */ 434 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615AD43: push -1 */ 435 PUSH32(esp, 0x3616E028u); /* 0x3615AD45: push 0x3616e028 */ 436 eax = MEM32(FS_BASE + (0)); /* 0x3615AD4A: mov eax, dword ptr fs:[0] */ 437 PUSH32(esp, eax); /* 0x3615AD50: push eax */ 438 MEM32(FS_BASE + (0)) = esp; /* 0x3615AD51: mov dword ptr fs:[0], esp */ 439 PUSH32(esp, ecx); /* 0x3615AD58: push ecx */ 440 PUSH32(esp, esi); /* 0x3615AD59: push esi */ 441 esi = ecx; /* 0x3615AD5A: mov esi, ecx */ 442 MEM32(ebp + (-0x10)) = esi; /* 0x3615AD5C: mov dword ptr [ebp - 0x10], esi */ 443 MEM32(esi) = 0x36178DE0u; /* 0x3615AD5F: mov dword ptr [esi], 0x36178de0 */ 444 ecx = MEM32(esi + 0x34); /* 0x3615AD65: mov ecx, dword ptr [esi + 0x34] */ 445 /* test ecx, ecx */ /* 0x3615AD68: test ecx, ecx */ 446 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 447 _cf = 0; 448 _flag_k = FK_TEST; 449 MEM32(ebp + (-0x4)) = 0; /* 0x3615AD6A: mov dword ptr [ebp - 4], 0 */ 450 if (TEST_Z(_flag_a, _flag_b)) goto L_3615AD7A; /* 0x3615AD71: je 0x3615ad7a */ 451 L_3615AD73: 452 eax = MEM32(ecx); /* 0x3615AD73: mov eax, dword ptr [ecx] */ 453 PUSH32(esp, 1); /* 0x3615AD75: push 1 */ 454 RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x3615AD77: call dword ptr [eax + 0x10] */ 455 RECOMP_FLAGS_IN(); 456 L_3615AD7A: 457 ecx = esi; /* 0x3615AD7A: mov ecx, esi */ 458 MEM32(esi + 0x34) = 0; /* 0x3615AD7C: mov dword ptr [esi + 0x34], 0 */ 459 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3615AD83: mov dword ptr [ebp - 4], 0xffffffff */ 460 RECOMP_ICALL(0x3615B2F0u); /* 0x3615AD8A: call 0x3615b2f0 */ /* not lifted */ 461 RECOMP_FLAGS_IN(); 462 ecx = MEM32(ebp + (-0xC)); /* 0x3615AD8F: mov ecx, dword ptr [ebp - 0xc] */ 463 esi = POP32_VAL(esp); /* 0x3615AD92: pop esi */ 464 MEM32(FS_BASE + (0)) = ecx; /* 0x3615AD93: mov dword ptr fs:[0], ecx */ 465 esp = ebp; /* 0x3615AD9A: mov esp, ebp */ 466 ebp = POP32_VAL(esp); /* 0x3615AD9C: pop ebp */ 467 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615AD9D: ret */ 468 RECOMP_REGS_OUT(); 469 } 470 471 void sub_3615ADA0(void) { 472 int _fpu_cmp = 0; 473 uint32_t _cf = 0; 474 int _df = 1; 475 uint32_t _flag_k = FK_NONE; 476 uint32_t _flag_a = 0, _flag_b = 0; 477 uint32_t _itail_tgt = 0; 478 RECOMP_REGS_LOCALS 479 RECOMP_ENTER(0x3615ADA0u); 480 481 L_3615ADA0: 482 PUSH32(esp, ebp); /* 0x3615ADA0: push ebp */ 483 ebp = esp; /* 0x3615ADA1: mov ebp, esp */ 484 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615ADA3: push -1 */ 485 PUSH32(esp, 0x3616E061u); /* 0x3615ADA5: push 0x3616e061 */ 486 eax = MEM32(FS_BASE + (0)); /* 0x3615ADAA: mov eax, dword ptr fs:[0] */ 487 PUSH32(esp, eax); /* 0x3615ADB0: push eax */ 488 MEM32(FS_BASE + (0)) = esp; /* 0x3615ADB1: mov dword ptr fs:[0], esp */ 489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x4Cu); 490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 491 esp = esp - 0x4Cu; /* 0x3615ADB8: sub esp, 0x4c */ 492 _flag_k = FK_CMP; 493 PUSH32(esp, ebx); /* 0x3615ADBB: push ebx */ 494 PUSH32(esp, esi); /* 0x3615ADBC: push esi */ 495 esi = ecx; /* 0x3615ADBD: mov esi, ecx */ 496 eax = MEM32(esi + 0x34); /* 0x3615ADBF: mov eax, dword ptr [esi + 0x34] */ 497 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 498 ebx = 0; /* 0x3615ADC2: xor ebx, ebx */ 499 _cf = 0; 500 _flag_k = FK_TEST; 501 /* cmp eax, ebx */ /* 0x3615ADC4: cmp eax, ebx */ 502 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 503 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 504 _flag_k = FK_CMP; 505 PUSH32(esp, edi); /* 0x3615ADC6: push edi */ 506 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B0A8; /* 0x3615ADC7: jne 0x3615b0a8 */ 507 L_3615ADCD: 508 eax = MEM32(esi + 0x24); /* 0x3615ADCD: mov eax, dword ptr [esi + 0x24] */ 509 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 510 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 511 eax = eax - ebx; /* 0x3615ADD0: sub eax, ebx */ 512 _flag_k = FK_CMP; 513 MEM32(ebp + (-0x30)) = 0x000F6954u; /* 0x3615ADD2: mov dword ptr [ebp - 0x30], 0xf6954 */ 514 MEM32(ebp + (-0x2C)) = ebx; /* 0x3615ADD9: mov dword ptr [ebp - 0x2c], ebx */ 515 if (/* sub result */ CMP_EQ(_flag_a, _flag_b)) goto L_3615ADF2; /* 0x3615ADDC: je 0x3615adf2 */ 516 L_3615ADDE: 517 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 518 eax = eax - 1; /* 0x3615ADDE: dec eax */ 519 _flag_k = FK_DEC; 520 if (/* dec result */ CMP_EQ(_flag_a, _flag_b)) goto L_3615ADEB; /* 0x3615ADDF: je 0x3615adeb */ 521 L_3615ADE1: 522 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 523 eax = eax - 1; /* 0x3615ADE1: dec eax */ 524 _flag_k = FK_DEC; 525 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3615AE08; /* 0x3615ADE2: jne 0x3615ae08 */ 526 L_3615ADE4: 527 PUSH32(esp, 0x362E90CCu); /* 0x3615ADE4: push 0x362e90cc */ 528 goto L_3615ADF7; /* 0x3615ADE9: jmp 0x3615adf7 */ 529 L_3615ADEB: 530 PUSH32(esp, 0x362E90B8u); /* 0x3615ADEB: push 0x362e90b8 */ 531 goto L_3615ADF7; /* 0x3615ADF0: jmp 0x3615adf7 */ 532 L_3615ADF2: 533 PUSH32(esp, 0x362E90A0u); /* 0x3615ADF2: push 0x362e90a0 */ 534 L_3615ADF7: 535 PUSH32(esp, 0x000F6954u); /* 0x3615ADF7: push 0xf6954 */ 536 RECOMP_ICALL(MEM32(0x36170110)); /* 0x3615ADFC: call dword ptr [0x36170110] */ 537 RECOMP_FLAGS_IN(); 538 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 539 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 540 esp = esp + 8; /* 0x3615AE02: add esp, 8 */ 541 _flag_k = FK_ADD; 542 MEM32(ebp + (-0x2C)) = eax; /* 0x3615AE05: mov dword ptr [ebp - 0x2c], eax */ 543 L_3615AE08: 544 eax = MEM32(esi + 0x20); /* 0x3615AE08: mov eax, dword ptr [esi + 0x20] */ 545 PUSH32(esp, 0x88u); /* 0x3615AE0B: push 0x88 */ 546 MEM32(ebp + (-0x38)) = 0x000F696Bu; /* 0x3615AE10: mov dword ptr [ebp - 0x38], 0xf696b */ 547 MEM32(ebp + (-0x34)) = eax; /* 0x3615AE17: mov dword ptr [ebp - 0x34], eax */ 548 RECOMP_ICALL(0x3615FD6Au); /* 0x3615AE1A: call 0x3615fd6a */ /* not lifted */ 549 RECOMP_FLAGS_IN(); 550 edi = eax; /* 0x3615AE1F: mov edi, eax */ 551 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 552 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 553 esp = esp + 4; /* 0x3615AE21: add esp, 4 */ 554 _flag_k = FK_ADD; 555 MEM32(ebp + (-0x24)) = edi; /* 0x3615AE24: mov dword ptr [ebp - 0x24], edi */ 556 MEM32(ebp + (-0x4)) = ebx; /* 0x3615AE27: mov dword ptr [ebp - 4], ebx */ 557 /* cmp edi, ebx */ /* 0x3615AE2A: cmp edi, ebx */ 558 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 560 _flag_k = FK_CMP; 561 ebx = MEM32(0x3616F960); /* 0x3615AE2C: mov ebx, dword ptr [0x3616f960] */ 562 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615AE5D; /* 0x3615AE32: je 0x3615ae5d */ 563 L_3615AE34: 564 PUSH32(esp, 0); /* 0x3615AE34: push 0 */ 565 PUSH32(esp, 0); /* 0x3615AE36: push 0 */ 566 PUSH32(esp, 0); /* 0x3615AE38: push 0 */ 567 PUSH32(esp, 0); /* 0x3615AE3A: push 0 */ 568 PUSH32(esp, 0); /* 0x3615AE3C: push 0 */ 569 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 571 esp = esp - 8; /* 0x3615AE3E: sub esp, 8 */ 572 _flag_k = FK_CMP; 573 eax = ebp + (-0x38); /* 0x3615AE41: lea eax, [ebp - 0x38] */ 574 ecx = esp; /* 0x3615AE44: mov ecx, esp */ 575 MEM32(ebp + (-0x20)) = esp; /* 0x3615AE46: mov dword ptr [ebp - 0x20], esp */ 576 PUSH32(esp, eax); /* 0x3615AE49: push eax */ 577 RECOMP_ICALL(0x360056C0u); /* 0x3615AE4A: call 0x360056c0 */ /* not lifted */ 578 RECOMP_FLAGS_IN(); 579 ecx = edi; /* 0x3615AE4F: mov ecx, edi */ 580 RECOMP_ICALL(ebx); /* 0x3615AE51: call ebx */ 581 RECOMP_FLAGS_IN(); 582 MEM32(edi) = 0x36178DE8u; /* 0x3615AE53: mov dword ptr [edi], 0x36178de8 */ 583 ecx = edi; /* 0x3615AE59: mov ecx, edi */ 584 goto L_3615AE5F; /* 0x3615AE5B: jmp 0x3615ae5f */ 585 L_3615AE5D: 586 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 587 ecx = 0; /* 0x3615AE5D: xor ecx, ecx */ 588 _cf = 0; 589 _flag_k = FK_TEST; 590 L_3615AE5F: 591 eax = MEM32(ecx + 0x28); /* 0x3615AE5F: mov eax, dword ptr [ecx + 0x28] */ 592 /* test eax, eax */ /* 0x3615AE62: test eax, eax */ 593 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 594 _cf = 0; 595 _flag_k = FK_TEST; 596 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3615AE64: mov dword ptr [ebp - 4], 0xffffffff */ 597 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615AECE; /* 0x3615AE6B: jne 0x3615aece */ 598 L_3615AE6D: 599 /* test ecx, ecx */ /* 0x3615AE6D: test ecx, ecx */ 600 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 601 _cf = 0; 602 _flag_k = FK_TEST; 603 if (TEST_Z(_flag_a, _flag_b)) goto L_3615AE78; /* 0x3615AE6F: je 0x3615ae78 */ 604 L_3615AE71: 605 edx = MEM32(ecx); /* 0x3615AE71: mov edx, dword ptr [ecx] */ 606 PUSH32(esp, 1); /* 0x3615AE73: push 1 */ 607 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3615AE75: call dword ptr [edx + 0x10] */ 608 RECOMP_FLAGS_IN(); 609 L_3615AE78: 610 PUSH32(esp, 0x88u); /* 0x3615AE78: push 0x88 */ 611 MEM32(ebp + (-0x38)) = 0x000F6952u; /* 0x3615AE7D: mov dword ptr [ebp - 0x38], 0xf6952 */ 612 RECOMP_ICALL(0x3615FD6Au); /* 0x3615AE84: call 0x3615fd6a */ /* not lifted */ 613 RECOMP_FLAGS_IN(); 614 edi = eax; /* 0x3615AE89: mov edi, eax */ 615 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 616 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 617 esp = esp + 4; /* 0x3615AE8B: add esp, 4 */ 618 _flag_k = FK_ADD; 619 MEM32(ebp + (-0x24)) = edi; /* 0x3615AE8E: mov dword ptr [ebp - 0x24], edi */ 620 /* test edi, edi */ /* 0x3615AE91: test edi, edi */ 621 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 622 _cf = 0; 623 _flag_k = FK_TEST; 624 MEM32(ebp + (-0x4)) = 1; /* 0x3615AE93: mov dword ptr [ebp - 4], 1 */ 625 if (TEST_Z(_flag_a, _flag_b)) goto L_3615AEC3; /* 0x3615AE9A: je 0x3615aec3 */ 626 L_3615AE9C: 627 PUSH32(esp, 0); /* 0x3615AE9C: push 0 */ 628 PUSH32(esp, 0); /* 0x3615AE9E: push 0 */ 629 PUSH32(esp, 0); /* 0x3615AEA0: push 0 */ 630 PUSH32(esp, 0); /* 0x3615AEA2: push 0 */ 631 PUSH32(esp, 0); /* 0x3615AEA4: push 0 */ 632 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 634 esp = esp - 8; /* 0x3615AEA6: sub esp, 8 */ 635 _flag_k = FK_CMP; 636 eax = ebp + (-0x38); /* 0x3615AEA9: lea eax, [ebp - 0x38] */ 637 ecx = esp; /* 0x3615AEAC: mov ecx, esp */ 638 MEM32(ebp + (-0x20)) = esp; /* 0x3615AEAE: mov dword ptr [ebp - 0x20], esp */ 639 PUSH32(esp, eax); /* 0x3615AEB1: push eax */ 640 RECOMP_ICALL(0x360056C0u); /* 0x3615AEB2: call 0x360056c0 */ /* not lifted */ 641 RECOMP_FLAGS_IN(); 642 ecx = edi; /* 0x3615AEB7: mov ecx, edi */ 643 RECOMP_ICALL(ebx); /* 0x3615AEB9: call ebx */ 644 RECOMP_FLAGS_IN(); 645 MEM32(edi) = 0x36178DE8u; /* 0x3615AEBB: mov dword ptr [edi], 0x36178de8 */ 646 goto L_3615AEC5; /* 0x3615AEC1: jmp 0x3615aec5 */ 647 L_3615AEC3: 648 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 649 edi = 0; /* 0x3615AEC3: xor edi, edi */ 650 _cf = 0; 651 _flag_k = FK_TEST; 652 L_3615AEC5: 653 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3615AEC5: mov dword ptr [ebp - 4], 0xffffffff */ 654 ecx = edi; /* 0x3615AECC: mov ecx, edi */ 655 L_3615AECE: 656 eax = MEM32(ecx + 0x28); /* 0x3615AECE: mov eax, dword ptr [ecx + 0x28] */ 657 /* test eax, eax */ /* 0x3615AED1: test eax, eax */ 658 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 659 _cf = 0; 660 _flag_k = FK_TEST; 661 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615AEE2; /* 0x3615AED3: jne 0x3615aee2 */ 662 L_3615AED5: 663 /* test ecx, ecx */ /* 0x3615AED5: test ecx, ecx */ 664 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 665 _cf = 0; 666 _flag_k = FK_TEST; 667 if (TEST_Z(_flag_a, _flag_b)) goto L_3615AEE0; /* 0x3615AED7: je 0x3615aee0 */ 668 L_3615AED9: 669 edx = MEM32(ecx); /* 0x3615AED9: mov edx, dword ptr [ecx] */ 670 PUSH32(esp, 1); /* 0x3615AEDB: push 1 */ 671 RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x3615AEDD: call dword ptr [edx + 0x10] */ 672 RECOMP_FLAGS_IN(); 673 L_3615AEE0: 674 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 675 ecx = 0; /* 0x3615AEE0: xor ecx, ecx */ 676 _cf = 0; 677 _flag_k = FK_TEST; 678 L_3615AEE2: 679 /* test ecx, ecx */ /* 0x3615AEE2: test ecx, ecx */ 680 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 681 _cf = 0; 682 _flag_k = FK_TEST; 683 MEM32(esi + 0x34) = ecx; /* 0x3615AEE4: mov dword ptr [esi + 0x34], ecx */ 684 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B0A8; /* 0x3615AEE7: je 0x3615b0a8 */ 685 L_3615AEED: 686 eax = MEM32(ebp + (-0x2C)); /* 0x3615AEED: mov eax, dword ptr [ebp - 0x2c] */ 687 /* test eax, eax */ /* 0x3615AEF0: test eax, eax */ 688 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 689 _cf = 0; 690 _flag_k = FK_TEST; 691 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B043; /* 0x3615AEF2: je 0x3615b043 */ 692 L_3615AEF8: 693 RECOMP_ICALL(MEM32(0x36170224)); /* 0x3615AEF8: call dword ptr [0x36170224] */ 694 RECOMP_FLAGS_IN(); 695 edx = MEM32(eax); /* 0x3615AEFE: mov edx, dword ptr [eax] */ 696 PUSH32(esp, 3); /* 0x3615AF00: push 3 */ 697 PUSH32(esp, 1); /* 0x3615AF02: push 1 */ 698 ecx = ebp + (-0x30); /* 0x3615AF04: lea ecx, [ebp - 0x30] */ 699 PUSH32(esp, ecx); /* 0x3615AF07: push ecx */ 700 ecx = eax; /* 0x3615AF08: mov ecx, eax */ 701 RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x3615AF0A: call dword ptr [edx + 0x24] */ 702 RECOMP_FLAGS_IN(); 703 edi = eax; /* 0x3615AF0D: mov edi, eax */ 704 ecx = edi; /* 0x3615AF0F: mov ecx, edi */ 705 MEM32(ebp + (-0x18)) = edi; /* 0x3615AF11: mov dword ptr [ebp - 0x18], edi */ 706 RECOMP_ICALL(MEM32(0x3616F8F0)); /* 0x3615AF14: call dword ptr [0x3616f8f0] */ 707 RECOMP_FLAGS_IN(); 708 edx = MEM32(esi + 0x34); /* 0x3615AF1A: mov edx, dword ptr [esi + 0x34] */ 709 MEM32(ebp + (-0x1C)) = eax; /* 0x3615AF1D: mov dword ptr [ebp - 0x1c], eax */ 710 eax = MEM32(edx + 0x28); /* 0x3615AF20: mov eax, dword ptr [edx + 0x28] */ 711 MEM32(ebp + (-0x24)) = eax; /* 0x3615AF23: mov dword ptr [ebp - 0x24], eax */ 712 eax = MEM32(eax + 0x4); /* 0x3615AF26: mov eax, dword ptr [eax + 4] */ 713 ecx = MEM32(eax + 0x30); /* 0x3615AF29: mov ecx, dword ptr [eax + 0x30] */ 714 /* test ecx, ecx */ /* 0x3615AF2C: test ecx, ecx */ 715 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 716 _cf = 0; 717 _flag_k = FK_TEST; 718 MEM32(ebp + (-0x10)) = 0; /* 0x3615AF2E: mov dword ptr [ebp - 0x10], 0 */ 719 MEM32(ebp + (-0x20)) = ecx; /* 0x3615AF35: mov dword ptr [ebp - 0x20], ecx */ 720 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B031; /* 0x3615AF38: jbe 0x3615b031 */ 721 L_3615AF3E: 722 eax = MEM32(eax + 0x34); /* 0x3615AF3E: mov eax, dword ptr [eax + 0x34] */ 723 MEM32(ebp + (-0x14)) = eax; /* 0x3615AF41: mov dword ptr [ebp - 0x14], eax */ 724 L_3615AF44: 725 ebx = MEM32(eax); /* 0x3615AF44: mov ebx, dword ptr [eax] */ 726 eax = MEM32(ebx + 0xC); /* 0x3615AF46: mov eax, dword ptr [ebx + 0xc] */ 727 /* test eax, eax */ /* 0x3615AF49: test eax, eax */ 728 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 729 _cf = 0; 730 _flag_k = FK_TEST; 731 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615AF52; /* 0x3615AF4B: jne 0x3615af52 */ 732 L_3615AF4D: 733 eax = MEM32(0x3616F10C); /* 0x3615AF4D: mov eax, dword ptr [0x3616f10c] */ 734 L_3615AF52: 735 edi = 0x362E9090u; /* 0x3615AF52: mov edi, 0x362e9090 */ 736 L_3615AF57: 737 SET_LO8(edx, MEM8(eax)); /* 0x3615AF57: mov dl, byte ptr [eax] */ 738 SET_LO8(ecx, LO8(edx)); /* 0x3615AF59: mov cl, dl */ 739 /* cmp LO8(edx), MEM8(edi) */ /* 0x3615AF5B: cmp dl, byte ptr [edi] */ 740 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(edi)) << 24; 741 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 742 _flag_k = FK_NARROW(FK_CMP, 24); 743 if (CMP_NE(_flag_a, _flag_b)) goto L_3615AF7B; /* 0x3615AF5D: jne 0x3615af7b */ 744 L_3615AF5F: 745 /* test LO8(ecx), LO8(ecx) */ /* 0x3615AF5F: test cl, cl */ 746 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 747 _cf = 0; 748 _flag_k = FK_NARROW(FK_TEST, 24); 749 if (TEST_Z(_flag_a, _flag_b)) goto L_3615AF77; /* 0x3615AF61: je 0x3615af77 */ 750 L_3615AF63: 751 SET_LO8(edx, MEM8(eax + 0x1)); /* 0x3615AF63: mov dl, byte ptr [eax + 1] */ 752 SET_LO8(ecx, LO8(edx)); /* 0x3615AF66: mov cl, dl */ 753 /* cmp LO8(edx), MEM8(edi + 0x1) */ /* 0x3615AF68: cmp dl, byte ptr [edi + 1] */ 754 _flag_a = (uint32_t)(LO8(edx)) << 24; _flag_b = (uint32_t)(MEM8(edi + 0x1)) << 24; 755 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 756 _flag_k = FK_NARROW(FK_CMP, 24); 757 if (CMP_NE(_flag_a, _flag_b)) goto L_3615AF7B; /* 0x3615AF6B: jne 0x3615af7b */ 758 L_3615AF6D: 759 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2); 760 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 761 eax = eax + 2; /* 0x3615AF6D: add eax, 2 */ 762 _flag_k = FK_ADD; 763 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(2); 764 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 765 edi = edi + 2; /* 0x3615AF70: add edi, 2 */ 766 _flag_k = FK_ADD; 767 /* test LO8(ecx), LO8(ecx) */ /* 0x3615AF73: test cl, cl */ 768 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 769 _cf = 0; 770 _flag_k = FK_NARROW(FK_TEST, 24); 771 RECOMP_BACKEDGE(); 772 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615AF57; /* 0x3615AF75: jne 0x3615af57 */ 773 L_3615AF77: 774 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 775 eax = 0; /* 0x3615AF77: xor eax, eax */ 776 _cf = 0; 777 _flag_k = FK_TEST; 778 goto L_3615AF80; /* 0x3615AF79: jmp 0x3615af80 */ 779 L_3615AF7B: 780 { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x3615AF7B: sbb eax, eax */ 781 eax = _sc ? 0xFFFFFFFFu : 0; 782 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 783 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 784 { uint32_t _sa = eax, _sb = 0xFFFFFFFFu, _sc = _cf; /* 0x3615AF7D: sbb eax, -1 */ 785 eax = _sa - _sb - _sc; 786 _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0; 787 _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; } 788 L_3615AF80: 789 /* test eax, eax */ /* 0x3615AF80: test eax, eax */ 790 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 791 _cf = 0; 792 _flag_k = FK_TEST; 793 if (TEST_Z(_flag_a, _flag_b)) goto L_3615AFA0; /* 0x3615AF82: je 0x3615afa0 */ 794 L_3615AF84: 795 ecx = MEM32(ebp + (-0x10)); /* 0x3615AF84: mov ecx, dword ptr [ebp - 0x10] */ 796 eax = MEM32(ebp + (-0x14)); /* 0x3615AF87: mov eax, dword ptr [ebp - 0x14] */ 797 edx = MEM32(ebp + (-0x20)); /* 0x3615AF8A: mov edx, dword ptr [ebp - 0x20] */ 798 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 799 ecx = ecx + 1; /* 0x3615AF8D: inc ecx */ 800 _flag_k = FK_INC; 801 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 802 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 803 eax = eax + 4; /* 0x3615AF8E: add eax, 4 */ 804 _flag_k = FK_ADD; 805 /* cmp ecx, edx */ /* 0x3615AF91: cmp ecx, edx */ 806 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 807 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 808 _flag_k = FK_CMP; 809 MEM32(ebp + (-0x10)) = ecx; /* 0x3615AF93: mov dword ptr [ebp - 0x10], ecx */ 810 MEM32(ebp + (-0x14)) = eax; /* 0x3615AF96: mov dword ptr [ebp - 0x14], eax */ 811 RECOMP_BACKEDGE(); 812 if (CMP_B(_flag_a, _flag_b)) goto L_3615AF44; /* 0x3615AF99: jb 0x3615af44 */ 813 L_3615AF9B: 814 goto L_3615B02E; /* 0x3615AF9B: jmp 0x3615b02e */ 815 L_3615AFA0: 816 PUSH32(esp, 0xB8u); /* 0x3615AFA0: push 0xb8 */ 817 RECOMP_ICALL(0x3615FD6Au); /* 0x3615AFA5: call 0x3615fd6a */ /* not lifted */ 818 RECOMP_FLAGS_IN(); 819 edi = eax; /* 0x3615AFAA: mov edi, eax */ 820 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 821 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 822 esp = esp + 4; /* 0x3615AFAC: add esp, 4 */ 823 _flag_k = FK_ADD; 824 MEM32(ebp + (-0x28)) = edi; /* 0x3615AFAF: mov dword ptr [ebp - 0x28], edi */ 825 /* test edi, edi */ /* 0x3615AFB2: test edi, edi */ 826 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi); 827 _cf = 0; 828 _flag_k = FK_TEST; 829 MEM32(ebp + (-0x4)) = 2; /* 0x3615AFB4: mov dword ptr [ebp - 4], 2 */ 830 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B00F; /* 0x3615AFBB: je 0x3615b00f */ 831 L_3615AFBD: 832 ecx = MEM32(ebx + 0x5C); /* 0x3615AFBD: mov ecx, dword ptr [ebx + 0x5c] */ 833 eax = MEM32(ebx + 0x60); /* 0x3615AFC0: mov eax, dword ptr [ebx + 0x60] */ 834 edx = MEM32(ebx + 0x58); /* 0x3615AFC3: mov edx, dword ptr [ebx + 0x58] */ 835 MEM32(ebp + (-0x14)) = ecx; /* 0x3615AFC6: mov dword ptr [ebp - 0x14], ecx */ 836 PUSH32(esp, 1); /* 0x3615AFC9: push 1 */ 837 ecx = ebx; /* 0x3615AFCB: mov ecx, ebx */ 838 MEM32(ebp + (-0x20)) = eax; /* 0x3615AFCD: mov dword ptr [ebp - 0x20], eax */ 839 MEM32(ebp + (-0x10)) = edx; /* 0x3615AFD0: mov dword ptr [ebp - 0x10], edx */ 840 RECOMP_ICALL(MEM32(0x3616F95C)); /* 0x3615AFD3: call dword ptr [0x3616f95c] */ 841 RECOMP_FLAGS_IN(); 842 ecx = MEM32(ebp + (-0x14)); /* 0x3615AFD9: mov ecx, dword ptr [ebp - 0x14] */ 843 edx = MEM32(ebp + (-0x10)); /* 0x3615AFDC: mov edx, dword ptr [ebp - 0x10] */ 844 PUSH32(esp, eax); /* 0x3615AFDF: push eax */ 845 eax = MEM32(ebp + (-0x20)); /* 0x3615AFE0: mov eax, dword ptr [ebp - 0x20] */ 846 PUSH32(esp, eax); /* 0x3615AFE3: push eax */ 847 PUSH32(esp, ecx); /* 0x3615AFE4: push ecx */ 848 PUSH32(esp, edx); /* 0x3615AFE5: push edx */ 849 eax = ebx + 0x48; /* 0x3615AFE6: lea eax, [ebx + 0x48] */ 850 PUSH32(esp, eax); /* 0x3615AFE9: push eax */ 851 eax = MEM32(ebp + (-0x1C)); /* 0x3615AFEA: mov eax, dword ptr [ebp - 0x1c] */ 852 ecx = ebx + 0x3C; /* 0x3615AFED: lea ecx, [ebx + 0x3c] */ 853 PUSH32(esp, ecx); /* 0x3615AFF0: push ecx */ 854 edx = ebx + 0x30; /* 0x3615AFF1: lea edx, [ebx + 0x30] */ 855 PUSH32(esp, edx); /* 0x3615AFF4: push edx */ 856 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x24u); 857 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 858 ebx = ebx + 0x24u; /* 0x3615AFF5: add ebx, 0x24 */ 859 _flag_k = FK_ADD; 860 PUSH32(esp, ebx); /* 0x3615AFF8: push ebx */ 861 PUSH32(esp, eax); /* 0x3615AFF9: push eax */ 862 PUSH32(esp, 0x362E9090u); /* 0x3615AFFA: push 0x362e9090 */ 863 ecx = edi; /* 0x3615AFFF: mov ecx, edi */ 864 RECOMP_ICALL(MEM32(0x3616F938)); /* 0x3615B001: call dword ptr [0x3616f938] */ 865 RECOMP_FLAGS_IN(); 866 MEM32(edi) = 0x36176778u; /* 0x3615B007: mov dword ptr [edi], 0x36176778 */ 867 goto L_3615B011; /* 0x3615B00D: jmp 0x3615b011 */ 868 L_3615B00F: 869 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 870 edi = 0; /* 0x3615B00F: xor edi, edi */ 871 _cf = 0; 872 _flag_k = FK_TEST; 873 L_3615B011: 874 ecx = MEM32(ebp + (-0x24)); /* 0x3615B011: mov ecx, dword ptr [ebp - 0x24] */ 875 PUSH32(esp, edi); /* 0x3615B014: push edi */ 876 PUSH32(esp, 0x362E9090u); /* 0x3615B015: push 0x362e9090 */ 877 MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3615B01A: mov dword ptr [ebp - 4], 0xffffffff */ 878 RECOMP_ICALL(0x3615F95Eu); /* 0x3615B021: call 0x3615f95e */ /* not lifted */ 879 RECOMP_FLAGS_IN(); 880 ecx = edi; /* 0x3615B026: mov ecx, edi */ 881 RECOMP_ICALL(MEM32(0x3616F79C)); /* 0x3615B028: call dword ptr [0x3616f79c] */ 882 RECOMP_FLAGS_IN(); 883 L_3615B02E: 884 edi = MEM32(ebp + (-0x18)); /* 0x3615B02E: mov edi, dword ptr [ebp - 0x18] */ 885 L_3615B031: 886 ecx = MEM32(ebp + (-0x1C)); /* 0x3615B031: mov ecx, dword ptr [ebp - 0x1c] */ 887 RECOMP_ICALL(MEM32(0x3616F934)); /* 0x3615B034: call dword ptr [0x3616f934] */ 888 RECOMP_FLAGS_IN(); 889 edx = MEM32(edi); /* 0x3615B03A: mov edx, dword ptr [edi] */ 890 PUSH32(esp, 0); /* 0x3615B03C: push 0 */ 891 ecx = edi; /* 0x3615B03E: mov ecx, edi */ 892 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x3615B040: call dword ptr [edx + 0x28] */ 893 RECOMP_FLAGS_IN(); 894 L_3615B043: 895 eax = MEM32(esi + 0x28); /* 0x3615B043: mov eax, dword ptr [esi + 0x28] */ 896 ecx = MEM32(esi + 0x34); /* 0x3615B046: mov ecx, dword ptr [esi + 0x34] */ 897 PUSH32(esp, 0); /* 0x3615B049: push 0 */ 898 PUSH32(esp, 0); /* 0x3615B04B: push 0 */ 899 PUSH32(esp, 0); /* 0x3615B04D: push 0 */ 900 PUSH32(esp, 0); /* 0x3615B04F: push 0 */ 901 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B051: push -1 */ 902 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B053: push -1 */ 903 PUSH32(esp, eax); /* 0x3615B055: push eax */ 904 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B056: call dword ptr [0x3616f9bc] */ 905 RECOMP_FLAGS_IN(); 906 ecx = MEM32(esi + 0x28); /* 0x3615B05C: mov ecx, dword ptr [esi + 0x28] */ 907 PUSH32(esp, ecx); /* 0x3615B05F: push ecx */ 908 ecx = MEM32(esi + 0x34); /* 0x3615B060: mov ecx, dword ptr [esi + 0x34] */ 909 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B063: call dword ptr [0x3616f9d4] */ 910 RECOMP_FLAGS_IN(); 911 edx = MEM32(esi + 0x2C); /* 0x3615B069: mov edx, dword ptr [esi + 0x2c] */ 912 ecx = MEM32(esi + 0x34); /* 0x3615B06C: mov ecx, dword ptr [esi + 0x34] */ 913 PUSH32(esp, edx); /* 0x3615B06F: push edx */ 914 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B070: call dword ptr [0x3616f954] */ 915 RECOMP_FLAGS_IN(); 916 PUSH32(esp, 0x3A83126Fu); /* 0x3615B076: push 0x3a83126f */ 917 eax = ebp + (-0x48); /* 0x3615B07B: lea eax, [ebp - 0x48] */ 918 PUSH32(esp, eax); /* 0x3615B07E: push eax */ 919 ecx = esi + 0x14; /* 0x3615B07F: lea ecx, [esi + 0x14] */ 920 PUSH32(esp, ecx); /* 0x3615B082: push ecx */ 921 ecx = MEM32(esi + 0x34); /* 0x3615B083: mov ecx, dword ptr [esi + 0x34] */ 922 MEM32(ebp + (-0x48)) = 0; /* 0x3615B086: mov dword ptr [ebp - 0x48], 0 */ 923 MEM32(ebp + (-0x44)) = 0; /* 0x3615B08D: mov dword ptr [ebp - 0x44], 0 */ 924 MEM32(ebp + (-0x40)) = 0; /* 0x3615B094: mov dword ptr [ebp - 0x40], 0 */ 925 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x3615B09B: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 926 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B0A2: call dword ptr [0x3616f950] */ 927 RECOMP_FLAGS_IN(); 928 L_3615B0A8: 929 ecx = MEM32(esi + 0x34); /* 0x3615B0A8: mov ecx, dword ptr [esi + 0x34] */ 930 /* test ecx, ecx */ /* 0x3615B0AB: test ecx, ecx */ 931 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 932 _cf = 0; 933 _flag_k = FK_TEST; 934 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0AD: je 0x3615b121 */ 935 L_3615B0AF: 936 SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x3615B0AF: mov al, byte ptr [ecx + 0x14] */ 937 /* test LO8(eax), LO8(eax) */ /* 0x3615B0B2: test al, al */ 938 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 939 _cf = 0; 940 _flag_k = FK_NARROW(FK_TEST, 24); 941 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0B4: jne 0x3615b121 */ 942 L_3615B0B6: 943 RECOMP_ICALL(MEM32(0x3616F944)); /* 0x3615B0B6: call dword ptr [0x3616f944] */ 944 RECOMP_FLAGS_IN(); 945 edx = MEM32(esi + 0x28); /* 0x3615B0BC: mov edx, dword ptr [esi + 0x28] */ 946 ecx = MEM32(esi + 0x34); /* 0x3615B0BF: mov ecx, dword ptr [esi + 0x34] */ 947 PUSH32(esp, 0); /* 0x3615B0C2: push 0 */ 948 PUSH32(esp, 0); /* 0x3615B0C4: push 0 */ 949 PUSH32(esp, 0); /* 0x3615B0C6: push 0 */ 950 PUSH32(esp, 0); /* 0x3615B0C8: push 0 */ 951 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CA: push -1 */ 952 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CC: push -1 */ 953 PUSH32(esp, edx); /* 0x3615B0CE: push edx */ 954 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B0CF: call dword ptr [0x3616f9bc] */ 955 RECOMP_FLAGS_IN(); 956 eax = MEM32(esi + 0x28); /* 0x3615B0D5: mov eax, dword ptr [esi + 0x28] */ 957 ecx = MEM32(esi + 0x34); /* 0x3615B0D8: mov ecx, dword ptr [esi + 0x34] */ 958 PUSH32(esp, eax); /* 0x3615B0DB: push eax */ 959 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B0DC: call dword ptr [0x3616f9d4] */ 960 RECOMP_FLAGS_IN(); 961 ecx = MEM32(esi + 0x2C); /* 0x3615B0E2: mov ecx, dword ptr [esi + 0x2c] */ 962 PUSH32(esp, ecx); /* 0x3615B0E5: push ecx */ 963 ecx = MEM32(esi + 0x34); /* 0x3615B0E6: mov ecx, dword ptr [esi + 0x34] */ 964 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B0E9: call dword ptr [0x3616f954] */ 965 RECOMP_FLAGS_IN(); 966 ecx = MEM32(esi + 0x34); /* 0x3615B0EF: mov ecx, dword ptr [esi + 0x34] */ 967 PUSH32(esp, 0x3A83126Fu); /* 0x3615B0F2: push 0x3a83126f */ 968 edx = ebp + (-0x58); /* 0x3615B0F7: lea edx, [ebp - 0x58] */ 969 PUSH32(esp, edx); /* 0x3615B0FA: push edx */ 970 eax = esi + 0x14; /* 0x3615B0FB: lea eax, [esi + 0x14] */ 971 PUSH32(esp, eax); /* 0x3615B0FE: push eax */ 972 MEM32(ebp + (-0x58)) = 0; /* 0x3615B0FF: mov dword ptr [ebp - 0x58], 0 */ 973 MEM32(ebp + (-0x54)) = 0; /* 0x3615B106: mov dword ptr [ebp - 0x54], 0 */ 974 MEM32(ebp + (-0x50)) = 0; /* 0x3615B10D: mov dword ptr [ebp - 0x50], 0 */ 975 MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x3615B114: mov dword ptr [ebp - 0x4c], 0x3f800000 */ 976 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B11B: call dword ptr [0x3616f950] */ 977 RECOMP_FLAGS_IN(); 978 L_3615B121: 979 ecx = MEM32(ebp + (-0xC)); /* 0x3615B121: mov ecx, dword ptr [ebp - 0xc] */ 980 edi = POP32_VAL(esp); /* 0x3615B124: pop edi */ 981 esi = POP32_VAL(esp); /* 0x3615B125: pop esi */ 982 MEM32(FS_BASE + (0)) = ecx; /* 0x3615B126: mov dword ptr fs:[0], ecx */ 983 ebx = POP32_VAL(esp); /* 0x3615B12D: pop ebx */ 984 esp = ebp; /* 0x3615B12E: mov esp, ebp */ 985 ebp = POP32_VAL(esp); /* 0x3615B130: pop ebp */ 986 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B131: ret */ 987 RECOMP_REGS_OUT(); 988 } 989 990 void sub_3615B02E(void) { 991 int _fpu_cmp = 0; 992 uint32_t _cf = 0; 993 int _df = 1; 994 uint32_t _flag_k = FK_NONE; 995 uint32_t _flag_a = 0, _flag_b = 0; 996 uint32_t _itail_tgt = 0; 997 RECOMP_REGS_LOCALS 998 RECOMP_ENTER(0x3615B02Eu); 999 1000 L_3615B02E: 1001 edi = MEM32(ebp + (-0x18)); /* 0x3615B02E: mov edi, dword ptr [ebp - 0x18] */ 1002 ecx = MEM32(ebp + (-0x1C)); /* 0x3615B031: mov ecx, dword ptr [ebp - 0x1c] */ 1003 RECOMP_ICALL(MEM32(0x3616F934)); /* 0x3615B034: call dword ptr [0x3616f934] */ 1004 RECOMP_FLAGS_IN(); 1005 edx = MEM32(edi); /* 0x3615B03A: mov edx, dword ptr [edi] */ 1006 PUSH32(esp, 0); /* 0x3615B03C: push 0 */ 1007 ecx = edi; /* 0x3615B03E: mov ecx, edi */ 1008 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x3615B040: call dword ptr [edx + 0x28] */ 1009 RECOMP_FLAGS_IN(); 1010 eax = MEM32(esi + 0x28); /* 0x3615B043: mov eax, dword ptr [esi + 0x28] */ 1011 ecx = MEM32(esi + 0x34); /* 0x3615B046: mov ecx, dword ptr [esi + 0x34] */ 1012 PUSH32(esp, 0); /* 0x3615B049: push 0 */ 1013 PUSH32(esp, 0); /* 0x3615B04B: push 0 */ 1014 PUSH32(esp, 0); /* 0x3615B04D: push 0 */ 1015 PUSH32(esp, 0); /* 0x3615B04F: push 0 */ 1016 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B051: push -1 */ 1017 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B053: push -1 */ 1018 PUSH32(esp, eax); /* 0x3615B055: push eax */ 1019 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B056: call dword ptr [0x3616f9bc] */ 1020 RECOMP_FLAGS_IN(); 1021 ecx = MEM32(esi + 0x28); /* 0x3615B05C: mov ecx, dword ptr [esi + 0x28] */ 1022 PUSH32(esp, ecx); /* 0x3615B05F: push ecx */ 1023 ecx = MEM32(esi + 0x34); /* 0x3615B060: mov ecx, dword ptr [esi + 0x34] */ 1024 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B063: call dword ptr [0x3616f9d4] */ 1025 RECOMP_FLAGS_IN(); 1026 edx = MEM32(esi + 0x2C); /* 0x3615B069: mov edx, dword ptr [esi + 0x2c] */ 1027 ecx = MEM32(esi + 0x34); /* 0x3615B06C: mov ecx, dword ptr [esi + 0x34] */ 1028 PUSH32(esp, edx); /* 0x3615B06F: push edx */ 1029 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B070: call dword ptr [0x3616f954] */ 1030 RECOMP_FLAGS_IN(); 1031 PUSH32(esp, 0x3A83126Fu); /* 0x3615B076: push 0x3a83126f */ 1032 eax = ebp + (-0x48); /* 0x3615B07B: lea eax, [ebp - 0x48] */ 1033 PUSH32(esp, eax); /* 0x3615B07E: push eax */ 1034 ecx = esi + 0x14; /* 0x3615B07F: lea ecx, [esi + 0x14] */ 1035 PUSH32(esp, ecx); /* 0x3615B082: push ecx */ 1036 ecx = MEM32(esi + 0x34); /* 0x3615B083: mov ecx, dword ptr [esi + 0x34] */ 1037 MEM32(ebp + (-0x48)) = 0; /* 0x3615B086: mov dword ptr [ebp - 0x48], 0 */ 1038 MEM32(ebp + (-0x44)) = 0; /* 0x3615B08D: mov dword ptr [ebp - 0x44], 0 */ 1039 MEM32(ebp + (-0x40)) = 0; /* 0x3615B094: mov dword ptr [ebp - 0x40], 0 */ 1040 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x3615B09B: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 1041 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B0A2: call dword ptr [0x3616f950] */ 1042 RECOMP_FLAGS_IN(); 1043 ecx = MEM32(esi + 0x34); /* 0x3615B0A8: mov ecx, dword ptr [esi + 0x34] */ 1044 /* test ecx, ecx */ /* 0x3615B0AB: test ecx, ecx */ 1045 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1046 _cf = 0; 1047 _flag_k = FK_TEST; 1048 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0AD: je 0x3615b121 */ 1049 L_3615B0AF: 1050 SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x3615B0AF: mov al, byte ptr [ecx + 0x14] */ 1051 /* test LO8(eax), LO8(eax) */ /* 0x3615B0B2: test al, al */ 1052 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1053 _cf = 0; 1054 _flag_k = FK_NARROW(FK_TEST, 24); 1055 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0B4: jne 0x3615b121 */ 1056 L_3615B0B6: 1057 RECOMP_ICALL(MEM32(0x3616F944)); /* 0x3615B0B6: call dword ptr [0x3616f944] */ 1058 RECOMP_FLAGS_IN(); 1059 edx = MEM32(esi + 0x28); /* 0x3615B0BC: mov edx, dword ptr [esi + 0x28] */ 1060 ecx = MEM32(esi + 0x34); /* 0x3615B0BF: mov ecx, dword ptr [esi + 0x34] */ 1061 PUSH32(esp, 0); /* 0x3615B0C2: push 0 */ 1062 PUSH32(esp, 0); /* 0x3615B0C4: push 0 */ 1063 PUSH32(esp, 0); /* 0x3615B0C6: push 0 */ 1064 PUSH32(esp, 0); /* 0x3615B0C8: push 0 */ 1065 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CA: push -1 */ 1066 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CC: push -1 */ 1067 PUSH32(esp, edx); /* 0x3615B0CE: push edx */ 1068 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B0CF: call dword ptr [0x3616f9bc] */ 1069 RECOMP_FLAGS_IN(); 1070 eax = MEM32(esi + 0x28); /* 0x3615B0D5: mov eax, dword ptr [esi + 0x28] */ 1071 ecx = MEM32(esi + 0x34); /* 0x3615B0D8: mov ecx, dword ptr [esi + 0x34] */ 1072 PUSH32(esp, eax); /* 0x3615B0DB: push eax */ 1073 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B0DC: call dword ptr [0x3616f9d4] */ 1074 RECOMP_FLAGS_IN(); 1075 ecx = MEM32(esi + 0x2C); /* 0x3615B0E2: mov ecx, dword ptr [esi + 0x2c] */ 1076 PUSH32(esp, ecx); /* 0x3615B0E5: push ecx */ 1077 ecx = MEM32(esi + 0x34); /* 0x3615B0E6: mov ecx, dword ptr [esi + 0x34] */ 1078 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B0E9: call dword ptr [0x3616f954] */ 1079 RECOMP_FLAGS_IN(); 1080 ecx = MEM32(esi + 0x34); /* 0x3615B0EF: mov ecx, dword ptr [esi + 0x34] */ 1081 PUSH32(esp, 0x3A83126Fu); /* 0x3615B0F2: push 0x3a83126f */ 1082 edx = ebp + (-0x58); /* 0x3615B0F7: lea edx, [ebp - 0x58] */ 1083 PUSH32(esp, edx); /* 0x3615B0FA: push edx */ 1084 eax = esi + 0x14; /* 0x3615B0FB: lea eax, [esi + 0x14] */ 1085 PUSH32(esp, eax); /* 0x3615B0FE: push eax */ 1086 MEM32(ebp + (-0x58)) = 0; /* 0x3615B0FF: mov dword ptr [ebp - 0x58], 0 */ 1087 MEM32(ebp + (-0x54)) = 0; /* 0x3615B106: mov dword ptr [ebp - 0x54], 0 */ 1088 MEM32(ebp + (-0x50)) = 0; /* 0x3615B10D: mov dword ptr [ebp - 0x50], 0 */ 1089 MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x3615B114: mov dword ptr [ebp - 0x4c], 0x3f800000 */ 1090 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B11B: call dword ptr [0x3616f950] */ 1091 RECOMP_FLAGS_IN(); 1092 L_3615B121: 1093 ecx = MEM32(ebp + (-0xC)); /* 0x3615B121: mov ecx, dword ptr [ebp - 0xc] */ 1094 edi = POP32_VAL(esp); /* 0x3615B124: pop edi */ 1095 esi = POP32_VAL(esp); /* 0x3615B125: pop esi */ 1096 MEM32(FS_BASE + (0)) = ecx; /* 0x3615B126: mov dword ptr fs:[0], ecx */ 1097 ebx = POP32_VAL(esp); /* 0x3615B12D: pop ebx */ 1098 esp = ebp; /* 0x3615B12E: mov esp, ebp */ 1099 ebp = POP32_VAL(esp); /* 0x3615B130: pop ebp */ 1100 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B131: ret */ 1101 RECOMP_REGS_OUT(); 1102 } 1103 1104 void sub_3615B031(void) { 1105 int _fpu_cmp = 0; 1106 uint32_t _cf = 0; 1107 int _df = 1; 1108 uint32_t _flag_k = FK_NONE; 1109 uint32_t _flag_a = 0, _flag_b = 0; 1110 uint32_t _itail_tgt = 0; 1111 RECOMP_REGS_LOCALS 1112 RECOMP_ENTER(0x3615B031u); 1113 1114 L_3615B031: 1115 ecx = MEM32(ebp + (-0x1C)); /* 0x3615B031: mov ecx, dword ptr [ebp - 0x1c] */ 1116 RECOMP_ICALL(MEM32(0x3616F934)); /* 0x3615B034: call dword ptr [0x3616f934] */ 1117 RECOMP_FLAGS_IN(); 1118 edx = MEM32(edi); /* 0x3615B03A: mov edx, dword ptr [edi] */ 1119 PUSH32(esp, 0); /* 0x3615B03C: push 0 */ 1120 ecx = edi; /* 0x3615B03E: mov ecx, edi */ 1121 RECOMP_ICALL(MEM32(edx + 0x28)); /* 0x3615B040: call dword ptr [edx + 0x28] */ 1122 RECOMP_FLAGS_IN(); 1123 eax = MEM32(esi + 0x28); /* 0x3615B043: mov eax, dword ptr [esi + 0x28] */ 1124 ecx = MEM32(esi + 0x34); /* 0x3615B046: mov ecx, dword ptr [esi + 0x34] */ 1125 PUSH32(esp, 0); /* 0x3615B049: push 0 */ 1126 PUSH32(esp, 0); /* 0x3615B04B: push 0 */ 1127 PUSH32(esp, 0); /* 0x3615B04D: push 0 */ 1128 PUSH32(esp, 0); /* 0x3615B04F: push 0 */ 1129 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B051: push -1 */ 1130 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B053: push -1 */ 1131 PUSH32(esp, eax); /* 0x3615B055: push eax */ 1132 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B056: call dword ptr [0x3616f9bc] */ 1133 RECOMP_FLAGS_IN(); 1134 ecx = MEM32(esi + 0x28); /* 0x3615B05C: mov ecx, dword ptr [esi + 0x28] */ 1135 PUSH32(esp, ecx); /* 0x3615B05F: push ecx */ 1136 ecx = MEM32(esi + 0x34); /* 0x3615B060: mov ecx, dword ptr [esi + 0x34] */ 1137 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B063: call dword ptr [0x3616f9d4] */ 1138 RECOMP_FLAGS_IN(); 1139 edx = MEM32(esi + 0x2C); /* 0x3615B069: mov edx, dword ptr [esi + 0x2c] */ 1140 ecx = MEM32(esi + 0x34); /* 0x3615B06C: mov ecx, dword ptr [esi + 0x34] */ 1141 PUSH32(esp, edx); /* 0x3615B06F: push edx */ 1142 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B070: call dword ptr [0x3616f954] */ 1143 RECOMP_FLAGS_IN(); 1144 PUSH32(esp, 0x3A83126Fu); /* 0x3615B076: push 0x3a83126f */ 1145 eax = ebp + (-0x48); /* 0x3615B07B: lea eax, [ebp - 0x48] */ 1146 PUSH32(esp, eax); /* 0x3615B07E: push eax */ 1147 ecx = esi + 0x14; /* 0x3615B07F: lea ecx, [esi + 0x14] */ 1148 PUSH32(esp, ecx); /* 0x3615B082: push ecx */ 1149 ecx = MEM32(esi + 0x34); /* 0x3615B083: mov ecx, dword ptr [esi + 0x34] */ 1150 MEM32(ebp + (-0x48)) = 0; /* 0x3615B086: mov dword ptr [ebp - 0x48], 0 */ 1151 MEM32(ebp + (-0x44)) = 0; /* 0x3615B08D: mov dword ptr [ebp - 0x44], 0 */ 1152 MEM32(ebp + (-0x40)) = 0; /* 0x3615B094: mov dword ptr [ebp - 0x40], 0 */ 1153 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x3615B09B: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 1154 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B0A2: call dword ptr [0x3616f950] */ 1155 RECOMP_FLAGS_IN(); 1156 ecx = MEM32(esi + 0x34); /* 0x3615B0A8: mov ecx, dword ptr [esi + 0x34] */ 1157 /* test ecx, ecx */ /* 0x3615B0AB: test ecx, ecx */ 1158 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1159 _cf = 0; 1160 _flag_k = FK_TEST; 1161 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0AD: je 0x3615b121 */ 1162 L_3615B0AF: 1163 SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x3615B0AF: mov al, byte ptr [ecx + 0x14] */ 1164 /* test LO8(eax), LO8(eax) */ /* 0x3615B0B2: test al, al */ 1165 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1166 _cf = 0; 1167 _flag_k = FK_NARROW(FK_TEST, 24); 1168 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0B4: jne 0x3615b121 */ 1169 L_3615B0B6: 1170 RECOMP_ICALL(MEM32(0x3616F944)); /* 0x3615B0B6: call dword ptr [0x3616f944] */ 1171 RECOMP_FLAGS_IN(); 1172 edx = MEM32(esi + 0x28); /* 0x3615B0BC: mov edx, dword ptr [esi + 0x28] */ 1173 ecx = MEM32(esi + 0x34); /* 0x3615B0BF: mov ecx, dword ptr [esi + 0x34] */ 1174 PUSH32(esp, 0); /* 0x3615B0C2: push 0 */ 1175 PUSH32(esp, 0); /* 0x3615B0C4: push 0 */ 1176 PUSH32(esp, 0); /* 0x3615B0C6: push 0 */ 1177 PUSH32(esp, 0); /* 0x3615B0C8: push 0 */ 1178 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CA: push -1 */ 1179 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CC: push -1 */ 1180 PUSH32(esp, edx); /* 0x3615B0CE: push edx */ 1181 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B0CF: call dword ptr [0x3616f9bc] */ 1182 RECOMP_FLAGS_IN(); 1183 eax = MEM32(esi + 0x28); /* 0x3615B0D5: mov eax, dword ptr [esi + 0x28] */ 1184 ecx = MEM32(esi + 0x34); /* 0x3615B0D8: mov ecx, dword ptr [esi + 0x34] */ 1185 PUSH32(esp, eax); /* 0x3615B0DB: push eax */ 1186 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B0DC: call dword ptr [0x3616f9d4] */ 1187 RECOMP_FLAGS_IN(); 1188 ecx = MEM32(esi + 0x2C); /* 0x3615B0E2: mov ecx, dword ptr [esi + 0x2c] */ 1189 PUSH32(esp, ecx); /* 0x3615B0E5: push ecx */ 1190 ecx = MEM32(esi + 0x34); /* 0x3615B0E6: mov ecx, dword ptr [esi + 0x34] */ 1191 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B0E9: call dword ptr [0x3616f954] */ 1192 RECOMP_FLAGS_IN(); 1193 ecx = MEM32(esi + 0x34); /* 0x3615B0EF: mov ecx, dword ptr [esi + 0x34] */ 1194 PUSH32(esp, 0x3A83126Fu); /* 0x3615B0F2: push 0x3a83126f */ 1195 edx = ebp + (-0x58); /* 0x3615B0F7: lea edx, [ebp - 0x58] */ 1196 PUSH32(esp, edx); /* 0x3615B0FA: push edx */ 1197 eax = esi + 0x14; /* 0x3615B0FB: lea eax, [esi + 0x14] */ 1198 PUSH32(esp, eax); /* 0x3615B0FE: push eax */ 1199 MEM32(ebp + (-0x58)) = 0; /* 0x3615B0FF: mov dword ptr [ebp - 0x58], 0 */ 1200 MEM32(ebp + (-0x54)) = 0; /* 0x3615B106: mov dword ptr [ebp - 0x54], 0 */ 1201 MEM32(ebp + (-0x50)) = 0; /* 0x3615B10D: mov dword ptr [ebp - 0x50], 0 */ 1202 MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x3615B114: mov dword ptr [ebp - 0x4c], 0x3f800000 */ 1203 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B11B: call dword ptr [0x3616f950] */ 1204 RECOMP_FLAGS_IN(); 1205 L_3615B121: 1206 ecx = MEM32(ebp + (-0xC)); /* 0x3615B121: mov ecx, dword ptr [ebp - 0xc] */ 1207 edi = POP32_VAL(esp); /* 0x3615B124: pop edi */ 1208 esi = POP32_VAL(esp); /* 0x3615B125: pop esi */ 1209 MEM32(FS_BASE + (0)) = ecx; /* 0x3615B126: mov dword ptr fs:[0], ecx */ 1210 ebx = POP32_VAL(esp); /* 0x3615B12D: pop ebx */ 1211 esp = ebp; /* 0x3615B12E: mov esp, ebp */ 1212 ebp = POP32_VAL(esp); /* 0x3615B130: pop ebp */ 1213 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B131: ret */ 1214 RECOMP_REGS_OUT(); 1215 } 1216 1217 void sub_3615B043(void) { 1218 int _fpu_cmp = 0; 1219 uint32_t _cf = 0; 1220 int _df = 1; 1221 uint32_t _flag_k = FK_NONE; 1222 uint32_t _flag_a = 0, _flag_b = 0; 1223 uint32_t _itail_tgt = 0; 1224 RECOMP_REGS_LOCALS 1225 RECOMP_ENTER(0x3615B043u); 1226 1227 L_3615B043: 1228 eax = MEM32(esi + 0x28); /* 0x3615B043: mov eax, dword ptr [esi + 0x28] */ 1229 ecx = MEM32(esi + 0x34); /* 0x3615B046: mov ecx, dword ptr [esi + 0x34] */ 1230 PUSH32(esp, 0); /* 0x3615B049: push 0 */ 1231 PUSH32(esp, 0); /* 0x3615B04B: push 0 */ 1232 PUSH32(esp, 0); /* 0x3615B04D: push 0 */ 1233 PUSH32(esp, 0); /* 0x3615B04F: push 0 */ 1234 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B051: push -1 */ 1235 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B053: push -1 */ 1236 PUSH32(esp, eax); /* 0x3615B055: push eax */ 1237 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B056: call dword ptr [0x3616f9bc] */ 1238 RECOMP_FLAGS_IN(); 1239 ecx = MEM32(esi + 0x28); /* 0x3615B05C: mov ecx, dword ptr [esi + 0x28] */ 1240 PUSH32(esp, ecx); /* 0x3615B05F: push ecx */ 1241 ecx = MEM32(esi + 0x34); /* 0x3615B060: mov ecx, dword ptr [esi + 0x34] */ 1242 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B063: call dword ptr [0x3616f9d4] */ 1243 RECOMP_FLAGS_IN(); 1244 edx = MEM32(esi + 0x2C); /* 0x3615B069: mov edx, dword ptr [esi + 0x2c] */ 1245 ecx = MEM32(esi + 0x34); /* 0x3615B06C: mov ecx, dword ptr [esi + 0x34] */ 1246 PUSH32(esp, edx); /* 0x3615B06F: push edx */ 1247 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B070: call dword ptr [0x3616f954] */ 1248 RECOMP_FLAGS_IN(); 1249 PUSH32(esp, 0x3A83126Fu); /* 0x3615B076: push 0x3a83126f */ 1250 eax = ebp + (-0x48); /* 0x3615B07B: lea eax, [ebp - 0x48] */ 1251 PUSH32(esp, eax); /* 0x3615B07E: push eax */ 1252 ecx = esi + 0x14; /* 0x3615B07F: lea ecx, [esi + 0x14] */ 1253 PUSH32(esp, ecx); /* 0x3615B082: push ecx */ 1254 ecx = MEM32(esi + 0x34); /* 0x3615B083: mov ecx, dword ptr [esi + 0x34] */ 1255 MEM32(ebp + (-0x48)) = 0; /* 0x3615B086: mov dword ptr [ebp - 0x48], 0 */ 1256 MEM32(ebp + (-0x44)) = 0; /* 0x3615B08D: mov dword ptr [ebp - 0x44], 0 */ 1257 MEM32(ebp + (-0x40)) = 0; /* 0x3615B094: mov dword ptr [ebp - 0x40], 0 */ 1258 MEM32(ebp + (-0x3C)) = 0x3F800000u; /* 0x3615B09B: mov dword ptr [ebp - 0x3c], 0x3f800000 */ 1259 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B0A2: call dword ptr [0x3616f950] */ 1260 RECOMP_FLAGS_IN(); 1261 ecx = MEM32(esi + 0x34); /* 0x3615B0A8: mov ecx, dword ptr [esi + 0x34] */ 1262 /* test ecx, ecx */ /* 0x3615B0AB: test ecx, ecx */ 1263 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1264 _cf = 0; 1265 _flag_k = FK_TEST; 1266 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0AD: je 0x3615b121 */ 1267 L_3615B0AF: 1268 SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x3615B0AF: mov al, byte ptr [ecx + 0x14] */ 1269 /* test LO8(eax), LO8(eax) */ /* 0x3615B0B2: test al, al */ 1270 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1271 _cf = 0; 1272 _flag_k = FK_NARROW(FK_TEST, 24); 1273 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0B4: jne 0x3615b121 */ 1274 L_3615B0B6: 1275 RECOMP_ICALL(MEM32(0x3616F944)); /* 0x3615B0B6: call dword ptr [0x3616f944] */ 1276 RECOMP_FLAGS_IN(); 1277 edx = MEM32(esi + 0x28); /* 0x3615B0BC: mov edx, dword ptr [esi + 0x28] */ 1278 ecx = MEM32(esi + 0x34); /* 0x3615B0BF: mov ecx, dword ptr [esi + 0x34] */ 1279 PUSH32(esp, 0); /* 0x3615B0C2: push 0 */ 1280 PUSH32(esp, 0); /* 0x3615B0C4: push 0 */ 1281 PUSH32(esp, 0); /* 0x3615B0C6: push 0 */ 1282 PUSH32(esp, 0); /* 0x3615B0C8: push 0 */ 1283 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CA: push -1 */ 1284 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CC: push -1 */ 1285 PUSH32(esp, edx); /* 0x3615B0CE: push edx */ 1286 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B0CF: call dword ptr [0x3616f9bc] */ 1287 RECOMP_FLAGS_IN(); 1288 eax = MEM32(esi + 0x28); /* 0x3615B0D5: mov eax, dword ptr [esi + 0x28] */ 1289 ecx = MEM32(esi + 0x34); /* 0x3615B0D8: mov ecx, dword ptr [esi + 0x34] */ 1290 PUSH32(esp, eax); /* 0x3615B0DB: push eax */ 1291 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B0DC: call dword ptr [0x3616f9d4] */ 1292 RECOMP_FLAGS_IN(); 1293 ecx = MEM32(esi + 0x2C); /* 0x3615B0E2: mov ecx, dword ptr [esi + 0x2c] */ 1294 PUSH32(esp, ecx); /* 0x3615B0E5: push ecx */ 1295 ecx = MEM32(esi + 0x34); /* 0x3615B0E6: mov ecx, dword ptr [esi + 0x34] */ 1296 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B0E9: call dword ptr [0x3616f954] */ 1297 RECOMP_FLAGS_IN(); 1298 ecx = MEM32(esi + 0x34); /* 0x3615B0EF: mov ecx, dword ptr [esi + 0x34] */ 1299 PUSH32(esp, 0x3A83126Fu); /* 0x3615B0F2: push 0x3a83126f */ 1300 edx = ebp + (-0x58); /* 0x3615B0F7: lea edx, [ebp - 0x58] */ 1301 PUSH32(esp, edx); /* 0x3615B0FA: push edx */ 1302 eax = esi + 0x14; /* 0x3615B0FB: lea eax, [esi + 0x14] */ 1303 PUSH32(esp, eax); /* 0x3615B0FE: push eax */ 1304 MEM32(ebp + (-0x58)) = 0; /* 0x3615B0FF: mov dword ptr [ebp - 0x58], 0 */ 1305 MEM32(ebp + (-0x54)) = 0; /* 0x3615B106: mov dword ptr [ebp - 0x54], 0 */ 1306 MEM32(ebp + (-0x50)) = 0; /* 0x3615B10D: mov dword ptr [ebp - 0x50], 0 */ 1307 MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x3615B114: mov dword ptr [ebp - 0x4c], 0x3f800000 */ 1308 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B11B: call dword ptr [0x3616f950] */ 1309 RECOMP_FLAGS_IN(); 1310 L_3615B121: 1311 ecx = MEM32(ebp + (-0xC)); /* 0x3615B121: mov ecx, dword ptr [ebp - 0xc] */ 1312 edi = POP32_VAL(esp); /* 0x3615B124: pop edi */ 1313 esi = POP32_VAL(esp); /* 0x3615B125: pop esi */ 1314 MEM32(FS_BASE + (0)) = ecx; /* 0x3615B126: mov dword ptr fs:[0], ecx */ 1315 ebx = POP32_VAL(esp); /* 0x3615B12D: pop ebx */ 1316 esp = ebp; /* 0x3615B12E: mov esp, ebp */ 1317 ebp = POP32_VAL(esp); /* 0x3615B130: pop ebp */ 1318 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B131: ret */ 1319 RECOMP_REGS_OUT(); 1320 } 1321 1322 void sub_3615B0A8(void) { 1323 int _fpu_cmp = 0; 1324 uint32_t _cf = 0; 1325 int _df = 1; 1326 uint32_t _flag_k = FK_NONE; 1327 uint32_t _flag_a = 0, _flag_b = 0; 1328 uint32_t _itail_tgt = 0; 1329 RECOMP_REGS_LOCALS 1330 RECOMP_ENTER(0x3615B0A8u); 1331 1332 L_3615B0A8: 1333 ecx = MEM32(esi + 0x34); /* 0x3615B0A8: mov ecx, dword ptr [esi + 0x34] */ 1334 /* test ecx, ecx */ /* 0x3615B0AB: test ecx, ecx */ 1335 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1336 _cf = 0; 1337 _flag_k = FK_TEST; 1338 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0AD: je 0x3615b121 */ 1339 L_3615B0AF: 1340 SET_LO8(eax, MEM8(ecx + 0x14)); /* 0x3615B0AF: mov al, byte ptr [ecx + 0x14] */ 1341 /* test LO8(eax), LO8(eax) */ /* 0x3615B0B2: test al, al */ 1342 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 1343 _cf = 0; 1344 _flag_k = FK_NARROW(FK_TEST, 24); 1345 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B121; /* 0x3615B0B4: jne 0x3615b121 */ 1346 L_3615B0B6: 1347 RECOMP_ICALL(MEM32(0x3616F944)); /* 0x3615B0B6: call dword ptr [0x3616f944] */ 1348 RECOMP_FLAGS_IN(); 1349 edx = MEM32(esi + 0x28); /* 0x3615B0BC: mov edx, dword ptr [esi + 0x28] */ 1350 ecx = MEM32(esi + 0x34); /* 0x3615B0BF: mov ecx, dword ptr [esi + 0x34] */ 1351 PUSH32(esp, 0); /* 0x3615B0C2: push 0 */ 1352 PUSH32(esp, 0); /* 0x3615B0C4: push 0 */ 1353 PUSH32(esp, 0); /* 0x3615B0C6: push 0 */ 1354 PUSH32(esp, 0); /* 0x3615B0C8: push 0 */ 1355 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CA: push -1 */ 1356 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615B0CC: push -1 */ 1357 PUSH32(esp, edx); /* 0x3615B0CE: push edx */ 1358 RECOMP_ICALL(MEM32(0x3616F9BC)); /* 0x3615B0CF: call dword ptr [0x3616f9bc] */ 1359 RECOMP_FLAGS_IN(); 1360 eax = MEM32(esi + 0x28); /* 0x3615B0D5: mov eax, dword ptr [esi + 0x28] */ 1361 ecx = MEM32(esi + 0x34); /* 0x3615B0D8: mov ecx, dword ptr [esi + 0x34] */ 1362 PUSH32(esp, eax); /* 0x3615B0DB: push eax */ 1363 RECOMP_ICALL(MEM32(0x3616F9D4)); /* 0x3615B0DC: call dword ptr [0x3616f9d4] */ 1364 RECOMP_FLAGS_IN(); 1365 ecx = MEM32(esi + 0x2C); /* 0x3615B0E2: mov ecx, dword ptr [esi + 0x2c] */ 1366 PUSH32(esp, ecx); /* 0x3615B0E5: push ecx */ 1367 ecx = MEM32(esi + 0x34); /* 0x3615B0E6: mov ecx, dword ptr [esi + 0x34] */ 1368 RECOMP_ICALL(MEM32(0x3616F954)); /* 0x3615B0E9: call dword ptr [0x3616f954] */ 1369 RECOMP_FLAGS_IN(); 1370 ecx = MEM32(esi + 0x34); /* 0x3615B0EF: mov ecx, dword ptr [esi + 0x34] */ 1371 PUSH32(esp, 0x3A83126Fu); /* 0x3615B0F2: push 0x3a83126f */ 1372 edx = ebp + (-0x58); /* 0x3615B0F7: lea edx, [ebp - 0x58] */ 1373 PUSH32(esp, edx); /* 0x3615B0FA: push edx */ 1374 eax = esi + 0x14; /* 0x3615B0FB: lea eax, [esi + 0x14] */ 1375 PUSH32(esp, eax); /* 0x3615B0FE: push eax */ 1376 MEM32(ebp + (-0x58)) = 0; /* 0x3615B0FF: mov dword ptr [ebp - 0x58], 0 */ 1377 MEM32(ebp + (-0x54)) = 0; /* 0x3615B106: mov dword ptr [ebp - 0x54], 0 */ 1378 MEM32(ebp + (-0x50)) = 0; /* 0x3615B10D: mov dword ptr [ebp - 0x50], 0 */ 1379 MEM32(ebp + (-0x4C)) = 0x3F800000u; /* 0x3615B114: mov dword ptr [ebp - 0x4c], 0x3f800000 */ 1380 RECOMP_ICALL(MEM32(0x3616F950)); /* 0x3615B11B: call dword ptr [0x3616f950] */ 1381 RECOMP_FLAGS_IN(); 1382 L_3615B121: 1383 ecx = MEM32(ebp + (-0xC)); /* 0x3615B121: mov ecx, dword ptr [ebp - 0xc] */ 1384 edi = POP32_VAL(esp); /* 0x3615B124: pop edi */ 1385 esi = POP32_VAL(esp); /* 0x3615B125: pop esi */ 1386 MEM32(FS_BASE + (0)) = ecx; /* 0x3615B126: mov dword ptr fs:[0], ecx */ 1387 ebx = POP32_VAL(esp); /* 0x3615B12D: pop ebx */ 1388 esp = ebp; /* 0x3615B12E: mov esp, ebp */ 1389 ebp = POP32_VAL(esp); /* 0x3615B130: pop ebp */ 1390 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B131: ret */ 1391 RECOMP_REGS_OUT(); 1392 } 1393 1394 void sub_3615B140(void) { 1395 int _fpu_cmp = 0; 1396 uint32_t _cf = 0; 1397 int _df = 1; 1398 uint32_t _flag_k = FK_NONE; 1399 uint32_t _flag_a = 0, _flag_b = 0; 1400 uint32_t _itail_tgt = 0; 1401 RECOMP_REGS_LOCALS 1402 RECOMP_ENTER(0x3615B140u); 1403 1404 L_3615B140: 1405 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 1406 SET_LO8(eax, 0); /* 0x3615B140: xor al, al */ 1407 _cf = 0; 1408 _flag_k = FK_NARROW(FK_TEST, 24); 1409 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615B142: ret 8 */ 1410 RECOMP_REGS_OUT(); 1411 } 1412 1413 void sub_3615B150(void) { 1414 int _fpu_cmp = 0; 1415 uint32_t _cf = 0; 1416 int _df = 1; 1417 uint32_t _flag_k = FK_NONE; 1418 uint32_t _flag_a = 0, _flag_b = 0; 1419 uint32_t _itail_tgt = 0; 1420 RECOMP_REGS_LOCALS 1421 RECOMP_ENTER(0x3615B150u); 1422 1423 L_3615B150: 1424 PUSH32(esp, ebp); /* 0x3615B150: push ebp */ 1425 ebp = esp; /* 0x3615B151: mov ebp, esp */ 1426 PUSH32(esp, esi); /* 0x3615B153: push esi */ 1427 esi = ecx; /* 0x3615B154: mov esi, ecx */ 1428 RECOMP_ICALL(MEM32(0x3616F964)); /* 0x3615B156: call dword ptr [0x3616f964] */ 1429 RECOMP_FLAGS_IN(); 1430 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615B15C: test byte ptr [ebp + 8], 1 */ 1431 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1432 _cf = 0; 1433 _flag_k = FK_NARROW(FK_TEST, 24); 1434 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B16B; /* 0x3615B160: je 0x3615b16b */ 1435 L_3615B162: 1436 PUSH32(esp, esi); /* 0x3615B162: push esi */ 1437 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B163: call 0x3615fcc4 */ /* not lifted */ 1438 RECOMP_FLAGS_IN(); 1439 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1440 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1441 esp = esp + 4; /* 0x3615B168: add esp, 4 */ 1442 _flag_k = FK_ADD; 1443 L_3615B16B: 1444 eax = esi; /* 0x3615B16B: mov eax, esi */ 1445 esi = POP32_VAL(esp); /* 0x3615B16D: pop esi */ 1446 ebp = POP32_VAL(esp); /* 0x3615B16E: pop ebp */ 1447 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615B16F: ret 4 */ 1448 RECOMP_REGS_OUT(); 1449 } 1450 1451 void sub_3615B180(void) { 1452 int _fpu_cmp = 0; 1453 uint32_t _cf = 0; 1454 int _df = 1; 1455 uint32_t _flag_k = FK_NONE; 1456 uint32_t _flag_a = 0, _flag_b = 0; 1457 uint32_t _itail_tgt = 0; 1458 RECOMP_REGS_LOCALS 1459 RECOMP_ENTER(0x3615B180u); 1460 1461 L_3615B180: 1462 ecx = MEM32(ecx + 0x34); /* 0x3615B180: mov ecx, dword ptr [ecx + 0x34] */ 1463 L_3615B183: 1464 /* test ecx, ecx */ /* 0x3615B183: test ecx, ecx */ 1465 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 1466 _cf = 0; 1467 _flag_k = FK_TEST; 1468 L_3615B185: 1469 if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_3615B18D; /* 0x3615B185: je 0x3615b18d */ 1470 L_3615B187: 1471 { _itail_tgt = (uint32_t)(MEM32(0x3616F948)); goto _ljump; } 1472 L_3615B18D: 1473 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B18D: ret */ 1474 _ljump: 1475 switch (_itail_tgt) { 1476 case 0x3615B180u: goto L_3615B180; 1477 case 0x3615B183u: goto L_3615B183; 1478 case 0x3615B185u: goto L_3615B185; 1479 case 0x3615B187u: goto L_3615B187; 1480 case 0x3615B18Du: goto L_3615B18D; 1481 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1482 } 1483 RECOMP_REGS_OUT(); 1484 } 1485 1486 void sub_3615B190(void) { 1487 int _fpu_cmp = 0; 1488 uint32_t _cf = 0; 1489 int _df = 1; 1490 uint32_t _flag_k = FK_NONE; 1491 uint32_t _flag_a = 0, _flag_b = 0; 1492 uint32_t _itail_tgt = 0; 1493 RECOMP_REGS_LOCALS 1494 RECOMP_ENTER(0x3615B190u); 1495 1496 L_3615B190: 1497 eax = MEM32(ecx + 0x30); /* 0x3615B190: mov eax, dword ptr [ecx + 0x30] */ 1498 /* cmp eax, 3 */ /* 0x3615B193: cmp eax, 3 */ 1499 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3); 1500 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1501 _flag_k = FK_CMP; 1502 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B1A5; /* 0x3615B196: je 0x3615b1a5 */ 1503 L_3615B198: 1504 /* cmp eax, 5 */ /* 0x3615B198: cmp eax, 5 */ 1505 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(5); 1506 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1507 _flag_k = FK_CMP; 1508 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B1A5; /* 0x3615B19B: je 0x3615b1a5 */ 1509 L_3615B19D: 1510 /* cmp eax, 6 */ /* 0x3615B19D: cmp eax, 6 */ 1511 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(6); 1512 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1513 _flag_k = FK_CMP; 1514 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B1A5; /* 0x3615B1A0: je 0x3615b1a5 */ 1515 L_3615B1A2: 1516 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1517 eax = 0; /* 0x3615B1A2: xor eax, eax */ 1518 _cf = 0; 1519 _flag_k = FK_TEST; 1520 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B1A4: ret */ 1521 L_3615B1A5: 1522 eax = 1; /* 0x3615B1A5: mov eax, 1 */ 1523 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B1AA: ret */ 1524 RECOMP_REGS_OUT(); 1525 } 1526 1527 void sub_3615B1B0(void) { 1528 int _fpu_cmp = 0; 1529 uint32_t _cf = 0; 1530 int _df = 1; 1531 uint32_t _flag_k = FK_NONE; 1532 uint32_t _flag_a = 0, _flag_b = 0; 1533 uint32_t _itail_tgt = 0; 1534 RECOMP_REGS_LOCALS 1535 RECOMP_ENTER(0x3615B1B0u); 1536 1537 L_3615B1B0: 1538 RECOMP_ICALL(0x3615B1C0u); /* 0x3615B1B0: call 0x3615b1c0 */ /* not lifted */ 1539 RECOMP_FLAGS_IN(); 1540 goto L_3615B1D0; /* 0x3615B1B5: jmp 0x3615b1d0 */ 1541 L_3615B1D0: 1542 PUSH32(esp, 0x3615B1E0u); /* 0x3615B1D0: push 0x3615b1e0 */ 1543 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B1D5: call 0x3615feb2 */ /* not lifted */ 1544 RECOMP_FLAGS_IN(); 1545 ecx = POP32_VAL(esp); /* 0x3615B1DA: pop ecx */ 1546 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B1DB: ret */ 1547 RECOMP_REGS_OUT(); 1548 } 1549 1550 void sub_3615B1C0(void) { 1551 int _fpu_cmp = 0; 1552 uint32_t _cf = 0; 1553 int _df = 1; 1554 uint32_t _flag_k = FK_NONE; 1555 uint32_t _flag_a = 0, _flag_b = 0; 1556 uint32_t _itail_tgt = 0; 1557 RECOMP_REGS_LOCALS 1558 RECOMP_ENTER(0x3615B1C0u); 1559 1560 L_3615B1C0: 1561 ecx = 0x3630DBA5u; /* 0x3615B1C0: mov ecx, 0x3630dba5 */ 1562 L_3615B1C5: 1563 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 1564 { RECOMP_REGS_OUT(); return; } /* end of function */ 1565 _ljump: 1566 switch (_itail_tgt) { 1567 case 0x3615B1C0u: goto L_3615B1C0; 1568 case 0x3615B1C5u: goto L_3615B1C5; 1569 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1570 } 1571 RECOMP_REGS_OUT(); 1572 } 1573 1574 void sub_3615B1D0(void) { 1575 int _fpu_cmp = 0; 1576 uint32_t _cf = 0; 1577 int _df = 1; 1578 uint32_t _flag_k = FK_NONE; 1579 uint32_t _flag_a = 0, _flag_b = 0; 1580 uint32_t _itail_tgt = 0; 1581 RECOMP_REGS_LOCALS 1582 RECOMP_ENTER(0x3615B1D0u); 1583 1584 L_3615B1D0: 1585 PUSH32(esp, 0x3615B1E0u); /* 0x3615B1D0: push 0x3615b1e0 */ 1586 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B1D5: call 0x3615feb2 */ /* not lifted */ 1587 RECOMP_FLAGS_IN(); 1588 ecx = POP32_VAL(esp); /* 0x3615B1DA: pop ecx */ 1589 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B1DB: ret */ 1590 RECOMP_REGS_OUT(); 1591 } 1592 1593 void sub_3615B1E0(void) { 1594 int _fpu_cmp = 0; 1595 uint32_t _cf = 0; 1596 int _df = 1; 1597 uint32_t _flag_k = FK_NONE; 1598 uint32_t _flag_a = 0, _flag_b = 0; 1599 uint32_t _itail_tgt = 0; 1600 RECOMP_REGS_LOCALS 1601 RECOMP_ENTER(0x3615B1E0u); 1602 1603 L_3615B1E0: 1604 ecx = 0x3630DBA5u; /* 0x3615B1E0: mov ecx, 0x3630dba5 */ 1605 L_3615B1E5: 1606 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 1607 { RECOMP_REGS_OUT(); return; } /* end of function */ 1608 _ljump: 1609 switch (_itail_tgt) { 1610 case 0x3615B1E0u: goto L_3615B1E0; 1611 case 0x3615B1E5u: goto L_3615B1E5; 1612 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1613 } 1614 RECOMP_REGS_OUT(); 1615 } 1616 1617 void sub_3615B1F0(void) { 1618 int _fpu_cmp = 0; 1619 uint32_t _cf = 0; 1620 int _df = 1; 1621 uint32_t _flag_k = FK_NONE; 1622 uint32_t _flag_a = 0, _flag_b = 0; 1623 uint32_t _itail_tgt = 0; 1624 RECOMP_REGS_LOCALS 1625 RECOMP_ENTER(0x3615B1F0u); 1626 1627 L_3615B1F0: 1628 RECOMP_ICALL(0x3615B200u); /* 0x3615B1F0: call 0x3615b200 */ /* not lifted */ 1629 RECOMP_FLAGS_IN(); 1630 goto L_3615B210; /* 0x3615B1F5: jmp 0x3615b210 */ 1631 L_3615B210: 1632 PUSH32(esp, 0x3615B220u); /* 0x3615B210: push 0x3615b220 */ 1633 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B215: call 0x3615feb2 */ /* not lifted */ 1634 RECOMP_FLAGS_IN(); 1635 ecx = POP32_VAL(esp); /* 0x3615B21A: pop ecx */ 1636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B21B: ret */ 1637 RECOMP_REGS_OUT(); 1638 } 1639 1640 void sub_3615B200(void) { 1641 int _fpu_cmp = 0; 1642 uint32_t _cf = 0; 1643 int _df = 1; 1644 uint32_t _flag_k = FK_NONE; 1645 uint32_t _flag_a = 0, _flag_b = 0; 1646 uint32_t _itail_tgt = 0; 1647 RECOMP_REGS_LOCALS 1648 RECOMP_ENTER(0x3615B200u); 1649 1650 L_3615B200: 1651 ecx = 0x3630DBA4u; /* 0x3615B200: mov ecx, 0x3630dba4 */ 1652 L_3615B205: 1653 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 1654 { RECOMP_REGS_OUT(); return; } /* end of function */ 1655 _ljump: 1656 switch (_itail_tgt) { 1657 case 0x3615B200u: goto L_3615B200; 1658 case 0x3615B205u: goto L_3615B205; 1659 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1660 } 1661 RECOMP_REGS_OUT(); 1662 } 1663 1664 void sub_3615B210(void) { 1665 int _fpu_cmp = 0; 1666 uint32_t _cf = 0; 1667 int _df = 1; 1668 uint32_t _flag_k = FK_NONE; 1669 uint32_t _flag_a = 0, _flag_b = 0; 1670 uint32_t _itail_tgt = 0; 1671 RECOMP_REGS_LOCALS 1672 RECOMP_ENTER(0x3615B210u); 1673 1674 L_3615B210: 1675 PUSH32(esp, 0x3615B220u); /* 0x3615B210: push 0x3615b220 */ 1676 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B215: call 0x3615feb2 */ /* not lifted */ 1677 RECOMP_FLAGS_IN(); 1678 ecx = POP32_VAL(esp); /* 0x3615B21A: pop ecx */ 1679 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B21B: ret */ 1680 RECOMP_REGS_OUT(); 1681 } 1682 1683 void sub_3615B220(void) { 1684 int _fpu_cmp = 0; 1685 uint32_t _cf = 0; 1686 int _df = 1; 1687 uint32_t _flag_k = FK_NONE; 1688 uint32_t _flag_a = 0, _flag_b = 0; 1689 uint32_t _itail_tgt = 0; 1690 RECOMP_REGS_LOCALS 1691 RECOMP_ENTER(0x3615B220u); 1692 1693 L_3615B220: 1694 ecx = 0x3630DBA4u; /* 0x3615B220: mov ecx, 0x3630dba4 */ 1695 L_3615B225: 1696 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 1697 { RECOMP_REGS_OUT(); return; } /* end of function */ 1698 _ljump: 1699 switch (_itail_tgt) { 1700 case 0x3615B220u: goto L_3615B220; 1701 case 0x3615B225u: goto L_3615B225; 1702 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 1703 } 1704 RECOMP_REGS_OUT(); 1705 } 1706 1707 void sub_3615B230(void) { 1708 int _fpu_cmp = 0; 1709 uint32_t _cf = 0; 1710 int _df = 1; 1711 uint32_t _flag_k = FK_NONE; 1712 uint32_t _flag_a = 0, _flag_b = 0; 1713 uint32_t _itail_tgt = 0; 1714 RECOMP_REGS_LOCALS 1715 RECOMP_ENTER(0x3615B230u); 1716 1717 L_3615B230: 1718 eax = ecx; /* 0x3615B230: mov eax, ecx */ 1719 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1720 ecx = 0; /* 0x3615B232: xor ecx, ecx */ 1721 _cf = 0; 1722 _flag_k = FK_TEST; 1723 MEM32(eax + 0x4) = ecx; /* 0x3615B234: mov dword ptr [eax + 4], ecx */ 1724 MEM32(eax + 0x8) = ecx; /* 0x3615B237: mov dword ptr [eax + 8], ecx */ 1725 MEM32(eax + 0xC) = ecx; /* 0x3615B23A: mov dword ptr [eax + 0xc], ecx */ 1726 MEM32(eax + 0x10) = ecx; /* 0x3615B23D: mov dword ptr [eax + 0x10], ecx */ 1727 MEM32(eax + 0x14) = ecx; /* 0x3615B240: mov dword ptr [eax + 0x14], ecx */ 1728 MEM32(eax + 0x18) = ecx; /* 0x3615B243: mov dword ptr [eax + 0x18], ecx */ 1729 MEM32(eax + 0x1C) = ecx; /* 0x3615B246: mov dword ptr [eax + 0x1c], ecx */ 1730 MEM32(eax) = 0x36178E00u; /* 0x3615B249: mov dword ptr [eax], 0x36178e00 */ 1731 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B24F: ret */ 1732 RECOMP_REGS_OUT(); 1733 } 1734 1735 void sub_3615B250(void) { 1736 int _fpu_cmp = 0; 1737 uint32_t _cf = 0; 1738 int _df = 1; 1739 uint32_t _flag_k = FK_NONE; 1740 uint32_t _flag_a = 0, _flag_b = 0; 1741 uint32_t _itail_tgt = 0; 1742 RECOMP_REGS_LOCALS 1743 RECOMP_ENTER(0x3615B250u); 1744 1745 L_3615B250: 1746 PUSH32(esp, ebp); /* 0x3615B250: push ebp */ 1747 ebp = esp; /* 0x3615B251: mov ebp, esp */ 1748 PUSH32(esp, esi); /* 0x3615B253: push esi */ 1749 esi = ecx; /* 0x3615B254: mov esi, ecx */ 1750 RECOMP_ICALL(0x3615B2F0u); /* 0x3615B256: call 0x3615b2f0 */ /* not lifted */ 1751 RECOMP_FLAGS_IN(); 1752 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615B25B: test byte ptr [ebp + 8], 1 */ 1753 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 1754 _cf = 0; 1755 _flag_k = FK_NARROW(FK_TEST, 24); 1756 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B26A; /* 0x3615B25F: je 0x3615b26a */ 1757 L_3615B261: 1758 PUSH32(esp, esi); /* 0x3615B261: push esi */ 1759 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B262: call 0x3615fcc4 */ /* not lifted */ 1760 RECOMP_FLAGS_IN(); 1761 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 1762 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1763 esp = esp + 4; /* 0x3615B267: add esp, 4 */ 1764 _flag_k = FK_ADD; 1765 L_3615B26A: 1766 eax = esi; /* 0x3615B26A: mov eax, esi */ 1767 esi = POP32_VAL(esp); /* 0x3615B26C: pop esi */ 1768 ebp = POP32_VAL(esp); /* 0x3615B26D: pop ebp */ 1769 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615B26E: ret 4 */ 1770 RECOMP_REGS_OUT(); 1771 } 1772 1773 void sub_3615B280(void) { 1774 int _fpu_cmp = 0; 1775 uint32_t _cf = 0; 1776 int _df = 1; 1777 uint32_t _flag_k = FK_NONE; 1778 uint32_t _flag_a = 0, _flag_b = 0; 1779 uint32_t _itail_tgt = 0; 1780 RECOMP_REGS_LOCALS 1781 RECOMP_ENTER(0x3615B280u); 1782 1783 L_3615B280: 1784 PUSH32(esp, ebp); /* 0x3615B280: push ebp */ 1785 ebp = esp; /* 0x3615B281: mov ebp, esp */ 1786 edx = MEM32(ebp + 0x8); /* 0x3615B283: mov edx, dword ptr [ebp + 8] */ 1787 eax = ecx; /* 0x3615B286: mov eax, ecx */ 1788 ecx = eax + 0x4; /* 0x3615B288: lea ecx, [eax + 4] */ 1789 /* cmp ecx, edx */ /* 0x3615B28B: cmp ecx, edx */ 1790 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1791 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1792 _flag_k = FK_CMP; 1793 PUSH32(esp, esi); /* 0x3615B28D: push esi */ 1794 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B29A; /* 0x3615B28E: je 0x3615b29a */ 1795 L_3615B290: 1796 esi = MEM32(edx); /* 0x3615B290: mov esi, dword ptr [edx] */ 1797 MEM32(ecx) = esi; /* 0x3615B292: mov dword ptr [ecx], esi */ 1798 edx = MEM32(edx + 0x4); /* 0x3615B294: mov edx, dword ptr [edx + 4] */ 1799 MEM32(ecx + 0x4) = edx; /* 0x3615B297: mov dword ptr [ecx + 4], edx */ 1800 L_3615B29A: 1801 edx = MEM32(ebp + 0xC); /* 0x3615B29A: mov edx, dword ptr [ebp + 0xc] */ 1802 ecx = eax + 0xC; /* 0x3615B29D: lea ecx, [eax + 0xc] */ 1803 /* cmp ecx, edx */ /* 0x3615B2A0: cmp ecx, edx */ 1804 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 1805 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 1806 _flag_k = FK_CMP; 1807 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B2AE; /* 0x3615B2A2: je 0x3615b2ae */ 1808 L_3615B2A4: 1809 esi = MEM32(edx); /* 0x3615B2A4: mov esi, dword ptr [edx] */ 1810 MEM32(ecx) = esi; /* 0x3615B2A6: mov dword ptr [ecx], esi */ 1811 edx = MEM32(edx + 0x4); /* 0x3615B2A8: mov edx, dword ptr [edx + 4] */ 1812 MEM32(ecx + 0x4) = edx; /* 0x3615B2AB: mov dword ptr [ecx + 4], edx */ 1813 L_3615B2AE: 1814 edx = MEM32(ebp + 0x10); /* 0x3615B2AE: mov edx, dword ptr [ebp + 0x10] */ 1815 esi = MEM32(edx); /* 0x3615B2B1: mov esi, dword ptr [edx] */ 1816 ecx = eax + 0x14; /* 0x3615B2B3: lea ecx, [eax + 0x14] */ 1817 MEM32(ecx) = esi; /* 0x3615B2B6: mov dword ptr [ecx], esi */ 1818 esi = MEM32(edx + 0x4); /* 0x3615B2B8: mov esi, dword ptr [edx + 4] */ 1819 MEM32(ecx + 0x4) = esi; /* 0x3615B2BB: mov dword ptr [ecx + 4], esi */ 1820 edx = MEM32(edx + 0x8); /* 0x3615B2BE: mov edx, dword ptr [edx + 8] */ 1821 MEM32(ecx + 0x8) = edx; /* 0x3615B2C1: mov dword ptr [ecx + 8], edx */ 1822 ecx = MEM32(ebp + 0x14); /* 0x3615B2C4: mov ecx, dword ptr [ebp + 0x14] */ 1823 edx = MEM32(ebp + 0x18); /* 0x3615B2C7: mov edx, dword ptr [ebp + 0x18] */ 1824 MEM32(eax + 0x20) = ecx; /* 0x3615B2CA: mov dword ptr [eax + 0x20], ecx */ 1825 ecx = MEM32(ebp + 0x1C); /* 0x3615B2CD: mov ecx, dword ptr [ebp + 0x1c] */ 1826 MEM32(eax + 0x24) = edx; /* 0x3615B2D0: mov dword ptr [eax + 0x24], edx */ 1827 edx = MEM32(ebp + 0x20); /* 0x3615B2D3: mov edx, dword ptr [ebp + 0x20] */ 1828 MEM32(eax + 0x28) = ecx; /* 0x3615B2D6: mov dword ptr [eax + 0x28], ecx */ 1829 ecx = MEM32(ebp + 0x24); /* 0x3615B2D9: mov ecx, dword ptr [ebp + 0x24] */ 1830 MEM32(eax + 0x2C) = edx; /* 0x3615B2DC: mov dword ptr [eax + 0x2c], edx */ 1831 MEM32(eax + 0x30) = ecx; /* 0x3615B2DF: mov dword ptr [eax + 0x30], ecx */ 1832 MEM32(eax) = 0x36178E00u; /* 0x3615B2E2: mov dword ptr [eax], 0x36178e00 */ 1833 esi = POP32_VAL(esp); /* 0x3615B2E8: pop esi */ 1834 ebp = POP32_VAL(esp); /* 0x3615B2E9: pop ebp */ 1835 RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x3615B2EA: ret 0x20 */ 1836 RECOMP_REGS_OUT(); 1837 } 1838 1839 void sub_3615B2F0(void) { 1840 int _fpu_cmp = 0; 1841 uint32_t _cf = 0; 1842 int _df = 1; 1843 uint32_t _flag_k = FK_NONE; 1844 uint32_t _flag_a = 0, _flag_b = 0; 1845 uint32_t _itail_tgt = 0; 1846 RECOMP_REGS_LOCALS 1847 RECOMP_ENTER(0x3615B2F0u); 1848 1849 L_3615B2F0: 1850 MEM32(ecx) = 0x36178E00u; /* 0x3615B2F0: mov dword ptr [ecx], 0x36178e00 */ 1851 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B2F6: ret */ 1852 RECOMP_REGS_OUT(); 1853 } 1854 1855 void sub_3615B300(void) { 1856 int _fpu_cmp = 0; 1857 uint32_t _cf = 0; 1858 int _df = 1; 1859 uint32_t _flag_k = FK_NONE; 1860 uint32_t _flag_a = 0, _flag_b = 0; 1861 uint32_t _itail_tgt = 0; 1862 RECOMP_REGS_LOCALS 1863 RECOMP_ENTER(0x3615B300u); 1864 1865 L_3615B300: 1866 PUSH32(esp, ebp); /* 0x3615B300: push ebp */ 1867 ebp = esp; /* 0x3615B301: mov ebp, esp */ 1868 eax = ecx; /* 0x3615B303: mov eax, ecx */ 1869 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 1870 ecx = 0; /* 0x3615B305: xor ecx, ecx */ 1871 _cf = 0; 1872 _flag_k = FK_TEST; 1873 MEM32(eax + 0x4) = ecx; /* 0x3615B307: mov dword ptr [eax + 4], ecx */ 1874 MEM32(eax + 0x8) = ecx; /* 0x3615B30A: mov dword ptr [eax + 8], ecx */ 1875 MEM32(eax + 0xC) = ecx; /* 0x3615B30D: mov dword ptr [eax + 0xc], ecx */ 1876 MEM32(eax + 0x10) = ecx; /* 0x3615B310: mov dword ptr [eax + 0x10], ecx */ 1877 MEM32(eax + 0x14) = ecx; /* 0x3615B313: mov dword ptr [eax + 0x14], ecx */ 1878 MEM32(eax + 0x18) = ecx; /* 0x3615B316: mov dword ptr [eax + 0x18], ecx */ 1879 MEM32(eax + 0x1C) = ecx; /* 0x3615B319: mov dword ptr [eax + 0x1c], ecx */ 1880 ecx = MEM32(ebp + 0x8); /* 0x3615B31C: mov ecx, dword ptr [ebp + 8] */ 1881 MEM32(eax) = 0x36178E00u; /* 0x3615B31F: mov dword ptr [eax], 0x36178e00 */ 1882 edx = MEM32(ecx + 0x4); /* 0x3615B325: mov edx, dword ptr [ecx + 4] */ 1883 MEM32(eax + 0x4) = edx; /* 0x3615B328: mov dword ptr [eax + 4], edx */ 1884 edx = MEM32(ecx + 0x8); /* 0x3615B32B: mov edx, dword ptr [ecx + 8] */ 1885 MEM32(eax + 0x8) = edx; /* 0x3615B32E: mov dword ptr [eax + 8], edx */ 1886 edx = MEM32(ecx + 0xC); /* 0x3615B331: mov edx, dword ptr [ecx + 0xc] */ 1887 MEM32(eax + 0xC) = edx; /* 0x3615B334: mov dword ptr [eax + 0xc], edx */ 1888 edx = MEM32(ecx + 0x10); /* 0x3615B337: mov edx, dword ptr [ecx + 0x10] */ 1889 MEM32(eax + 0x10) = edx; /* 0x3615B33A: mov dword ptr [eax + 0x10], edx */ 1890 edx = ecx + 0x14; /* 0x3615B33D: lea edx, [ecx + 0x14] */ 1891 PUSH32(esp, esi); /* 0x3615B340: push esi */ 1892 esi = MEM32(edx); /* 0x3615B341: mov esi, dword ptr [edx] */ 1893 MEM32(eax + 0x14) = esi; /* 0x3615B343: mov dword ptr [eax + 0x14], esi */ 1894 esi = MEM32(edx + 0x4); /* 0x3615B346: mov esi, dword ptr [edx + 4] */ 1895 MEM32(eax + 0x18) = esi; /* 0x3615B349: mov dword ptr [eax + 0x18], esi */ 1896 edx = MEM32(edx + 0x8); /* 0x3615B34C: mov edx, dword ptr [edx + 8] */ 1897 MEM32(eax + 0x1C) = edx; /* 0x3615B34F: mov dword ptr [eax + 0x1c], edx */ 1898 edx = MEM32(ecx + 0x20); /* 0x3615B352: mov edx, dword ptr [ecx + 0x20] */ 1899 MEM32(eax + 0x20) = edx; /* 0x3615B355: mov dword ptr [eax + 0x20], edx */ 1900 edx = MEM32(ecx + 0x24); /* 0x3615B358: mov edx, dword ptr [ecx + 0x24] */ 1901 MEM32(eax + 0x24) = edx; /* 0x3615B35B: mov dword ptr [eax + 0x24], edx */ 1902 edx = MEM32(ecx + 0x28); /* 0x3615B35E: mov edx, dword ptr [ecx + 0x28] */ 1903 MEM32(eax + 0x28) = edx; /* 0x3615B361: mov dword ptr [eax + 0x28], edx */ 1904 edx = MEM32(ecx + 0x2C); /* 0x3615B364: mov edx, dword ptr [ecx + 0x2c] */ 1905 MEM32(eax + 0x2C) = edx; /* 0x3615B367: mov dword ptr [eax + 0x2c], edx */ 1906 ecx = MEM32(ecx + 0x30); /* 0x3615B36A: mov ecx, dword ptr [ecx + 0x30] */ 1907 MEM32(eax + 0x30) = ecx; /* 0x3615B36D: mov dword ptr [eax + 0x30], ecx */ 1908 esi = POP32_VAL(esp); /* 0x3615B370: pop esi */ 1909 ebp = POP32_VAL(esp); /* 0x3615B371: pop ebp */ 1910 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615B372: ret 4 */ 1911 RECOMP_REGS_OUT(); 1912 } 1913 1914 void sub_3615B380(void) { 1915 int _fpu_cmp = 0; 1916 uint32_t _cf = 0; 1917 int _df = 1; 1918 uint32_t _flag_k = FK_NONE; 1919 uint32_t _flag_a = 0, _flag_b = 0; 1920 uint32_t _itail_tgt = 0; 1921 RECOMP_REGS_LOCALS 1922 RECOMP_ENTER(0x3615B380u); 1923 1924 L_3615B380: 1925 PUSH32(esp, ebp); /* 0x3615B380: push ebp */ 1926 ebp = esp; /* 0x3615B381: mov ebp, esp */ 1927 PUSH32(esp, ebx); /* 0x3615B383: push ebx */ 1928 PUSH32(esp, esi); /* 0x3615B384: push esi */ 1929 esi = MEM32(ebp + 0x8); /* 0x3615B385: mov esi, dword ptr [ebp + 8] */ 1930 PUSH32(esp, edi); /* 0x3615B388: push edi */ 1931 edi = MEM32(ebp + 0xC); /* 0x3615B389: mov edi, dword ptr [ebp + 0xc] */ 1932 eax = edi + 0x4; /* 0x3615B38C: lea eax, [edi + 4] */ 1933 PUSH32(esp, eax); /* 0x3615B38F: push eax */ 1934 PUSH32(esp, esi); /* 0x3615B390: push esi */ 1935 RECOMP_ICALL(0x3615B870u); /* 0x3615B391: call 0x3615b870 */ /* not lifted */ 1936 RECOMP_FLAGS_IN(); 1937 ecx = edi + 0xC; /* 0x3615B396: lea ecx, [edi + 0xc] */ 1938 PUSH32(esp, ecx); /* 0x3615B399: push ecx */ 1939 PUSH32(esp, esi); /* 0x3615B39A: push esi */ 1940 RECOMP_ICALL(0x3615B870u); /* 0x3615B39B: call 0x3615b870 */ /* not lifted */ 1941 RECOMP_FLAGS_IN(); 1942 ebx = MEM32(0x3616FAD0); /* 0x3615B3A0: mov ebx, dword ptr [0x3616fad0] */ 1943 eax = edi + 0x14; /* 0x3615B3A6: lea eax, [edi + 0x14] */ 1944 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 1945 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 1946 esp = esp + 0x10u; /* 0x3615B3A9: add esp, 0x10 */ 1947 _flag_k = FK_ADD; 1948 edx = eax + 0x8; /* 0x3615B3AC: lea edx, [eax + 8] */ 1949 PUSH32(esp, edx); /* 0x3615B3AF: push edx */ 1950 ecx = eax + 0x4; /* 0x3615B3B0: lea ecx, [eax + 4] */ 1951 PUSH32(esp, ecx); /* 0x3615B3B3: push ecx */ 1952 PUSH32(esp, eax); /* 0x3615B3B4: push eax */ 1953 ecx = esi; /* 0x3615B3B5: mov ecx, esi */ 1954 RECOMP_ICALL(ebx); /* 0x3615B3B7: call ebx */ 1955 RECOMP_FLAGS_IN(); 1956 ecx = eax; /* 0x3615B3B9: mov ecx, eax */ 1957 RECOMP_ICALL(ebx); /* 0x3615B3BB: call ebx */ 1958 RECOMP_FLAGS_IN(); 1959 ecx = eax; /* 0x3615B3BD: mov ecx, eax */ 1960 RECOMP_ICALL(ebx); /* 0x3615B3BF: call ebx */ 1961 RECOMP_FLAGS_IN(); 1962 edx = edi + 0x20; /* 0x3615B3C1: lea edx, [edi + 0x20] */ 1963 PUSH32(esp, edx); /* 0x3615B3C4: push edx */ 1964 ecx = esi; /* 0x3615B3C5: mov ecx, esi */ 1965 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615B3C7: call dword ptr [0x3616fa8c] */ 1966 RECOMP_FLAGS_IN(); 1967 eax = ebp + 0xC; /* 0x3615B3CD: lea eax, [ebp + 0xc] */ 1968 PUSH32(esp, eax); /* 0x3615B3D0: push eax */ 1969 ecx = esi; /* 0x3615B3D1: mov ecx, esi */ 1970 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615B3D3: call dword ptr [0x3616fa8c] */ 1971 RECOMP_FLAGS_IN(); 1972 ecx = MEM32(ebp + 0xC); /* 0x3615B3D9: mov ecx, dword ptr [ebp + 0xc] */ 1973 edx = edi + 0x28; /* 0x3615B3DC: lea edx, [edi + 0x28] */ 1974 MEM32(edi + 0x24) = ecx; /* 0x3615B3DF: mov dword ptr [edi + 0x24], ecx */ 1975 PUSH32(esp, edx); /* 0x3615B3E2: push edx */ 1976 ecx = esi; /* 0x3615B3E3: mov ecx, esi */ 1977 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615B3E5: call dword ptr [0x3616fa8c] */ 1978 RECOMP_FLAGS_IN(); 1979 eax = edi + 0x2C; /* 0x3615B3EB: lea eax, [edi + 0x2c] */ 1980 PUSH32(esp, eax); /* 0x3615B3EE: push eax */ 1981 ecx = esi; /* 0x3615B3EF: mov ecx, esi */ 1982 RECOMP_ICALL(ebx); /* 0x3615B3F1: call ebx */ 1983 RECOMP_FLAGS_IN(); 1984 ecx = ebp + 0xC; /* 0x3615B3F3: lea ecx, [ebp + 0xc] */ 1985 PUSH32(esp, ecx); /* 0x3615B3F6: push ecx */ 1986 ecx = esi; /* 0x3615B3F7: mov ecx, esi */ 1987 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615B3F9: call dword ptr [0x3616fa8c] */ 1988 RECOMP_FLAGS_IN(); 1989 edx = MEM32(ebp + 0xC); /* 0x3615B3FF: mov edx, dword ptr [ebp + 0xc] */ 1990 MEM32(edi + 0x30) = edx; /* 0x3615B402: mov dword ptr [edi + 0x30], edx */ 1991 edi = POP32_VAL(esp); /* 0x3615B405: pop edi */ 1992 eax = esi; /* 0x3615B406: mov eax, esi */ 1993 esi = POP32_VAL(esp); /* 0x3615B408: pop esi */ 1994 ebx = POP32_VAL(esp); /* 0x3615B409: pop ebx */ 1995 ebp = POP32_VAL(esp); /* 0x3615B40A: pop ebp */ 1996 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B40B: ret */ 1997 RECOMP_REGS_OUT(); 1998 } 1999 2000 void sub_3615B410(void) { 2001 int _fpu_cmp = 0; 2002 uint32_t _cf = 0; 2003 int _df = 1; 2004 uint32_t _flag_k = FK_NONE; 2005 uint32_t _flag_a = 0, _flag_b = 0; 2006 uint32_t _itail_tgt = 0; 2007 RECOMP_REGS_LOCALS 2008 RECOMP_ENTER(0x3615B410u); 2009 2010 L_3615B410: 2011 PUSH32(esp, ebp); /* 0x3615B410: push ebp */ 2012 ebp = esp; /* 0x3615B411: mov ebp, esp */ 2013 PUSH32(esp, ebx); /* 0x3615B413: push ebx */ 2014 PUSH32(esp, esi); /* 0x3615B414: push esi */ 2015 esi = MEM32(ebp + 0xC); /* 0x3615B415: mov esi, dword ptr [ebp + 0xc] */ 2016 PUSH32(esp, edi); /* 0x3615B418: push edi */ 2017 edi = MEM32(ebp + 0x8); /* 0x3615B419: mov edi, dword ptr [ebp + 8] */ 2018 eax = esi + 0x4; /* 0x3615B41C: lea eax, [esi + 4] */ 2019 PUSH32(esp, eax); /* 0x3615B41F: push eax */ 2020 PUSH32(esp, edi); /* 0x3615B420: push edi */ 2021 RECOMP_ICALL(0x3615B840u); /* 0x3615B421: call 0x3615b840 */ /* not lifted */ 2022 RECOMP_FLAGS_IN(); 2023 ecx = esi + 0xC; /* 0x3615B426: lea ecx, [esi + 0xc] */ 2024 PUSH32(esp, ecx); /* 0x3615B429: push ecx */ 2025 PUSH32(esp, edi); /* 0x3615B42A: push edi */ 2026 RECOMP_ICALL(0x3615B840u); /* 0x3615B42B: call 0x3615b840 */ /* not lifted */ 2027 RECOMP_FLAGS_IN(); 2028 edx = MEM32(esi + 0x1C); /* 0x3615B430: mov edx, dword ptr [esi + 0x1c] */ 2029 eax = MEM32(esi + 0x18); /* 0x3615B433: mov eax, dword ptr [esi + 0x18] */ 2030 ecx = MEM32(esi + 0x14); /* 0x3615B436: mov ecx, dword ptr [esi + 0x14] */ 2031 ebx = MEM32(0x3616FAD4); /* 0x3615B439: mov ebx, dword ptr [0x3616fad4] */ 2032 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 2033 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2034 esp = esp + 0x10u; /* 0x3615B43F: add esp, 0x10 */ 2035 _flag_k = FK_ADD; 2036 PUSH32(esp, edx); /* 0x3615B442: push edx */ 2037 PUSH32(esp, eax); /* 0x3615B443: push eax */ 2038 PUSH32(esp, ecx); /* 0x3615B444: push ecx */ 2039 ecx = edi; /* 0x3615B445: mov ecx, edi */ 2040 RECOMP_ICALL(ebx); /* 0x3615B447: call ebx */ 2041 RECOMP_FLAGS_IN(); 2042 ecx = eax; /* 0x3615B449: mov ecx, eax */ 2043 RECOMP_ICALL(ebx); /* 0x3615B44B: call ebx */ 2044 RECOMP_FLAGS_IN(); 2045 ecx = eax; /* 0x3615B44D: mov ecx, eax */ 2046 RECOMP_ICALL(ebx); /* 0x3615B44F: call ebx */ 2047 RECOMP_FLAGS_IN(); 2048 edx = MEM32(esi + 0x20); /* 0x3615B451: mov edx, dword ptr [esi + 0x20] */ 2049 PUSH32(esp, edx); /* 0x3615B454: push edx */ 2050 ecx = edi; /* 0x3615B455: mov ecx, edi */ 2051 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615B457: call dword ptr [0x3616faec] */ 2052 RECOMP_FLAGS_IN(); 2053 eax = MEM32(esi + 0x24); /* 0x3615B45D: mov eax, dword ptr [esi + 0x24] */ 2054 PUSH32(esp, eax); /* 0x3615B460: push eax */ 2055 ecx = edi; /* 0x3615B461: mov ecx, edi */ 2056 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615B463: call dword ptr [0x3616faec] */ 2057 RECOMP_FLAGS_IN(); 2058 ecx = MEM32(esi + 0x28); /* 0x3615B469: mov ecx, dword ptr [esi + 0x28] */ 2059 PUSH32(esp, ecx); /* 0x3615B46C: push ecx */ 2060 ecx = edi; /* 0x3615B46D: mov ecx, edi */ 2061 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615B46F: call dword ptr [0x3616faec] */ 2062 RECOMP_FLAGS_IN(); 2063 edx = MEM32(esi + 0x2C); /* 0x3615B475: mov edx, dword ptr [esi + 0x2c] */ 2064 PUSH32(esp, edx); /* 0x3615B478: push edx */ 2065 ecx = edi; /* 0x3615B479: mov ecx, edi */ 2066 RECOMP_ICALL(ebx); /* 0x3615B47B: call ebx */ 2067 RECOMP_FLAGS_IN(); 2068 eax = MEM32(esi + 0x30); /* 0x3615B47D: mov eax, dword ptr [esi + 0x30] */ 2069 PUSH32(esp, eax); /* 0x3615B480: push eax */ 2070 ecx = edi; /* 0x3615B481: mov ecx, edi */ 2071 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615B483: call dword ptr [0x3616faec] */ 2072 RECOMP_FLAGS_IN(); 2073 eax = edi; /* 0x3615B489: mov eax, edi */ 2074 edi = POP32_VAL(esp); /* 0x3615B48B: pop edi */ 2075 esi = POP32_VAL(esp); /* 0x3615B48C: pop esi */ 2076 ebx = POP32_VAL(esp); /* 0x3615B48D: pop ebx */ 2077 ebp = POP32_VAL(esp); /* 0x3615B48E: pop ebp */ 2078 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B48F: ret */ 2079 RECOMP_REGS_OUT(); 2080 } 2081 2082 void sub_3615B490(void) { 2083 int _fpu_cmp = 0; 2084 uint32_t _cf = 0; 2085 int _df = 1; 2086 uint32_t _flag_k = FK_NONE; 2087 uint32_t _flag_a = 0, _flag_b = 0; 2088 uint32_t _itail_tgt = 0; 2089 RECOMP_REGS_LOCALS 2090 RECOMP_ENTER(0x3615B490u); 2091 2092 L_3615B490: 2093 PUSH32(esp, esi); /* 0x3615B490: push esi */ 2094 esi = ecx; /* 0x3615B491: mov esi, ecx */ 2095 eax = MEM32(esi); /* 0x3615B493: mov eax, dword ptr [esi] */ 2096 PUSH32(esp, eax); /* 0x3615B495: push eax */ 2097 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B496: call 0x3615fcc4 */ /* not lifted */ 2098 RECOMP_FLAGS_IN(); 2099 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2101 esp = esp + 4; /* 0x3615B49B: add esp, 4 */ 2102 _flag_k = FK_ADD; 2103 MEM32(esi) = 0; /* 0x3615B49E: mov dword ptr [esi], 0 */ 2104 esi = POP32_VAL(esp); /* 0x3615B4A4: pop esi */ 2105 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B4A5: ret */ 2106 RECOMP_REGS_OUT(); 2107 } 2108 2109 void sub_3615B4B0(void) { 2110 int _fpu_cmp = 0; 2111 uint32_t _cf = 0; 2112 int _df = 1; 2113 uint32_t _flag_k = FK_NONE; 2114 uint32_t _flag_a = 0, _flag_b = 0; 2115 uint32_t _itail_tgt = 0; 2116 RECOMP_REGS_LOCALS 2117 RECOMP_ENTER(0x3615B4B0u); 2118 2119 L_3615B4B0: 2120 PUSH32(esp, ebp); /* 0x3615B4B0: push ebp */ 2121 ebp = esp; /* 0x3615B4B1: mov ebp, esp */ 2122 eax = ecx; /* 0x3615B4B3: mov eax, ecx */ 2123 edx = MEM32(ebp + 0x8); /* 0x3615B4B5: mov edx, dword ptr [ebp + 8] */ 2124 SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x3615B4B8: mov cl, byte ptr [ebp + 0xb] */ 2125 MEM8(eax + 0x8) = (uint8_t)(LO8(ecx)); /* 0x3615B4BB: mov byte ptr [eax + 8], cl */ 2126 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2127 ecx = 0; /* 0x3615B4BE: xor ecx, ecx */ 2128 _cf = 0; 2129 _flag_k = FK_TEST; 2130 MEM32(eax + 0xC) = ecx; /* 0x3615B4C0: mov dword ptr [eax + 0xc], ecx */ 2131 MEM32(eax + 0x10) = ecx; /* 0x3615B4C3: mov dword ptr [eax + 0x10], ecx */ 2132 MEM32(eax + 0x14) = ecx; /* 0x3615B4C6: mov dword ptr [eax + 0x14], ecx */ 2133 MEM32(eax + 0x18) = ecx; /* 0x3615B4C9: mov dword ptr [eax + 0x18], ecx */ 2134 ecx = MEM32(ebp + 0xC); /* 0x3615B4CC: mov ecx, dword ptr [ebp + 0xc] */ 2135 MEM32(eax) = edx; /* 0x3615B4CF: mov dword ptr [eax], edx */ 2136 MEM32(eax + 0x4) = ecx; /* 0x3615B4D1: mov dword ptr [eax + 4], ecx */ 2137 ebp = POP32_VAL(esp); /* 0x3615B4D4: pop ebp */ 2138 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615B4D5: ret 8 */ 2139 RECOMP_REGS_OUT(); 2140 } 2141 2142 void sub_3615B4E0(void) { 2143 int _fpu_cmp = 0; 2144 uint32_t _cf = 0; 2145 int _df = 1; 2146 uint32_t _flag_k = FK_NONE; 2147 uint32_t _flag_a = 0, _flag_b = 0; 2148 uint32_t _itail_tgt = 0; 2149 RECOMP_REGS_LOCALS 2150 RECOMP_ENTER(0x3615B4E0u); 2151 2152 L_3615B4E0: 2153 PUSH32(esp, ebp); /* 0x3615B4E0: push ebp */ 2154 ebp = esp; /* 0x3615B4E1: mov ebp, esp */ 2155 PUSH32(esp, ecx); /* 0x3615B4E3: push ecx */ 2156 PUSH32(esp, esi); /* 0x3615B4E4: push esi */ 2157 PUSH32(esp, edi); /* 0x3615B4E5: push edi */ 2158 edi = ecx; /* 0x3615B4E6: mov edi, ecx */ 2159 esi = MEM32(edi + 0xC); /* 0x3615B4E8: mov esi, dword ptr [edi + 0xc] */ 2160 eax = MEM32(edi + 0x10); /* 0x3615B4EB: mov eax, dword ptr [edi + 0x10] */ 2161 /* cmp esi, eax */ /* 0x3615B4EE: cmp esi, eax */ 2162 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2163 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2164 _flag_k = FK_CMP; 2165 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B514; /* 0x3615B4F0: je 0x3615b514 */ 2166 L_3615B4F2: 2167 PUSH32(esp, ebx); /* 0x3615B4F2: push ebx */ 2168 L_3615B4F3: 2169 ebx = MEM32(esi); /* 0x3615B4F3: mov ebx, dword ptr [esi] */ 2170 /* test ebx, ebx */ /* 0x3615B4F5: test ebx, ebx */ 2171 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx); 2172 _cf = 0; 2173 _flag_k = FK_TEST; 2174 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B509; /* 0x3615B4F7: je 0x3615b509 */ 2175 L_3615B4F9: 2176 ecx = ebx; /* 0x3615B4F9: mov ecx, ebx */ 2177 RECOMP_ICALL(0x3615B490u); /* 0x3615B4FB: call 0x3615b490 */ /* not lifted */ 2178 RECOMP_FLAGS_IN(); 2179 PUSH32(esp, ebx); /* 0x3615B500: push ebx */ 2180 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B501: call 0x3615fcc4 */ /* not lifted */ 2181 RECOMP_FLAGS_IN(); 2182 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2184 esp = esp + 4; /* 0x3615B506: add esp, 4 */ 2185 _flag_k = FK_ADD; 2186 L_3615B509: 2187 eax = MEM32(edi + 0x10); /* 0x3615B509: mov eax, dword ptr [edi + 0x10] */ 2188 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4); 2189 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2190 esi = esi + 4; /* 0x3615B50C: add esi, 4 */ 2191 _flag_k = FK_ADD; 2192 /* cmp esi, eax */ /* 0x3615B50F: cmp esi, eax */ 2193 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 2194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2195 _flag_k = FK_CMP; 2196 RECOMP_BACKEDGE(); 2197 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B4F3; /* 0x3615B511: jne 0x3615b4f3 */ 2198 L_3615B513: 2199 ebx = POP32_VAL(esp); /* 0x3615B513: pop ebx */ 2200 L_3615B514: 2201 eax = MEM32(edi + 0xC); /* 0x3615B514: mov eax, dword ptr [edi + 0xc] */ 2202 PUSH32(esp, eax); /* 0x3615B517: push eax */ 2203 MEM32(ebp + (-0x4)) = eax; /* 0x3615B518: mov dword ptr [ebp - 4], eax */ 2204 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B51B: call 0x3615fcc4 */ /* not lifted */ 2205 RECOMP_FLAGS_IN(); 2206 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2207 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2208 esp = esp + 4; /* 0x3615B520: add esp, 4 */ 2209 _flag_k = FK_ADD; 2210 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2211 eax = 0; /* 0x3615B523: xor eax, eax */ 2212 _cf = 0; 2213 _flag_k = FK_TEST; 2214 MEM32(edi + 0xC) = eax; /* 0x3615B525: mov dword ptr [edi + 0xc], eax */ 2215 MEM32(edi + 0x10) = eax; /* 0x3615B528: mov dword ptr [edi + 0x10], eax */ 2216 MEM32(edi + 0x14) = eax; /* 0x3615B52B: mov dword ptr [edi + 0x14], eax */ 2217 edi = POP32_VAL(esp); /* 0x3615B52E: pop edi */ 2218 esi = POP32_VAL(esp); /* 0x3615B52F: pop esi */ 2219 esp = ebp; /* 0x3615B530: mov esp, ebp */ 2220 ebp = POP32_VAL(esp); /* 0x3615B532: pop ebp */ 2221 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B533: ret */ 2222 RECOMP_REGS_OUT(); 2223 } 2224 2225 void sub_3615B540(void) { 2226 int _fpu_cmp = 0; 2227 uint32_t _cf = 0; 2228 int _df = 1; 2229 uint32_t _flag_k = FK_NONE; 2230 uint32_t _flag_a = 0, _flag_b = 0; 2231 uint32_t _itail_tgt = 0; 2232 RECOMP_REGS_LOCALS 2233 RECOMP_ENTER(0x3615B540u); 2234 2235 L_3615B540: 2236 PUSH32(esp, ebp); /* 0x3615B540: push ebp */ 2237 ebp = esp; /* 0x3615B541: mov ebp, esp */ 2238 PUSH32(esp, ebx); /* 0x3615B543: push ebx */ 2239 PUSH32(esp, esi); /* 0x3615B544: push esi */ 2240 esi = MEM32(ebp + 0x8); /* 0x3615B545: mov esi, dword ptr [ebp + 8] */ 2241 PUSH32(esp, edi); /* 0x3615B548: push edi */ 2242 edi = MEM32(ebp + 0xC); /* 0x3615B549: mov edi, dword ptr [ebp + 0xc] */ 2243 PUSH32(esp, 0x20u); /* 0x3615B54C: push 0x20 */ 2244 PUSH32(esp, edi); /* 0x3615B54E: push edi */ 2245 ecx = esi; /* 0x3615B54F: mov ecx, esi */ 2246 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x3615B551: call dword ptr [0x3616fac4] */ 2247 RECOMP_FLAGS_IN(); 2248 ebx = MEM32(0x3616FA8C); /* 0x3615B557: mov ebx, dword ptr [0x3616fa8c] */ 2249 eax = edi + 0x20; /* 0x3615B55D: lea eax, [edi + 0x20] */ 2250 PUSH32(esp, eax); /* 0x3615B560: push eax */ 2251 ecx = esi; /* 0x3615B561: mov ecx, esi */ 2252 RECOMP_ICALL(ebx); /* 0x3615B563: call ebx */ 2253 RECOMP_FLAGS_IN(); 2254 ecx = edi + 0x24; /* 0x3615B565: lea ecx, [edi + 0x24] */ 2255 PUSH32(esp, ecx); /* 0x3615B568: push ecx */ 2256 ecx = esi; /* 0x3615B569: mov ecx, esi */ 2257 RECOMP_ICALL(ebx); /* 0x3615B56B: call ebx */ 2258 RECOMP_FLAGS_IN(); 2259 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0x28u); 2260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2261 edi = edi + 0x28u; /* 0x3615B56D: add edi, 0x28 */ 2262 _flag_k = FK_ADD; 2263 ecx = esi; /* 0x3615B570: mov ecx, esi */ 2264 PUSH32(esp, edi); /* 0x3615B572: push edi */ 2265 RECOMP_ICALL(ebx); /* 0x3615B573: call ebx */ 2266 RECOMP_FLAGS_IN(); 2267 eax = esi; /* 0x3615B575: mov eax, esi */ 2268 edi = POP32_VAL(esp); /* 0x3615B577: pop edi */ 2269 esi = POP32_VAL(esp); /* 0x3615B578: pop esi */ 2270 ebx = POP32_VAL(esp); /* 0x3615B579: pop ebx */ 2271 ebp = POP32_VAL(esp); /* 0x3615B57A: pop ebp */ 2272 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B57B: ret */ 2273 RECOMP_REGS_OUT(); 2274 } 2275 2276 void sub_3615B580(void) { 2277 int _fpu_cmp = 0; 2278 uint32_t _cf = 0; 2279 int _df = 1; 2280 uint32_t _flag_k = FK_NONE; 2281 uint32_t _flag_a = 0, _flag_b = 0; 2282 uint32_t _itail_tgt = 0; 2283 RECOMP_REGS_LOCALS 2284 RECOMP_ENTER(0x3615B580u); 2285 2286 L_3615B580: 2287 PUSH32(esp, ebp); /* 0x3615B580: push ebp */ 2288 ebp = esp; /* 0x3615B581: mov ebp, esp */ 2289 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u); 2290 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2291 esp = esp - 0x14u; /* 0x3615B583: sub esp, 0x14 */ 2292 _flag_k = FK_CMP; 2293 PUSH32(esp, ebx); /* 0x3615B586: push ebx */ 2294 ebx = MEM32(ebp + 0x8); /* 0x3615B587: mov ebx, dword ptr [ebp + 8] */ 2295 eax = ebp + (-0x8); /* 0x3615B58A: lea eax, [ebp - 8] */ 2296 ecx = ebx; /* 0x3615B58D: mov ecx, ebx */ 2297 PUSH32(esp, eax); /* 0x3615B58F: push eax */ 2298 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615B590: call dword ptr [0x3616fa8c] */ 2299 RECOMP_FLAGS_IN(); 2300 ecx = MEM32(ebp + (-0x8)); /* 0x3615B596: mov ecx, dword ptr [ebp - 8] */ 2301 eax = 0x81E722C3u; /* 0x3615B599: mov eax, 0x81e722c3 */ 2302 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3615B59E: imul ecx */ 2303 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 2304 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 2305 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2306 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2307 edx = edx + ecx; /* 0x3615B5A0: add edx, ecx */ 2308 _flag_k = FK_ADD; 2309 MEM32(ebp + (-0xC)) = 0; /* 0x3615B5A2: mov dword ptr [ebp - 0xc], 0 */ 2310 if (9u) _cf = (((edx) >> 8) & 1u); /* 0x3615B5A9: sar edx, 9 */ 2311 if (9u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 9u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2312 edx = (uint32_t)((int32_t)edx >> 9u); 2313 ecx = edx; /* 0x3615B5AC: mov ecx, edx */ 2314 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3615B5AE: shr ecx, 0x1f */ 2315 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2316 ecx = ecx >> 31u; /* 0x3615B5AE: shr ecx, 0x1f */ 2317 eax = edx + ecx + (-0x1); /* 0x3615B5B1: lea eax, [edx + ecx - 1] */ 2318 /* test eax, eax */ /* 0x3615B5B5: test eax, eax */ 2319 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2320 _cf = 0; 2321 _flag_k = FK_TEST; 2322 MEM32(ebp + (-0x8)) = eax; /* 0x3615B5B7: mov dword ptr [ebp - 8], eax */ 2323 if (TEST_LE(_flag_a, _flag_b)) goto L_3615B77A; /* 0x3615B5BA: jle 0x3615b77a */ 2324 L_3615B5C0: 2325 PUSH32(esp, esi); /* 0x3615B5C0: push esi */ 2326 esi = MEM32(ebp + 0xC); /* 0x3615B5C1: mov esi, dword ptr [ebp + 0xc] */ 2327 PUSH32(esp, edi); /* 0x3615B5C4: push edi */ 2328 L_3615B5C5: 2329 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 2330 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 2331 RECOMP_FLAGS_IN(); 2332 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 2333 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 2334 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 2335 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 2336 RECOMP_FLAGS_IN(); 2337 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 2338 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 2339 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2340 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2341 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 2342 _flag_k = FK_CMP; 2343 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2344 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2345 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 2346 _flag_k = FK_ADD; 2347 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 2348 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2349 edx = (uint32_t)((int32_t)edx >> 2u); 2350 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 2351 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2352 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2353 _flag_k = FK_CMP; 2354 edi = eax; /* 0x3615B5E7: mov edi, eax */ 2355 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 2356 L_3615B5EF: 2357 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 2358 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 2359 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2360 _cf = 0; 2361 _flag_k = FK_TEST; 2362 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 2363 L_3615B5F6: 2364 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 2365 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2366 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2367 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 2368 _flag_k = FK_CMP; 2369 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 2370 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2371 ecx = (uint32_t)((int32_t)ecx >> 2u); 2372 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 2373 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2374 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2375 _flag_k = FK_CMP; 2376 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 2377 L_3615B602: 2378 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 2379 L_3615B607: 2380 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 2381 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2382 _cf = 0; 2383 _flag_k = FK_TEST; 2384 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 2385 L_3615B60B: 2386 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2387 eax = 0; /* 0x3615B60B: xor eax, eax */ 2388 _cf = 0; 2389 _flag_k = FK_TEST; 2390 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 2391 L_3615B60F: 2392 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2393 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2394 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 2395 _flag_k = FK_CMP; 2396 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 2397 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2398 eax = (uint32_t)((int32_t)eax >> 2u); 2399 L_3615B614: 2400 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2401 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2402 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 2403 _flag_k = FK_ADD; 2404 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 2405 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2406 _cf = 0; 2407 _flag_k = FK_TEST; 2408 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 2409 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 2410 L_3615B61D: 2411 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2412 eax = 0; /* 0x3615B61D: xor eax, eax */ 2413 _cf = 0; 2414 _flag_k = FK_TEST; 2415 L_3615B61F: 2416 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 2417 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2418 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 2419 PUSH32(esp, eax); /* 0x3615B622: push eax */ 2420 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 2421 RECOMP_FLAGS_IN(); 2422 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 2423 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 2424 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 2425 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2426 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2427 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 2428 _flag_k = FK_ADD; 2429 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 2430 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2431 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2432 _flag_k = FK_CMP; 2433 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 2434 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 2435 L_3615B63A: 2436 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 2437 L_3615B63C: 2438 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 2439 L_3615B63F: 2440 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 2441 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 2442 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 2443 RECOMP_FLAGS_IN(); 2444 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 2445 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2446 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2447 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 2448 _flag_k = FK_ADD; 2449 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2450 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2451 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 2452 _flag_k = FK_ADD; 2453 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2454 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2455 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 2456 _flag_k = FK_ADD; 2457 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 2458 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2459 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2460 _flag_k = FK_CMP; 2461 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 2462 RECOMP_BACKEDGE(); 2463 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 2464 L_3615B659: 2465 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 2466 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 2467 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 2468 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 2469 ecx = esi; /* 0x3615B660: mov ecx, esi */ 2470 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 2471 RECOMP_FLAGS_IN(); 2472 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 2473 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2474 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2475 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 2476 _flag_k = FK_ADD; 2477 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 2478 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 2479 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 2480 ecx = esi; /* 0x3615B670: mov ecx, esi */ 2481 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 2482 RECOMP_FLAGS_IN(); 2483 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 2484 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 2485 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 2486 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 2487 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 2488 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 2489 RECOMP_FLAGS_IN(); 2490 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 2491 PUSH32(esp, edx); /* 0x3615B689: push edx */ 2492 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 2493 RECOMP_FLAGS_IN(); 2494 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 2495 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 2496 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2497 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2498 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 2499 _flag_k = FK_ADD; 2500 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 2501 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 2502 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 2503 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2504 _cf = 0; 2505 _flag_k = FK_TEST; 2506 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 2507 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 2508 L_3615B6A5: 2509 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 2510 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2511 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 2512 _cf = 0; 2513 _flag_k = FK_TEST; 2514 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 2515 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 2516 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 2517 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 2518 L_3615B6B9: 2519 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 2520 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 2521 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2523 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 2524 _flag_k = FK_CMP; 2525 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 2526 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 2527 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2528 ecx = (uint32_t)((int32_t)ecx >> 2u); 2529 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 2530 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 2531 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 2532 L_3615B6D3: 2533 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 2534 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2535 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2536 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 2537 _flag_k = FK_CMP; 2538 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 2539 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2540 ecx = (uint32_t)((int32_t)ecx >> 2u); 2541 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 2542 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2543 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2544 _flag_k = FK_CMP; 2545 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 2546 L_3615B6DF: 2547 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 2548 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 2549 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 2550 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 2551 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 2552 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 2553 RECOMP_FLAGS_IN(); 2554 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 2555 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 2556 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 2557 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 2558 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2559 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2560 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 2561 _flag_k = FK_CMP; 2562 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 2563 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 2564 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2565 ecx = (uint32_t)((int32_t)ecx >> 2u); 2566 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2567 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2568 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 2569 _flag_k = FK_CMP; 2570 ecx = esi; /* 0x3615B701: mov ecx, esi */ 2571 PUSH32(esp, edx); /* 0x3615B703: push edx */ 2572 PUSH32(esp, eax); /* 0x3615B704: push eax */ 2573 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 2574 RECOMP_FLAGS_IN(); 2575 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 2576 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 2577 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2578 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2579 _flag_k = FK_CMP; 2580 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 2581 L_3615B711: 2582 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 2583 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 2584 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2586 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 2587 _flag_k = FK_ADD; 2588 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 2589 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2590 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2591 _flag_k = FK_CMP; 2592 RECOMP_BACKEDGE(); 2593 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 2594 L_3615B71D: 2595 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 2596 L_3615B71F: 2597 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 2598 PUSH32(esp, eax); /* 0x3615B722: push eax */ 2599 PUSH32(esp, eax); /* 0x3615B723: push eax */ 2600 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 2601 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 2602 ecx = esi; /* 0x3615B728: mov ecx, esi */ 2603 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 2604 RECOMP_FLAGS_IN(); 2605 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 2606 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 2607 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 2608 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2609 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2610 _flag_k = FK_CMP; 2611 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 2612 L_3615B739: 2613 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 2614 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2615 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2616 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 2617 _flag_k = FK_CMP; 2618 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2619 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2620 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 2621 _flag_k = FK_CMP; 2622 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 2623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2625 _flag_k = FK_CMP; 2626 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 2627 RECOMP_BACKEDGE(); 2628 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 2629 L_3615B748: 2630 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 2631 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 2632 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2633 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2634 _flag_k = FK_CMP; 2635 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 2636 L_3615B74F: 2637 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 2638 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 2639 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2640 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2641 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 2642 _flag_k = FK_ADD; 2643 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 2644 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2645 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2646 _flag_k = FK_CMP; 2647 RECOMP_BACKEDGE(); 2648 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 2649 L_3615B75B: 2650 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 2651 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2652 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 2653 _flag_k = FK_ADD; 2654 L_3615B75F: 2655 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 2656 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 2657 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 2658 eax = eax + 1; /* 0x3615B765: inc eax */ 2659 _flag_k = FK_INC; 2660 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 2661 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2662 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2663 _flag_k = FK_CMP; 2664 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 2665 RECOMP_BACKEDGE(); 2666 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 2667 L_3615B771: 2668 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 2669 eax = ebx; /* 0x3615B772: mov eax, ebx */ 2670 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 2671 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 2672 esp = ebp; /* 0x3615B776: mov esp, ebp */ 2673 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 2674 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 2675 L_3615B77A: 2676 eax = ebx; /* 0x3615B77A: mov eax, ebx */ 2677 ebx = POP32_VAL(esp); /* 0x3615B77C: pop ebx */ 2678 esp = ebp; /* 0x3615B77D: mov esp, ebp */ 2679 ebp = POP32_VAL(esp); /* 0x3615B77F: pop ebp */ 2680 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B780: ret */ 2681 RECOMP_REGS_OUT(); 2682 } 2683 2684 void sub_3615B5C5(void) { 2685 int _fpu_cmp = 0; 2686 uint32_t _cf = 0; 2687 int _df = 1; 2688 uint32_t _flag_k = FK_NONE; 2689 uint32_t _flag_a = 0, _flag_b = 0; 2690 uint32_t _itail_tgt = 0; 2691 RECOMP_REGS_LOCALS 2692 RECOMP_ENTER(0x3615B5C5u); 2693 2694 L_3615B5C5: 2695 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 2696 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 2697 RECOMP_FLAGS_IN(); 2698 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 2699 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 2700 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 2701 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 2702 RECOMP_FLAGS_IN(); 2703 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 2704 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 2705 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 2706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2707 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 2708 _flag_k = FK_CMP; 2709 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 2710 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2711 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 2712 _flag_k = FK_ADD; 2713 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 2714 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2715 edx = (uint32_t)((int32_t)edx >> 2u); 2716 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 2717 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 2718 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2719 _flag_k = FK_CMP; 2720 edi = eax; /* 0x3615B5E7: mov edi, eax */ 2721 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 2722 L_3615B5EF: 2723 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 2724 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 2725 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2726 _cf = 0; 2727 _flag_k = FK_TEST; 2728 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 2729 L_3615B5F6: 2730 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 2731 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 2732 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2733 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 2734 _flag_k = FK_CMP; 2735 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 2736 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2737 ecx = (uint32_t)((int32_t)ecx >> 2u); 2738 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 2739 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2740 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2741 _flag_k = FK_CMP; 2742 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 2743 L_3615B602: 2744 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 2745 L_3615B607: 2746 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 2747 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 2748 _cf = 0; 2749 _flag_k = FK_TEST; 2750 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 2751 L_3615B60B: 2752 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2753 eax = 0; /* 0x3615B60B: xor eax, eax */ 2754 _cf = 0; 2755 _flag_k = FK_TEST; 2756 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 2757 L_3615B60F: 2758 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 2759 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2760 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 2761 _flag_k = FK_CMP; 2762 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 2763 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2764 eax = (uint32_t)((int32_t)eax >> 2u); 2765 L_3615B614: 2766 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 2767 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2768 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 2769 _flag_k = FK_ADD; 2770 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 2771 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2772 _cf = 0; 2773 _flag_k = FK_TEST; 2774 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 2775 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 2776 L_3615B61D: 2777 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2778 eax = 0; /* 0x3615B61D: xor eax, eax */ 2779 _cf = 0; 2780 _flag_k = FK_TEST; 2781 L_3615B61F: 2782 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 2783 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2784 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 2785 PUSH32(esp, eax); /* 0x3615B622: push eax */ 2786 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 2787 RECOMP_FLAGS_IN(); 2788 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 2789 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 2790 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 2791 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2792 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2793 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 2794 _flag_k = FK_ADD; 2795 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 2796 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2797 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2798 _flag_k = FK_CMP; 2799 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 2800 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 2801 L_3615B63A: 2802 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 2803 L_3615B63C: 2804 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 2805 L_3615B63F: 2806 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 2807 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 2808 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 2809 RECOMP_FLAGS_IN(); 2810 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 2811 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 2812 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2813 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 2814 _flag_k = FK_ADD; 2815 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2816 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2817 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 2818 _flag_k = FK_ADD; 2819 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2820 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2821 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 2822 _flag_k = FK_ADD; 2823 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 2824 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2825 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2826 _flag_k = FK_CMP; 2827 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 2828 RECOMP_BACKEDGE(); 2829 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 2830 L_3615B659: 2831 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 2832 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 2833 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 2834 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 2835 ecx = esi; /* 0x3615B660: mov ecx, esi */ 2836 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 2837 RECOMP_FLAGS_IN(); 2838 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 2839 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 2840 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2841 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 2842 _flag_k = FK_ADD; 2843 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 2844 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 2845 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 2846 ecx = esi; /* 0x3615B670: mov ecx, esi */ 2847 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 2848 RECOMP_FLAGS_IN(); 2849 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 2850 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 2851 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 2852 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 2853 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 2854 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 2855 RECOMP_FLAGS_IN(); 2856 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 2857 PUSH32(esp, edx); /* 0x3615B689: push edx */ 2858 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 2859 RECOMP_FLAGS_IN(); 2860 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 2861 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 2862 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 2863 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2864 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 2865 _flag_k = FK_ADD; 2866 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 2867 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 2868 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 2869 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 2870 _cf = 0; 2871 _flag_k = FK_TEST; 2872 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 2873 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 2874 L_3615B6A5: 2875 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 2876 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 2877 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 2878 _cf = 0; 2879 _flag_k = FK_TEST; 2880 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 2881 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 2882 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 2883 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 2884 L_3615B6B9: 2885 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 2886 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 2887 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 2888 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2889 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 2890 _flag_k = FK_CMP; 2891 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 2892 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 2893 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2894 ecx = (uint32_t)((int32_t)ecx >> 2u); 2895 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 2896 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 2897 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 2898 L_3615B6D3: 2899 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 2900 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2901 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2902 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 2903 _flag_k = FK_CMP; 2904 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 2905 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2906 ecx = (uint32_t)((int32_t)ecx >> 2u); 2907 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 2908 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 2909 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2910 _flag_k = FK_CMP; 2911 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 2912 L_3615B6DF: 2913 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 2914 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 2915 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 2916 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 2917 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 2918 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 2919 RECOMP_FLAGS_IN(); 2920 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 2921 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 2922 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 2923 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 2924 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 2925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2926 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 2927 _flag_k = FK_CMP; 2928 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 2929 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 2930 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 2931 ecx = (uint32_t)((int32_t)ecx >> 2u); 2932 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 2933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2934 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 2935 _flag_k = FK_CMP; 2936 ecx = esi; /* 0x3615B701: mov ecx, esi */ 2937 PUSH32(esp, edx); /* 0x3615B703: push edx */ 2938 PUSH32(esp, eax); /* 0x3615B704: push eax */ 2939 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 2940 RECOMP_FLAGS_IN(); 2941 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 2942 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 2943 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2945 _flag_k = FK_CMP; 2946 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 2947 L_3615B711: 2948 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 2949 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 2950 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 2951 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 2952 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 2953 _flag_k = FK_ADD; 2954 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 2955 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2956 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2957 _flag_k = FK_CMP; 2958 RECOMP_BACKEDGE(); 2959 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 2960 L_3615B71D: 2961 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 2962 L_3615B71F: 2963 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 2964 PUSH32(esp, eax); /* 0x3615B722: push eax */ 2965 PUSH32(esp, eax); /* 0x3615B723: push eax */ 2966 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 2967 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 2968 ecx = esi; /* 0x3615B728: mov ecx, esi */ 2969 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 2970 RECOMP_FLAGS_IN(); 2971 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 2972 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 2973 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 2974 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2975 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2976 _flag_k = FK_CMP; 2977 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 2978 L_3615B739: 2979 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 2980 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 2981 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2982 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 2983 _flag_k = FK_CMP; 2984 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 2985 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2986 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 2987 _flag_k = FK_CMP; 2988 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 2989 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 2990 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 2991 _flag_k = FK_CMP; 2992 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 2993 RECOMP_BACKEDGE(); 2994 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 2995 L_3615B748: 2996 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 2997 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 2998 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 2999 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3000 _flag_k = FK_CMP; 3001 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 3002 L_3615B74F: 3003 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 3004 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 3005 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3007 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 3008 _flag_k = FK_ADD; 3009 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 3010 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3011 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3012 _flag_k = FK_CMP; 3013 RECOMP_BACKEDGE(); 3014 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 3015 L_3615B75B: 3016 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 3017 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3018 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 3019 _flag_k = FK_ADD; 3020 L_3615B75F: 3021 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 3022 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 3023 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3024 eax = eax + 1; /* 0x3615B765: inc eax */ 3025 _flag_k = FK_INC; 3026 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 3027 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3028 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3029 _flag_k = FK_CMP; 3030 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 3031 RECOMP_BACKEDGE(); 3032 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 3033 L_3615B771: 3034 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 3035 eax = ebx; /* 0x3615B772: mov eax, ebx */ 3036 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 3037 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 3038 esp = ebp; /* 0x3615B776: mov esp, ebp */ 3039 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 3040 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 3041 RECOMP_REGS_OUT(); 3042 } 3043 3044 void sub_3615B614(void) { 3045 int _fpu_cmp = 0; 3046 uint32_t _cf = 0; 3047 int _df = 1; 3048 uint32_t _flag_k = FK_NONE; 3049 uint32_t _flag_a = 0, _flag_b = 0; 3050 uint32_t _itail_tgt = 0; 3051 RECOMP_REGS_LOCALS 3052 RECOMP_ENTER(0x3615B614u); 3053 3054 goto L_3615B614; 3055 L_3615B5C5: 3056 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 3057 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 3058 RECOMP_FLAGS_IN(); 3059 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 3060 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 3061 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 3062 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 3063 RECOMP_FLAGS_IN(); 3064 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 3065 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 3066 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3068 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 3069 _flag_k = FK_CMP; 3070 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3071 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3072 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 3073 _flag_k = FK_ADD; 3074 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 3075 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3076 edx = (uint32_t)((int32_t)edx >> 2u); 3077 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 3078 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3079 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3080 _flag_k = FK_CMP; 3081 edi = eax; /* 0x3615B5E7: mov edi, eax */ 3082 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 3083 L_3615B5EF: 3084 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 3085 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 3086 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3087 _cf = 0; 3088 _flag_k = FK_TEST; 3089 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 3090 L_3615B5F6: 3091 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 3092 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3093 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3094 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 3095 _flag_k = FK_CMP; 3096 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 3097 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3098 ecx = (uint32_t)((int32_t)ecx >> 2u); 3099 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 3100 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3101 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3102 _flag_k = FK_CMP; 3103 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 3104 L_3615B602: 3105 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 3106 L_3615B607: 3107 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 3108 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3109 _cf = 0; 3110 _flag_k = FK_TEST; 3111 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 3112 L_3615B60B: 3113 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3114 eax = 0; /* 0x3615B60B: xor eax, eax */ 3115 _cf = 0; 3116 _flag_k = FK_TEST; 3117 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 3118 L_3615B60F: 3119 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3120 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3121 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 3122 _flag_k = FK_CMP; 3123 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 3124 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3125 eax = (uint32_t)((int32_t)eax >> 2u); 3126 L_3615B614: 3127 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3128 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3129 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 3130 _flag_k = FK_ADD; 3131 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 3132 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3133 _cf = 0; 3134 _flag_k = FK_TEST; 3135 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 3136 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 3137 L_3615B61D: 3138 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3139 eax = 0; /* 0x3615B61D: xor eax, eax */ 3140 _cf = 0; 3141 _flag_k = FK_TEST; 3142 L_3615B61F: 3143 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 3144 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3145 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 3146 PUSH32(esp, eax); /* 0x3615B622: push eax */ 3147 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 3148 RECOMP_FLAGS_IN(); 3149 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 3150 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 3151 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 3152 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3153 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3154 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 3155 _flag_k = FK_ADD; 3156 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 3157 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3158 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3159 _flag_k = FK_CMP; 3160 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 3161 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 3162 L_3615B63A: 3163 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 3164 L_3615B63C: 3165 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 3166 L_3615B63F: 3167 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 3168 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 3169 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 3170 RECOMP_FLAGS_IN(); 3171 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 3172 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3173 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3174 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 3175 _flag_k = FK_ADD; 3176 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3177 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3178 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 3179 _flag_k = FK_ADD; 3180 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3181 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3182 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 3183 _flag_k = FK_ADD; 3184 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 3185 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3186 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3187 _flag_k = FK_CMP; 3188 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 3189 RECOMP_BACKEDGE(); 3190 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 3191 L_3615B659: 3192 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 3193 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 3194 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 3195 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 3196 ecx = esi; /* 0x3615B660: mov ecx, esi */ 3197 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 3198 RECOMP_FLAGS_IN(); 3199 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 3200 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3201 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3202 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 3203 _flag_k = FK_ADD; 3204 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 3205 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 3206 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 3207 ecx = esi; /* 0x3615B670: mov ecx, esi */ 3208 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 3209 RECOMP_FLAGS_IN(); 3210 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 3211 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 3212 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 3213 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 3214 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 3215 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 3216 RECOMP_FLAGS_IN(); 3217 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 3218 PUSH32(esp, edx); /* 0x3615B689: push edx */ 3219 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 3220 RECOMP_FLAGS_IN(); 3221 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 3222 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 3223 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3224 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3225 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 3226 _flag_k = FK_ADD; 3227 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 3228 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 3229 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 3230 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3231 _cf = 0; 3232 _flag_k = FK_TEST; 3233 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 3234 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 3235 L_3615B6A5: 3236 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 3237 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3238 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 3239 _cf = 0; 3240 _flag_k = FK_TEST; 3241 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 3242 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 3243 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 3244 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 3245 L_3615B6B9: 3246 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 3247 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 3248 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3249 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3250 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 3251 _flag_k = FK_CMP; 3252 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 3253 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 3254 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3255 ecx = (uint32_t)((int32_t)ecx >> 2u); 3256 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 3257 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 3258 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 3259 L_3615B6D3: 3260 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 3261 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3262 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3263 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 3264 _flag_k = FK_CMP; 3265 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 3266 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3267 ecx = (uint32_t)((int32_t)ecx >> 2u); 3268 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 3269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3270 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3271 _flag_k = FK_CMP; 3272 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 3273 L_3615B6DF: 3274 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 3275 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 3276 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 3277 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 3278 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 3279 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 3280 RECOMP_FLAGS_IN(); 3281 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 3282 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 3283 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 3284 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 3285 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3286 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3287 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 3288 _flag_k = FK_CMP; 3289 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 3290 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 3291 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3292 ecx = (uint32_t)((int32_t)ecx >> 2u); 3293 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3294 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3295 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 3296 _flag_k = FK_CMP; 3297 ecx = esi; /* 0x3615B701: mov ecx, esi */ 3298 PUSH32(esp, edx); /* 0x3615B703: push edx */ 3299 PUSH32(esp, eax); /* 0x3615B704: push eax */ 3300 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 3301 RECOMP_FLAGS_IN(); 3302 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 3303 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 3304 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3305 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3306 _flag_k = FK_CMP; 3307 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 3308 L_3615B711: 3309 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 3310 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 3311 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3312 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3313 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 3314 _flag_k = FK_ADD; 3315 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 3316 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3317 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3318 _flag_k = FK_CMP; 3319 RECOMP_BACKEDGE(); 3320 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 3321 L_3615B71D: 3322 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 3323 L_3615B71F: 3324 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 3325 PUSH32(esp, eax); /* 0x3615B722: push eax */ 3326 PUSH32(esp, eax); /* 0x3615B723: push eax */ 3327 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 3328 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 3329 ecx = esi; /* 0x3615B728: mov ecx, esi */ 3330 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 3331 RECOMP_FLAGS_IN(); 3332 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 3333 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 3334 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 3335 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3336 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3337 _flag_k = FK_CMP; 3338 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 3339 L_3615B739: 3340 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 3341 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3343 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 3344 _flag_k = FK_CMP; 3345 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3346 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3347 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 3348 _flag_k = FK_CMP; 3349 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 3350 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3351 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3352 _flag_k = FK_CMP; 3353 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 3354 RECOMP_BACKEDGE(); 3355 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 3356 L_3615B748: 3357 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 3358 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 3359 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3360 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3361 _flag_k = FK_CMP; 3362 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 3363 L_3615B74F: 3364 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 3365 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 3366 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3367 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3368 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 3369 _flag_k = FK_ADD; 3370 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 3371 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3372 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3373 _flag_k = FK_CMP; 3374 RECOMP_BACKEDGE(); 3375 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 3376 L_3615B75B: 3377 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 3378 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3379 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 3380 _flag_k = FK_ADD; 3381 L_3615B75F: 3382 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 3383 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 3384 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3385 eax = eax + 1; /* 0x3615B765: inc eax */ 3386 _flag_k = FK_INC; 3387 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 3388 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3389 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3390 _flag_k = FK_CMP; 3391 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 3392 RECOMP_BACKEDGE(); 3393 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 3394 L_3615B771: 3395 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 3396 eax = ebx; /* 0x3615B772: mov eax, ebx */ 3397 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 3398 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 3399 esp = ebp; /* 0x3615B776: mov esp, ebp */ 3400 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 3401 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 3402 RECOMP_REGS_OUT(); 3403 } 3404 3405 void sub_3615B63C(void) { 3406 int _fpu_cmp = 0; 3407 uint32_t _cf = 0; 3408 int _df = 1; 3409 uint32_t _flag_k = FK_NONE; 3410 uint32_t _flag_a = 0, _flag_b = 0; 3411 uint32_t _itail_tgt = 0; 3412 RECOMP_REGS_LOCALS 3413 RECOMP_ENTER(0x3615B63Cu); 3414 3415 goto L_3615B63C; 3416 L_3615B5C5: 3417 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 3418 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 3419 RECOMP_FLAGS_IN(); 3420 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 3421 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 3422 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 3423 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 3424 RECOMP_FLAGS_IN(); 3425 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 3426 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 3427 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3428 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3429 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 3430 _flag_k = FK_CMP; 3431 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3432 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3433 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 3434 _flag_k = FK_ADD; 3435 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 3436 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3437 edx = (uint32_t)((int32_t)edx >> 2u); 3438 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 3439 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3440 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3441 _flag_k = FK_CMP; 3442 edi = eax; /* 0x3615B5E7: mov edi, eax */ 3443 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 3444 L_3615B5EF: 3445 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 3446 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 3447 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3448 _cf = 0; 3449 _flag_k = FK_TEST; 3450 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 3451 L_3615B5F6: 3452 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 3453 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3454 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3455 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 3456 _flag_k = FK_CMP; 3457 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 3458 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3459 ecx = (uint32_t)((int32_t)ecx >> 2u); 3460 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 3461 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3462 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3463 _flag_k = FK_CMP; 3464 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 3465 L_3615B602: 3466 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 3467 L_3615B607: 3468 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 3469 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3470 _cf = 0; 3471 _flag_k = FK_TEST; 3472 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 3473 L_3615B60B: 3474 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3475 eax = 0; /* 0x3615B60B: xor eax, eax */ 3476 _cf = 0; 3477 _flag_k = FK_TEST; 3478 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 3479 L_3615B60F: 3480 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3481 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3482 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 3483 _flag_k = FK_CMP; 3484 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 3485 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3486 eax = (uint32_t)((int32_t)eax >> 2u); 3487 L_3615B614: 3488 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3489 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3490 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 3491 _flag_k = FK_ADD; 3492 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 3493 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3494 _cf = 0; 3495 _flag_k = FK_TEST; 3496 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 3497 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 3498 L_3615B61D: 3499 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3500 eax = 0; /* 0x3615B61D: xor eax, eax */ 3501 _cf = 0; 3502 _flag_k = FK_TEST; 3503 L_3615B61F: 3504 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 3505 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3506 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 3507 PUSH32(esp, eax); /* 0x3615B622: push eax */ 3508 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 3509 RECOMP_FLAGS_IN(); 3510 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 3511 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 3512 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 3513 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3514 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3515 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 3516 _flag_k = FK_ADD; 3517 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 3518 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3519 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3520 _flag_k = FK_CMP; 3521 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 3522 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 3523 L_3615B63A: 3524 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 3525 L_3615B63C: 3526 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 3527 L_3615B63F: 3528 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 3529 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 3530 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 3531 RECOMP_FLAGS_IN(); 3532 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 3533 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3534 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3535 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 3536 _flag_k = FK_ADD; 3537 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3538 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3539 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 3540 _flag_k = FK_ADD; 3541 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3542 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3543 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 3544 _flag_k = FK_ADD; 3545 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 3546 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3547 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3548 _flag_k = FK_CMP; 3549 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 3550 RECOMP_BACKEDGE(); 3551 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 3552 L_3615B659: 3553 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 3554 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 3555 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 3556 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 3557 ecx = esi; /* 0x3615B660: mov ecx, esi */ 3558 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 3559 RECOMP_FLAGS_IN(); 3560 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 3561 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3562 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3563 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 3564 _flag_k = FK_ADD; 3565 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 3566 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 3567 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 3568 ecx = esi; /* 0x3615B670: mov ecx, esi */ 3569 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 3570 RECOMP_FLAGS_IN(); 3571 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 3572 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 3573 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 3574 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 3575 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 3576 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 3577 RECOMP_FLAGS_IN(); 3578 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 3579 PUSH32(esp, edx); /* 0x3615B689: push edx */ 3580 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 3581 RECOMP_FLAGS_IN(); 3582 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 3583 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 3584 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3585 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3586 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 3587 _flag_k = FK_ADD; 3588 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 3589 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 3590 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 3591 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3592 _cf = 0; 3593 _flag_k = FK_TEST; 3594 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 3595 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 3596 L_3615B6A5: 3597 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 3598 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3599 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 3600 _cf = 0; 3601 _flag_k = FK_TEST; 3602 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 3603 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 3604 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 3605 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 3606 L_3615B6B9: 3607 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 3608 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 3609 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3610 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3611 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 3612 _flag_k = FK_CMP; 3613 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 3614 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 3615 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3616 ecx = (uint32_t)((int32_t)ecx >> 2u); 3617 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 3618 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 3619 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 3620 L_3615B6D3: 3621 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 3622 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3623 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3624 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 3625 _flag_k = FK_CMP; 3626 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 3627 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3628 ecx = (uint32_t)((int32_t)ecx >> 2u); 3629 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 3630 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3631 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3632 _flag_k = FK_CMP; 3633 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 3634 L_3615B6DF: 3635 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 3636 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 3637 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 3638 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 3639 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 3640 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 3641 RECOMP_FLAGS_IN(); 3642 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 3643 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 3644 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 3645 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 3646 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3647 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3648 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 3649 _flag_k = FK_CMP; 3650 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 3651 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 3652 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3653 ecx = (uint32_t)((int32_t)ecx >> 2u); 3654 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 3655 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3656 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 3657 _flag_k = FK_CMP; 3658 ecx = esi; /* 0x3615B701: mov ecx, esi */ 3659 PUSH32(esp, edx); /* 0x3615B703: push edx */ 3660 PUSH32(esp, eax); /* 0x3615B704: push eax */ 3661 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 3662 RECOMP_FLAGS_IN(); 3663 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 3664 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 3665 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3666 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3667 _flag_k = FK_CMP; 3668 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 3669 L_3615B711: 3670 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 3671 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 3672 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3673 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3674 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 3675 _flag_k = FK_ADD; 3676 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 3677 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3678 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3679 _flag_k = FK_CMP; 3680 RECOMP_BACKEDGE(); 3681 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 3682 L_3615B71D: 3683 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 3684 L_3615B71F: 3685 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 3686 PUSH32(esp, eax); /* 0x3615B722: push eax */ 3687 PUSH32(esp, eax); /* 0x3615B723: push eax */ 3688 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 3689 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 3690 ecx = esi; /* 0x3615B728: mov ecx, esi */ 3691 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 3692 RECOMP_FLAGS_IN(); 3693 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 3694 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 3695 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 3696 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3697 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3698 _flag_k = FK_CMP; 3699 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 3700 L_3615B739: 3701 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 3702 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3703 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3704 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 3705 _flag_k = FK_CMP; 3706 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 3707 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3708 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 3709 _flag_k = FK_CMP; 3710 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 3711 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3712 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3713 _flag_k = FK_CMP; 3714 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 3715 RECOMP_BACKEDGE(); 3716 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 3717 L_3615B748: 3718 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 3719 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 3720 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3722 _flag_k = FK_CMP; 3723 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 3724 L_3615B74F: 3725 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 3726 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 3727 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 3728 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3729 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 3730 _flag_k = FK_ADD; 3731 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 3732 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 3733 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3734 _flag_k = FK_CMP; 3735 RECOMP_BACKEDGE(); 3736 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 3737 L_3615B75B: 3738 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 3739 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3740 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 3741 _flag_k = FK_ADD; 3742 L_3615B75F: 3743 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 3744 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 3745 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 3746 eax = eax + 1; /* 0x3615B765: inc eax */ 3747 _flag_k = FK_INC; 3748 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 3749 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3750 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3751 _flag_k = FK_CMP; 3752 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 3753 RECOMP_BACKEDGE(); 3754 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 3755 L_3615B771: 3756 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 3757 eax = ebx; /* 0x3615B772: mov eax, ebx */ 3758 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 3759 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 3760 esp = ebp; /* 0x3615B776: mov esp, ebp */ 3761 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 3762 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 3763 RECOMP_REGS_OUT(); 3764 } 3765 3766 void sub_3615B63F(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(0x3615B63Fu); 3775 3776 goto L_3615B63F; 3777 L_3615B5C5: 3778 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 3779 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 3780 RECOMP_FLAGS_IN(); 3781 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 3782 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 3783 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 3784 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 3785 RECOMP_FLAGS_IN(); 3786 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 3787 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 3788 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 3789 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3790 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 3791 _flag_k = FK_CMP; 3792 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 3793 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3794 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 3795 _flag_k = FK_ADD; 3796 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 3797 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3798 edx = (uint32_t)((int32_t)edx >> 2u); 3799 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 3800 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 3801 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3802 _flag_k = FK_CMP; 3803 edi = eax; /* 0x3615B5E7: mov edi, eax */ 3804 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 3805 L_3615B5EF: 3806 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 3807 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 3808 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3809 _cf = 0; 3810 _flag_k = FK_TEST; 3811 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 3812 L_3615B5F6: 3813 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 3814 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 3815 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3816 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 3817 _flag_k = FK_CMP; 3818 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 3819 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3820 ecx = (uint32_t)((int32_t)ecx >> 2u); 3821 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 3822 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3824 _flag_k = FK_CMP; 3825 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 3826 L_3615B602: 3827 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 3828 L_3615B607: 3829 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 3830 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 3831 _cf = 0; 3832 _flag_k = FK_TEST; 3833 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 3834 L_3615B60B: 3835 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3836 eax = 0; /* 0x3615B60B: xor eax, eax */ 3837 _cf = 0; 3838 _flag_k = FK_TEST; 3839 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 3840 L_3615B60F: 3841 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 3842 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3843 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 3844 _flag_k = FK_CMP; 3845 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 3846 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3847 eax = (uint32_t)((int32_t)eax >> 2u); 3848 L_3615B614: 3849 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 3850 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3851 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 3852 _flag_k = FK_ADD; 3853 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 3854 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3855 _cf = 0; 3856 _flag_k = FK_TEST; 3857 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 3858 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 3859 L_3615B61D: 3860 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3861 eax = 0; /* 0x3615B61D: xor eax, eax */ 3862 _cf = 0; 3863 _flag_k = FK_TEST; 3864 L_3615B61F: 3865 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 3866 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3867 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 3868 PUSH32(esp, eax); /* 0x3615B622: push eax */ 3869 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 3870 RECOMP_FLAGS_IN(); 3871 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 3872 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 3873 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 3874 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3875 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3876 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 3877 _flag_k = FK_ADD; 3878 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 3879 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3880 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3881 _flag_k = FK_CMP; 3882 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 3883 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 3884 L_3615B63A: 3885 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 3886 L_3615B63C: 3887 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 3888 L_3615B63F: 3889 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 3890 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 3891 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 3892 RECOMP_FLAGS_IN(); 3893 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 3894 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 3895 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3896 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 3897 _flag_k = FK_ADD; 3898 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 3899 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3900 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 3901 _flag_k = FK_ADD; 3902 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3904 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 3905 _flag_k = FK_ADD; 3906 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 3907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 3908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3909 _flag_k = FK_CMP; 3910 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 3911 RECOMP_BACKEDGE(); 3912 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 3913 L_3615B659: 3914 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 3915 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 3916 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 3917 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 3918 ecx = esi; /* 0x3615B660: mov ecx, esi */ 3919 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 3920 RECOMP_FLAGS_IN(); 3921 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 3922 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 3923 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3924 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 3925 _flag_k = FK_ADD; 3926 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 3927 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 3928 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 3929 ecx = esi; /* 0x3615B670: mov ecx, esi */ 3930 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 3931 RECOMP_FLAGS_IN(); 3932 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 3933 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 3934 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 3935 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 3936 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 3937 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 3938 RECOMP_FLAGS_IN(); 3939 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 3940 PUSH32(esp, edx); /* 0x3615B689: push edx */ 3941 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 3942 RECOMP_FLAGS_IN(); 3943 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 3944 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 3945 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 3946 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 3947 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 3948 _flag_k = FK_ADD; 3949 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 3950 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 3951 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 3952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 3953 _cf = 0; 3954 _flag_k = FK_TEST; 3955 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 3956 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 3957 L_3615B6A5: 3958 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 3959 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 3960 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 3961 _cf = 0; 3962 _flag_k = FK_TEST; 3963 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 3964 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 3965 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 3966 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 3967 L_3615B6B9: 3968 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 3969 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 3970 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 3971 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3972 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 3973 _flag_k = FK_CMP; 3974 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 3975 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 3976 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3977 ecx = (uint32_t)((int32_t)ecx >> 2u); 3978 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 3979 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 3980 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 3981 L_3615B6D3: 3982 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 3983 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 3984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3985 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 3986 _flag_k = FK_CMP; 3987 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 3988 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 3989 ecx = (uint32_t)((int32_t)ecx >> 2u); 3990 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 3991 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 3992 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 3993 _flag_k = FK_CMP; 3994 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 3995 L_3615B6DF: 3996 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 3997 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 3998 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 3999 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 4000 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 4001 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 4002 RECOMP_FLAGS_IN(); 4003 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 4004 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 4005 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 4006 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 4007 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4008 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4009 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 4010 _flag_k = FK_CMP; 4011 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 4012 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 4013 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4014 ecx = (uint32_t)((int32_t)ecx >> 2u); 4015 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4016 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4017 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 4018 _flag_k = FK_CMP; 4019 ecx = esi; /* 0x3615B701: mov ecx, esi */ 4020 PUSH32(esp, edx); /* 0x3615B703: push edx */ 4021 PUSH32(esp, eax); /* 0x3615B704: push eax */ 4022 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 4023 RECOMP_FLAGS_IN(); 4024 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 4025 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 4026 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4027 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4028 _flag_k = FK_CMP; 4029 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 4030 L_3615B711: 4031 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 4032 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 4033 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4034 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4035 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 4036 _flag_k = FK_ADD; 4037 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 4038 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4039 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4040 _flag_k = FK_CMP; 4041 RECOMP_BACKEDGE(); 4042 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 4043 L_3615B71D: 4044 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 4045 L_3615B71F: 4046 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 4047 PUSH32(esp, eax); /* 0x3615B722: push eax */ 4048 PUSH32(esp, eax); /* 0x3615B723: push eax */ 4049 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 4050 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 4051 ecx = esi; /* 0x3615B728: mov ecx, esi */ 4052 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 4053 RECOMP_FLAGS_IN(); 4054 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 4055 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 4056 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 4057 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4058 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4059 _flag_k = FK_CMP; 4060 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 4061 L_3615B739: 4062 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 4063 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4064 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4065 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 4066 _flag_k = FK_CMP; 4067 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4068 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4069 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 4070 _flag_k = FK_CMP; 4071 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 4072 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4073 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4074 _flag_k = FK_CMP; 4075 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 4076 RECOMP_BACKEDGE(); 4077 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 4078 L_3615B748: 4079 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 4080 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 4081 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4082 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4083 _flag_k = FK_CMP; 4084 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 4085 L_3615B74F: 4086 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 4087 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 4088 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4089 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4090 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 4091 _flag_k = FK_ADD; 4092 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 4093 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4094 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4095 _flag_k = FK_CMP; 4096 RECOMP_BACKEDGE(); 4097 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 4098 L_3615B75B: 4099 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 4100 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4101 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 4102 _flag_k = FK_ADD; 4103 L_3615B75F: 4104 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 4105 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 4106 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4107 eax = eax + 1; /* 0x3615B765: inc eax */ 4108 _flag_k = FK_INC; 4109 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 4110 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4111 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4112 _flag_k = FK_CMP; 4113 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 4114 RECOMP_BACKEDGE(); 4115 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 4116 L_3615B771: 4117 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 4118 eax = ebx; /* 0x3615B772: mov eax, ebx */ 4119 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 4120 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 4121 esp = ebp; /* 0x3615B776: mov esp, ebp */ 4122 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 4123 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 4124 RECOMP_REGS_OUT(); 4125 } 4126 4127 void sub_3615B6D3(void) { 4128 int _fpu_cmp = 0; 4129 uint32_t _cf = 0; 4130 int _df = 1; 4131 uint32_t _flag_k = FK_NONE; 4132 uint32_t _flag_a = 0, _flag_b = 0; 4133 uint32_t _itail_tgt = 0; 4134 RECOMP_REGS_LOCALS 4135 RECOMP_ENTER(0x3615B6D3u); 4136 4137 goto L_3615B6D3; 4138 L_3615B5C5: 4139 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 4140 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 4141 RECOMP_FLAGS_IN(); 4142 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 4143 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 4144 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 4145 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 4146 RECOMP_FLAGS_IN(); 4147 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 4148 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 4149 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4150 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4151 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 4152 _flag_k = FK_CMP; 4153 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4154 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4155 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 4156 _flag_k = FK_ADD; 4157 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 4158 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4159 edx = (uint32_t)((int32_t)edx >> 2u); 4160 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 4161 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4162 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4163 _flag_k = FK_CMP; 4164 edi = eax; /* 0x3615B5E7: mov edi, eax */ 4165 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 4166 L_3615B5EF: 4167 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 4168 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 4169 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4170 _cf = 0; 4171 _flag_k = FK_TEST; 4172 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 4173 L_3615B5F6: 4174 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 4175 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4176 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4177 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 4178 _flag_k = FK_CMP; 4179 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 4180 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4181 ecx = (uint32_t)((int32_t)ecx >> 2u); 4182 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 4183 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4184 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4185 _flag_k = FK_CMP; 4186 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 4187 L_3615B602: 4188 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 4189 L_3615B607: 4190 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 4191 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4192 _cf = 0; 4193 _flag_k = FK_TEST; 4194 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 4195 L_3615B60B: 4196 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4197 eax = 0; /* 0x3615B60B: xor eax, eax */ 4198 _cf = 0; 4199 _flag_k = FK_TEST; 4200 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 4201 L_3615B60F: 4202 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4203 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4204 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 4205 _flag_k = FK_CMP; 4206 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 4207 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4208 eax = (uint32_t)((int32_t)eax >> 2u); 4209 L_3615B614: 4210 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4211 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4212 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 4213 _flag_k = FK_ADD; 4214 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 4215 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4216 _cf = 0; 4217 _flag_k = FK_TEST; 4218 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 4219 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 4220 L_3615B61D: 4221 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4222 eax = 0; /* 0x3615B61D: xor eax, eax */ 4223 _cf = 0; 4224 _flag_k = FK_TEST; 4225 L_3615B61F: 4226 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 4227 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4228 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 4229 PUSH32(esp, eax); /* 0x3615B622: push eax */ 4230 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 4231 RECOMP_FLAGS_IN(); 4232 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 4233 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 4234 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 4235 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4236 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4237 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 4238 _flag_k = FK_ADD; 4239 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 4240 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4241 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4242 _flag_k = FK_CMP; 4243 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 4244 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 4245 L_3615B63A: 4246 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 4247 L_3615B63C: 4248 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 4249 L_3615B63F: 4250 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 4251 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 4252 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 4253 RECOMP_FLAGS_IN(); 4254 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 4255 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4256 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4257 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 4258 _flag_k = FK_ADD; 4259 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4260 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4261 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 4262 _flag_k = FK_ADD; 4263 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4264 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4265 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 4266 _flag_k = FK_ADD; 4267 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 4268 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4269 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4270 _flag_k = FK_CMP; 4271 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 4272 RECOMP_BACKEDGE(); 4273 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 4274 L_3615B659: 4275 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 4276 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 4277 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 4278 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 4279 ecx = esi; /* 0x3615B660: mov ecx, esi */ 4280 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 4281 RECOMP_FLAGS_IN(); 4282 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 4283 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4284 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4285 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 4286 _flag_k = FK_ADD; 4287 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 4288 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 4289 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 4290 ecx = esi; /* 0x3615B670: mov ecx, esi */ 4291 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 4292 RECOMP_FLAGS_IN(); 4293 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 4294 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 4295 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 4296 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 4297 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 4298 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 4299 RECOMP_FLAGS_IN(); 4300 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 4301 PUSH32(esp, edx); /* 0x3615B689: push edx */ 4302 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 4303 RECOMP_FLAGS_IN(); 4304 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 4305 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 4306 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4307 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4308 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 4309 _flag_k = FK_ADD; 4310 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 4311 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 4312 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 4313 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4314 _cf = 0; 4315 _flag_k = FK_TEST; 4316 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 4317 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 4318 L_3615B6A5: 4319 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 4320 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4321 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 4322 _cf = 0; 4323 _flag_k = FK_TEST; 4324 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 4325 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 4326 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 4327 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 4328 L_3615B6B9: 4329 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 4330 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 4331 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4332 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4333 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 4334 _flag_k = FK_CMP; 4335 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 4336 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 4337 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4338 ecx = (uint32_t)((int32_t)ecx >> 2u); 4339 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 4340 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 4341 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 4342 L_3615B6D3: 4343 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 4344 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4346 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 4347 _flag_k = FK_CMP; 4348 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 4349 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4350 ecx = (uint32_t)((int32_t)ecx >> 2u); 4351 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 4352 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4353 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4354 _flag_k = FK_CMP; 4355 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 4356 L_3615B6DF: 4357 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 4358 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 4359 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 4360 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 4361 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 4362 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 4363 RECOMP_FLAGS_IN(); 4364 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 4365 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 4366 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 4367 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 4368 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4369 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4370 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 4371 _flag_k = FK_CMP; 4372 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 4373 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 4374 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4375 ecx = (uint32_t)((int32_t)ecx >> 2u); 4376 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4377 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4378 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 4379 _flag_k = FK_CMP; 4380 ecx = esi; /* 0x3615B701: mov ecx, esi */ 4381 PUSH32(esp, edx); /* 0x3615B703: push edx */ 4382 PUSH32(esp, eax); /* 0x3615B704: push eax */ 4383 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 4384 RECOMP_FLAGS_IN(); 4385 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 4386 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 4387 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4388 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4389 _flag_k = FK_CMP; 4390 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 4391 L_3615B711: 4392 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 4393 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 4394 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4395 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4396 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 4397 _flag_k = FK_ADD; 4398 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 4399 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4400 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4401 _flag_k = FK_CMP; 4402 RECOMP_BACKEDGE(); 4403 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 4404 L_3615B71D: 4405 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 4406 L_3615B71F: 4407 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 4408 PUSH32(esp, eax); /* 0x3615B722: push eax */ 4409 PUSH32(esp, eax); /* 0x3615B723: push eax */ 4410 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 4411 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 4412 ecx = esi; /* 0x3615B728: mov ecx, esi */ 4413 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 4414 RECOMP_FLAGS_IN(); 4415 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 4416 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 4417 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 4418 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4419 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4420 _flag_k = FK_CMP; 4421 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 4422 L_3615B739: 4423 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 4424 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4425 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4426 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 4427 _flag_k = FK_CMP; 4428 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4429 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4430 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 4431 _flag_k = FK_CMP; 4432 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 4433 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4434 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4435 _flag_k = FK_CMP; 4436 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 4437 RECOMP_BACKEDGE(); 4438 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 4439 L_3615B748: 4440 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 4441 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 4442 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4443 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4444 _flag_k = FK_CMP; 4445 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 4446 L_3615B74F: 4447 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 4448 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 4449 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4450 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4451 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 4452 _flag_k = FK_ADD; 4453 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 4454 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4455 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4456 _flag_k = FK_CMP; 4457 RECOMP_BACKEDGE(); 4458 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 4459 L_3615B75B: 4460 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 4461 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4462 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 4463 _flag_k = FK_ADD; 4464 L_3615B75F: 4465 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 4466 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 4467 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4468 eax = eax + 1; /* 0x3615B765: inc eax */ 4469 _flag_k = FK_INC; 4470 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 4471 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4472 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4473 _flag_k = FK_CMP; 4474 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 4475 RECOMP_BACKEDGE(); 4476 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 4477 L_3615B771: 4478 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 4479 eax = ebx; /* 0x3615B772: mov eax, ebx */ 4480 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 4481 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 4482 esp = ebp; /* 0x3615B776: mov esp, ebp */ 4483 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 4484 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 4485 RECOMP_REGS_OUT(); 4486 } 4487 4488 void sub_3615B75B(void) { 4489 int _fpu_cmp = 0; 4490 uint32_t _cf = 0; 4491 int _df = 1; 4492 uint32_t _flag_k = FK_NONE; 4493 uint32_t _flag_a = 0, _flag_b = 0; 4494 uint32_t _itail_tgt = 0; 4495 RECOMP_REGS_LOCALS 4496 RECOMP_ENTER(0x3615B75Bu); 4497 4498 goto L_3615B75B; 4499 L_3615B5C5: 4500 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 4501 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 4502 RECOMP_FLAGS_IN(); 4503 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 4504 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 4505 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 4506 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 4507 RECOMP_FLAGS_IN(); 4508 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 4509 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 4510 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4511 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4512 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 4513 _flag_k = FK_CMP; 4514 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4515 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4516 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 4517 _flag_k = FK_ADD; 4518 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 4519 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4520 edx = (uint32_t)((int32_t)edx >> 2u); 4521 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 4522 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4523 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4524 _flag_k = FK_CMP; 4525 edi = eax; /* 0x3615B5E7: mov edi, eax */ 4526 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 4527 L_3615B5EF: 4528 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 4529 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 4530 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4531 _cf = 0; 4532 _flag_k = FK_TEST; 4533 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 4534 L_3615B5F6: 4535 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 4536 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4538 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 4539 _flag_k = FK_CMP; 4540 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 4541 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4542 ecx = (uint32_t)((int32_t)ecx >> 2u); 4543 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 4544 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4545 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4546 _flag_k = FK_CMP; 4547 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 4548 L_3615B602: 4549 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 4550 L_3615B607: 4551 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 4552 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4553 _cf = 0; 4554 _flag_k = FK_TEST; 4555 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 4556 L_3615B60B: 4557 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4558 eax = 0; /* 0x3615B60B: xor eax, eax */ 4559 _cf = 0; 4560 _flag_k = FK_TEST; 4561 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 4562 L_3615B60F: 4563 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4564 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4565 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 4566 _flag_k = FK_CMP; 4567 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 4568 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4569 eax = (uint32_t)((int32_t)eax >> 2u); 4570 L_3615B614: 4571 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4572 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4573 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 4574 _flag_k = FK_ADD; 4575 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 4576 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4577 _cf = 0; 4578 _flag_k = FK_TEST; 4579 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 4580 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 4581 L_3615B61D: 4582 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4583 eax = 0; /* 0x3615B61D: xor eax, eax */ 4584 _cf = 0; 4585 _flag_k = FK_TEST; 4586 L_3615B61F: 4587 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 4588 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4589 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 4590 PUSH32(esp, eax); /* 0x3615B622: push eax */ 4591 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 4592 RECOMP_FLAGS_IN(); 4593 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 4594 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 4595 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 4596 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4597 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4598 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 4599 _flag_k = FK_ADD; 4600 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 4601 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4602 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4603 _flag_k = FK_CMP; 4604 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 4605 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 4606 L_3615B63A: 4607 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 4608 L_3615B63C: 4609 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 4610 L_3615B63F: 4611 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 4612 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 4613 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 4614 RECOMP_FLAGS_IN(); 4615 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 4616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4617 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4618 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 4619 _flag_k = FK_ADD; 4620 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4621 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4622 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 4623 _flag_k = FK_ADD; 4624 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4625 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4626 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 4627 _flag_k = FK_ADD; 4628 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 4629 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4630 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4631 _flag_k = FK_CMP; 4632 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 4633 RECOMP_BACKEDGE(); 4634 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 4635 L_3615B659: 4636 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 4637 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 4638 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 4639 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 4640 ecx = esi; /* 0x3615B660: mov ecx, esi */ 4641 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 4642 RECOMP_FLAGS_IN(); 4643 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 4644 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4645 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4646 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 4647 _flag_k = FK_ADD; 4648 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 4649 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 4650 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 4651 ecx = esi; /* 0x3615B670: mov ecx, esi */ 4652 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 4653 RECOMP_FLAGS_IN(); 4654 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 4655 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 4656 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 4657 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 4658 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 4659 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 4660 RECOMP_FLAGS_IN(); 4661 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 4662 PUSH32(esp, edx); /* 0x3615B689: push edx */ 4663 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 4664 RECOMP_FLAGS_IN(); 4665 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 4666 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 4667 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4668 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4669 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 4670 _flag_k = FK_ADD; 4671 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 4672 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 4673 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 4674 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4675 _cf = 0; 4676 _flag_k = FK_TEST; 4677 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 4678 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 4679 L_3615B6A5: 4680 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 4681 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4682 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 4683 _cf = 0; 4684 _flag_k = FK_TEST; 4685 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 4686 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 4687 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 4688 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 4689 L_3615B6B9: 4690 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 4691 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 4692 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 4693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4694 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 4695 _flag_k = FK_CMP; 4696 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 4697 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 4698 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4699 ecx = (uint32_t)((int32_t)ecx >> 2u); 4700 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 4701 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 4702 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 4703 L_3615B6D3: 4704 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 4705 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4706 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4707 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 4708 _flag_k = FK_CMP; 4709 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 4710 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4711 ecx = (uint32_t)((int32_t)ecx >> 2u); 4712 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 4713 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4714 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4715 _flag_k = FK_CMP; 4716 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 4717 L_3615B6DF: 4718 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 4719 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 4720 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 4721 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 4722 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 4723 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 4724 RECOMP_FLAGS_IN(); 4725 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 4726 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 4727 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 4728 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 4729 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 4730 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4731 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 4732 _flag_k = FK_CMP; 4733 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 4734 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 4735 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4736 ecx = (uint32_t)((int32_t)ecx >> 2u); 4737 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 4738 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4739 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 4740 _flag_k = FK_CMP; 4741 ecx = esi; /* 0x3615B701: mov ecx, esi */ 4742 PUSH32(esp, edx); /* 0x3615B703: push edx */ 4743 PUSH32(esp, eax); /* 0x3615B704: push eax */ 4744 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 4745 RECOMP_FLAGS_IN(); 4746 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 4747 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 4748 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4750 _flag_k = FK_CMP; 4751 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 4752 L_3615B711: 4753 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 4754 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 4755 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4756 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4757 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 4758 _flag_k = FK_ADD; 4759 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 4760 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4761 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4762 _flag_k = FK_CMP; 4763 RECOMP_BACKEDGE(); 4764 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 4765 L_3615B71D: 4766 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 4767 L_3615B71F: 4768 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 4769 PUSH32(esp, eax); /* 0x3615B722: push eax */ 4770 PUSH32(esp, eax); /* 0x3615B723: push eax */ 4771 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 4772 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 4773 ecx = esi; /* 0x3615B728: mov ecx, esi */ 4774 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 4775 RECOMP_FLAGS_IN(); 4776 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 4777 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 4778 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 4779 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4780 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4781 _flag_k = FK_CMP; 4782 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 4783 L_3615B739: 4784 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 4785 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4786 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4787 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 4788 _flag_k = FK_CMP; 4789 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 4790 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4791 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 4792 _flag_k = FK_CMP; 4793 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 4794 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4795 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4796 _flag_k = FK_CMP; 4797 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 4798 RECOMP_BACKEDGE(); 4799 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 4800 L_3615B748: 4801 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 4802 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 4803 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4804 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4805 _flag_k = FK_CMP; 4806 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 4807 L_3615B74F: 4808 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 4809 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 4810 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 4811 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4812 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 4813 _flag_k = FK_ADD; 4814 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 4815 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 4816 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4817 _flag_k = FK_CMP; 4818 RECOMP_BACKEDGE(); 4819 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 4820 L_3615B75B: 4821 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 4822 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4823 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 4824 _flag_k = FK_ADD; 4825 L_3615B75F: 4826 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 4827 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 4828 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 4829 eax = eax + 1; /* 0x3615B765: inc eax */ 4830 _flag_k = FK_INC; 4831 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 4832 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4833 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4834 _flag_k = FK_CMP; 4835 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 4836 RECOMP_BACKEDGE(); 4837 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 4838 L_3615B771: 4839 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 4840 eax = ebx; /* 0x3615B772: mov eax, ebx */ 4841 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 4842 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 4843 esp = ebp; /* 0x3615B776: mov esp, ebp */ 4844 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 4845 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 4846 RECOMP_REGS_OUT(); 4847 } 4848 4849 void sub_3615B75F(void) { 4850 int _fpu_cmp = 0; 4851 uint32_t _cf = 0; 4852 int _df = 1; 4853 uint32_t _flag_k = FK_NONE; 4854 uint32_t _flag_a = 0, _flag_b = 0; 4855 uint32_t _itail_tgt = 0; 4856 RECOMP_REGS_LOCALS 4857 RECOMP_ENTER(0x3615B75Fu); 4858 4859 goto L_3615B75F; 4860 L_3615B5C5: 4861 PUSH32(esp, 0x2Cu); /* 0x3615B5C5: push 0x2c */ 4862 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B5C7: call 0x3615fd6a */ /* not lifted */ 4863 RECOMP_FLAGS_IN(); 4864 PUSH32(esp, eax); /* 0x3615B5CC: push eax */ 4865 PUSH32(esp, ebx); /* 0x3615B5CD: push ebx */ 4866 MEM32(ebp + (-0x4)) = eax; /* 0x3615B5CE: mov dword ptr [ebp - 4], eax */ 4867 RECOMP_ICALL(0x3615B540u); /* 0x3615B5D1: call 0x3615b540 */ /* not lifted */ 4868 RECOMP_FLAGS_IN(); 4869 eax = MEM32(esi + 0x8); /* 0x3615B5D6: mov eax, dword ptr [esi + 8] */ 4870 edx = MEM32(esi + 0xC); /* 0x3615B5D9: mov edx, dword ptr [esi + 0xc] */ 4871 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 4872 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4873 edx = edx - eax; /* 0x3615B5DC: sub edx, eax */ 4874 _flag_k = FK_CMP; 4875 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 4876 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4877 esp = esp + 0xCu; /* 0x3615B5DE: add esp, 0xc */ 4878 _flag_k = FK_ADD; 4879 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615B5E1: sar edx, 2 */ 4880 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4881 edx = (uint32_t)((int32_t)edx >> 2u); 4882 /* cmp edx, 1 */ /* 0x3615B5E4: cmp edx, 1 */ 4883 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 4884 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4885 _flag_k = FK_CMP; 4886 edi = eax; /* 0x3615B5E7: mov edi, eax */ 4887 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B6D3; /* 0x3615B5E9: jae 0x3615b6d3 */ 4888 L_3615B5EF: 4889 edx = MEM32(esi + 0x4); /* 0x3615B5EF: mov edx, dword ptr [esi + 4] */ 4890 /* test edx, edx */ /* 0x3615B5F2: test edx, edx */ 4891 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4892 _cf = 0; 4893 _flag_k = FK_TEST; 4894 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B602; /* 0x3615B5F4: je 0x3615b602 */ 4895 L_3615B5F6: 4896 ecx = eax; /* 0x3615B5F6: mov ecx, eax */ 4897 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 4898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4899 ecx = ecx - edx; /* 0x3615B5F8: sub ecx, edx */ 4900 _flag_k = FK_CMP; 4901 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B5FA: sar ecx, 2 */ 4902 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4903 ecx = (uint32_t)((int32_t)ecx >> 2u); 4904 /* cmp ecx, 1 */ /* 0x3615B5FD: cmp ecx, 1 */ 4905 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 4906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4907 _flag_k = FK_CMP; 4908 if (CMP_A(_flag_a, _flag_b)) goto L_3615B607; /* 0x3615B600: ja 0x3615b607 */ 4909 L_3615B602: 4910 ecx = 1; /* 0x3615B602: mov ecx, 1 */ 4911 L_3615B607: 4912 /* test edx, edx */ /* 0x3615B607: test edx, edx */ 4913 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx); 4914 _cf = 0; 4915 _flag_k = FK_TEST; 4916 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B60F; /* 0x3615B609: jne 0x3615b60f */ 4917 L_3615B60B: 4918 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4919 eax = 0; /* 0x3615B60B: xor eax, eax */ 4920 _cf = 0; 4921 _flag_k = FK_TEST; 4922 goto L_3615B614; /* 0x3615B60D: jmp 0x3615b614 */ 4923 L_3615B60F: 4924 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 4925 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4926 eax = eax - edx; /* 0x3615B60F: sub eax, edx */ 4927 _flag_k = FK_CMP; 4928 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615B611: sar eax, 2 */ 4929 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4930 eax = (uint32_t)((int32_t)eax >> 2u); 4931 L_3615B614: 4932 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 4933 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4934 eax = eax + ecx; /* 0x3615B614: add eax, ecx */ 4935 _flag_k = FK_ADD; 4936 /* test eax, eax */ /* 0x3615B616: test eax, eax */ 4937 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 4938 _cf = 0; 4939 _flag_k = FK_TEST; 4940 MEM32(ebp + (-0x14)) = eax; /* 0x3615B618: mov dword ptr [ebp - 0x14], eax */ 4941 if (TEST_NS(_flag_a, _flag_b)) goto L_3615B61F; /* 0x3615B61B: jge 0x3615b61f */ 4942 L_3615B61D: 4943 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 4944 eax = 0; /* 0x3615B61D: xor eax, eax */ 4945 _cf = 0; 4946 _flag_k = FK_TEST; 4947 L_3615B61F: 4948 if (2u) _cf = (((eax) >> 30) & 1u); /* 0x3615B61F: shl eax, 2 */ 4949 if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 4950 eax = eax << 2u; /* 0x3615B61F: shl eax, 2 */ 4951 PUSH32(esp, eax); /* 0x3615B622: push eax */ 4952 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B623: call 0x3615fd6a */ /* not lifted */ 4953 RECOMP_FLAGS_IN(); 4954 MEM32(ebp + (-0x10)) = eax; /* 0x3615B628: mov dword ptr [ebp - 0x10], eax */ 4955 ebx = eax; /* 0x3615B62B: mov ebx, eax */ 4956 eax = MEM32(esi + 0x4); /* 0x3615B62D: mov eax, dword ptr [esi + 4] */ 4957 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 4958 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4959 esp = esp + 4; /* 0x3615B630: add esp, 4 */ 4960 _flag_k = FK_ADD; 4961 /* cmp eax, edi */ /* 0x3615B633: cmp eax, edi */ 4962 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4964 _flag_k = FK_CMP; 4965 MEM32(ebp + 0xC) = eax; /* 0x3615B635: mov dword ptr [ebp + 0xc], eax */ 4966 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B659; /* 0x3615B638: je 0x3615b659 */ 4967 L_3615B63A: 4968 goto L_3615B63F; /* 0x3615B63A: jmp 0x3615b63f */ 4969 L_3615B63C: 4970 eax = MEM32(ebp + 0xC); /* 0x3615B63C: mov eax, dword ptr [ebp + 0xc] */ 4971 L_3615B63F: 4972 PUSH32(esp, eax); /* 0x3615B63F: push eax */ 4973 PUSH32(esp, ebx); /* 0x3615B640: push ebx */ 4974 RECOMP_ICALL(0x3614F850u); /* 0x3615B641: call 0x3614f850 */ /* not lifted */ 4975 RECOMP_FLAGS_IN(); 4976 eax = MEM32(ebp + 0xC); /* 0x3615B646: mov eax, dword ptr [ebp + 0xc] */ 4977 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 4978 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4979 esp = esp + 8; /* 0x3615B649: add esp, 8 */ 4980 _flag_k = FK_ADD; 4981 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 4982 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4983 eax = eax + 4; /* 0x3615B64C: add eax, 4 */ 4984 _flag_k = FK_ADD; 4985 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 4986 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 4987 ebx = ebx + 4; /* 0x3615B64F: add ebx, 4 */ 4988 _flag_k = FK_ADD; 4989 /* cmp eax, edi */ /* 0x3615B652: cmp eax, edi */ 4990 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 4991 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 4992 _flag_k = FK_CMP; 4993 MEM32(ebp + 0xC) = eax; /* 0x3615B654: mov dword ptr [ebp + 0xc], eax */ 4994 RECOMP_BACKEDGE(); 4995 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B63C; /* 0x3615B657: jne 0x3615b63c */ 4996 L_3615B659: 4997 ecx = ebp + (-0x4); /* 0x3615B659: lea ecx, [ebp - 4] */ 4998 PUSH32(esp, ecx); /* 0x3615B65C: push ecx */ 4999 PUSH32(esp, 1); /* 0x3615B65D: push 1 */ 5000 PUSH32(esp, ebx); /* 0x3615B65F: push ebx */ 5001 ecx = esi; /* 0x3615B660: mov ecx, esi */ 5002 RECOMP_ICALL(0x361404A0u); /* 0x3615B662: call 0x361404a0 */ /* not lifted */ 5003 RECOMP_FLAGS_IN(); 5004 edx = MEM32(esi + 0x8); /* 0x3615B667: mov edx, dword ptr [esi + 8] */ 5005 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(4); 5006 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5007 ebx = ebx + 4; /* 0x3615B66A: add ebx, 4 */ 5008 _flag_k = FK_ADD; 5009 PUSH32(esp, ebx); /* 0x3615B66D: push ebx */ 5010 PUSH32(esp, edx); /* 0x3615B66E: push edx */ 5011 PUSH32(esp, edi); /* 0x3615B66F: push edi */ 5012 ecx = esi; /* 0x3615B670: mov ecx, esi */ 5013 RECOMP_ICALL(0x36141900u); /* 0x3615B672: call 0x36141900 */ /* not lifted */ 5014 RECOMP_FLAGS_IN(); 5015 eax = MEM32(esi + 0x8); /* 0x3615B677: mov eax, dword ptr [esi + 8] */ 5016 ecx = MEM32(esi + 0x4); /* 0x3615B67A: mov ecx, dword ptr [esi + 4] */ 5017 PUSH32(esp, eax); /* 0x3615B67D: push eax */ 5018 PUSH32(esp, ecx); /* 0x3615B67E: push ecx */ 5019 ecx = esi; /* 0x3615B67F: mov ecx, esi */ 5020 RECOMP_ICALL(0x3610ED60u); /* 0x3615B681: call 0x3610ed60 */ /* not lifted */ 5021 RECOMP_FLAGS_IN(); 5022 edx = MEM32(esi + 0x4); /* 0x3615B686: mov edx, dword ptr [esi + 4] */ 5023 PUSH32(esp, edx); /* 0x3615B689: push edx */ 5024 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B68A: call 0x3615fcc4 */ /* not lifted */ 5025 RECOMP_FLAGS_IN(); 5026 edx = MEM32(ebp + (-0x10)); /* 0x3615B68F: mov edx, dword ptr [ebp - 0x10] */ 5027 eax = MEM32(ebp + (-0x14)); /* 0x3615B692: mov eax, dword ptr [ebp - 0x14] */ 5028 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5029 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5030 esp = esp + 4; /* 0x3615B695: add esp, 4 */ 5031 _flag_k = FK_ADD; 5032 ecx = edx + eax * 4; /* 0x3615B698: lea ecx, [edx + eax*4] */ 5033 eax = MEM32(esi + 0x4); /* 0x3615B69B: mov eax, dword ptr [esi + 4] */ 5034 /* test eax, eax */ /* 0x3615B69E: test eax, eax */ 5035 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5036 _cf = 0; 5037 _flag_k = FK_TEST; 5038 MEM32(esi + 0xC) = ecx; /* 0x3615B6A0: mov dword ptr [esi + 0xc], ecx */ 5039 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615B6B9; /* 0x3615B6A3: jne 0x3615b6b9 */ 5040 L_3615B6A5: 5041 ebx = MEM32(ebp + 0x8); /* 0x3615B6A5: mov ebx, dword ptr [ebp + 8] */ 5042 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5043 ecx = 0; /* 0x3615B6A8: xor ecx, ecx */ 5044 _cf = 0; 5045 _flag_k = FK_TEST; 5046 MEM32(esi + 0x4) = edx; /* 0x3615B6AA: mov dword ptr [esi + 4], edx */ 5047 eax = edx + ecx * 4 + 0x4; /* 0x3615B6AD: lea eax, [edx + ecx*4 + 4] */ 5048 MEM32(esi + 0x8) = eax; /* 0x3615B6B1: mov dword ptr [esi + 8], eax */ 5049 goto L_3615B75F; /* 0x3615B6B4: jmp 0x3615b75f */ 5050 L_3615B6B9: 5051 ecx = MEM32(esi + 0x8); /* 0x3615B6B9: mov ecx, dword ptr [esi + 8] */ 5052 ebx = MEM32(ebp + 0x8); /* 0x3615B6BC: mov ebx, dword ptr [ebp + 8] */ 5053 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 5054 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5055 ecx = ecx - eax; /* 0x3615B6BF: sub ecx, eax */ 5056 _flag_k = FK_CMP; 5057 MEM32(esi + 0x4) = edx; /* 0x3615B6C1: mov dword ptr [esi + 4], edx */ 5058 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6C4: sar ecx, 2 */ 5059 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5060 ecx = (uint32_t)((int32_t)ecx >> 2u); 5061 eax = edx + ecx * 4 + 0x4; /* 0x3615B6C7: lea eax, [edx + ecx*4 + 4] */ 5062 MEM32(esi + 0x8) = eax; /* 0x3615B6CB: mov dword ptr [esi + 8], eax */ 5063 goto L_3615B75F; /* 0x3615B6CE: jmp 0x3615b75f */ 5064 L_3615B6D3: 5065 ecx = eax; /* 0x3615B6D3: mov ecx, eax */ 5066 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5067 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5068 ecx = ecx - edi; /* 0x3615B6D5: sub ecx, edi */ 5069 _flag_k = FK_CMP; 5070 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6D7: sar ecx, 2 */ 5071 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5072 ecx = (uint32_t)((int32_t)ecx >> 2u); 5073 /* cmp ecx, 1 */ /* 0x3615B6DA: cmp ecx, 1 */ 5074 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 5075 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5076 _flag_k = FK_CMP; 5077 if (CMP_AE(_flag_a, _flag_b)) goto L_3615B71F; /* 0x3615B6DD: jae 0x3615b71f */ 5078 L_3615B6DF: 5079 ecx = edi + 0x4; /* 0x3615B6DF: lea ecx, [edi + 4] */ 5080 PUSH32(esp, ecx); /* 0x3615B6E2: push ecx */ 5081 PUSH32(esp, eax); /* 0x3615B6E3: push eax */ 5082 PUSH32(esp, edi); /* 0x3615B6E4: push edi */ 5083 ecx = esi; /* 0x3615B6E5: mov ecx, esi */ 5084 RECOMP_ICALL(0x36141900u); /* 0x3615B6E7: call 0x36141900 */ /* not lifted */ 5085 RECOMP_FLAGS_IN(); 5086 eax = MEM32(esi + 0x8); /* 0x3615B6EC: mov eax, dword ptr [esi + 8] */ 5087 edx = ebp + (-0x4); /* 0x3615B6EF: lea edx, [ebp - 4] */ 5088 ecx = eax; /* 0x3615B6F2: mov ecx, eax */ 5089 PUSH32(esp, edx); /* 0x3615B6F4: push edx */ 5090 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 5091 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5092 ecx = ecx - edi; /* 0x3615B6F5: sub ecx, edi */ 5093 _flag_k = FK_CMP; 5094 edx = 1; /* 0x3615B6F7: mov edx, 1 */ 5095 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B6FC: sar ecx, 2 */ 5096 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)ecx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5097 ecx = (uint32_t)((int32_t)ecx >> 2u); 5098 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 5099 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5100 edx = edx - ecx; /* 0x3615B6FF: sub edx, ecx */ 5101 _flag_k = FK_CMP; 5102 ecx = esi; /* 0x3615B701: mov ecx, esi */ 5103 PUSH32(esp, edx); /* 0x3615B703: push edx */ 5104 PUSH32(esp, eax); /* 0x3615B704: push eax */ 5105 RECOMP_ICALL(0x361404A0u); /* 0x3615B705: call 0x361404a0 */ /* not lifted */ 5106 RECOMP_FLAGS_IN(); 5107 eax = MEM32(esi + 0x8); /* 0x3615B70A: mov eax, dword ptr [esi + 8] */ 5108 /* cmp edi, eax */ /* 0x3615B70D: cmp edi, eax */ 5109 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5110 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5111 _flag_k = FK_CMP; 5112 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B70F: je 0x3615b75b */ 5113 L_3615B711: 5114 ecx = MEM32(ebp + (-0x4)); /* 0x3615B711: mov ecx, dword ptr [ebp - 4] */ 5115 MEM32(edi) = ecx; /* 0x3615B714: mov dword ptr [edi], ecx */ 5116 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 5117 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5118 edi = edi + 4; /* 0x3615B716: add edi, 4 */ 5119 _flag_k = FK_ADD; 5120 /* cmp edi, eax */ /* 0x3615B719: cmp edi, eax */ 5121 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5122 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5123 _flag_k = FK_CMP; 5124 RECOMP_BACKEDGE(); 5125 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B711; /* 0x3615B71B: jne 0x3615b711 */ 5126 L_3615B71D: 5127 goto L_3615B75B; /* 0x3615B71D: jmp 0x3615b75b */ 5128 L_3615B71F: 5129 ecx = eax + (-0x4); /* 0x3615B71F: lea ecx, [eax - 4] */ 5130 PUSH32(esp, eax); /* 0x3615B722: push eax */ 5131 PUSH32(esp, eax); /* 0x3615B723: push eax */ 5132 MEM32(ebp + 0xC) = ecx; /* 0x3615B724: mov dword ptr [ebp + 0xc], ecx */ 5133 PUSH32(esp, ecx); /* 0x3615B727: push ecx */ 5134 ecx = esi; /* 0x3615B728: mov ecx, esi */ 5135 RECOMP_ICALL(0x36141900u); /* 0x3615B72A: call 0x36141900 */ /* not lifted */ 5136 RECOMP_FLAGS_IN(); 5137 ecx = MEM32(esi + 0x8); /* 0x3615B72F: mov ecx, dword ptr [esi + 8] */ 5138 eax = ecx + (-0x4); /* 0x3615B732: lea eax, [ecx - 4] */ 5139 /* cmp edi, eax */ /* 0x3615B735: cmp edi, eax */ 5140 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5141 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5142 _flag_k = FK_CMP; 5143 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B748; /* 0x3615B737: je 0x3615b748 */ 5144 L_3615B739: 5145 edx = MEM32(eax + (-0x4)); /* 0x3615B739: mov edx, dword ptr [eax - 4] */ 5146 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4); 5147 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5148 eax = eax - 4; /* 0x3615B73C: sub eax, 4 */ 5149 _flag_k = FK_CMP; 5150 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4); 5151 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5152 ecx = ecx - 4; /* 0x3615B73F: sub ecx, 4 */ 5153 _flag_k = FK_CMP; 5154 /* cmp eax, edi */ /* 0x3615B742: cmp eax, edi */ 5155 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 5156 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5157 _flag_k = FK_CMP; 5158 MEM32(ecx) = edx; /* 0x3615B744: mov dword ptr [ecx], edx */ 5159 RECOMP_BACKEDGE(); 5160 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B739; /* 0x3615B746: jne 0x3615b739 */ 5161 L_3615B748: 5162 eax = edi + 0x4; /* 0x3615B748: lea eax, [edi + 4] */ 5163 /* cmp edi, eax */ /* 0x3615B74B: cmp edi, eax */ 5164 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5165 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5166 _flag_k = FK_CMP; 5167 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615B75B; /* 0x3615B74D: je 0x3615b75b */ 5168 L_3615B74F: 5169 ecx = MEM32(ebp + (-0x4)); /* 0x3615B74F: mov ecx, dword ptr [ebp - 4] */ 5170 MEM32(edi) = ecx; /* 0x3615B752: mov dword ptr [edi], ecx */ 5171 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 5172 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5173 edi = edi + 4; /* 0x3615B754: add edi, 4 */ 5174 _flag_k = FK_ADD; 5175 /* cmp edi, eax */ /* 0x3615B757: cmp edi, eax */ 5176 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax); 5177 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5178 _flag_k = FK_CMP; 5179 RECOMP_BACKEDGE(); 5180 if (CMP_NE(_flag_a, _flag_b)) goto L_3615B74F; /* 0x3615B759: jne 0x3615b74f */ 5181 L_3615B75B: 5182 _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(4); 5183 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5184 MEM32(esi + 0x8) = MEM32(esi + 0x8) + 4; /* 0x3615B75B: add dword ptr [esi + 8], 4 */ 5185 _flag_k = FK_ADD; 5186 L_3615B75F: 5187 eax = MEM32(ebp + (-0xC)); /* 0x3615B75F: mov eax, dword ptr [ebp - 0xc] */ 5188 ecx = MEM32(ebp + (-0x8)); /* 0x3615B762: mov ecx, dword ptr [ebp - 8] */ 5189 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1); 5190 eax = eax + 1; /* 0x3615B765: inc eax */ 5191 _flag_k = FK_INC; 5192 /* cmp eax, ecx */ /* 0x3615B766: cmp eax, ecx */ 5193 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 5194 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5195 _flag_k = FK_CMP; 5196 MEM32(ebp + (-0xC)) = eax; /* 0x3615B768: mov dword ptr [ebp - 0xc], eax */ 5197 RECOMP_BACKEDGE(); 5198 if (CMP_L(_flag_a, _flag_b)) goto L_3615B5C5; /* 0x3615B76B: jl 0x3615b5c5 */ 5199 L_3615B771: 5200 edi = POP32_VAL(esp); /* 0x3615B771: pop edi */ 5201 eax = ebx; /* 0x3615B772: mov eax, ebx */ 5202 esi = POP32_VAL(esp); /* 0x3615B774: pop esi */ 5203 ebx = POP32_VAL(esp); /* 0x3615B775: pop ebx */ 5204 esp = ebp; /* 0x3615B776: mov esp, ebp */ 5205 ebp = POP32_VAL(esp); /* 0x3615B778: pop ebp */ 5206 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B779: ret */ 5207 RECOMP_REGS_OUT(); 5208 } 5209 5210 void sub_3615B790(void) { 5211 int _fpu_cmp = 0; 5212 uint32_t _cf = 0; 5213 int _df = 1; 5214 uint32_t _flag_k = FK_NONE; 5215 uint32_t _flag_a = 0, _flag_b = 0; 5216 uint32_t _itail_tgt = 0; 5217 RECOMP_REGS_LOCALS 5218 RECOMP_ENTER(0x3615B790u); 5219 5220 L_3615B790: 5221 { _itail_tgt = (uint32_t)(MEM32(0x3616FB90)); goto _ljump; } 5222 { RECOMP_REGS_OUT(); return; } /* end of function */ 5223 _ljump: 5224 switch (_itail_tgt) { 5225 case 0x3615B790u: goto L_3615B790; 5226 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5227 } 5228 RECOMP_REGS_OUT(); 5229 } 5230 5231 void sub_3615B7A0(void) { 5232 int _fpu_cmp = 0; 5233 uint32_t _cf = 0; 5234 int _df = 1; 5235 uint32_t _flag_k = FK_NONE; 5236 uint32_t _flag_a = 0, _flag_b = 0; 5237 uint32_t _itail_tgt = 0; 5238 RECOMP_REGS_LOCALS 5239 RECOMP_ENTER(0x3615B7A0u); 5240 5241 L_3615B7A0: 5242 RECOMP_ICALL(0x3615B7B0u); /* 0x3615B7A0: call 0x3615b7b0 */ /* not lifted */ 5243 RECOMP_FLAGS_IN(); 5244 goto L_3615B7C0; /* 0x3615B7A5: jmp 0x3615b7c0 */ 5245 L_3615B7C0: 5246 PUSH32(esp, 0x3615B7D0u); /* 0x3615B7C0: push 0x3615b7d0 */ 5247 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B7C5: call 0x3615feb2 */ /* not lifted */ 5248 RECOMP_FLAGS_IN(); 5249 ecx = POP32_VAL(esp); /* 0x3615B7CA: pop ecx */ 5250 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B7CB: ret */ 5251 RECOMP_REGS_OUT(); 5252 } 5253 5254 void sub_3615B7B0(void) { 5255 int _fpu_cmp = 0; 5256 uint32_t _cf = 0; 5257 int _df = 1; 5258 uint32_t _flag_k = FK_NONE; 5259 uint32_t _flag_a = 0, _flag_b = 0; 5260 uint32_t _itail_tgt = 0; 5261 RECOMP_REGS_LOCALS 5262 RECOMP_ENTER(0x3615B7B0u); 5263 5264 L_3615B7B0: 5265 ecx = 0x3630DBB1u; /* 0x3615B7B0: mov ecx, 0x3630dbb1 */ 5266 L_3615B7B5: 5267 { _itail_tgt = (uint32_t)(MEM32(0x3616F140)); goto _ljump; } 5268 { RECOMP_REGS_OUT(); return; } /* end of function */ 5269 _ljump: 5270 switch (_itail_tgt) { 5271 case 0x3615B7B0u: goto L_3615B7B0; 5272 case 0x3615B7B5u: goto L_3615B7B5; 5273 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5274 } 5275 RECOMP_REGS_OUT(); 5276 } 5277 5278 void sub_3615B7C0(void) { 5279 int _fpu_cmp = 0; 5280 uint32_t _cf = 0; 5281 int _df = 1; 5282 uint32_t _flag_k = FK_NONE; 5283 uint32_t _flag_a = 0, _flag_b = 0; 5284 uint32_t _itail_tgt = 0; 5285 RECOMP_REGS_LOCALS 5286 RECOMP_ENTER(0x3615B7C0u); 5287 5288 L_3615B7C0: 5289 PUSH32(esp, 0x3615B7D0u); /* 0x3615B7C0: push 0x3615b7d0 */ 5290 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B7C5: call 0x3615feb2 */ /* not lifted */ 5291 RECOMP_FLAGS_IN(); 5292 ecx = POP32_VAL(esp); /* 0x3615B7CA: pop ecx */ 5293 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B7CB: ret */ 5294 RECOMP_REGS_OUT(); 5295 } 5296 5297 void sub_3615B7D0(void) { 5298 int _fpu_cmp = 0; 5299 uint32_t _cf = 0; 5300 int _df = 1; 5301 uint32_t _flag_k = FK_NONE; 5302 uint32_t _flag_a = 0, _flag_b = 0; 5303 uint32_t _itail_tgt = 0; 5304 RECOMP_REGS_LOCALS 5305 RECOMP_ENTER(0x3615B7D0u); 5306 5307 L_3615B7D0: 5308 ecx = 0x3630DBB1u; /* 0x3615B7D0: mov ecx, 0x3630dbb1 */ 5309 L_3615B7D5: 5310 { _itail_tgt = (uint32_t)(MEM32(0x3616F144)); goto _ljump; } 5311 { RECOMP_REGS_OUT(); return; } /* end of function */ 5312 _ljump: 5313 switch (_itail_tgt) { 5314 case 0x3615B7D0u: goto L_3615B7D0; 5315 case 0x3615B7D5u: goto L_3615B7D5; 5316 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5317 } 5318 RECOMP_REGS_OUT(); 5319 } 5320 5321 void sub_3615B7E0(void) { 5322 int _fpu_cmp = 0; 5323 uint32_t _cf = 0; 5324 int _df = 1; 5325 uint32_t _flag_k = FK_NONE; 5326 uint32_t _flag_a = 0, _flag_b = 0; 5327 uint32_t _itail_tgt = 0; 5328 RECOMP_REGS_LOCALS 5329 RECOMP_ENTER(0x3615B7E0u); 5330 5331 L_3615B7E0: 5332 RECOMP_ICALL(0x3615B7F0u); /* 0x3615B7E0: call 0x3615b7f0 */ /* not lifted */ 5333 RECOMP_FLAGS_IN(); 5334 goto L_3615B800; /* 0x3615B7E5: jmp 0x3615b800 */ 5335 L_3615B800: 5336 PUSH32(esp, 0x3615B810u); /* 0x3615B800: push 0x3615b810 */ 5337 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B805: call 0x3615feb2 */ /* not lifted */ 5338 RECOMP_FLAGS_IN(); 5339 ecx = POP32_VAL(esp); /* 0x3615B80A: pop ecx */ 5340 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B80B: ret */ 5341 RECOMP_REGS_OUT(); 5342 } 5343 5344 void sub_3615B7F0(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(0x3615B7F0u); 5353 5354 L_3615B7F0: 5355 ecx = 0x3630DBB0u; /* 0x3615B7F0: mov ecx, 0x3630dbb0 */ 5356 L_3615B7F5: 5357 { _itail_tgt = (uint32_t)(MEM32(0x3616F148)); goto _ljump; } 5358 { RECOMP_REGS_OUT(); return; } /* end of function */ 5359 _ljump: 5360 switch (_itail_tgt) { 5361 case 0x3615B7F0u: goto L_3615B7F0; 5362 case 0x3615B7F5u: goto L_3615B7F5; 5363 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5364 } 5365 RECOMP_REGS_OUT(); 5366 } 5367 5368 void sub_3615B800(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(0x3615B800u); 5377 5378 L_3615B800: 5379 PUSH32(esp, 0x3615B810u); /* 0x3615B800: push 0x3615b810 */ 5380 RECOMP_ICALL(0x3615FEB2u); /* 0x3615B805: call 0x3615feb2 */ /* not lifted */ 5381 RECOMP_FLAGS_IN(); 5382 ecx = POP32_VAL(esp); /* 0x3615B80A: pop ecx */ 5383 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B80B: ret */ 5384 RECOMP_REGS_OUT(); 5385 } 5386 5387 void sub_3615B810(void) { 5388 int _fpu_cmp = 0; 5389 uint32_t _cf = 0; 5390 int _df = 1; 5391 uint32_t _flag_k = FK_NONE; 5392 uint32_t _flag_a = 0, _flag_b = 0; 5393 uint32_t _itail_tgt = 0; 5394 RECOMP_REGS_LOCALS 5395 RECOMP_ENTER(0x3615B810u); 5396 5397 L_3615B810: 5398 ecx = 0x3630DBB0u; /* 0x3615B810: mov ecx, 0x3630dbb0 */ 5399 L_3615B815: 5400 { _itail_tgt = (uint32_t)(MEM32(0x3616F14C)); goto _ljump; } 5401 { RECOMP_REGS_OUT(); return; } /* end of function */ 5402 _ljump: 5403 switch (_itail_tgt) { 5404 case 0x3615B810u: goto L_3615B810; 5405 case 0x3615B815u: goto L_3615B815; 5406 default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; } 5407 } 5408 RECOMP_REGS_OUT(); 5409 } 5410 5411 void sub_3615B820(void) { 5412 int _fpu_cmp = 0; 5413 uint32_t _cf = 0; 5414 int _df = 1; 5415 uint32_t _flag_k = FK_NONE; 5416 uint32_t _flag_a = 0, _flag_b = 0; 5417 uint32_t _itail_tgt = 0; 5418 RECOMP_REGS_LOCALS 5419 RECOMP_ENTER(0x3615B820u); 5420 5421 L_3615B820: 5422 goto L_3615B830; /* 0x3615B820: jmp 0x3615b830 */ 5423 L_3615B830: 5424 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5425 eax = 0; /* 0x3615B830: xor eax, eax */ 5426 _cf = 0; 5427 _flag_k = FK_TEST; 5428 MEM32(0x3630DBA8) = eax; /* 0x3615B832: mov dword ptr [0x3630dba8], eax */ 5429 MEM32(0x3630DBAC) = eax; /* 0x3615B837: mov dword ptr [0x3630dbac], eax */ 5430 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B83C: ret */ 5431 RECOMP_REGS_OUT(); 5432 } 5433 5434 void sub_3615B830(void) { 5435 int _fpu_cmp = 0; 5436 uint32_t _cf = 0; 5437 int _df = 1; 5438 uint32_t _flag_k = FK_NONE; 5439 uint32_t _flag_a = 0, _flag_b = 0; 5440 uint32_t _itail_tgt = 0; 5441 RECOMP_REGS_LOCALS 5442 RECOMP_ENTER(0x3615B830u); 5443 5444 L_3615B830: 5445 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5446 eax = 0; /* 0x3615B830: xor eax, eax */ 5447 _cf = 0; 5448 _flag_k = FK_TEST; 5449 MEM32(0x3630DBA8) = eax; /* 0x3615B832: mov dword ptr [0x3630dba8], eax */ 5450 MEM32(0x3630DBAC) = eax; /* 0x3615B837: mov dword ptr [0x3630dbac], eax */ 5451 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B83C: ret */ 5452 RECOMP_REGS_OUT(); 5453 } 5454 5455 void sub_3615B840(void) { 5456 int _fpu_cmp = 0; 5457 uint32_t _cf = 0; 5458 int _df = 1; 5459 uint32_t _flag_k = FK_NONE; 5460 uint32_t _flag_a = 0, _flag_b = 0; 5461 uint32_t _itail_tgt = 0; 5462 RECOMP_REGS_LOCALS 5463 RECOMP_ENTER(0x3615B840u); 5464 5465 L_3615B840: 5466 PUSH32(esp, ebp); /* 0x3615B840: push ebp */ 5467 ebp = esp; /* 0x3615B841: mov ebp, esp */ 5468 ecx = MEM32(ebp + 0x8); /* 0x3615B843: mov ecx, dword ptr [ebp + 8] */ 5469 PUSH32(esp, esi); /* 0x3615B846: push esi */ 5470 esi = MEM32(ebp + 0xC); /* 0x3615B847: mov esi, dword ptr [ebp + 0xc] */ 5471 PUSH32(esp, edi); /* 0x3615B84A: push edi */ 5472 edi = MEM32(0x3616FAEC); /* 0x3615B84B: mov edi, dword ptr [0x3616faec] */ 5473 eax = MEM32(esi); /* 0x3615B851: mov eax, dword ptr [esi] */ 5474 PUSH32(esp, eax); /* 0x3615B853: push eax */ 5475 RECOMP_ICALL(edi); /* 0x3615B854: call edi */ 5476 RECOMP_FLAGS_IN(); 5477 esi = MEM32(esi + 0x4); /* 0x3615B856: mov esi, dword ptr [esi + 4] */ 5478 ecx = eax; /* 0x3615B859: mov ecx, eax */ 5479 PUSH32(esp, esi); /* 0x3615B85B: push esi */ 5480 RECOMP_ICALL(edi); /* 0x3615B85C: call edi */ 5481 RECOMP_FLAGS_IN(); 5482 edi = POP32_VAL(esp); /* 0x3615B85E: pop edi */ 5483 esi = POP32_VAL(esp); /* 0x3615B85F: pop esi */ 5484 ebp = POP32_VAL(esp); /* 0x3615B860: pop ebp */ 5485 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B861: ret */ 5486 RECOMP_REGS_OUT(); 5487 } 5488 5489 void sub_3615B870(void) { 5490 int _fpu_cmp = 0; 5491 uint32_t _cf = 0; 5492 int _df = 1; 5493 uint32_t _flag_k = FK_NONE; 5494 uint32_t _flag_a = 0, _flag_b = 0; 5495 uint32_t _itail_tgt = 0; 5496 RECOMP_REGS_LOCALS 5497 RECOMP_ENTER(0x3615B870u); 5498 5499 L_3615B870: 5500 PUSH32(esp, ebp); /* 0x3615B870: push ebp */ 5501 ebp = esp; /* 0x3615B871: mov ebp, esp */ 5502 PUSH32(esp, ebx); /* 0x3615B873: push ebx */ 5503 PUSH32(esp, esi); /* 0x3615B874: push esi */ 5504 esi = MEM32(ebp + 0x8); /* 0x3615B875: mov esi, dword ptr [ebp + 8] */ 5505 eax = ebp + 0x8; /* 0x3615B878: lea eax, [ebp + 8] */ 5506 PUSH32(esp, edi); /* 0x3615B87B: push edi */ 5507 edi = MEM32(0x3616FA8C); /* 0x3615B87C: mov edi, dword ptr [0x3616fa8c] */ 5508 PUSH32(esp, eax); /* 0x3615B882: push eax */ 5509 ecx = esi; /* 0x3615B883: mov ecx, esi */ 5510 RECOMP_ICALL(edi); /* 0x3615B885: call edi */ 5511 RECOMP_FLAGS_IN(); 5512 ebx = MEM32(ebp + 0xC); /* 0x3615B887: mov ebx, dword ptr [ebp + 0xc] */ 5513 ecx = ebx + 0x4; /* 0x3615B88A: lea ecx, [ebx + 4] */ 5514 PUSH32(esp, ecx); /* 0x3615B88D: push ecx */ 5515 ecx = eax; /* 0x3615B88E: mov ecx, eax */ 5516 RECOMP_ICALL(edi); /* 0x3615B890: call edi */ 5517 RECOMP_FLAGS_IN(); 5518 edx = MEM32(ebp + 0x8); /* 0x3615B892: mov edx, dword ptr [ebp + 8] */ 5519 eax = esi; /* 0x3615B895: mov eax, esi */ 5520 edi = POP32_VAL(esp); /* 0x3615B897: pop edi */ 5521 MEM32(ebx) = edx; /* 0x3615B898: mov dword ptr [ebx], edx */ 5522 esi = POP32_VAL(esp); /* 0x3615B89A: pop esi */ 5523 ebx = POP32_VAL(esp); /* 0x3615B89B: pop ebx */ 5524 ebp = POP32_VAL(esp); /* 0x3615B89C: pop ebp */ 5525 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B89D: ret */ 5526 RECOMP_REGS_OUT(); 5527 } 5528 5529 void sub_3615B8A0(void) { 5530 int _fpu_cmp = 0; 5531 uint32_t _cf = 0; 5532 int _df = 1; 5533 uint32_t _flag_k = FK_NONE; 5534 uint32_t _flag_a = 0, _flag_b = 0; 5535 uint32_t _itail_tgt = 0; 5536 RECOMP_REGS_LOCALS 5537 RECOMP_ENTER(0x3615B8A0u); 5538 5539 L_3615B8A0: 5540 PUSH32(esp, ebp); /* 0x3615B8A0: push ebp */ 5541 ebp = esp; /* 0x3615B8A1: mov ebp, esp */ 5542 eax = MEM32(ebp + 0xC); /* 0x3615B8A3: mov eax, dword ptr [ebp + 0xc] */ 5543 PUSH32(esp, esi); /* 0x3615B8A6: push esi */ 5544 esi = MEM32(0x3616F118); /* 0x3615B8A7: mov esi, dword ptr [0x3616f118] */ 5545 ecx = MEM32(eax + 0x4); /* 0x3615B8AD: mov ecx, dword ptr [eax + 4] */ 5546 eax = MEM32(eax); /* 0x3615B8B0: mov eax, dword ptr [eax] */ 5547 PUSH32(esp, ecx); /* 0x3615B8B2: push ecx */ 5548 PUSH32(esp, 0x362E90E8u); /* 0x3615B8B3: push 0x362e90e8 */ 5549 PUSH32(esp, eax); /* 0x3615B8B8: push eax */ 5550 eax = MEM32(ebp + 0x8); /* 0x3615B8B9: mov eax, dword ptr [ebp + 8] */ 5551 PUSH32(esp, 0x362E90E0u); /* 0x3615B8BC: push 0x362e90e0 */ 5552 PUSH32(esp, eax); /* 0x3615B8C1: push eax */ 5553 RECOMP_ICALL(esi); /* 0x3615B8C2: call esi */ 5554 RECOMP_FLAGS_IN(); 5555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5556 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5557 esp = esp + 8; /* 0x3615B8C4: add esp, 8 */ 5558 _flag_k = FK_ADD; 5559 ecx = eax; /* 0x3615B8C7: mov ecx, eax */ 5560 RECOMP_ICALL(MEM32(0x3616F034)); /* 0x3615B8C9: call dword ptr [0x3616f034] */ 5561 RECOMP_FLAGS_IN(); 5562 PUSH32(esp, eax); /* 0x3615B8CF: push eax */ 5563 RECOMP_ICALL(esi); /* 0x3615B8D0: call esi */ 5564 RECOMP_FLAGS_IN(); 5565 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 5566 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5567 esp = esp + 8; /* 0x3615B8D2: add esp, 8 */ 5568 _flag_k = FK_ADD; 5569 ecx = eax; /* 0x3615B8D5: mov ecx, eax */ 5570 RECOMP_ICALL(MEM32(0x3616F034)); /* 0x3615B8D7: call dword ptr [0x3616f034] */ 5571 RECOMP_FLAGS_IN(); 5572 esi = POP32_VAL(esp); /* 0x3615B8DD: pop esi */ 5573 ebp = POP32_VAL(esp); /* 0x3615B8DE: pop ebp */ 5574 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B8DF: ret */ 5575 RECOMP_REGS_OUT(); 5576 } 5577 5578 void sub_3615B8E0(void) { 5579 int _fpu_cmp = 0; 5580 uint32_t _cf = 0; 5581 int _df = 1; 5582 uint32_t _flag_k = FK_NONE; 5583 uint32_t _flag_a = 0, _flag_b = 0; 5584 uint32_t _itail_tgt = 0; 5585 RECOMP_REGS_LOCALS 5586 RECOMP_ENTER(0x3615B8E0u); 5587 5588 L_3615B8E0: 5589 PUSH32(esp, ebp); /* 0x3615B8E0: push ebp */ 5590 ebp = esp; /* 0x3615B8E1: mov ebp, esp */ 5591 PUSH32(esp, ecx); /* 0x3615B8E3: push ecx */ 5592 eax = ebp + (-0x4); /* 0x3615B8E4: lea eax, [ebp - 4] */ 5593 PUSH32(esp, esi); /* 0x3615B8E7: push esi */ 5594 esi = MEM32(ebp + 0x8); /* 0x3615B8E8: mov esi, dword ptr [ebp + 8] */ 5595 ecx = ebp + 0x8; /* 0x3615B8EB: lea ecx, [ebp + 8] */ 5596 PUSH32(esp, eax); /* 0x3615B8EE: push eax */ 5597 PUSH32(esp, ecx); /* 0x3615B8EF: push ecx */ 5598 ecx = esi; /* 0x3615B8F0: mov ecx, esi */ 5599 RECOMP_ICALL(MEM32(0x3616F030)); /* 0x3615B8F2: call dword ptr [0x3616f030] */ 5600 RECOMP_FLAGS_IN(); 5601 ecx = eax; /* 0x3615B8F8: mov ecx, eax */ 5602 RECOMP_ICALL(MEM32(0x3616F030)); /* 0x3615B8FA: call dword ptr [0x3616f030] */ 5603 RECOMP_FLAGS_IN(); 5604 eax = MEM32(ebp + 0xC); /* 0x3615B900: mov eax, dword ptr [ebp + 0xc] */ 5605 edx = MEM32(ebp + 0x8); /* 0x3615B903: mov edx, dword ptr [ebp + 8] */ 5606 ecx = MEM32(ebp + (-0x4)); /* 0x3615B906: mov ecx, dword ptr [ebp - 4] */ 5607 MEM32(eax) = edx; /* 0x3615B909: mov dword ptr [eax], edx */ 5608 MEM32(eax + 0x4) = ecx; /* 0x3615B90B: mov dword ptr [eax + 4], ecx */ 5609 eax = esi; /* 0x3615B90E: mov eax, esi */ 5610 esi = POP32_VAL(esp); /* 0x3615B910: pop esi */ 5611 esp = ebp; /* 0x3615B911: mov esp, ebp */ 5612 ebp = POP32_VAL(esp); /* 0x3615B913: pop ebp */ 5613 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B914: ret */ 5614 RECOMP_REGS_OUT(); 5615 } 5616 5617 void sub_3615B920(void) { 5618 int _fpu_cmp = 0; 5619 uint32_t _cf = 0; 5620 int _df = 1; 5621 uint32_t _flag_k = FK_NONE; 5622 uint32_t _flag_a = 0, _flag_b = 0; 5623 uint32_t _itail_tgt = 0; 5624 RECOMP_REGS_LOCALS 5625 RECOMP_ENTER(0x3615B920u); 5626 5627 L_3615B920: 5628 eax = ecx; /* 0x3615B920: mov eax, ecx */ 5629 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 5630 ecx = 0; /* 0x3615B922: xor ecx, ecx */ 5631 _cf = 0; 5632 _flag_k = FK_TEST; 5633 MEM32(eax) = 0x36178E04u; /* 0x3615B924: mov dword ptr [eax], 0x36178e04 */ 5634 MEM32(eax + 0x4) = ecx; /* 0x3615B92A: mov dword ptr [eax + 4], ecx */ 5635 MEM32(eax + 0x8) = ecx; /* 0x3615B92D: mov dword ptr [eax + 8], ecx */ 5636 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615B930: ret */ 5637 RECOMP_REGS_OUT(); 5638 } 5639 5640 void sub_3615B940(void) { 5641 int _fpu_cmp = 0; 5642 uint32_t _cf = 0; 5643 int _df = 1; 5644 uint32_t _flag_k = FK_NONE; 5645 uint32_t _flag_a = 0, _flag_b = 0; 5646 uint32_t _itail_tgt = 0; 5647 RECOMP_REGS_LOCALS 5648 RECOMP_ENTER(0x3615B940u); 5649 5650 L_3615B940: 5651 PUSH32(esp, ebp); /* 0x3615B940: push ebp */ 5652 ebp = esp; /* 0x3615B941: mov ebp, esp */ 5653 PUSH32(esp, esi); /* 0x3615B943: push esi */ 5654 esi = ecx; /* 0x3615B944: mov esi, ecx */ 5655 RECOMP_ICALL(0x3615BA30u); /* 0x3615B946: call 0x3615ba30 */ /* not lifted */ 5656 RECOMP_FLAGS_IN(); 5657 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615B94B: test byte ptr [ebp + 8], 1 */ 5658 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 5659 _cf = 0; 5660 _flag_k = FK_NARROW(FK_TEST, 24); 5661 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B95A; /* 0x3615B94F: je 0x3615b95a */ 5662 L_3615B951: 5663 PUSH32(esp, esi); /* 0x3615B951: push esi */ 5664 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B952: call 0x3615fcc4 */ /* not lifted */ 5665 RECOMP_FLAGS_IN(); 5666 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5668 esp = esp + 4; /* 0x3615B957: add esp, 4 */ 5669 _flag_k = FK_ADD; 5670 L_3615B95A: 5671 eax = esi; /* 0x3615B95A: mov eax, esi */ 5672 esi = POP32_VAL(esp); /* 0x3615B95C: pop esi */ 5673 ebp = POP32_VAL(esp); /* 0x3615B95D: pop ebp */ 5674 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615B95E: ret 4 */ 5675 RECOMP_REGS_OUT(); 5676 } 5677 5678 void sub_3615B970(void) { 5679 int _fpu_cmp = 0; 5680 uint32_t _cf = 0; 5681 int _df = 1; 5682 uint32_t _flag_k = FK_NONE; 5683 uint32_t _flag_a = 0, _flag_b = 0; 5684 uint32_t _itail_tgt = 0; 5685 RECOMP_REGS_LOCALS 5686 RECOMP_ENTER(0x3615B970u); 5687 5688 L_3615B970: 5689 PUSH32(esp, ebp); /* 0x3615B970: push ebp */ 5690 ebp = esp; /* 0x3615B971: mov ebp, esp */ 5691 PUSH32(esp, ebx); /* 0x3615B973: push ebx */ 5692 PUSH32(esp, esi); /* 0x3615B974: push esi */ 5693 esi = MEM32(ebp + 0x8); /* 0x3615B975: mov esi, dword ptr [ebp + 8] */ 5694 ebx = ecx; /* 0x3615B978: mov ebx, ecx */ 5695 MEM32(ebx) = 0x36178E04u; /* 0x3615B97A: mov dword ptr [ebx], 0x36178e04 */ 5696 eax = MEM32(esi + 0x4); /* 0x3615B980: mov eax, dword ptr [esi + 4] */ 5697 /* test eax, eax */ /* 0x3615B983: test eax, eax */ 5698 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5699 _cf = 0; 5700 _flag_k = FK_TEST; 5701 MEM32(ebx + 0x4) = eax; /* 0x3615B985: mov dword ptr [ebx + 4], eax */ 5702 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B9B6; /* 0x3615B988: je 0x3615b9b6 */ 5703 L_3615B98A: 5704 PUSH32(esp, edi); /* 0x3615B98A: push edi */ 5705 PUSH32(esp, eax); /* 0x3615B98B: push eax */ 5706 RECOMP_ICALL(0x3615FD6Au); /* 0x3615B98C: call 0x3615fd6a */ /* not lifted */ 5707 RECOMP_FLAGS_IN(); 5708 ecx = MEM32(ebx + 0x4); /* 0x3615B991: mov ecx, dword ptr [ebx + 4] */ 5709 MEM32(ebx + 0x8) = eax; /* 0x3615B994: mov dword ptr [ebx + 8], eax */ 5710 esi = MEM32(esi + 0x8); /* 0x3615B997: mov esi, dword ptr [esi + 8] */ 5711 edi = eax; /* 0x3615B99A: mov edi, eax */ 5712 eax = ecx; /* 0x3615B99C: mov eax, ecx */ 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; /* 0x3615B99E: add esp, 4 */ 5716 _flag_k = FK_ADD; 5717 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615B9A1: shr ecx, 2 */ 5718 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5719 ecx = ecx >> 2u; /* 0x3615B9A1: shr ecx, 2 */ 5720 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3615B9A4: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5721 ecx = eax; /* 0x3615B9A6: mov ecx, eax */ 5722 eax = ebx; /* 0x3615B9A8: mov eax, ebx */ 5723 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5724 ecx = ecx & 3; /* 0x3615B9AA: and ecx, 3 */ 5725 _cf = 0; 5726 _flag_k = FK_TEST; 5727 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3615B9AD: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5728 edi = POP32_VAL(esp); /* 0x3615B9AF: pop edi */ 5729 esi = POP32_VAL(esp); /* 0x3615B9B0: pop esi */ 5730 ebx = POP32_VAL(esp); /* 0x3615B9B1: pop ebx */ 5731 ebp = POP32_VAL(esp); /* 0x3615B9B2: pop ebp */ 5732 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615B9B3: ret 4 */ 5733 L_3615B9B6: 5734 MEM32(ebx + 0x8) = 0; /* 0x3615B9B6: mov dword ptr [ebx + 8], 0 */ 5735 eax = ebx; /* 0x3615B9BD: mov eax, ebx */ 5736 esi = POP32_VAL(esp); /* 0x3615B9BF: pop esi */ 5737 ebx = POP32_VAL(esp); /* 0x3615B9C0: pop ebx */ 5738 ebp = POP32_VAL(esp); /* 0x3615B9C1: pop ebp */ 5739 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615B9C2: ret 4 */ 5740 RECOMP_REGS_OUT(); 5741 } 5742 5743 void sub_3615B9D0(void) { 5744 int _fpu_cmp = 0; 5745 uint32_t _cf = 0; 5746 int _df = 1; 5747 uint32_t _flag_k = FK_NONE; 5748 uint32_t _flag_a = 0, _flag_b = 0; 5749 uint32_t _itail_tgt = 0; 5750 RECOMP_REGS_LOCALS 5751 RECOMP_ENTER(0x3615B9D0u); 5752 5753 L_3615B9D0: 5754 PUSH32(esp, ebp); /* 0x3615B9D0: push ebp */ 5755 ebp = esp; /* 0x3615B9D1: mov ebp, esp */ 5756 PUSH32(esp, ebx); /* 0x3615B9D3: push ebx */ 5757 PUSH32(esp, esi); /* 0x3615B9D4: push esi */ 5758 esi = MEM32(ebp + 0x8); /* 0x3615B9D5: mov esi, dword ptr [ebp + 8] */ 5759 ebx = ecx; /* 0x3615B9D8: mov ebx, ecx */ 5760 /* cmp ebx, esi */ /* 0x3615B9DA: cmp ebx, esi */ 5761 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(esi); 5762 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5763 _flag_k = FK_CMP; 5764 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615BA23; /* 0x3615B9DC: je 0x3615ba23 */ 5765 L_3615B9DE: 5766 eax = MEM32(ebx + 0x8); /* 0x3615B9DE: mov eax, dword ptr [ebx + 8] */ 5767 /* test eax, eax */ /* 0x3615B9E1: test eax, eax */ 5768 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5769 _cf = 0; 5770 _flag_k = FK_TEST; 5771 if (TEST_Z(_flag_a, _flag_b)) goto L_3615B9F5; /* 0x3615B9E3: je 0x3615b9f5 */ 5772 L_3615B9E5: 5773 PUSH32(esp, eax); /* 0x3615B9E5: push eax */ 5774 RECOMP_ICALL(0x3615FCC4u); /* 0x3615B9E6: call 0x3615fcc4 */ /* not lifted */ 5775 RECOMP_FLAGS_IN(); 5776 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5777 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5778 esp = esp + 4; /* 0x3615B9EB: add esp, 4 */ 5779 _flag_k = FK_ADD; 5780 MEM32(ebx + 0x8) = 0; /* 0x3615B9EE: mov dword ptr [ebx + 8], 0 */ 5781 L_3615B9F5: 5782 eax = MEM32(esi + 0x4); /* 0x3615B9F5: mov eax, dword ptr [esi + 4] */ 5783 /* test eax, eax */ /* 0x3615B9F8: test eax, eax */ 5784 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5785 _cf = 0; 5786 _flag_k = FK_TEST; 5787 MEM32(ebx + 0x4) = eax; /* 0x3615B9FA: mov dword ptr [ebx + 4], eax */ 5788 if (TEST_Z(_flag_a, _flag_b)) goto L_3615BA23; /* 0x3615B9FD: je 0x3615ba23 */ 5789 L_3615B9FF: 5790 PUSH32(esp, edi); /* 0x3615B9FF: push edi */ 5791 PUSH32(esp, eax); /* 0x3615BA00: push eax */ 5792 RECOMP_ICALL(0x3615FD6Au); /* 0x3615BA01: call 0x3615fd6a */ /* not lifted */ 5793 RECOMP_FLAGS_IN(); 5794 ecx = MEM32(ebx + 0x4); /* 0x3615BA06: mov ecx, dword ptr [ebx + 4] */ 5795 MEM32(ebx + 0x8) = eax; /* 0x3615BA09: mov dword ptr [ebx + 8], eax */ 5796 esi = MEM32(esi + 0x8); /* 0x3615BA0C: mov esi, dword ptr [esi + 8] */ 5797 edi = eax; /* 0x3615BA0F: mov edi, eax */ 5798 eax = ecx; /* 0x3615BA11: mov eax, ecx */ 5799 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5800 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5801 esp = esp + 4; /* 0x3615BA13: add esp, 4 */ 5802 _flag_k = FK_ADD; 5803 if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x3615BA16: shr ecx, 2 */ 5804 if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 5805 ecx = ecx >> 2u; /* 0x3615BA16: shr ecx, 2 */ 5806 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3615BA19: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5807 ecx = eax; /* 0x3615BA1B: mov ecx, eax */ 5808 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3); 5809 ecx = ecx & 3; /* 0x3615BA1D: and ecx, 3 */ 5810 _cf = 0; 5811 _flag_k = FK_TEST; 5812 if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x3615BA20: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; } 5813 edi = POP32_VAL(esp); /* 0x3615BA22: pop edi */ 5814 L_3615BA23: 5815 eax = ebx; /* 0x3615BA23: mov eax, ebx */ 5816 esi = POP32_VAL(esp); /* 0x3615BA25: pop esi */ 5817 ebx = POP32_VAL(esp); /* 0x3615BA26: pop ebx */ 5818 ebp = POP32_VAL(esp); /* 0x3615BA27: pop ebp */ 5819 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BA28: ret 4 */ 5820 RECOMP_REGS_OUT(); 5821 } 5822 5823 void sub_3615BA30(void) { 5824 int _fpu_cmp = 0; 5825 uint32_t _cf = 0; 5826 int _df = 1; 5827 uint32_t _flag_k = FK_NONE; 5828 uint32_t _flag_a = 0, _flag_b = 0; 5829 uint32_t _itail_tgt = 0; 5830 RECOMP_REGS_LOCALS 5831 RECOMP_ENTER(0x3615BA30u); 5832 5833 L_3615BA30: 5834 eax = MEM32(ecx + 0x8); /* 0x3615BA30: mov eax, dword ptr [ecx + 8] */ 5835 MEM32(ecx) = 0x36178E04u; /* 0x3615BA33: mov dword ptr [ecx], 0x36178e04 */ 5836 PUSH32(esp, eax); /* 0x3615BA39: push eax */ 5837 RECOMP_ICALL(0x3615FCC4u); /* 0x3615BA3A: call 0x3615fcc4 */ /* not lifted */ 5838 RECOMP_FLAGS_IN(); 5839 ecx = POP32_VAL(esp); /* 0x3615BA3F: pop ecx */ 5840 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BA40: ret */ 5841 RECOMP_REGS_OUT(); 5842 } 5843 5844 void sub_3615BA50(void) { 5845 int _fpu_cmp = 0; 5846 uint32_t _cf = 0; 5847 int _df = 1; 5848 uint32_t _flag_k = FK_NONE; 5849 uint32_t _flag_a = 0, _flag_b = 0; 5850 uint32_t _itail_tgt = 0; 5851 RECOMP_REGS_LOCALS 5852 RECOMP_ENTER(0x3615BA50u); 5853 5854 L_3615BA50: 5855 PUSH32(esp, ebp); /* 0x3615BA50: push ebp */ 5856 ebp = esp; /* 0x3615BA51: mov ebp, esp */ 5857 PUSH32(esp, esi); /* 0x3615BA53: push esi */ 5858 esi = MEM32(ebp + 0x8); /* 0x3615BA54: mov esi, dword ptr [ebp + 8] */ 5859 PUSH32(esp, edi); /* 0x3615BA57: push edi */ 5860 edi = ecx; /* 0x3615BA58: mov edi, ecx */ 5861 PUSH32(esp, 0x61u); /* 0x3615BA5A: push 0x61 */ 5862 ecx = esi; /* 0x3615BA5C: mov ecx, esi */ 5863 RECOMP_ICALL(MEM32(0x3616FAE8)); /* 0x3615BA5E: call dword ptr [0x3616fae8] */ 5864 RECOMP_FLAGS_IN(); 5865 eax = MEM32(edi + 0x4); /* 0x3615BA64: mov eax, dword ptr [edi + 4] */ 5866 ecx = esi; /* 0x3615BA67: mov ecx, esi */ 5867 PUSH32(esp, eax); /* 0x3615BA69: push eax */ 5868 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615BA6A: call dword ptr [0x3616faec] */ 5869 RECOMP_FLAGS_IN(); 5870 eax = MEM32(edi + 0x4); /* 0x3615BA70: mov eax, dword ptr [edi + 4] */ 5871 /* test eax, eax */ /* 0x3615BA73: test eax, eax */ 5872 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5873 _cf = 0; 5874 _flag_k = FK_TEST; 5875 if (TEST_Z(_flag_a, _flag_b)) goto L_3615BA84; /* 0x3615BA75: je 0x3615ba84 */ 5876 L_3615BA77: 5877 ecx = MEM32(edi + 0x8); /* 0x3615BA77: mov ecx, dword ptr [edi + 8] */ 5878 PUSH32(esp, eax); /* 0x3615BA7A: push eax */ 5879 PUSH32(esp, ecx); /* 0x3615BA7B: push ecx */ 5880 ecx = esi; /* 0x3615BA7C: mov ecx, esi */ 5881 RECOMP_ICALL(MEM32(0x3616FAB0)); /* 0x3615BA7E: call dword ptr [0x3616fab0] */ 5882 RECOMP_FLAGS_IN(); 5883 L_3615BA84: 5884 eax = esi; /* 0x3615BA84: mov eax, esi */ 5885 edi = POP32_VAL(esp); /* 0x3615BA86: pop edi */ 5886 esi = POP32_VAL(esp); /* 0x3615BA87: pop esi */ 5887 ebp = POP32_VAL(esp); /* 0x3615BA88: pop ebp */ 5888 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BA89: ret 4 */ 5889 RECOMP_REGS_OUT(); 5890 } 5891 5892 void sub_3615BA90(void) { 5893 int _fpu_cmp = 0; 5894 uint32_t _cf = 0; 5895 int _df = 1; 5896 uint32_t _flag_k = FK_NONE; 5897 uint32_t _flag_a = 0, _flag_b = 0; 5898 uint32_t _itail_tgt = 0; 5899 RECOMP_REGS_LOCALS 5900 RECOMP_ENTER(0x3615BA90u); 5901 5902 L_3615BA90: 5903 PUSH32(esp, ebp); /* 0x3615BA90: push ebp */ 5904 ebp = esp; /* 0x3615BA91: mov ebp, esp */ 5905 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 5906 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5907 esp = esp - 0x10u; /* 0x3615BA93: sub esp, 0x10 */ 5908 _flag_k = FK_CMP; 5909 PUSH32(esp, ebx); /* 0x3615BA96: push ebx */ 5910 PUSH32(esp, esi); /* 0x3615BA97: push esi */ 5911 PUSH32(esp, edi); /* 0x3615BA98: push edi */ 5912 edi = ecx; /* 0x3615BA99: mov edi, ecx */ 5913 MEM8(ebp + (-0x1)) = (uint8_t)(0x30u); /* 0x3615BA9B: mov byte ptr [ebp - 1], 0x30 */ 5914 eax = MEM32(edi + 0x8); /* 0x3615BA9F: mov eax, dword ptr [edi + 8] */ 5915 PUSH32(esp, eax); /* 0x3615BAA2: push eax */ 5916 RECOMP_ICALL(0x3615FCC4u); /* 0x3615BAA3: call 0x3615fcc4 */ /* not lifted */ 5917 RECOMP_FLAGS_IN(); 5918 ebx = MEM32(ebp + 0x8); /* 0x3615BAA8: mov ebx, dword ptr [ebp + 8] */ 5919 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5920 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5921 esp = esp + 4; /* 0x3615BAAB: add esp, 4 */ 5922 _flag_k = FK_ADD; 5923 ecx = ebp + (-0x1); /* 0x3615BAAE: lea ecx, [ebp - 1] */ 5924 esi = edi + 0x4; /* 0x3615BAB1: lea esi, [edi + 4] */ 5925 PUSH32(esp, ecx); /* 0x3615BAB4: push ecx */ 5926 ecx = ebx; /* 0x3615BAB5: mov ecx, ebx */ 5927 MEM32(edi + 0x8) = 0; /* 0x3615BAB7: mov dword ptr [edi + 8], 0 */ 5928 MEM32(esi) = 0; /* 0x3615BABE: mov dword ptr [esi], 0 */ 5929 RECOMP_ICALL(MEM32(0x3616FAE0)); /* 0x3615BAC4: call dword ptr [0x3616fae0] */ 5930 RECOMP_FLAGS_IN(); 5931 /* cmp MEM8(ebp + (-0x1)), 0x61u */ /* 0x3615BACA: cmp byte ptr [ebp - 1], 0x61 */ 5932 _flag_a = (uint32_t)(MEM8(ebp + (-0x1))) << 24; _flag_b = (uint32_t)(0x61u) << 24; 5933 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 5934 _flag_k = FK_NARROW(FK_CMP, 24); 5935 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615BAE7; /* 0x3615BACE: je 0x3615bae7 */ 5936 L_3615BAD0: 5937 ecx = ebp + (-0x10); /* 0x3615BAD0: lea ecx, [ebp - 0x10] */ 5938 RECOMP_ICALL(MEM32(0x3616F228)); /* 0x3615BAD3: call dword ptr [0x3616f228] */ 5939 RECOMP_FLAGS_IN(); 5940 edx = ebp + (-0x10); /* 0x3615BAD9: lea edx, [ebp - 0x10] */ 5941 PUSH32(esp, 0x36194D80u); /* 0x3615BADC: push 0x36194d80 */ 5942 PUSH32(esp, edx); /* 0x3615BAE1: push edx */ 5943 RECOMP_ICALL(0x3615FD70u); /* 0x3615BAE2: call 0x3615fd70 */ /* not lifted */ 5944 RECOMP_FLAGS_IN(); 5945 L_3615BAE7: 5946 PUSH32(esp, esi); /* 0x3615BAE7: push esi */ 5947 ecx = ebx; /* 0x3615BAE8: mov ecx, ebx */ 5948 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615BAEA: call dword ptr [0x3616fa8c] */ 5949 RECOMP_FLAGS_IN(); 5950 eax = MEM32(esi); /* 0x3615BAF0: mov eax, dword ptr [esi] */ 5951 /* test eax, eax */ /* 0x3615BAF2: test eax, eax */ 5952 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 5953 _cf = 0; 5954 _flag_k = FK_TEST; 5955 if (TEST_Z(_flag_a, _flag_b)) goto L_3615BB0E; /* 0x3615BAF4: je 0x3615bb0e */ 5956 L_3615BAF6: 5957 PUSH32(esp, eax); /* 0x3615BAF6: push eax */ 5958 RECOMP_ICALL(0x3615FD6Au); /* 0x3615BAF7: call 0x3615fd6a */ /* not lifted */ 5959 RECOMP_FLAGS_IN(); 5960 ecx = MEM32(esi); /* 0x3615BAFC: mov ecx, dword ptr [esi] */ 5961 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 5962 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 5963 esp = esp + 4; /* 0x3615BAFE: add esp, 4 */ 5964 _flag_k = FK_ADD; 5965 MEM32(edi + 0x8) = eax; /* 0x3615BB01: mov dword ptr [edi + 8], eax */ 5966 PUSH32(esp, ecx); /* 0x3615BB04: push ecx */ 5967 PUSH32(esp, eax); /* 0x3615BB05: push eax */ 5968 ecx = ebx; /* 0x3615BB06: mov ecx, ebx */ 5969 RECOMP_ICALL(MEM32(0x3616FAC4)); /* 0x3615BB08: call dword ptr [0x3616fac4] */ 5970 RECOMP_FLAGS_IN(); 5971 L_3615BB0E: 5972 edi = POP32_VAL(esp); /* 0x3615BB0E: pop edi */ 5973 eax = ebx; /* 0x3615BB0F: mov eax, ebx */ 5974 esi = POP32_VAL(esp); /* 0x3615BB11: pop esi */ 5975 ebx = POP32_VAL(esp); /* 0x3615BB12: pop ebx */ 5976 esp = ebp; /* 0x3615BB13: mov esp, ebp */ 5977 ebp = POP32_VAL(esp); /* 0x3615BB15: pop ebp */ 5978 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BB16: ret 4 */ 5979 RECOMP_REGS_OUT(); 5980 } 5981 5982 void sub_3615BB20(void) { 5983 int _fpu_cmp = 0; 5984 uint32_t _cf = 0; 5985 int _df = 1; 5986 uint32_t _flag_k = FK_NONE; 5987 uint32_t _flag_a = 0, _flag_b = 0; 5988 uint32_t _itail_tgt = 0; 5989 RECOMP_REGS_LOCALS 5990 RECOMP_ENTER(0x3615BB20u); 5991 5992 L_3615BB20: 5993 PUSH32(esp, ebp); /* 0x3615BB20: push ebp */ 5994 ebp = esp; /* 0x3615BB21: mov ebp, esp */ 5995 ecx = MEM32(ebp + 0xC); /* 0x3615BB23: mov ecx, dword ptr [ebp + 0xc] */ 5996 edx = MEM32(ebp + 0x8); /* 0x3615BB26: mov edx, dword ptr [ebp + 8] */ 5997 PUSH32(esp, edx); /* 0x3615BB29: push edx */ 5998 eax = MEM32(ecx); /* 0x3615BB2A: mov eax, dword ptr [ecx] */ 5999 RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x3615BB2C: call dword ptr [eax + 4] */ 6000 RECOMP_FLAGS_IN(); 6001 ebp = POP32_VAL(esp); /* 0x3615BB2F: pop ebp */ 6002 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BB30: ret */ 6003 RECOMP_REGS_OUT(); 6004 } 6005 6006 void sub_3615BB40(void) { 6007 int _fpu_cmp = 0; 6008 uint32_t _cf = 0; 6009 int _df = 1; 6010 uint32_t _flag_k = FK_NONE; 6011 uint32_t _flag_a = 0, _flag_b = 0; 6012 uint32_t _itail_tgt = 0; 6013 RECOMP_REGS_LOCALS 6014 RECOMP_ENTER(0x3615BB40u); 6015 6016 L_3615BB40: 6017 PUSH32(esp, ebp); /* 0x3615BB40: push ebp */ 6018 ebp = esp; /* 0x3615BB41: mov ebp, esp */ 6019 ecx = MEM32(ebp + 0xC); /* 0x3615BB43: mov ecx, dword ptr [ebp + 0xc] */ 6020 edx = MEM32(ebp + 0x8); /* 0x3615BB46: mov edx, dword ptr [ebp + 8] */ 6021 PUSH32(esp, edx); /* 0x3615BB49: push edx */ 6022 eax = MEM32(ecx); /* 0x3615BB4A: mov eax, dword ptr [ecx] */ 6023 RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x3615BB4C: call dword ptr [eax + 8] */ 6024 RECOMP_FLAGS_IN(); 6025 ebp = POP32_VAL(esp); /* 0x3615BB4F: pop ebp */ 6026 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BB50: ret */ 6027 RECOMP_REGS_OUT(); 6028 } 6029 6030 void sub_3615BB60(void) { 6031 int _fpu_cmp = 0; 6032 uint32_t _cf = 0; 6033 int _df = 1; 6034 uint32_t _flag_k = FK_NONE; 6035 uint32_t _flag_a = 0, _flag_b = 0; 6036 uint32_t _itail_tgt = 0; 6037 RECOMP_REGS_LOCALS 6038 RECOMP_ENTER(0x3615BB60u); 6039 6040 L_3615BB60: 6041 eax = ecx; /* 0x3615BB60: mov eax, ecx */ 6042 MEM32(eax + 0x4) = 1; /* 0x3615BB62: mov dword ptr [eax + 4], 1 */ 6043 MEM32(eax) = 0x36178E10u; /* 0x3615BB69: mov dword ptr [eax], 0x36178e10 */ 6044 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BB6F: ret */ 6045 RECOMP_REGS_OUT(); 6046 } 6047 6048 void sub_3615BB70(void) { 6049 int _fpu_cmp = 0; 6050 uint32_t _cf = 0; 6051 int _df = 1; 6052 uint32_t _flag_k = FK_NONE; 6053 uint32_t _flag_a = 0, _flag_b = 0; 6054 uint32_t _itail_tgt = 0; 6055 RECOMP_REGS_LOCALS 6056 RECOMP_ENTER(0x3615BB70u); 6057 6058 L_3615BB70: 6059 PUSH32(esp, ebp); /* 0x3615BB70: push ebp */ 6060 ebp = esp; /* 0x3615BB71: mov ebp, esp */ 6061 PUSH32(esp, esi); /* 0x3615BB73: push esi */ 6062 esi = ecx; /* 0x3615BB74: mov esi, ecx */ 6063 RECOMP_ICALL(0x3615BBA0u); /* 0x3615BB76: call 0x3615bba0 */ /* not lifted */ 6064 RECOMP_FLAGS_IN(); 6065 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615BB7B: test byte ptr [ebp + 8], 1 */ 6066 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 6067 _cf = 0; 6068 _flag_k = FK_NARROW(FK_TEST, 24); 6069 if (TEST_Z(_flag_a, _flag_b)) goto L_3615BB8A; /* 0x3615BB7F: je 0x3615bb8a */ 6070 L_3615BB81: 6071 PUSH32(esp, esi); /* 0x3615BB81: push esi */ 6072 RECOMP_ICALL(0x3615FCC4u); /* 0x3615BB82: call 0x3615fcc4 */ /* not lifted */ 6073 RECOMP_FLAGS_IN(); 6074 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6075 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6076 esp = esp + 4; /* 0x3615BB87: add esp, 4 */ 6077 _flag_k = FK_ADD; 6078 L_3615BB8A: 6079 eax = esi; /* 0x3615BB8A: mov eax, esi */ 6080 esi = POP32_VAL(esp); /* 0x3615BB8C: pop esi */ 6081 ebp = POP32_VAL(esp); /* 0x3615BB8D: pop ebp */ 6082 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BB8E: ret 4 */ 6083 RECOMP_REGS_OUT(); 6084 } 6085 6086 void sub_3615BBA0(void) { 6087 int _fpu_cmp = 0; 6088 uint32_t _cf = 0; 6089 int _df = 1; 6090 uint32_t _flag_k = FK_NONE; 6091 uint32_t _flag_a = 0, _flag_b = 0; 6092 uint32_t _itail_tgt = 0; 6093 RECOMP_REGS_LOCALS 6094 RECOMP_ENTER(0x3615BBA0u); 6095 6096 L_3615BBA0: 6097 MEM32(ecx) = 0x36178E10u; /* 0x3615BBA0: mov dword ptr [ecx], 0x36178e10 */ 6098 MEM32(ecx + 0x4) = 0xDEADBEAFu; /* 0x3615BBA6: mov dword ptr [ecx + 4], 0xdeadbeaf */ 6099 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BBAD: ret */ 6100 RECOMP_REGS_OUT(); 6101 } 6102 6103 void sub_3615BBB0(void) { 6104 int _fpu_cmp = 0; 6105 uint32_t _cf = 0; 6106 int _df = 1; 6107 uint32_t _flag_k = FK_NONE; 6108 uint32_t _flag_a = 0, _flag_b = 0; 6109 uint32_t _itail_tgt = 0; 6110 RECOMP_REGS_LOCALS 6111 RECOMP_ENTER(0x3615BBB0u); 6112 6113 L_3615BBB0: 6114 edx = MEM32(ecx + 0x4); /* 0x3615BBB0: mov edx, dword ptr [ecx + 4] */ 6115 PUSH32(esp, esi); /* 0x3615BBB3: push esi */ 6116 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6117 edx = edx - 1; /* 0x3615BBB4: dec edx */ 6118 _flag_k = FK_DEC; 6119 esi = edx; /* 0x3615BBB5: mov esi, edx */ 6120 MEM32(ecx + 0x4) = edx; /* 0x3615BBB7: mov dword ptr [ecx + 4], edx */ 6121 /* test esi, esi */ /* 0x3615BBBA: test esi, esi */ 6122 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi); 6123 _cf = 0; 6124 _flag_k = FK_TEST; 6125 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615BBC8; /* 0x3615BBBC: jne 0x3615bbc8 */ 6126 L_3615BBBE: 6127 /* test ecx, ecx */ /* 0x3615BBBE: test ecx, ecx */ 6128 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 6129 _cf = 0; 6130 _flag_k = FK_TEST; 6131 if (TEST_Z(_flag_a, _flag_b)) goto L_3615BBC8; /* 0x3615BBC0: je 0x3615bbc8 */ 6132 L_3615BBC2: 6133 eax = MEM32(ecx); /* 0x3615BBC2: mov eax, dword ptr [ecx] */ 6134 PUSH32(esp, 1); /* 0x3615BBC4: push 1 */ 6135 RECOMP_ICALL(MEM32(eax)); /* 0x3615BBC6: call dword ptr [eax] */ 6136 RECOMP_FLAGS_IN(); 6137 L_3615BBC8: 6138 eax = esi; /* 0x3615BBC8: mov eax, esi */ 6139 esi = POP32_VAL(esp); /* 0x3615BBCA: pop esi */ 6140 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BBCB: ret */ 6141 RECOMP_REGS_OUT(); 6142 } 6143 6144 void sub_3615BBD0(void) { 6145 int _fpu_cmp = 0; 6146 uint32_t _cf = 0; 6147 int _df = 1; 6148 uint32_t _flag_k = FK_NONE; 6149 uint32_t _flag_a = 0, _flag_b = 0; 6150 uint32_t _itail_tgt = 0; 6151 RECOMP_REGS_LOCALS 6152 RECOMP_ENTER(0x3615BBD0u); 6153 6154 L_3615BBD0: 6155 RECOMP_ICALL(0x3615BBE0u); /* 0x3615BBD0: call 0x3615bbe0 */ /* not lifted */ 6156 RECOMP_FLAGS_IN(); 6157 goto L_3615BBF0; /* 0x3615BBD5: jmp 0x3615bbf0 */ 6158 L_3615BBF0: 6159 PUSH32(esp, 0x3615BC00u); /* 0x3615BBF0: push 0x3615bc00 */ 6160 RECOMP_ICALL(0x3615FEB2u); /* 0x3615BBF5: call 0x3615feb2 */ /* not lifted */ 6161 RECOMP_FLAGS_IN(); 6162 ecx = POP32_VAL(esp); /* 0x3615BBFA: pop ecx */ 6163 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BBFB: ret */ 6164 RECOMP_REGS_OUT(); 6165 } 6166 6167 void sub_3615BBE0(void) { 6168 int _fpu_cmp = 0; 6169 uint32_t _cf = 0; 6170 int _df = 1; 6171 uint32_t _flag_k = FK_NONE; 6172 uint32_t _flag_a = 0, _flag_b = 0; 6173 uint32_t _itail_tgt = 0; 6174 RECOMP_REGS_LOCALS 6175 RECOMP_ENTER(0x3615BBE0u); 6176 6177 L_3615BBE0: 6178 PUSH32(esp, 0xE6F1u); /* 0x3615BBE0: push 0xe6f1 */ 6179 ecx = 0x3630DBB8u; /* 0x3615BBE5: mov ecx, 0x3630dbb8 */ 6180 RECOMP_ICALL(0x3615BC20u); /* 0x3615BBEA: call 0x3615bc20 */ /* not lifted */ 6181 RECOMP_FLAGS_IN(); 6182 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BBEF: ret */ 6183 RECOMP_REGS_OUT(); 6184 } 6185 6186 void sub_3615BBF0(void) { 6187 int _fpu_cmp = 0; 6188 uint32_t _cf = 0; 6189 int _df = 1; 6190 uint32_t _flag_k = FK_NONE; 6191 uint32_t _flag_a = 0, _flag_b = 0; 6192 uint32_t _itail_tgt = 0; 6193 RECOMP_REGS_LOCALS 6194 RECOMP_ENTER(0x3615BBF0u); 6195 6196 L_3615BBF0: 6197 PUSH32(esp, 0x3615BC00u); /* 0x3615BBF0: push 0x3615bc00 */ 6198 RECOMP_ICALL(0x3615FEB2u); /* 0x3615BBF5: call 0x3615feb2 */ /* not lifted */ 6199 RECOMP_FLAGS_IN(); 6200 ecx = POP32_VAL(esp); /* 0x3615BBFA: pop ecx */ 6201 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BBFB: ret */ 6202 RECOMP_REGS_OUT(); 6203 } 6204 6205 void sub_3615BC00(void) { 6206 int _fpu_cmp = 0; 6207 uint32_t _cf = 0; 6208 int _df = 1; 6209 uint32_t _flag_k = FK_NONE; 6210 uint32_t _flag_a = 0, _flag_b = 0; 6211 uint32_t _itail_tgt = 0; 6212 RECOMP_REGS_LOCALS 6213 RECOMP_ENTER(0x3615BC00u); 6214 6215 L_3615BC00: 6216 SET_LO8(ecx, MEM8(0x3630DFA4)); /* 0x3615BC00: mov cl, byte ptr [0x3630dfa4] */ 6217 SET_LO8(eax, 1); /* 0x3615BC06: mov al, 1 */ 6218 /* test LO8(eax), LO8(ecx) */ /* 0x3615BC08: test al, cl */ 6219 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24; 6220 _cf = 0; 6221 _flag_k = FK_NARROW(FK_TEST, 24); 6222 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615BC14; /* 0x3615BC0A: jne 0x3615bc14 */ 6223 L_3615BC0C: 6224 _flag_a = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; _flag_b = (uint32_t)((LO8(ecx) | LO8(eax))) << 24; 6225 SET_LO8(ecx, LO8(ecx) | LO8(eax)); /* 0x3615BC0C: or cl, al */ 6226 _cf = 0; 6227 _flag_k = FK_NARROW(FK_TEST, 24); 6228 MEM8(0x3630DFA4) = (uint8_t)(LO8(ecx)); /* 0x3615BC0E: mov byte ptr [0x3630dfa4], cl */ 6229 L_3615BC14: 6230 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BC14: ret */ 6231 RECOMP_REGS_OUT(); 6232 } 6233 6234 void sub_3615BC20(void) { 6235 int _fpu_cmp = 0; 6236 uint32_t _cf = 0; 6237 int _df = 1; 6238 uint32_t _flag_k = FK_NONE; 6239 uint32_t _flag_a = 0, _flag_b = 0; 6240 uint32_t _itail_tgt = 0; 6241 RECOMP_REGS_LOCALS 6242 RECOMP_ENTER(0x3615BC20u); 6243 6244 L_3615BC20: 6245 PUSH32(esp, ebp); /* 0x3615BC20: push ebp */ 6246 ebp = esp; /* 0x3615BC21: mov ebp, esp */ 6247 eax = MEM32(ebp + 0x8); /* 0x3615BC23: mov eax, dword ptr [ebp + 8] */ 6248 PUSH32(esp, esi); /* 0x3615BC26: push esi */ 6249 esi = ecx; /* 0x3615BC27: mov esi, ecx */ 6250 PUSH32(esp, eax); /* 0x3615BC29: push eax */ 6251 RECOMP_ICALL(0x3615BC40u); /* 0x3615BC2A: call 0x3615bc40 */ /* not lifted */ 6252 RECOMP_FLAGS_IN(); 6253 eax = esi; /* 0x3615BC2F: mov eax, esi */ 6254 esi = POP32_VAL(esp); /* 0x3615BC31: pop esi */ 6255 ebp = POP32_VAL(esp); /* 0x3615BC32: pop ebp */ 6256 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BC33: ret 4 */ 6257 RECOMP_REGS_OUT(); 6258 } 6259 6260 void sub_3615BC40(void) { 6261 int _fpu_cmp = 0; 6262 uint32_t _cf = 0; 6263 int _df = 1; 6264 uint32_t _flag_k = FK_NONE; 6265 uint32_t _flag_a = 0, _flag_b = 0; 6266 uint32_t _itail_tgt = 0; 6267 RECOMP_REGS_LOCALS 6268 RECOMP_ENTER(0x3615BC40u); 6269 6270 L_3615BC40: 6271 PUSH32(esp, ebp); /* 0x3615BC40: push ebp */ 6272 ebp = esp; /* 0x3615BC41: mov ebp, esp */ 6273 edx = MEM32(ebp + 0x8); /* 0x3615BC43: mov edx, dword ptr [ebp + 8] */ 6274 PUSH32(esp, esi); /* 0x3615BC46: push esi */ 6275 eax = ecx; /* 0x3615BC47: mov eax, ecx */ 6276 PUSH32(esp, edi); /* 0x3615BC49: push edi */ 6277 ecx = 0xFAu; /* 0x3615BC4A: mov ecx, 0xfa */ 6278 esi = 0x36178E18u; /* 0x3615BC4F: mov esi, 0x36178e18 */ 6279 edi = eax; /* 0x3615BC54: mov edi, eax */ 6280 if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x3615BC56: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; } 6281 ecx = edx; /* 0x3615BC58: mov ecx, edx */ 6282 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 6283 ecx = ecx & 0xFFu; /* 0x3615BC5A: and ecx, 0xff */ 6284 _cf = 0; 6285 _flag_k = FK_TEST; 6286 /* cmp ecx, 0xF9u */ /* 0x3615BC60: cmp ecx, 0xf9 */ 6287 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xF9u); 6288 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6289 _flag_k = FK_CMP; 6290 MEM32(eax + 0x3E8) = ecx; /* 0x3615BC66: mov dword ptr [eax + 0x3e8], ecx */ 6291 if (CMP_LE(_flag_a, _flag_b)) goto L_3615BC73; /* 0x3615BC6C: jle 0x3615bc73 */ 6292 L_3615BC6E: 6293 ecx = 0xF9u; /* 0x3615BC6E: mov ecx, 0xf9 */ 6294 L_3615BC73: 6295 MEM32(eax + 0x3E8) = ecx; /* 0x3615BC73: mov dword ptr [eax + 0x3e8], ecx */ 6296 esi = MEM32(eax + ecx * 4); /* 0x3615BC79: mov esi, dword ptr [eax + ecx*4] */ 6297 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6298 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6299 esi = esi + edx; /* 0x3615BC7C: add esi, edx */ 6300 _flag_k = FK_ADD; 6301 edi = POP32_VAL(esp); /* 0x3615BC7E: pop edi */ 6302 MEM32(eax + ecx * 4) = esi; /* 0x3615BC7F: mov dword ptr [eax + ecx*4], esi */ 6303 esi = POP32_VAL(esp); /* 0x3615BC82: pop esi */ 6304 ebp = POP32_VAL(esp); /* 0x3615BC83: pop ebp */ 6305 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BC84: ret 4 */ 6306 RECOMP_REGS_OUT(); 6307 } 6308 6309 void sub_3615BC90(void) { 6310 int _fpu_cmp = 0; 6311 uint32_t _cf = 0; 6312 int _df = 1; 6313 uint32_t _flag_k = FK_NONE; 6314 uint32_t _flag_a = 0, _flag_b = 0; 6315 uint32_t _itail_tgt = 0; 6316 RECOMP_REGS_LOCALS 6317 RECOMP_ENTER(0x3615BC90u); 6318 6319 L_3615BC90: 6320 edx = MEM32(ecx + 0x3E8); /* 0x3615BC90: mov edx, dword ptr [ecx + 0x3e8] */ 6321 /* cmp edx, 0x93u */ /* 0x3615BC96: cmp edx, 0x93 */ 6322 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x93u); 6323 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6324 _flag_k = FK_CMP; 6325 eax = edx + (-0x93); /* 0x3615BC9C: lea eax, [edx - 0x93] */ 6326 if (CMP_GE(_flag_a, _flag_b)) goto L_3615BCA7; /* 0x3615BCA2: jge 0x3615bca7 */ 6327 L_3615BCA4: 6328 eax = edx + 0x67; /* 0x3615BCA4: lea eax, [edx + 0x67] */ 6329 L_3615BCA7: 6330 eax = MEM32(ecx + eax * 4); /* 0x3615BCA7: mov eax, dword ptr [ecx + eax*4] */ 6331 PUSH32(esp, esi); /* 0x3615BCAA: push esi */ 6332 esi = MEM32(ecx + edx * 4); /* 0x3615BCAB: mov esi, dword ptr [ecx + edx*4] */ 6333 _flag_a = (uint32_t)((eax ^ esi)); _flag_b = (uint32_t)((eax ^ esi)); 6334 eax = eax ^ esi; /* 0x3615BCAE: xor eax, esi */ 6335 _cf = 0; 6336 _flag_k = FK_TEST; 6337 esi = POP32_VAL(esp); /* 0x3615BCB0: pop esi */ 6338 MEM32(ecx + edx * 4) = eax; /* 0x3615BCB1: mov dword ptr [ecx + edx*4], eax */ 6339 edx = MEM32(ecx + 0x3E8); /* 0x3615BCB4: mov edx, dword ptr [ecx + 0x3e8] */ 6340 /* cmp edx, 0xF9u */ /* 0x3615BCBA: cmp edx, 0xf9 */ 6341 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xF9u); 6342 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6343 _flag_k = FK_CMP; 6344 if (CMP_L(_flag_a, _flag_b)) goto L_3615BCCD; /* 0x3615BCC0: jl 0x3615bccd */ 6345 L_3615BCC2: 6346 MEM32(ecx + 0x3E8) = 0; /* 0x3615BCC2: mov dword ptr [ecx + 0x3e8], 0 */ 6347 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BCCC: ret */ 6348 L_3615BCCD: 6349 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6350 edx = edx + 1; /* 0x3615BCCD: inc edx */ 6351 _flag_k = FK_INC; 6352 MEM32(ecx + 0x3E8) = edx; /* 0x3615BCCE: mov dword ptr [ecx + 0x3e8], edx */ 6353 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BCD4: ret */ 6354 RECOMP_REGS_OUT(); 6355 } 6356 6357 void sub_3615BCCC(void) { 6358 int _fpu_cmp = 0; 6359 uint32_t _cf = 0; 6360 int _df = 1; 6361 uint32_t _flag_k = FK_NONE; 6362 uint32_t _flag_a = 0, _flag_b = 0; 6363 uint32_t _itail_tgt = 0; 6364 RECOMP_REGS_LOCALS 6365 RECOMP_ENTER(0x3615BCCCu); 6366 6367 L_3615BCCC: 6368 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BCCC: ret */ 6369 RECOMP_REGS_OUT(); 6370 } 6371 6372 void sub_3615BCE0(void) { 6373 int _fpu_cmp = 0; 6374 uint32_t _cf = 0; 6375 int _df = 1; 6376 uint32_t _flag_k = FK_NONE; 6377 uint32_t _flag_a = 0, _flag_b = 0; 6378 uint32_t _itail_tgt = 0; 6379 RECOMP_REGS_LOCALS 6380 RECOMP_ENTER(0x3615BCE0u); 6381 6382 L_3615BCE0: 6383 PUSH32(esp, ebp); /* 0x3615BCE0: push ebp */ 6384 ebp = esp; /* 0x3615BCE1: mov ebp, esp */ 6385 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6386 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6387 esp = esp - 8; /* 0x3615BCE3: sub esp, 8 */ 6388 _flag_k = FK_CMP; 6389 edx = MEM32(ecx + 0x3E8); /* 0x3615BCE6: mov edx, dword ptr [ecx + 0x3e8] */ 6390 /* cmp edx, 0x93u */ /* 0x3615BCEC: cmp edx, 0x93 */ 6391 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x93u); 6392 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6393 _flag_k = FK_CMP; 6394 eax = edx + (-0x93); /* 0x3615BCF2: lea eax, [edx - 0x93] */ 6395 if (CMP_GE(_flag_a, _flag_b)) goto L_3615BCFD; /* 0x3615BCF8: jge 0x3615bcfd */ 6396 L_3615BCFA: 6397 eax = edx + 0x67; /* 0x3615BCFA: lea eax, [edx + 0x67] */ 6398 L_3615BCFD: 6399 eax = MEM32(ecx + eax * 4); /* 0x3615BCFD: mov eax, dword ptr [ecx + eax*4] */ 6400 PUSH32(esp, edi); /* 0x3615BD00: push edi */ 6401 edi = MEM32(ecx + edx * 4); /* 0x3615BD01: mov edi, dword ptr [ecx + edx*4] */ 6402 _flag_a = (uint32_t)((eax ^ edi)); _flag_b = (uint32_t)((eax ^ edi)); 6403 eax = eax ^ edi; /* 0x3615BD04: xor eax, edi */ 6404 _cf = 0; 6405 _flag_k = FK_TEST; 6406 edi = POP32_VAL(esp); /* 0x3615BD06: pop edi */ 6407 MEM32(ecx + edx * 4) = eax; /* 0x3615BD07: mov dword ptr [ecx + edx*4], eax */ 6408 edx = MEM32(ecx + 0x3E8); /* 0x3615BD0A: mov edx, dword ptr [ecx + 0x3e8] */ 6409 /* cmp edx, 0xF9u */ /* 0x3615BD10: cmp edx, 0xf9 */ 6410 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xF9u); 6411 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6412 _flag_k = FK_CMP; 6413 if (CMP_L(_flag_a, _flag_b)) goto L_3615BD24; /* 0x3615BD16: jl 0x3615bd24 */ 6414 L_3615BD18: 6415 MEM32(ecx + 0x3E8) = 0; /* 0x3615BD18: mov dword ptr [ecx + 0x3e8], 0 */ 6416 goto L_3615BD2B; /* 0x3615BD22: jmp 0x3615bd2b */ 6417 L_3615BD24: 6418 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(1); 6419 edx = edx + 1; /* 0x3615BD24: inc edx */ 6420 _flag_k = FK_INC; 6421 MEM32(ecx + 0x3E8) = edx; /* 0x3615BD25: mov dword ptr [ecx + 0x3e8], edx */ 6422 L_3615BD2B: 6423 MEM32(ebp + (-0x8)) = eax; /* 0x3615BD2B: mov dword ptr [ebp - 8], eax */ 6424 MEM32(ebp + (-0x4)) = 0; /* 0x3615BD2E: mov dword ptr [ebp - 4], 0 */ 6425 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x3615BD35: fild qword ptr [ebp - 8] */ 6426 _st[0] *= (double)*(float*)ADDR(0x36179200); /* 0x3615BD38: fmul dword ptr [0x36179200] */ 6427 esp = ebp; /* 0x3615BD3E: mov esp, ebp */ 6428 ebp = POP32_VAL(esp); /* 0x3615BD40: pop ebp */ 6429 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BD41: ret */ 6430 RECOMP_REGS_OUT(); 6431 } 6432 6433 void sub_3615BD22(void) { 6434 int _fpu_cmp = 0; 6435 uint32_t _cf = 0; 6436 int _df = 1; 6437 uint32_t _flag_k = FK_NONE; 6438 uint32_t _flag_a = 0, _flag_b = 0; 6439 uint32_t _itail_tgt = 0; 6440 RECOMP_REGS_LOCALS 6441 RECOMP_ENTER(0x3615BD22u); 6442 6443 L_3615BD22: 6444 goto L_3615BD2B; /* 0x3615BD22: jmp 0x3615bd2b */ 6445 L_3615BD2B: 6446 MEM32(ebp + (-0x8)) = eax; /* 0x3615BD2B: mov dword ptr [ebp - 8], eax */ 6447 MEM32(ebp + (-0x4)) = 0; /* 0x3615BD2E: mov dword ptr [ebp - 4], 0 */ 6448 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x3615BD35: fild qword ptr [ebp - 8] */ 6449 _st[0] *= (double)*(float*)ADDR(0x36179200); /* 0x3615BD38: fmul dword ptr [0x36179200] */ 6450 esp = ebp; /* 0x3615BD3E: mov esp, ebp */ 6451 ebp = POP32_VAL(esp); /* 0x3615BD40: pop ebp */ 6452 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BD41: ret */ 6453 RECOMP_REGS_OUT(); 6454 } 6455 6456 void sub_3615BD2B(void) { 6457 int _fpu_cmp = 0; 6458 uint32_t _cf = 0; 6459 int _df = 1; 6460 uint32_t _flag_k = FK_NONE; 6461 uint32_t _flag_a = 0, _flag_b = 0; 6462 uint32_t _itail_tgt = 0; 6463 RECOMP_REGS_LOCALS 6464 RECOMP_ENTER(0x3615BD2Bu); 6465 6466 L_3615BD2B: 6467 MEM32(ebp + (-0x8)) = eax; /* 0x3615BD2B: mov dword ptr [ebp - 8], eax */ 6468 MEM32(ebp + (-0x4)) = 0; /* 0x3615BD2E: mov dword ptr [ebp - 4], 0 */ 6469 fp_push_i64((int64_t)MEM64(ebp + (-0x8))); /* 0x3615BD35: fild qword ptr [ebp - 8] */ 6470 _st[0] *= (double)*(float*)ADDR(0x36179200); /* 0x3615BD38: fmul dword ptr [0x36179200] */ 6471 esp = ebp; /* 0x3615BD3E: mov esp, ebp */ 6472 ebp = POP32_VAL(esp); /* 0x3615BD40: pop ebp */ 6473 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BD41: ret */ 6474 RECOMP_REGS_OUT(); 6475 } 6476 6477 void sub_3615BD50(void) { 6478 int _fpu_cmp = 0; 6479 uint32_t _cf = 0; 6480 int _df = 1; 6481 uint32_t _flag_k = FK_NONE; 6482 uint32_t _flag_a = 0, _flag_b = 0; 6483 uint32_t _itail_tgt = 0; 6484 RECOMP_REGS_LOCALS 6485 RECOMP_ENTER(0x3615BD50u); 6486 6487 L_3615BD50: 6488 PUSH32(esp, ebp); /* 0x3615BD50: push ebp */ 6489 ebp = esp; /* 0x3615BD51: mov ebp, esp */ 6490 PUSH32(esp, 0xFFFFFFFFu); /* 0x3615BD53: push -1 */ 6491 PUSH32(esp, 0x3616E07Bu); /* 0x3615BD55: push 0x3616e07b */ 6492 eax = MEM32(FS_BASE + (0)); /* 0x3615BD5A: mov eax, dword ptr fs:[0] */ 6493 PUSH32(esp, eax); /* 0x3615BD60: push eax */ 6494 MEM32(FS_BASE + (0)) = esp; /* 0x3615BD61: mov dword ptr fs:[0], esp */ 6495 PUSH32(esp, ecx); /* 0x3615BD68: push ecx */ 6496 eax = MEM32(0x3630DFA8); /* 0x3615BD69: mov eax, dword ptr [0x3630dfa8] */ 6497 /* test eax, eax */ /* 0x3615BD6E: test eax, eax */ 6498 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6499 _cf = 0; 6500 _flag_k = FK_TEST; 6501 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615BDAB; /* 0x3615BD70: jne 0x3615bdab */ 6502 L_3615BD72: 6503 PUSH32(esp, 1); /* 0x3615BD72: push 1 */ 6504 RECOMP_ICALL(0x3615FD6Au); /* 0x3615BD74: call 0x3615fd6a */ /* not lifted */ 6505 RECOMP_FLAGS_IN(); 6506 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6507 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6508 esp = esp + 4; /* 0x3615BD79: add esp, 4 */ 6509 _flag_k = FK_ADD; 6510 MEM32(ebp + (-0x10)) = eax; /* 0x3615BD7C: mov dword ptr [ebp - 0x10], eax */ 6511 /* test eax, eax */ /* 0x3615BD7F: test eax, eax */ 6512 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 6513 _cf = 0; 6514 _flag_k = FK_TEST; 6515 MEM32(ebp + (-0x4)) = 0; /* 0x3615BD81: mov dword ptr [ebp - 4], 0 */ 6516 if (TEST_Z(_flag_a, _flag_b)) goto L_3615BDA4; /* 0x3615BD88: je 0x3615bda4 */ 6517 L_3615BD8A: 6518 ecx = eax; /* 0x3615BD8A: mov ecx, eax */ 6519 RECOMP_ICALL(0x360F0F30u); /* 0x3615BD8C: call 0x360f0f30 */ /* not lifted */ 6520 RECOMP_FLAGS_IN(); 6521 MEM32(0x3630DFA8) = eax; /* 0x3615BD91: mov dword ptr [0x3630dfa8], eax */ 6522 ecx = MEM32(ebp + (-0xC)); /* 0x3615BD96: mov ecx, dword ptr [ebp - 0xc] */ 6523 MEM32(FS_BASE + (0)) = ecx; /* 0x3615BD99: mov dword ptr fs:[0], ecx */ 6524 esp = ebp; /* 0x3615BDA0: mov esp, ebp */ 6525 ebp = POP32_VAL(esp); /* 0x3615BDA2: pop ebp */ 6526 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BDA3: ret */ 6527 L_3615BDA4: 6528 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6529 eax = 0; /* 0x3615BDA4: xor eax, eax */ 6530 _cf = 0; 6531 _flag_k = FK_TEST; 6532 MEM32(0x3630DFA8) = eax; /* 0x3615BDA6: mov dword ptr [0x3630dfa8], eax */ 6533 L_3615BDAB: 6534 ecx = MEM32(ebp + (-0xC)); /* 0x3615BDAB: mov ecx, dword ptr [ebp - 0xc] */ 6535 MEM32(FS_BASE + (0)) = ecx; /* 0x3615BDAE: mov dword ptr fs:[0], ecx */ 6536 esp = ebp; /* 0x3615BDB5: mov esp, ebp */ 6537 ebp = POP32_VAL(esp); /* 0x3615BDB7: pop ebp */ 6538 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615BDB8: ret */ 6539 RECOMP_REGS_OUT(); 6540 } 6541 6542 void sub_3615BDC0(void) { 6543 int _fpu_cmp = 0; 6544 uint32_t _cf = 0; 6545 int _df = 1; 6546 uint32_t _flag_k = FK_NONE; 6547 uint32_t _flag_a = 0, _flag_b = 0; 6548 uint32_t _itail_tgt = 0; 6549 RECOMP_REGS_LOCALS 6550 RECOMP_ENTER(0x3615BDC0u); 6551 6552 L_3615BDC0: 6553 PUSH32(esp, ebp); /* 0x3615BDC0: push ebp */ 6554 ebp = esp; /* 0x3615BDC1: mov ebp, esp */ 6555 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu); 6556 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6557 esp = esp - 0xCu; /* 0x3615BDC3: sub esp, 0xc */ 6558 _flag_k = FK_CMP; 6559 PUSH32(esp, ebx); /* 0x3615BDC6: push ebx */ 6560 PUSH32(esp, esi); /* 0x3615BDC7: push esi */ 6561 esi = MEM32(ebp + 0x8); /* 0x3615BDC8: mov esi, dword ptr [ebp + 8] */ 6562 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6563 ebx = 0; /* 0x3615BDCB: xor ebx, ebx */ 6564 _cf = 0; 6565 _flag_k = FK_TEST; 6566 /* cmp esi, ebx */ /* 0x3615BDCD: cmp esi, ebx */ 6567 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6568 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6569 _flag_k = FK_CMP; 6570 PUSH32(esp, edi); /* 0x3615BDCF: push edi */ 6571 if (CMP_NE(_flag_a, _flag_b)) goto L_3615BDDD; /* 0x3615BDD0: jne 0x3615bddd */ 6572 L_3615BDD2: 6573 edi = POP32_VAL(esp); /* 0x3615BDD2: pop edi */ 6574 esi = POP32_VAL(esp); /* 0x3615BDD3: pop esi */ 6575 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6576 eax = 0; /* 0x3615BDD4: xor eax, eax */ 6577 _cf = 0; 6578 _flag_k = FK_TEST; 6579 ebx = POP32_VAL(esp); /* 0x3615BDD6: pop ebx */ 6580 esp = ebp; /* 0x3615BDD7: mov esp, ebp */ 6581 ebp = POP32_VAL(esp); /* 0x3615BDD9: pop ebp */ 6582 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BDDA: ret 4 */ 6583 L_3615BDDD: 6584 edi = esi; /* 0x3615BDDD: mov edi, esi */ 6585 _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu)); 6586 ecx = ecx | 0xFFFFFFFFu; /* 0x3615BDDF: or ecx, 0xffffffff */ 6587 _cf = 0; 6588 _flag_k = FK_TEST; 6589 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6590 eax = 0; /* 0x3615BDE2: xor eax, eax */ 6591 _cf = 0; 6592 _flag_k = FK_TEST; 6593 MEM32(ebp + (-0x4)) = ebx; /* 0x3615BDE4: mov dword ptr [ebp - 4], ebx */ 6594 if (ecx) { uint32_t _a = 0, _b = 0; while (ecx) { _a = LO8(eax); _b = MEM8(edi); edi += _df; ecx--; if (_a == _b) break; } _flag_a = _a; _flag_b = _b; _cf = (uint32_t)CMP_B(_a, _b); _flag_k = FK_CMP; } /* 0x3615BDE7: repne scasb al, byte ptr es:[edi] */ 6595 ecx = ~ecx; /* 0x3615BDE9: not ecx */ 6596 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1); 6597 ecx = ecx - 1; /* 0x3615BDEB: dec ecx */ 6598 _flag_k = FK_DEC; 6599 MEM32(ebp + (-0x8)) = ecx; /* 0x3615BDEC: mov dword ptr [ebp - 8], ecx */ 6600 if (/* dec result */ CMP_NE(_flag_a, _flag_b)) goto L_3615BDFA; /* 0x3615BDEF: jne 0x3615bdfa */ 6601 L_3615BDF1: 6602 edi = POP32_VAL(esp); /* 0x3615BDF1: pop edi */ 6603 esi = POP32_VAL(esp); /* 0x3615BDF2: pop esi */ 6604 ebx = POP32_VAL(esp); /* 0x3615BDF3: pop ebx */ 6605 esp = ebp; /* 0x3615BDF4: mov esp, ebp */ 6606 ebp = POP32_VAL(esp); /* 0x3615BDF6: pop ebp */ 6607 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BDF7: ret 4 */ 6608 L_3615BDFA: 6609 /* cmp ecx, 0xFFu */ /* 0x3615BDFA: cmp ecx, 0xff */ 6610 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFu); 6611 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6612 _flag_k = FK_CMP; 6613 if (CMP_LE(_flag_a, _flag_b)) goto L_3615BE0C; /* 0x3615BE00: jle 0x3615be0c */ 6614 L_3615BE02: 6615 MEM32(ebp + (-0x8)) = 0xFFu; /* 0x3615BE02: mov dword ptr [ebp - 8], 0xff */ 6616 ecx = MEM32(ebp + (-0x8)); /* 0x3615BE09: mov ecx, dword ptr [ebp - 8] */ 6617 L_3615BE0C: 6618 eax = ecx; /* 0x3615BE0C: mov eax, ecx */ 6619 if (2u) _cf = (((eax) >> 1) & 1u); /* 0x3615BE0E: sar eax, 2 */ 6620 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)eax >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6621 eax = (uint32_t)((int32_t)eax >> 2u); 6622 /* cmp eax, ebx */ /* 0x3615BE11: cmp eax, ebx */ 6623 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx); 6624 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6625 _flag_k = FK_CMP; 6626 MEM32(ebp + (-0xC)) = eax; /* 0x3615BE13: mov dword ptr [ebp - 0xc], eax */ 6627 if (CMP_LE(_flag_a, _flag_b)) goto L_3615BEA2; /* 0x3615BE16: jle 0x3615bea2 */ 6628 L_3615BE1C: 6629 edi = esi + 0x2; /* 0x3615BE1C: lea edi, [esi + 2] */ 6630 L_3615BE1F: 6631 eax = (int32_t)(int8_t)MEM8(edi + (-0x2)); /* 0x3615BE1F: movsx eax, byte ptr [edi - 2] */ 6632 PUSH32(esp, eax); /* 0x3615BE23: push eax */ 6633 RECOMP_ICALL(MEM32(0x3616F1BC)); /* 0x3615BE24: call dword ptr [0x3616f1bc] */ 6634 RECOMP_FLAGS_IN(); 6635 ecx = (int32_t)(int8_t)MEM8(edi + (-0x1)); /* 0x3615BE2A: movsx ecx, byte ptr [edi - 1] */ 6636 esi = eax; /* 0x3615BE2E: mov esi, eax */ 6637 PUSH32(esp, ecx); /* 0x3615BE30: push ecx */ 6638 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFu); 6639 esi = esi & 0xFFu; /* 0x3615BE31: and esi, 0xff */ 6640 _cf = 0; 6641 _flag_k = FK_TEST; 6642 if (8u) _cf = (((esi) >> 24) & 1u); /* 0x3615BE37: shl esi, 8 */ 6643 if (8u) { _flag_a = recomp_flags_pack((esi << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6644 esi = esi << 8u; /* 0x3615BE37: shl esi, 8 */ 6645 RECOMP_ICALL(MEM32(0x3616F1BC)); /* 0x3615BE3A: call dword ptr [0x3616f1bc] */ 6646 RECOMP_FLAGS_IN(); 6647 edx = (int32_t)(int8_t)MEM8(edi); /* 0x3615BE40: movsx edx, byte ptr [edi] */ 6648 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 6649 eax = eax & 0xFFu; /* 0x3615BE43: and eax, 0xff */ 6650 _cf = 0; 6651 _flag_k = FK_TEST; 6652 PUSH32(esp, edx); /* 0x3615BE48: push edx */ 6653 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6654 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6655 esi = esi + eax; /* 0x3615BE49: add esi, eax */ 6656 _flag_k = FK_ADD; 6657 if (8u) _cf = (((esi) >> 24) & 1u); /* 0x3615BE4B: shl esi, 8 */ 6658 if (8u) { _flag_a = recomp_flags_pack((esi << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6659 esi = esi << 8u; /* 0x3615BE4B: shl esi, 8 */ 6660 RECOMP_ICALL(MEM32(0x3616F1BC)); /* 0x3615BE4E: call dword ptr [0x3616f1bc] */ 6661 RECOMP_FLAGS_IN(); 6662 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 6663 eax = eax & 0xFFu; /* 0x3615BE54: and eax, 0xff */ 6664 _cf = 0; 6665 _flag_k = FK_TEST; 6666 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6667 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6668 esi = esi + eax; /* 0x3615BE59: add esi, eax */ 6669 _flag_k = FK_ADD; 6670 eax = (int32_t)(int8_t)MEM8(edi + 0x1); /* 0x3615BE5B: movsx eax, byte ptr [edi + 1] */ 6671 PUSH32(esp, eax); /* 0x3615BE5F: push eax */ 6672 if (8u) _cf = (((esi) >> 24) & 1u); /* 0x3615BE60: shl esi, 8 */ 6673 if (8u) { _flag_a = recomp_flags_pack((esi << 8u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6674 esi = esi << 8u; /* 0x3615BE60: shl esi, 8 */ 6675 RECOMP_ICALL(MEM32(0x3616F1BC)); /* 0x3615BE63: call dword ptr [0x3616f1bc] */ 6676 RECOMP_FLAGS_IN(); 6677 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 6678 eax = eax & 0xFFu; /* 0x3615BE69: and eax, 0xff */ 6679 _cf = 0; 6680 _flag_k = FK_TEST; 6681 ecx = 0x20u; /* 0x3615BE6E: mov ecx, 0x20 */ 6682 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 6683 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6684 esi = esi + eax; /* 0x3615BE73: add esi, eax */ 6685 _flag_k = FK_ADD; 6686 eax = ebx; /* 0x3615BE75: mov eax, ebx */ 6687 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x1Fu); 6688 eax = eax & 0x1Fu; /* 0x3615BE77: and eax, 0x1f */ 6689 _cf = 0; 6690 _flag_k = FK_TEST; 6691 edx = esi; /* 0x3615BE7A: mov edx, esi */ 6692 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 6693 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6694 ecx = ecx - eax; /* 0x3615BE7C: sub ecx, eax */ 6695 _flag_k = FK_CMP; 6696 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 6697 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6698 esp = esp + 0x10u; /* 0x3615BE7E: add esp, 0x10 */ 6699 _flag_k = FK_ADD; 6700 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> ((((LO8(ecx)) & 31)) - 1)) & 1u) : 0u); /* 0x3615BE81: shr edx, cl */ 6701 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx >> ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6702 edx = edx >> ((LO8(ecx)) & 31); /* 0x3615BE81: shr edx, cl */ 6703 ecx = eax; /* 0x3615BE83: mov ecx, eax */ 6704 eax = MEM32(ebp + (-0xC)); /* 0x3615BE85: mov eax, dword ptr [ebp - 0xc] */ 6705 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((esi) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3615BE88: shl esi, cl */ 6706 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((esi << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6707 esi = esi << ((LO8(ecx)) & 31); /* 0x3615BE88: shl esi, cl */ 6708 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(4); 6709 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6710 edi = edi + 4; /* 0x3615BE8A: add edi, 4 */ 6711 _flag_k = FK_ADD; 6712 _flag_a = (uint32_t)((edx | esi)); _flag_b = (uint32_t)((edx | esi)); 6713 edx = edx | esi; /* 0x3615BE8D: or edx, esi */ 6714 _cf = 0; 6715 _flag_k = FK_TEST; 6716 esi = MEM32(ebp + (-0x4)); /* 0x3615BE8F: mov esi, dword ptr [ebp - 4] */ 6717 _flag_a = (uint32_t)((esi ^ edx)); _flag_b = (uint32_t)((esi ^ edx)); 6718 esi = esi ^ edx; /* 0x3615BE92: xor esi, edx */ 6719 _cf = 0; 6720 _flag_k = FK_TEST; 6721 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1); 6722 ebx = ebx + 1; /* 0x3615BE94: inc ebx */ 6723 _flag_k = FK_INC; 6724 /* cmp ebx, eax */ /* 0x3615BE95: cmp ebx, eax */ 6725 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 6726 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6727 _flag_k = FK_CMP; 6728 MEM32(ebp + (-0x4)) = esi; /* 0x3615BE97: mov dword ptr [ebp - 4], esi */ 6729 RECOMP_BACKEDGE(); 6730 if (CMP_L(_flag_a, _flag_b)) goto L_3615BE1F; /* 0x3615BE9A: jl 0x3615be1f */ 6731 L_3615BE9C: 6732 esi = MEM32(ebp + 0x8); /* 0x3615BE9C: mov esi, dword ptr [ebp + 8] */ 6733 ecx = MEM32(ebp + (-0x8)); /* 0x3615BE9F: mov ecx, dword ptr [ebp - 8] */ 6734 L_3615BEA2: 6735 /* test LO8(ecx), 3 */ /* 0x3615BEA2: test cl, 3 */ 6736 _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(3) << 24; 6737 _cf = 0; 6738 _flag_k = FK_NARROW(FK_TEST, 24); 6739 if (TEST_Z(_flag_a, _flag_b)) goto L_3615BF3A; /* 0x3615BEA5: je 0x3615bf3a */ 6740 L_3615BEAB: 6741 eax = ebx * 4 + 0x1; /* 0x3615BEAB: lea eax, [ebx*4 + 1] */ 6742 /* cmp eax, ecx */ /* 0x3615BEB2: cmp eax, ecx */ 6743 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6744 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6745 _flag_k = FK_CMP; 6746 if (CMP_GE(_flag_a, _flag_b)) goto L_3615BED5; /* 0x3615BEB4: jge 0x3615bed5 */ 6747 L_3615BEB6: 6748 ecx = (int32_t)(int8_t)MEM8(esi + ebx * 4 + 0x1); /* 0x3615BEB6: movsx ecx, byte ptr [esi + ebx*4 + 1] */ 6749 PUSH32(esp, ecx); /* 0x3615BEBB: push ecx */ 6750 RECOMP_ICALL(MEM32(0x3616F1BC)); /* 0x3615BEBC: call dword ptr [0x3616f1bc] */ 6751 RECOMP_FLAGS_IN(); 6752 ecx = MEM32(ebp + (-0x8)); /* 0x3615BEC2: mov ecx, dword ptr [ebp - 8] */ 6753 edi = eax; /* 0x3615BEC5: mov edi, eax */ 6754 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFu); 6755 edi = edi & 0xFFu; /* 0x3615BEC7: and edi, 0xff */ 6756 _cf = 0; 6757 _flag_k = FK_TEST; 6758 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6760 esp = esp + 4; /* 0x3615BECD: add esp, 4 */ 6761 _flag_k = FK_ADD; 6762 if (16u) _cf = (((edi) >> 16) & 1u); /* 0x3615BED0: shl edi, 0x10 */ 6763 if (16u) { _flag_a = recomp_flags_pack((edi << 16u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6764 edi = edi << 16u; /* 0x3615BED0: shl edi, 0x10 */ 6765 goto L_3615BED7; /* 0x3615BED3: jmp 0x3615bed7 */ 6766 L_3615BED5: 6767 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6768 edi = 0; /* 0x3615BED5: xor edi, edi */ 6769 _cf = 0; 6770 _flag_k = FK_TEST; 6771 L_3615BED7: 6772 edx = ebx * 4 + 0x2; /* 0x3615BED7: lea edx, [ebx*4 + 2] */ 6773 /* cmp edx, ecx */ /* 0x3615BEDE: cmp edx, ecx */ 6774 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6775 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6776 _flag_k = FK_CMP; 6777 if (CMP_GE(_flag_a, _flag_b)) goto L_3615BEFA; /* 0x3615BEE0: jge 0x3615befa */ 6778 L_3615BEE2: 6779 eax = (int32_t)(int8_t)MEM8(esi + ebx * 4 + 0x2); /* 0x3615BEE2: movsx eax, byte ptr [esi + ebx*4 + 2] */ 6780 PUSH32(esp, eax); /* 0x3615BEE7: push eax */ 6781 RECOMP_ICALL(MEM32(0x3616F1BC)); /* 0x3615BEE8: call dword ptr [0x3616f1bc] */ 6782 RECOMP_FLAGS_IN(); 6783 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6784 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6785 esp = esp + 4; /* 0x3615BEEE: add esp, 4 */ 6786 _flag_k = FK_ADD; 6787 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 6788 ecx = 0; /* 0x3615BEF1: xor ecx, ecx */ 6789 _cf = 0; 6790 _flag_k = FK_TEST; 6791 SET_HI8(ecx, LO8(eax)); /* 0x3615BEF3: mov ch, al */ 6792 MEM32(ebp + 0x8) = ecx; /* 0x3615BEF5: mov dword ptr [ebp + 8], ecx */ 6793 goto L_3615BF01; /* 0x3615BEF8: jmp 0x3615bf01 */ 6794 L_3615BEFA: 6795 MEM32(ebp + 0x8) = 0; /* 0x3615BEFA: mov dword ptr [ebp + 8], 0 */ 6796 L_3615BF01: 6797 edx = (int32_t)(int8_t)MEM8(esi + ebx * 4); /* 0x3615BF01: movsx edx, byte ptr [esi + ebx*4] */ 6798 PUSH32(esp, edx); /* 0x3615BF05: push edx */ 6799 RECOMP_ICALL(MEM32(0x3616F1BC)); /* 0x3615BF06: call dword ptr [0x3616f1bc] */ 6800 RECOMP_FLAGS_IN(); 6801 edx = MEM32(ebp + 0x8); /* 0x3615BF0C: mov edx, dword ptr [ebp + 8] */ 6802 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFu); 6803 eax = eax & 0xFFu; /* 0x3615BF0F: and eax, 0xff */ 6804 _cf = 0; 6805 _flag_k = FK_TEST; 6806 if (24u) _cf = (((eax) >> 8) & 1u); /* 0x3615BF14: shl eax, 0x18 */ 6807 if (24u) { _flag_a = recomp_flags_pack((eax << 24u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6808 eax = eax << 24u; /* 0x3615BF14: shl eax, 0x18 */ 6809 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx); 6810 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6811 eax = eax + edx; /* 0x3615BF17: add eax, edx */ 6812 _flag_k = FK_ADD; 6813 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(0x1Fu); 6814 ebx = ebx & 0x1Fu; /* 0x3615BF19: and ebx, 0x1f */ 6815 _cf = 0; 6816 _flag_k = FK_TEST; 6817 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6818 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6819 eax = eax + edi; /* 0x3615BF1C: add eax, edi */ 6820 _flag_k = FK_ADD; 6821 ecx = 0x20u; /* 0x3615BF1E: mov ecx, 0x20 */ 6822 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx); 6823 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6824 ecx = ecx - ebx; /* 0x3615BF23: sub ecx, ebx */ 6825 _flag_k = FK_CMP; 6826 edx = eax; /* 0x3615BF25: mov edx, eax */ 6827 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((edx) >> ((((LO8(ecx)) & 31)) - 1)) & 1u) : 0u); /* 0x3615BF27: shr edx, cl */ 6828 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((edx >> ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6829 edx = edx >> ((LO8(ecx)) & 31); /* 0x3615BF27: shr edx, cl */ 6830 ecx = ebx; /* 0x3615BF29: mov ecx, ebx */ 6831 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 6832 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6833 esp = esp + 4; /* 0x3615BF2B: add esp, 4 */ 6834 _flag_k = FK_ADD; 6835 if (((LO8(ecx)) & 31)) _cf = ((((LO8(ecx)) & 31)) <= 32 ? (((eax) >> (32 - (((LO8(ecx)) & 31)))) & 1u) : 0u); /* 0x3615BF2E: shl eax, cl */ 6836 if (((LO8(ecx)) & 31)) { _flag_a = recomp_flags_pack((eax << ((LO8(ecx)) & 31)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 6837 eax = eax << ((LO8(ecx)) & 31); /* 0x3615BF2E: shl eax, cl */ 6838 _flag_a = (uint32_t)((edx | eax)); _flag_b = (uint32_t)((edx | eax)); 6839 edx = edx | eax; /* 0x3615BF30: or edx, eax */ 6840 _cf = 0; 6841 _flag_k = FK_TEST; 6842 eax = MEM32(ebp + (-0x4)); /* 0x3615BF32: mov eax, dword ptr [ebp - 4] */ 6843 _flag_a = (uint32_t)((eax ^ edx)); _flag_b = (uint32_t)((eax ^ edx)); 6844 eax = eax ^ edx; /* 0x3615BF35: xor eax, edx */ 6845 _cf = 0; 6846 _flag_k = FK_TEST; 6847 MEM32(ebp + (-0x4)) = eax; /* 0x3615BF37: mov dword ptr [ebp - 4], eax */ 6848 L_3615BF3A: 6849 eax = MEM32(ebp + (-0x4)); /* 0x3615BF3A: mov eax, dword ptr [ebp - 4] */ 6850 edi = POP32_VAL(esp); /* 0x3615BF3D: pop edi */ 6851 esi = POP32_VAL(esp); /* 0x3615BF3E: pop esi */ 6852 ebx = POP32_VAL(esp); /* 0x3615BF3F: pop ebx */ 6853 esp = ebp; /* 0x3615BF40: mov esp, ebp */ 6854 ebp = POP32_VAL(esp); /* 0x3615BF42: pop ebp */ 6855 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BF43: ret 4 */ 6856 RECOMP_REGS_OUT(); 6857 } 6858 6859 void sub_3615BF50(void) { 6860 int _fpu_cmp = 0; 6861 uint32_t _cf = 0; 6862 int _df = 1; 6863 uint32_t _flag_k = FK_NONE; 6864 uint32_t _flag_a = 0, _flag_b = 0; 6865 uint32_t _itail_tgt = 0; 6866 RECOMP_REGS_LOCALS 6867 RECOMP_ENTER(0x3615BF50u); 6868 6869 L_3615BF50: 6870 PUSH32(esp, ebp); /* 0x3615BF50: push ebp */ 6871 ebp = esp; /* 0x3615BF51: mov ebp, esp */ 6872 eax = MEM32(ecx + 0x8); /* 0x3615BF53: mov eax, dword ptr [ecx + 8] */ 6873 PUSH32(esp, esi); /* 0x3615BF56: push esi */ 6874 esi = MEM32(ecx + 0xC); /* 0x3615BF57: mov esi, dword ptr [ecx + 0xc] */ 6875 PUSH32(esp, edi); /* 0x3615BF5A: push edi */ 6876 /* cmp eax, esi */ /* 0x3615BF5B: cmp eax, esi */ 6877 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6878 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6879 _flag_k = FK_CMP; 6880 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615BF78; /* 0x3615BF5D: je 0x3615bf78 */ 6881 L_3615BF5F: 6882 edx = MEM32(ebp + 0x8); /* 0x3615BF5F: mov edx, dword ptr [ebp + 8] */ 6883 L_3615BF62: 6884 ecx = MEM32(eax); /* 0x3615BF62: mov ecx, dword ptr [eax] */ 6885 /* cmp edx, ecx */ /* 0x3615BF64: cmp edx, ecx */ 6886 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 6887 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6888 _flag_k = FK_CMP; 6889 if (CMP_L(_flag_a, _flag_b)) goto L_3615BF71; /* 0x3615BF66: jl 0x3615bf71 */ 6890 L_3615BF68: 6891 edi = MEM32(eax + 0x4); /* 0x3615BF68: mov edi, dword ptr [eax + 4] */ 6892 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ecx); 6893 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6894 edi = edi + ecx; /* 0x3615BF6B: add edi, ecx */ 6895 _flag_k = FK_ADD; 6896 /* cmp edx, edi */ /* 0x3615BF6D: cmp edx, edi */ 6897 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edi); 6898 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6899 _flag_k = FK_CMP; 6900 if (CMP_L(_flag_a, _flag_b)) goto L_3615BF80; /* 0x3615BF6F: jl 0x3615bf80 */ 6901 L_3615BF71: 6902 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6903 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6904 eax = eax + 0xCu; /* 0x3615BF71: add eax, 0xc */ 6905 _flag_k = FK_ADD; 6906 /* cmp eax, esi */ /* 0x3615BF74: cmp eax, esi */ 6907 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 6908 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6909 _flag_k = FK_CMP; 6910 RECOMP_BACKEDGE(); 6911 if (CMP_NE(_flag_a, _flag_b)) goto L_3615BF62; /* 0x3615BF76: jne 0x3615bf62 */ 6912 L_3615BF78: 6913 edi = POP32_VAL(esp); /* 0x3615BF78: pop edi */ 6914 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 6915 SET_LO8(eax, 0); /* 0x3615BF79: xor al, al */ 6916 _cf = 0; 6917 _flag_k = FK_NARROW(FK_TEST, 24); 6918 esi = POP32_VAL(esp); /* 0x3615BF7B: pop esi */ 6919 ebp = POP32_VAL(esp); /* 0x3615BF7C: pop ebp */ 6920 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BF7D: ret 4 */ 6921 L_3615BF80: 6922 edi = POP32_VAL(esp); /* 0x3615BF80: pop edi */ 6923 SET_LO8(eax, 1); /* 0x3615BF81: mov al, 1 */ 6924 esi = POP32_VAL(esp); /* 0x3615BF83: pop esi */ 6925 ebp = POP32_VAL(esp); /* 0x3615BF84: pop ebp */ 6926 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615BF85: ret 4 */ 6927 RECOMP_REGS_OUT(); 6928 } 6929 6930 void sub_3615BF90(void) { 6931 int _fpu_cmp = 0; 6932 uint32_t _cf = 0; 6933 int _df = 1; 6934 uint32_t _flag_k = FK_NONE; 6935 uint32_t _flag_a = 0, _flag_b = 0; 6936 uint32_t _itail_tgt = 0; 6937 RECOMP_REGS_LOCALS 6938 RECOMP_ENTER(0x3615BF90u); 6939 6940 L_3615BF90: 6941 PUSH32(esp, ebp); /* 0x3615BF90: push ebp */ 6942 ebp = esp; /* 0x3615BF91: mov ebp, esp */ 6943 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 6944 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6945 esp = esp - 8; /* 0x3615BF93: sub esp, 8 */ 6946 _flag_k = FK_CMP; 6947 eax = MEM32(ecx + 0x8); /* 0x3615BF96: mov eax, dword ptr [ecx + 8] */ 6948 PUSH32(esp, ebx); /* 0x3615BF99: push ebx */ 6949 PUSH32(esp, esi); /* 0x3615BF9A: push esi */ 6950 PUSH32(esp, edi); /* 0x3615BF9B: push edi */ 6951 edi = MEM32(ecx + 0xC); /* 0x3615BF9C: mov edi, dword ptr [ecx + 0xc] */ 6952 /* cmp eax, edi */ /* 0x3615BF9F: cmp eax, edi */ 6953 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6954 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6955 _flag_k = FK_CMP; 6956 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615BFBC; /* 0x3615BFA1: je 0x3615bfbc */ 6957 L_3615BFA3: 6958 esi = MEM32(ebp + 0xC); /* 0x3615BFA3: mov esi, dword ptr [ebp + 0xc] */ 6959 L_3615BFA6: 6960 edx = MEM32(eax); /* 0x3615BFA6: mov edx, dword ptr [eax] */ 6961 /* cmp esi, edx */ /* 0x3615BFA8: cmp esi, edx */ 6962 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 6963 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6964 _flag_k = FK_CMP; 6965 if (CMP_L(_flag_a, _flag_b)) goto L_3615BFB5; /* 0x3615BFAA: jl 0x3615bfb5 */ 6966 L_3615BFAC: 6967 ebx = MEM32(eax + 0x4); /* 0x3615BFAC: mov ebx, dword ptr [eax + 4] */ 6968 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(edx); 6969 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6970 ebx = ebx + edx; /* 0x3615BFAF: add ebx, edx */ 6971 _flag_k = FK_ADD; 6972 /* cmp esi, ebx */ /* 0x3615BFB1: cmp esi, ebx */ 6973 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx); 6974 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6975 _flag_k = FK_CMP; 6976 if (CMP_L(_flag_a, _flag_b)) goto L_3615BFDC; /* 0x3615BFB3: jl 0x3615bfdc */ 6977 L_3615BFB5: 6978 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xCu); 6979 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 6980 eax = eax + 0xCu; /* 0x3615BFB5: add eax, 0xc */ 6981 _flag_k = FK_ADD; 6982 /* cmp eax, edi */ /* 0x3615BFB8: cmp eax, edi */ 6983 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi); 6984 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6985 _flag_k = FK_CMP; 6986 RECOMP_BACKEDGE(); 6987 if (CMP_NE(_flag_a, _flag_b)) goto L_3615BFA6; /* 0x3615BFBA: jne 0x3615bfa6 */ 6988 L_3615BFBC: 6989 eax = MEM32(ebp + 0x8); /* 0x3615BFBC: mov eax, dword ptr [ebp + 8] */ 6990 ecx = ebp + (-0x8); /* 0x3615BFBF: lea ecx, [ebp - 8] */ 6991 /* cmp eax, ecx */ /* 0x3615BFC2: cmp eax, ecx */ 6992 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 6993 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 6994 _flag_k = FK_CMP; 6995 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615BFD3; /* 0x3615BFC4: je 0x3615bfd3 */ 6996 L_3615BFC6: 6997 MEM32(eax) = 0; /* 0x3615BFC6: mov dword ptr [eax], 0 */ 6998 MEM32(eax + 0x4) = 0; /* 0x3615BFCC: mov dword ptr [eax + 4], 0 */ 6999 L_3615BFD3: 7000 edi = POP32_VAL(esp); /* 0x3615BFD3: pop edi */ 7001 esi = POP32_VAL(esp); /* 0x3615BFD4: pop esi */ 7002 ebx = POP32_VAL(esp); /* 0x3615BFD5: pop ebx */ 7003 esp = ebp; /* 0x3615BFD6: mov esp, ebp */ 7004 ebp = POP32_VAL(esp); /* 0x3615BFD8: pop ebp */ 7005 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615BFD9: ret 8 */ 7006 L_3615BFDC: 7007 edx = MEM32(ecx); /* 0x3615BFDC: mov edx, dword ptr [ecx] */ 7008 ecx = MEM32(eax + 0x8); /* 0x3615BFDE: mov ecx, dword ptr [eax + 8] */ 7009 edi = MEM32(eax); /* 0x3615BFE1: mov edi, dword ptr [eax] */ 7010 eax = MEM32(ebp + 0x8); /* 0x3615BFE3: mov eax, dword ptr [ebp + 8] */ 7011 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi); 7012 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7013 ecx = ecx - edi; /* 0x3615BFE6: sub ecx, edi */ 7014 _flag_k = FK_CMP; 7015 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(esi); 7016 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7017 ecx = ecx + esi; /* 0x3615BFE8: add ecx, esi */ 7018 _flag_k = FK_ADD; 7019 esi = ebp + (-0x8); /* 0x3615BFEA: lea esi, [ebp - 8] */ 7020 /* cmp eax, esi */ /* 0x3615BFED: cmp eax, esi */ 7021 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi); 7022 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7023 _flag_k = FK_CMP; 7024 RECOMP_BACKEDGE(); 7025 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615BFD3; /* 0x3615BFEF: je 0x3615bfd3 */ 7026 L_3615BFF1: 7027 edi = POP32_VAL(esp); /* 0x3615BFF1: pop edi */ 7028 esi = POP32_VAL(esp); /* 0x3615BFF2: pop esi */ 7029 MEM32(eax) = edx; /* 0x3615BFF3: mov dword ptr [eax], edx */ 7030 MEM32(eax + 0x4) = ecx; /* 0x3615BFF5: mov dword ptr [eax + 4], ecx */ 7031 ebx = POP32_VAL(esp); /* 0x3615BFF8: pop ebx */ 7032 esp = ebp; /* 0x3615BFF9: mov esp, ebp */ 7033 ebp = POP32_VAL(esp); /* 0x3615BFFB: pop ebp */ 7034 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615BFFC: ret 8 */ 7035 RECOMP_REGS_OUT(); 7036 } 7037 7038 void sub_3615C000(void) { 7039 int _fpu_cmp = 0; 7040 uint32_t _cf = 0; 7041 int _df = 1; 7042 uint32_t _flag_k = FK_NONE; 7043 uint32_t _flag_a = 0, _flag_b = 0; 7044 uint32_t _itail_tgt = 0; 7045 RECOMP_REGS_LOCALS 7046 RECOMP_ENTER(0x3615C000u); 7047 7048 L_3615C000: 7049 PUSH32(esp, ebp); /* 0x3615C000: push ebp */ 7050 ebp = esp; /* 0x3615C001: mov ebp, esp */ 7051 PUSH32(esp, ebx); /* 0x3615C003: push ebx */ 7052 ebx = MEM32(ebp + 0x8); /* 0x3615C004: mov ebx, dword ptr [ebp + 8] */ 7053 PUSH32(esp, esi); /* 0x3615C007: push esi */ 7054 esi = MEM32(0x3616FAEC); /* 0x3615C008: mov esi, dword ptr [0x3616faec] */ 7055 PUSH32(esp, edi); /* 0x3615C00E: push edi */ 7056 edi = ecx; /* 0x3615C00F: mov edi, ecx */ 7057 ecx = ebx; /* 0x3615C011: mov ecx, ebx */ 7058 eax = MEM32(edi); /* 0x3615C013: mov eax, dword ptr [edi] */ 7059 PUSH32(esp, eax); /* 0x3615C015: push eax */ 7060 RECOMP_ICALL(esi); /* 0x3615C016: call esi */ 7061 RECOMP_FLAGS_IN(); 7062 eax = MEM32(edi + 0x8); /* 0x3615C018: mov eax, dword ptr [edi + 8] */ 7063 /* test eax, eax */ /* 0x3615C01B: test eax, eax */ 7064 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7065 _cf = 0; 7066 _flag_k = FK_TEST; 7067 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615C023; /* 0x3615C01D: jne 0x3615c023 */ 7068 L_3615C01F: 7069 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7070 edx = 0; /* 0x3615C01F: xor edx, edx */ 7071 _cf = 0; 7072 _flag_k = FK_TEST; 7073 goto L_3615C038; /* 0x3615C021: jmp 0x3615c038 */ 7074 L_3615C023: 7075 ecx = MEM32(edi + 0xC); /* 0x3615C023: mov ecx, dword ptr [edi + 0xc] */ 7076 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7077 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7078 ecx = ecx - eax; /* 0x3615C026: sub ecx, eax */ 7079 _flag_k = FK_CMP; 7080 eax = 0x2AAAAAABu; /* 0x3615C028: mov eax, 0x2aaaaaab */ 7081 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3615C02D: imul ecx */ 7082 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7083 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7084 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3615C02F: sar edx, 1 */ 7085 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7086 edx = (uint32_t)((int32_t)edx >> 1u); 7087 ecx = edx; /* 0x3615C031: mov ecx, edx */ 7088 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3615C033: shr ecx, 0x1f */ 7089 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7090 ecx = ecx >> 31u; /* 0x3615C033: shr ecx, 0x1f */ 7091 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7092 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7093 edx = edx + ecx; /* 0x3615C036: add edx, ecx */ 7094 _flag_k = FK_ADD; 7095 L_3615C038: 7096 PUSH32(esp, edx); /* 0x3615C038: push edx */ 7097 ecx = ebx; /* 0x3615C039: mov ecx, ebx */ 7098 RECOMP_ICALL(esi); /* 0x3615C03B: call esi */ 7099 RECOMP_FLAGS_IN(); 7100 esi = MEM32(edi + 0x8); /* 0x3615C03D: mov esi, dword ptr [edi + 8] */ 7101 eax = MEM32(edi + 0xC); /* 0x3615C040: mov eax, dword ptr [edi + 0xc] */ 7102 /* cmp esi, eax */ /* 0x3615C043: cmp esi, eax */ 7103 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7104 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7105 _flag_k = FK_CMP; 7106 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615C074; /* 0x3615C045: je 0x3615c074 */ 7107 L_3615C047: 7108 edx = MEM32(esi); /* 0x3615C047: mov edx, dword ptr [esi] */ 7109 ecx = ebx; /* 0x3615C049: mov ecx, ebx */ 7110 PUSH32(esp, edx); /* 0x3615C04B: push edx */ 7111 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615C04C: call dword ptr [0x3616faec] */ 7112 RECOMP_FLAGS_IN(); 7113 eax = MEM32(esi + 0x4); /* 0x3615C052: mov eax, dword ptr [esi + 4] */ 7114 ecx = ebx; /* 0x3615C055: mov ecx, ebx */ 7115 PUSH32(esp, eax); /* 0x3615C057: push eax */ 7116 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615C058: call dword ptr [0x3616faec] */ 7117 RECOMP_FLAGS_IN(); 7118 ecx = MEM32(esi + 0x8); /* 0x3615C05E: mov ecx, dword ptr [esi + 8] */ 7119 PUSH32(esp, ecx); /* 0x3615C061: push ecx */ 7120 ecx = ebx; /* 0x3615C062: mov ecx, ebx */ 7121 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615C064: call dword ptr [0x3616faec] */ 7122 RECOMP_FLAGS_IN(); 7123 eax = MEM32(edi + 0xC); /* 0x3615C06A: mov eax, dword ptr [edi + 0xc] */ 7124 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7125 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7126 esi = esi + 0xCu; /* 0x3615C06D: add esi, 0xc */ 7127 _flag_k = FK_ADD; 7128 /* cmp esi, eax */ /* 0x3615C070: cmp esi, eax */ 7129 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7130 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7131 _flag_k = FK_CMP; 7132 RECOMP_BACKEDGE(); 7133 if (CMP_NE(_flag_a, _flag_b)) goto L_3615C047; /* 0x3615C072: jne 0x3615c047 */ 7134 L_3615C074: 7135 edi = POP32_VAL(esp); /* 0x3615C074: pop edi */ 7136 esi = POP32_VAL(esp); /* 0x3615C075: pop esi */ 7137 ebx = POP32_VAL(esp); /* 0x3615C076: pop ebx */ 7138 ebp = POP32_VAL(esp); /* 0x3615C077: pop ebp */ 7139 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615C078: ret 4 */ 7140 RECOMP_REGS_OUT(); 7141 } 7142 7143 void sub_3615C080(void) { 7144 int _fpu_cmp = 0; 7145 uint32_t _cf = 0; 7146 int _df = 1; 7147 uint32_t _flag_k = FK_NONE; 7148 uint32_t _flag_a = 0, _flag_b = 0; 7149 uint32_t _itail_tgt = 0; 7150 RECOMP_REGS_LOCALS 7151 RECOMP_ENTER(0x3615C080u); 7152 7153 L_3615C080: 7154 PUSH32(esp, ebp); /* 0x3615C080: push ebp */ 7155 ebp = esp; /* 0x3615C081: mov ebp, esp */ 7156 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u); 7157 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7158 esp = esp - 0x18u; /* 0x3615C083: sub esp, 0x18 */ 7159 _flag_k = FK_CMP; 7160 PUSH32(esp, ebx); /* 0x3615C086: push ebx */ 7161 ebx = MEM32(0x3616FA8C); /* 0x3615C087: mov ebx, dword ptr [0x3616fa8c] */ 7162 PUSH32(esp, esi); /* 0x3615C08D: push esi */ 7163 esi = MEM32(ebp + 0x8); /* 0x3615C08E: mov esi, dword ptr [ebp + 8] */ 7164 PUSH32(esp, edi); /* 0x3615C091: push edi */ 7165 edi = ecx; /* 0x3615C092: mov edi, ecx */ 7166 eax = ebp + (-0x8); /* 0x3615C094: lea eax, [ebp - 8] */ 7167 ecx = esi; /* 0x3615C097: mov ecx, esi */ 7168 PUSH32(esp, eax); /* 0x3615C099: push eax */ 7169 MEM32(ebp + (-0x4)) = edi; /* 0x3615C09A: mov dword ptr [ebp - 4], edi */ 7170 RECOMP_ICALL(ebx); /* 0x3615C09D: call ebx */ 7171 RECOMP_FLAGS_IN(); 7172 ecx = MEM32(ebp + (-0x8)); /* 0x3615C09F: mov ecx, dword ptr [ebp - 8] */ 7173 edx = ebp + (-0xC); /* 0x3615C0A2: lea edx, [ebp - 0xc] */ 7174 MEM32(edi) = ecx; /* 0x3615C0A5: mov dword ptr [edi], ecx */ 7175 PUSH32(esp, edx); /* 0x3615C0A7: push edx */ 7176 ecx = esi; /* 0x3615C0A8: mov ecx, esi */ 7177 RECOMP_ICALL(ebx); /* 0x3615C0AA: call ebx */ 7178 RECOMP_FLAGS_IN(); 7179 ecx = MEM32(edi + 0x8); /* 0x3615C0AC: mov ecx, dword ptr [edi + 8] */ 7180 ebx = edi + 0x4; /* 0x3615C0AF: lea ebx, [edi + 4] */ 7181 /* test ecx, ecx */ /* 0x3615C0B2: test ecx, ecx */ 7182 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7183 _cf = 0; 7184 _flag_k = FK_TEST; 7185 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615C0BA; /* 0x3615C0B4: jne 0x3615c0ba */ 7186 L_3615C0B6: 7187 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7188 edx = 0; /* 0x3615C0B6: xor edx, edx */ 7189 _cf = 0; 7190 _flag_k = FK_TEST; 7191 goto L_3615C0CF; /* 0x3615C0B8: jmp 0x3615c0cf */ 7192 L_3615C0BA: 7193 edx = MEM32(ebx + 0x8); /* 0x3615C0BA: mov edx, dword ptr [ebx + 8] */ 7194 eax = 0x2AAAAAABu; /* 0x3615C0BD: mov eax, 0x2aaaaaab */ 7195 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7196 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7197 edx = edx - ecx; /* 0x3615C0C2: sub edx, ecx */ 7198 _flag_k = FK_CMP; 7199 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3615C0C4: imul edx */ 7200 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7201 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7202 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3615C0C6: sar edx, 1 */ 7203 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7204 edx = (uint32_t)((int32_t)edx >> 1u); 7205 eax = edx; /* 0x3615C0C8: mov eax, edx */ 7206 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3615C0CA: shr eax, 0x1f */ 7207 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7208 eax = eax >> 31u; /* 0x3615C0CA: shr eax, 0x1f */ 7209 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7210 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7211 edx = edx + eax; /* 0x3615C0CD: add edx, eax */ 7212 _flag_k = FK_ADD; 7213 L_3615C0CF: 7214 esi = MEM32(ebp + (-0xC)); /* 0x3615C0CF: mov esi, dword ptr [ebp - 0xc] */ 7215 /* cmp edx, esi */ /* 0x3615C0D2: cmp edx, esi */ 7216 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(esi); 7217 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7218 _flag_k = FK_CMP; 7219 if (CMP_AE(_flag_a, _flag_b)) goto L_3615C107; /* 0x3615C0D4: jae 0x3615c107 */ 7220 L_3615C0D6: 7221 /* test ecx, ecx */ /* 0x3615C0D6: test ecx, ecx */ 7222 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7223 _cf = 0; 7224 _flag_k = FK_TEST; 7225 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615C0DE; /* 0x3615C0D8: jne 0x3615c0de */ 7226 L_3615C0DA: 7227 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7228 edx = 0; /* 0x3615C0DA: xor edx, edx */ 7229 _cf = 0; 7230 _flag_k = FK_TEST; 7231 goto L_3615C0F3; /* 0x3615C0DC: jmp 0x3615c0f3 */ 7232 L_3615C0DE: 7233 edx = MEM32(ebx + 0x8); /* 0x3615C0DE: mov edx, dword ptr [ebx + 8] */ 7234 eax = 0x2AAAAAABu; /* 0x3615C0E1: mov eax, 0x2aaaaaab */ 7235 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7236 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7237 edx = edx - ecx; /* 0x3615C0E6: sub edx, ecx */ 7238 _flag_k = FK_CMP; 7239 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3615C0E8: imul edx */ 7240 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7241 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7242 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3615C0EA: sar edx, 1 */ 7243 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7244 edx = (uint32_t)((int32_t)edx >> 1u); 7245 ecx = edx; /* 0x3615C0EC: mov ecx, edx */ 7246 if (31u) _cf = (((ecx) >> 30) & 1u); /* 0x3615C0EE: shr ecx, 0x1f */ 7247 if (31u) { _flag_a = recomp_flags_pack((ecx >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7248 ecx = ecx >> 31u; /* 0x3615C0EE: shr ecx, 0x1f */ 7249 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7250 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7251 edx = edx + ecx; /* 0x3615C0F1: add edx, ecx */ 7252 _flag_k = FK_ADD; 7253 L_3615C0F3: 7254 ecx = MEM32(ebx + 0x8); /* 0x3615C0F3: mov ecx, dword ptr [ebx + 8] */ 7255 eax = ebp + (-0x18); /* 0x3615C0F6: lea eax, [ebp - 0x18] */ 7256 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 7257 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7258 esi = esi - edx; /* 0x3615C0F9: sub esi, edx */ 7259 _flag_k = FK_CMP; 7260 PUSH32(esp, eax); /* 0x3615C0FB: push eax */ 7261 PUSH32(esp, esi); /* 0x3615C0FC: push esi */ 7262 PUSH32(esp, ecx); /* 0x3615C0FD: push ecx */ 7263 ecx = ebx; /* 0x3615C0FE: mov ecx, ebx */ 7264 RECOMP_ICALL(0x3615C4F0u); /* 0x3615C100: call 0x3615c4f0 */ /* not lifted */ 7265 RECOMP_FLAGS_IN(); 7266 goto L_3615C138; /* 0x3615C105: jmp 0x3615c138 */ 7267 L_3615C107: 7268 /* test ecx, ecx */ /* 0x3615C107: test ecx, ecx */ 7269 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx); 7270 _cf = 0; 7271 _flag_k = FK_TEST; 7272 if (TEST_Z(_flag_a, _flag_b)) goto L_3615C138; /* 0x3615C109: je 0x3615c138 */ 7273 L_3615C10B: 7274 edi = MEM32(ebx + 0x8); /* 0x3615C10B: mov edi, dword ptr [ebx + 8] */ 7275 eax = 0x2AAAAAABu; /* 0x3615C10E: mov eax, 0x2aaaaaab */ 7276 edx = edi; /* 0x3615C113: mov edx, edi */ 7277 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx); 7278 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7279 edx = edx - ecx; /* 0x3615C115: sub edx, ecx */ 7280 _flag_k = FK_CMP; 7281 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(edx); /* 0x3615C117: imul edx */ 7282 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7283 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7284 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3615C119: sar edx, 1 */ 7285 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7286 edx = (uint32_t)((int32_t)edx >> 1u); 7287 eax = edx; /* 0x3615C11B: mov eax, edx */ 7288 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3615C11D: shr eax, 0x1f */ 7289 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7290 eax = eax >> 31u; /* 0x3615C11D: shr eax, 0x1f */ 7291 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7292 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7293 edx = edx + eax; /* 0x3615C120: add edx, eax */ 7294 _flag_k = FK_ADD; 7295 /* cmp esi, edx */ /* 0x3615C122: cmp esi, edx */ 7296 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx); 7297 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7298 _flag_k = FK_CMP; 7299 if (CMP_AE(_flag_a, _flag_b)) goto L_3615C135; /* 0x3615C124: jae 0x3615c135 */ 7300 L_3615C126: 7301 edx = esi + esi * 2; /* 0x3615C126: lea edx, [esi + esi*2] */ 7302 PUSH32(esp, edi); /* 0x3615C129: push edi */ 7303 eax = ecx + edx * 4; /* 0x3615C12A: lea eax, [ecx + edx*4] */ 7304 ecx = ebx; /* 0x3615C12D: mov ecx, ebx */ 7305 PUSH32(esp, eax); /* 0x3615C12F: push eax */ 7306 RECOMP_ICALL(0x3615C820u); /* 0x3615C130: call 0x3615c820 */ /* not lifted */ 7307 RECOMP_FLAGS_IN(); 7308 L_3615C135: 7309 edi = MEM32(ebp + (-0x4)); /* 0x3615C135: mov edi, dword ptr [ebp - 4] */ 7310 L_3615C138: 7311 esi = MEM32(edi + 0x8); /* 0x3615C138: mov esi, dword ptr [edi + 8] */ 7312 eax = MEM32(edi + 0xC); /* 0x3615C13B: mov eax, dword ptr [edi + 0xc] */ 7313 /* cmp esi, eax */ /* 0x3615C13E: cmp esi, eax */ 7314 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7315 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7316 _flag_k = FK_CMP; 7317 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615C176; /* 0x3615C140: je 0x3615c176 */ 7318 L_3615C142: 7319 edi = esi + 0x8; /* 0x3615C142: lea edi, [esi + 8] */ 7320 L_3615C145: 7321 ecx = MEM32(ebp + 0x8); /* 0x3615C145: mov ecx, dword ptr [ebp + 8] */ 7322 PUSH32(esp, esi); /* 0x3615C148: push esi */ 7323 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615C149: call dword ptr [0x3616fa8c] */ 7324 RECOMP_FLAGS_IN(); 7325 ecx = edi + (-0x4); /* 0x3615C14F: lea ecx, [edi - 4] */ 7326 PUSH32(esp, ecx); /* 0x3615C152: push ecx */ 7327 ecx = MEM32(ebp + 0x8); /* 0x3615C153: mov ecx, dword ptr [ebp + 8] */ 7328 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615C156: call dword ptr [0x3616fa8c] */ 7329 RECOMP_FLAGS_IN(); 7330 ecx = MEM32(ebp + 0x8); /* 0x3615C15C: mov ecx, dword ptr [ebp + 8] */ 7331 PUSH32(esp, edi); /* 0x3615C15F: push edi */ 7332 RECOMP_ICALL(MEM32(0x3616FA8C)); /* 0x3615C160: call dword ptr [0x3616fa8c] */ 7333 RECOMP_FLAGS_IN(); 7334 edx = MEM32(ebp + (-0x4)); /* 0x3615C166: mov edx, dword ptr [ebp - 4] */ 7335 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xCu); 7336 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7337 esi = esi + 0xCu; /* 0x3615C169: add esi, 0xc */ 7338 _flag_k = FK_ADD; 7339 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 7340 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7341 edi = edi + 0xCu; /* 0x3615C16C: add edi, 0xc */ 7342 _flag_k = FK_ADD; 7343 /* cmp esi, MEM32(edx + 0xC) */ /* 0x3615C16F: cmp esi, dword ptr [edx + 0xc] */ 7344 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(edx + 0xC)); 7345 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7346 _flag_k = FK_CMP; 7347 RECOMP_BACKEDGE(); 7348 if (CMP_NE(_flag_a, _flag_b)) goto L_3615C145; /* 0x3615C172: jne 0x3615c145 */ 7349 L_3615C174: 7350 edi = edx; /* 0x3615C174: mov edi, edx */ 7351 L_3615C176: 7352 eax = MEM32(ebx + 0x4); /* 0x3615C176: mov eax, dword ptr [ebx + 4] */ 7353 /* test eax, eax */ /* 0x3615C179: test eax, eax */ 7354 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7355 _cf = 0; 7356 _flag_k = FK_TEST; 7357 if (TEST_Z(_flag_a, _flag_b)) goto L_3615C1AB; /* 0x3615C17B: je 0x3615c1ab */ 7358 L_3615C17D: 7359 ebx = MEM32(ebx + 0x8); /* 0x3615C17D: mov ebx, dword ptr [ebx + 8] */ 7360 _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(eax); 7361 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7362 ebx = ebx - eax; /* 0x3615C180: sub ebx, eax */ 7363 _flag_k = FK_CMP; 7364 eax = 0x2AAAAAABu; /* 0x3615C182: mov eax, 0x2aaaaaab */ 7365 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ebx); /* 0x3615C187: imul ebx */ 7366 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7367 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7368 if (1u) _cf = (((edx) >> 0) & 1u); /* 0x3615C189: sar edx, 1 */ 7369 if (1u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 1u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7370 edx = (uint32_t)((int32_t)edx >> 1u); 7371 eax = edx; /* 0x3615C18B: mov eax, edx */ 7372 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3615C18D: shr eax, 0x1f */ 7373 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7374 eax = eax >> 31u; /* 0x3615C18D: shr eax, 0x1f */ 7375 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7376 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7377 edx = edx + eax; /* 0x3615C190: add edx, eax */ 7378 _flag_k = FK_ADD; 7379 if (/* add result */ recomp_cond(_flag_k, _flag_a, _flag_b, CC_E)) goto L_3615C1AB; /* 0x3615C192: je 0x3615c1ab */ 7380 L_3615C194: 7381 eax = MEM32(edi + 0xC); /* 0x3615C194: mov eax, dword ptr [edi + 0xc] */ 7382 ecx = MEM32(eax + (-0xC)); /* 0x3615C197: mov ecx, dword ptr [eax - 0xc] */ 7383 edx = MEM32(eax + (-0x8)); /* 0x3615C19A: mov edx, dword ptr [eax - 8] */ 7384 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx); 7385 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7386 ecx = ecx + edx; /* 0x3615C19D: add ecx, edx */ 7387 _flag_k = FK_ADD; 7388 MEM32(edi + 0x14) = ecx; /* 0x3615C19F: mov dword ptr [edi + 0x14], ecx */ 7389 edi = POP32_VAL(esp); /* 0x3615C1A2: pop edi */ 7390 esi = POP32_VAL(esp); /* 0x3615C1A3: pop esi */ 7391 ebx = POP32_VAL(esp); /* 0x3615C1A4: pop ebx */ 7392 esp = ebp; /* 0x3615C1A5: mov esp, ebp */ 7393 ebp = POP32_VAL(esp); /* 0x3615C1A7: pop ebp */ 7394 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615C1A8: ret 4 */ 7395 L_3615C1AB: 7396 MEM32(edi + 0x14) = 0; /* 0x3615C1AB: mov dword ptr [edi + 0x14], 0 */ 7397 edi = POP32_VAL(esp); /* 0x3615C1B2: pop edi */ 7398 esi = POP32_VAL(esp); /* 0x3615C1B3: pop esi */ 7399 ebx = POP32_VAL(esp); /* 0x3615C1B4: pop ebx */ 7400 esp = ebp; /* 0x3615C1B5: mov esp, ebp */ 7401 ebp = POP32_VAL(esp); /* 0x3615C1B7: pop ebp */ 7402 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615C1B8: ret 4 */ 7403 RECOMP_REGS_OUT(); 7404 } 7405 7406 void sub_3615C1C0(void) { 7407 int _fpu_cmp = 0; 7408 uint32_t _cf = 0; 7409 int _df = 1; 7410 uint32_t _flag_k = FK_NONE; 7411 uint32_t _flag_a = 0, _flag_b = 0; 7412 uint32_t _itail_tgt = 0; 7413 RECOMP_REGS_LOCALS 7414 RECOMP_ENTER(0x3615C1C0u); 7415 7416 L_3615C1C0: 7417 PUSH32(esp, ebp); /* 0x3615C1C0: push ebp */ 7418 ebp = esp; /* 0x3615C1C1: mov ebp, esp */ 7419 PUSH32(esp, ecx); /* 0x3615C1C3: push ecx */ 7420 eax = ecx; /* 0x3615C1C4: mov eax, ecx */ 7421 SET_LO8(ecx, MEM8(ebp + (-0x1))); /* 0x3615C1C6: mov cl, byte ptr [ebp - 1] */ 7422 MEM8(eax + 0x4) = (uint8_t)(LO8(ecx)); /* 0x3615C1C9: mov byte ptr [eax + 4], cl */ 7423 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7424 ecx = 0; /* 0x3615C1CC: xor ecx, ecx */ 7425 _cf = 0; 7426 _flag_k = FK_TEST; 7427 MEM32(eax + 0x8) = ecx; /* 0x3615C1CE: mov dword ptr [eax + 8], ecx */ 7428 MEM32(eax + 0xC) = ecx; /* 0x3615C1D1: mov dword ptr [eax + 0xc], ecx */ 7429 MEM32(eax + 0x10) = ecx; /* 0x3615C1D4: mov dword ptr [eax + 0x10], ecx */ 7430 MEM32(eax) = 0x36179204u; /* 0x3615C1D7: mov dword ptr [eax], 0x36179204 */ 7431 MEM32(eax + 0x14) = ecx; /* 0x3615C1DD: mov dword ptr [eax + 0x14], ecx */ 7432 esp = ebp; /* 0x3615C1E0: mov esp, ebp */ 7433 ebp = POP32_VAL(esp); /* 0x3615C1E2: pop ebp */ 7434 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615C1E3: ret */ 7435 RECOMP_REGS_OUT(); 7436 } 7437 7438 void sub_3615C1F0(void) { 7439 int _fpu_cmp = 0; 7440 uint32_t _cf = 0; 7441 int _df = 1; 7442 uint32_t _flag_k = FK_NONE; 7443 uint32_t _flag_a = 0, _flag_b = 0; 7444 uint32_t _itail_tgt = 0; 7445 RECOMP_REGS_LOCALS 7446 RECOMP_ENTER(0x3615C1F0u); 7447 7448 L_3615C1F0: 7449 PUSH32(esp, ebp); /* 0x3615C1F0: push ebp */ 7450 ebp = esp; /* 0x3615C1F1: mov ebp, esp */ 7451 PUSH32(esp, esi); /* 0x3615C1F3: push esi */ 7452 esi = ecx; /* 0x3615C1F4: mov esi, ecx */ 7453 RECOMP_ICALL(0x3615C220u); /* 0x3615C1F6: call 0x3615c220 */ /* not lifted */ 7454 RECOMP_FLAGS_IN(); 7455 /* test MEM8(ebp + 0x8), 1 */ /* 0x3615C1FB: test byte ptr [ebp + 8], 1 */ 7456 _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24; 7457 _cf = 0; 7458 _flag_k = FK_NARROW(FK_TEST, 24); 7459 if (TEST_Z(_flag_a, _flag_b)) goto L_3615C20A; /* 0x3615C1FF: je 0x3615c20a */ 7460 L_3615C201: 7461 PUSH32(esp, esi); /* 0x3615C201: push esi */ 7462 RECOMP_ICALL(0x3615FCC4u); /* 0x3615C202: call 0x3615fcc4 */ /* not lifted */ 7463 RECOMP_FLAGS_IN(); 7464 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7465 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7466 esp = esp + 4; /* 0x3615C207: add esp, 4 */ 7467 _flag_k = FK_ADD; 7468 L_3615C20A: 7469 eax = esi; /* 0x3615C20A: mov eax, esi */ 7470 esi = POP32_VAL(esp); /* 0x3615C20C: pop esi */ 7471 ebp = POP32_VAL(esp); /* 0x3615C20D: pop ebp */ 7472 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615C20E: ret 4 */ 7473 RECOMP_REGS_OUT(); 7474 } 7475 7476 void sub_3615C220(void) { 7477 int _fpu_cmp = 0; 7478 uint32_t _cf = 0; 7479 int _df = 1; 7480 uint32_t _flag_k = FK_NONE; 7481 uint32_t _flag_a = 0, _flag_b = 0; 7482 uint32_t _itail_tgt = 0; 7483 RECOMP_REGS_LOCALS 7484 RECOMP_ENTER(0x3615C220u); 7485 7486 L_3615C220: 7487 PUSH32(esp, ebp); /* 0x3615C220: push ebp */ 7488 ebp = esp; /* 0x3615C221: mov ebp, esp */ 7489 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u); 7490 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7491 esp = esp - 0x10u; /* 0x3615C223: sub esp, 0x10 */ 7492 _flag_k = FK_CMP; 7493 PUSH32(esp, esi); /* 0x3615C226: push esi */ 7494 esi = ecx; /* 0x3615C227: mov esi, ecx */ 7495 MEM32(ebp + (-0x10)) = esi; /* 0x3615C229: mov dword ptr [ebp - 0x10], esi */ 7496 MEM32(esi) = 0x36179204u; /* 0x3615C22C: mov dword ptr [esi], 0x36179204 */ 7497 ecx = MEM32(esi + 0xC); /* 0x3615C232: mov ecx, dword ptr [esi + 0xc] */ 7498 eax = MEM32(esi + 0x8); /* 0x3615C235: mov eax, dword ptr [esi + 8] */ 7499 MEM32(ebp + (-0xC)) = ecx; /* 0x3615C238: mov dword ptr [ebp - 0xc], ecx */ 7500 /* cmp eax, ecx */ /* 0x3615C23B: cmp eax, ecx */ 7501 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7502 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7503 _flag_k = FK_CMP; 7504 MEM32(ebp + (-0x8)) = eax; /* 0x3615C23D: mov dword ptr [ebp - 8], eax */ 7505 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615C29F; /* 0x3615C240: je 0x3615c29f */ 7506 L_3615C242: 7507 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8); 7508 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7509 eax = eax + 8; /* 0x3615C242: add eax, 8 */ 7510 _flag_k = FK_ADD; 7511 PUSH32(esp, ebx); /* 0x3615C245: push ebx */ 7512 PUSH32(esp, edi); /* 0x3615C246: push edi */ 7513 MEM32(ebp + (-0x4)) = eax; /* 0x3615C247: mov dword ptr [ebp - 4], eax */ 7514 goto L_3615C24F; /* 0x3615C24A: jmp 0x3615c24f */ 7515 L_3615C24C: 7516 eax = MEM32(ebp + (-0x4)); /* 0x3615C24C: mov eax, dword ptr [ebp - 4] */ 7517 L_3615C24F: 7518 ebx = MEM32(eax + 0x4); /* 0x3615C24F: mov ebx, dword ptr [eax + 4] */ 7519 edi = MEM32(eax); /* 0x3615C252: mov edi, dword ptr [eax] */ 7520 /* cmp edi, ebx */ /* 0x3615C254: cmp edi, ebx */ 7521 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7522 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7523 _flag_k = FK_CMP; 7524 esi = eax + (-0x4); /* 0x3615C256: lea esi, [eax - 4] */ 7525 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615C26A; /* 0x3615C259: je 0x3615c26a */ 7526 L_3615C25B: 7527 PUSH32(esp, edi); /* 0x3615C25B: push edi */ 7528 ecx = esi; /* 0x3615C25C: mov ecx, esi */ 7529 RECOMP_ICALL(0x360DD0A0u); /* 0x3615C25E: call 0x360dd0a0 */ /* not lifted */ 7530 RECOMP_FLAGS_IN(); 7531 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xCu); 7532 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7533 edi = edi + 0xCu; /* 0x3615C263: add edi, 0xc */ 7534 _flag_k = FK_ADD; 7535 /* cmp edi, ebx */ /* 0x3615C266: cmp edi, ebx */ 7536 _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx); 7537 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7538 _flag_k = FK_CMP; 7539 RECOMP_BACKEDGE(); 7540 if (CMP_NE(_flag_a, _flag_b)) goto L_3615C25B; /* 0x3615C268: jne 0x3615c25b */ 7541 L_3615C26A: 7542 eax = MEM32(esi + 0x4); /* 0x3615C26A: mov eax, dword ptr [esi + 4] */ 7543 PUSH32(esp, eax); /* 0x3615C26D: push eax */ 7544 RECOMP_ICALL(0x3615FCC4u); /* 0x3615C26E: call 0x3615fcc4 */ /* not lifted */ 7545 RECOMP_FLAGS_IN(); 7546 edx = MEM32(ebp + (-0x4)); /* 0x3615C273: mov edx, dword ptr [ebp - 4] */ 7547 ecx = MEM32(ebp + (-0xC)); /* 0x3615C276: mov ecx, dword ptr [ebp - 0xc] */ 7548 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7549 eax = 0; /* 0x3615C279: xor eax, eax */ 7550 _cf = 0; 7551 _flag_k = FK_TEST; 7552 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7553 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7554 esp = esp + 4; /* 0x3615C27B: add esp, 4 */ 7555 _flag_k = FK_ADD; 7556 MEM32(esi + 0x4) = eax; /* 0x3615C27E: mov dword ptr [esi + 4], eax */ 7557 MEM32(esi + 0x8) = eax; /* 0x3615C281: mov dword ptr [esi + 8], eax */ 7558 MEM32(esi + 0xC) = eax; /* 0x3615C284: mov dword ptr [esi + 0xc], eax */ 7559 eax = MEM32(ebp + (-0x8)); /* 0x3615C287: mov eax, dword ptr [ebp - 8] */ 7560 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x18u); 7561 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7562 eax = eax + 0x18u; /* 0x3615C28A: add eax, 0x18 */ 7563 _flag_k = FK_ADD; 7564 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x18u); 7565 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7566 edx = edx + 0x18u; /* 0x3615C28D: add edx, 0x18 */ 7567 _flag_k = FK_ADD; 7568 /* cmp eax, ecx */ /* 0x3615C290: cmp eax, ecx */ 7569 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx); 7570 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7571 _flag_k = FK_CMP; 7572 MEM32(ebp + (-0x8)) = eax; /* 0x3615C292: mov dword ptr [ebp - 8], eax */ 7573 MEM32(ebp + (-0x4)) = edx; /* 0x3615C295: mov dword ptr [ebp - 4], edx */ 7574 RECOMP_BACKEDGE(); 7575 if (CMP_NE(_flag_a, _flag_b)) goto L_3615C24C; /* 0x3615C298: jne 0x3615c24c */ 7576 L_3615C29A: 7577 esi = MEM32(ebp + (-0x10)); /* 0x3615C29A: mov esi, dword ptr [ebp - 0x10] */ 7578 edi = POP32_VAL(esp); /* 0x3615C29D: pop edi */ 7579 ebx = POP32_VAL(esp); /* 0x3615C29E: pop ebx */ 7580 L_3615C29F: 7581 ecx = MEM32(esi + 0x8); /* 0x3615C29F: mov ecx, dword ptr [esi + 8] */ 7582 PUSH32(esp, ecx); /* 0x3615C2A2: push ecx */ 7583 RECOMP_ICALL(0x3615FCC4u); /* 0x3615C2A3: call 0x3615fcc4 */ /* not lifted */ 7584 RECOMP_FLAGS_IN(); 7585 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4); 7586 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7587 esp = esp + 4; /* 0x3615C2A8: add esp, 4 */ 7588 _flag_k = FK_ADD; 7589 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7590 eax = 0; /* 0x3615C2AB: xor eax, eax */ 7591 _cf = 0; 7592 _flag_k = FK_TEST; 7593 MEM32(esi + 0x8) = eax; /* 0x3615C2AD: mov dword ptr [esi + 8], eax */ 7594 MEM32(esi + 0xC) = eax; /* 0x3615C2B0: mov dword ptr [esi + 0xc], eax */ 7595 MEM32(esi + 0x10) = eax; /* 0x3615C2B3: mov dword ptr [esi + 0x10], eax */ 7596 esi = POP32_VAL(esp); /* 0x3615C2B6: pop esi */ 7597 esp = ebp; /* 0x3615C2B7: mov esp, ebp */ 7598 ebp = POP32_VAL(esp); /* 0x3615C2B9: pop ebp */ 7599 RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3615C2BA: ret */ 7600 RECOMP_REGS_OUT(); 7601 } 7602 7603 void sub_3615C2C0(void) { 7604 int _fpu_cmp = 0; 7605 uint32_t _cf = 0; 7606 int _df = 1; 7607 uint32_t _flag_k = FK_NONE; 7608 uint32_t _flag_a = 0, _flag_b = 0; 7609 uint32_t _itail_tgt = 0; 7610 RECOMP_REGS_LOCALS 7611 RECOMP_ENTER(0x3615C2C0u); 7612 7613 L_3615C2C0: 7614 PUSH32(esp, ebp); /* 0x3615C2C0: push ebp */ 7615 ebp = esp; /* 0x3615C2C1: mov ebp, esp */ 7616 _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8); 7617 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7618 esp = esp - 8; /* 0x3615C2C3: sub esp, 8 */ 7619 _flag_k = FK_CMP; 7620 PUSH32(esp, ebx); /* 0x3615C2C6: push ebx */ 7621 PUSH32(esp, esi); /* 0x3615C2C7: push esi */ 7622 PUSH32(esp, edi); /* 0x3615C2C8: push edi */ 7623 edi = ecx; /* 0x3615C2C9: mov edi, ecx */ 7624 esi = MEM32(edi + 0x8); /* 0x3615C2CB: mov esi, dword ptr [edi + 8] */ 7625 eax = MEM32(edi + 0xC); /* 0x3615C2CE: mov eax, dword ptr [edi + 0xc] */ 7626 /* cmp esi, eax */ /* 0x3615C2D1: cmp esi, eax */ 7627 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7628 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7629 _flag_k = FK_CMP; 7630 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615C2EE; /* 0x3615C2D3: je 0x3615c2ee */ 7631 L_3615C2D5: 7632 ebx = MEM32(ebp + 0x8); /* 0x3615C2D5: mov ebx, dword ptr [ebp + 8] */ 7633 L_3615C2D8: 7634 PUSH32(esp, ebx); /* 0x3615C2D8: push ebx */ 7635 ecx = esi; /* 0x3615C2D9: mov ecx, esi */ 7636 RECOMP_ICALL(0x3615BF50u); /* 0x3615C2DB: call 0x3615bf50 */ /* not lifted */ 7637 RECOMP_FLAGS_IN(); 7638 /* test LO8(eax), LO8(eax) */ /* 0x3615C2E0: test al, al */ 7639 _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24; 7640 _cf = 0; 7641 _flag_k = FK_NARROW(FK_TEST, 24); 7642 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615C2F9; /* 0x3615C2E2: jne 0x3615c2f9 */ 7643 L_3615C2E4: 7644 eax = MEM32(edi + 0xC); /* 0x3615C2E4: mov eax, dword ptr [edi + 0xc] */ 7645 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 7646 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7647 esi = esi + 0x18u; /* 0x3615C2E7: add esi, 0x18 */ 7648 _flag_k = FK_ADD; 7649 /* cmp esi, eax */ /* 0x3615C2EA: cmp esi, eax */ 7650 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7651 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7652 _flag_k = FK_CMP; 7653 RECOMP_BACKEDGE(); 7654 if (CMP_NE(_flag_a, _flag_b)) goto L_3615C2D8; /* 0x3615C2EC: jne 0x3615c2d8 */ 7655 L_3615C2EE: 7656 edi = POP32_VAL(esp); /* 0x3615C2EE: pop edi */ 7657 esi = POP32_VAL(esp); /* 0x3615C2EF: pop esi */ 7658 _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24; 7659 SET_LO8(eax, 0); /* 0x3615C2F0: xor al, al */ 7660 _cf = 0; 7661 _flag_k = FK_NARROW(FK_TEST, 24); 7662 ebx = POP32_VAL(esp); /* 0x3615C2F2: pop ebx */ 7663 esp = ebp; /* 0x3615C2F3: mov esp, ebp */ 7664 ebp = POP32_VAL(esp); /* 0x3615C2F5: pop ebp */ 7665 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615C2F6: ret 8 */ 7666 L_3615C2F9: 7667 eax = ebp + (-0x8); /* 0x3615C2F9: lea eax, [ebp - 8] */ 7668 PUSH32(esp, ebx); /* 0x3615C2FC: push ebx */ 7669 PUSH32(esp, eax); /* 0x3615C2FD: push eax */ 7670 ecx = esi; /* 0x3615C2FE: mov ecx, esi */ 7671 RECOMP_ICALL(0x3615BF90u); /* 0x3615C300: call 0x3615bf90 */ /* not lifted */ 7672 RECOMP_FLAGS_IN(); 7673 ecx = eax; /* 0x3615C305: mov ecx, eax */ 7674 eax = MEM32(ebp + 0xC); /* 0x3615C307: mov eax, dword ptr [ebp + 0xc] */ 7675 edi = POP32_VAL(esp); /* 0x3615C30A: pop edi */ 7676 esi = POP32_VAL(esp); /* 0x3615C30B: pop esi */ 7677 edx = MEM32(ecx); /* 0x3615C30C: mov edx, dword ptr [ecx] */ 7678 ebx = POP32_VAL(esp); /* 0x3615C30E: pop ebx */ 7679 MEM32(eax) = edx; /* 0x3615C30F: mov dword ptr [eax], edx */ 7680 ecx = MEM32(ecx + 0x4); /* 0x3615C311: mov ecx, dword ptr [ecx + 4] */ 7681 MEM32(eax + 0x4) = ecx; /* 0x3615C314: mov dword ptr [eax + 4], ecx */ 7682 SET_LO8(eax, 1); /* 0x3615C317: mov al, 1 */ 7683 esp = ebp; /* 0x3615C319: mov esp, ebp */ 7684 ebp = POP32_VAL(esp); /* 0x3615C31B: pop ebp */ 7685 RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x3615C31C: ret 8 */ 7686 RECOMP_REGS_OUT(); 7687 } 7688 7689 void sub_3615C320(void) { 7690 int _fpu_cmp = 0; 7691 uint32_t _cf = 0; 7692 int _df = 1; 7693 uint32_t _flag_k = FK_NONE; 7694 uint32_t _flag_a = 0, _flag_b = 0; 7695 uint32_t _itail_tgt = 0; 7696 RECOMP_REGS_LOCALS 7697 RECOMP_ENTER(0x3615C320u); 7698 7699 L_3615C320: 7700 PUSH32(esp, ebp); /* 0x3615C320: push ebp */ 7701 ebp = esp; /* 0x3615C321: mov ebp, esp */ 7702 PUSH32(esp, ebx); /* 0x3615C323: push ebx */ 7703 PUSH32(esp, esi); /* 0x3615C324: push esi */ 7704 PUSH32(esp, edi); /* 0x3615C325: push edi */ 7705 edi = ecx; /* 0x3615C326: mov edi, ecx */ 7706 eax = MEM32(edi + 0x8); /* 0x3615C328: mov eax, dword ptr [edi + 8] */ 7707 /* test eax, eax */ /* 0x3615C32B: test eax, eax */ 7708 _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax); 7709 _cf = 0; 7710 _flag_k = FK_TEST; 7711 if (TEST_NZ(_flag_a, _flag_b)) goto L_3615C333; /* 0x3615C32D: jne 0x3615c333 */ 7712 L_3615C32F: 7713 _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0); 7714 edx = 0; /* 0x3615C32F: xor edx, edx */ 7715 _cf = 0; 7716 _flag_k = FK_TEST; 7717 goto L_3615C349; /* 0x3615C331: jmp 0x3615c349 */ 7718 L_3615C333: 7719 ecx = MEM32(edi + 0xC); /* 0x3615C333: mov ecx, dword ptr [edi + 0xc] */ 7720 _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax); 7721 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7722 ecx = ecx - eax; /* 0x3615C336: sub ecx, eax */ 7723 _flag_k = FK_CMP; 7724 eax = 0x2AAAAAABu; /* 0x3615C338: mov eax, 0x2aaaaaab */ 7725 { int64_t _r = (int64_t)(int32_t)eax * (int32_t)(ecx); /* 0x3615C33D: imul ecx */ 7726 eax = (uint32_t)_r; edx = (uint32_t)(_r >> 32); uint32_t _ov = _r != (int32_t)_r; 7727 _flag_k = FK_EFLAGS; _flag_a = _ov ? 0x801u : 0u; _flag_b = 0; _cf = _ov; } 7728 if (2u) _cf = (((edx) >> 1) & 1u); /* 0x3615C33F: sar edx, 2 */ 7729 if (2u) { _flag_a = recomp_flags_pack(((uint32_t)((int32_t)edx >> 2u)), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7730 edx = (uint32_t)((int32_t)edx >> 2u); 7731 eax = edx; /* 0x3615C342: mov eax, edx */ 7732 if (31u) _cf = (((eax) >> 30) & 1u); /* 0x3615C344: shr eax, 0x1f */ 7733 if (31u) { _flag_a = recomp_flags_pack((eax >> 31u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; } 7734 eax = eax >> 31u; /* 0x3615C344: shr eax, 0x1f */ 7735 _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax); 7736 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7737 edx = edx + eax; /* 0x3615C347: add edx, eax */ 7738 _flag_k = FK_ADD; 7739 L_3615C349: 7740 ebx = MEM32(ebp + 0x8); /* 0x3615C349: mov ebx, dword ptr [ebp + 8] */ 7741 PUSH32(esp, edx); /* 0x3615C34C: push edx */ 7742 ecx = ebx; /* 0x3615C34D: mov ecx, ebx */ 7743 RECOMP_ICALL(MEM32(0x3616FAEC)); /* 0x3615C34F: call dword ptr [0x3616faec] */ 7744 RECOMP_FLAGS_IN(); 7745 esi = MEM32(edi + 0x8); /* 0x3615C355: mov esi, dword ptr [edi + 8] */ 7746 eax = MEM32(edi + 0xC); /* 0x3615C358: mov eax, dword ptr [edi + 0xc] */ 7747 /* cmp esi, eax */ /* 0x3615C35B: cmp esi, eax */ 7748 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7749 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7750 _flag_k = FK_CMP; 7751 if (CMP_EQ(_flag_a, _flag_b)) goto L_3615C371; /* 0x3615C35D: je 0x3615c371 */ 7752 L_3615C35F: 7753 PUSH32(esp, ebx); /* 0x3615C35F: push ebx */ 7754 ecx = esi; /* 0x3615C360: mov ecx, esi */ 7755 RECOMP_ICALL(0x3615C000u); /* 0x3615C362: call 0x3615c000 */ /* not lifted */ 7756 RECOMP_FLAGS_IN(); 7757 eax = MEM32(edi + 0xC); /* 0x3615C367: mov eax, dword ptr [edi + 0xc] */ 7758 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x18u); 7759 _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a); 7760 esi = esi + 0x18u; /* 0x3615C36A: add esi, 0x18 */ 7761 _flag_k = FK_ADD; 7762 /* cmp esi, eax */ /* 0x3615C36D: cmp esi, eax */ 7763 _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax); 7764 _cf = (uint32_t)CMP_B(_flag_a, _flag_b); 7765 _flag_k = FK_CMP; 7766 RECOMP_BACKEDGE(); 7767 if (CMP_NE(_flag_a, _flag_b)) goto L_3615C35F; /* 0x3615C36F: jne 0x3615c35f */ 7768 L_3615C371: 7769 edi = POP32_VAL(esp); /* 0x3615C371: pop edi */ 7770 esi = POP32_VAL(esp); /* 0x3615C372: pop esi */ 7771 ebx = POP32_VAL(esp); /* 0x3615C373: pop ebx */ 7772 ebp = POP32_VAL(esp); /* 0x3615C374: pop ebp */ 7773 RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3615C375: ret 4 */ 7774 RECOMP_REGS_OUT(); 7775 }